From 8629da1b75bb50e2f0a99905de90fd85015fb785 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 15 Sep 2021 15:38:21 +0800 Subject: [PATCH] fix(Calendar): confirmDisabledText default value (#4490) --- example/pages/calendar/index.js | 2 +- packages/calendar/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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',