@dt-frames/ui 2.0.5 → 2.0.6

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 (96) hide show
  1. package/es/assets/locales/en.d.ts +2 -0
  2. package/es/assets/locales/en.ts +2 -0
  3. package/es/assets/locales/zh.d.ts +1 -0
  4. package/es/assets/locales/zh.ts +6 -5
  5. package/es/components/curd/index.js +113 -63
  6. package/es/components/form/index.js +24 -12
  7. package/es/theme/index.js +208 -71
  8. package/es/theme/index.less +1 -0
  9. package/es/theme/src/components/content/index.d.ts +6 -4
  10. package/es/theme/src/components/header/index.d.ts +43 -20
  11. package/es/theme/src/components/header/multiple-header.d.ts +86 -40
  12. package/es/theme/src/components/tabs/components/TabContent.d.ts +33 -3
  13. package/es/theme/src/components/tabs/components/TabRedo.d.ts +6 -4
  14. package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -4
  15. package/es/theme/src/components/tabs/hooks/useTabs.d.ts +10 -0
  16. package/es/theme/src/components/tabs/index.d.ts +43 -20
  17. package/es/theme/src/hooks/useMenu.d.ts +1 -1
  18. package/es/theme/src/index.d.ts +136 -64
  19. package/es/theme/src/stores/routeReuse.store.d.ts +6 -4
  20. package/es/theme/src/stores/theme.store.d.ts +1 -0
  21. package/es/theme/src/types/theme.type.d.ts +1 -0
  22. package/package.json +1 -1
  23. package/es/packages/ui/src/assets/locales/en.d.ts +0 -101
  24. package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
  25. package/es/packages/ui/src/assets/locales/zh.d.ts +0 -103
  26. package/es/packages/ui/src/components/container/index.d.ts +0 -94
  27. package/es/packages/ui/src/components/container/src/components/bar.d.ts +0 -14
  28. package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +0 -70
  29. package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +0 -10
  30. package/es/packages/ui/src/components/container/src/scroll-container.d.ts +0 -76
  31. package/es/packages/ui/src/components/container/src/slot-container.d.ts +0 -20
  32. package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +0 -22
  33. package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +0 -5
  34. package/es/packages/ui/src/global.d.ts +0 -7
  35. package/es/packages/ui/src/theme/index.d.ts +0 -10
  36. package/es/packages/ui/src/theme/src/components/content/index.d.ts +0 -27
  37. package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +0 -5
  38. package/es/packages/ui/src/theme/src/components/feature/index.d.ts +0 -7
  39. package/es/packages/ui/src/theme/src/components/footer/index.d.ts +0 -31
  40. package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +0 -6
  41. package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +0 -5
  42. package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +0 -11
  43. package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +0 -23
  44. package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +0 -56
  45. package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +0 -22
  46. package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +0 -24
  47. package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +0 -223
  48. package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +0 -282
  49. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +0 -138
  50. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +0 -3
  51. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +0 -16
  52. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +0 -58
  53. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +0 -49
  54. package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +0 -10
  55. package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +0 -37
  56. package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +0 -13
  57. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
  58. package/es/packages/ui/src/theme/src/components/header/index.d.ts +0 -720
  59. package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +0 -806
  60. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +0 -62
  61. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +0 -207
  62. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +0 -127
  63. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +0 -26
  64. package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +0 -14
  65. package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +0 -22
  66. package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +0 -69
  67. package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +0 -17
  68. package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +0 -12
  69. package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +0 -10
  70. package/es/packages/ui/src/theme/src/components/sider/index.d.ts +0 -235
  71. package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +0 -167
  72. package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +0 -6
  73. package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +0 -21
  74. package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +0 -3
  75. package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +0 -7
  76. package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +0 -6
  77. package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +0 -63
  78. package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +0 -7
  79. package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
  80. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
  81. package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
  82. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
  83. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
  84. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
  85. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
  86. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
  87. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
  88. package/es/packages/ui/src/theme/src/index.d.ts +0 -1851
  89. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
  90. package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
  91. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -23
  92. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -18
  93. package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
  94. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
  95. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
  96. package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
