mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
667 B
667 B
Actions
<n-date-picker
v-model="ts1"
type="date"
:actions="['confirm']"
style="margin-bottom: 12px;"
/>
<n-date-picker
v-model="ts2"
type="datetime"
style="margin-right: 12px; margin-bottom: 12px;"
:actions="['now']"
/>
<n-date-picker
v-model="range1"
type="daterange"
:actions="null"
style="margin-bottom: 12px;"
/>
<n-date-picker
v-model="range2"
type="datetimerange"
style="margin-bottom: 12px;"
:actions="['clear']"
/>
export default {
data() {
return {
ts1: null,
ts2: 1183135260000,
range1: null,
range2: null
}
}
}
.n-date-picker {
margin: 0 12px 8px 0;
}