@dt-frames/ui 2.0.4 → 2.0.5

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 (117) hide show
  1. package/es/components/curd/index.js +80 -75
  2. package/es/components/curd/src/components/Curd.d.ts +0 -8
  3. package/es/components/curd/src/props.d.ts +0 -4
  4. package/es/components/form/index.d.ts +20 -53
  5. package/es/components/form/index.js +17 -27
  6. package/es/components/form/index.less +8 -3
  7. package/es/components/form/src/index.d.ts +16 -41
  8. package/es/components/source/index.js +8 -5
  9. package/es/components/source/types/source.type.d.ts +1 -0
  10. package/es/components/table/index.js +145 -95
  11. package/es/components/table/index.less +26 -5
  12. package/es/components/table/src/components/TableAction.d.ts +1 -1
  13. package/es/components/table/src/index.d.ts +10 -0
  14. package/es/components/table/src/props.d.ts +4 -0
  15. package/es/components/tree/index.d.ts +2 -0
  16. package/es/components/tree/index.js +1087 -0
  17. package/es/components/tree/index.less +119 -0
  18. package/es/components/tree/src/basicProps.d.ts +146 -0
  19. package/es/components/tree/src/components/ContextMenu.d.ts +64 -0
  20. package/es/components/tree/src/components/TreeHeader.d.ts +98 -0
  21. package/es/components/tree/src/enums/index.d.ts +6 -0
  22. package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -0
  23. package/es/components/tree/src/hooks/useTree.d.ts +14 -0
  24. package/es/components/tree/src/index.d.ts +6526 -0
  25. package/es/components/tree/src/type/menu.d.ts +33 -0
  26. package/es/components/tree/src/type/tree.d.ts +55 -0
  27. package/es/components/tree/src/utils/tree.d.ts +5 -0
  28. package/es/packages/ui/src/assets/locales/en.d.ts +101 -0
  29. package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
  30. package/es/packages/ui/src/assets/locales/zh.d.ts +103 -0
  31. package/es/packages/ui/src/components/container/index.d.ts +94 -0
  32. package/es/packages/ui/src/components/container/src/components/bar.d.ts +14 -0
  33. package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +70 -0
  34. package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +10 -0
  35. package/es/packages/ui/src/components/container/src/scroll-container.d.ts +76 -0
  36. package/es/packages/ui/src/components/container/src/slot-container.d.ts +20 -0
  37. package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +22 -0
  38. package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +5 -0
  39. package/es/packages/ui/src/global.d.ts +7 -0
  40. package/es/packages/ui/src/theme/index.d.ts +10 -0
  41. package/es/packages/ui/src/theme/src/components/content/index.d.ts +27 -0
  42. package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +5 -0
  43. package/es/packages/ui/src/theme/src/components/feature/index.d.ts +7 -0
  44. package/es/packages/ui/src/theme/src/components/footer/index.d.ts +31 -0
  45. package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +6 -0
  46. package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +5 -0
  47. package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +11 -0
  48. package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +23 -0
  49. package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +56 -0
  50. package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +22 -0
  51. package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +24 -0
  52. package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +223 -0
  53. package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +282 -0
  54. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
  55. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
  56. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
  57. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
  58. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
  59. package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +10 -0
  60. package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +37 -0
  61. package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +13 -0
  62. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
  63. package/es/packages/ui/src/theme/src/components/header/index.d.ts +720 -0
  64. package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +806 -0
  65. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
  66. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
  67. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
  68. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
  69. package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +14 -0
  70. package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +22 -0
  71. package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +69 -0
  72. package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +17 -0
  73. package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +12 -0
  74. package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +10 -0
  75. package/es/packages/ui/src/theme/src/components/sider/index.d.ts +235 -0
  76. package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +167 -0
  77. package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +6 -0
  78. package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
  79. package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +3 -0
  80. package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
  81. package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
  82. package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +63 -0
  83. package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
  84. package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
  85. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
  86. package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
  87. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
  88. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
  89. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
  90. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
  91. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
  92. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
  93. package/es/packages/ui/src/theme/src/index.d.ts +1851 -0
  94. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
  95. package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
  96. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +23 -0
  97. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +18 -0
  98. package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
  99. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
  100. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
  101. package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
  102. package/es/theme/index.d.ts +2 -1
  103. package/es/theme/index.js +658 -665
  104. package/es/theme/index.less +55 -0
  105. package/es/theme/src/components/header/components/logo.d.ts +22 -0
  106. package/es/theme/src/components/header/index.d.ts +87 -0
  107. package/es/theme/src/components/header/multiple-header.d.ts +88 -0
  108. package/es/theme/src/components/sider/index.d.ts +22 -0
  109. package/es/theme/src/components/sider/mix-sider.d.ts +22 -0
  110. package/es/theme/src/hooks/useMultifyTab.d.ts +1 -0
  111. package/es/theme/src/index.d.ts +197 -0
  112. package/es/theme/src/types/theme.type.d.ts +1 -0
  113. package/index.d.ts +2 -1
  114. package/index.js +6 -2
  115. package/package.json +4 -2
  116. package/tsconfig.json +1 -0
  117. package/vite.config.ts +1 -0
