naive-ui/demo/documentation/components/datePicker/zhCN/datetimerange.md

26 lines
336 B
Markdown
Raw Normal View History

2020-02-04 19:05:59 +08:00
# 日期时间范围
2020-01-11 00:56:39 +08:00
```html
<n-date-picker
v-model="range1"
type="datetimerange"
/>
<n-date-picker
v-model="range2"
type="datetimerange"
/>
```
```js
export default {
data() {
return {
range1: null,
range2: [1562774466000, 1567180866000]
};
}
};
```
```css
.n-date-picker {
margin: 0 12px 8px 0;
}
```