@@ -35,6 +35,7 @@ export declare const EN: {
35
35
  FIXED_TO_LEFT: string;
36
36
  FIXED_TO_RIGHT: string;
37
37
  EXPORT: string;
38
+ DOWNLOAD_TEMPLATE: string;
38
39
  EXPORT_CURRENT_PAGE: string;
39
40
  EXPORT_SELECT_COLUMN: string;
40
41
  EXPORT_ALL: string;
@@ -71,6 +72,7 @@ export declare const EN: {
71
72
  SMALL_SIZE: string;
72
73
  MODIFY_PASSWORD: string;
73
74
  LOGIN_OUT: string;
75
+ REFRESH: string;
74
76
  CLOSE_CURRENT_TAG: string;
75
77
  CLOSE_LEFT_TAGS: string;
76
78
  CLOSE_RIGHT_TAGS: string;
@@ -35,6 +35,7 @@ export const EN = {
35
35
  "FIXED_TO_LEFT": "Fixed to the left",
36
36
  "FIXED_TO_RIGHT": "Fixed to the right",
37
37
  "EXPORT": "Export",
38
+ "DOWNLOAD_TEMPLATE": "Download Template",
38
39
  "EXPORT_CURRENT_PAGE": "Export the current page",
39
40
  "EXPORT_SELECT_COLUMN": "Export Selected columns",
40
41
  "EXPORT_ALL": "Export all columns",
@@ -71,6 +72,7 @@ export const EN = {
71
72
  "SMALL_SIZE": "Small Size",
72
73
  "MODIFY_PASSWORD": "Modify Password",
73
74
  "LOGIN_OUT": "Log out",
75
+ "REFRESH": "Refresh",
74
76
  "CLOSE_CURRENT_TAG": "Close the current tab",
75
77
  "CLOSE_LEFT_TAGS": "Close the left tab",
76
78
  "CLOSE_RIGHT_TAGS": "Close the right tab",
@@ -72,6 +72,7 @@ export declare const ZH: {
72
72
  SMALL_SIZE: string;
73
73
  MODIFY_PASSWORD: string;
74
74
  LOGIN_OUT: string;
75
+ REFRESH: string;
75
76
  CLOSE_CURRENT_TAG: string;
76
77
  CLOSE_LEFT_TAGS: string;
77
78
  CLOSE_RIGHT_TAGS: string;
@@ -72,11 +72,12 @@ export const ZH = {
72
72
  "SMALL_SIZE": "小尺寸",
73
73
  "MODIFY_PASSWORD": "修改密码",
74
74
  "LOGIN_OUT": "退出系统",
75
- "CLOSE_CURRENT_TAG": "关闭当前标签页",
76
- "CLOSE_LEFT_TAGS": "关闭左侧标签页",
77
- "CLOSE_RIGHT_TAGS": "关闭右侧标签页",
78
- "CLOSE_OTHER_TAGS": "关闭其他标签页",
79
- "CLOSE_ALL_TAGE": "关闭全部标签页",
75
+ "REFRESH": "重新加载",
76
+ "CLOSE_CURRENT_TAG": "关闭当前",
77
+ "CLOSE_LEFT_TAGS": "关闭左侧",
78
+ "CLOSE_RIGHT_TAGS": "关闭右侧",
79
+ "CLOSE_OTHER_TAGS": "关闭其他",
80
+ "CLOSE_ALL_TAGE": "关闭全部",
80
81
  "SETTING_THEME": "风格设置",
81
82
  "PROJECT_SETTING": "项目配置",
82
83
  "NAV_MODE": "导航栏模式",
@@ -3,8 +3,8 @@ import { RadioButton, RadioGroup, Button, FormItem as FormItem$1, Col as Col$1,
3
3
  import "ant-design-vue/es/form/style";
4
4
  import "ant-design-vue/es/row/style";
5
5
  import { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, useAppStore, isNumber, useI18n, isString, isFunction, error, useSlots, isArray, isBoolean, isNull, dispatchResize, isObject, isNullAndUnDef, isEmpty, useTimeoutFn, useApp, off, on, windowResizeFn, useMessage } from "@dt-frames/core";
6
- import { isEqual, omit, cloneDeep, upperFirst, uniqBy, set } from "lodash-es";
7
- import { Input, Select, TreeSelect, Radio, Checkbox, AutoComplete, Cascader, DatePicker, InputNumber, Switch, TimePicker, Slider, Rate, Divider, Col, Tooltip, Form, FormItem, Modal } from "ant-design-vue";
6
+ import { cloneDeep, isEqual, omit, upperFirst, uniqBy, set } from "lodash-es";
7
+ import { Input, Select, TreeSelect, Radio, Checkbox, AutoComplete, Cascader, DatePicker, InputNumber, Switch, TimePicker, Slider, Rate, Divider, Col, Tooltip, Form, FormItem, Modal as Modal$1 } from "ant-design-vue";
8
8
  import { defineStore } from "pinia";
9
9
  import "ant-design-vue/es/radio/style";
10
10
  import "ant-design-vue/es/cascader/style";
@@ -50,6 +50,7 @@ var UiSize = /* @__PURE__ */ ((UiSize2) => {
50
50
  return UiSize2;
51
51
  })(UiSize || {});
52
52
  const defaultThemeConf = {
53
+ cache: false,
53
54
  content: {
54
55
  contentMode: ContentMode.FULL
55
56
  },
@@ -92,7 +93,7 @@ const defaultThemeConf = {
92
93
  },
93
94
  routeReuse: {
94
95
  show: true,
95
- cache: true,
96
+ cache: false,
96
97
  canDrag: true,
97
98
  showQuick: true,
98
99
  showRedo: true,
@@ -102,7 +103,7 @@ const defaultThemeConf = {
102
103
  const useThemeStore = defineStore({
103
104
  id: "dt-theme",
104
105
  state: () => ({
105
- themeConf: DtCache.getLocal(CacheKey.THEME) ?? defaultThemeConf,
106
+ themeConf: DtCache.getLocal(CacheKey.THEME) ?? cloneDeep(defaultThemeConf),
106
107
  pageLoading: false,
107
108
  mixSiderHasSubMenu: false
108
109
  }),
@@ -131,15 +132,22 @@ const useThemeStore = defineStore({
131
132
  },
132
133
  actions: {
133
134
  setThemeConf(options = {}) {
134
- let newThemeConf = deepMerge(this.themeConf, options);
135
- this.themeConf = deepMerge(defaultThemeConf, newThemeConf);
135
+ this.themeConf = deepMerge(this.themeConf, options);
136
136
  DtCache.setLocal(CacheKey.THEME, this.themeConf);
137
137
  },
138
138
  setMixSiderIsHasMenu(val) {
139
139
  this.mixSiderHasSubMenu = val;
140
+ },
141
+ resetState() {
142
+ DtCache.removeLocal(CacheKey.THEME);
143
+ this.themeConf = cloneDeep(defaultThemeConf);
140
144
  }
141
145
  }
142
146
  });
147
+ function handleGotoPage(router) {
148
+ const go = useGo(router);
149
+ go(unref(router.currentRoute).path, true);
150
+ }
143
151
  defineStore({
144
152
  id: "route-reuse",
145
153
  state: () => ({
@@ -180,9 +188,9 @@ defineStore({
180
188
  }
181
189
  this.updateCacheTab();
182
190
  },
183
- closeTab(path, router) {
191
+ closeTab(route, router) {
184
192
  const go = useGo(router);
185
- const index = this.tabList.findIndex((item) => item.path === path);
193
+ const index = this.tabList.findIndex((item) => item.path === route.path);
186
194
  let page;
187
195
  if (index === 0) {
188
196
  if (this.tabList.length !== 1) {
@@ -191,9 +199,9 @@ defineStore({
191
199
  } else {
192
200
  page = this.tabList[index - 1];
193
201
  }
194
- this.bulkCloseTabs([path]);
202
+ this.bulkCloseTabs([route.path]);
195
203
  this.updateCacheTab();
196
- path === router.currentRoute.value.path && go(page.path);
204
+ route.path === router.currentRoute.value.path && go(page.path);
197
205
  },
198
206
  closeAllTab(currentRoute, router) {
199
207
  const go = useGo(router);
@@ -203,8 +211,8 @@ defineStore({
203
211
  this.updateCacheTab();
204
212
  go(route.path);
205
213
  },
206
- closeLeftTabs(path) {
207
- const index = this.tabList.findIndex((item) => item.path === path);
214
+ closeLeftTabs(route, router) {
215
+ const index = this.tabList.findIndex((item) => item.path === route.path);
208
216
  if (index > 0) {
209
217
  const leftTabs = this.tabList.slice(0, index);
210
218
  const pathList = [];
@@ -217,9 +225,10 @@ defineStore({
217
225
  this.bulkCloseTabs(pathList);
218
226
  }
219
227
  this.updateCacheTab();
228
+ handleGotoPage(router);
220
229
  },
221
- closeRightTabs(path) {
222
- const index = this.tabList.findIndex((item) => item.path === path);
230
+ closeRightTabs(route, router) {
231
+ const index = this.tabList.findIndex((item) => item.path === route.path);
223
232
  if (index >= 0 && index < this.tabList.length - 1) {
224
233
  const rightTabs = this.tabList.slice(index + 1, this.tabList.length);
225
234
  const pathList = [];
@@ -232,24 +241,40 @@ defineStore({
232
241
  this.bulkCloseTabs(pathList);
233
242
  }
234
243
  this.updateCacheTab();
244
+ handleGotoPage(router);
235
245
  },
236
- closeOtherTabs(path) {
246
+ closeOtherTabs(route, router) {
237
247
  const pathList = [];
238
248
  for (let item of this.tabList) {
239
249
  const affix = item?.meta?.affix ?? false;
240
- if (item.path !== path && !affix) {
250
+ if (item.path !== route.path && !affix) {
241
251
  pathList.push(item.path);
242
252
  }
243
253
  }
244
254
  this.bulkCloseTabs(pathList);
245
255
  this.updateCacheTab();
256
+ handleGotoPage(router);
257
+ },
258
+ closeTabByKey(path, router) {
259
+ const go = useGo(router);
260
+ const index = this.tabList.findIndex((item) => item.path === path);
261
+ let page;
262
+ if (index === 0) {
263
+ if (this.tabList.length !== 1) {
264
+ page = this.tabList[index + 1];
265
+ }
266
+ } else {
267
+ page = this.tabList[index - 1];
268
+ }
269
+ this.bulkCloseTabs([path]);
270
+ this.updateCacheTab();
271
+ path === router.currentRoute.value.path && go(page.path);
246
272
  },
247
273
  bulkCloseTabs(pathList) {
248
274
  this.tabList = this.tabList.filter((item) => !pathList.includes(item.fullPath));
249
275
  },
250
276
  updateCacheTab() {
251
- const cacheTab = DtCache.getLocal(CacheKey.THEME)?.routeReuse?.cache;
252
- cacheTab && DtCache.setLocal(CacheKey.ROUTE_REUSE, this.tabList);
277
+ DtCache.setLocal(CacheKey.ROUTE_REUSE, this.tabList);
253
278
  const cacheMap = /* @__PURE__ */ new Set();
254
279
  for (const tab of this.tabList) {
255
280
  if (tab.meta?.hideTab) {
@@ -273,42 +298,46 @@ defineStore({
273
298
  this.tabList.splice(oldIndex, 1);
274
299
  this.tabList.splice(newIndex, 0, currentTab);
275
300
  this.lastDragEndIndex = this.lastDragEndIndex + 1;
301
+ },
302
+ resetState() {
303
+ this.tabList = [];
304
+ this.updateCacheTab();
276
305
  }
277
306
  }
278
307
  });
279
308
  function useMenu() {
280
- const { getMenuConf, setThemeConf } = useThemeStore();
281
- const getCollapsedShowTitle = computed(() => getMenuConf.collapsedShowTitle);
282
- const getIsSidebarType = computed(() => getMenuConf.type === MenuType.SIDE);
283
- const getMenuFixed = computed(() => getMenuConf.fixed);
284
- const getShowMenu = computed(() => getMenuConf.show);
309
+ const { setThemeConf } = useThemeStore();
310
+ const getCollapsedShowTitle = computed(() => useThemeStore().getMenuConf.collapsedShowTitle);
311
+ const getIsSidebarType = computed(() => useThemeStore().getMenuConf.type === MenuType.SIDE);
312
+ const getMenuFixed = computed(() => useThemeStore().getMenuConf.fixed);
313
+ const getShowMenu = computed(() => useThemeStore().getMenuConf.show);
285
314
  const getShowSidebar = computed(() => {
286
315
  return unref(getSplit) || unref(getShowMenu) && unref(getMenuMode) !== MenuMode.HORIZONTAL;
287
316
  });
288
- const getMenuHidden = computed(() => getMenuConf.hidden);
289
- const getMenuTheme = computed(() => getMenuConf.theme);
290
- const getTrigger = computed(() => getMenuConf.trigger);
291
- const getCanDrag = computed(() => getMenuConf.canDrag);
317
+ const getMenuHidden = computed(() => useThemeStore().getMenuConf.hidden);
318
+ const getMenuTheme = computed(() => useThemeStore().getMenuConf.theme);
319
+ const getTrigger = computed(() => useThemeStore().getMenuConf.trigger);
320
+ const getCanDrag = computed(() => useThemeStore().getMenuConf.canDrag);
292
321
  const getIsMixMode = computed(() => {
293
322
  return unref(getMenuMode) === MenuMode.INLINE && unref(getMenuType) === MenuType.MIX;
294
323
  });
295
324
  const getIsMixSidebar = computed(() => unref(getMenuType) === MenuType.MIX_SIDEBAR);
296
325
  const getMenuWidth = computed(() => {
297
326
  if (unref(getIsMixMode)) {
298
- return Number(getMenuConf.menuWidth) - 40;
327
+ return Number(useThemeStore().getMenuConf.menuWidth) - 40;
299
328
  } else if (unref(getIsMixSidebar)) {
300
- return Number(getMenuConf.menuWidth) - 10;
329
+ return Number(useThemeStore().getMenuConf.menuWidth) - 10;
301
330
  } else {
302
- return Number(getMenuConf.menuWidth);
331
+ return Number(useThemeStore().getMenuConf.menuWidth);
303
332
  }
304
333
  });
305
- const getMixSideTrigger = computed(() => getMenuConf.mixSideTrigger);
306
- const getLogoWidth = computed(() => unref(getIsMixSidebar) ? "80px" : getMenuConf.menuWidth);
307
- const getMenuType = computed(() => getMenuConf.type);
334
+ const getMixSideTrigger = computed(() => useThemeStore().getMenuConf.mixSideTrigger);
335
+ const getLogoWidth = computed(() => unref(getIsMixSidebar) ? "80px" : useThemeStore().getMenuConf.menuWidth);
336
+ const getMenuType = computed(() => useThemeStore().getMenuConf.type);
308
337
  const getIsTopMenu = computed(() => unref(getMenuType) === MenuType.TOP_MENU);
309
- const getMenuMode = computed(() => getMenuConf.mode);
310
- const getSplit = computed(() => getMenuConf.split);
311
- const getCollapsed = computed(() => getMenuConf.collapsed);
338
+ const getMenuMode = computed(() => useThemeStore().getMenuConf.mode);
339
+ const getSplit = computed(() => useThemeStore().getMenuConf.split);
340
+ const getCollapsed = computed(() => useThemeStore().getMenuConf.collapsed);
312
341
  const getIsHorizontal = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL);
313
342
  const setThemeStore = (conf = {}) => setThemeConf(conf);
314
343
  const toggleCollapsed = () => setThemeStore({
@@ -316,7 +345,7 @@ function useMenu() {
316
345
  collapsed: !unref(getCollapsed)
317
346
  }
318
347
  });
319
- const getMiniWidthNumber = computed(() => getMenuConf.collapsedShowTitle ? 80 : 48);
348
+ const getMiniWidthNumber = computed(() => useThemeStore().getMenuConf.collapsedShowTitle ? 80 : 48);
320
349
  const getRealWidth = computed(() => {
321
350
  return unref(getCollapsed) ? unref(getMiniWidthNumber) : unref(getMenuWidth);
322
351
  });
@@ -410,7 +439,6 @@ function useHeader() {
410
439
  const getHeaderHeight = computed(() => {
411
440
  let height = 0;
412
441
  height += HEADER_HEIGHT;
413
- console.log(getMultipleTabPosIsTop);
414
442
  if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
415
443
  height += TABS_HEIGHT;
416
444
  }
@@ -605,6 +633,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
605
633
  };
606
634
  }
607
635
  });
636
+ const _export_sfc = (sfc, props) => {
637
+ const target = sfc.__vccOpts || sfc;
638
+ for (const [key, val] of props) {
639
+ target[key] = val;
640
+ }
641
+ return target;
642
+ };
643
+ const RadioButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/radioButton.vue"]]);
608
644
  const _hoisted_1$2 = { class: "input-with-dialog" };
609
645
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
610
646
  __name: "formInputUseDialog",
@@ -640,14 +676,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
640
676
  key: 0,
641
677
  class: "i mdi:close-circle",
642
678
  onClick: clearProps
643
- })) : createCommentVNode("", true)
679
+ })) : createCommentVNode("v-if", true)
644
680
  ]);
645
681
  };
646
682
  }
647
683
  });
684
+ const DtFormInputDialog = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/formInputUseDialog.vue"]]);
648
685
  const components = {
649
686
  Input,
650
- InputWithDialog: _sfc_main$c,
687
+ InputWithDialog: DtFormInputDialog,
651
688
  InputTextArea: Input.TextArea,
652
689
  InputSearch: Input.Search,
653
690
  InputGroup: Input.Group,
@@ -656,7 +693,7 @@ const components = {
656
693
  TreeSelect,
657
694
  Radio,
658
695
  RadioGroup: Radio.Group,
659
- RadioButtonGroup: _sfc_main$d,
696
+ RadioButtonGroup,
660
697
  Checkbox,
661
698
  CheckboxGroup: Checkbox.Group,
662
699
  AutoComplete,
@@ -1041,6 +1078,7 @@ const _sfc_main$b = {
1041
1078
  };
1042
1079
  }
1043
1080
  };
1081
+ const DtFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/FormItem.vue"]]);
1044
1082
  const _hoisted_1$1 = {
1045
1083
  key: 0,
1046
1084
  className: "preIcon pr-1"
@@ -1163,18 +1201,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1163
1201
  icon: withCtx(() => [
1164
1202
  button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$1, null, 512)), [
1165
1203
  [_directive_icon, button.preIcon]
1166
- ]) : createCommentVNode("", true)
1204
+ ]) : createCommentVNode("v-if", true)
1167
1205
  ]),
1168
1206
  default: withCtx(() => [
1169
1207
  createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
1170
1208
  button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
1171
1209
  [_directive_icon, button.postIcon]
1172
- ]) : createCommentVNode("", true)
1210
+ ]) : createCommentVNode("v-if", true)
1173
1211
  ]),
1174
1212
  _: 2
1175
1213
  }, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
1176
1214
  [_directive_auth, button.auth]
1177
- ]) : createCommentVNode("", true)
1215
+ ]) : createCommentVNode("v-if", true)
1178
1216
  ], 64);
1179
1217
  }), 256)),
