tdesign-miniprogram
Version:
tdesign-miniprogram
48 lines (47 loc) • 1.07 kB
TypeScript
import { TreeOptionData, KeysType } from '../common/common';
export interface TdCascaderProps<CascaderOption extends TreeOptionData = TreeOptionData> {
checkStrictly?: {
type: BooleanConstructor;
value?: boolean;
};
closeBtn?: {
type: BooleanConstructor;
value?: boolean;
};
keys?: {
type: ObjectConstructor;
value?: KeysType;
};
options?: {
type: ArrayConstructor;
value?: Array<CascaderOption>;
};
placeholder?: {
type: StringConstructor;
value?: string;
};
subTitles?: {
type: ArrayConstructor;
value?: Array<string>;
};
theme?: {
type: StringConstructor;
value?: 'step' | 'tab';
};
title?: {
type: StringConstructor;
value?: string;
};
value?: {
type: null;
value?: string | number;
};
defaultValue?: {
type: null;
value?: string | number;
};
visible?: {
type: BooleanConstructor;
value?: boolean;
};
}