asp-smart-ui-plus-test
Version:
A Component Library for Vue 3
123 lines (122 loc) • 5.29 kB
TypeScript
export interface ColType {
width?: string;
show?: boolean | ((column: ColType) => boolean);
isParent?: boolean;
color?: string | ((arg: any) => string);
tooltip?: string | ((arg: any) => string);
filterList?: any[];
filtered?: any[];
checkAll?: boolean;
filterAllChange?: (arg: any) => void;
filterChange?: (arg: any) => void;
filterKey?: string;
label?: string;
inputFunc?: (arg: any) => void;
changeFunc?: (arg: any) => void;
sort?: boolean | string;
key: string;
fixed?: string;
resizable?: boolean;
showTooltip?: boolean;
renderHeader?: (arg: any) => void;
editType?: string;
rules?: any[];
maxlength?: number;
placeholder?: string;
func?: (arg: any) => void;
[x: string]: any;
}
declare const _default: import("vue").DefineComponent<{
col: {
type: () => ColType;
default: () => {};
};
}, {
emit: (event: "input", ...args: any[]) => void;
input: ({ index, row }: {
index: number;
row: any;
}) => void;
tableColumn: import("vue").DefineComponent<{
col: {
type: () => import("./table-column.vue").ColType;
default: () => {};
};
}, {
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
col: {
type: () => import("./table-column.vue").ColType;
default: () => {};
};
}>> & {
onFilterChange?: ((...args: any[]) => any) | undefined;
onFilterConfirm?: ((...args: any[]) => any) | undefined;
onFilterReset?: ((...args: any[]) => any) | undefined;
}>>;
col: import("vue").Ref<{
[x: string]: any;
width?: string | undefined;
show?: boolean | ((column: import("./table-column.vue").ColType) => boolean) | undefined;
isParent?: boolean | undefined;
color?: string | ((arg: any) => string) | undefined;
tooltip?: string | ((arg: any) => string) | undefined;
filterList?: any[] | undefined;
filtered?: any[] | undefined;
checkAll?: boolean | undefined;
filterAllChange?: ((arg: any) => void) | undefined;
filterChange?: ((arg: any) => void) | undefined;
filterKey?: string | undefined;
label?: string | undefined;
inputFunc?: ((arg: any) => void) | undefined;
changeFunc?: ((arg: any) => void) | undefined;
sort?: string | boolean | undefined;
key: string;
fixed?: string | undefined;
resizable?: boolean | undefined;
showTooltip?: boolean | undefined;
renderHeader?: ((arg: any) => void) | undefined;
editType?: string | undefined;
rules?: any[] | undefined;
maxlength?: number | undefined;
placeholder?: string | undefined;
func?: ((arg: any) => void) | undefined;
}>;
emit: (event: "filterChange" | "filterConfirm" | "filterReset", ...args: any[]) => void;
setColor: (col: import("./table-column.vue").ColType, row: any) => string | undefined;
setToolTip: (col: import("./table-column.vue").ColType, row: any) => string | undefined;
handleCommand: (btn: import("./table-column.vue").ColType, row: any) => void;
handleIconCommand: (btn: import("./table-column.vue").ColType, row: any) => void;
handleTag: (tag: import("./table-column.vue").TagType, row: any) => string | undefined;
handleFormInput: (col: import("./table-column.vue").ColType, index: number, row: any) => void;
handleFormChange: (col: import("./table-column.vue").ColType, index: number, row: any) => void;
handleFilterRenderHeader: ({ column, $index, }: {
column: any;
$index: number;
}) => void;
filterChange: (val: any[]) => void;
handleFilterAllChange: (val: any[]) => void;
filterConfirm: () => void;
filterReset: () => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("filterChange" | "filterConfirm" | "filterReset")[], "filterChange" | "filterConfirm" | "filterReset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
col: {
type: () => import("./table-column.vue").ColType;
default: () => {};
};
}>> & {
onFilterChange?: ((...args: any[]) => any) | undefined;
onFilterConfirm?: ((...args: any[]) => any) | undefined;
onFilterReset?: ((...args: any[]) => any) | undefined;
}, {
col: import("./table-column.vue").ColType;
}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "input"[], "input", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
col: {
type: () => ColType;
default: () => {};
};
}>> & {
onInput?: ((...args: any[]) => any) | undefined;
}, {
col: ColType;
}>;
export default _default;