diff --git a/example/docs/zh-CN/components/datePicker.md b/example/docs/zh-CN/components/datePicker.md index 12419d87..b8a1bacf 100644 --- a/example/docs/zh-CN/components/datePicker.md +++ b/example/docs/zh-CN/components/datePicker.md @@ -62,6 +62,33 @@ export default { ::: +::: title 禁止修改 +::: + +::: demo + + + + + +::: + ::: title 年份选择 ::: @@ -177,6 +204,7 @@ export default { | ------------- | ------------------------------------------------------------ | -------------- | ------ | -------------- | | v-model | 当前时间 | `string` | -- | — | | type | 选择类型 | `string` | `date` | `date` `datetime` `year` `month` `time` `yearmonth` | +| disabled | 是否禁止修改 | `boolean` | false | — | ::: diff --git a/src/component/datePicker/index.vue b/src/component/datePicker/index.vue index 749c6be5..f488c960 100644 --- a/src/component/datePicker/index.vue +++ b/src/component/datePicker/index.vue @@ -1,6 +1,6 @@