UNPKG

yuang-framework-ui-pc

Version:

yuang-framework-ui-pc Library

72 lines (70 loc) 2.76 kB
import { PropType } from 'vue'; import { IconItem, FileItem, SelectionType, ContextOpenOption } from '../types'; declare const _default: import('vue').DefineComponent<{ /** 文件数据 */ data: PropType<FileItem[]>; /** 后缀对应的图标 */ icons: PropType<IconItem[]>; /** 选择框类型 */ selectionType: PropType<SelectionType>; /** 已选中的数据 */ selections: PropType<FileItem[]>; /** 单选选中数据 */ current: PropType<FileItem>; /** 是否是全选 */ isCheckAll: BooleanConstructor; /** 是否是半选 */ isIndeterminate: BooleanConstructor; /** 全选按钮文字 */ checkAllText: StringConstructor; /** 选中后的文字 */ selectedText: StringConstructor; /** 文件右键菜单是否打开 */ ctxMenuDropdownVisible: BooleanConstructor; /** 当前打开的右键菜单对应的文件数据 */ contextMenuFileItem: PropType<FileItem | null>; }, { headerText: import('vue').ComputedRef<string | undefined>; handleCheckAllChange: () => void; handleItemClick: (item: FileItem) => void; handleItemCheckChange: (item: FileItem) => void; handleItemContextOpen: (option: ContextOpenOption) => void; }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { checkAllChange: () => true; itemClick: (_item: FileItem) => true; itemCheckChange: (_item: FileItem) => true; itemContextOpen: (_option: ContextOpenOption) => true; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{ /** 文件数据 */ data: PropType<FileItem[]>; /** 后缀对应的图标 */ icons: PropType<IconItem[]>; /** 选择框类型 */ selectionType: PropType<SelectionType>; /** 已选中的数据 */ selections: PropType<FileItem[]>; /** 单选选中数据 */ current: PropType<FileItem>; /** 是否是全选 */ isCheckAll: BooleanConstructor; /** 是否是半选 */ isIndeterminate: BooleanConstructor; /** 全选按钮文字 */ checkAllText: StringConstructor; /** 选中后的文字 */ selectedText: StringConstructor; /** 文件右键菜单是否打开 */ ctxMenuDropdownVisible: BooleanConstructor; /** 当前打开的右键菜单对应的文件数据 */ contextMenuFileItem: PropType<FileItem | null>; }>> & { onCheckAllChange?: (() => any) | undefined; onItemClick?: ((_item: FileItem) => any) | undefined; onItemCheckChange?: ((_item: FileItem) => any) | undefined; onItemContextOpen?: ((_option: ContextOpenOption) => any) | undefined; }, { ctxMenuDropdownVisible: boolean; isCheckAll: boolean; isIndeterminate: boolean; }, {}>; export default _default;