Skip to content

Commit d6f98fe

Browse files
authored
fix: move textProps into the PickerStandardProps (#16513)
1 parent 213971f commit d6f98fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/taro-components/types/Picker.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ interface PickerStandardProps extends StandardProps, FormItemProps {
2525
* @supported weapp, h5, rn, harmony, harmony_hybrid
2626
*/
2727
onCancel?: CommonEventFunction
28+
/**
29+
* 用于替换组件内部文本
30+
* @supported h5, harmony, harmony_hybrid
31+
*/
32+
textProps?: PickerStandardProps.PickerText
2833
}
2934
declare namespace PickerStandardProps {
3035
/** 选择器类型 */
@@ -87,11 +92,6 @@ interface PickerSelectorProps extends PickerStandardProps {
8792
* @supported weapp, h5, rn, harmony, harmony_hybrid
8893
*/
8994
onChange?: CommonEventFunction<PickerSelectorProps.ChangeEventDetail>
90-
/**
91-
* 用于替换组件内部文本
92-
* @supported h5, harmony, harmony_hybrid
93-
*/
94-
textProps?: PickerStandardProps.PickerText
9595
}
9696
declare namespace PickerSelectorProps {
9797
interface ChangeEventDetail {

0 commit comments

Comments
 (0)