mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
691 B
691 B
Actions
<n-date-picker
v-model:value="ts1"
type="date"
:actions="['confirm']"
style="margin-bottom: 12px;"
/>
<n-date-picker
v-model:value="ts2"
type="datetime"
style="margin-right: 12px; margin-bottom: 12px;"
:actions="['now']"
/>
<n-date-picker
v-model:value="range1"
type="daterange"
:actions="null"
style="margin-bottom: 12px;"
/>
<n-date-picker
v-model:value="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;
}