element-pro-components
Version:
a component library for Vue 3 base on element-plus
53 lines (52 loc) • 1.89 kB
TypeScript
import type { Component, PropType } from 'vue';
import type { ComponentSize } from 'element-plus';
import type { ExternalParam } from '../types/index';
import type { ICrudColumns } from '../Crud/index';
import type { ITableColumns } from '../Table/index';
type TreeKeys = Array<keyof typeof treeProps>;
export declare const treeProps: {
emptyText: StringConstructor;
renderAfterExpand: BooleanConstructor;
expandOnClickNode: BooleanConstructor;
defaultExpandAll: BooleanConstructor;
checkOnClickNode: BooleanConstructor;
autoExpandParent: BooleanConstructor;
allowDrag: FunctionConstructor;
allowDrop: FunctionConstructor;
accordion: BooleanConstructor;
indent: NumberConstructor;
icon: PropType<string | Component>;
};
export declare const treeKeys: TreeKeys;
export declare const columnSettingProps: {
modelValue: {
type: PropType<ICrudColumns | ITableColumns>;
default: () => never[];
};
trigger: {
type: PropType<"hover" | "click" | "contextmenu">;
default: string;
};
placement: {
type: PropType<"top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end">;
default: string;
};
size: PropType<ComponentSize>;
highlightCurrent: BooleanConstructor;
filterNodeMethod: ExternalParam;
emptyText: StringConstructor;
renderAfterExpand: BooleanConstructor;
expandOnClickNode: BooleanConstructor;
defaultExpandAll: BooleanConstructor;
checkOnClickNode: BooleanConstructor;
autoExpandParent: BooleanConstructor;
allowDrag: FunctionConstructor;
allowDrop: FunctionConstructor;
accordion: BooleanConstructor;
indent: NumberConstructor;
icon: PropType<string | Component>;
};
export declare const columnSettingEmits: {
'update:modelValue': (value: ICrudColumns | ITableColumns) => boolean;
};
export {};