import { CascaderProps, CascaderInnerProps } from '@wakeadmin/element-adapter'; import { DefineAtomicProps } from '../../atomic'; export type ACascaderLazyValue = any[]; export interface ACascaderOption { /** * 标题 */ label: string; /** * 节点值 */ value: any; /** * 是否禁用 */ disabled?: boolean; /** * 子节点, 返回数据时,可以显式将 children 设置为 null, 来标记该节点为 leaf */ children?: ACascaderOption[] | undefined | null; } export type ACascaderLazyProps = DefineAtomicProps, { /** * 数据加载,parentId 为父节点 id,如果是根节点,则为 undefined */ load?: (parentId?: any) => Promise; /** * 自定义预览 */ renderPreview?: (options: ACascaderOption[]) => any; /** * options 是固定结构的 */ props?: Omit, 'value' | 'label' | 'children' | 'disabled'>; }>; declare global { interface AtomicProps { 'cascader-lazy': ACascaderLazyProps; } } export declare const ACascaderLazyComponent: import("../../atomic").AtomicComponent; export declare const ACascaderLazy: import("../../atomic").Atomic; //# sourceMappingURL=cascader-lazy.d.ts.map