1180
1218
  unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
@@ -1184,22 +1222,24 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1184
1222
  onClick: toggleAdvanced
1185
1223
  }, {
1186
1224
  default: withCtx(() => [
1225
+ createCommentVNode(" \u6536\u8D77 | \u5C55\u5F00 "),
1187
1226
  createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
1188
1227
  createElementVNode("span", {
1189
1228
  class: normalizeClass(unref(getAdvanceClass))
1190
1229
  }, _hoisted_5, 2)
1191
1230
  ]),
1192
1231
  _: 1
1193
- })) : createCommentVNode("", true)
1232
+ })) : createCommentVNode("v-if", true)
1194
1233
  ]),
1195
1234
  _: 1
1196
1235
  }, 8, ["style"])
1197
1236
  ]),
1198
1237
  _: 1
1199
- }, 16)) : createCommentVNode("", true);
1238
+ }, 16)) : createCommentVNode("v-if", true);
1200
1239
  };
1201
1240
  }
1202
1241
  });
1242
+ const DtFormButtons = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/components/FormButtons.vue"]]);
1203
1243
  const SEARCH_BTN_NAME = "UI.SEARCH";
1204
1244
  const RESET_BTN_NAME = "UI.RESET";
1205
1245
  const SEARCH_BTNS = [
@@ -1823,7 +1863,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1823
1863
  } }), {
1824
1864
  default: withCtx(() => [
1825
1865
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
1826
- return openBlock(), createBlock(unref(_sfc_main$b), {
1866
+ return openBlock(), createBlock(unref(DtFormItem), {
1827
1867
  key: schema.name,
1828
1868
  schema,
1829
1869
  formProps: unref(getProps),
@@ -1842,7 +1882,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1842
1882
  })
1843
1883
  ]), 1032, ["schema", "formProps", "formModel", "defaultValues"]);
1844
1884
  }), 128)),
