You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can also use [`v-model` modifier](https://vuejs.org/v2/guide/components.html#Form-Input-Components-using-Custom-Events) (these can be configured in 2.2.0+):
167
+
```javascript
168
+
<calendar v-model="date"></calendar>
169
+
<date-range v-model="range"></date-range>
163
170
```
164
171
165
172
# Props
@@ -213,7 +220,7 @@ For Vue2.3.0+, we can use [`.sync` modifier](https://vuejs.org/v2/guide/componen
213
220
214
221
* sync-date: The default selected date. Can be used as the “two-way binding” for date (Vue 2.3.0+). e.g.:
215
222
```html
216
-
<calendarsync-date.sync="date"></calendar>
223
+
<calendar:sync-date.sync="date"></calendar>
217
224
```
218
225
*~~default-date: Init the selected date. Only for Calendar.~~(use syncDate instead)
219
226
* range: The selected date range. e.g.:
@@ -228,6 +235,6 @@ Also it has its specific props:
228
235
229
236
* sync-range: The default date range. Can be used as the “two-way binding” for range (Vue 2.3.0+). e.g.:
0 commit comments