@fmdevui/fm-dev
Version:
Page level components developed based on Element Plus.
191 lines (190 loc) • 6.78 kB
TypeScript
import { FmSelectTableProps } from './type';
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
export type Emits = {
(event: "page-change", val: any): void;
(event: "selectionChange", val: any[], ids: any[]): void;
(event: "radioChange", row: any, value: any): void;
(event: "update:inputValue", val: string): void;
(event: "input-focus"): void;
(event: "input-blur"): void;
(event: "input-clear"): void;
(event: "input-click"): void;
};
declare function __VLS_template(): any;
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: DefineComponent<FmSelectTableProps, {
focus: () => void;
blur: () => void;
clear: () => void;
props: Readonly<{
value: any;
}> & {
readonly modelValue: any;
readonly inputValue: any;
readonly defaultSelectVal: any[];
readonly radioSelectValLabel: string;
readonly table: {
[key: string]: any;
data: any[];
currentPage: number;
pageSize: number;
total: number;
};
readonly keywords: {
value: any;
label: string;
};
readonly columns: any[];
readonly multiple: boolean;
readonly filterable: boolean;
readonly remote: boolean;
readonly remoteMethod: Function | undefined;
readonly filterMethod: Function | undefined;
readonly isShowInput: boolean;
readonly inputAttr: Record<string, any>;
readonly inputWidth: number;
readonly selectWidth: number;
readonly tableWidth: number;
readonly isShowQuery: boolean;
readonly isShowBlurBtn: boolean;
readonly btnBind: Record<string, any>;
readonly align: "left" | "right" | "center";
readonly reserveSelection: boolean;
readonly selectable: Function | undefined;
readonly multipleFixed: string | boolean;
readonly radioTxt: string;
readonly radioFixed: string | boolean;
readonly tableSize: "" | "default" | "small" | "large";
readonly border: boolean;
readonly isShowFirstColumn: boolean;
readonly useVirtual: boolean;
readonly virtualShowSize: number;
readonly isShowPagination: boolean;
readonly paginationSize: "" | "default" | "small" | "large";
readonly selfExpanded: boolean;
readonly isClearQuery: boolean;
readonly isRadioEchoLabel: boolean;
readonly defaultValIsOpenRadioChange: boolean;
readonly radioSameIsCancel: boolean;
readonly rowClickRadio: boolean;
readonly isKeyup: boolean;
readonly isExpanded: boolean;
readonly multipleDisableDelete: boolean;
readonly tableLoading: boolean;
readonly loadingTxt: string;
} & {
readonly modelValue: boolean | undefined;
readonly value: boolean;
readonly multiple: boolean;
readonly filterable: boolean;
readonly remote: boolean;
readonly border: boolean;
readonly inputValue: boolean | undefined;
readonly isShowInput: boolean;
readonly isShowQuery: boolean;
readonly isShowBlurBtn: boolean;
readonly reserveSelection: boolean;
readonly isShowFirstColumn: boolean;
readonly useVirtual: boolean;
readonly isShowPagination: boolean;
readonly selfExpanded: boolean;
readonly isClearQuery: boolean;
readonly isRadioEchoLabel: boolean;
readonly defaultValIsOpenRadioChange: boolean;
readonly radioSameIsCancel: boolean;
readonly rowClickRadio: boolean;
readonly isKeyup: boolean;
readonly isExpanded: boolean;
readonly multipleDisableDelete: boolean;
readonly tableLoading: boolean;
};
state: {
defaultSelectValue: any[];
tableData: any[];
defaultValue: any;
ids: any[];
tabularMap: any;
};
tQueryConditionRef: Ref<any, any>;
selectRef: Ref<any, any>;
selectTable: Ref<any, any>;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
"page-change": (val: any) => any;
selectionChange: (val: any[], ids: any[]) => any;
radioChange: (row: any, value: any) => any;
"update:inputValue": (val: string) => any;
"input-focus": () => any;
"input-blur": () => any;
"input-clear": () => any;
"input-click": () => any;
}, string, PublicProps, Readonly<FmSelectTableProps> & Readonly<{
"onPage-change"?: ((val: any) => any) | undefined;
onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
onRadioChange?: ((row: any, value: any) => any) | undefined;
"onUpdate:inputValue"?: ((val: string) => any) | undefined;
"onInput-focus"?: (() => any) | undefined;
"onInput-blur"?: (() => any) | undefined;
"onInput-clear"?: (() => any) | undefined;
"onInput-click"?: (() => any) | undefined;
}>, {
table: {
data: any[];
currentPage: number;
pageSize: number;
total: number;
[key: string]: any;
};
modelValue: any;
inputWidth: number;
multiple: boolean;
remoteMethod: Function;
filterable: boolean;
remote: boolean;
border: boolean;
inputValue: any;
defaultSelectVal: any[];
radioSelectValLabel: string;
keywords: {
value: any;
label: string;
};
columns: any[];
filterMethod: Function;
isShowInput: boolean;
inputAttr: Record<string, any>;
selectWidth: number;
tableWidth: number;
isShowQuery: boolean;
isShowBlurBtn: boolean;
btnBind: Record<string, any>;
align: "left" | "center" | "right";
reserveSelection: boolean;
selectable: Function;
multipleFixed: string | boolean;
radioTxt: string;
radioFixed: string | boolean;
tableSize: "" | "large" | "default" | "small";
isShowFirstColumn: boolean;
useVirtual: boolean;
virtualShowSize: number;
isShowPagination: boolean;
paginationSize: "" | "large" | "default" | "small";
selfExpanded: boolean;
isClearQuery: boolean;
isRadioEchoLabel: boolean;
defaultValIsOpenRadioChange: boolean;
radioSameIsCancel: boolean;
rowClickRadio: boolean;
isKeyup: boolean;
isExpanded: boolean;
multipleDisableDelete: boolean;
tableLoading: boolean;
loadingTxt: string;
}, {}, {}, {}, string, ComponentProvideOptions, false, any, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};