1845
- unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(_sfc_main$a), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("", true)
1885
+ unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(DtFormButtons), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("v-if", true)
1846
1886
  ]),
1847
1887
  _: 3
1848
1888
  }, 16)
@@ -1852,6 +1892,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1852
1892
  };
1853
1893
  }
1854
1894
  });
1895
+ const Forms = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/form/src/index.vue"]]);
1855
1896
  function useForm(props) {
1856
1897
  const formRef = ref(null);
1857
1898
  const loadedRef = ref(false);
@@ -1928,7 +1969,7 @@ const withInstall = (comp) => {
1928
1969
  };
1929
1970
  return comp;
1930
1971
  };
1931
- const DtForm = withInstall(_sfc_main$9);
1972
+ const DtForm = withInstall(Forms);
1932
1973
  const orgDialogProp = reactive({});
1933
1974
  const cbTransfer = reactive({});
1934
1975
  const dataTransfer = reactive({});
@@ -2136,7 +2177,6 @@ function useDragMove(context) {
2136
2177
  const screenHeight = document.documentElement.clientHeight;
2137
2178
  const dragDomWidth = dragDom.offsetWidth;
2138
2179
  const dragDomheight = dragDom.offsetHeight;
2139
- console.log(dragDomWidth, dragDomheight, screenHeight, screenWidth);
2140
2180
  const minDragDomLeft = dragDom.offsetLeft;
2141
2181
  const maxDragDomLeft = screenWidth - dragDom.offsetLeft - dragDomWidth;
2142
2182
  const minDragDomTop = dragDom.offsetTop;
@@ -2233,12 +2273,13 @@ const _sfc_main$8 = {
2233
2273
  };
2234
2274
  if (!propsData?.visible)
2235
2275
  return null;
2236
- return createVNode(Modal, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
2276
+ return createVNode(Modal$1, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
2237
2277
  default: () => [_slot]
2238
2278
  });
2239
2279
  };
