element-ui-enhancer
v2.0.1
Published
element-ui增强工具,为公司定制使用
Downloads
1
Readme
element-ui-enhancer
安装
npm install element-ui-enhancer -D
部分引入
import { DatePicker2 } from 'element-ui-enhancer'
// 全局
Vue.use(DatePicker2)
// 或者组件内
components{
ElDatePicker2: DatePicker2
}
完整引入
import elementUiEnhancer from 'element-ui-enhancer'
Vue.use(elementUiEnhancer)
引入样式
import 'element-ui-enhancer/element-ui-enhancer.css'
使用
// 参照element-ui的datepicker的参数
<ElDatePicker2
dark-mode
inner-time
v-model="dateTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期时间">
</ElDatePicker2>