@dt-frames/ui 2.0.3 → 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 (141) hide show
  1. package/es/assets/locales/en.ts +1 -1
  2. package/es/components/curd/index.js +346 -331
  3. package/es/components/curd/src/components/Curd.d.ts +0 -8
  4. package/es/components/curd/src/props.d.ts +0 -4
  5. package/es/components/drawer/index.d.ts +1 -1
  6. package/es/components/drawer/index.js +27 -27
  7. package/es/components/drawer/src/index.d.ts +2 -3
  8. package/es/components/form/index.d.ts +0 -33
  9. package/es/components/form/index.js +72 -36
  10. package/es/components/form/index.less +212 -9
  11. package/es/components/form/src/components/FormItem.d.ts +3 -7
  12. package/es/components/form/src/components/formIcon.d.ts +14 -14
  13. package/es/components/form/src/components/formInputUseDialog.d.ts +8 -8
  14. package/es/components/form/src/enums/index.d.ts +1 -1
  15. package/es/components/form/src/index.d.ts +0 -25
  16. package/es/components/form/src/props.d.ts +2 -6
  17. package/es/components/form/src/types/form.type.d.ts +1 -1
  18. package/es/components/icons/index.less +5 -0
  19. package/es/components/modal/index.js +35 -34
  20. package/es/components/modal/index.less +10 -0
  21. package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
  22. package/es/components/modal/src/index.d.ts +9 -9
  23. package/es/components/source/hooks/useSource.d.ts +14 -0
  24. package/es/components/source/index.js +72 -31
  25. package/es/components/source/types/source.type.d.ts +5 -8
  26. package/es/components/table/index.js +418 -305
  27. package/es/components/table/index.less +62 -14
  28. package/es/components/table/src/components/TableAction.d.ts +1 -1
  29. package/es/components/table/src/index.d.ts +30 -10
  30. package/es/components/table/src/props.d.ts +12 -4
  31. package/es/components/table/src/types/table.type.d.ts +4 -5
  32. package/es/components/tree/index.d.ts +2 -0
  33. package/es/components/tree/index.js +1087 -0
  34. package/es/components/tree/index.less +119 -0
  35. package/es/components/tree/src/basicProps.d.ts +146 -0
  36. package/es/components/tree/src/components/ContextMenu.d.ts +64 -0
  37. package/es/components/tree/src/components/TreeHeader.d.ts +98 -0
  38. package/es/components/tree/src/enums/index.d.ts +6 -0
  39. package/es/components/tree/src/hooks/useContextMenu.d.ts +2 -0
  40. package/es/components/tree/src/hooks/useTree.d.ts +14 -0
  41. package/es/components/tree/src/index.d.ts +6526 -0
  42. package/es/components/tree/src/type/menu.d.ts +33 -0
  43. package/es/components/tree/src/type/tree.d.ts +55 -0
  44. package/es/components/tree/src/utils/tree.d.ts +5 -0
  45. package/es/packages/ui/src/assets/locales/en.d.ts +101 -0
  46. package/es/packages/ui/src/assets/locales/index.d.ts +2 -0
  47. package/es/packages/ui/src/assets/locales/zh.d.ts +103 -0
  48. package/es/packages/ui/src/components/container/index.d.ts +94 -0
  49. package/es/packages/ui/src/components/container/src/components/bar.d.ts +14 -0
  50. package/es/packages/ui/src/components/container/src/components/scroll-bar.d.ts +70 -0
  51. package/es/packages/ui/src/components/container/src/hooks/scroll.d.ts +10 -0
  52. package/es/packages/ui/src/components/container/src/scroll-container.d.ts +76 -0
  53. package/es/packages/ui/src/components/container/src/slot-container.d.ts +20 -0
  54. package/es/packages/ui/src/components/container/src/types/scroll.type.d.ts +22 -0
  55. package/es/packages/ui/src/components/container/src/utils/scroll.d.ts +5 -0
  56. package/es/packages/ui/src/global.d.ts +7 -0
  57. package/es/packages/ui/src/theme/index.d.ts +10 -0
  58. package/es/packages/ui/src/theme/src/components/content/index.d.ts +27 -0
  59. package/es/packages/ui/src/theme/src/components/feature/back-top.d.ts +5 -0
  60. package/es/packages/ui/src/theme/src/components/feature/index.d.ts +7 -0
  61. package/es/packages/ui/src/theme/src/components/footer/index.d.ts +31 -0
  62. package/es/packages/ui/src/theme/src/components/header/components/bread-crumb.d.ts +6 -0
  63. package/es/packages/ui/src/theme/src/components/header/components/fullscreen.d.ts +5 -0
  64. package/es/packages/ui/src/theme/src/components/header/components/index.d.ts +11 -0
  65. package/es/packages/ui/src/theme/src/components/header/components/lang-picker.d.ts +23 -0
  66. package/es/packages/ui/src/theme/src/components/header/components/logo.d.ts +56 -0
  67. package/es/packages/ui/src/theme/src/components/header/components/menu-filter.d.ts +22 -0
  68. package/es/packages/ui/src/theme/src/components/header/components/notify.d.ts +24 -0
  69. package/es/packages/ui/src/theme/src/components/header/components/setting-theme.d.ts +223 -0
  70. package/es/packages/ui/src/theme/src/components/header/components/size.d.ts +282 -0
  71. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
  72. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
  73. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
  74. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
  75. package/es/packages/ui/src/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
  76. package/es/packages/ui/src/theme/src/components/header/components/trigger.d.ts +10 -0
  77. package/es/packages/ui/src/theme/src/components/header/components/user-info.d.ts +37 -0
  78. package/es/packages/ui/src/theme/src/components/header/helper/change-theme.d.ts +13 -0
  79. package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +4 -0
  80. package/es/packages/ui/src/theme/src/components/header/index.d.ts +720 -0
  81. package/es/packages/ui/src/theme/src/components/header/multiple-header.d.ts +806 -0
  82. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
  83. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
  84. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
  85. package/es/packages/ui/src/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
  86. package/es/packages/ui/src/theme/src/components/sider/components/drag-bar.d.ts +14 -0
  87. package/es/packages/ui/src/theme/src/components/sider/components/layout-menu.d.ts +22 -0
  88. package/es/packages/ui/src/theme/src/components/sider/components/props.d.ts +69 -0
  89. package/es/packages/ui/src/theme/src/components/sider/components/sider-trigger.d.ts +17 -0
  90. package/es/packages/ui/src/theme/src/components/sider/helper/sider.d.ts +12 -0
  91. package/es/packages/ui/src/theme/src/components/sider/helper/split-menu.d.ts +10 -0
  92. package/es/packages/ui/src/theme/src/components/sider/index.d.ts +235 -0
  93. package/es/packages/ui/src/theme/src/components/sider/mix-sider.d.ts +167 -0
  94. package/es/packages/ui/src/theme/src/components/tabs/components/TabContent.d.ts +6 -0
  95. package/es/packages/ui/src/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
  96. package/es/packages/ui/src/theme/src/components/tabs/components/index.d.ts +3 -0
  97. package/es/packages/ui/src/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
  98. package/es/packages/ui/src/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
  99. package/es/packages/ui/src/theme/src/components/tabs/index.d.ts +63 -0
  100. package/es/packages/ui/src/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
  101. package/es/packages/ui/src/theme/src/enums/index.d.ts +1 -0
  102. package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +34 -0
  103. package/es/packages/ui/src/theme/src/hooks/index.d.ts +6 -0
  104. package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +2 -0
  105. package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +25 -0
  106. package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +29 -0
  107. package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +8 -0
  108. package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +7 -0
  109. package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +9 -0
  110. package/es/packages/ui/src/theme/src/index.d.ts +1851 -0
  111. package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +2 -0
  112. package/es/packages/ui/src/theme/src/stores/index.d.ts +3 -0
  113. package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +23 -0
  114. package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +18 -0
  115. package/es/packages/ui/src/theme/src/types/index.d.ts +3 -0
  116. package/es/packages/ui/src/theme/src/types/menu.type.d.ts +15 -0
  117. package/es/packages/ui/src/theme/src/types/theme.type.d.ts +62 -0
  118. package/es/packages/ui/src/utils/withInstall.d.ts +4 -0
  119. package/es/theme/index.d.ts +2 -1
  120. package/es/theme/index.js +898 -683
  121. package/es/theme/index.less +205 -0
  122. package/es/theme/src/components/header/components/logo.d.ts +22 -0
  123. package/es/theme/src/components/header/components/size.d.ts +5 -5
  124. package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
  125. package/es/theme/src/components/header/index.d.ts +92 -5
  126. package/es/theme/src/components/header/multiple-header.d.ts +94 -7
  127. package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
  128. package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
  129. package/es/theme/src/components/sider/index.d.ts +169 -3
  130. package/es/theme/src/components/sider/mix-sider.d.ts +168 -0
  131. package/es/theme/src/enums/theme.enum.d.ts +2 -1
  132. package/es/theme/src/hooks/useMenu.d.ts +5 -3
  133. package/es/theme/src/hooks/useMultifyTab.d.ts +1 -0
  134. package/es/theme/src/index.d.ts +356 -15
  135. package/es/theme/src/stores/theme.store.d.ts +3 -0
  136. package/es/theme/src/types/theme.type.d.ts +2 -0
  137. package/index.d.ts +2 -1
  138. package/index.js +6 -2
  139. package/package.json +4 -4
  140. package/tsconfig.json +1 -0
  141. package/vite.config.ts +1 -0
@@ -1,14 +1,25 @@
1
- import { toRaw as toRaw$1, unref as unref$1, computed, getCurrentInstance as getCurrentInstance$1, reactive, readonly, watchEffect, nextTick as nextTick$1, defineComponent, useAttrs, openBlock, createBlock, mergeProps, isRef, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode, createVNode, normalizeProps, guardReactiveProps, createCommentVNode, toRefs, isVNode, ref as ref$1, watch, resolveDirective, normalizeStyle, withDirectives, normalizeClass, onMounted as onMounted$1, withKeys, createSlots, renderSlot, onUnmounted, inject, h, provide, onBeforeUnmount, resolveDynamicComponent } from "vue";
1
+ import { toRaw, unref, computed, getCurrentInstance, reactive, readonly, watchEffect, nextTick, defineComponent, useAttrs, openBlock, createBlock, mergeProps, isRef, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode, createVNode, normalizeProps, guardReactiveProps, createCommentVNode, toRefs, isVNode, ref, watch, resolveDirective, normalizeStyle, withDirectives, normalizeClass, onMounted, withKeys, createSlots, renderSlot, onUnmounted, inject, h, provide, onBeforeUnmount, resolveDynamicComponent } from "vue";
2
2
  import { RadioButton, RadioGroup, Button, FormItem as FormItem$1, Col as Col$1, Row, Form as Form$1, Tooltip as Tooltip$1, Spin } from "ant-design-vue/es";
3
3
  import "ant-design-vue/es/form/style";
4
+ import "ant-design-vue/es/row/style";
4
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";
5
6
  import { isEqual, omit, cloneDeep, upperFirst, uniqBy, set } from "lodash-es";
6
- 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";
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";
7
8
  import { defineStore } from "pinia";
9
+ import "ant-design-vue/es/radio/style";
10
+ import "ant-design-vue/es/cascader/style";
11
+ import "ant-design-vue/es/input-number/style";
12
+ import "ant-design-vue/es/switch/style";
13
+ import "ant-design-vue/es/tree-select/style";
14
+ import "ant-design-vue/es/slider/style";
15
+ import "ant-design-vue/es/rate/style";
16
+ import "ant-design-vue/es/date-picker/style";
17
+ import "ant-design-vue/es/col/style";
8
18
  import "ant-design-vue/es/button/style";
9
19
  import dayjs from "dayjs";
