Skip to content

Commit

Permalink
fix: move textProps into the PickerStandardProps (#16513)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatpandac authored Sep 16, 2024
1 parent 213971f commit d6f98fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/taro-components/types/Picker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/** 选择器类型 */
Expand Down Expand Up @@ -87,11 +92,6 @@ interface PickerSelectorProps extends PickerStandardProps {
* @supported weapp, h5, rn, harmony, harmony_hybrid
*/
onChange?: CommonEventFunction<PickerSelectorProps.ChangeEventDetail>
/**
* 用于替换组件内部文本
* @supported h5, harmony, harmony_hybrid
*/
textProps?: PickerStandardProps.PickerText
}
declare namespace PickerSelectorProps {
interface ChangeEventDetail {
Expand Down

0 comments on commit d6f98fe

Please sign in to comment.