UNPKG

@xuanmo/v-form

Version:

* 目前已经集成的组件(Address/Checkbox/DatePicker/Input/Radio/Select/Text/Switch/Upload) * 组件不满足的情况可自定义开发组件或者使用 `slot` 的形式 * 组件的调用方式采取 `JSON` 配置的形式,具体参数见model数据说明 * 校验规则已经集成 `VeeValidate` 插件,也可以自定义扩展规则,更多资料 [https://logaretm.github.io/vee-validate](https://logaretm

40 lines (33 loc) 553 B
import datejs from '@xuanmo/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()) } } }