From d6f98fead91e0b6b977fa0b755b9ccdea20d0d64 Mon Sep 17 00:00:00 2001 From: Fatpandac Date: Mon, 16 Sep 2024 16:18:28 +0800 Subject: [PATCH] fix: move textProps into the PickerStandardProps (#16513) --- packages/taro-components/types/Picker.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/taro-components/types/Picker.d.ts b/packages/taro-components/types/Picker.d.ts index 6d62dbe56c07..59642506509b 100644 --- a/packages/taro-components/types/Picker.d.ts +++ b/packages/taro-components/types/Picker.d.ts @@ -25,6 +25,11 @@ interface PickerStandardProps extends StandardProps, FormItemProps { * @supported weapp, h5, rn, harmony, harmony_hybrid */ onCancel?: CommonEventFunction + /** + * 用于替换组件内部文本 + * @supported h5, harmony, harmony_hybrid + */ + textProps?: PickerStandardProps.PickerText } declare namespace PickerStandardProps { /** 选择器类型 */ @@ -87,11 +92,6 @@ interface PickerSelectorProps extends PickerStandardProps { * @supported weapp, h5, rn, harmony, harmony_hybrid */ onChange?: CommonEventFunction - /** - * 用于替换组件内部文本 - * @supported h5, harmony, harmony_hybrid - */ - textProps?: PickerStandardProps.PickerText } declare namespace PickerSelectorProps { interface ChangeEventDetail {