mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-09 15:49:14 +08:00
616 B
616 B
el-date-picker
Installation
npm i el-date-picker -S
Usage
A:
import Vue from 'vue'
import ElDatePicker from 'el-date-picker'
Vue.use(ElDatePicker)
B:
import Vue from 'vue'
import { DatePicker, TimePicker, TimeSelect } from 'el-date-picker'
Vue.component(DatePicker.name, DatePicker);
Vue.component(TimePicker.name, TimePicker);
Vue.component(TimeSelect.name, TimeSelect);
C:
<script src="path/to/vue/dist/vue.js"></script>
<script src="path/to/el-date-picker/index.js"></script>
<script>
Vue.use(ElDatePicker);
</script>
License
MIT