element/packages/date-picker
2016-11-08 15:01:00 +08:00
..
src Locale: rename $t to t 2016-11-07 23:33:33 +08:00
_index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json fix package.json url 2016-11-06 12:26:14 +08:00
README.md Support publish component packages 2016-10-17 12:14:10 +08:00

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