diff --git a/example/pages/calendar/index.js b/example/pages/calendar/index.js index 17b3ffeb..0778baef 100644 --- a/example/pages/calendar/index.js +++ b/example/pages/calendar/index.js @@ -86,7 +86,7 @@ Page({ formatter: null, showConfirm: true, confirmText: '确定', - confirmDisabledText: null, + confirmDisabledText: '确定', }); }, diff --git a/packages/calendar/index.ts b/packages/calendar/index.ts index 346b2588..398ce5bb 100644 --- a/packages/calendar/index.ts +++ b/packages/calendar/index.ts @@ -47,6 +47,10 @@ VantComponent({ type: String, value: '确定', }, + confirmDisabledText: { + type: String, + value: '确定', + }, rangePrompt: String, showRangePrompt: { type: Boolean, @@ -60,7 +64,6 @@ VantComponent({ }, }, allowSameDay: Boolean, - confirmDisabledText: String, type: { type: String, value: 'single',