element/packages/date-picker
2016-10-19 12:11:35 +08:00
..
src DatePicker: fix input style in IE, fixed #498 2016-10-19 12:11:35 +08:00
_index.js Support publish component packages 2016-10-17 12:14:10 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Support publish component packages 2016-10-17 12:14:10 +08:00
package.json remove devDependencies of date-picker 2016-09-14 18:38:38 +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