@dt-frames/ui 1.0.4 → 1.0.7
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/imgs/header/avatar.png +0 -0
- package/es/components/curd/src/components/dialog.d.ts +22 -58
- package/es/components/curd/src/types/curd.type.d.ts +2 -1
- package/es/components/dialog/index.d.ts +2 -0
- package/es/components/dialog/src/hooks/useDialog.d.ts +3 -0
- package/es/components/forms/index.d.ts +2 -2
- package/es/components/forms/src/components/formIcon.d.ts +7 -48
- package/es/components/forms/src/index.d.ts +2 -6
- package/es/components/icons/src/pick-icon.d.ts +1 -0
- package/es/components/index.d.ts +2 -1
- package/es/components/modal/src/components/close-icon.d.ts +0 -43
- package/es/components/modal/src/components/modal-wrap.d.ts +1 -0
- package/es/components/modal/src/index.d.ts +1 -43
- package/es/components/modal/src/types/modal.type.d.ts +3 -3
- package/es/components/source/src/hooks/useSource.d.ts +10 -0
- package/es/components/source/src/types/source.type.d.ts +10 -1
- package/es/components/source/src/types/table.type.d.ts +1 -1
- package/es/components/table/index.d.ts +1 -1
- package/es/components/table/src/components/TableActions.d.ts +2 -2
- package/es/components/table/src/components/setting/Column.d.ts +7 -6
- package/es/components/table/src/components/setting/Download.d.ts +2 -2
- package/es/components/table/src/components/setting/Size.d.ts +2 -2
- package/es/components/table/src/hooks/useColumns.d.ts +1 -1
- package/es/components/table/src/hooks/useDataSource.d.ts +1 -3
- package/es/components/table/src/hooks/useHeaderCode.d.ts +3 -0
- package/es/components/table/src/hooks/useRowSelection.d.ts +2 -3
- package/es/components/table/src/index.d.ts +35 -20
- package/es/components/table/src/props.d.ts +10 -3
- package/es/components/table/src/types/table.type.d.ts +2 -2
- package/es/index.js +1315 -901
- package/es/style/components/icons/index.less +6 -1
- package/es/style/components/modal/index.less +0 -3
- package/es/style/components/table/index.less +12 -1
- package/es/style/theme/header/index.less +8 -4
- package/es/theme/header/components/logo.d.ts +43 -0
- package/es/theme/sider/components/basic-menu/basic-menu.d.ts +3 -3
- package/es/theme/tabs/components/TabContent.d.ts +2 -2
- package/package.json +6 -3
- package/src/assets/imgs/header/avatar.png +0 -0
- package/src/components/curd/src/components/dialog.vue +11 -5
- package/src/components/curd/src/hooks/useCurd.tsx +24 -9
- package/src/components/curd/src/types/curd.type.ts +3 -1
- package/src/components/dialog/index.ts +5 -0
- package/src/components/dialog/src/hooks/useDialog.ts +85 -0
- package/src/components/forms/index.ts +3 -4
- package/src/components/forms/src/components/formIcon.vue +3 -2
- package/src/components/forms/src/index.vue +14 -10
- package/src/components/icons/index.less +6 -1
- package/src/components/icons/src/pick-icon.vue +3 -1
- package/src/components/iframe/src/index.less +3 -0
- package/src/components/index.ts +3 -1
- package/src/components/modal/index.less +0 -3
- package/src/components/modal/src/components/close-icon.vue +3 -4
- package/src/components/modal/src/components/modal-wrap.vue +49 -39
- package/src/components/modal/src/components/modal.tsx +2 -2
- package/src/components/modal/src/components/modalFooter.vue +1 -1
- package/src/components/modal/src/hooks/useFullScreen.ts +3 -1
- package/src/components/modal/src/hooks/useModal.ts +23 -8
- package/src/components/modal/src/index.vue +1 -1
- package/src/components/modal/src/types/modal.type.ts +3 -3
- package/src/components/source/src/hooks/useFetch.ts +3 -4
- package/src/components/source/src/hooks/useSource.ts +21 -6
- package/src/components/source/src/types/source.type.ts +11 -1
- package/src/components/source/src/types/table.type.ts +1 -1
- package/src/components/table/index.less +12 -1
- package/src/components/table/index.ts +1 -1
- package/src/components/table/src/components/TableActions.vue +2 -2
- package/src/components/table/src/components/TableHeader.vue +1 -0
- package/src/components/table/src/components/TableRender.vue +8 -6
- package/src/components/table/src/components/setting/Column.vue +1 -2
- package/src/components/table/src/components/setting/Fullscreen.vue +1 -1
- package/src/components/table/src/components/setting/index.vue +2 -2
- package/src/components/table/src/hooks/useColumns.ts +2 -2
- package/src/components/table/src/hooks/useDataSource.ts +24 -13
- package/src/components/table/src/hooks/useHeaderCode.ts +89 -0
- package/src/components/table/src/hooks/useRowSelection.ts +2 -3
- package/src/components/table/src/hooks/useTable.ts +15 -2
- package/src/components/table/src/hooks/useTableHeader.ts +2 -2
- package/src/components/table/src/hooks/useTableScroll.ts +5 -3
- package/src/components/table/src/index.vue +18 -21
- package/src/components/table/src/props.ts +9 -4
- package/src/components/table/src/types/table.type.ts +2 -2
- package/src/theme/header/components/logo.vue +4 -2
- package/src/theme/header/components/user-info.vue +21 -4
- package/src/theme/header/index.less +8 -4
- package/es/index.css +0 -1
- package/es/style/components/forms/src/index.less +0 -82
- package/es/style/components/icons/src/index.less +0 -96
- package/es/style/components/modal/src/index.less +0 -60
- package/es/style/components/table/src/index.less +0 -162
- package/es/theme/header/components/user-info.d.ts +0 -452
|
@@ -330,7 +330,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
330
330
|
'onUpdate:visible': {
|
|
331
331
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
332
332
|
};
|
|
333
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "overlayStyle" | "disabled" | "
|
|
333
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "overlayStyle" | "disabled" | "forceRender" | "arrow" | "minOverlayWidthMatchTrigger" | "destroyPopupOnHide">;
|
|
334
334
|
$attrs: {
|
|
335
335
|
[x: string]: unknown;
|
|
336
336
|
};
|
|
@@ -767,7 +767,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
767
767
|
'onUpdate:openKeys': import("vue").PropType<(keys: import("ant-design-vue/lib/_util/type").Key[]) => void>;
|
|
768
768
|
'onUpdate:selectedKeys': import("vue").PropType<(keys: import("ant-design-vue/lib/_util/type").Key[]) => void>;
|
|
769
769
|
'onUpdate:activeKey': import("vue").PropType<(key: import("ant-design-vue/lib/_util/type").Key) => void>;
|
|
770
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "mode" | "
|
|
770
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "mode" | "theme" | "multiple" | "inlineCollapsed" | "disabledOverflow" | "forceSubMenuRender" | "selectable" | "inlineIndent" | "subMenuOpenDelay" | "subMenuCloseDelay" | "triggerSubMenuAction">;
|
|
771
771
|
$attrs: {
|
|
772
772
|
[x: string]: unknown;
|
|
773
773
|
};
|
|
@@ -331,7 +331,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
331
331
|
'onUpdate:visible': {
|
|
332
332
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
333
333
|
};
|
|
334
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "overlayStyle" | "disabled" | "
|
|
334
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "overlayStyle" | "disabled" | "forceRender" | "arrow" | "minOverlayWidthMatchTrigger" | "destroyPopupOnHide">;
|
|
335
335
|
$attrs: {
|
|
336
336
|
[x: string]: unknown;
|
|
337
337
|
};
|
|
@@ -768,7 +768,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
768
768
|
'onUpdate:openKeys': import("vue").PropType<(keys: import("ant-design-vue/lib/_util/type").Key[]) => void>;
|
|
769
769
|
'onUpdate:selectedKeys': import("vue").PropType<(keys: import("ant-design-vue/lib/_util/type").Key[]) => void>;
|
|
770
770
|
'onUpdate:activeKey': import("vue").PropType<(key: import("ant-design-vue/lib/_util/type").Key) => void>;
|
|
771
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "mode" | "
|
|
771
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "mode" | "theme" | "multiple" | "inlineCollapsed" | "disabledOverflow" | "forceSubMenuRender" | "selectable" | "inlineIndent" | "subMenuOpenDelay" | "subMenuCloseDelay" | "triggerSubMenuAction">;
|
|
772
772
|
$attrs: {
|
|
773
773
|
[x: string]: unknown;
|
|
774
774
|
};
|
|
@@ -6,7 +6,7 @@ export declare function useColumns(propsRef: ComputedRef<BasicTableProps>, getPa
|
|
|
6
6
|
getViewColumns: ComputedRef<BasicColumn[]>;
|
|
7
7
|
getColumnsRef: ComputedRef<BasicColumn[]>;
|
|
8
8
|
getColumns: (opt?: SetColumnsParams) => BasicColumn[];
|
|
9
|
-
setColumns: (columnList
|
|
9
|
+
setColumns: (columnList?: Partial<BasicColumn>[] | string[]) => void;
|
|
10
10
|
setCacheColumnsByField: (dataIndex: string | undefined, value: Partial<BasicColumn>) => void;
|
|
11
11
|
getCacheColumns: () => BasicColumn[];
|
|
12
12
|
};
|
|
@@ -8,9 +8,7 @@ declare type ActionsType = {
|
|
|
8
8
|
clearSelectedRowKeys: () => void;
|
|
9
9
|
};
|
|
10
10
|
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, clearSelectedRowKeys, }: ActionsType, emit: any): {
|
|
11
|
-
getDataSourceRef: ComputedRef<
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
}[]>;
|
|
11
|
+
getDataSourceRef: ComputedRef<Recordable<any>[]>;
|
|
14
12
|
handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => any;
|
|
15
13
|
};
|
|
16
14
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
1
2
|
import type { TableRowSelection } from 'ant-design-vue/lib/table/interface';
|
|
2
3
|
import { ComputedRef } from "vue";
|
|
3
4
|
import { BasicTableProps } from "../types/table.type";
|
|
@@ -6,8 +7,6 @@ export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>,
|
|
|
6
7
|
clearSelectedRowKeys: () => void;
|
|
7
8
|
getRowSelection: () => TableRowSelection<any>;
|
|
8
9
|
getSelectRowKeys: () => string[];
|
|
9
|
-
getSelectRows: () =>
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
}[];
|
|
10
|
+
getSelectRows: () => Recordable<any>[];
|
|
12
11
|
setSelectedRowKeys: (rowKeys: string[]) => void;
|
|
13
12
|
};
|
|
@@ -7,8 +7,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
default: boolean;
|
|
8
8
|
};
|
|
9
9
|
tableSetting: {
|
|
10
|
-
type:
|
|
11
|
-
default:
|
|
10
|
+
type: import("vue").PropType<import("./types/table.type").TableSetting>;
|
|
11
|
+
default: () => {};
|
|
12
12
|
};
|
|
13
13
|
striped: {
|
|
14
14
|
type: BooleanConstructor;
|
|
@@ -54,6 +54,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
type: import("vue").PropType<Recordable<any>>;
|
|
55
55
|
default: any;
|
|
56
56
|
};
|
|
57
|
+
columnCode: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
};
|
|
60
|
+
templates: {
|
|
61
|
+
type: import("vue").PropType<Recordable<any>>;
|
|
62
|
+
default: {};
|
|
63
|
+
};
|
|
57
64
|
columns: {
|
|
58
65
|
type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
|
|
59
66
|
default: () => any[];
|
|
@@ -259,26 +266,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
266
|
tableLayout: string;
|
|
260
267
|
size: SizeType;
|
|
261
268
|
bordered: boolean;
|
|
269
|
+
customRow: (record: any, index: any) => void;
|
|
270
|
+
childrenColumnName: string;
|
|
262
271
|
clickRowSelect: boolean;
|
|
263
|
-
tableSetting:
|
|
272
|
+
tableSetting: {};
|
|
264
273
|
striped: boolean;
|
|
265
274
|
canColDrag: boolean;
|
|
266
275
|
resizable: boolean;
|
|
267
276
|
virtual: boolean;
|
|
268
277
|
sortFn: Function;
|
|
269
278
|
filterFn: (data: Partial<Recordable<string[]>>) => any;
|
|
279
|
+
templates: {};
|
|
270
280
|
ellipsis: boolean;
|
|
271
281
|
onTableChange: Function;
|
|
272
282
|
onDownload: Function;
|
|
273
|
-
customRow: (record: any, index: any) => void;
|
|
274
|
-
childrenColumnName: string;
|
|
275
283
|
showIndexColumn: boolean;
|
|
276
284
|
indexColumnProps: import("./types/table.type").BasicColumn[];
|
|
277
285
|
isTreeTable: boolean;
|
|
286
|
+
rowClassName?: (record: any, index: number) => string;
|
|
278
287
|
minWidth?: number;
|
|
279
288
|
maxWidth?: number;
|
|
280
289
|
defSort?: any;
|
|
281
|
-
|
|
290
|
+
columnCode?: string;
|
|
282
291
|
operations?: unknown;
|
|
283
292
|
toolbar?: import("../../forms").ButtonProps[];
|
|
284
293
|
onColumnsChange?: (data: import("./types/table.type").ColumnChangeParam[]) => void;
|
|
@@ -341,9 +350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
341
350
|
'onUpdate:current': import("vue").PropType<(current: number) => void>;
|
|
342
351
|
'onUpdate:pageSize': import("vue").PropType<(size: number) => void>;
|
|
343
352
|
}>>, filters: Partial<Recordable<string[]>>, sorter: import("./types/table.type").SorterResult) => any;
|
|
344
|
-
getSelectRows: () =>
|
|
345
|
-
[x: string]: any;
|
|
346
|
-
}[];
|
|
353
|
+
getSelectRows: () => Recordable<any>[];
|
|
347
354
|
handleResizeColumn: (w: any, col: any) => void;
|
|
348
355
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("register" | "columns-change" | "selection-change")[], "register" | "columns-change" | "selection-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
349
356
|
clickRowSelect: {
|
|
@@ -351,8 +358,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
351
358
|
default: boolean;
|
|
352
359
|
};
|
|
353
360
|
tableSetting: {
|
|
354
|
-
type:
|
|
355
|
-
default:
|
|
361
|
+
type: import("vue").PropType<import("./types/table.type").TableSetting>;
|
|
362
|
+
default: () => {};
|
|
356
363
|
};
|
|
357
364
|
striped: {
|
|
358
365
|
type: BooleanConstructor;
|
|
@@ -398,6 +405,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
398
405
|
type: import("vue").PropType<Recordable<any>>;
|
|
399
406
|
default: any;
|
|
400
407
|
};
|
|
408
|
+
columnCode: {
|
|
409
|
+
type: StringConstructor;
|
|
410
|
+
};
|
|
411
|
+
templates: {
|
|
412
|
+
type: import("vue").PropType<Recordable<any>>;
|
|
413
|
+
default: {};
|
|
414
|
+
};
|
|
401
415
|
columns: {
|
|
402
416
|
type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
|
|
403
417
|
default: () => any[];
|
|
@@ -538,26 +552,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
538
552
|
size: SizeType;
|
|
539
553
|
loading: boolean;
|
|
540
554
|
bordered: boolean;
|
|
555
|
+
columns: import("./types/table.type").BasicColumn[];
|
|
556
|
+
scroll: {};
|
|
557
|
+
rowKey: string;
|
|
558
|
+
customRow: (record: any, index: any) => void;
|
|
559
|
+
childrenColumnName: string;
|
|
560
|
+
dataSource: Recordable<any>[];
|
|
561
|
+
pagination: {};
|
|
562
|
+
rowSelection: any;
|
|
541
563
|
clickRowSelect: boolean;
|
|
542
|
-
tableSetting:
|
|
564
|
+
tableSetting: {};
|
|
543
565
|
striped: boolean;
|
|
544
566
|
canColDrag: boolean;
|
|
545
567
|
resizable: boolean;
|
|
546
568
|
virtual: boolean;
|
|
547
569
|
sortFn: Function;
|
|
548
570
|
filterFn: (data: Partial<Recordable<string[]>>) => any;
|
|
549
|
-
rowKey: string;
|
|
550
571
|
defSort: any;
|
|
551
|
-
|
|
572
|
+
templates: {};
|
|
552
573
|
ellipsis: boolean;
|
|
553
|
-
dataSource: Recordable<any>[];
|
|
554
|
-
pagination: {};
|
|
555
|
-
scroll: {};
|
|
556
574
|
onTableChange: Function;
|
|
557
575
|
onDownload: Function;
|
|
558
|
-
rowSelection: any;
|
|
559
|
-
customRow: (record: any, index: any) => void;
|
|
560
|
-
childrenColumnName: string;
|
|
561
576
|
showIndexColumn: boolean;
|
|
562
577
|
indexColumnProps: import("./types/table.type").BasicColumn[];
|
|
563
578
|
isTreeTable: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Recordable } from '@dt-frames/core';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
import type { TableRowSelection } from 'ant-design-vue/lib/table/interface';
|
|
4
|
-
import { ActionType, BasicColumn, BtnsType, SizeType } from './types/table.type';
|
|
4
|
+
import { ActionType, BasicColumn, BtnsType, SizeType, TableSetting } from './types/table.type';
|
|
5
5
|
import { ButtonProps } from '../../forms';
|
|
6
6
|
import { DownloadType } from './types/tableHeader.type';
|
|
7
7
|
export declare const TableProps: {
|
|
@@ -10,8 +10,8 @@ export declare const TableProps: {
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
tableSetting: {
|
|
13
|
-
type:
|
|
14
|
-
default:
|
|
13
|
+
type: PropType<TableSetting>;
|
|
14
|
+
default: () => {};
|
|
15
15
|
};
|
|
16
16
|
striped: {
|
|
17
17
|
type: BooleanConstructor;
|
|
@@ -57,6 +57,13 @@ export declare const TableProps: {
|
|
|
57
57
|
type: PropType<Recordable<any>>;
|
|
58
58
|
default: any;
|
|
59
59
|
};
|
|
60
|
+
columnCode: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
templates: {
|
|
64
|
+
type: PropType<Recordable<any>>;
|
|
65
|
+
default: {};
|
|
66
|
+
};
|
|
60
67
|
columns: {
|
|
61
68
|
type: PropType<BasicColumn[]>;
|
|
62
69
|
default: () => any[];
|
|
@@ -11,7 +11,7 @@ export interface TableRowSelection<T = any> extends ITableRowSelection {
|
|
|
11
11
|
onSelectInvert?: (selectedRows: string[] | number[]) => any;
|
|
12
12
|
}
|
|
13
13
|
export declare type TableSetting = {
|
|
14
|
-
|
|
14
|
+
download?: boolean;
|
|
15
15
|
size?: boolean;
|
|
16
16
|
setting?: boolean;
|
|
17
17
|
fullscreen?: boolean;
|
|
@@ -31,7 +31,7 @@ export declare type SorterResult = {
|
|
|
31
31
|
field: string;
|
|
32
32
|
columnKey: string;
|
|
33
33
|
};
|
|
34
|
-
export declare type CellFormat = ((
|
|
34
|
+
export declare type CellFormat = ((record: Recordable, index: number, text: string) => any) | {
|
|
35
35
|
dict: DictType;
|
|
36
36
|
} | {
|
|
37
37
|
number: string;
|