/** * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ import { TreeOptionData, TreeKeysType } from '../common/common'; export interface TdCascaderProps { /** * 父子节点选中状态不再关联,可各自选中或取消 * @default false */ checkStrictly?: { type: BooleanConstructor; value?: boolean; }; /** * 关闭按钮 * @default true */ closeBtn?: { type: BooleanConstructor; value?: boolean; }; /** * 是否可搜索。开启后顶部会展示一个搜索框,输入关键字将层级面板切换为扁平的匹配路径列表 * @default false */ filterable?: { type: BooleanConstructor; value?: boolean; }; /** * 自定义过滤函数。返回 true 表示匹配;签名为 `(keyword, option, path) => boolean`。未设置时使用内置匹配规则:对路径中所有 label/text 拼接后做大小写不敏感的 includes 匹配 */ filter?: { type: null; value?: CascaderFilterFunction; }; /** * 搜索框占位文案 * @default '' */ filterPlaceholder?: { type: StringConstructor; value?: string; }; /** * 用来定义 value / label / children / disabled 在 `options` 中对应的字段别名 */ keys?: { type: ObjectConstructor; value?: CascaderKeysType; }; /** * 可选项数据源 * @default [] */ options?: { type: ArrayConstructor; value?: Array; }; /** * 未选中时的提示文案。组件内置默认值为:'选择选项' * @default '' */ placeholder?: { type: StringConstructor; value?: string; }; /** * 每级展示的次标题 * @default [] */ subTitles?: { type: ArrayConstructor; value?: Array; }; /** * 展示风格 * @default step */ theme?: { type: StringConstructor; value?: 'step' | 'tab'; }; /** * 标题 */ title?: { type: StringConstructor; value?: string; }; /** * 选项值 * @default null */ value?: { type: null; value?: string | number; }; /** * 选项值,非受控属性 * @default null */ defaultValue?: { type: null; value?: string | number; }; /** * 是否展示 * @default false */ visible?: { type: BooleanConstructor; value?: boolean; }; } export declare type CascaderKeysType = TreeKeysType; export declare type CascaderFilterFunction = (keyword: string, option: CascaderOption, path: CascaderOption[]) => boolean;