mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 19:27:44 +08:00
.. | ||
src | ||
_index.js | ||
cooking.conf.js | ||
index.js | ||
package.json | ||
README.md |
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