@dt-frames/ui 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/assets/data/icons/actions.d.ts +1 -0
- package/es/assets/data/icons/actions.ts +423 -0
- package/es/assets/data/icons/code.d.ts +1 -0
- package/es/assets/data/icons/code.ts +10 -0
- package/es/assets/data/icons/commuticate.d.ts +1 -0
- package/es/assets/data/icons/commuticate.ts +182 -0
- package/es/assets/data/icons/currency.d.ts +1 -0
- package/es/assets/data/icons/currency.ts +44 -0
- package/es/assets/data/icons/devices.d.ts +1 -0
- package/es/assets/data/icons/devices.ts +126 -0
- package/es/assets/data/icons/edit.d.ts +1 -0
- package/es/assets/data/icons/edit.ts +163 -0
- package/es/assets/data/icons/file.d.ts +1 -0
- package/es/assets/data/icons/file.ts +99 -0
- package/es/assets/data/icons/math.d.ts +1 -0
- package/es/assets/data/icons/math.ts +53 -0
- package/es/assets/data/icons/message.d.ts +1 -0
- package/es/assets/data/icons/message.ts +68 -0
- package/es/assets/data/icons/navigate.d.ts +1 -0
- package/es/assets/data/icons/navigate.ts +181 -0
- package/es/assets/data/icons/other.d.ts +1 -0
- package/es/assets/data/icons/other.ts +324 -0
- package/es/assets/data/index.d.ts +4 -0
- package/es/assets/data/index.ts +58 -0
- package/es/assets/icons/iconfont.css +7266 -0
- package/es/assets/icons/iconfont.eot +0 -0
- package/es/assets/icons/iconfont.svg +5445 -0
- package/es/assets/icons/iconfont.ttf +0 -0
- package/es/assets/icons/iconfont.woff +0 -0
- package/es/assets/icons/iconfont.woff2 +0 -0
- package/es/assets/imgs/header/avatar.png +0 -0
- package/es/assets/imgs/logo/logo.png +0 -0
- package/es/assets/imgs/table/empty.png +0 -0
- package/es/assets/locales/en.d.ts +101 -0
- package/es/assets/locales/en.ts +101 -0
- package/es/assets/locales/index.d.ts +2 -0
- package/es/assets/locales/index.ts +5 -0
- package/es/assets/locales/zh.d.ts +103 -0
- package/es/assets/locales/zh.ts +103 -0
- package/es/components/container/index.d.ts +94 -0
- package/es/components/container/index.js +290 -0
- package/es/components/container/index.less +64 -0
- package/es/components/container/src/components/bar.d.ts +14 -0
- package/es/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/components/container/src/scroll-container.d.ts +76 -0
- package/es/components/container/src/slot-container.d.ts +20 -0
- package/es/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/components/container/src/utils/scroll.d.ts +5 -0
- package/es/components/curd/index.d.ts +2 -0
- package/es/components/curd/index.js +3120 -0
- package/es/components/curd/src/components/Curd.d.ts +1246 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +112 -0
- package/es/components/curd/src/props.d.ts +187 -0
- package/es/components/curd/src/types/curd.type.d.ts +19 -0
- package/es/components/drawer/index.d.ts +8039 -0
- package/es/components/drawer/index.js +838 -0
- package/es/components/drawer/index.less +10 -0
- package/es/components/drawer/src/components/DrawerFooter.d.ts +139 -0
- package/es/components/drawer/src/components/DrawerHeader.d.ts +11 -0
- package/es/components/drawer/src/hooks/useDrawer.d.ts +3 -0
- package/es/components/drawer/src/index.d.ts +8041 -0
- package/es/components/drawer/src/props.d.ts +64 -0
- package/es/components/drawer/src/types/index.type.d.ts +48 -0
- package/es/components/form/index.d.ts +3219 -0
- package/es/components/form/index.js +1896 -0
- package/es/components/form/index.less +141 -0
- package/es/components/form/src/components/FormButtons.d.ts +88 -0
- package/es/components/form/src/components/FormItem.d.ts +165 -0
- package/es/components/form/src/components/componentMap.d.ts +4 -0
- package/es/components/form/src/components/formIcon.d.ts +1231 -0
- package/es/components/form/src/components/formInputUseDialog.d.ts +911 -0
- package/es/components/form/src/components/index.d.ts +4 -0
- package/es/components/form/src/components/radioButton.d.ts +34 -0
- package/es/components/form/src/enums/index.d.ts +7 -0
- package/es/components/form/src/hooks/helper.d.ts +14 -0
- package/es/components/form/src/hooks/useForm.d.ts +6 -0
- package/es/components/form/src/hooks/useFormActions.d.ts +12 -0
- package/es/components/form/src/hooks/useFormEvent.d.ts +25 -0
- package/es/components/form/src/hooks/useFormValue.d.ts +3 -0
- package/es/components/form/src/hooks/useFormValues.d.ts +11 -0
- package/es/components/form/src/hooks/useLabelWidth.d.ts +22 -0
- package/es/components/form/src/index.d.ts +2965 -0
- package/es/components/form/src/props.d.ts +133 -0
- package/es/components/form/src/types/actions.type.d.ts +15 -0
- package/es/components/form/src/types/form.type.d.ts +70 -0
- package/es/components/icons/index.d.ts +497 -0
- package/es/components/icons/index.js +1969 -0
- package/es/components/icons/index.less +42 -0
- package/es/components/icons/src/pick-icon.d.ts +455 -0
- package/es/components/icons/src/svg-icon.d.ts +44 -0
- package/es/components/modal/index.d.ts +3 -0
- package/es/components/modal/index.js +1193 -0
- package/es/components/modal/index.less +54 -0
- package/es/components/modal/src/components/CloseIcon.d.ts +40 -0
- package/es/components/modal/src/components/Modal.d.ts +108 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +139 -0
- package/es/components/modal/src/components/ModalWrap.d.ts +153 -0
- package/es/components/modal/src/hooks/useDrag.d.ts +7 -0
- package/es/components/modal/src/hooks/useFullScreen.d.ts +6 -0
- package/es/components/modal/src/hooks/useModal.d.ts +5 -0
- package/es/components/modal/src/index.d.ts +774 -0
- package/es/components/modal/src/props.d.ts +100 -0
- package/es/components/modal/src/types/modal.type.d.ts +17 -0
- package/es/components/source/hooks/useDownload.d.ts +8 -0
- package/es/components/source/hooks/useSource.d.ts +40 -0
- package/es/components/source/index.d.ts +2 -0
- package/es/components/source/index.js +332 -0
- package/es/components/source/types/source.type.d.ts +37 -0
- package/es/components/source/utils/index.d.ts +8 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +3983 -0
- package/es/components/table/index.less +192 -0
- package/es/components/table/src/components/TableAction.d.ts +70 -0
- package/es/components/table/src/components/TableHeader.d.ts +1136 -0
- package/es/components/table/src/components/TableRender.d.ts +17 -0
- package/es/components/table/src/components/editTable/CellComponent.d.ts +22 -0
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +93 -0
- package/es/components/table/src/components/editTable/componentMap.d.ts +4 -0
- package/es/components/table/src/components/editTable/index.d.ts +9 -0
- package/es/components/table/src/components/editTable/props.d.ts +27 -0
- package/es/components/table/src/components/tableSetting/Column.d.ts +69 -0
- package/es/components/table/src/components/tableSetting/Download.d.ts +922 -0
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +888 -0
- package/es/components/table/src/components/tableSetting/Fullscreen.d.ts +22 -0
- package/es/components/table/src/components/tableSetting/index.d.ts +1030 -0
- package/es/components/table/src/hooks/useColumns.d.ts +14 -0
- package/es/components/table/src/hooks/useCustomRow.d.ts +20 -0
- package/es/components/table/src/hooks/useDataSource.d.ts +15 -0
- package/es/components/table/src/hooks/useHeader.d.ts +8 -0
- package/es/components/table/src/hooks/useHeaderCode.d.ts +3 -0
- package/es/components/table/src/hooks/useLoading.d.ts +6 -0
- package/es/components/table/src/hooks/usePagination.d.ts +7 -0
- package/es/components/table/src/hooks/useRow.d.ts +5 -0
- package/es/components/table/src/hooks/useRowSelection.d.ts +12 -0
- package/es/components/table/src/hooks/useTable.d.ts +9 -0
- package/es/components/table/src/hooks/useTableInstance.d.ts +16 -0
- package/es/components/table/src/hooks/useTableScroll.d.ts +13 -0
- package/es/components/table/src/index.d.ts +644 -0
- package/es/components/table/src/props.d.ts +185 -0
- package/es/components/table/src/types/actions.type.d.ts +21 -0
- package/es/components/table/src/types/header.type.d.ts +23 -0
- package/es/components/table/src/types/table.type.d.ts +98 -0
- package/es/directives/icon.d.ts +2 -0
- package/es/directives/index.d.ts +7 -0
- package/es/directives/index.js +2015 -0
- package/es/directives/permission.d.ts +2 -0
- package/es/global.d.ts +7 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +4 -0
- package/es/theme/index.d.ts +10 -0
- package/es/theme/index.js +3255 -0
- package/es/theme/index.less +603 -0
- package/es/theme/src/components/content/index.d.ts +27 -0
- package/es/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/theme/src/components/feature/index.d.ts +7 -0
- package/es/theme/src/components/footer/index.d.ts +31 -0
- package/es/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/theme/src/components/header/components/index.d.ts +11 -0
- package/es/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/theme/src/components/header/components/logo.d.ts +35 -0
- package/es/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/theme/src/components/header/components/notify.d.ts +24 -0
- package/es/theme/src/components/header/components/setting-theme.d.ts +223 -0
- package/es/theme/src/components/header/components/size.d.ts +282 -0
- package/es/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/theme/src/components/header/components/user-info.d.ts +37 -0
- package/es/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/theme/src/components/header/helper/menu-tree.d.ts +3 -0
- package/es/theme/src/components/header/index.d.ts +699 -0
- package/es/theme/src/components/header/multiple-header.d.ts +785 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +18 -0
- package/es/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/theme/src/components/sider/index.d.ts +70 -0
- package/es/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/theme/src/components/tabs/index.d.ts +63 -0
- package/es/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/theme/src/enums/index.d.ts +1 -0
- package/es/theme/src/enums/theme.enum.d.ts +33 -0
- package/es/theme/src/hooks/index.d.ts +6 -0
- package/es/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/theme/src/hooks/useMenu.d.ts +27 -0
- package/es/theme/src/hooks/useMultifyTab.d.ts +7 -0
- package/es/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/theme/src/index.d.ts +1643 -0
- package/es/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/theme/src/stores/index.d.ts +3 -0
- package/es/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/theme/src/stores/theme.store.d.ts +15 -0
- package/es/theme/src/types/index.d.ts +3 -0
- package/es/theme/src/types/menu.type.d.ts +15 -0
- package/es/theme/src/types/theme.type.d.ts +60 -0
- package/es/utils/withInstall.d.ts +4 -0
- package/index.d.ts +10 -0
- package/index.js +34 -0
- package/package.json +3 -6
- package/tailwind.config.cjs +11 -0
- package/tsconfig.json +41 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +51 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaginationProps } from "ant-design-vue";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { BasicColumn, BasicTableProps } from "../types/table.type";
|
|
4
|
+
import { SetColumnsParams } from "../types/header.type";
|
|
5
|
+
export declare function useColumns(propsRef: ComputedRef<BasicTableProps>, getPaginationRef: ComputedRef<boolean | PaginationProps>, tableElRef: Ref<HTMLDivElement & {
|
|
6
|
+
$el: any;
|
|
7
|
+
} | null>): {
|
|
8
|
+
getViewColumns: ComputedRef<BasicColumn[]>;
|
|
9
|
+
getColumnsRef: ComputedRef<BasicColumn[]>;
|
|
10
|
+
getColumns: (opt?: SetColumnsParams) => BasicColumn[];
|
|
11
|
+
setColumns: (columnList?: Partial<BasicColumn>[] | string[]) => void;
|
|
12
|
+
setColumnsByDataIndex: (dataIndex: string | undefined, value: Partial<BasicColumn>) => void;
|
|
13
|
+
getCacheColumns: () => BasicColumn[];
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { Key } from "ant-design-vue/lib/table/interface";
|
|
3
|
+
import { ComputedRef } from "vue";
|
|
4
|
+
import { BasicTableProps } from "../types/table.type";
|
|
5
|
+
interface Options {
|
|
6
|
+
setSelectedRowKeys: (keys: Key[]) => void;
|
|
7
|
+
getSelectedRowKeys: () => Key[];
|
|
8
|
+
clearSelectedRowKeys: () => void;
|
|
9
|
+
emits: any;
|
|
10
|
+
}
|
|
11
|
+
export declare function useCustomRow(propsRef: ComputedRef<BasicTableProps>, { setSelectedRowKeys, getSelectedRowKeys, clearSelectedRowKeys, emits }: Options): {
|
|
12
|
+
customRow: (record: Recordable, index: number) => {
|
|
13
|
+
onClick: (e: any) => void;
|
|
14
|
+
onDblclick: (event: Event) => void;
|
|
15
|
+
onContextmenu: (event: Event) => void;
|
|
16
|
+
onMouseenter: (event: Event) => void;
|
|
17
|
+
onMouseleave: (event: Event) => void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { BasicTableProps, SorterResult, PaginationProps } from "../types/table.type";
|
|
3
|
+
import { Recordable } from "@dt-frames/core";
|
|
4
|
+
declare type ActionsType = {
|
|
5
|
+
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
6
|
+
setPagination: (info: Partial<PaginationProps>) => void;
|
|
7
|
+
clearSelectedRowKeys: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, clearSelectedRowKeys, }: ActionsType): {
|
|
10
|
+
getDataSourceRef: ComputedRef<Recordable<any>[]>;
|
|
11
|
+
handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => any;
|
|
12
|
+
updateTableDataRecord: (rowKey: string | number, record: Recordable) => Recordable | undefined;
|
|
13
|
+
findTableDataRecord: (rowKey: string | number) => any;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { ComputedRef, Slots } from "vue";
|
|
3
|
+
import { BasicTableProps, ColumnChangeParam } from "../types/table.type";
|
|
4
|
+
export declare function useTableHeader(propsRef: ComputedRef<BasicTableProps>, slots: Slots, handlers: {
|
|
5
|
+
onColumnsChange: (data: ColumnChangeParam[]) => void;
|
|
6
|
+
}): {
|
|
7
|
+
getHeaderProps: ComputedRef<Recordable<any>>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { BasicTableProps, PaginationProps } from "../types/table.type";
|
|
3
|
+
export declare function usePagination(props: ComputedRef<BasicTableProps>): {
|
|
4
|
+
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
5
|
+
setPagination: (info: Partial<PaginationProps>) => void;
|
|
6
|
+
getPagination: () => boolean | PaginationProps;
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { Key, TableRowSelection } from "ant-design-vue/es/table/interface";
|
|
3
|
+
import { ComputedRef } from "vue";
|
|
4
|
+
import { BasicTableProps } from "../types/table.type";
|
|
5
|
+
export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>, emit: any): {
|
|
6
|
+
getRowSelectionRef: ComputedRef<TableRowSelection<any>>;
|
|
7
|
+
clearSelectedRowKeys: () => void;
|
|
8
|
+
getRowSelection: () => TableRowSelection<any>;
|
|
9
|
+
getSelectedRowKeys: () => Key[];
|
|
10
|
+
getSelectRows: () => Recordable<any>[];
|
|
11
|
+
setSelectedRowKeys: (rowKeys: Key[]) => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DynamicProps } from '@dt-frames/core';
|
|
2
|
+
import { TableActionType } from '../types/actions.type';
|
|
3
|
+
import { BasicTableProps } from "../types/table.type";
|
|
4
|
+
declare type Props = Partial<DynamicProps<BasicTableProps>>;
|
|
5
|
+
export declare function useTable(props?: Props): [
|
|
6
|
+
registerTable: (instance: TableActionType) => void,
|
|
7
|
+
methods: TableActionType
|
|
8
|
+
];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Nullable, Recordable } from "@dt-frames/core";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { TableActionType } from "../types/actions.type";
|
|
4
|
+
import { BasicTableProps } from "../types/table.type";
|
|
5
|
+
declare type Instance = TableActionType & {
|
|
6
|
+
tableElRef: Ref<Nullable<HTMLElement>>;
|
|
7
|
+
getBind: ComputedRef<Recordable>;
|
|
8
|
+
getProps: ComputedRef<Recordable>;
|
|
9
|
+
};
|
|
10
|
+
declare type RetInstance = Omit<Instance, 'getBind'> & {
|
|
11
|
+
getBind: ComputedRef<BasicTableProps>;
|
|
12
|
+
getProps: ComputedRef<Recordable>;
|
|
13
|
+
};
|
|
14
|
+
export declare function createTableInstance(instance: Instance): void;
|
|
15
|
+
export declare function getTableInstance(): RetInstance;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TableRowSelection } from "ant-design-vue/es/table/interface";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { BasicColumn, BasicTableProps } from "../types/table.type";
|
|
4
|
+
export declare function useTableScroll(propsRef: ComputedRef<BasicTableProps>, tableElRef: Ref<HTMLDivElement & {
|
|
5
|
+
$el: any;
|
|
6
|
+
} | null>, columnsRef: ComputedRef<BasicColumn[]>, rowSelectionRef: ComputedRef<TableRowSelection | null>): {
|
|
7
|
+
getScrollRef: ComputedRef<{
|
|
8
|
+
x: string | number | true;
|
|
9
|
+
y: string | number;
|
|
10
|
+
scrollToFirstRowOnChange: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
filterSource: Ref<any[]>;
|
|
13
|
+
};
|