@zxy-space/v-form
Version:
* `Mixin` 公用方法使用 `__` 作为前缀 * 事件传递使用 `e__` 作为前缀 * `@` 为组件校验规则保留关键字
40 lines (33 loc) • 556 B
JavaScript
import datejs from '@zxy-space/datejs'
export default {
props: {
value: {
type: Number,
default: ''
},
formModel: {
type: Object,
default: () => ({})
},
type: {
type: String,
default: ''
},
showToolbar: {
type: Boolean,
default: true
}
},
methods: {
datejs,
__confirm(v) {
this.$emit('confirm', this._format(v))
},
__cancel() {
this.$emit('cancel')
},
__change(Picker) {
this.$emit('change', Picker.confirm())
}
}
}