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
42 lines
607 B
Markdown
42 lines
607 B
Markdown
# Disabled
|
|
```html
|
|
<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" />
|
|
```
|
|
```js
|
|
export default {
|
|
data () {
|
|
return {
|
|
datetime: null,
|
|
date: null,
|
|
datetimerange: null,
|
|
daterange: null,
|
|
disabled: true
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```css
|
|
.n-date-picker {
|
|
margin: 0 12px 8px 0;
|
|
}
|
|
``` |