2240
2280
  }
2241
2281
  };
2282
+ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/modal/src/components/Modal.vue"]]);
2242
2283
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2243
2284
  __name: "CloseIcon",
2244
2285
  props: {
@@ -2297,7 +2338,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2297
2338
  ]),
2298
2339
  _: 1
2299
2340
  }, 8, ["title"]))
2300
- ], 64)) : createCommentVNode("", true),
2341
+ ], 64)) : createCommentVNode("v-if", true),
2301
2342
  createElementVNode("i", {
2302
2343
  class: "i mdi:close h-14 w-10 pr-4",
2303
2344
  onClick: handleCancel
@@ -2306,6 +2347,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2306
2347
  };
2307
2348
  }
2308
2349
  });
2350
+ const CloseIcon = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/modal/src/components/CloseIcon.vue"]]);
2309
2351
  const isServer = typeof window === "undefined";
2310
2352
  const BAR_MAP = {
2311
2353
  vertical: {
@@ -2547,12 +2589,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2547
2589
  };
2548
2590
  }
2549
2591
  });
2592
+ const ScrollBar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/container/src/components/scroll-bar.vue"]]);
2550
2593
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2551
2594
  __name: "scroll-container",
2552
2595
  setup(__props) {
2553
2596
  const scrollbarRef = ref(null);
2554
2597
  return (_ctx, _cache) => {
2555
- return openBlock(), createBlock(_sfc_main$6, mergeProps({
2598
+ return openBlock(), createBlock(ScrollBar, mergeProps({
2556
2599
  ref_key: "scrollbarRef",
2557
2600
  ref: scrollbarRef
2558
2601
  }, _ctx.$attrs, { class: "w-full h-full" }), {
@@ -2564,6 +2607,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2564
2607
  };
2565
2608
  }
2566
2609
  });
2610
+ const ScrollContainer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/container/src/scroll-container.vue"]]);
2567
2611
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2568
2612
  __name: "slot-container",
2569
2613
  props: {
@@ -2582,8 +2626,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2582
2626
  };
2583
2627
  }
2584
2628
  });
