UNPKG

fast-element-ui

Version:

Vue项目快速开发组件框架,使用element-ui为基础库二次封装构建。

30 lines (28 loc) 735 B
/** * DateTimePicker 日期时间选择器 */ import { devConsole } from '../helper/util.js' import FastDatePicker from '../date-picker/index.js' const FastDateTimePicker = { name: 'FastDateTimePicker', extends: FastDatePicker, props: { type: { type: String, default: 'datetime' }, format: { type: String, default: 'yyyy-MM-dd HH:mm:ss' } } } FastDateTimePicker.install = function (Vue, ELDatePicker) { // 用于按需加载的时候独立使用 devConsole(FastDateTimePicker.name + '----install----') if (ELDatePicker) { Vue.use(ELDatePicker) } Vue.component(FastDateTimePicker.name, FastDateTimePicker) } export default FastDateTimePicker