tdesign-miniprogram
Version:
tdesign-miniprogram
42 lines (41 loc) • 954 B
TypeScript
import { ButtonProps } from '../button/index';
import { KeysType } from '../common/common';
export interface TdPickerProps {
autoClose?: {
type: BooleanConstructor;
value?: boolean;
};
cancelBtn?: {
type: null;
value?: boolean | string | ButtonProps;
};
confirmBtn?: {
type: null;
value?: boolean | string | ButtonProps;
};
header?: {
type: BooleanConstructor;
value?: boolean;
};
keys?: {
type: ObjectConstructor;
value?: KeysType;
};
title?: {
type: StringConstructor;
value?: string;
};
value?: {
type: ArrayConstructor;
value?: Array<PickerValue>;
};
defaultValue?: {
type: ArrayConstructor;
value?: Array<PickerValue>;
};
visible?: {
type: BooleanConstructor;
value?: boolean;
};
}
export declare type PickerValue = string | number;