import type { EmitFn } from 'element-ultra/utils'; import type { ExtractPropTypes } from 'vue'; import type { TableColumn } from 'element-ultra/components/table'; export interface TableSelectColumn extends TableColumn { sortable?: boolean; } export declare const tableSelectProps: { /** 选择的值 */ readonly modelValue: { readonly type: PropType | Record[]>; }; readonly rowDisabled: { readonly type: PropType<(row: any, rowIndex: number) => boolean>; }; /** 列, 属性可以查看pro-table的属性 */ readonly columns: { readonly type: PropType; readonly required: true; }; readonly dialogColumns: { readonly type: PropType; }; /** 弹框中可选择的数据 */ readonly data: { readonly type: PropType[]>; }; /** 接口数据映射 */ readonly dataMap: { readonly type: PropType<(data: any[]) => any[]>; }; /** 是否多选 */ readonly multiple: { readonly type: BooleanConstructor; readonly default: false; }; /** 弹框中可选择的数据的请求接口, 可以在全局配置中设置请求方法 */ readonly api: { readonly type: StringConstructor; readonly default: ""; }; /** 应用分页 */ readonly pagination: { readonly type: BooleanConstructor; readonly default: false; }; /** 显示序号 */ readonly showIndex: { readonly type: BooleanConstructor; readonly default: false; }; readonly clearText: { readonly type: StringConstructor; readonly default: "清空"; }; /** 查询对象, 从外部传进来 */ readonly query: { readonly type: PropType>; }; /** 值的key, 可用于回显时对对象的标记 */ readonly valueKey: { readonly type: StringConstructor; readonly default: "id"; }; /** 弹框标题 */ readonly dialogTitle: { readonly type: StringConstructor; readonly default: ""; }; /** 是否隐藏显示的表格 */ readonly hide: { readonly type: BooleanConstructor; }; /** 是否隐藏触发器 */ readonly noTrigger: { readonly type: BooleanConstructor; }; /** 弹框宽度 */ readonly dialogWidth: { readonly type: PropType; }; /** 过滤列, (仅过滤弹框中的列) */ readonly columnFilter: { readonly type: PropType<(column: TableSelectColumn) => boolean>; }; readonly size: { type: PropType<"default" | "small" | "large">; }; /** 是否禁用 */ readonly disabled: { readonly type: BooleanConstructor; }; /** 是否可选择 */ readonly clearable: { readonly type: BooleanConstructor; }; readonly defaultPageSize: { readonly type: NumberConstructor; readonly default: 20; }; /** 请求的额外数据, 主要用来定义post请求的logic信息 */ readonly requestExtra: { readonly type: PropType>; }; }; export type TableSelectProps = ExtractPropTypes; export declare const tableSelectEmits: { 'update:modelValue': (v: TableSelectProps['modelValue'] | null) => boolean; change: (v: TableSelectProps['modelValue'] | null) => boolean; }; export type TableSelectEmits = EmitFn;