@tuoyuan/web-plus-dev
Version:
基于arco-design的配置化表格表单组件
86 lines (85 loc) • 2.79 kB
TypeScript
import { PropType } from "vue";
import type { TableOption } from "../table/type";
declare function del(index: number): void;
declare function add(obj: any): void;
declare var __VLS_inheritedAttrs: {};
declare const __VLS_templateResult: {
slots: Partial<Record<string, (_: {
item: import("../form/type.js").Column;
column: import("../form/type.js").Column;
record: any;
disabled: boolean | Boolean;
rowIndex: any;
size: "mini" | "small" | "medium" | "large";
}) => any>> & {
menu?(_: {
record: any;
rowIndex: any;
size: any;
}): any;
menuLeft?(_: {
record: any;
rowIndex: any;
size: any;
}): any;
menuRight?(_: {
record: any;
rowIndex: any;
size: any;
}): any;
add?(_: {}): any;
};
refs: {};
attrs: Partial<typeof __VLS_inheritedAttrs>;
};
type __VLS_Slots = typeof __VLS_templateResult['slots'];
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
option: {
type: () => TableOption;
default: () => {};
};
data: {
type: () => any[];
default: () => never[];
};
default: {
type: PropType<Record<string, any>>;
default: () => {};
};
isDisabled: {
type: PropType<(record: any, index: number) => boolean>;
default: () => (record: any, index: number) => false;
};
isDelBtn: {
type: PropType<(record: any, index: number) => boolean>;
default: () => (record: any, index: number) => true;
};
}>, {
add: typeof add;
del: typeof del;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
onAdd: (...args: any[]) => void;
onDel: (...args: any[]) => void;
}, string, import("vue").PublicProps, Readonly<{
default: Record<string, any>;
option: TableOption;
isDisabled: (record: any, index: number) => boolean;
data: any[];
isDelBtn: (record: any, index: number) => boolean;
} & {} & {
onOnAdd?: ((...args: any[]) => any) | undefined;
onOnDel?: ((...args: any[]) => any) | undefined;
}>, {
default: Record<string, any>;
option: TableOption;
isDisabled: (record: any, index: number) => boolean;
data: any[];
isDelBtn: (record: any, index: number) => boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};