mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
27 lines
320 B
Markdown
27 lines
320 B
Markdown
|
# Date Range
|
||
|
```html
|
||
|
<n-date-picker
|
||
|
v-model="range1"
|
||
|
type="daterange"
|
||
|
/>
|
||
|
<n-date-picker
|
||
|
v-model="range2"
|
||
|
type="daterange"
|
||
|
/>
|
||
|
```
|
||
|
```js
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
range1: null,
|
||
|
range2: [1562774466000, 1567180866000]
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
```css
|
||
|
.n-date-picker {
|
||
|
margin: 0 12px 8px 0;
|
||
|
}
|
||
|
```
|