yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
68 lines (66 loc) • 2.55 kB
TypeScript
import { PropType } from 'vue';
import { EleToolInstance, EleTooltipProps } from '../../ele-app/plus';
import { Columns } from '../../ele-data-table/types';
import { ColItem, TableLocale } from '../types';
declare const _default: import('vue').DefineComponent<{
/** 提示位置 */
placement: PropType<EleTooltipProps["placement"]>;
/** 表格国际化 */
locale: {
type: PropType<TableLocale>;
required: true;
};
/** 列数据 */
columns: PropType<Columns>;
/** 是否开启列拖拽排序 */
sortable: BooleanConstructor;
/** 是否开启开关固定列 */
allowFixed: BooleanConstructor;
/** 列配置缓存本地的名称 */
cacheKey: StringConstructor;
}, {
toolRef: import('vue').Ref<EleToolInstance>;
colItems: import('vue').Ref<{
uid: string;
label?: string | undefined;
checked?: boolean | undefined;
fixed?: (boolean | string) | undefined;
children?: any[] | undefined;
type?: string | undefined;
width?: (number | string) | undefined;
}[]>;
isCheckAll: import('vue').Ref<boolean>;
isIndeterminate: import('vue').Ref<boolean>;
handleCheckedChange: (item: ColItem, checked: boolean) => void;
handleCheckAllChange: (checked: boolean) => void;
handleReset: () => void;
handleSortChange: (items: ColItem[], parent?: ColItem) => void;
handleFixedLeft: (colItem: ColItem) => void;
handleFixedRight: (colItem: ColItem) => void;
handleFixedLeftTooltip: (el: HTMLElement) => void;
handleFixedRightTooltip: (el: HTMLElement) => void;
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
'update:columns': (_columns: Columns, _tableColumns: Columns, _isReset: boolean) => true;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
/** 提示位置 */
placement: PropType<EleTooltipProps["placement"]>;
/** 表格国际化 */
locale: {
type: PropType<TableLocale>;
required: true;
};
/** 列数据 */
columns: PropType<Columns>;
/** 是否开启列拖拽排序 */
sortable: BooleanConstructor;
/** 是否开启开关固定列 */
allowFixed: BooleanConstructor;
/** 列配置缓存本地的名称 */
cacheKey: StringConstructor;
}>> & {
"onUpdate:columns"?: ((_columns: Columns, _tableColumns: Columns, _isReset: boolean) => any) | undefined;
}, {
sortable: boolean;
allowFixed: boolean;
}, {}>;
export default _default;