naive-ui/demo/documentation/components/datePicker/zhCN/datetimerange.md
2020-02-10 22:27:13 +08:00

28 lines
357 B
Markdown

# 日期时间范围
```html
<n-date-picker
v-model="range1"
type="datetimerange"
clearable
/>
<n-date-picker
v-model="range2"
type="datetimerange"
clearable
/>
```
```js
export default {
data() {
return {
range1: null,
range2: [1562774466000, 1567180866000]
};
}
};
```
```css
.n-date-picker {
margin: 0 0 8px 0;
}
```