@@ -0,0 +1,33 @@
1
+ export interface Axis {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface ContextMenuItem {
6
+ label: string;
7
+ icon?: string;
8
+ hidden?: boolean;
9
+ disabled?: boolean;
10
+ handler?: Function;
11
+ divider?: boolean;
12
+ children?: ContextMenuItem[];
13
+ }
14
+ export interface ItemContentProps {
15
+ showIcon: boolean | undefined;
16
+ item: ContextMenuItem;
17
+ handler: Function;
18
+ }
19
+ export interface CreateContextOptions {
20
+ event: MouseEvent;
21
+ icon?: string;
22
+ styles?: any;
23
+ items?: ContextMenuItem[];
24
+ }
25
+ export interface ContextMenuProps {
26
+ event?: MouseEvent;
27
+ styles?: any;
28
+ items: ContextMenuItem[];
29
+ customEvent?: MouseEvent;
30
+ axis?: Axis;
31
+ width?: number;
32
+ showIcon?: boolean;
33
+ }
@@ -0,0 +1,55 @@
1
+ import { Recordable } from "@dt-frames/core";
2
+ import { TreeDataItem } from "ant-design-vue/lib/tree/Tree";
3
+ export declare type KeyType = string | number;
4
+ export declare type CheckKeys = KeyType[] | {
5
+ checked: string[] | number[];
6
+ halfChecked: string[] | number[];
7
+ };
8
+ export interface FieldNames {
9
+ children?: string;
10
+ title?: string;
11
+ key?: string;
12
+ }
13
+ export interface TreeActionItem {
14
+ render: (record: Recordable) => any;
15
+ show?: boolean | ((record: Recordable) => boolean);
16
+ }
17
+ export interface TreeItem extends TreeDataItem {
18
+ icon?: any;
19
+ }
20
+ export interface TreeState {
21
+ expandedKeys: KeyType[];
22
+ selectedKeys: KeyType[];
23
+ checkedKeys: CheckKeys;
24
+ checkStrictly: boolean;
25
+ }
26
+ export interface TreeHelperConfig {
27
+ id: string;
28
+ children: string;
29
+ pid: string;
30
+ }
31
+ export interface InsertNodeParams {
32
+ parentKey: string | null;
33
+ node: TreeDataItem;
34
+ list?: TreeDataItem[];
35
+ push?: 'push' | 'unshift';
36
+ }
37
+ export interface TreeActionType {
38
+ checkAll: (checkAll: boolean) => void;
39
+ expandAll: (expandAll: boolean) => void;
40
+ setExpandedKeys: (keys: KeyType[]) => void;
41
+ getExpandedKeys: () => KeyType[];
42
+ setSelectedKeys: (keys: KeyType[]) => void;
43
+ getSelectedKeys: () => KeyType[];
44
+ setCheckedKeys: (keys: CheckKeys) => void;
45
+ getCheckedKeys: () => CheckKeys;
46
+ filterByLevel: (level: number) => void;
47
+ insertNodeByKey: (opt: InsertNodeParams) => void;
48
+ insertNodesByKey: (opt: InsertNodeParams) => void;
49
+ deleteNodeByKey: (key: string) => void;
50
+ updateNodeByKey: (key: string, node: Omit<TreeDataItem, 'key'>) => void;
51
+ setSearchValue: (value: string) => void;
52
+ getSearchValue: () => string;
53
+ onStrictlyChange: (strictly: boolean) => void;
54
+ getSelectedNode: (key: KeyType, treeList?: TreeItem[], selectNode?: TreeItem | null) => TreeItem | null;
55
+ }
@@ -0,0 +1,5 @@
1
+ import { TreeHelperConfig } from "../type/tree";
2
+ export declare function eachTree(treeDatas: any[], callBack: Function, parentNode?: {}): void;
3
+ export declare function forEach<T = any>(tree: T[], func: (n: T) => any, config?: Partial<TreeHelperConfig>): void;
4
+ export declare function filter<T = any>(tree: T[], func: (n: T) => boolean, config?: Partial<TreeHelperConfig>): T[];
5
+ export declare function treeToList<T = any>(tree: any, config?: Partial<TreeHelperConfig>): T;
@@ -0,0 +1,101 @@
1
+ export declare const EN: {
2
+ UI: {
3
+ ADD: string;
4
+ DELETE_CONFIRM: string;
5
+ CONFIRM_DELETE: string;
6
+ NEED_CURD: string;
7
+ EDIT: string;
8
+ EMPTY: string;
9
+ EMPTY_URL: string;
10
+ MULTIFY_DELETE_CONFIRM: string;
11
+ CONFIRM_MULTIFY_DELETE: string;
12
+ ADVANCED: string;
13
+ EXPAND: string;
14
+ SELECT_ICON: string;
15
+ MUSE_FUNCTION: string;
16
+ NEED_RENDER: string;
17
+ SEARCH: string;
18
+ RESET: string;
19
+ PLEASE_INPUT: string;
20
+ PLEASE_SELECT: string;
21
+ PLEASE_SET_ICON: string;
22
+ INPUT_FILTER: string;
23
+ EXIT_FULLSCREEN: string;
24
+ FULLSCREEN: string;
25
+ SAVE: string;
26
+ CLOSE: string;
27
+ ADD_SUCCESS: string;
28
+ UPDATE_SUCCESS: string;
29
+ MULTIFY: string;
30
+ DELETE_SUCCESS: string;
31
+ COLUMN_CONTROL: string;
32
+ COLUMN_SHOW: string;
33
+ INDEX: string;
34
+ CHECKBOX: string;
35
+ FIXED_TO_LEFT: string;
36
+ FIXED_TO_RIGHT: string;
37
+ EXPORT: string;
38
+ EXPORT_CURRENT_PAGE: string;
39
+ EXPORT_SELECT_COLUMN: string;
40
+ EXPORT_ALL: string;
41
+ SELECT_ALL: string;
42
+ SETTING_EXPORT_COLUMN: string;
43
+ NO_EXPORT_COLUMN: string;
44
+ NUMBER: string;
45
+ ACTIONS: string;
46
+ TOTAL_PAGE: string;
47
+ FILTER: string;
48
+ EXPAND_ALL: string;
49
+ COLLAPSE_ALL: string;
50
+ SELECT_ALL1: string;
51
+ CANCEL_SELECT_ALL: string;
52
+ LEVEL_CONNECTION: string;
53
+ LEVEL_SOLATE: string;
54
+ LOADING: string;
55
+ SUPPORT_FILES: string;
56
+ MAX_SIZE: string;
57
+ MAX_NUMBER: string;
58
+ SUPPORT_TYPES: string;
59
+ FILE_UPLOAD: string;
60
+ FILE_NAME: string;
61
+ FILE_STATUS: string;
62
+ PREVIEW: string;
63
+ DELETE: string;
64
+ HISTORY_UPLOAD: string;
65
+ MAX_MB: string;
66
+ PRE_UPLOAD: string;
67
+ COMPANY_NAME: string;
68
+ FILTER_MORE: string;
69
+ LARGE_SIZE: string;
70
+ MIDDLE_SIZE: string;
71
+ SMALL_SIZE: string;
72
+ MODIFY_PASSWORD: string;
73
+ LOGIN_OUT: string;
74
+ CLOSE_CURRENT_TAG: string;
75
+ CLOSE_LEFT_TAGS: string;
76
+ CLOSE_RIGHT_TAGS: string;
77
+ CLOSE_OTHER_TAGS: string;
78
+ CLOSE_ALL_TAGE: string;
79
+ SETTING_THEME: string;
80
+ PROJECT_SETTING: string;
81
+ NAV_MODE: string;
82
+ PAGE_SHOW: string;
83
+ COPY: string;
84
+ DRAWER_TIPS: string;
85
+ FULL: string;
86
+ FIXED: string;
87
+ BREAD_CURB: string;
88
+ MENU_FILTER: string;
89
+ NOTICE: string;
90
+ SIZE: string;
91
+ SHOW_FULLE: string;
92
+ LOCAL: string;
93
+ ROUTE_REUSE: string;
94
+ SHOW_FOOTER: string;
95
+ CONTENT_FIXED_WIDTH: string;
96
+ ON: string;
97
+ OFF: string;
98
+ UNKNOWN_ROUTE: string;
99
+ COPY_SUCCESS: string;
100
+ };
101
+ };
@@ -0,0 +1,2 @@
1
+ import { Recordable, Language } from "@dt-frames/core";
2
+ export declare const uiLang: (lang: Language) => Recordable;
@@ -0,0 +1,103 @@
1
+ export declare const ZH: {
2
+ UI: {
3
+ ADD: string;
4
+ DELETE_CONFIRM: string;
5
+ CONFIRM_DELETE: string;
6
+ NEED_CURD: string;
7
+ EDIT: string;
8
+ EMPTY: string;
9
+ EMPTY_URL: string;
10
+ MULTIFY_DELETE_CONFIRM: string;
11
+ CONFIRM_MULTIFY_DELETE: string;
12
+ ADVANCED: string;
13
+ EXPAND: string;
14
+ SELECT_ICON: string;
15
+ MUSE_FUNCTION: string;
16
+ NEED_RENDER: string;
17
+ SEARCH: string;
18
+ RESET: string;
19
+ PLEASE_INPUT: string;
20
+ PLEASE_SELECT: string;
21
+ PLEASE_SET_ICON: string;
22
+ INPUT_FILTER: string;
23
+ EXIT_FULLSCREEN: string;
24
+ FULLSCREEN: string;
25
+ SAVE: string;
26
+ CLOSE: string;
27
+ ADD_SUCCESS: string;
28
+ UPDATE_SUCCESS: string;
29
+ MULTIFY: string;
30
+ DELETE_SUCCESS: string;
31
+ COLUMN_CONTROL: string;
32
+ COLUMN_SHOW: string;
33
+ INDEX: string;
34
+ CHECKBOX: string;
35
+ FIXED_TO_LEFT: string;
36
+ FIXED_TO_RIGHT: string;
37
+ EXPORT: string;
38
+ DOWNLOAD_TEMPLATE: string;
39
+ EXPORT_CURRENT_PAGE: string;
40
+ EXPORT_SELECT_COLUMN: string;
41
+ EXPORT_ALL: string;
42
+ SELECT_ALL: string;
43
+ SETTING_EXPORT_COLUMN: string;
44
+ NO_EXPORT_COLUMN: string;
45
+ NUMBER: string;
46
+ ACTIONS: string;
47
+ TOTAL_PAGE: string;
48
+ FILTER: string;
49
+ EXPAND_ALL: string;
50
+ COLLAPSE_ALL: string;
51
+ SELECT_ALL1: string;
52
+ CANCEL_SELECT_ALL: string;
53
+ LEVEL_CONNECTION: string;
54
+ LEVEL_SOLATE: string;
55
+ LOADING: string;
56
+ SUPPORT_FILES: string;
57
+ MAX_SIZE: string;
58
+ MAX_NUMBER: string;
59
+ SUPPORT_TYPES: string;
60
+ FILE_UPLOAD: string;
61
+ FILE_NAME: string;
62
+ FILE_STATUS: string;
63
+ PREVIEW: string;
64
+ DELETE: string;
65
+ HISTORY_UPLOAD: string;
66
+ MAX_MB: string;
67
+ PRE_UPLOAD: string;
68
+ COMPANY_NAME: string;
69
+ FILTER_MORE: string;
70
+ LARGE_SIZE: string;
71
+ MIDDLE_SIZE: string;
72
+ SMALL_SIZE: string;
73
+ MODIFY_PASSWORD: string;
74
+ LOGIN_OUT: string;
75
+ CLOSE_CURRENT_TAG: string;
76
+ CLOSE_LEFT_TAGS: string;
77
+ CLOSE_RIGHT_TAGS: string;
78
+ CLOSE_OTHER_TAGS: string;
79
+ CLOSE_ALL_TAGE: string;
80
+ SETTING_THEME: string;
81
+ PROJECT_SETTING: string;
82
+ NAV_MODE: string;
83
+ PAGE_SHOW: string;
84
+ COPY: string;
85
+ DRAWER_TIPS: string;
86
+ FULL: string;
87
+ FIXED: string;
88
+ BREAD_CURB: string;
89
+ MENU_FILTER: string;
90
+ NOTICE: string;
91
+ SIZE: string;
92
+ SHOW_FULLE: string;
93
+ LOCAL: string;
94
+ ROUTE_REUSE: string;
95
+ SHOW_FOOTER: string;
96
+ CONTENT_FIXED_WIDTH: string;
97
+ ON: string;
98
+ OFF: string;
99
+ DOWNLOAD: string;
100
+ UNKNOWN_ROUTE: string;
101
+ COPY_SUCCESS: string;
102
+ };
103
+ };
@@ -0,0 +1,94 @@
1
+ declare const DtScrollContainer: import('../../utils/withInstall').SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ scrollbarRef: any;
3
+ scrollTo: (to: number, duration?: number) => void;
4
+ getScrollWrap: () => any;
5
+ scrollBottom: () => void;
6
+ ScrollBar: import("vue").DefineComponent<{
7
+ wrapClass: {
8
+ type: (StringConstructor | ArrayConstructor)[];
9
+ default: string;
10
+ };
11
+ wrapStyle: ArrayConstructor;
12
+ viewClass: {
13
+ type: (StringConstructor | ArrayConstructor)[];
14
+ default: string;
15
+ };
16
+ viewStyle: {
17
+ type: (StringConstructor | ArrayConstructor)[];
18
+ default: string;
19
+ };
20
+ noresize: BooleanConstructor;
21
+ tag: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ }, {
26
+ sizeWidth: import("vue").Ref<string>;
27
+ sizeHeight: import("vue").Ref<string>;
28
+ moveX: import("vue").Ref<number>;
29
+ moveY: import("vue").Ref<number>;
30
+ wrap: import("vue").Ref<any>;
31
+ resize: import("vue").Ref<any>;
32
+ props: any;
33
+ style: import("vue").ComputedRef<{}>;
34
+ handleScroll: () => void;
35
+ update: () => void;
36
+ readonly Bar: import("vue").DefineComponent<{
37
+ vertical: BooleanConstructor;
38
+ size: StringConstructor;
39
+ move: NumberConstructor;
40
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ vertical: BooleanConstructor;
44
+ size: StringConstructor;
45
+ move: NumberConstructor;
46
+ }>>, {
47
+ vertical: boolean;
48
+ }>;
49
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
+ wrapClass: {
51
+ type: (StringConstructor | ArrayConstructor)[];
52
+ default: string;
53
+ };
54
+ wrapStyle: ArrayConstructor;
55
+ viewClass: {
56
+ type: (StringConstructor | ArrayConstructor)[];
57
+ default: string;
58
+ };
59
+ viewStyle: {
60
+ type: (StringConstructor | ArrayConstructor)[];
61
+ default: string;
62
+ };
63
+ noresize: BooleanConstructor;
64
+ tag: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ }>>, {
69
+ wrapClass: string | unknown[];
70
+ viewClass: string | unknown[];
71
+ viewStyle: string | unknown[];
72
+ noresize: boolean;
73
+ tag: string;
74
+ }>;
75
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
76
+ declare const DtSlotContainer: import('../../utils/withInstall').SFCWithInstall<import("vue").DefineComponent<{
77
+ template: {
78
+ type: FunctionConstructor;
79
+ };
80
+ data: {
81
+ type: ObjectConstructor;
82
+ };
83
+ }, {
84
+ props: any;
85
+ Container: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
86
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
87
+ template: {
88
+ type: FunctionConstructor;
89
+ };
90
+ data: {
91
+ type: ObjectConstructor;
92
+ };
93
+ }>>, {}>>;
94
+ export { DtScrollContainer, DtSlotContainer };
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ vertical: BooleanConstructor;
3
+ size: StringConstructor;
4
+ move: NumberConstructor;
5
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
6
+ [key: string]: any;
7
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ vertical: BooleanConstructor;
9
+ size: StringConstructor;
10
+ move: NumberConstructor;
11
+ }>>, {
12
+ vertical: boolean;
13
+ }>;
14
+ export default _default;
@@ -0,0 +1,70 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ wrapClass: {
3
+ type: (StringConstructor | ArrayConstructor)[];
4
+ default: string;
5
+ };
6
+ wrapStyle: ArrayConstructor;
7
+ viewClass: {
8
+ type: (StringConstructor | ArrayConstructor)[];
9
+ default: string;
10
+ };
11
+ viewStyle: {
12
+ type: (StringConstructor | ArrayConstructor)[];
13
+ default: string;
14
+ };
15
+ noresize: BooleanConstructor;
16
+ tag: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ }, {
21
+ sizeWidth: import("vue").Ref<string>;
22
+ sizeHeight: import("vue").Ref<string>;
23
+ moveX: import("vue").Ref<number>;
24
+ moveY: import("vue").Ref<number>;
25
+ wrap: import("vue").Ref<any>;
26
+ resize: import("vue").Ref<any>;
27
+ props: any;
28
+ style: import("vue").ComputedRef<{}>;
29
+ handleScroll: () => void;
30
+ update: () => void;
31
+ readonly Bar: import("vue").DefineComponent<{
32
+ vertical: BooleanConstructor;
33
+ size: StringConstructor;
34
+ move: NumberConstructor;
35
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ vertical: BooleanConstructor;
39
+ size: StringConstructor;
40
+ move: NumberConstructor;
41
+ }>>, {
42
+ vertical: boolean;
43
+ }>;
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ wrapClass: {
46
+ type: (StringConstructor | ArrayConstructor)[];
47
+ default: string;
48
+ };
49
+ wrapStyle: ArrayConstructor;
50
+ viewClass: {
51
+ type: (StringConstructor | ArrayConstructor)[];
52
+ default: string;
53
+ };
54
+ viewStyle: {
55
+ type: (StringConstructor | ArrayConstructor)[];
56
+ default: string;
57
+ };
58
+ noresize: BooleanConstructor;
59
+ tag: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ }>>, {
64
+ wrapClass: string | unknown[];
65
+ viewClass: string | unknown[];
66
+ viewStyle: string | unknown[];
67
+ noresize: boolean;
68
+ tag: string;
69
+ }>;
70
+ export default _sfc_main;
@@ -0,0 +1,10 @@
1
+ export interface ScrollToParams {
2
+ el: any;
3
+ to: number;
4
+ duration?: number;
5
+ callback?: () => any;
6
+ }
7
+ export declare function useScrollTo({ el, to, duration, callback }: ScrollToParams): {
8
+ start: () => void;
9
+ stop: () => void;
10
+ };
@@ -0,0 +1,76 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ scrollbarRef: any;
3
+ scrollTo: (to: number, duration?: number) => void;
4
+ getScrollWrap: () => any;
5
+ scrollBottom: () => void;
6
+ ScrollBar: import("vue").DefineComponent<{
7
+ wrapClass: {
8
+ type: (StringConstructor | ArrayConstructor)[];
9
+ default: string;
10
+ };
11
+ wrapStyle: ArrayConstructor;
12
+ viewClass: {
13
+ type: (StringConstructor | ArrayConstructor)[];
14
+ default: string;
15
+ };
16
+ viewStyle: {
17
+ type: (StringConstructor | ArrayConstructor)[];
18
+ default: string;
19
+ };
20
+ noresize: BooleanConstructor;
21
+ tag: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ }, {
26
+ sizeWidth: import("vue").Ref<string>;
27
+ sizeHeight: import("vue").Ref<string>;
28
+ moveX: import("vue").Ref<number>;
29
+ moveY: import("vue").Ref<number>;
30
+ wrap: import("vue").Ref<any>;
31
+ resize: import("vue").Ref<any>;
32
+ props: any;
33
+ style: import("vue").ComputedRef<{}>;
34
+ handleScroll: () => void;
35
+ update: () => void;
36
+ readonly Bar: import("vue").DefineComponent<{
37
+ vertical: BooleanConstructor;
38
+ size: StringConstructor;
39
+ move: NumberConstructor;
40
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ vertical: BooleanConstructor;
44
+ size: StringConstructor;
45
+ move: NumberConstructor;
46
+ }>>, {
47
+ vertical: boolean;
48
+ }>;
49
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
+ wrapClass: {
51
+ type: (StringConstructor | ArrayConstructor)[];
52
+ default: string;
53
+ };
54
+ wrapStyle: ArrayConstructor;
55
+ viewClass: {
56
+ type: (StringConstructor | ArrayConstructor)[];
57
+ default: string;
58
+ };
59
+ viewStyle: {
60
+ type: (StringConstructor | ArrayConstructor)[];
61
+ default: string;
62
+ };
63
+ noresize: BooleanConstructor;
64
+ tag: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ }>>, {
69
+ wrapClass: string | unknown[];
70
+ viewClass: string | unknown[];
71
+ viewStyle: string | unknown[];
72
+ noresize: boolean;
73
+ tag: string;
74
+ }>;
75
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
76
+ export default _sfc_main;
@@ -0,0 +1,20 @@
1
+ import { Component } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ template: {
4
+ type: FunctionConstructor;
5
+ };
6
+ data: {
7
+ type: ObjectConstructor;
8
+ };
9
+ }, {
10
+ props: any;
11
+ Container: Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
12
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ template: {
14
+ type: FunctionConstructor;
15
+ };
16
+ data: {
17
+ type: ObjectConstructor;
18
+ };
19
+ }>>, {}>;
20
+ export default _sfc_main;
@@ -0,0 +1,22 @@
1
+ export interface BarMapItem {
2
+ offset: string;
3
+ scroll: string;
4
+ scrollSize: string;
5
+ size: string;
6
+ key: string;
7
+ axis: string;
8
+ client: string;
9
+ direction: string;
10
+ }
11
+ export interface BarMap {
12
+ vertical: BarMapItem;
13
+ horizontal: BarMapItem;
14
+ }
15
+ export interface ScrollbarType {
16
+ wrap: any;
17
+ }
18
+ export declare type BarStyle = {
19
+ bar: any;
20
+ size: String;
21
+ move: any;
22
+ };
@@ -0,0 +1,5 @@
1
+ import { BarMap, BarStyle } from "../types/scroll.type";
2
+ export declare const BAR_MAP: BarMap;
3
+ export declare function renderThumbStyle({ move, size, bar }: BarStyle): any;
4
+ export declare function addResizeListener(element: any, fn: () => any): void;
5
+ export declare function removeResizeListener(element: any, fn: () => any): void;
@@ -0,0 +1,7 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module "*" {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
@@ -0,0 +1,10 @@
1
+ import { uiLang } from '../assets/locales';
2
+ import { useThemeStore } from './src/stores/theme.store';
3
+ import { defaultThemeConf } from './src/setting/theme.setting';
4
+ import { useRouteReuseStore } from './src/stores/routeReuse.store';
5
+ import type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions } from './src/types';
6
+ import { Component } from 'vue';
7
+ import { SFCWithInstall } from '../utils/withInstall';
8
+ declare const DtTheme: SFCWithInstall<Component>;
9
+ export { uiLang, DtTheme, useThemeStore, useRouteReuseStore, defaultThemeConf };
10
+ export type { ThemeOptions, HeadOptions, MenuOptions, FooterOptions, RouteReuseOptions };
@@ -0,0 +1,27 @@
1
+ import { RouteRecordRaw } from 'vue-router';
2
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
3
+ getTransitionMode: import("vue").ComputedRef<import("@dt-frames/core").RouterTransition>;
4
+ getLayoutContentMode: import("vue").ComputedRef<import("../../enums").ContentMode>;
5
+ getPageLoading: boolean;
6
+ getOpenPageLoading: import("vue").ComputedRef<boolean>;
7
+ getCanCache: import("vue").ComputedRef<boolean>;
8
+ tabStore: import("pinia").Store<"route-reuse", import("../../stores/routeReuse.store").RouteReuseState, {
9
+ getTabList(): import("vue-router").RouteLocationNormalized[];
10
+ getCachedTabList(): string[];
11
+ getLastDragEndIndex(): number;
12
+ }, {
13
+ addTab(route: import("vue-router").RouteLocationNormalized): Promise<void>;
14
+ closeTab(path: string, router: import("vue-router").Router): void;
15
+ closeAllTab(currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>, router: import("vue-router").Router): void;
16
+ closeLeftTabs(path: string): void;
17
+ closeRightTabs(path: string): void;
18
+ closeOtherTabs(path: string): void;
19
+ bulkCloseTabs(pathList: string[]): void;
20
+ updateCacheTab(): void;
21
+ refreshPage(router: import("vue-router").Router): Promise<void>;
22
+ sortTabs(oldIndex: number, newIndex: number): void;
23
+ }>;
24
+ getTransitionName: (route: RouteRecordRaw) => string | undefined;
25
+ getCaches: import("vue").ComputedRef<string[]>;
26
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
27
+ export default _sfc_main;