UNPKG

lwx-test-ui

Version:

lwx-test-ui

219 lines (218 loc) 5.94 kB
import { ExtractPropTypes, PropType } from 'vue'; export declare const tableProProps: { /** * 表格主键 */ readonly rowKey: { readonly type: StringConstructor; readonly default: "id"; }; /** * 查询接口 */ readonly queryInterface: { readonly type: StringConstructor; readonly default: ""; }; /** * 查询条件接口 */ readonly queryInfoInterface: { readonly type: StringConstructor; readonly default: ""; }; /** * 保存接口 */ readonly saveInterface: { readonly type: StringConstructor; readonly default: ""; }; /** * 修改接口 */ readonly updateInterface: { readonly type: StringConstructor; readonly default: ""; }; /** * 删除接口 */ readonly deleteInterface: { readonly type: StringConstructor; readonly default: ""; }; /** * 表格列 */ readonly columns: { readonly type: { (arrayLength: number): any[]; (...items: any[]): any[]; new (arrayLength: number): any[]; new (...items: any[]): any[]; isArray(arg: any): arg is any[]; readonly prototype: any[]; from<T>(arrayLike: ArrayLike<T>): T[]; from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]; from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; of<T>(...items: T[]): T[]; fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>; fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>; readonly [Symbol.species]: ArrayConstructor; }; readonly default: () => never[]; }; /** * 查询条件 */ readonly formInline: { readonly type: ObjectConstructor; readonly default: () => {}; }; /** * 新增实体 */ readonly addForm: { readonly type: ObjectConstructor; readonly default: () => {}; }; /** * 操作类型 add edit info */ readonly operateType: { readonly type: StringConstructor; readonly default: "add"; }; /** * 表单校验规则 */ readonly rules: { readonly type: ObjectConstructor; readonly default: () => {}; }; /** * 标签宽度 */ readonly labelWidth: { readonly type: [StringConstructor, NumberConstructor]; readonly default: "90px"; }; /** * 对话框宽度 */ readonly dialogWidth: { readonly type: [StringConstructor, NumberConstructor]; readonly default: "35%"; }; /** * 对话框距离顶部距离 */ readonly dialogTop: { readonly type: [StringConstructor, NumberConstructor]; readonly default: "15vh"; }; /** * 对话框标题 */ readonly dialogTitle: { readonly type: ObjectConstructor; readonly default: () => { addTitle: string; editTitle: string; infoTitle: string; }; }; /** * 显示序号 */ readonly showIndex: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否显示选择框 */ readonly showSelection: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否默认查询 */ readonly isDefaultQuery: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否显示批量删除按钮 */ readonly showBatchDelBtn: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否显示分页 */ readonly showPagination: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否显示新增按钮 */ readonly showAddBtn: { readonly type: BooleanConstructor; readonly default: true; }; /** * 是否显示折叠按钮 */ readonly showFoldBtn: { readonly type: BooleanConstructor; readonly default: true; }; /** * 对话框类型 dialog big-dialog */ readonly dialogType: { readonly type: PropType<"dialog" | "big-dialog">; readonly default: "dialog"; }; /** * 树形结构属性 */ readonly treeProps: { readonly type: ObjectConstructor; readonly default: () => { children: string; hasChildren: string; }; }; /** * 是否默认展开所有树节点 */ readonly defaultExpandAll: { readonly type: BooleanConstructor; readonly default: true; }; /** * 对话框是否可见 */ readonly dialogVisible: { readonly type: BooleanConstructor; readonly default: false; }; }; export type TableProProps = ExtractPropTypes<typeof tableProProps>; export declare const tableProEmits: { 'update:modelValue': (value: string | number | null | undefined) => string | number | null | undefined; 'update:operateType': (value: string) => string; 'update:dialogVisible': (value: any) => any; currentChange: (value: any, _oldValue: any) => any; rowDblclick: (_row: any, _column: any, _event: Event) => boolean; selectionChange: (_newSelection: any[]) => boolean; rowClick: (_row: any, _column: any, _event: Event) => boolean; }; export type TableProEmits = typeof tableProEmits;