10
- const _default = "";
11
- const index$3 = "";
20
+ import "ant-design-vue/es/spin/style";
21
+ import "ant-design-vue/es/modal/style";
22
+ import "ant-design-vue/es/tooltip/style";
12
23
  var Theme = /* @__PURE__ */ ((Theme2) => {
13
24
  Theme2["DARK"] = "dark";
14
25
  Theme2["LIGHT"] = "light";
@@ -18,6 +29,7 @@ var MenuType = /* @__PURE__ */ ((MenuType2) => {
18
29
  MenuType2["SIDE"] = "sidebar";
19
30
  MenuType2["TOP_MENU"] = "top-menu";
20
31
  MenuType2["MIX"] = "mix";
32
+ MenuType2["MIX_SIDEBAR"] = "mix-sidebar";
21
33
  return MenuType2;
22
34
  })(MenuType || {});
23
35
  var MenuMode = /* @__PURE__ */ ((MenuMode2) => {
@@ -69,7 +81,8 @@ const defaultThemeConf = {
69
81
  menuWidth: 240,
70
82
  trigger: true,
71
83
  type: MenuType.SIDE,
72
- mode: MenuMode.INLINE
84
+ mode: MenuMode.INLINE,
85
+ mixSideTrigger: "hover"
73
86
  },
74
87
  footerOptions: {
75
88
  show: false,
@@ -90,7 +103,8 @@ const useThemeStore = defineStore({
90
103
  id: "dt-theme",
91
104
  state: () => ({
92
105
  themeConf: DtCache.getLocal(CacheKey.THEME) ?? defaultThemeConf,
93
- pageLoading: false
106
+ pageLoading: false,
107
+ mixSiderHasSubMenu: false
94
108
  }),
95
109
  getters: {
96
110
  getThemeConf() {
@@ -110,6 +124,9 @@ const useThemeStore = defineStore({
110
124
  },
111
125
  getPageLoading() {
112
126
  return this.pageLoading;
127
+ },
128
+ getMixSiderIsHasMenu() {
129
+ return this.mixSiderHasSubMenu;
113
130
  }
114
131
  },
115
132
  actions: {
@@ -117,6 +134,9 @@ const useThemeStore = defineStore({
117
134
  let newThemeConf = deepMerge(this.themeConf, options);
118
135
  this.themeConf = deepMerge(defaultThemeConf, newThemeConf);
119
136
  DtCache.setLocal(CacheKey.THEME, this.themeConf);
137
+ },
138
+ setMixSiderIsHasMenu(val) {
139
+ this.mixSiderHasSubMenu = val;
120
140
  }
121
141
  }
122
142
  });
@@ -145,12 +165,12 @@ defineStore({
145
165
  return;
146
166
  }
147
167
  let updateIndex = -1;
148
- const tabHasExits = this.tabList.some((tab, index2) => {
149
- updateIndex = index2;
168
+ const tabHasExits = this.tabList.some((tab, index) => {
169
+ updateIndex = index;
150
170
  return (tab.fullPath || tab.path) === (fullPath || path);
151
171
  });
152
172
  if (tabHasExits) {
153
- const curTab = toRaw$1(this.tabList)[updateIndex];
173
+ const curTab = toRaw(this.tabList)[updateIndex];
154
174
  curTab.params = params || curTab.params;
155
175
  curTab.query = query || curTab.query;
156
176
  curTab.fullPath = fullPath || curTab.fullPath;
@@ -162,14 +182,14 @@ defineStore({
162
182
  },
163
183
  closeTab(path, router) {
164
184
  const go = useGo(router);
165
- const index2 = this.tabList.findIndex((item) => item.path === path);
185
+ const index = this.tabList.findIndex((item) => item.path === path);
166
186
  let page;
167
- if (index2 === 0) {
187
+ if (index === 0) {
168
188
  if (this.tabList.length !== 1) {
169
- page = this.tabList[index2 + 1];
189
+ page = this.tabList[index + 1];
170
190
  }
171
191
  } else {
172
- page = this.tabList[index2 - 1];
192
+ page = this.tabList[index - 1];
173
193
  }
174
194
  this.bulkCloseTabs([path]);
175
195
  this.updateCacheTab();
@@ -178,15 +198,15 @@ defineStore({
178
198
  closeAllTab(currentRoute, router) {
179
199
  const go = useGo(router);
180
200
  let filterTabList = this.tabList.filter((item) => item?.meta?.affix ?? false);
181
- const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref$1(currentRoute);
201
+ const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref(currentRoute);
182
202
  this.tabList = [route];
183
203
  this.updateCacheTab();
184
204
  go(route.path);
185
205
  },
186
206
  closeLeftTabs(path) {
187
- const index2 = this.tabList.findIndex((item) => item.path === path);
188
- if (index2 > 0) {
189
- const leftTabs = this.tabList.slice(0, index2);
207
+ const index = this.tabList.findIndex((item) => item.path === path);
208
+ if (index > 0) {
209
+ const leftTabs = this.tabList.slice(0, index);
190
210
  const pathList = [];
191
211
  for (const item of leftTabs) {
192
212
  const affix = item?.meta?.affix ?? false;
@@ -199,9 +219,9 @@ defineStore({
199
219
  this.updateCacheTab();
200
220
  },
201
221
  closeRightTabs(path) {
202
- const index2 = this.tabList.findIndex((item) => item.path === path);
203
- if (index2 >= 0 && index2 < this.tabList.length - 1) {
204
- const rightTabs = this.tabList.slice(index2 + 1, this.tabList.length);
222
+ const index = this.tabList.findIndex((item) => item.path === path);
223
+ if (index >= 0 && index < this.tabList.length - 1) {
224
+ const rightTabs = this.tabList.slice(index + 1, this.tabList.length);
205
225
  const pathList = [];
206
226
  for (const item of rightTabs) {
207
227
  const affix = item?.meta?.affix ?? false;
@@ -241,7 +261,7 @@ defineStore({
241
261
  this.cacheTabList = cacheMap;
242
262
  },
243
263
  async refreshPage(router) {
244
- const findTab = this.getCachedTabList.find((item) => item === unref$1(router.currentRoute).name);
264
+ const findTab = this.getCachedTabList.find((item) => item === unref(router.currentRoute).name);
245
265
  if (findTab) {
246
266
  this.cacheTabList.delete(findTab.toString());
247
267
  }
@@ -263,36 +283,46 @@ function useMenu() {
263
283
  const getMenuFixed = computed(() => getMenuConf.fixed);
264
284
  const getShowMenu = computed(() => getMenuConf.show);
265
285
  const getShowSidebar = computed(() => {
266
- return unref$1(getSplit) || unref$1(getShowMenu) && unref$1(getMenuMode) !== MenuMode.HORIZONTAL;
286
+ return unref(getSplit) || unref(getShowMenu) && unref(getMenuMode) !== MenuMode.HORIZONTAL;
267
287
  });
268
288
  const getMenuHidden = computed(() => getMenuConf.hidden);
269
289
  const getMenuTheme = computed(() => getMenuConf.theme);
270
290
  const getTrigger = computed(() => getMenuConf.trigger);
271
291
  const getCanDrag = computed(() => getMenuConf.canDrag);
272
292
  const getIsMixMode = computed(() => {
273
- return unref$1(getMenuMode) === MenuMode.INLINE && unref$1(getMenuType) === MenuType.MIX;
293
+ return unref(getMenuMode) === MenuMode.INLINE && unref(getMenuType) === MenuType.MIX;
294
+ });
295
+ const getIsMixSidebar = computed(() => unref(getMenuType) === MenuType.MIX_SIDEBAR);
296
+ const getMenuWidth = computed(() => {
297
+ if (unref(getIsMixMode)) {
298
+ return Number(getMenuConf.menuWidth) - 40;
299
+ } else if (unref(getIsMixSidebar)) {
300
+ return Number(getMenuConf.menuWidth) - 10;
301
+ } else {
302
+ return Number(getMenuConf.menuWidth);
303
+ }
274
304
  });
275
- const getMenuWidth = computed(() => unref$1(getIsMixMode) ? Number(getMenuConf.menuWidth) - 40 : getMenuConf.menuWidth);
276
- const getLogoWidth = computed(() => getMenuConf.menuWidth);
305
+ const getMixSideTrigger = computed(() => getMenuConf.mixSideTrigger);
306
+ const getLogoWidth = computed(() => unref(getIsMixSidebar) ? "80px" : getMenuConf.menuWidth);
277
307
  const getMenuType = computed(() => getMenuConf.type);
278
- const getIsTopMenu = computed(() => unref$1(getMenuType) === MenuType.TOP_MENU);
308
+ const getIsTopMenu = computed(() => unref(getMenuType) === MenuType.TOP_MENU);
279
309
  const getMenuMode = computed(() => getMenuConf.mode);
280
310
  const getSplit = computed(() => getMenuConf.split);
281
311
  const getCollapsed = computed(() => getMenuConf.collapsed);
282
- const getIsHorizontal = computed(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL);
312
+ const getIsHorizontal = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL);
283
313
  const setThemeStore = (conf = {}) => setThemeConf(conf);
284
314
  const toggleCollapsed = () => setThemeStore({
285
315
  menuOptions: {
286
- collapsed: !unref$1(getCollapsed)
316
+ collapsed: !unref(getCollapsed)
287
317
  }
288
318
  });
289
319
  const getMiniWidthNumber = computed(() => getMenuConf.collapsedShowTitle ? 80 : 48);
290
320
  const getRealWidth = computed(() => {
291
- return unref$1(getCollapsed) ? unref$1(getMiniWidthNumber) : unref$1(getMenuWidth);
321
+ return unref(getCollapsed) ? unref(getMiniWidthNumber) : unref(getMenuWidth);
292
322
  });
293
323
  const getCalcContentWidth = computed(() => {
294
- const width = unref$1(getIsTopMenu) || !unref$1(getShowMenu) || unref$1(getSplit) && unref$1(getMenuHidden) ? 0 : unref$1(getRealWidth);
295
- return `calc(100% - ${unref$1(width)}px)`;
324
+ const width = unref(getIsTopMenu) || !unref(getShowMenu) || unref(getSplit) && unref(getMenuHidden) ? 0 : unref(getRealWidth);
325
+ return `calc(100% - ${unref(width)}px)`;
296
326
  });
297
327
  return {
298
328
  getCollapsedShowTitle,
@@ -315,7 +345,9 @@ function useMenu() {
315
345
  getRealWidth,
316
346
  getCalcContentWidth,
317
347
  getIsMixMode,
348
+ getIsMixSidebar,
318
349
  getCanDrag,
350
+ getMixSideTrigger,
319
351
  toggleCollapsed,
320
352
  setThemeStore
321
353
  };
@@ -324,12 +356,14 @@ function useMultipleTab() {
324
356
  const { getRouteReuseConf } = useThemeStore();
325
357
  const getShowMultipleTab = computed(() => getRouteReuseConf.show);
326
358
  const getShowQuick = computed(() => getRouteReuseConf.showQuick);
359
+ const getMultipleTabPosIsTop = computed(() => getRouteReuseConf.position === "top");
327
360
  const getShowRedo = computed(() => getRouteReuseConf.showRedo);
328
361
  const getCanCache = computed(() => getRouteReuseConf.cache);
329
362
  const getCanDrag = computed(() => getRouteReuseConf.canDrag);
330
363
  return {
331
364
  getShowMultipleTab,
332
365
  getShowQuick,
366
+ getMultipleTabPosIsTop,
333
367
  getShowRedo,
334
368
  getCanCache,
335
369
  getCanDrag
@@ -348,42 +382,43 @@ function useHeader() {
348
382
  getMenuMode,
349
383
  getSplit,
350
384
  getIsTopMenu,
351
- getIsMixMode
385
+ getIsMixSidebar
352
386
  } = useMenu();
353
- const { getShowMultipleTab } = useMultipleTab();
387
+ const { getShowMultipleTab, getMultipleTabPosIsTop } = useMultipleTab();
354
388
  const getHeaderTheme = computed(() => getHeaderConf.theme);
355
389
  const getFixed = computed(() => getHeaderConf.fixed);
356
- const getShowHeaderLogo = computed(() => unref$1(getShowLogo) && !unref$1(getIsSidebarType));
390
+ const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType) && !unref(getIsMixSidebar));
357
391
  const getShowSearch = computed(() => getHeaderConf.showSearch);
358
392
  const getShowHeaderTrigger = computed(() => {
359
- if (unref$1(getMenuType) === MenuType.TOP_MENU || !unref$1(getShowMenu) || unref$1(getMenuHidden)) {
393
+ if (unref(getMenuType) === MenuType.TOP_MENU || !unref(getShowMenu) || unref(getMenuHidden)) {
360
394
  return false;
361
395
  }
362
- return unref$1(getTrigger);
396
+ return unref(getTrigger);
363
397
  });
364
398
  const getShowBreadCrumb = computed(() => getHeaderConf.showBreadCrumb);
365
399
  const getShowBread = computed(
366
- () => unref$1(getMenuMode) !== MenuMode.HORIZONTAL && !unref$1(getSplit) && unref$1(getShowBreadCrumb)
400
+ () => unref(getMenuMode) !== MenuMode.HORIZONTAL && !unref(getSplit) && unref(getShowBreadCrumb)
367
401
  );
368
- const getShowTopMenu = computed(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL || unref$1(getSplit));
402
+ const getShowTopMenu = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL || unref(getSplit));
369
403
  const getShowNotice = computed(() => getHeaderConf.showNotice);
370
404
  const getShowFullScreen = computed(() => getHeaderConf.showFullScreen);
371
405
  const getShowLocale = computed(() => getHeaderConf.showLocaleSwitch);
372
406
  const getShowSettingTheme = computed(() => getHeaderConf.showSettingTheme);
373
407
  const getShowFullHeaderRef = computed(() => {
374
- return !unref$1(getIsSidebarType) && !unref$1(getIsTopMenu);
408
+ return !unref(getIsSidebarType) && !unref(getIsMixSidebar) && !unref(getIsTopMenu);
375
409
  });
376
410
  const getHeaderHeight = computed(() => {
377
411
  let height = 0;
378
412
  height += HEADER_HEIGHT;
379
- if (unref$1(getShowMultipleTab) && !unref$1(getSplit)) {
413
+ console.log(getMultipleTabPosIsTop);
414
+ if (unref(getShowMultipleTab) && !unref(getSplit) && !unref(getMultipleTabPosIsTop)) {
380
415
  height += TABS_HEIGHT;
381
416
  }
382
417
  return height;
383
418
  });
384
419
  const getTabsHeight = computed(() => TABS_HEIGHT);
385
420
  const getShowInsetHeaderRef = computed(() => {
386
- return unref$1(getIsSidebarType) || unref$1(getIsTopMenu);
421
+ return unref(getIsSidebarType) || unref(getIsTopMenu) || unref(getIsMixSidebar);
387
422
  });
388
423
  const getShowBackToTop = computed(() => getHeaderConf.showBackToTop);
389
424
  const getIsZH = computed(() => {
@@ -426,15 +461,15 @@ function useLabelWidth(schemaItemRef, propsRef) {
426
461
  const { getIsZH } = useHeader();
427
462
  const { appConf } = useAppStore();
428
463
  return computed(() => {
429
- const { labelWidth, enLabelWidth, labelCol = {}, wrapperCol = {} } = unref$1(schemaItemRef);
464
+ const { labelWidth, enLabelWidth, labelCol = {}, wrapperCol = {} } = unref(schemaItemRef);
430
465
  const {
431
466
  labelWidth: gLabelWidth,
432
467
  enLabelWidth: gEnLabelWidth,
433
468
  labelCol: glabelCol = {},
434
469
  wrapperCol: gwrapperCol = {},
435
470
  layout = appConf.ui.form.layout
436
- } = unref$1(propsRef);
437
- let width = (unref$1(getIsZH) ? labelWidth ?? gLabelWidth : enLabelWidth ?? gEnLabelWidth) ?? labelWidth ?? gLabelWidth ?? 0;
471
+ } = unref(propsRef);
472
+ let width = (unref(getIsZH) ? labelWidth ?? gLabelWidth : enLabelWidth ?? gEnLabelWidth) ?? labelWidth ?? gLabelWidth ?? 0;
438
473
  const labelcol = { ...glabelCol, ...labelCol };
439
474
  const wrapcol = { ...gwrapperCol, ...wrapperCol };
440
475
  width = isNumber(width) ? `${width}px` : width;
@@ -488,9 +523,8 @@ function handleInputNumberValue(component, val) {
488
523
  }
489
524
  return val;
490
525
  }
491
- const index$2 = "";
492
526
  function useFormValue(props, key = "value", changeEvent = "change", emitData) {
493
- const instance = getCurrentInstance$1();
527
+ const instance = getCurrentInstance();
494
528
  const emit = instance?.emit;
495
529
  const innerState = reactive({
496
530
  value: props[key]
@@ -498,8 +532,8 @@ function useFormValue(props, key = "value", changeEvent = "change", emitData) {
498
532
  const defaultState = readonly(innerState);
499
533
  const setState = (val) => {
500
534
  innerState.value = val;
501
- nextTick$1(() => {
502
- emit?.(changeEvent, val, ...toRaw$1(unref$1(emitData)) || []);
535
+ nextTick(() => {
536
+ emit?.(changeEvent, val, ...toRaw(unref(emitData)) || []);
503
537
  });
504
538
  };
505
539
  watchEffect(() => {
@@ -513,8 +547,8 @@ function useFormValue(props, key = "value", changeEvent = "change", emitData) {
513
547
  if (isEqual(value, defaultState.value))
514
548
  return;
515
549
  innerState.value = value;
516
- nextTick$1(() => {
517
- emit?.(changeEvent, value, ...toRaw$1(unref$1(emitData)) || []);
550
+ nextTick(() => {
551
+ emit?.(changeEvent, value, ...toRaw(unref(emitData)) || []);
518
552
  });
519
553
  }
520
554
  });
@@ -547,13 +581,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
547
581
  return (_ctx, _cache) => {
548
582
  const _component_ARadioButton = RadioButton;
549
583
  const _component_ARadioGroup = RadioGroup;
550
- return openBlock(), createBlock(_component_ARadioGroup, mergeProps(unref$1(attrs), {
551
- value: unref$1(state),
584
+ return openBlock(), createBlock(_component_ARadioGroup, mergeProps(unref(attrs), {
585
+ value: unref(state),
552
586
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(state) ? state.value = $event : null),
553
587
  "button-style": "solid"
554
588
  }), {
555
589
  default: withCtx(() => [
556
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getOptions), (item) => {
590
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptions), (item) => {
557
591
  return openBlock(), createBlock(_component_ARadioButton, {
558
592
  key: `${item.value}`,
559
593
  value: item.value,
@@ -571,14 +605,6 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
571
605
  };
572
606
  }
573
607
  });
574
- const _export_sfc = (sfc, props) => {
575
- const target = sfc.__vccOpts || sfc;
576
- for (const [key, val] of props) {
577
- target[key] = val;
578
- }
579
- return target;
580
- };
581
- 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"]]);
582
608
  const _hoisted_1$2 = { class: "input-with-dialog" };
583
609
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
584
610
  __name: "formInputUseDialog",
@@ -608,21 +634,20 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
608
634
  return (_ctx, _cache) => {
609
635
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
610
636
  createElementVNode("div", { onClick: onClickInput }, [
611
- createVNode(unref$1(Input), normalizeProps(guardReactiveProps(unref$1(bindProps))), null, 16)
637
+ createVNode(unref(Input), normalizeProps(guardReactiveProps(unref(bindProps))), null, 16)
612
638
  ]),
613
- unref$1(attrs).formValues?.schema?.linkProps?.length ? (openBlock(), createElementBlock("i", {
639
+ unref(attrs).formValues?.schema?.linkProps?.length ? (openBlock(), createElementBlock("i", {
614
640
  key: 0,
615
641
  class: "i mdi:close-circle",
616
642
  onClick: clearProps
617
- })) : createCommentVNode("v-if", true)
643
+ })) : createCommentVNode("", true)
618
644
  ]);
619
645
  };
620
646
  }
621
647
  });
622
- 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"]]);
623
648
  const components = {
624
649
  Input,
625
- InputWithDialog: DtFormInputDialog,
650
+ InputWithDialog: _sfc_main$c,
626
651
  InputTextArea: Input.TextArea,
627
652
  InputSearch: Input.Search,
628
653
  InputGroup: Input.Group,
@@ -631,7 +656,7 @@ const components = {
631
656
  TreeSelect,
632
657
  Radio,
633
658
  RadioGroup: Radio.Group,
634
- RadioButtonGroup,
659
+ RadioButtonGroup: _sfc_main$d,
635
660
  Checkbox,
636
661
  CheckboxGroup: Checkbox.Group,
637
662
  AutoComplete,
@@ -727,7 +752,7 @@ const _sfc_main$b = {
727
752
  return false;
728
753
  }
729
754
  if (isFunction(show)) {
730
- return show(unref$1(getValues).model);
755
+ return show(unref(getValues).model);
731
756
  }
732
757
  return show;
733
758
  });
@@ -739,7 +764,7 @@ const _sfc_main$b = {
739
764
  props: cProps = {}
740
765
  } = schema2;
741
766
  if (isFunction(cProps)) {
742
- cProps = cProps(unref$1(getValues).model) ?? {};
767
+ cProps = cProps(unref(getValues).model) ?? {};
743
768
  }
744
769
  if (schema2.component === "Divider") {
745
770
  cProps = Object.assign({
@@ -763,9 +788,9 @@ const _sfc_main$b = {
763
788
  const {
764
789
  labelCol,
765
790
  wrapperCol
766
- } = unref$1(useLabelWidth(schema, formProps));
791
+ } = unref(useLabelWidth(schema, formProps));
767
792
  const getContent = () => {
768
- const value = unref$1(getValues);
793
+ const value = unref(getValues);
769
794
  let _con = slot ? getSlot(slots, slot, value.model) : render ? render(value.model) : renderFormItem();
770
795
  return component === "InputGroup" || component === "Icon" ? createVNode(FormItem, {
771
796
  "class": "m-0"
@@ -774,15 +799,15 @@ const _sfc_main$b = {
774
799
  }) : _con;
775
800
  };
776
801
  const getSuffix = () => {
777
- return isFunction(suffix) ? suffix(unref$1(getValues).model) : suffix;
802
+ return isFunction(suffix) ? suffix(unref(getValues).model) : suffix;
778
803
  };
779
804
  const getPrefix = () => {
780
- return isFunction(prefix) ? prefix(unref$1(getValues).model) : prefix;
805
+ return isFunction(prefix) ? prefix(unref(getValues).model) : prefix;
781
806
  };
782
807
  return createVNode(Form.Item, {
783
808
  "name": isArray(name) ? name.join("-") : name,
784
809
  "colon": colon,
785
- "class": [unref$1(getUiSize), {
810
+ "class": [unref(getUiSize), {
786
811
  "suffix-item": !!suffix
787
812
  }],
788
813
  "label": renderLabel(),
@@ -811,7 +836,7 @@ const _sfc_main$b = {
811
836
  const renderLabel2 = subLabel ? createVNode("span", null, [createTextVNode(" "), label, createTextVNode(" "), createVNode("span", {
812
837
  "class": "text-secondary opacity-50"
813
838
  }, [createTextVNode("("), subLabel, createTextVNode(")")])]) : label;
814
- const _toolTip = isFunction(toolTip) ? toolTip(unref$1(getValues).model) : toolTip;
839
+ const _toolTip = isFunction(toolTip) ? toolTip(unref(getValues).model) : toolTip;
815
840
  const _toolTipProps = {
816
841
  title: renderLabel2,
817
842
  autoAdjustOverflow: true,
@@ -869,19 +894,19 @@ const _sfc_main$b = {
869
894
  } = props.schema;
870
895
  const {
871
896
  disabled: itemDisabled = false
872
- } = unref$1(getComponentProps);
897
+ } = unref(getComponentProps);
873
898
  let _disabled = !!gDisabled || itemDisabled;
874
899
  if (isBoolean(disabled))
875
900
  _disabled = disabled;
876
901
  if (isFunction(disabled))
877
- _disabled = disabled(unref$1(getValues).model);
902
+ _disabled = disabled(unref(getValues).model);
878
903
  return _disabled;
879
904
  });
880
905
  const itemProps = {
881
906
  allowClear: _sProps?.allowClear ?? appConf.ui.form.allowClear,
882
- size: unref$1(getUiSize) === UiSize.MIDDLE ? "default" : unref$1(getUiSize),
883
- ...unref$1(getComponentProps),
884
- disabled: unref$1(getDisable)
907
+ size: unref(getUiSize) === UiSize.MIDDLE ? "default" : unref(getUiSize),
908
+ ...unref(getComponentProps),
909
+ disabled: unref(getDisable)
885
910
  };
886
911
  if (component === "Select") {
887
912
  {
@@ -890,15 +915,15 @@ const _sfc_main$b = {
890
915
  }
891
916
  }
892
917
  if (!itemProps.disabled && component !== "RangePicker") {
893
- itemProps.placeholder = unref$1(getComponentProps)?.placeholder || createPlaceholder(component);
918
+ itemProps.placeholder = unref(getComponentProps)?.placeholder || createPlaceholder(component);
894
919
  }
895
920
  if (["DatePicker", "MonthPicker", "RangePicker"].includes(component)) {
896
921
  itemProps.defaultValue = props.formModel[name];
897
922
  }
898
923
  itemProps.codeName = name;
899
- itemProps.formValues = unref$1(getValues);
924
+ itemProps.formValues = unref(getValues);
900
925
  if (["Select", "DatePicker", "MonthPicker", "WeekPicker", "RangePicker"].includes(component)) {
901
- itemProps.dropdownClassName += ` ${unref$1(getUiSize)}`;
926
+ itemProps.dropdownClassName += ` ${unref(getUiSize)}`;
902
927
  }
903
928
  const bindValue = {
904
929
  [valueField || (isCheck ? "checked" : "value")]: props.formModel[name]
@@ -913,7 +938,7 @@ const _sfc_main$b = {
913
938
  return createVNode(Comp, compAttr, null);
914
939
  }
915
940
  const compSlot = isFunction(renderComponent) ? {
916
- ...renderComponent(unref$1(getValues))
941
+ ...renderComponent(unref(getValues))
917
942
  } : {
918
943
  default: () => renderComponent
919
944
  };
@@ -932,11 +957,11 @@ const _sfc_main$b = {
932
957
  if (!component)
933
958
  return [];
934
959
  if (isFunction(dynamicRules)) {
935
- return dynamicRules(unref$1(getValues).model);
960
+ return dynamicRules(unref(getValues).model);
936
961
  }
937
962
  const defaultMsg = createPlaceholder(component) + label;
938
963
  let rules = cloneDeep(defaultRules);
939
- const getRequired = isFunction(required) ? required(unref$1(getValues).model) : required;
964
+ const getRequired = isFunction(required) ? required(unref(getValues).model) : required;
940
965
  function validator(rule, value) {
941
966
  const msg = rule.message || defaultMsg;
942
967
  if (value === void 0 || isNull(value) || Array.isArray(value) && value.length === 0 || typeof value === "string" && value.trim() === "" || typeof value === "object" && Reflect.has(value, "checked") && Reflect.has(value, "halfChecked") && Array.isArray(value.checked) && Array.isArray(value.halfChecked) && value.checked.length === 0 && value.halfChecked.length === 0) {
@@ -945,7 +970,7 @@ const _sfc_main$b = {
945
970
  return Promise.resolve();
946
971
  }
947
972
  if (!rules || !rules.length) {
948
- let _required = isBoolean(getRequired) ? getRequired : unref$1(getRequired);
973
+ let _required = isBoolean(getRequired) ? getRequired : unref(getRequired);
949
974
  rules = _required ? [{
950
975
  required: _required,
951
976
  validator
@@ -954,7 +979,7 @@ const _sfc_main$b = {
954
979
  const requiredIndex = rules.findIndex((rule) => Reflect.has(rule, "required") && !Reflect.has(rule, "validator"));
955
980
  if (requiredIndex !== -1) {
956
981
  const rule = rules[requiredIndex];
957
- if (!unref$1(getShow)) {
982
+ if (!unref(getShow)) {
958
983
  rule.required = false;
959
984
  }
960
985
  if (!Reflect.has(rule, "type")) {
@@ -964,7 +989,7 @@ const _sfc_main$b = {
964
989
  if (component.includes("Input") || component.includes("Textarea")) {
965
990
  rule.whitespace = true;
966
991
  }
967
- const valueFormat = unref$1(getComponentProps)?.valueFormat;
992
+ const valueFormat = unref(getComponentProps)?.valueFormat;
968
993
  setComponentRuleType(rule, component, valueFormat);
969
994
  }
970
995
  const maxIndex = rules.findIndex((val) => val.max);
@@ -988,7 +1013,7 @@ const _sfc_main$b = {
988
1013
  mode
989
1014
  } = props.formProps;
990
1015
  let _colProps = colProps || gColProps || (mode === "search" ? appConf.ui.form.searchColspan : appConf.ui.form.dialogColspan);
991
- const values = unref$1(getValues);
1016
+ const values = unref(getValues);
992
1017
  if (!component) {
993
1018
  if (!render && !renderCol && !slot) {
994
1019
  error(t("NEED_RENDER"));
@@ -997,7 +1022,7 @@ const _sfc_main$b = {
997
1022
  }
998
1023
  if (component === "Divider") {
999
1024
  let _slot;
1000
- let cprops = unref$1(getComponentProps);
1025
+ let cprops = unref(getComponentProps);
1001
1026
  const span = cprops?.span ?? 24;
1002
1027
  return createVNode(Col, {
1003
1028
  "span": span
@@ -1010,13 +1035,12 @@ const _sfc_main$b = {
1010
1035
  const getContent = () => {
1011
1036
  return colSlot ? getSlot(slots, colSlot, values) : renderCol ? renderCol(values) : renderItem();
1012
1037
  };
1013
- return unref$1(getShow) && createVNode(Col, _colProps, _isSlot$1(_slot2 = getContent()) ? _slot2 : {
1038
+ return unref(getShow) && createVNode(Col, _colProps, _isSlot$1(_slot2 = getContent()) ? _slot2 : {
1014
1039
  default: () => [_slot2]
1015
1040
  });
1016
1041
  };
1017
1042
  }
1018
1043
  };
1019
- 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"]]);
1020
1044
  const _hoisted_1$1 = {
1021
1045
  key: 0,
1022
1046
  className: "preIcon pr-1"
@@ -1062,7 +1086,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1062
1086
  setup(__props, { emit: emits }) {
1063
1087
  const props = __props;
1064
1088
  const { t } = useI18n();
1065
- const advancedRef = ref$1(props.isAdvanced);
1089
+ const advancedRef = ref(props.isAdvanced);
1066
1090
  let key = 0;
1067
1091
  const showAdvanceRef = computed(() => {
1068
1092
  return props.mode === "search" ? props.showAdvancedButton : false;
@@ -1098,7 +1122,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1098
1122
  }
1099
1123
  watch(() => props.isAdvanced, (v) => {
1100
1124
  if (v) {
1101
- nextTick$1(() => toggleAdvanced());
1125
+ nextTick(() => toggleAdvanced());
1102
1126
  }
1103
1127
  }, {
1104
1128
  immediate: true
@@ -1117,7 +1141,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1117
1141
  const _component_ACol = Col$1;
1118
1142
  const _directive_icon = resolveDirective("icon");
1119
1143
  const _directive_auth = resolveDirective("auth");
1120
- return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref$1(colOpt))), {
1144
+ return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref(colOpt))), {
1121
1145
  default: withCtx(() => [
1122
1146
  createVNode(_component_AFormItem, {
1123
1147
  class: "dt-form-btns",
@@ -1129,60 +1153,58 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1129
1153
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.buttonList, (button) => {
1130
1154
  return openBlock(), createElementBlock(Fragment, null, [
1131
1155
  (button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_AButton, {
1156
+ class: normalizeClass(["items-center", button.class]),
1132
1157
  type: button.type,
1133
- class: normalizeClass(button.class),
1134
- loading: button.loading?.value,
1158
+ loading: button.loading,
1135
1159
  disabled: button.disabled,
1136
- key: unref$1(key),
1160
+ key: unref(key),
1137
1161
  onClick: ($event) => handleBtnClick(button)
1138
1162
  }, {
1139
1163
  icon: withCtx(() => [
1140
1164
  button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$1, null, 512)), [
1141
1165
  [_directive_icon, button.preIcon]
1142
- ]) : createCommentVNode("v-if", true)
1166
+ ]) : createCommentVNode("", true)
1143
1167
  ]),
1144
1168
  default: withCtx(() => [
1145
- createTextVNode(" " + toDisplayString(unref$1(t)(button.name)) + " ", 1),
1169
+ createTextVNode(" " + toDisplayString(unref(t)(button.label)) + " ", 1),
1146
1170
  button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
1147
1171
  [_directive_icon, button.postIcon]
1148
- ]) : createCommentVNode("v-if", true)
1172
+ ]) : createCommentVNode("", true)
1149
1173
  ]),
1150
1174
  _: 2
1151
1175
  }, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
1152
1176
  [_directive_auth, button.auth]
1153
- ]) : createCommentVNode("v-if", true)
1177
+ ]) : createCommentVNode("", true)
1154
1178
  ], 64);
1155
1179
  }), 256)),
1156
- unref$1(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
1180
+ unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
1157
1181
  key: 0,
1158
1182
  type: "link",
1159
1183
  class: "advanced",
1160
1184
  onClick: toggleAdvanced
1161
1185
  }, {
1162
1186
  default: withCtx(() => [
1163
- createCommentVNode(" \u6536\u8D77 | \u5C55\u5F00 "),
1164
- createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref$1(t)("UI.ADVANCED") : unref$1(t)("UI.EXPAND")), 1),
1187
+ createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
1165
1188
  createElementVNode("span", {
1166
- class: normalizeClass(unref$1(getAdvanceClass))
1189
+ class: normalizeClass(unref(getAdvanceClass))
1167
1190
  }, _hoisted_5, 2)
1168
1191
  ]),
1169
1192
  _: 1
1170
- })) : createCommentVNode("v-if", true)
1193
+ })) : createCommentVNode("", true)
1171
1194
  ]),
1172
1195
  _: 1
1173
1196
  }, 8, ["style"])
1174
1197
  ]),
1175
1198
  _: 1
1176
- }, 16)) : createCommentVNode("v-if", true);
1199
+ }, 16)) : createCommentVNode("", true);
1177
1200
  };
1178
1201
  }
1179
1202
  });
1180
- 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"]]);
1181
1203
  const SEARCH_BTN_NAME = "UI.SEARCH";
1182
1204
  const RESET_BTN_NAME = "UI.RESET";
1183
1205
  const SEARCH_BTNS = [
1184
- { name: SEARCH_BTN_NAME, preIcon: "mdi:magnify", type: "primary" },
1185
- { name: RESET_BTN_NAME, preIcon: "mdi:refresh", type: "default" }
1206
+ { label: SEARCH_BTN_NAME, preIcon: "mdi:magnify", type: "primary" },
1207
+ { label: RESET_BTN_NAME, preIcon: "mdi:refresh", type: "default" }
1186
1208
  ];
1187
1209
  function useFormEvents({
1188
1210
  emits,
@@ -1195,10 +1217,10 @@ function useFormEvents({
1195
1217
  handleFormValues
1196
1218
  }) {
1197
1219
  function getFormValues() {
1198
- const formEl = unref$1(formElRef);
1220
+ const formEl = unref(formElRef);
1199
1221
  if (!formEl)
1200
1222
  return {};
1201
- return handleFormValues(toRaw$1(unref$1(formModel)));
1223
+ return handleFormValues(toRaw(unref(formModel)));
1202
1224
  }
1203
1225
  function updateSchema(data) {
1204
1226
  let updateItems = [];
@@ -1209,7 +1231,7 @@ function useFormEvents({
1209
1231
  }
1210
1232
  const schema = [];
1211
1233
  updateItems.forEach((it) => {
1212
- unref$1(getSchema).forEach((val) => {
1234
+ unref(getSchema).forEach((val) => {
1213
1235
  if (val.name === it.name) {
1214
1236
  const newSchema = deepMerge(val, it);
1215
1237
  schema.push(newSchema);
@@ -1236,7 +1258,7 @@ function useFormEvents({
1236
1258
  obj[name] = null;
1237
1259
  if (!isNullAndUnDef(it.defaultValue))
1238
1260
  return obj[name] = it.defaultValue;
1239
- let props = isFunction(it.props) ? it.props(toRaw$1(unref$1(formModel))) : it.props;
1261
+ let props = isFunction(it.props) ? it.props(toRaw(unref(formModel))) : it.props;
1240
1262
  if (!isNullAndUnDef(props?.defaultValue))
1241
1263
  obj[name] = props.defaultValue;
1242
1264
  });
@@ -1252,25 +1274,25 @@ function useFormEvents({
1252
1274
  setFormValues(obj);
1253
1275
  }
1254
1276
  async function clearValidate(name) {
1255
- await unref$1(formElRef)?.clearValidate(name);
1277
+ await unref(formElRef)?.clearValidate(name);
1256
1278
  }
1257
1279
  function resetForms() {
1258
- const { resetFunc } = unref$1(getProps);
1280
+ const { resetFunc } = unref(getProps);
1259
1281
  resetFunc && isFunction(resetFunc) && resetFunc();
1260
- if (!unref$1(formElRef))
1282
+ if (!unref(formElRef))
1261
1283
  return;
1262
1284
  Object.keys(formModel).forEach((key) => {
1263
- const schema = unref$1(getSchema).find((item) => item.name === key);
1285
+ const schema = unref(getSchema).find((item) => item.name === key);
1264
1286
  const isInput = schema?.component && ["Input", "InputPassword", "InputSearch", "InputTextArea"].includes(schema.component);
1265
1287
  formModel[key] = isInput ? defaultValue.value[key] || "" : defaultValue.value[key];
1266
1288
  });
1267
- nextTick$1(() => clearValidate());
1268
- emits("reset", toRaw$1(formModel));
1289
+ nextTick(() => clearValidate());
1290
+ emits("reset", toRaw(formModel));
1269
1291
  }
1270
1292
  function removeFormByName(names) {
1271
1293
  if (!names)
1272
1294
  return;
1273
- const schemaList = cloneDeep(unref$1(getSchema));
1295
+ const schemaList = cloneDeep(unref(getSchema));
1274
1296
  const nameList = isString(names) ? [names] : names;
1275
1297
  for (const name of nameList) {
1276
1298
  _removeSchemaByName(name, schemaList);
@@ -1278,32 +1300,32 @@ function useFormEvents({
1278
1300
  schemaRef.value = schemaList;
1279
1301
  }
1280
1302
  function _removeSchemaByName(name, schemaList) {
1281
- const index2 = schemaList.findIndex((schema) => schema.name === name);
1282
- if (index2 !== -1) {
1303
+ const index = schemaList.findIndex((schema) => schema.name === name);
1304
+ if (index !== -1) {
1283
1305
  delete formModel[name];
1284
- schemaList.splice(index2, 1);
1306
+ schemaList.splice(index, 1);
1285
1307
  }
1286
1308
  }
1287
1309
  function appendFormItems(schema, prefixName, first = false) {
1288
- const schemaList = cloneDeep(unref$1(getSchema));
1289
- const index2 = schemaList.findIndex((schema2) => schema2.name === prefixName);
1290
- if (!prefixName || index2 === -1 || first) {
1310
+ const schemaList = cloneDeep(unref(getSchema));
1311
+ const index = schemaList.findIndex((schema2) => schema2.name === prefixName);
1312
+ if (!prefixName || index === -1 || first) {
1291
1313
  first ? schemaList.unshift(...schema) : schemaList.push(...schema);
1292
1314
  schemaRef.value = schemaList;
1293
1315
  return;
1294
1316
  }
1295
- if (index2 !== -1) {
1296
- schemaList.splice(index2 + 1, 0, ...schema);
1317
+ if (index !== -1) {
1318
+ schemaList.splice(index + 1, 0, ...schema);
1297
1319
  }
1298
1320
  schemaRef.value = schemaList;
1299
1321
  }
1300
1322
  function itemIsDateType(key) {
1301
- return unref$1(getSchema).some((item) => {
1323
+ return unref(getSchema).some((item) => {
1302
1324
  return item.name === key ? ["DatePicker", "MonthPicker", "WeekPicker", "TimePicker", "RangePicker"].includes(item.component) : false;
1303
1325
  });
1304
1326
  }
1305
1327
  async function validateFields(nameList) {
1306
- return unref$1(formElRef)?.validateFields(nameList);
1328
+ return unref(formElRef)?.validateFields(nameList);
1307
1329
  }
1308
1330
  function setFormValues(values) {
1309
1331
  if (!values || !Object.keys(values).length) {
@@ -1311,10 +1333,10 @@ function useFormEvents({
1311
1333
  formModel[it] = Array.isArray(formModel[it]) ? [] : null;
1312
1334
  return;
1313
1335
  }
1314
- const names = unref$1(getSchema).map((item) => item.name).filter(Boolean);
1336
+ const names = unref(getSchema).map((item) => item.name).filter(Boolean);
1315
1337
  const validKeys = [];
1316
1338
  Object.keys(values).forEach((key) => {
1317
- const schema = unref$1(getSchema).find((item) => item.name === key);
1339
+ const schema = unref(getSchema).find((item) => item.name === key);
1318
1340
  let value = values[key];
1319
1341
  const hasKey = Reflect.has(values, key);
1320
1342
  value = handleInputNumberValue(schema?.component, value);
@@ -1345,7 +1367,7 @@ function useFormEvents({
1345
1367
  return validateFields(validKeys);
1346
1368
  }
1347
1369
  async function validate(nameList) {
1348
- return await unref$1(formElRef)?.validate(nameList);
1370
+ return await unref(formElRef)?.validate(nameList);
1349
1371
  }
1350
1372
  return {
1351
1373
  getFormValues,
@@ -1367,7 +1389,7 @@ function useFormValues({
1367
1389
  }) {
1368
1390
  const getComMap = () => {
1369
1391
  let comMap = /* @__PURE__ */ new Map();
1370
- unref$1(getSchema).map((it) => {
1392
+ unref(getSchema).map((it) => {
1371
1393
  if (it.component && it.name) {
1372
1394
  comMap.set(it.name, it);
1373
1395
  }
@@ -1404,7 +1426,7 @@ function useFormValues({
1404
1426
  return vals;
1405
1427
  }
1406
1428
  function initDefault() {
1407
- const schema = unref$1(getSchema), obj = {};
1429
+ const schema = unref(getSchema), obj = {};
1408
1430
  schema.forEach((item) => {
1409
1431
  const { props = {}, name, component, defaultValue: gDefaultValue, extraName } = item;
1410
1432
  const { defaultValue: itemDefaultValue, mode, format, treeCheckable } = isFunction(props) ? props(formModel) : props;
@@ -1424,7 +1446,7 @@ function useFormValues({
1424
1446
  if (isArray(defaultValue2)) {
1425
1447
  let vals = defaultValue2.map((it) => format ? dayjs(it, format) : dayjs(it));
1426
1448
  if (names.length > 1) {
1427
- names.map((key, index2) => obj[key] = vals[index2] ?? null);
1449
+ names.map((key, index) => obj[key] = vals[index] ?? null);
1428
1450
  } else {
1429
1451
  obj[names[0]] = vals;
1430
1452
  }
@@ -1433,11 +1455,11 @@ function useFormValues({
1433
1455
  }
1434
1456
  } else {
1435
1457
  if (names.length > 1) {
1436
- names.forEach((key, index2) => {
1437
- if (!defaultValue2 || defaultValue2.length - 1 < index2) {
1458
+ names.forEach((key, index) => {
1459
+ if (!defaultValue2 || defaultValue2.length - 1 < index) {
1438
1460
  obj[key] = null;
1439
1461
  } else {
1440
- obj[key] = defaultValue2[index2];
1462
+ obj[key] = defaultValue2[index];
1441
1463
  }
1442
1464
  });
1443
1465
  } else {
@@ -1468,23 +1490,29 @@ function useFormActions(opt) {
1468
1490
  const { getProps, defaultValue, updateSchema, getFormValues, setFormValues } = opt;
1469
1491
  const { appConf } = useAppStore();
1470
1492
  function handleAdvanced(isAdvanced) {
1471
- const { schemas, minShowColumn = appConf.ui.form?.minShowColumn || 2 } = unref$1(getProps);
1472
- let schema = schemas.reduce((t, it, index2) => {
1473
- if (index2 > minShowColumn - 1)
1474
- it.isAdvanced = isAdvanced;
1475
- t.push(it);
1476
- return t;
1477
- }, []);
1493
+ const {
1494
+ schemas,
1495
+ minShowColumn = appConf.ui.form?.minShowColumn || 2,
1496
+ showAdvancedButton = true
1497
+ } = unref(getProps);
1498
+ let schema = [...schemas];
1499
+ if (showAdvancedButton) {
1500
+ schema = schemas.reduce((t, it, index) => {
1501
+ if (index > minShowColumn - 1)
1502
+ it.isAdvanced = isAdvanced;
1503
+ t.push(it);
1504
+ return t;
1505
+ }, []);
1506
+ }
1478
1507
  updateSchema(schema);
1479
1508
  }
1480
1509
  function handleMethod(params) {
1481
- const { onSearch, onReset } = unref$1(getProps);
1510
+ const { onSearch, onReset } = unref(getProps);
1482
1511
  if (isBoolean(params)) {
1483
1512
  handleAdvanced(params);
1484
- } else if (params.name === SEARCH_BTN_NAME) {
1485
- console.log(getProps);
1513
+ } else if (params.label === SEARCH_BTN_NAME) {
1486
1514
  onSearch(getFormValues());
1487
- } else if (params.name === RESET_BTN_NAME) {
1515
+ } else if (params.label === RESET_BTN_NAME) {
1488
1516
  setFormValues(toRaw(defaultValue.value));
1489
1517
  onReset(getFormValues());
1490
1518
  } else {
@@ -1558,10 +1586,6 @@ const BasicProps = {
1558
1586
  type: Boolean,
1559
1587
  default: true
1560
1588
  },
1561
- alwaysShowLines: {
1562
- type: Boolean,
1563
- default: false
1564
- },
1565
1589
  minShowColumn: {
1566
1590
  type: Number,
1567
1591
  default: 2
@@ -1586,8 +1610,8 @@ const BasicProps = {
1586
1610
  type: Object,
1587
1611
  default: () => {
1588
1612
  return {
1589
- onSearch: ref$1(false),
1590
- onReset: ref$1(false)
1613
+ onSearch: ref(false),
1614
+ onReset: ref(false)
1591
1615
  };
1592
1616
  }
1593
1617
  },
@@ -1620,11 +1644,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1620
1644
  const props = __props;
1621
1645
  const { getAppConf } = useAppStore();
1622
1646
  const attrs = useAttrs();
1623
- const formElRef = ref$1(null);
1647
+ const formElRef = ref(null);
1624
1648
  const formModel = reactive({});
1625
- const defaultValue = ref$1({});
1626
- const propsRef = ref$1();
1627
- const schemaRef = ref$1(null);
1649
+ const defaultValue = ref({});
1650
+ const propsRef = ref();
1651
+ const schemaRef = ref(null);
1628
1652
  const getProps = computed(() => {
1629
1653
  let colProps = props.colProps;
1630
1654
  if (isEmpty(props.colProps)) {
@@ -1634,20 +1658,20 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1634
1658
  ...props,
1635
1659
  ...getAppConf.ui.form,
1636
1660
  colProps,
1637
- ...unref$1(propsRef)
1661
+ ...unref(propsRef)
1638
1662
  };
1639
1663
  });
1640
1664
  const getBindValue = computed(() => {
1641
1665
  return {
1642
1666
  ...attrs,
1643
- ...unref$1(getProps)
1667
+ ...unref(getProps)
1644
1668
  };
1645
1669
  });
1646
1670
  const getSchema = computed(() => {
1647
- return unref$1(schemaRef) || unref$1(getProps).schemas;
1671
+ return unref(schemaRef) || unref(getProps).schemas;
1648
1672
  });
1649
1673
  const getFormClass = computed(() => {
1650
- const { compact, mode } = unref$1(getProps);
1674
+ const { compact, mode } = unref(getProps);
1651
1675
  const getCompact = compact === null ? mode === "dialog" ? false : true : compact;
1652
1676
  return [
1653
1677
  "basic-form",
@@ -1658,12 +1682,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1658
1682
  ];
1659
1683
  });
1660
1684
  function setProps(formProps) {
1661
- propsRef.value = deepMerge(unref$1(propsRef) || {}, formProps);
1685
+ propsRef.value = deepMerge(unref(propsRef) || {}, formProps);
1662
1686
  return null;
1663
1687
  }
1664
1688
  function setFormModel(key, value) {
1665
1689
  formModel[key] = value;
1666
- const { validateTrigger } = unref$1(getBindValue);
1690
+ const { validateTrigger } = unref(getBindValue);
1667
1691
  if (!validateTrigger || validateTrigger === "change") {
1668
1692
  validateFields([key]);
1669
1693
  }
@@ -1717,7 +1741,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1717
1741
  showAdvancedButton: advanced,
1718
1742
  loading,
1719
1743
  buttons
1720
- } = unref$1(getProps);
1744
+ } = unref(getProps);
1721
1745
  let showAdvancedButton = mode === "search" ? true : false;
1722
1746
  if (advanced !== void 0) {
1723
1747
  showAdvancedButton = advanced;
@@ -1750,16 +1774,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1750
1774
  getFormValues,
1751
1775
  setFormValues
1752
1776
  });
1753
- onMounted$1(() => {
1777
+ onMounted(() => {
1754
1778
  setFormValues(null);
1755
1779
  emits("register", formActionMethods);
1756
1780
  initDefault();
1781
+ if (unref(getProps)?.registerInstance) {
1782
+ unref(getProps)?.registerInstance(formActionMethods);
1783
+ }
1757
1784
  });
1758
1785
  watch(
1759
- () => unref$1(getProps).onSearch,
1786
+ () => unref(getProps).onSearch,
1760
1787
  () => {
1761
1788
  useTimeoutFn(() => {
1762
- const { onSearch, autoFetch } = unref$1(getProps);
1789
+ const { onSearch, autoFetch } = unref(getProps);
1763
1790
  if (autoFetch && onSearch && isFunction(onSearch)) {
1764
1791
  onSearch(toRaw(defaultValue.value));
1765
1792
  }
@@ -1767,9 +1794,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1767
1794
  }
1768
1795
  );
1769
1796
  watch(
1770
- () => unref$1(getProps).model,
1797
+ () => unref(getProps).model,
1771
1798
  (v) => {
1772
- const { model } = unref$1(getProps);
1799
+ const { model } = unref(getProps);
1773
1800
  if (!model || !Object.keys(model).length)
1774
1801
  return;
1775
1802
  setFormValues(model);
@@ -1782,24 +1809,24 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1782
1809
  return (_ctx, _cache) => {
1783
1810
  const _component_ARow = Row;
1784
1811
  const _component_AForm = Form$1;
1785
- return openBlock(), createBlock(_component_AForm, mergeProps(unref$1(getBindValue), {
1812
+ return openBlock(), createBlock(_component_AForm, mergeProps(unref(getBindValue), {
1786
1813
  ref_key: "formElRef",
1787
1814
  ref: formElRef,
1788
- class: unref$1(getFormClass),
1815
+ class: unref(getFormClass),
1789
1816
  model: formModel,
1790
- layout: unref$1(getProps).layout,
1817
+ layout: unref(getProps).layout,
1791
1818
  onKeypress: withKeys(handleEnterPress, ["enter"])
1792
1819
  }), {
1793
1820
  default: withCtx(() => [
1794
- createVNode(_component_ARow, mergeProps(unref$1(getProps).rowProps, { style: {
1821
+ createVNode(_component_ARow, mergeProps(unref(getProps).rowProps, { style: {
1795
1822
  margin: 0
1796
1823
  } }), {
1797
1824
  default: withCtx(() => [
1798
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getSchema), (schema) => {
1799
- return openBlock(), createBlock(unref$1(DtFormItem), {
1825
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
1826
+ return openBlock(), createBlock(unref(_sfc_main$b), {
1800
1827
  key: schema.name,
1801
1828
  schema,
1802
- formProps: unref$1(getProps),
1829
+ formProps: unref(getProps),
1803
1830
  formModel,
1804
1831
  defaultValues: defaultValue.value,
1805
1832
  setFormModel,
@@ -1815,7 +1842,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1815
1842
  })
1816
1843
  ]), 1032, ["schema", "formProps", "formModel", "defaultValues"]);
1817
1844
  }), 128)),
1818
- unref$1(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref$1(DtFormButtons), mergeProps({ key: 0 }, unref$1(getActionsProps), { onHandleMethod: unref$1(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("v-if", true)
1845
+ unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(_sfc_main$a), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("", true)
1819
1846
  ]),
1820
1847
  _: 3
1821
1848
  }, 16)
@@ -1825,12 +1852,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1825
1852
  };
1826
1853
  }
1827
1854
  });
1828
- 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"]]);
1829
1855
  function useForm(props) {
1830
- const formRef = ref$1(null);
1831
- const loadedRef = ref$1(false);
1856
+ const formRef = ref(null);
1857
+ const loadedRef = ref(false);
1832
1858
  function register(instance) {
1833
- if (unref$1(loadedRef) && instance === unref$1(formRef))
1859
+ if (unref(loadedRef) && instance === unref(formRef))
1834
1860
  return;
1835
1861
  formRef.value = instance;
1836
1862
  loadedRef.value = true;
@@ -1844,10 +1870,10 @@ function useForm(props) {
1844
1870
  );
1845
1871
  }
1846
1872
  async function getForm() {
1847
- const form = unref$1(formRef);
1873
+ const form = unref(formRef);
1848
1874
  if (!form)
1849
1875
  console.error("\u8868\u5355\u672A\u7533\u660E!");
1850
- await nextTick$1();
1876
+ await nextTick();
1851
1877
  return form;
1852
1878
  }
1853
1879
  const methods = {
@@ -1872,7 +1898,7 @@ function useForm(props) {
1872
1898
  form.resetForms();
1873
1899
  },
1874
1900
  removeFormByName: async (name) => {
1875
- unref$1(formRef)?.removeFormByName(name);
1901
+ unref(formRef)?.removeFormByName(name);
1876
1902
  },
1877
1903
  setFormValues: async (values) => {
1878
1904
  const form = await getForm();
@@ -1891,7 +1917,7 @@ function useForm(props) {
1891
1917
  return form.validateFields(nameList);
1892
1918
  },
1893
1919
  getFormValues: () => {
1894
- return unref$1(formRef)?.getFormValues();
1920
+ return unref(formRef)?.getFormValues();
1895
1921
  }
1896
1922
  };
1897
1923
  return [register, methods];
@@ -1902,14 +1928,14 @@ const withInstall = (comp) => {
1902
1928
  };
1903
1929
  return comp;
1904
1930
  };
1905
- const DtForm = withInstall(Forms);
1931
+ const DtForm = withInstall(_sfc_main$9);
1906
1932
  const orgDialogProp = reactive({});
1907
1933
  const cbTransfer = reactive({});
1908
1934
  const dataTransfer = reactive({});
1909
1935
  function useModalOut() {
1910
- const modal = ref$1(null);
1911
- const loaded = ref$1(true);
1912
- const uid = ref$1(null);
1936
+ const modal = ref(null);
1937
+ const loaded = ref(true);
1938
+ const uid = ref(null);
1913
1939
  const { isProd } = useApp();
1914
1940
  function register(modalMethod, uuid) {
1915
1941
  if (!getCurrentInstance()) {
@@ -1917,22 +1943,22 @@ function useModalOut() {
1917
1943
  }
1918
1944
  uid.value = uuid;
1919
1945
  onUnmounted(() => {
1920
- if (unref$1(isProd)) {
1946
+ if (unref(isProd)) {
1921
1947
  modal.value = null;
1922
1948
  loaded.value = false;
1923
- dataTransfer[unref$1(uid)] = null;
1924
- orgDialogProp[unref$1(uid)] = null;
1925
- cbTransfer[unref$1(uid)] = (res) => {
1949
+ dataTransfer[unref(uid)] = null;
1950
+ orgDialogProp[unref(uid)] = null;
1951
+ cbTransfer[unref(uid)] = (res) => {
1926
1952
  };
1927
1953
  }
1928
1954
  });
1929
- if (unref$1(loaded) && modalMethod === unref$1(modal))
1955
+ if (unref(loaded) && modalMethod === unref(modal))
1930
1956
  return;
1931
1957
  modal.value = modalMethod;
1932
1958
  loaded.value = true;
1933
1959
  }
1934
1960
  const getInstance = () => {
1935
- const instance = unref$1(modal);
1961
+ const instance = unref(modal);
1936
1962
  if (!instance) {
1937
1963
  error("useModalOut \u5B9E\u4F8B\u672A\u5B9A\u4E49");
1938
1964
  }
@@ -1946,7 +1972,7 @@ function useModalOut() {
1946
1972
  getInstance()?.redoModalHeight?.();
1947
1973
  },
1948
1974
  openModal: (params, afterClose) => {
1949
- const id = unref$1(uid);
1975
+ const id = unref(uid);
1950
1976
  dataTransfer[id] = isObject(params) ? { ...toRaw(params) } : params;
1951
1977
  getInstance()?.setModalProps({
1952
1978
  footer: [],
@@ -1967,19 +1993,19 @@ function useModalOut() {
1967
1993
  return [register, methods];
1968
1994
  }
1969
1995
  function useModal(props, setModalData) {
1970
- const modalInstanceRef = ref$1(null);
1996
+ const modalInstanceRef = ref(null);
1971
1997
  const currentInstance = getCurrentInstance();
1972
- const uidRef = ref$1(null);
1998
+ const uidRef = ref(null);
1973
1999
  const { isProd } = useApp();
1974
2000
  const getInstance = () => {
1975
- const instance = unref$1(modalInstanceRef);
2001
+ const instance = unref(modalInstanceRef);
1976
2002
  if (!instance) {
1977
2003
  error("useModal \u5B9E\u4F8B\u672A\u5B9A\u4E49");
1978
2004
  }
1979
2005
  return instance;
1980
2006
  };
1981
2007
  const register = (modalInstance, uuid) => {
1982
- if (unref$1(isProd)) {
2008
+ if (unref(isProd)) {
1983
2009
  modalInstanceRef.value = null;
1984
2010
  }
1985
2011
  uidRef.value = uuid;
@@ -1989,12 +2015,12 @@ function useModal(props, setModalData) {
1989
2015
  modalInstance.setModalProps(props);
1990
2016
  };
1991
2017
  watchEffect(() => {
1992
- const data = dataTransfer[unref$1(uidRef)];
2018
+ const data = dataTransfer[unref(uidRef)];
1993
2019
  if (!data)
1994
2020
  return;
1995
2021
  if (!setModalData || !isFunction(setModalData))
1996
2022
  return;
1997
- nextTick$1(() => {
2023
+ nextTick(() => {
1998
2024
  setModalData(data);
1999
2025
  });
2000
2026
  });
@@ -2003,8 +2029,8 @@ function useModal(props, setModalData) {
2003
2029
  getInstance()?.setModalProps({ loading });
2004
2030
  },
2005
2031
  closeModal: (rsp) => {
2006
- if (cbTransfer[unref$1(uidRef)])
2007
- cbTransfer[unref$1(uidRef)](rsp);
2032
+ if (cbTransfer[unref(uidRef)])
2033
+ cbTransfer[unref(uidRef)](rsp);
2008
2034
  getInstance()?.setModalProps({ visible: false });
2009
2035
  },
2010
2036
  setModalProps: (props2) => {
@@ -2017,7 +2043,6 @@ function useModal(props, setModalData) {
2017
2043
  };
2018
2044
  return [register, methods];
2019
2045
  }
2020
- const index$1 = "";
2021
2046
  const basicProps$1 = {
2022
2047
  t: {
2023
2048
  type: String
@@ -2096,10 +2121,10 @@ function useDragMove(context) {
2096
2121
  const drag = (wrap) => {
2097
2122
  if (!wrap)
2098
2123
  return;
2099
- wrap.setAttribute("data-drag", unref$1(context.draggable));
2124
+ wrap.setAttribute("data-drag", unref(context.draggable));
2100
2125
  const dialogHeaderEl = wrap.querySelector(".ant-modal-header");
2101
2126
  const dragDom = wrap.querySelector(".ant-modal");
2102
- if (!dialogHeaderEl || !dragDom || !unref$1(context.draggable))
2127
+ if (!dialogHeaderEl || !dragDom || !unref(context.draggable))
2103
2128
  return;
2104
2129
  dialogHeaderEl.style.cursor = "move";
2105
2130
  dialogHeaderEl.onmousedown = (e) => {
@@ -2156,14 +2181,14 @@ function useDragMove(context) {
2156
2181
  const display = getStyle(wrap, "display");
2157
2182
  const draggable = wrap.getAttribute("data-drag");
2158
2183
  if (display !== "none") {
2159
- if (draggable === null || unref$1(context.destroyOnClose)) {
2184
+ if (draggable === null || unref(context.destroyOnClose)) {
2160
2185
  drag(wrap);
2161
2186
  }
2162
2187
  }
2163
2188
  }
2164
2189
  };
2165
2190
  watchEffect(() => {
2166
- if (!unref$1(context.visible) || !unref$1(context.draggable)) {
2191
+ if (!unref(context.visible) || !unref(context.draggable)) {
2167
2192
  return;
2168
2193
  }
2169
2194
  useTimeoutFn(() => {
@@ -2201,21 +2226,19 @@ const _sfc_main$8 = {
2201
2226
  return () => {
2202
2227
  let _slot;
2203
2228
  const propsData = {
2204
- ...unref$1(attrs),
2229
+ ...unref(attrs),
2205
2230
  ...props,
2206
2231
  destroyOnClose: true,
2207
2232
  onCancel
2208
2233
  };
2209
2234
  if (!propsData?.visible)
2210
2235
  return null;
2211
- return createVNode(Modal$1, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
2236
+ return createVNode(Modal, propsData, _isSlot(_slot = extendSlots(slots)) ? _slot : {
2212
2237
  default: () => [_slot]
2213
2238
  });
2214
2239
  };
2215
2240
  }
2216
2241
  };
2217
- 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"]]);
2218
- const index = "";
2219
2242
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2220
2243
  __name: "CloseIcon",
2221
2244
  props: {
@@ -2246,12 +2269,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2246
2269
  return (_ctx, _cache) => {
2247
2270
  const _component_ATooltip = Tooltip$1;
2248
2271
  return openBlock(), createElementBlock("div", {
2249
- class: normalizeClass(["flex h-14 items-center justify-center", unref$1(getClass)])
2272
+ class: normalizeClass(["flex h-14 items-center justify-center", unref(getClass)])
2250
2273
  }, [
2251
2274
  __props.canFullscreen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2252
2275
  __props.fullScreen ? (openBlock(), createBlock(_component_ATooltip, {
2253
2276
  key: 0,
2254
- title: unref$1(t)("EXIT_FULLSCREEN"),
2277
+ title: unref(t)("EXIT_FULLSCREEN"),
2255
2278
  placement: "bottom"
2256
2279
  }, {
2257
2280
  default: withCtx(() => [
@@ -2263,7 +2286,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2263
2286
  _: 1
2264
2287
  }, 8, ["title"])) : (openBlock(), createBlock(_component_ATooltip, {
2265
2288
  key: 1,
2266
- title: unref$1(t)("FULLSCREEN"),
2289
+ title: unref(t)("FULLSCREEN"),
2267
2290
  placement: "bottom"
2268
2291
  }, {
2269
2292
  default: withCtx(() => [
@@ -2274,7 +2297,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2274
2297
  ]),
2275
2298
  _: 1
2276
2299
  }, 8, ["title"]))
2277
- ], 64)) : createCommentVNode("v-if", true),
2300
+ ], 64)) : createCommentVNode("", true),
2278
2301
  createElementVNode("i", {
2279
2302
  class: "i mdi:close h-14 w-10 pr-4",
2280
2303
  onClick: handleCancel
@@ -2283,7 +2306,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2283
2306
  };
2284
2307
  }
2285
2308
  });
2286
- 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"]]);
2287
2309
  const isServer = typeof window === "undefined";
2288
2310
  const BAR_MAP = {
2289
2311
  vertical: {
@@ -2352,14 +2374,14 @@ const Bar = defineComponent({
2352
2374
  move: Number
2353
2375
  },
2354
2376
  setup(props) {
2355
- const instance = getCurrentInstance$1();
2356
- const thumb = ref$1();
2377
+ const instance = getCurrentInstance();
2378
+ const thumb = ref();
2357
2379
  const wrap = inject("scroll-bar-wrap", {});
2358
2380
  const bar = computed(() => {
2359
2381
  return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
2360
2382
  });
2361
- const barStore = ref$1({});
2362
- const cursorDown = ref$1();
2383
+ const barStore = ref({});
2384
+ const cursorDown = ref();
2363
2385
  const clickThumbHandler = (e) => {
2364
2386
  if (e.ctrlKey || e.button === 2) {
2365
2387
  return;
@@ -2447,12 +2469,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2447
2469
  },
2448
2470
  setup(__props) {
2449
2471
  const props = __props;
2450
- const sizeWidth = ref$1("0");
2451
- const sizeHeight = ref$1("0");
2452
- const moveX = ref$1(0);
2453
- const moveY = ref$1(0);
2454
- const wrap = ref$1();
2455
- const resize = ref$1();
2472
+ const sizeWidth = ref("0");
2473
+ const sizeHeight = ref("0");
2474
+ const moveX = ref(0);
2475
+ const moveY = ref(0);
2476
+ const wrap = ref();
2477
+ const resize = ref();
2456
2478
  provide("scroll-bar-wrap", wrap);
2457
2479
  const style = computed(() => {
2458
2480
  let rsStyle = {};
@@ -2465,29 +2487,29 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2465
2487
  return rsStyle;
2466
2488
  });
2467
2489
  const handleScroll = () => {
2468
- moveY.value = unref$1(wrap).scrollTop * 100 / unref$1(wrap).clientHeight;
2469
- moveX.value = unref$1(wrap).scrollLeft * 100 / unref$1(wrap).clientWidth;
2490
+ moveY.value = unref(wrap).scrollTop * 100 / unref(wrap).clientHeight;
2491
+ moveX.value = unref(wrap).scrollLeft * 100 / unref(wrap).clientWidth;
2470
2492
  };
2471
2493
  const update = () => {
2472
- if (!unref$1(wrap))
2494
+ if (!unref(wrap))
2473
2495
  return;
2474
- const heightPercentage = unref$1(wrap).clientHeight * 100 / unref$1(wrap).scrollHeight;
2475
- const widthPercentage = unref$1(wrap).clientWidth * 100 / unref$1(wrap).scrollWidth;
2496
+ const heightPercentage = unref(wrap).clientHeight * 100 / unref(wrap).scrollHeight;
2497
+ const widthPercentage = unref(wrap).clientWidth * 100 / unref(wrap).scrollWidth;
2476
2498
  sizeHeight.value = heightPercentage < 100 ? heightPercentage + "%" : "";
2477
2499
  sizeWidth.value = widthPercentage < 100 ? widthPercentage + "%" : "";
2478
2500
  };
2479
- onMounted$1(() => {
2480
- nextTick$1(update);
2501
+ onMounted(() => {
2502
+ nextTick(update);
2481
2503
  if (!props.noresize) {
2482
- addResizeListener(unref$1(resize), update);
2483
- addResizeListener(unref$1(wrap), update);
2504
+ addResizeListener(unref(resize), update);
2505
+ addResizeListener(unref(wrap), update);
2484
2506
  addEventListener("resize", update);
2485
2507
  }
2486
2508
  });
2487
2509
  onBeforeUnmount(() => {
2488
2510
  if (!props.noresize) {
2489
- removeResizeListener(unref$1(resize), update);
2490
- removeResizeListener(unref$1(wrap), update);
2511
+ removeResizeListener(unref(resize), update);
2512
+ removeResizeListener(unref(wrap), update);
2491
2513
  removeEventListener("resize", update);
2492
2514
  }
2493
2515
  });
@@ -2497,7 +2519,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2497
2519
  ref_key: "wrap",
2498
2520
  ref: wrap,
2499
2521
  class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
2500
- style: normalizeStyle(unref$1(style)),
2522
+ style: normalizeStyle(unref(style)),
2501
2523
  onScroll: handleScroll
2502
2524
  }, [
2503
2525
  (openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
@@ -2512,11 +2534,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2512
2534
  _: 3
2513
2535
  }, 8, ["class", "style"]))
2514
2536
  ], 38),
2515
- createVNode(unref$1(Bar), {
2537
+ createVNode(unref(Bar), {
2516
2538
  move: moveX.value,
2517
2539
  size: sizeWidth.value
2518
2540
  }, null, 8, ["move", "size"]),
2519
- createVNode(unref$1(Bar), {
2541
+ createVNode(unref(Bar), {
2520
2542
  vertical: "",
2521
2543
  move: moveY.value,
2522
2544
  size: sizeHeight.value
@@ -2525,13 +2547,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2525
2547
  };
2526
2548
  }
2527
2549
  });
2528
- 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"]]);
2529
2550
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2530
2551
  __name: "scroll-container",
2531
2552
  setup(__props) {
2532
- const scrollbarRef = ref$1(null);
2553
+ const scrollbarRef = ref(null);
2533
2554
  return (_ctx, _cache) => {
2534
- return openBlock(), createBlock(ScrollBar, mergeProps({
2555
+ return openBlock(), createBlock(_sfc_main$6, mergeProps({
2535
2556
  ref_key: "scrollbarRef",
2536
2557
  ref: scrollbarRef
2537
2558
  }, _ctx.$attrs, { class: "w-full h-full" }), {
@@ -2543,7 +2564,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2543
2564
  };
2544
2565
  }
2545
2566
  });
2546
- 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"]]);
2547
2567
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2548
2568
  __name: "slot-container",
2549
2569
  props: {
@@ -2558,13 +2578,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2558
2578
  const props = __props;
2559
2579
  const Container = h("div", [props.template(props.data)]);
2560
2580
  return (_ctx, _cache) => {
2561
- return openBlock(), createBlock(unref$1(Container));
2581
+ return openBlock(), createBlock(unref(Container));
2562
2582
  };
2563
2583
  }
2564
2584
  });
2565
- 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"]]);
2566
- const DtScrollContainer = withInstall(ScrollContainer);
2567
- withInstall(SlotContainer);
2585
+ const DtScrollContainer = withInstall(_sfc_main$5);
2586
+ withInstall(_sfc_main$4);
2568
2587
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2569
2588
  __name: "ModalWrap",
2570
2589
  props: {
@@ -2579,15 +2598,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2579
2598
  emits: ["ext-height", "height-change"],
2580
2599
  setup(__props, { emit: emits }) {
2581
2600
  const props = __props;
2582
- const wrapperRef = ref$1(null);
2583
- const wrapRef = ref$1(null);
2584
- const realHeightRef = ref$1(0);
2585
- const minRealHeightRef = ref$1(0);
2601
+ const wrapperRef = ref(null);
2602
+ const wrapRef = ref(null);
2603
+ const realHeightRef = ref(0);
2604
+ const minRealHeightRef = ref(0);
2586
2605
  let realHeight = 0;
2587
2606
  const wrapStyle = computed(() => {
2588
2607
  return {
2589
2608
  minHeight: `${props.minHeight}px`,
2590
- [props.fullScreen ? "height" : "maxHeight"]: `${unref$1(realHeightRef)}px`
2609
+ [props.fullScreen ? "height" : "maxHeight"]: `${unref(realHeightRef)}px`
2591
2610
  };
2592
2611
  });
2593
2612
  onMounted(() => {
@@ -2595,14 +2614,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2595
2614
  emits("ext-height", modalHeaderHeight + modalFooterHeight);
2596
2615
  });
2597
2616
  async function getModalDom() {
2598
- const wrapperRefDom = unref$1(wrapperRef);
2617
+ const wrapperRefDom = unref(wrapperRef);
2599
2618
  if (!wrapperRefDom)
2600
2619
  return;
2601
- const bodyDom = wrapperRefDom.$el.parentElement;
2620
+ const bodyDom = wrapperRefDom.$el.parentElement.parentElement.parentElement;
2602
2621
  if (!bodyDom)
2603
2622
  return;
2604
- bodyDom.style.padding = "0";
2605
- await nextTick$1();
2623
+ bodyDom.style.padding = props.useWrapper ? "24px" : "0";
2624
+ await nextTick();
2606
2625
  const modalDom = bodyDom.parentElement && bodyDom.parentElement.parentElement;
2607
2626
  return modalDom;
2608
2627
  }
@@ -2619,18 +2638,18 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2619
2638
  if (modalTop < 40) {
2620
2639
  maxHeight -= 26;
2621
2640
  }
2622
- await nextTick$1();
2623
- const warpEl = unref$1(wrapRef);
2641
+ await nextTick();
2642
+ const warpEl = unref(wrapRef);
2624
2643
  if (!warpEl)
2625
2644
  return;
2626
- await nextTick$1();
2645
+ await nextTick();
2627
2646
  realHeight = warpEl.scrollHeight;
2628
2647
  if (props.fullScreen) {
2629
2648
  realHeightRef.value = window.innerHeight - props.modalFooterHeight - props.modalHeaderHeight;
2630
2649
  } else {
2631
2650
  realHeightRef.value = props.height ? props.height : realHeight > maxHeight ? maxHeight : realHeight;
2632
2651
  }
2633
- emits("height-change", unref$1(realHeightRef));
2652
+ emits("height-change", unref(realHeightRef));
2634
2653
  const _modalDom = await getModalDom();
2635
2654
  _modalDom.style.top = (window.innerHeight - _modalDom.offsetHeight) / 2 + "px";
2636
2655
  } catch (error2) {
@@ -2653,7 +2672,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2653
2672
  }
2654
2673
  );
2655
2674
  return (_ctx, _cache) => {
2656
- return openBlock(), createBlock(unref$1(DtScrollContainer), {
2675
+ return openBlock(), createBlock(unref(DtScrollContainer), {
2657
2676
  ref_key: "wrapperRef",
2658
2677
  ref: wrapperRef
2659
2678
  }, {
@@ -2661,7 +2680,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2661
2680
  createElementVNode("div", {
2662
2681
  ref_key: "wrapRef",
2663
2682
  ref: wrapRef,
2664
- style: normalizeStyle(unref$1(wrapStyle))
2683
+ style: normalizeStyle(unref(wrapStyle))
2665
2684
  }, [
2666
2685
  renderSlot(_ctx.$slots, "default")
2667
2686
  ], 4)
@@ -2671,7 +2690,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2671
2690
  };
2672
2691
  }
2673
2692
  });
2674
- 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"]]);
2675
2693
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2676
2694
  __name: "ModalFooter",
2677
2695
  props: {
@@ -2692,8 +2710,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2692
2710
  if (props.buttons && props.buttons.length)
2693
2711
  return props.buttons;
2694
2712
  let buttonActions = [
2695
- { t: "\u4FDD\u5B58", name: props.okText || t("SAVE"), preIcon: "mdi:content-save", type: "primary", flag: "OK" },
2696
- { t: "\u5173\u95ED", name: props.cancelText || t("CLOSE"), preIcon: "mdi:close", flag: "CANCEL" }
2713
+ { t: "\u4FDD\u5B58", label: props.okText || t("SAVE"), preIcon: "mdi:content-save", type: "primary", flag: "OK" },
2714
+ { t: "\u5173\u95ED", label: props.cancelText || t("CLOSE"), preIcon: "mdi:close", flag: "CANCEL" }
2697
2715
  ];
2698
2716
  if (!props.showSave)
2699
2717
  buttonActions = buttonActions.filter((btn) => btn.flag !== "OK");
@@ -2714,26 +2732,25 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2714
2732
  return (_ctx, _cache) => {
2715
2733
  return openBlock(), createElementBlock(Fragment, null, [
2716
2734
  renderSlot(_ctx.$slots, "appendFooter"),
2717
- createVNode(DtFormButtons, {
2735
+ createVNode(_sfc_main$a, {
2718
2736
  mode: "dialog",
2719
- buttonList: unref$1(buttonList),
2737
+ buttonList: unref(buttonList),
2720
2738
  onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
2721
2739
  }, null, 8, ["buttonList"])
2722
2740
  ], 64);
2723
2741
  };
2724
2742
  }
2725
2743
  });
2726
- 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"]]);
2727
2744
  function useFullScreen(wrapClassName) {
2728
- const fullScreenRef = ref$1(false);
2745
+ const fullScreenRef = ref(false);
2729
2746
  const getWrapClassName = computed(() => {
2730
- const clsName = unref$1(wrapClassName) || "";
2731
- const cls = unref$1(fullScreenRef) ? `fullscreen-modal ${clsName} ` : unref$1(clsName);
2747
+ const clsName = unref(wrapClassName) || "";
2748
+ const cls = unref(fullScreenRef) ? `fullscreen-modal ${clsName} ` : unref(clsName);
2732
2749
  return `dt-modal ${cls}`;
2733
2750
  });
2734
2751
  function toggleFullScreen(e) {
2735
2752
  e && e.stopPropagation();
2736
- fullScreenRef.value = !unref$1(fullScreenRef);
2753
+ fullScreenRef.value = !unref(fullScreenRef);
2737
2754
  dispatchResize();
2738
2755
  }
2739
2756
  return {
@@ -2748,46 +2765,46 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2748
2765
  emits: ["visible-change", "height-change", "cancel", "save", "register", "update:visible"],
2749
2766
  setup(__props, { emit: emits }) {
2750
2767
  const props = __props;
2751
- const visibleRef = ref$1(false);
2752
- const propsRef = ref$1();
2753
- const modalWrapperRef = ref$1(null);
2754
- const { getWrapClassName, toggleFullScreen, fullScreenRef } = useFullScreen(computed(() => unref$1(propsRef)?.wrapClassName));
2768
+ const visibleRef = ref(false);
2769
+ const propsRef = ref();
2770
+ const modalWrapperRef = ref(null);
2771
+ const { getWrapClassName, toggleFullScreen, fullScreenRef } = useFullScreen(computed(() => unref(propsRef)?.wrapClassName));
2755
2772
  const getMergeProps = computed(() => {
2756
2773
  return {
2757
2774
  ...props,
2758
- ...unref$1(propsRef)
2775
+ ...unref(propsRef)
2759
2776
  };
2760
2777
  });
2761
2778
  const getBindValue = computed(() => {
2762
2779
  const bindValue = {
2763
- ...unref$1(getMergeProps),
2764
- ...unref$1(propsRef),
2765
- visible: unref$1(visibleRef),
2766
- wrapClassName: unref$1(getWrapClassName)
2780
+ ...unref(getMergeProps),
2781
+ ...unref(propsRef),
2782
+ visible: unref(visibleRef),
2783
+ wrapClassName: unref(getWrapClassName)
2767
2784
  };
2768
- let omitArr = unref$1(fullScreenRef) ? ["height", "title"] : ["title"];
2769
- if (isArray(unref$1(propsRef)?.footer)) {
2785
+ let omitArr = unref(fullScreenRef) ? ["height", "title"] : ["title"];
2786
+ if (isArray(unref(propsRef)?.footer)) {
2770
2787
  omitArr.push("footer");
2771
2788
  }
2772
2789
  return omit(bindValue, omitArr);
2773
2790
  });
2774
2791
  const getWrapperHeight = computed(() => {
2775
- if (unref$1(fullScreenRef))
2792
+ if (unref(fullScreenRef))
2776
2793
  return void 0;
2777
- return unref$1(getBindValue).height;
2794
+ return unref(getBindValue).height;
2778
2795
  });
2779
2796
  const modalFooterHeight = computed(() => {
2780
2797
  if (isArray(props.footer)) {
2781
- return (unref$1(propsRef)?.footer).length ? 0 : void 0;
2798
+ return (unref(propsRef)?.footer).length ? 0 : void 0;
2782
2799
  }
2783
2800
  return props?.footer !== void 0 && !props.footer ? 0 : void 0;
2784
2801
  });
2785
2802
  const modalMethods = {
2786
2803
  setModalProps,
2787
2804
  redoModalHeight: () => {
2788
- nextTick$1(() => {
2789
- if (unref$1(modalWrapperRef)) {
2790
- unref$1(modalWrapperRef).setModalHeight();
2805
+ nextTick(() => {
2806
+ if (unref(modalWrapperRef)) {
2807
+ unref(modalWrapperRef).setModalHeight();
2791
2808
  }
2792
2809
  });
2793
2810
  }
@@ -2800,7 +2817,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2800
2817
  emits("height-change", height);
2801
2818
  }
2802
2819
  function setModalProps(props2) {
2803
- propsRef.value = deepMerge(unref$1(propsRef) || {}, props2);
2820
+ propsRef.value = deepMerge(unref(propsRef) || {}, props2);
2804
2821
  if (Reflect.has(props2, "visible")) {
2805
2822
  visibleRef.value = !!props2.visible;
2806
2823
  }
@@ -2822,19 +2839,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2822
2839
  return;
2823
2840
  }
2824
2841
  }
2825
- const { afterClose } = unref$1(getBindValue);
2842
+ const { afterClose } = unref(getBindValue);
2826
2843
  if (afterClose && isFunction(afterClose)) {
2827
2844
  afterClose();
2828
2845
  }
2829
2846
  visibleRef.value = false;
2830
2847
  emits("cancel", e);
2831
2848
  }
2832
- watch(() => unref$1(visibleRef), (v) => {
2849
+ watch(() => unref(visibleRef), (v) => {
2833
2850
  emits("visible-change", v);
2834
2851
  emits("update:visible", v);
2835
- nextTick$1(() => {
2836
- if (props.scrollTop && v && unref$1(modalWrapperRef)) {
2837
- unref$1(modalWrapperRef).$el.scrollTop = 0;
2852
+ nextTick(() => {
2853
+ if (props.scrollTop && v && unref(modalWrapperRef)) {
2854
+ unref(modalWrapperRef).$el.scrollTop = 0;
2838
2855
  }
2839
2856
  });
2840
2857
  }, {
@@ -2842,23 +2859,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2842
2859
  });
2843
2860
  return (_ctx, _cache) => {
2844
2861
  const _component_ASpin = Spin;
2845
- return openBlock(), createBlock(Modal, mergeProps(unref$1(getBindValue), { onCancel: handleCancel }), createSlots({
2862
+ return openBlock(), createBlock(_sfc_main$8, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
2846
2863
  default: withCtx(() => [
2847
2864
  createVNode(_component_ASpin, {
2848
- spinning: unref$1(getBindValue).loading,
2849
- tip: unref$1(getBindValue).loadingTip
2865
+ spinning: unref(getBindValue).loading,
2866
+ tip: unref(getBindValue).loadingTip
2850
2867
  }, {
2851
2868
  default: withCtx(() => [
2852
- createVNode(ModalWrapper, mergeProps({
2853
- useWrapper: unref$1(getBindValue).useWrapper,
2854
- fullScreen: unref$1(fullScreenRef),
2869
+ createVNode(_sfc_main$3, mergeProps({
2870
+ useWrapper: unref(getBindValue).useWrapper,
2871
+ fullScreen: unref(fullScreenRef),
2855
2872
  ref_key: "modalWrapperRef",
2856
2873
  ref: modalWrapperRef,
2857
- minHeight: unref$1(getBindValue).minHeight,
2858
- height: unref$1(getWrapperHeight),
2874
+ minHeight: unref(getBindValue).minHeight,
2875
+ height: unref(getWrapperHeight),
2859
2876
  visible: visibleRef.value,
2860
- modalFooterHeight: unref$1(modalFooterHeight)
2861
- }, unref$1(omit)(unref$1(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
2877
+ modalFooterHeight: unref(modalFooterHeight)
2878
+ }, unref(omit)(unref(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
2862
2879
  default: withCtx(() => [
2863
2880
  renderSlot(_ctx.$slots, "default")
2864
2881
  ]),
@@ -2873,11 +2890,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2873
2890
  !_ctx.$slots.closeIcon ? {
2874
2891
  name: "closeIcon",
2875
2892
  fn: withCtx(() => [
2876
- createVNode(CloseIcon, {
2877
- canFullscreen: unref$1(getBindValue).canFullscreen,
2878
- fullScreen: unref$1(fullScreenRef),
2893
+ createVNode(_sfc_main$7, {
2894
+ canFullscreen: unref(getBindValue).canFullscreen,
2895
+ fullScreen: unref(fullScreenRef),
2879
2896
  onCancel: handleCancel,
2880
- onFullscreen: unref$1(toggleFullScreen)
2897
+ onFullscreen: unref(toggleFullScreen)
2881
2898
  }, null, 8, ["canFullscreen", "fullScreen", "onFullscreen"])
2882
2899
  ]),
2883
2900
  key: "0"
@@ -2885,19 +2902,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2885
2902
  !_ctx.$slots.title ? {
2886
2903
  name: "title",
2887
2904
  fn: withCtx(() => [
2888
- createTextVNode(toDisplayString(unref$1(getMergeProps).title), 1)
2905
+ createTextVNode(toDisplayString(unref(getMergeProps).title), 1)
2889
2906
  ]),
2890
2907
  key: "1"
2891
2908
  } : void 0,
2892
2909
  !_ctx.$slots.footer ? {
2893
2910
  name: "footer",
2894
2911
  fn: withCtx(() => [
2895
- createVNode(ModalFooter, {
2912
+ createVNode(_sfc_main$2, {
2896
2913
  buttons: propsRef.value?.footer,
2897
- showSave: unref$1(getBindValue).showOkBtn,
2898
- showCancel: unref$1(getBindValue).showCancelBtn,
2899
- okText: unref$1(getBindValue).okText,
2900
- cancelText: unref$1(getBindValue).cancelText,
2914
+ showSave: unref(getBindValue).showOkBtn,
2915
+ showCancel: unref(getBindValue).showCancelBtn,
2916
+ okText: unref(getBindValue).okText,
2917
+ cancelText: unref(getBindValue).cancelText,
2901
2918
  onHandleSave: handleSave,
2902
2919
  onHandleCancel: handleCancel
2903
2920
  }, createSlots({ _: 2 }, [
@@ -2913,7 +2930,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2913
2930
  ]),
2914
2931
  key: "2"
2915
2932
  } : void 0,
2916
- renderList(Object.keys(unref$1(omit)(_ctx.$slots, "default")), (item) => {
2933
+ renderList(Object.keys(unref(omit)(_ctx.$slots, "default")), (item) => {
2917
2934
  return {
2918
2935
  name: item,
2919
2936
  fn: withCtx((data) => [
@@ -2925,7 +2942,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2925
2942
  };
2926
2943
  }
2927
2944
  });
2928
- 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"]]);
2929
2945
  const basicProps = {
2930
2946
  title: {
2931
2947
  type: Object
@@ -2986,7 +3002,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2986
3002
  setup(__props) {
2987
3003
  const props = __props;
2988
3004
  const [registerDialog] = useModal({
2989
- ...omit(toRaw$1(props), [
3005
+ ...omit(toRaw(props), [
2990
3006
  "curd",
2991
3007
  "formProps",
2992
3008
  "schemas"
@@ -2997,8 +3013,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2997
3013
  props?.onSave();
2998
3014
  }
2999
3015
  return (_ctx, _cache) => {
3000
- return openBlock(), createBlock(unref$1(DtModal$1), {
3001
- onRegister: unref$1(registerDialog),
3016
+ return openBlock(), createBlock(unref(_sfc_main$1), {
3017
+ onRegister: unref(registerDialog),
3002
3018
  onSave: _cache[0] || (_cache[0] = ($event) => handleSave())
3003
3019
  }, {
3004
3020
  default: withCtx(() => [
@@ -3009,7 +3025,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3009
3025
  };
3010
3026
  }
3011
3027
  });
3012
- 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"]]);
3013
3028
  function useCurd(curdOpt) {
3014
3029
  const [register, {
3015
3030
  openModal,
@@ -3037,7 +3052,7 @@ function useCurd(curdOpt) {
3037
3052
  const DtCurdModal = () => {
3038
3053
  return h(createVNode("div", {
3039
3054
  "class": "dt-curd-modal"
3040
- }, [createVNode(DtModal, mergeProps(curdOpt, {
3055
+ }, [createVNode(_sfc_main, mergeProps(curdOpt, {
3041
3056
  "title": title,
3042
3057
  "onRegister": register
3043
3058
  }), {