diff --git a/examples/sites/demos/pc/app/date-picker/disabled-composition-api.vue b/examples/sites/demos/pc/app/date-picker/disabled-composition-api.vue index 0260a20a90..60520d8d7d 100644 --- a/examples/sites/demos/pc/app/date-picker/disabled-composition-api.vue +++ b/examples/sites/demos/pc/app/date-picker/disabled-composition-api.vue @@ -5,6 +5,16 @@
+

年禁用:

+
+ +
+

部分禁用:

@@ -46,6 +56,11 @@ const pickerOptions = { return time.getTime() > Date.now() || time.getTime() < new Date('2023-08-01').getTime() } } +const yearPickerOptions = { + disabledDate(year) { + return year > 2025 || year < 2022 + } +}