@dt-frames/ui 1.0.6 → 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.
Files changed (44) hide show
  1. package/es/components/curd/src/components/dialog.d.ts +1 -0
  2. package/es/components/forms/src/components/formIcon.d.ts +3 -1
  3. package/es/components/icons/src/pick-icon.d.ts +1 -0
  4. package/es/components/modal/src/components/modal-wrap.d.ts +1 -0
  5. package/es/components/modal/src/index.d.ts +1 -0
  6. package/es/components/modal/src/types/modal.type.d.ts +3 -3
  7. package/es/components/source/src/hooks/useSource.d.ts +10 -0
  8. package/es/components/source/src/types/source.type.d.ts +10 -1
  9. package/es/components/table/src/components/TableActions.d.ts +2 -2
  10. package/es/components/table/src/components/setting/Column.d.ts +1 -1
  11. package/es/components/table/src/components/setting/Download.d.ts +2 -2
  12. package/es/components/table/src/components/setting/Size.d.ts +2 -2
  13. package/es/components/table/src/hooks/useHeaderCode.d.ts +3 -2
  14. package/es/components/table/src/index.d.ts +23 -20
  15. package/es/components/table/src/props.d.ts +5 -4
  16. package/es/components/table/src/types/table.type.d.ts +2 -2
  17. package/es/index.js +880 -837
  18. package/es/style/components/icons/index.less +5 -1
  19. package/es/theme/sider/components/basic-menu/basic-menu.d.ts +3 -3
  20. package/es/theme/tabs/components/TabContent.d.ts +2 -2
  21. package/package.json +3 -3
  22. package/src/components/forms/src/components/formIcon.vue +3 -2
  23. package/src/components/forms/src/index.vue +14 -10
  24. package/src/components/icons/index.less +5 -1
  25. package/src/components/icons/src/pick-icon.vue +3 -1
  26. package/src/components/modal/src/components/modal-wrap.vue +49 -39
  27. package/src/components/modal/src/components/modal.tsx +1 -1
  28. package/src/components/modal/src/hooks/useFullScreen.ts +3 -1
  29. package/src/components/modal/src/hooks/useModal.ts +23 -7
  30. package/src/components/modal/src/index.vue +1 -1
  31. package/src/components/modal/src/types/modal.type.ts +3 -3
  32. package/src/components/source/src/hooks/useSource.ts +18 -4
  33. package/src/components/source/src/types/source.type.ts +11 -1
  34. package/src/components/table/src/components/TableHeader.vue +1 -0
  35. package/src/components/table/src/components/TableRender.vue +8 -6
  36. package/src/components/table/src/components/setting/Fullscreen.vue +1 -1
  37. package/src/components/table/src/components/setting/index.vue +2 -2
  38. package/src/components/table/src/hooks/useDataSource.ts +24 -13
  39. package/src/components/table/src/hooks/useHeaderCode.ts +9 -2
  40. package/src/components/table/src/hooks/useTable.ts +5 -4
  41. package/src/components/table/src/hooks/useTableHeader.ts +2 -2
  42. package/src/components/table/src/index.vue +0 -2
  43. package/src/components/table/src/props.ts +3 -3
  44. package/src/components/table/src/types/table.type.ts +2 -2
@@ -748,6 +748,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
748
748
  [x: string]: string;
749
749
  minHeight: string;
750
750
  }>;
751
+ getModalDom: () => Promise<any>;
751
752
  setModalHeight: () => Promise<void>;
