选择器通用参数
| 3 | import { StandardProps, CommonEventFunction, FormItemProps } from './common' |
| 4 | /** 选择器通用参数 */ |
| 5 | interface PickerStandardProps extends StandardProps, FormItemProps { |
| 6 | /** |
| 7 | * 选择器的标题,微信小程序中仅安卓可用 |
| 8 | * @supported weapp |
| 9 | */ |
| 10 | headerText?: string |
| 11 | /** |
| 12 | * 选择器类型,默认是普通选择器 |
| 13 | * @default "selector" |
| 14 | * @supported weapp, h5, rn, harmony, harmony_hybrid |
| 15 | */ |
| 16 | mode?: keyof PickerStandardProps.Mode |
| 17 | /** |
| 18 | * 是否禁用 |
| 19 | * @default false |
| 20 | * @supported weapp, h5, rn, harmony_hybrid |
| 21 | */ |
| 22 | disabled?: boolean |
| 23 | /** |
| 24 | * 取消选择或点遮罩层收起 picker 时触发 |
| 25 | * @supported weapp, h5, rn, harmony, harmony_hybrid |
| 26 | */ |
| 27 | onCancel?: CommonEventFunction |
| 28 | /** |
| 29 | * 用于替换组件内部文本 |
| 30 | * @supported h5, harmony, harmony_hybrid |
| 31 | */ |
| 32 | textProps?: PickerStandardProps.PickerText |
| 33 | } |
| 34 | declare namespace PickerStandardProps { |
| 35 | /** 选择器类型 */ |
| 36 | interface Mode { |
nothing calls this directly
no outgoing calls
no test coverage detected