- change date
+ year
+ month
@@ -22,9 +24,8 @@
:value.sync="value2"
align="right"
:editable="true"
- :format="format"
@on-change="change"
- :clearable="false"
+ :confirm="true"
:options="options2">
@@ -35,6 +36,7 @@
data () {
return {
// value: new Date(),
+ type: 'date',
value: '2016-12-25',
value2: ['2016-12-17', '2017-01-05'],
options2: {
@@ -130,7 +132,7 @@
}
]
},
- format: 'yyyy-MM-dd'
+ format: 'yyyy-MM',
}
},
computed: {},