752
753
  ScrollContainer: import("vue").DefineComponent<{}, {
753
754
  scrollbarRef: any;
@@ -5,7 +5,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
5
5
  iconRef: any;
6
6
  register: import("../../../modal/src/types/modal.type").RegisterFn;
7
7
  openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
8
- closeModal: () => void;
8
+ closeModal: (rsp: import("@dt-frames/core").Recordable<any>) => void;
9
9
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
10
10
  value: StringConstructor;
11
11
  placeholder: StringConstructor;
@@ -1230,6 +1230,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1230
1230
  activeIndex: import("vue").Ref<number>;
1231
1231
  filter: any;
1232
1232
  currentIcons: import("vue").Ref<any[]>;
1233
+ activeIcon: any;
1233
1234
  iconMenus: import("vue").ComputedRef<{
1234
1235
  type: string;
1235
1236
  total: number;
@@ -2136,6 +2137,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2136
2137
  [x: string]: string;
2137
2138
  minHeight: string;
2138
2139
  }>;
2140
+ getModalDom: () => Promise<any>;
2139
2141
  setModalHeight: () => Promise<void>;
2140
2142
  ScrollContainer: import("vue").DefineComponent<{}, {
2141
2143
  scrollbarRef: any;
@@ -8,6 +8,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
8
8
  activeIndex: import("vue").Ref<number>;
9
9
  filter: any;
10
10
  currentIcons: import("vue").Ref<any[]>;
11
+ activeIcon: any;
11
12
  iconMenus: import("vue").ComputedRef<IconMenu[]>;
12
13
  getIcons: () => string[];
13
14
  onFilter: (e: any) => void;
@@ -85,6 +85,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
85
85
  [x: string]: string;
86
86
  minHeight: string;
87
87
  }>;
88
+ getModalDom: () => Promise<any>;
88
89
  setModalHeight: () => Promise<void>;
89
90
  ScrollContainer: import("vue").DefineComponent<{}, {
90
91
  scrollbarRef: any;
@@ -482,6 +482,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
482
482
  [x: string]: string;
483
483
  minHeight: string;
484
484
  }>;
485
+ getModalDom: () => Promise<any>;
485
486
  setModalHeight: () => Promise<void>;
486
487
  ScrollContainer: import("vue").DefineComponent<{}, {
487
488
  scrollbarRef: any;
@@ -1,4 +1,4 @@
1
- import { ModalProps } from "@dt-frames/core";
1
+ import { ModalProps, Recordable } from "@dt-frames/core";
2
2
  import { ComputedRef } from "vue";
3
3
  export declare type ModalMethods = {
4
4
  setModalProps: (props: Partial<ModalProps>) => void;
@@ -6,13 +6,13 @@ export declare type ModalMethods = {
6
6
  redoModalHeight?: () => void;
7
7
  };
8
8
  export interface ReturnMethods extends ModalMethods {
9
- openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
9
+ openModal: <T = any>(data?: T, openOnSet?: boolean) => void;
10
10
  closeModal: () => void;
11
11
  getVisible?: ComputedRef<boolean>;
12
12
  }
13
13
  export interface ReturnInnerMethods extends ModalMethods {
14
14
  openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
15
- closeModal: () => void;
15
+ closeModal: (rsp: Recordable) => void;
16
16
  changeLoading: (loading: boolean) => void;
17
17
  getVisible?: ComputedRef<boolean>;
18
18
  redoModalHeight: () => void;
@@ -5,6 +5,7 @@ import { TableParamsType } from '../types/table.type';
5
5
  import { DownloadType } from '../../../table/src/types/tableHeader.type';
6
6
  export declare function useSource(opt: SourceType): {
7
7
  api: import("../types/source.type").ApiObjType;
8
+ apiFul: Recordable<any>;
8
9
  form: {
9
10
  onSearch: (model: Recordable) => void;
10
11
  onReset: (model: Recordable) => void;
@@ -29,5 +30,14 @@ export declare function useSource(opt: SourceType): {
29
30
  onUpdate: (model: Recordable) => void;
30
31
  onDeletes: (ids: any) => void;
31
32
  };
33
+ loading: {
34
+ [key: string]: Ref<boolean>;
35
+ };
36
+ onAdd: (model: Recordable) => void;
37
+ onQueryById: (id: string) => Promise<unknown>;
38
+ onDeletes: (ids: any) => void;
39
+ onUpdate: (model: Recordable) => void;
40
+ onTableChange: (params: TableParamsType, needSearch?: boolean) => void;
41
+ onDownload: (excelData: DownloadType) => void;
32
42
  onSearch: (model: Recordable) => void;
33
43
  };
@@ -1,10 +1,19 @@
1
1
  import { Recordable } from "@dt-frames/core";
2
+ export declare type PageQueryType = {
3
+ entityDTO: Recordable;
4
+ orderDTOs: Recordable[];
5
+ pageDTO: {
6
+ pageNo: number;
7
+ pageSize: number;
8
+ [key: string]: any;
9
+ };
10
+ };
2
11
  export declare type ApiType = {
3
12
  api: string;
4
13
  type?: 'get' | 'post' | 'put' | 'delete';
5
14
  header?: any;
6
15
  model?: Recordable;
7
- beforeFetch?: (params: Recordable) => boolean;
16
+ beforeFetch?: <T = any>(params: T) => T;
8
17
  afterFetch?: <T = any>(data: any) => T;
9
18
  };
10
19
  export declare type ApiObjType = {
@@ -387,7 +387,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
387
387
  'onUpdate:visible': {
388
388
  type: PropType<(val: boolean) => void>;
389
389
  };
390
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "overlayStyle" | "disabled" | "arrow" | "forceRender" | "minOverlayWidthMatchTrigger" | "destroyPopupOnHide">;
390
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visible" | "overlayStyle" | "disabled" | "forceRender" | "arrow" | "minOverlayWidthMatchTrigger" | "destroyPopupOnHide">;
391
391
  $attrs: {
392
392
  [x: string]: unknown;
393
393
  };
@@ -824,7 +824,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
824
824
  'onUpdate:openKeys': PropType<(keys: import("ant-design-vue/lib/_util/type").Key[]) => void>;
825
825
  'onUpdate:selectedKeys': PropType<(keys: import("ant-design-vue/lib/_util/type").Key[]) => void>;
826
826
  'onUpdate:activeKey': PropType<(key: import("ant-design-vue/lib/_util/type").Key) => void>;
827
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "mode" | "inlineCollapsed" | "disabledOverflow" | "forceSubMenuRender" | "selectable" | "multiple" | "theme" | "inlineIndent" | "subMenuOpenDelay" | "subMenuCloseDelay" | "triggerSubMenuAction">;
827
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "mode" | "theme" | "multiple" | "inlineCollapsed" | "disabledOverflow" | "forceSubMenuRender" | "selectable" | "inlineIndent" | "subMenuOpenDelay" | "subMenuCloseDelay" | "triggerSubMenuAction">;
828
828
  $attrs: {
829
829
  [x: string]: unknown;
830
830
  };
@@ -627,7 +627,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
627
627
  type: BooleanConstructor;
628
628
  default: boolean;
629
629
  };
630
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "autofocus" | "indeterminate" | "defaultChecked" | "checked" | "isGroup" | "skipGroup">;
630
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "disabled" | "autofocus" | "checked" | "isGroup" | "indeterminate" | "defaultChecked" | "skipGroup">;
631
631
  $attrs: {
632
632
  [x: string]: unknown;
633
633
  };
@@ -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" | "arrow" | "forceRender" | "minOverlayWidthMatchTrigger" | "destroyPopupOnHide">;
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" | "inlineCollapsed" | "disabledOverflow" | "forceSubMenuRender" | "selectable" | "multiple" | "theme" | "inlineIndent" | "subMenuOpenDelay" | "subMenuCloseDelay" | "triggerSubMenuAction">;
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" | "arrow" | "forceRender" | "minOverlayWidthMatchTrigger" | "destroyPopupOnHide">;
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" | "inlineCollapsed" | "disabledOverflow" | "forceSubMenuRender" | "selectable" | "multiple" | "theme" | "inlineIndent" | "subMenuOpenDelay" | "subMenuCloseDelay" | "triggerSubMenuAction">;
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
  };
@@ -1,2 +1,3 @@
1
- import { BasicColumn, CellFormat } from "../types/table.type";
2
- export declare function useHeaderCode(code: string, templates: CellFormat, changeColumns: (rows: BasicColumn[]) => void): void;
1
+ import { Recordable } from "@dt-frames/core";
2
+ import { BasicColumn } from "../types/table.type";
3
+ export declare function useHeaderCode(code: string, templates: Recordable, changeColumns: (rows: BasicColumn[]) => void): void;
@@ -7,8 +7,8 @@ declare const _default: import("vue").DefineComponent<{
7
7
  default: boolean;
8
8
  };
9
9
  tableSetting: {
10
- type: ArrayConstructor;
11
- default: string[];
10
+ type: import("vue").PropType<import("./types/table.type").TableSetting>;
11
+ default: () => {};
12
12
  };
13
13
  striped: {
14
14
  type: BooleanConstructor;
@@ -58,7 +58,8 @@ declare const _default: import("vue").DefineComponent<{
58
58
  type: StringConstructor;
59
59
  };
60
60
  templates: {
61
- type: import("vue").PropType<import("./types/table.type").CellFormat>;
61
+ type: import("vue").PropType<Recordable<any>>;
62
+ default: {};
62
63
  };
63
64
  columns: {
64
65
  type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
@@ -265,28 +266,28 @@ declare const _default: import("vue").DefineComponent<{
265
266
  tableLayout: string;
266
267
  size: SizeType;
267
268
  bordered: boolean;
269
+ customRow: (record: any, index: any) => void;
270
+ childrenColumnName: string;
268
271
  clickRowSelect: boolean;
269
- tableSetting: unknown[];
272
+ tableSetting: {};
270
273
  striped: boolean;
271
274
  canColDrag: boolean;
272
275
  resizable: boolean;
273
276
  virtual: boolean;
274
277
  sortFn: Function;
275
278
  filterFn: (data: Partial<Recordable<string[]>>) => any;
279
+ templates: {};
276
280
  ellipsis: boolean;
277
281
  onTableChange: Function;
278
282
  onDownload: Function;
279
- customRow: (record: any, index: any) => void;
280
- childrenColumnName: string;
281
283
  showIndexColumn: boolean;
282
284
  indexColumnProps: import("./types/table.type").BasicColumn[];
283
285
  isTreeTable: boolean;
286
+ rowClassName?: (record: any, index: number) => string;
284
287
  minWidth?: number;
285
288
  maxWidth?: number;
286
289
  defSort?: any;
287
290
  columnCode?: string;
288
- templates?: import("./types/table.type").CellFormat;
289
- rowClassName?: (record: any, index: number) => string;
290
291
  operations?: unknown;
291
292
  toolbar?: import("../../forms").ButtonProps[];
292
293
  onColumnsChange?: (data: import("./types/table.type").ColumnChangeParam[]) => void;
@@ -357,8 +358,8 @@ declare const _default: import("vue").DefineComponent<{
357
358
  default: boolean;
358
359
  };
359
360
  tableSetting: {
360
- type: ArrayConstructor;
361
- default: string[];
361
+ type: import("vue").PropType<import("./types/table.type").TableSetting>;
362
+ default: () => {};
362
363
  };
363
364
  striped: {
364
365
  type: BooleanConstructor;
@@ -408,7 +409,8 @@ declare const _default: import("vue").DefineComponent<{
408
409
  type: StringConstructor;
409
410
  };
410
411
  templates: {
411
- type: import("vue").PropType<import("./types/table.type").CellFormat>;
412
+ type: import("vue").PropType<Recordable<any>>;
413
+ default: {};
412
414
  };
413
415
  columns: {
414
416
  type: import("vue").PropType<import("./types/table.type").BasicColumn[]>;
@@ -550,26 +552,27 @@ declare const _default: import("vue").DefineComponent<{
550
552
  size: SizeType;
551
553
  loading: boolean;
552
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;
553
563
  clickRowSelect: boolean;
554
- tableSetting: unknown[];
564
+ tableSetting: {};
555
565
  striped: boolean;
556
566
  canColDrag: boolean;
557
567
  resizable: boolean;
558
568
  virtual: boolean;
559
569
  sortFn: Function;
560
570
  filterFn: (data: Partial<Recordable<string[]>>) => any;
561
- rowKey: string;
562
571
  defSort: any;
563
- columns: import("./types/table.type").BasicColumn[];
572
+ templates: {};
564
573
  ellipsis: boolean;
565
- dataSource: Recordable<any>[];
566
- pagination: {};
567
- scroll: {};
568
574
  onTableChange: Function;
569
575
  onDownload: Function;
570
- rowSelection: any;
571
- customRow: (record: any, index: any) => void;
572
- childrenColumnName: string;
573
576
  showIndexColumn: boolean;
574
577
  indexColumnProps: import("./types/table.type").BasicColumn[];
575
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, CellFormat, 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: ArrayConstructor;
14
- default: string[];
13
+ type: PropType<TableSetting>;
14
+ default: () => {};
15
15
  };
16
16
  striped: {
17
17
  type: BooleanConstructor;
@@ -61,7 +61,8 @@ export declare const TableProps: {
61
61
  type: StringConstructor;
62
62
  };
63
63
  templates: {
64
- type: PropType<CellFormat>;
64
+ type: PropType<Recordable<any>>;
65
+ default: {};
65
66
  };
66
67
  columns: {
67
68
  type: PropType<BasicColumn[]>;
@@ -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
- redo?: boolean;
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 = ((text: string, record: Recordable, index: number) => any) | {
34
+ export declare type CellFormat = ((record: Recordable, index: number, text: string) => any) | {
35
35
  dict: DictType;
36
36
  } | {
37
37
  number: string;