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
607 B
607 B
Disabled
<n-date-picker
v-model="date"
type="date"
:disabled="disabled"
/>
<n-date-picker
v-model="datetime"
type="datetime"
:disabled="disabled"
/>
<n-date-picker
v-model="daterange"
:disabled="disabled"
type="daterange"
/>
<n-date-picker
v-model="datetimerange"
:disabled="disabled"
type="datetimerange"
/>
<n-switch v-model="disabled" />
export default {
data () {
return {
datetime: null,
date: null,
datetimerange: null,
daterange: null,
disabled: true
}
}
}
.n-date-picker {
margin: 0 12px 8px 0;
}