mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-05 05:38:24 +08:00
40 lines
616 B
Markdown
40 lines
616 B
Markdown
# el-date-picker
|
|
|
|
|
|
## Installation
|
|
```shell
|
|
npm i el-date-picker -S
|
|
```
|
|
|
|
## Usage
|
|
|
|
A:
|
|
```javascript
|
|
import Vue from 'vue'
|
|
import ElDatePicker from 'el-date-picker'
|
|
|
|
Vue.use(ElDatePicker)
|
|
```
|
|
|
|
B:
|
|
```javascript
|
|
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:
|
|
```html
|
|
<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
|