mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
24 lines
289 B
Markdown
24 lines
289 B
Markdown
# Date Range
|
|
```html
|
|
<n-date-picker
|
|
v-model="range"
|
|
type="daterange"
|
|
clearable
|
|
/>
|
|
<pre>{{ JSON.stringify(range) }}</pre>
|
|
```
|
|
```js
|
|
export default {
|
|
data() {
|
|
return {
|
|
range: [1183135260000, Date.now()]
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```css
|
|
.n-date-picker {
|
|
margin: 0 12px 8px 0;
|
|
}
|
|
```
|