2585
- const DtScrollContainer = withInstall(_sfc_main$5);
2586
- withInstall(_sfc_main$4);
2629
+ const SlotContainer = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/container/src/slot-container.vue"]]);
2630
+ const DtScrollContainer = withInstall(ScrollContainer);
2631
+ withInstall(SlotContainer);
2587
2632
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2588
2633
  __name: "ModalWrap",
2589
2634
  props: {
@@ -2690,6 +2735,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2690
2735
  };
2691
2736
  }
2692
2737
  });
2738
+ const ModalWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/modal/src/components/ModalWrap.vue"]]);
2693
2739
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2694
2740
  __name: "ModalFooter",
2695
2741
  props: {
@@ -2732,7 +2778,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2732
2778
  return (_ctx, _cache) => {
2733
2779
  return openBlock(), createElementBlock(Fragment, null, [
2734
2780
  renderSlot(_ctx.$slots, "appendFooter"),
2735
- createVNode(_sfc_main$a, {
2781
+ createVNode(DtFormButtons, {
2736
2782
  mode: "dialog",
2737
2783
  buttonList: unref(buttonList),
2738
2784
  onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
@@ -2741,6 +2787,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2741
2787
  };
2742
2788
  }
2743
2789
  });
2790
+ const ModalFooter = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/modal/src/components/ModalFooter.vue"]]);
2744
2791
  function useFullScreen(wrapClassName) {
2745
2792
  const fullScreenRef = ref(false);
2746
2793
  const getWrapClassName = computed(() => {
@@ -2859,14 +2906,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2859
2906
  });
2860
2907
  return (_ctx, _cache) => {
2861
2908
  const _component_ASpin = Spin;
2862
- return openBlock(), createBlock(_sfc_main$8, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
2909
+ return openBlock(), createBlock(Modal, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
2863
2910
  default: withCtx(() => [
2864
2911
  createVNode(_component_ASpin, {
2865
2912
  spinning: unref(getBindValue).loading,
2866
2913
  tip: unref(getBindValue).loadingTip
2867
2914
  }, {
2868
2915
  default: withCtx(() => [
2869
- createVNode(_sfc_main$3, mergeProps({
2916
+ createVNode(ModalWrapper, mergeProps({
2870
2917
  useWrapper: unref(getBindValue).useWrapper,
2871
2918
  fullScreen: unref(fullScreenRef),
2872
2919
  ref_key: "modalWrapperRef",
@@ -2890,7 +2937,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2890
2937
  !_ctx.$slots.closeIcon ? {
2891
2938
  name: "closeIcon",
2892
2939
  fn: withCtx(() => [
2893
- createVNode(_sfc_main$7, {
2940
+ createVNode(CloseIcon, {
2894
2941
  canFullscreen: unref(getBindValue).canFullscreen,
2895
2942
  fullScreen: unref(fullScreenRef),
2896
2943
  onCancel: handleCancel,
@@ -2909,7 +2956,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2909
2956
  !_ctx.$slots.footer ? {
2910
2957
  name: "footer",
2911
2958
  fn: withCtx(() => [
2912
- createVNode(_sfc_main$2, {
2959
+ createVNode(ModalFooter, {
2913
2960
  buttons: propsRef.value?.footer,
2914
2961
  showSave: unref(getBindValue).showOkBtn,
2915
2962
  showCancel: unref(getBindValue).showCancelBtn,
@@ -2942,6 +2989,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2942
2989
  };
2943
2990
  }
2944
2991
  });
2992
+ const DtModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/modal/src/index.vue"]]);
2945
2993
  const basicProps = {
2946
2994
  title: {
2947
2995
  type: Object
@@ -3007,13 +3055,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3007
3055
  "formProps",
3008
3056
  "schemas"
3009
3057
  ]),
3010
- destroyOnClose: true
3058
+ destroyOnClose: true,
3059
+ maskClosable: false
3011
3060
  });
3012
3061
  function handleSave() {
3013
3062
  props?.onSave();
3014
3063
  }
3015
3064
  return (_ctx, _cache) => {
3016
- return openBlock(), createBlock(unref(_sfc_main$1), {
3065
+ return openBlock(), createBlock(unref(DtModal$1), {
3017
3066
  onRegister: unref(registerDialog),
3018
3067
  onSave: _cache[0] || (_cache[0] = ($event) => handleSave())
3019
3068
  }, {
@@ -3025,6 +3074,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3025
3074
  };
3026
3075
  }
3027
3076
  });
3077
+ const DtModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:/dt/dt-frame-front/dt-frames/frames/packages/ui/src/components/curd/src/components/Curd.vue"]]);
3028
3078
  function useCurd(curdOpt) {
3029
3079
  const [register, {
3030
3080
  openModal,
@@ -3052,7 +3102,7 @@ function useCurd(curdOpt) {
3052
3102
  const DtCurdModal = () => {
3053
3103
  return h(createVNode("div", {
3054
3104
  "class": "dt-curd-modal"
3055
- }, [createVNode(_sfc_main, mergeProps(curdOpt, {
3105
+ }, [createVNode(DtModal, mergeProps(curdOpt, {
3056
3106
  "title": title,
3057
3107
  "onRegister": register
3058
3108
  }), {