element/packages/date-picker
2016-10-31 14:22:53 +08:00
..
src DatePicker: fix dont select the time on the same day 2016-10-31 14:22:53 +08:00
_index.js Add istanbul ignore (#521) 2016-10-19 22:48:35 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Add locale feature (#678) 2016-10-27 17:31:22 +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