MCPcopy
hub / github.com/NervJS/taro / PickerStandardProps

Interface PickerStandardProps

packages/taro-components/types/Picker.d.ts:5–33  ·  view source on GitHub ↗

选择器通用参数

Source from the content-addressed store, hash-verified

3import { StandardProps, CommonEventFunction, FormItemProps } from './common'
4/** 选择器通用参数 */
5interface 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}
34declare namespace PickerStandardProps {
35 /** 选择器类型 */
36 interface Mode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected