@dt-frames/ui 2.0.2 → 2.0.4

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 (69) hide show
  1. package/es/assets/locales/en.ts +1 -1
  2. package/es/components/container/index.d.ts +4 -3
  3. package/es/components/container/index.js +24 -22
  4. package/es/components/container/src/slot-container.d.ts +5 -3
  5. package/es/components/curd/index.js +261 -229
  6. package/es/components/curd/src/components/Curd.d.ts +126 -331
  7. package/es/components/curd/src/props.d.ts +14 -15
  8. package/es/components/drawer/index.d.ts +3 -5
  9. package/es/components/drawer/index.js +55 -54
  10. package/es/components/drawer/src/components/DrawerHeader.d.ts +1 -3
  11. package/es/components/drawer/src/index.d.ts +4 -7
  12. package/es/components/form/index.d.ts +213 -361
  13. package/es/components/form/index.js +210 -163
  14. package/es/components/form/index.less +206 -8
  15. package/es/components/form/src/components/FormButtons.d.ts +3 -3
  16. package/es/components/form/src/components/FormItem.d.ts +152 -304
  17. package/es/components/form/src/components/formIcon.d.ts +4 -4
  18. package/es/components/form/src/components/formInputUseDialog.d.ts +3 -3
  19. package/es/components/form/src/enums/index.d.ts +1 -1
  20. package/es/components/form/src/index.d.ts +199 -347
  21. package/es/components/form/src/props.d.ts +8 -12
  22. package/es/components/form/src/types/form.type.d.ts +2 -2
  23. package/es/components/icons/index.d.ts +496 -2
  24. package/es/components/icons/index.less +5 -0
  25. package/es/components/icons/src/pick-icon.d.ts +5 -5
  26. package/es/components/modal/index.js +76 -74
  27. package/es/components/modal/index.less +10 -0
  28. package/es/components/modal/src/components/Modal.d.ts +108 -215
  29. package/es/components/modal/src/components/ModalFooter.d.ts +3 -3
  30. package/es/components/modal/src/index.d.ts +116 -223
  31. package/es/components/source/hooks/useSource.d.ts +14 -0
  32. package/es/components/source/index.js +66 -27
  33. package/es/components/source/types/source.type.d.ts +4 -8
  34. package/es/components/table/index.js +452 -820
  35. package/es/components/table/index.less +50 -14
  36. package/es/components/table/src/components/TableAction.d.ts +1 -1
  37. package/es/components/table/src/components/TableHeader.d.ts +109 -216
  38. package/es/components/table/src/components/TableRender.d.ts +13 -9
  39. package/es/components/table/src/components/tableSetting/Download.d.ts +107 -214
  40. package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +107 -214
  41. package/es/components/table/src/components/tableSetting/index.d.ts +107 -214
  42. package/es/components/table/src/hooks/useDataSource.d.ts +1 -2
  43. package/es/components/table/src/hooks/usePagination.d.ts +3 -118
  44. package/es/components/table/src/index.d.ts +99 -435
  45. package/es/components/table/src/props.d.ts +19 -74
  46. package/es/components/table/src/types/actions.type.d.ts +1 -2
  47. package/es/components/table/src/types/table.type.d.ts +13 -8
  48. package/es/index.d.ts +1 -1
  49. package/es/index.js +2 -3240
  50. package/es/theme/index.js +688 -453
  51. package/es/theme/index.less +150 -0
  52. package/es/theme/src/components/header/components/logo.d.ts +0 -1
  53. package/es/theme/src/components/header/components/notify.d.ts +4 -3
  54. package/es/theme/src/components/header/components/setting-theme.d.ts +2 -1
  55. package/es/theme/src/components/header/components/user-info.d.ts +4 -3
  56. package/es/theme/src/components/header/helper/menu-tree.d.ts +1 -0
  57. package/es/theme/src/components/header/index.d.ts +8 -7
  58. package/es/theme/src/components/header/multiple-header.d.ts +22 -25
  59. package/es/theme/src/components/sider/components/drag-bar.d.ts +1 -1
  60. package/es/theme/src/components/sider/components/sider-trigger.d.ts +0 -1
  61. package/es/theme/src/components/sider/index.d.ts +147 -3
  62. package/es/theme/src/components/sider/mix-sider.d.ts +146 -0
  63. package/es/theme/src/enums/theme.enum.d.ts +2 -1
  64. package/es/theme/src/hooks/useMenu.d.ts +4 -2
  65. package/es/theme/src/index.d.ts +166 -23
  66. package/es/theme/src/stores/theme.store.d.ts +3 -0
  67. package/es/theme/src/types/theme.type.d.ts +2 -1
  68. package/package.json +3 -4
  69. package/vite.config.ts +0 -27
@@ -1,14 +1,25 @@
1
- import { toRaw as toRaw$1, unref as unref$1, computed as computed$1, getCurrentInstance as getCurrentInstance$1, reactive as reactive$1, readonly, watchEffect as watchEffect$1, nextTick as nextTick$1, defineComponent as defineComponent$1, openBlock, createBlock, mergeProps, isRef, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, useAttrs as useAttrs$1, createElementVNode, createVNode, normalizeProps, guardReactiveProps, createCommentVNode, isVNode, resolveDirective, normalizeStyle, withDirectives, normalizeClass, withKeys, createSlots, renderSlot, ref as ref$1, inject, onUnmounted as onUnmounted$1, h as h$1, 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 { DtCache, CacheKey, deepMerge, Pages, useGo, useRedo, Language, useAppStore, isNumber, useI18n, isString, isFunction, error, useSlots, isArray, isBoolean, isNull, dispatchResize, isObject, isNullAndUnDef, useTimeoutFn, useApp, off, on, windowResizeFn, useMessage } from "@dt-frames/core";
4
+ import "ant-design-vue/es/row/style";
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
7
  import { Input, Select, TreeSelect, Radio, Checkbox, AutoComplete, Cascader, DatePicker, InputNumber, Switch, TimePicker, Slider, Rate, Divider, Col, Tooltip, Form, FormItem, Modal as Modal$1 } from "ant-design-vue";
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";
@@ -145,12 +156,12 @@ defineStore({
145
156
  return;
146
157
  }
147
158
  let updateIndex = -1;
148
- const tabHasExits = this.tabList.some((tab, index2) => {
149
- updateIndex = index2;
159
+ const tabHasExits = this.tabList.some((tab, index) => {
160
+ updateIndex = index;
150
161
  return (tab.fullPath || tab.path) === (fullPath || path);
151
162
  });
152
163
  if (tabHasExits) {
153
- const curTab = toRaw$1(this.tabList)[updateIndex];
164
+ const curTab = toRaw(this.tabList)[updateIndex];
154
165
  curTab.params = params || curTab.params;
155
166
  curTab.query = query || curTab.query;
156
167
  curTab.fullPath = fullPath || curTab.fullPath;
@@ -162,14 +173,14 @@ defineStore({
162
173
  },
163
174
  closeTab(path, router) {
164
175
  const go = useGo(router);
165
- const index2 = this.tabList.findIndex((item) => item.path === path);
176
+ const index = this.tabList.findIndex((item) => item.path === path);
166
177
  let page;
167
- if (index2 === 0) {
178
+ if (index === 0) {
168
179
  if (this.tabList.length !== 1) {
169
- page = this.tabList[index2 + 1];
180
+ page = this.tabList[index + 1];
170
181
  }
171
182
  } else {
172
- page = this.tabList[index2 - 1];
183
+ page = this.tabList[index - 1];
173
184
  }
174
185
  this.bulkCloseTabs([path]);
175
186
  this.updateCacheTab();
@@ -178,15 +189,15 @@ defineStore({
178
189
  closeAllTab(currentRoute, router) {
179
190
  const go = useGo(router);
180
191
  let filterTabList = this.tabList.filter((item) => item?.meta?.affix ?? false);
181
- const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref$1(currentRoute);
192
+ const route = filterTabList.length > 0 ? filterTabList[filterTabList.length - 1] : unref(currentRoute);
182
193
  this.tabList = [route];
183
194
  this.updateCacheTab();
184
195
  go(route.path);
185
196
  },
186
197
  closeLeftTabs(path) {
187
- const index2 = this.tabList.findIndex((item) => item.path === path);
188
- if (index2 > 0) {
189
- const leftTabs = this.tabList.slice(0, index2);
198
+ const index = this.tabList.findIndex((item) => item.path === path);
199
+ if (index > 0) {
200
+ const leftTabs = this.tabList.slice(0, index);
190
201
  const pathList = [];
191
202
  for (const item of leftTabs) {
192
203
  const affix = item?.meta?.affix ?? false;
@@ -199,9 +210,9 @@ defineStore({
199
210
  this.updateCacheTab();
200
211
  },
201
212
  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);
213
+ const index = this.tabList.findIndex((item) => item.path === path);
214
+ if (index >= 0 && index < this.tabList.length - 1) {
215
+ const rightTabs = this.tabList.slice(index + 1, this.tabList.length);
205
216
  const pathList = [];
206
217
  for (const item of rightTabs) {
207
218
  const affix = item?.meta?.affix ?? false;
@@ -241,7 +252,7 @@ defineStore({
241
252
  this.cacheTabList = cacheMap;
242
253
  },
243
254
  async refreshPage(router) {
244
- const findTab = this.getCachedTabList.find((item) => item === unref$1(router.currentRoute).name);
255
+ const findTab = this.getCachedTabList.find((item) => item === unref(router.currentRoute).name);
245
256
  if (findTab) {
246
257
  this.cacheTabList.delete(findTab.toString());
247
258
  }
@@ -258,41 +269,41 @@ defineStore({
258
269
  });
259
270
  function useMenu() {
260
271
  const { getMenuConf, setThemeConf } = useThemeStore();
261
- const getCollapsedShowTitle = computed$1(() => getMenuConf.collapsedShowTitle);
262
- const getIsSidebarType = computed$1(() => getMenuConf.type === MenuType.SIDE);
263
- const getMenuFixed = computed$1(() => getMenuConf.fixed);
264
- const getShowMenu = computed$1(() => getMenuConf.show);
265
- const getShowSidebar = computed$1(() => {
266
- return unref$1(getSplit) || unref$1(getShowMenu) && unref$1(getMenuMode) !== MenuMode.HORIZONTAL;
272
+ const getCollapsedShowTitle = computed(() => getMenuConf.collapsedShowTitle);
273
+ const getIsSidebarType = computed(() => getMenuConf.type === MenuType.SIDE);
274
+ const getMenuFixed = computed(() => getMenuConf.fixed);
275
+ const getShowMenu = computed(() => getMenuConf.show);
276
+ const getShowSidebar = computed(() => {
277
+ return unref(getSplit) || unref(getShowMenu) && unref(getMenuMode) !== MenuMode.HORIZONTAL;
267
278
  });
268
- const getMenuHidden = computed$1(() => getMenuConf.hidden);
269
- const getMenuTheme = computed$1(() => getMenuConf.theme);
270
- const getTrigger = computed$1(() => getMenuConf.trigger);
271
- const getCanDrag = computed$1(() => getMenuConf.canDrag);
272
- const getIsMixMode = computed$1(() => {
273
- return unref$1(getMenuMode) === MenuMode.INLINE && unref$1(getMenuType) === MenuType.MIX;
279
+ const getMenuHidden = computed(() => getMenuConf.hidden);
280
+ const getMenuTheme = computed(() => getMenuConf.theme);
281
+ const getTrigger = computed(() => getMenuConf.trigger);
282
+ const getCanDrag = computed(() => getMenuConf.canDrag);
283
+ const getIsMixMode = computed(() => {
284
+ return unref(getMenuMode) === MenuMode.INLINE && unref(getMenuType) === MenuType.MIX;
274
285
  });
275
- const getMenuWidth = computed$1(() => unref$1(getIsMixMode) ? Number(getMenuConf.menuWidth) - 40 : getMenuConf.menuWidth);
276
- const getLogoWidth = computed$1(() => getMenuConf.menuWidth);
277
- const getMenuType = computed$1(() => getMenuConf.type);
278
- const getIsTopMenu = computed$1(() => unref$1(getMenuType) === MenuType.TOP_MENU);
279
- const getMenuMode = computed$1(() => getMenuConf.mode);
280
- const getSplit = computed$1(() => getMenuConf.split);
281
- const getCollapsed = computed$1(() => getMenuConf.collapsed);
282
- const getIsHorizontal = computed$1(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL);
286
+ const getMenuWidth = computed(() => unref(getIsMixMode) ? Number(getMenuConf.menuWidth) - 40 : getMenuConf.menuWidth);
287
+ const getLogoWidth = computed(() => getMenuConf.menuWidth);
288
+ const getMenuType = computed(() => getMenuConf.type);
289
+ const getIsTopMenu = computed(() => unref(getMenuType) === MenuType.TOP_MENU);
290
+ const getMenuMode = computed(() => getMenuConf.mode);
291
+ const getSplit = computed(() => getMenuConf.split);
292
+ const getCollapsed = computed(() => getMenuConf.collapsed);
293
+ const getIsHorizontal = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL);
283
294
  const setThemeStore = (conf = {}) => setThemeConf(conf);
284
295
  const toggleCollapsed = () => setThemeStore({
285
296
  menuOptions: {
286
- collapsed: !unref$1(getCollapsed)
297
+ collapsed: !unref(getCollapsed)
287
298
  }
288
299
  });
289
- const getMiniWidthNumber = computed$1(() => getMenuConf.collapsedShowTitle ? 80 : 48);
290
- const getRealWidth = computed$1(() => {
291
- return unref$1(getCollapsed) ? unref$1(getMiniWidthNumber) : unref$1(getMenuWidth);
300
+ const getMiniWidthNumber = computed(() => getMenuConf.collapsedShowTitle ? 80 : 48);
301
+ const getRealWidth = computed(() => {
302
+ return unref(getCollapsed) ? unref(getMiniWidthNumber) : unref(getMenuWidth);
292
303
  });
293
- const getCalcContentWidth = computed$1(() => {
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)`;
304
+ const getCalcContentWidth = computed(() => {
305
+ const width = unref(getIsTopMenu) || !unref(getShowMenu) || unref(getSplit) && unref(getMenuHidden) ? 0 : unref(getRealWidth);
306
+ return `calc(100% - ${unref(width)}px)`;
296
307
  });
297
308
  return {
298
309
  getCollapsedShowTitle,
@@ -351,51 +362,51 @@ function useHeader() {
351
362
  getIsMixMode
352
363
  } = useMenu();
353
364
  const { getShowMultipleTab } = useMultipleTab();
354
- const getHeaderTheme = computed$1(() => getHeaderConf.theme);
355
- const getFixed = computed$1(() => getHeaderConf.fixed);
356
- const getShowHeaderLogo = computed$1(() => unref$1(getShowLogo) && !unref$1(getIsSidebarType));
357
- const getShowSearch = computed$1(() => getHeaderConf.showSearch);
358
- const getShowHeaderTrigger = computed$1(() => {
359
- if (unref$1(getMenuType) === MenuType.TOP_MENU || !unref$1(getShowMenu) || unref$1(getMenuHidden)) {
365
+ const getHeaderTheme = computed(() => getHeaderConf.theme);
366
+ const getFixed = computed(() => getHeaderConf.fixed);
367
+ const getShowHeaderLogo = computed(() => unref(getShowLogo) && !unref(getIsSidebarType));
368
+ const getShowSearch = computed(() => getHeaderConf.showSearch);
369
+ const getShowHeaderTrigger = computed(() => {
370
+ if (unref(getMenuType) === MenuType.TOP_MENU || !unref(getShowMenu) || unref(getMenuHidden)) {
360
371
  return false;
361
372
  }
362
- return unref$1(getTrigger);
373
+ return unref(getTrigger);
363
374
  });
364
- const getShowBreadCrumb = computed$1(() => getHeaderConf.showBreadCrumb);
365
- const getShowBread = computed$1(
366
- () => unref$1(getMenuMode) !== MenuMode.HORIZONTAL && !unref$1(getSplit) && unref$1(getShowBreadCrumb)
375
+ const getShowBreadCrumb = computed(() => getHeaderConf.showBreadCrumb);
376
+ const getShowBread = computed(
377
+ () => unref(getMenuMode) !== MenuMode.HORIZONTAL && !unref(getSplit) && unref(getShowBreadCrumb)
367
378
  );
368
- const getShowTopMenu = computed$1(() => unref$1(getMenuMode) === MenuMode.HORIZONTAL || unref$1(getSplit));
369
- const getShowNotice = computed$1(() => getHeaderConf.showNotice);
370
- const getShowFullScreen = computed$1(() => getHeaderConf.showFullScreen);
371
- const getShowLocale = computed$1(() => getHeaderConf.showLocaleSwitch);
372
- const getShowSettingTheme = computed$1(() => getHeaderConf.showSettingTheme);
373
- const getShowFullHeaderRef = computed$1(() => {
374
- return !unref$1(getIsSidebarType) && !unref$1(getIsTopMenu);
379
+ const getShowTopMenu = computed(() => unref(getMenuMode) === MenuMode.HORIZONTAL || unref(getSplit));
380
+ const getShowNotice = computed(() => getHeaderConf.showNotice);
381
+ const getShowFullScreen = computed(() => getHeaderConf.showFullScreen);
382
+ const getShowLocale = computed(() => getHeaderConf.showLocaleSwitch);
383
+ const getShowSettingTheme = computed(() => getHeaderConf.showSettingTheme);
384
+ const getShowFullHeaderRef = computed(() => {
385
+ return !unref(getIsSidebarType) && !unref(getIsTopMenu);
375
386
  });
376
- const getHeaderHeight = computed$1(() => {
387
+ const getHeaderHeight = computed(() => {
377
388
  let height = 0;
378
389
  height += HEADER_HEIGHT;
379
- if (unref$1(getShowMultipleTab) && !unref$1(getSplit)) {
390
+ if (unref(getShowMultipleTab) && !unref(getSplit)) {
380
391
  height += TABS_HEIGHT;
381
392
  }
382
393
  return height;
383
394
  });
384
- const getTabsHeight = computed$1(() => TABS_HEIGHT);
385
- const getShowInsetHeaderRef = computed$1(() => {
386
- return unref$1(getIsSidebarType) || unref$1(getIsTopMenu);
395
+ const getTabsHeight = computed(() => TABS_HEIGHT);
396
+ const getShowInsetHeaderRef = computed(() => {
397
+ return unref(getIsSidebarType) || unref(getIsTopMenu);
387
398
  });
388
- const getShowBackToTop = computed$1(() => getHeaderConf.showBackToTop);
389
- const getIsZH = computed$1(() => {
399
+ const getShowBackToTop = computed(() => getHeaderConf.showBackToTop);
400
+ const getIsZH = computed(() => {
390
401
  let local = DtCache.getLocal(CacheKey.LOCALE);
391
402
  if (!local)
392
403
  return true;
393
404
  return local === Language.ZH;
394
405
  });
395
- const getUiSize = computed$1(() => getHeaderConf?.size ?? UiSize.SMALL);
396
- const getShowUiSize = computed$1(() => getHeaderConf?.showSize);
397
- const getShowLogo = computed$1(() => getHeaderConf.showLogo);
398
- const getShowLoginOut = computed$1(() => getHeaderConf.showLoginOut);
406
+ const getUiSize = computed(() => getHeaderConf?.size ?? UiSize.SMALL);
407
+ const getShowUiSize = computed(() => getHeaderConf?.showSize);
408
+ const getShowLogo = computed(() => getHeaderConf.showLogo);
409
+ const getShowLoginOut = computed(() => getHeaderConf.showLoginOut);
399
410
  const loginOutClick = getHeaderConf.logoutClick;
400
411
  return {
401
412
  getHeaderTheme,
@@ -488,24 +499,23 @@ function handleInputNumberValue(component, val) {
488
499
  }
489
500
  return val;
490
501
  }
491
- const index$2 = "";
492
502
  function useFormValue(props, key = "value", changeEvent = "change", emitData) {
493
- const instance = getCurrentInstance$1();
503
+ const instance = getCurrentInstance();
494
504
  const emit = instance?.emit;
495
- const innerState = reactive$1({
505
+ const innerState = reactive({
496
506
  value: props[key]
497
507
  });
498
508
  const defaultState = readonly(innerState);
499
509
  const setState = (val) => {
500
510
  innerState.value = val;
501
- nextTick$1(() => {
502
- emit?.(changeEvent, val, ...toRaw$1(unref$1(emitData)) || []);
511
+ nextTick(() => {
512
+ emit?.(changeEvent, val, ...toRaw(unref(emitData)) || []);
503
513
  });
504
514
  };
505
- watchEffect$1(() => {
515
+ watchEffect(() => {
506
516
  innerState.value = props[key];
507
517
  });
508
- const state = computed$1({
518
+ const state = computed({
509
519
  get() {
510
520
  return innerState.value;
511
521
  },
@@ -513,14 +523,14 @@ function useFormValue(props, key = "value", changeEvent = "change", emitData) {
513
523
  if (isEqual(value, defaultState.value))
514
524
  return;
515
525
  innerState.value = value;
516
- nextTick$1(() => {
517
- emit?.(changeEvent, value, ...toRaw$1(unref$1(emitData)) || []);
526
+ nextTick(() => {
527
+ emit?.(changeEvent, value, ...toRaw(unref(emitData)) || []);
518
528
  });
519
529
  }
520
530
  });
521
531
  return [state, setState, defaultState];
522
532
  }
523
- const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
533
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
524
534
  __name: "radioButton",
525
535
  props: {
526
536
  value: {
@@ -535,7 +545,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
535
545
  const props = __props;
536
546
  const attrs = useAttrs();
537
547
  const [state] = useFormValue(props);
538
- const getOptions = computed$1(() => {
548
+ const getOptions = computed(() => {
539
549
  const { options } = props;
540
550
  if (!options || options?.length === 0)
541
551
  return [];
@@ -547,13 +557,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
547
557
  return (_ctx, _cache) => {
548
558
  const _component_ARadioButton = RadioButton;
549
559
  const _component_ARadioGroup = RadioGroup;
550
- return openBlock(), createBlock(_component_ARadioGroup, mergeProps(unref$1(attrs), {
551
- value: unref$1(state),
560
+ return openBlock(), createBlock(_component_ARadioGroup, mergeProps(unref(attrs), {
561
+ value: unref(state),
552
562
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(state) ? state.value = $event : null),
553
563
  "button-style": "solid"
554
564
  }), {
555
565
  default: withCtx(() => [
556
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getOptions), (item) => {
566
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getOptions), (item) => {
557
567
  return openBlock(), createBlock(_component_ARadioButton, {
558
568
  key: `${item.value}`,
559
569
  value: item.value,
@@ -571,13 +581,21 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
571
581
  };
572
582
  }
573
583
  });
584
+ const _export_sfc = (sfc, props) => {
585
+ const target = sfc.__vccOpts || sfc;
586
+ for (const [key, val] of props) {
587
+ target[key] = val;
588
+ }
589
+ return target;
590
+ };
591
+ 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"]]);
574
592
  const _hoisted_1$2 = { class: "input-with-dialog" };
575
- const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
593
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
576
594
  __name: "formInputUseDialog",
577
595
  setup(__props) {
578
596
  const { t } = useI18n("UI");
579
- const attrs = useAttrs$1();
580
- const bindProps = computed$1(() => {
597
+ const attrs = useAttrs();
598
+ const bindProps = computed(() => {
581
599
  return {
582
600
  ...omit(attrs, [
583
601
  "formValues"
@@ -600,20 +618,21 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
600
618
  return (_ctx, _cache) => {
601
619
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
602
620
  createElementVNode("div", { onClick: onClickInput }, [
603
- createVNode(unref$1(Input), normalizeProps(guardReactiveProps(unref$1(bindProps))), null, 16)
621
+ createVNode(unref(Input), normalizeProps(guardReactiveProps(unref(bindProps))), null, 16)
604
622
  ]),
605
- unref$1(attrs).formValues?.schema?.linkProps?.length ? (openBlock(), createElementBlock("i", {
623
+ unref(attrs).formValues?.schema?.linkProps?.length ? (openBlock(), createElementBlock("i", {
606
624
  key: 0,
607
625
  class: "i mdi:close-circle",
608
626
  onClick: clearProps
609
- })) : createCommentVNode("", true)
627
+ })) : createCommentVNode("v-if", true)
610
628
  ]);
611
629
  };
612
630
  }
613
631
  });
632
+ 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"]]);
614
633
  const components = {
615
634
  Input,
616
- InputWithDialog: _sfc_main$b,
635
+ InputWithDialog: DtFormInputDialog,
617
636
  InputTextArea: Input.TextArea,
618
637
  InputSearch: Input.Search,
619
638
  InputGroup: Input.Group,
@@ -622,7 +641,7 @@ const components = {
622
641
  TreeSelect,
623
642
  Radio,
624
643
  RadioGroup: Radio.Group,
625
- RadioButtonGroup: _sfc_main$c,
644
+ RadioButtonGroup,
626
645
  Checkbox,
627
646
  CheckboxGroup: Checkbox.Group,
628
647
  AutoComplete,
@@ -645,7 +664,7 @@ for (let item in components) {
645
664
  function _isSlot$1(s) {
646
665
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
647
666
  }
648
- const _sfc_main$a = defineComponent({
667
+ const _sfc_main$b = {
649
668
  name: "FormItem",
650
669
  inheritAttrs: false,
651
670
  props: {
@@ -1006,7 +1025,8 @@ const _sfc_main$a = defineComponent({
1006
1025
  });
1007
1026
  };
1008
1027
  }
1009
- });
1028
+ };
1029
+ 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"]]);
1010
1030
  const _hoisted_1$1 = {
1011
1031
  key: 0,
1012
1032
  className: "preIcon pr-1"
@@ -1020,7 +1040,7 @@ const _hoisted_4 = /* @__PURE__ */ createElementVNode("i", { class: "text-2xl i
1020
1040
  const _hoisted_5 = [
1021
1041
  _hoisted_4
1022
1042
  ];
1023
- const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
1043
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1024
1044
  __name: "FormButtons",
1025
1045
  props: {
1026
1046
  mode: {
@@ -1107,7 +1127,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
1107
1127
  const _component_ACol = Col$1;
1108
1128
  const _directive_icon = resolveDirective("icon");
1109
1129
  const _directive_auth = resolveDirective("auth");
1110
- return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref$1(colOpt))), {
1130
+ return __props.show ? (openBlock(), createBlock(_component_ACol, normalizeProps(mergeProps({ key: 0 }, unref(colOpt))), {
1111
1131
  default: withCtx(() => [
1112
1132
  createVNode(_component_AFormItem, {
1113
1133
  class: "dt-form-btns",
@@ -1123,49 +1143,51 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
1123
1143
  class: normalizeClass(button.class),
1124
1144
  loading: button.loading,
1125
1145
  disabled: button.disabled,
1126
- key: unref$1(key),
1146
+ key: unref(key),
1127
1147
  onClick: ($event) => handleBtnClick(button)
1128
1148
  }, {
1129
1149
  icon: withCtx(() => [
1130
1150
  button.preIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_1$1, null, 512)), [
1131
1151
  [_directive_icon, button.preIcon]
1132
- ]) : createCommentVNode("", true)
1152
+ ]) : createCommentVNode("v-if", true)
1133
1153
  ]),
1134
1154
  default: withCtx(() => [
1135
- createTextVNode(" " + toDisplayString(unref$1(t)(button.name)) + " ", 1),
1155
+ createTextVNode(" " + toDisplayString(unref(t)(button.name)) + " ", 1),
1136
1156
  button.postIcon ? withDirectives((openBlock(), createElementBlock("span", _hoisted_2, null, 512)), [
1137
1157
  [_directive_icon, button.postIcon]
1138
- ]) : createCommentVNode("", true)
1158
+ ]) : createCommentVNode("v-if", true)
1139
1159
  ]),
1140
1160
  _: 2
1141
1161
  }, 1032, ["type", "class", "loading", "disabled", "onClick"])), [
1142
1162
  [_directive_auth, button.auth]
1143
- ]) : createCommentVNode("", true)
1163
+ ]) : createCommentVNode("v-if", true)
1144
1164
  ], 64);
1145
1165
  }), 256)),
1146
- unref$1(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
1166
+ unref(showAdvanceRef) ? (openBlock(), createBlock(_component_AButton, {
1147
1167
  key: 0,
1148
1168
  type: "link",
1149
1169
  class: "advanced",
1150
1170
  onClick: toggleAdvanced
1151
1171
  }, {
1152
1172
  default: withCtx(() => [
1153
- createElementVNode("span", _hoisted_3, toDisplayString(unref$1(advancedRef) ? unref$1(t)("UI.ADVANCED") : unref$1(t)("UI.EXPAND")), 1),
1173
+ createCommentVNode(" \u6536\u8D77 | \u5C55\u5F00 "),
1174
+ createElementVNode("span", _hoisted_3, toDisplayString(advancedRef.value ? unref(t)("UI.ADVANCED") : unref(t)("UI.EXPAND")), 1),
1154
1175
  createElementVNode("span", {
1155
- class: normalizeClass(unref$1(getAdvanceClass))
1176
+ class: normalizeClass(unref(getAdvanceClass))
1156
1177
  }, _hoisted_5, 2)
1157
1178
  ]),
1158
1179
  _: 1
1159
- })) : createCommentVNode("", true)
1180
+ })) : createCommentVNode("v-if", true)
1160
1181
  ]),
1161
1182
  _: 1
1162
1183
  }, 8, ["style"])
1163
1184
  ]),
1164
1185
  _: 1
1165
- }, 16)) : createCommentVNode("", true);
1186
+ }, 16)) : createCommentVNode("v-if", true);
1166
1187
  };
1167
1188
  }
1168
1189
  });
1190
+ 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"]]);
1169
1191
  const SEARCH_BTN_NAME = "UI.SEARCH";
1170
1192
  const RESET_BTN_NAME = "UI.RESET";
1171
1193
  const SEARCH_BTNS = [
@@ -1266,22 +1288,22 @@ function useFormEvents({
1266
1288
  schemaRef.value = schemaList;
1267
1289
  }
1268
1290
  function _removeSchemaByName(name, schemaList) {
1269
- const index2 = schemaList.findIndex((schema) => schema.name === name);
1270
- if (index2 !== -1) {
1291
+ const index = schemaList.findIndex((schema) => schema.name === name);
1292
+ if (index !== -1) {
1271
1293
  delete formModel[name];
1272
- schemaList.splice(index2, 1);
1294
+ schemaList.splice(index, 1);
1273
1295
  }
1274
1296
  }
1275
1297
  function appendFormItems(schema, prefixName, first = false) {
1276
1298
  const schemaList = cloneDeep(unref(getSchema));
1277
- const index2 = schemaList.findIndex((schema2) => schema2.name === prefixName);
1278
- if (!prefixName || index2 === -1 || first) {
1299
+ const index = schemaList.findIndex((schema2) => schema2.name === prefixName);
1300
+ if (!prefixName || index === -1 || first) {
1279
1301
  first ? schemaList.unshift(...schema) : schemaList.push(...schema);
1280
1302
  schemaRef.value = schemaList;
1281
1303
  return;
1282
1304
  }
1283
- if (index2 !== -1) {
1284
- schemaList.splice(index2 + 1, 0, ...schema);
1305
+ if (index !== -1) {
1306
+ schemaList.splice(index + 1, 0, ...schema);
1285
1307
  }
1286
1308
  schemaRef.value = schemaList;
1287
1309
  }
@@ -1355,7 +1377,7 @@ function useFormValues({
1355
1377
  }) {
1356
1378
  const getComMap = () => {
1357
1379
  let comMap = /* @__PURE__ */ new Map();
1358
- unref$1(getSchema).map((it) => {
1380
+ unref(getSchema).map((it) => {
1359
1381
  if (it.component && it.name) {
1360
1382
  comMap.set(it.name, it);
1361
1383
  }
@@ -1392,7 +1414,7 @@ function useFormValues({
1392
1414
  return vals;
1393
1415
  }
1394
1416
  function initDefault() {
1395
- const schema = unref$1(getSchema), obj = {};
1417
+ const schema = unref(getSchema), obj = {};
1396
1418
  schema.forEach((item) => {
1397
1419
  const { props = {}, name, component, defaultValue: gDefaultValue, extraName } = item;
1398
1420
  const { defaultValue: itemDefaultValue, mode, format, treeCheckable } = isFunction(props) ? props(formModel) : props;
@@ -1412,7 +1434,7 @@ function useFormValues({
1412
1434
  if (isArray(defaultValue2)) {
1413
1435
  let vals = defaultValue2.map((it) => format ? dayjs(it, format) : dayjs(it));
1414
1436
  if (names.length > 1) {
1415
- names.map((key, index2) => obj[key] = vals[index2] ?? null);
1437
+ names.map((key, index) => obj[key] = vals[index] ?? null);
1416
1438
  } else {
1417
1439
  obj[names[0]] = vals;
1418
1440
  }
@@ -1421,11 +1443,11 @@ function useFormValues({
1421
1443
  }
1422
1444
  } else {
1423
1445
  if (names.length > 1) {
1424
- names.forEach((key, index2) => {
1425
- if (!defaultValue2 || defaultValue2.length - 1 < index2) {
1446
+ names.forEach((key, index) => {
1447
+ if (!defaultValue2 || defaultValue2.length - 1 < index) {
1426
1448
  obj[key] = null;
1427
1449
  } else {
1428
- obj[key] = defaultValue2[index2];
1450
+ obj[key] = defaultValue2[index];
1429
1451
  }
1430
1452
  });
1431
1453
  } else {
@@ -1457,8 +1479,8 @@ function useFormActions(opt) {
1457
1479
  const { appConf } = useAppStore();
1458
1480
  function handleAdvanced(isAdvanced) {
1459
1481
  const { schemas, minShowColumn = appConf.ui.form?.minShowColumn || 2 } = unref(getProps);
1460
- let schema = schemas.reduce((t, it, index2) => {
1461
- if (index2 > minShowColumn - 1)
1482
+ let schema = schemas.reduce((t, it, index) => {
1483
+ if (index > minShowColumn - 1)
1462
1484
  it.isAdvanced = isAdvanced;
1463
1485
  t.push(it);
1464
1486
  return t;
@@ -1470,7 +1492,6 @@ function useFormActions(opt) {
1470
1492
  if (isBoolean(params)) {
1471
1493
  handleAdvanced(params);
1472
1494
  } else if (params.name === SEARCH_BTN_NAME) {
1473
- console.log(getProps);
1474
1495
  onSearch(getFormValues());
1475
1496
  } else if (params.name === RESET_BTN_NAME) {
1476
1497
  setFormValues(toRaw(defaultValue.value));
@@ -1492,7 +1513,7 @@ const BasicProps = {
1492
1513
  },
1493
1514
  model: {
1494
1515
  type: Object,
1495
- default: {}
1516
+ default: () => ({})
1496
1517
  },
1497
1518
  layout: {
1498
1519
  type: String,
@@ -1512,23 +1533,19 @@ const BasicProps = {
1512
1533
  },
1513
1534
  labelCol: {
1514
1535
  type: Object,
1515
- default: () => {
1516
- }
1536
+ default: () => ({})
1517
1537
  },
1518
1538
  wrapperCol: {
1519
1539
  type: Object,
1520
- default: () => {
1521
- }
1540
+ default: () => ({})
1522
1541
  },
1523
1542
  rowProps: {
1524
1543
  type: Object,
1525
- default: () => {
1526
- }
1544
+ default: () => ({})
1527
1545
  },
1528
1546
  colProps: {
1529
1547
  type: Object,
1530
- default: () => {
1531
- }
1548
+ default: () => ({})
1532
1549
  },
1533
1550
  size: {
1534
1551
  type: String,
@@ -1604,7 +1621,7 @@ const BasicProps = {
1604
1621
  type: Function
1605
1622
  }
1606
1623
  };
1607
- const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
1624
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1608
1625
  __name: "index",
1609
1626
  props: BasicProps,
1610
1627
  emits: ["register"],
@@ -1618,9 +1635,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
1618
1635
  const propsRef = ref();
1619
1636
  const schemaRef = ref(null);
1620
1637
  const getProps = computed(() => {
1638
+ let colProps = props.colProps;
1639
+ if (isEmpty(props.colProps)) {
1640
+ colProps = props.mode === "search" ? getAppConf.ui.form.searchColspan || { span: 8 } : getAppConf.ui.form.dialogColspan || { span: 12 };
1641
+ }
1621
1642
  return {
1622
1643
  ...props,
1623
1644
  ...getAppConf.ui.form,
1645
+ colProps,
1624
1646
  ...unref(propsRef)
1625
1647
  };
1626
1648
  });
@@ -1741,6 +1763,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
1741
1763
  setFormValues(null);
1742
1764
  emits("register", formActionMethods);
1743
1765
  initDefault();
1766
+ if (unref(getProps)?.registerInstance) {
1767
+ unref(getProps)?.registerInstance(formActionMethods);
1768
+ }
1744
1769
  });
1745
1770
  watch(
1746
1771
  () => unref(getProps).onSearch,
@@ -1769,26 +1794,26 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
1769
1794
  return (_ctx, _cache) => {
1770
1795
  const _component_ARow = Row;
1771
1796
  const _component_AForm = Form$1;
1772
- return openBlock(), createBlock(_component_AForm, mergeProps(unref$1(getBindValue), {
1797
+ return openBlock(), createBlock(_component_AForm, mergeProps(unref(getBindValue), {
1773
1798
  ref_key: "formElRef",
1774
1799
  ref: formElRef,
1775
- class: unref$1(getFormClass),
1776
- model: unref$1(formModel),
1777
- layout: unref$1(getProps).layout,
1800
+ class: unref(getFormClass),
1801
+ model: formModel,
1802
+ layout: unref(getProps).layout,
1778
1803
  onKeypress: withKeys(handleEnterPress, ["enter"])
1779
1804
  }), {
1780
1805
  default: withCtx(() => [
1781
- createVNode(_component_ARow, mergeProps(unref$1(getProps).rowProps, { style: {
1806
+ createVNode(_component_ARow, mergeProps(unref(getProps).rowProps, { style: {
1782
1807
  margin: 0
1783
1808
  } }), {
1784
1809
  default: withCtx(() => [
1785
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(getSchema), (schema) => {
1786
- return openBlock(), createBlock(unref$1(_sfc_main$a), {
1810
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
1811
+ return openBlock(), createBlock(unref(DtFormItem), {
1787
1812
  key: schema.name,
1788
1813
  schema,
1789
- formProps: unref$1(getProps),
1790
- formModel: unref$1(formModel),
1791
- defaultValues: unref$1(defaultValue),
1814
+ formProps: unref(getProps),
1815
+ formModel,
1816
+ defaultValues: defaultValue.value,
1792
1817
  setFormModel,
1793
1818
  formActionType: formActionMethods
1794
1819
  }, createSlots({ _: 2 }, [
@@ -1802,7 +1827,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
1802
1827
  })
1803
1828
  ]), 1032, ["schema", "formProps", "formModel", "defaultValues"]);
1804
1829
  }), 128)),
1805
- unref$1(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref$1(_sfc_main$9), mergeProps({ key: 0 }, unref$1(getActionsProps), { onHandleMethod: unref$1(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("", true)
1830
+ unref(getActionsProps).buttonList?.length ? (openBlock(), createBlock(unref(DtFormButtons), mergeProps({ key: 0 }, unref(getActionsProps), { onHandleMethod: unref(handleMethod) }), null, 16, ["onHandleMethod"])) : createCommentVNode("v-if", true)
1806
1831
  ]),
1807
1832
  _: 3
1808
1833
  }, 16)
@@ -1812,6 +1837,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
1812
1837
  };
1813
1838
  }
1814
1839
  });
1840
+ 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"]]);
1815
1841
  function useForm(props) {
1816
1842
  const formRef = ref(null);
1817
1843
  const loadedRef = ref(false);
@@ -1888,7 +1914,7 @@ const withInstall = (comp) => {
1888
1914
  };
1889
1915
  return comp;
1890
1916
  };
1891
- const DtForm = withInstall(_sfc_main$8);
1917
+ const DtForm = withInstall(Forms);
1892
1918
  const orgDialogProp = reactive({});
1893
1919
  const cbTransfer = reactive({});
1894
1920
  const dataTransfer = reactive({});
@@ -2003,7 +2029,6 @@ function useModal(props, setModalData) {
2003
2029
  };
2004
2030
  return [register, methods];
2005
2031
  }
2006
- const index$1 = "";
2007
2032
  const basicProps$1 = {
2008
2033
  t: {
2009
2034
  type: String
@@ -2160,7 +2185,7 @@ function useDragMove(context) {
2160
2185
  function _isSlot(s) {
2161
2186
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
2162
2187
  }
2163
- const Modal = defineComponent({
2188
+ const _sfc_main$8 = {
2164
2189
  name: "Modal",
2165
2190
  inheritAttrs: false,
2166
2191
  props: basicProps$1,
@@ -2199,9 +2224,9 @@ const Modal = defineComponent({
2199
2224
  });
2200
2225
  };
2201
2226
  }
2202
- });
2203
- const index = "";
2204
- const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
2227
+ };
2228
+ 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"]]);
2229
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2205
2230
  __name: "CloseIcon",
2206
2231
  props: {
2207
2232
  canFullscreen: { type: Boolean, default: true },
@@ -2231,12 +2256,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
2231
2256
  return (_ctx, _cache) => {
2232
2257
  const _component_ATooltip = Tooltip$1;
2233
2258
  return openBlock(), createElementBlock("div", {
2234
- class: normalizeClass(["flex h-14 items-center justify-center", unref$1(getClass)])
2259
+ class: normalizeClass(["flex h-14 items-center justify-center", unref(getClass)])
2235
2260
  }, [
2236
2261
  __props.canFullscreen ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2237
2262
  __props.fullScreen ? (openBlock(), createBlock(_component_ATooltip, {
2238
2263
  key: 0,
2239
- title: unref$1(t)("EXIT_FULLSCREEN"),
2264
+ title: unref(t)("EXIT_FULLSCREEN"),
2240
2265
  placement: "bottom"
2241
2266
  }, {
2242
2267
  default: withCtx(() => [
@@ -2248,7 +2273,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
2248
2273
  _: 1
2249
2274
  }, 8, ["title"])) : (openBlock(), createBlock(_component_ATooltip, {
2250
2275
  key: 1,
2251
- title: unref$1(t)("FULLSCREEN"),
2276
+ title: unref(t)("FULLSCREEN"),
2252
2277
  placement: "bottom"
2253
2278
  }, {
2254
2279
  default: withCtx(() => [
@@ -2259,7 +2284,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
2259
2284
  ]),
2260
2285
  _: 1
2261
2286
  }, 8, ["title"]))
2262
- ], 64)) : createCommentVNode("", true),
2287
+ ], 64)) : createCommentVNode("v-if", true),
2263
2288
  createElementVNode("i", {
2264
2289
  class: "i mdi:close h-14 w-10 pr-4",
2265
2290
  onClick: handleCancel
@@ -2268,6 +2293,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
2268
2293
  };
2269
2294
  }
2270
2295
  });
2296
+ 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"]]);
2271
2297
  const isServer = typeof window === "undefined";
2272
2298
  const BAR_MAP = {
2273
2299
  vertical: {
@@ -2328,7 +2354,7 @@ function removeResizeListener(element, fn) {
2328
2354
  element.__ro__.disconnect();
2329
2355
  }
2330
2356
  }
2331
- const Bar = defineComponent$1({
2357
+ const Bar = defineComponent({
2332
2358
  name: "Bar",
2333
2359
  props: {
2334
2360
  vertical: Boolean,
@@ -2336,14 +2362,14 @@ const Bar = defineComponent$1({
2336
2362
  move: Number
2337
2363
  },
2338
2364
  setup(props) {
2339
- const instance = getCurrentInstance$1();
2340
- const thumb = ref$1();
2365
+ const instance = getCurrentInstance();
2366
+ const thumb = ref();
2341
2367
  const wrap = inject("scroll-bar-wrap", {});
2342
- const bar = computed$1(() => {
2368
+ const bar = computed(() => {
2343
2369
  return BAR_MAP[props.vertical ? "vertical" : "horizontal"];
2344
2370
  });
2345
- const barStore = ref$1({});
2346
- const cursorDown = ref$1();
2371
+ const barStore = ref({});
2372
+ const cursorDown = ref();
2347
2373
  const clickThumbHandler = (e) => {
2348
2374
  if (e.ctrlKey || e.button === 2) {
2349
2375
  return;
@@ -2384,16 +2410,16 @@ const Bar = defineComponent$1({
2384
2410
  off(document, "mousemove", mouseMoveDocumentHandler);
2385
2411
  document.onselectstart = null;
2386
2412
  }
2387
- onUnmounted$1(() => {
2413
+ onUnmounted(() => {
2388
2414
  off(document, "mouseup", mouseUpDocumentHandler);
2389
2415
  });
2390
- return () => h$1(
2416
+ return () => h(
2391
2417
  "div",
2392
2418
  {
2393
2419
  class: ["scrollbar__bar", "is-" + bar.value.key],
2394
2420
  onMousedown: clickTrackHandler
2395
2421
  },
2396
- h$1("div", {
2422
+ h("div", {
2397
2423
  ref: thumb,
2398
2424
  class: "scrollbar__thumb",
2399
2425
  onMousedown: clickThumbHandler,
@@ -2407,7 +2433,7 @@ const Bar = defineComponent$1({
2407
2433
  }
2408
2434
  });
2409
2435
  const _hoisted_1 = { class: "scrollbar relative h-full overflow-hidden" };
2410
- const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
2436
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2411
2437
  __name: "scroll-bar",
2412
2438
  props: {
2413
2439
  wrapClass: {
@@ -2481,7 +2507,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
2481
2507
  ref_key: "wrap",
2482
2508
  ref: wrap,
2483
2509
  class: normalizeClass([[__props.wrapClass, "scrollbar__wrap--hidden-default"], "h-full overflow-auto"]),
2484
- style: normalizeStyle(unref$1(style)),
2510
+ style: normalizeStyle(unref(style)),
2485
2511
  onScroll: handleScroll
2486
2512
  }, [
2487
2513
  (openBlock(), createBlock(resolveDynamicComponent(__props.tag), {
@@ -2496,25 +2522,26 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
2496
2522
  _: 3
2497
2523
  }, 8, ["class", "style"]))
2498
2524
  ], 38),
2499
- createVNode(unref$1(Bar), {
2500
- move: unref$1(moveX),
2501
- size: unref$1(sizeWidth)
2525
+ createVNode(unref(Bar), {
2526
+ move: moveX.value,
2527
+ size: sizeWidth.value
2502
2528
  }, null, 8, ["move", "size"]),
2503
- createVNode(unref$1(Bar), {
2529
+ createVNode(unref(Bar), {
2504
2530
  vertical: "",
2505
- move: unref$1(moveY),
2506
- size: unref$1(sizeHeight)
2531
+ move: moveY.value,
2532
+ size: sizeHeight.value
2507
2533
  }, null, 8, ["move", "size"])
2508
2534
  ]);
2509
2535
  };
2510
2536
  }
2511
2537
  });
2512
- const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
2538
+ 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"]]);
2539
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2513
2540
  __name: "scroll-container",
2514
2541
  setup(__props) {
2515
2542
  const scrollbarRef = ref(null);
2516
2543
  return (_ctx, _cache) => {
2517
- return openBlock(), createBlock(_sfc_main$6, mergeProps({
2544
+ return openBlock(), createBlock(ScrollBar, mergeProps({
2518
2545
  ref_key: "scrollbarRef",
2519
2546
  ref: scrollbarRef
2520
2547
  }, _ctx.$attrs, { class: "w-full h-full" }), {
@@ -2526,8 +2553,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
2526
2553
  };
2527
2554
  }
2528
2555
  });
2529
- const _sfc_main$4 = defineComponent({
2530
- name: "slot-container",
2556
+ 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"]]);
2557
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2558
+ __name: "slot-container",
2531
2559
  props: {
2532
2560
  template: {
2533
2561
  type: Function
@@ -2536,15 +2564,18 @@ const _sfc_main$4 = defineComponent({
2536
2564
  type: Object
2537
2565
  }
2538
2566
  },
2539
- setup(props) {
2540
- return () => {
2541
- return h("div", [props.template(props.data)]);
2567
+ setup(__props) {
2568
+ const props = __props;
2569
+ const Container = h("div", [props.template(props.data)]);
2570
+ return (_ctx, _cache) => {
2571
+ return openBlock(), createBlock(unref(Container));
2542
2572
  };
2543
2573
  }
2544
2574
  });
2545
- const DtScrollContainer = withInstall(_sfc_main$5);
2546
- withInstall(_sfc_main$4);
2547
- const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
2575
+ 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"]]);
2576
+ const DtScrollContainer = withInstall(ScrollContainer);
2577
+ withInstall(SlotContainer);
2578
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2548
2579
  __name: "ModalWrap",
2549
2580
  props: {
2550
2581
  useWrapper: { type: Boolean, default: true },
@@ -2577,10 +2608,10 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
2577
2608
  const wrapperRefDom = unref(wrapperRef);
2578
2609
  if (!wrapperRefDom)
2579
2610
  return;
2580
- const bodyDom = wrapperRefDom.$el.parentElement;
2611
+ const bodyDom = wrapperRefDom.$el.parentElement.parentElement.parentElement;
2581
2612
  if (!bodyDom)
2582
2613
  return;
2583
- bodyDom.style.padding = "0";
2614
+ bodyDom.style.padding = props.useWrapper ? "24px" : "0";
2584
2615
  await nextTick();
2585
2616
  const modalDom = bodyDom.parentElement && bodyDom.parentElement.parentElement;
2586
2617
  return modalDom;
@@ -2632,7 +2663,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
2632
2663
  }
2633
2664
  );
2634
2665
  return (_ctx, _cache) => {
2635
- return openBlock(), createBlock(unref$1(DtScrollContainer), {
2666
+ return openBlock(), createBlock(unref(DtScrollContainer), {
2636
2667
  ref_key: "wrapperRef",
2637
2668
  ref: wrapperRef
2638
2669
  }, {
@@ -2640,7 +2671,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
2640
2671
  createElementVNode("div", {
2641
2672
  ref_key: "wrapRef",
2642
2673
  ref: wrapRef,
2643
- style: normalizeStyle(unref$1(wrapStyle))
2674
+ style: normalizeStyle(unref(wrapStyle))
2644
2675
  }, [
2645
2676
  renderSlot(_ctx.$slots, "default")
2646
2677
  ], 4)
@@ -2650,7 +2681,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
2650
2681
  };
2651
2682
  }
2652
2683
  });
2653
- const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
2684
+ 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"]]);
2685
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2654
2686
  __name: "ModalFooter",
2655
2687
  props: {
2656
2688
  buttons: Object,
@@ -2666,7 +2698,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
2666
2698
  setup(__props, { emit: emits }) {
2667
2699
  const props = __props;
2668
2700
  const { t } = useI18n("UI");
2669
- const buttonList = computed$1(() => {
2701
+ const buttonList = computed(() => {
2670
2702
  if (props.buttons && props.buttons.length)
2671
2703
  return props.buttons;
2672
2704
  let buttonActions = [
@@ -2692,15 +2724,16 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
2692
2724
  return (_ctx, _cache) => {
2693
2725
  return openBlock(), createElementBlock(Fragment, null, [
2694
2726
  renderSlot(_ctx.$slots, "appendFooter"),
2695
- createVNode(_sfc_main$9, {
2727
+ createVNode(DtFormButtons, {
2696
2728
  mode: "dialog",
2697
- buttonList: unref$1(buttonList),
2729
+ buttonList: unref(buttonList),
2698
2730
  onHandleMethod: _cache[0] || (_cache[0] = ($event) => handleMethod($event))
2699
2731
  }, null, 8, ["buttonList"])
2700
2732
  ], 64);
2701
2733
  };
2702
2734
  }
2703
2735
  });
2736
+ 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"]]);
2704
2737
  function useFullScreen(wrapClassName) {
2705
2738
  const fullScreenRef = ref(false);
2706
2739
  const getWrapClassName = computed(() => {
@@ -2719,7 +2752,7 @@ function useFullScreen(wrapClassName) {
2719
2752
  toggleFullScreen
2720
2753
  };
2721
2754
  }
2722
- const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
2755
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2723
2756
  __name: "index",
2724
2757
  props: basicProps$1,
2725
2758
  emits: ["visible-change", "height-change", "cancel", "save", "register", "update:visible"],
@@ -2819,23 +2852,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
2819
2852
  });
2820
2853
  return (_ctx, _cache) => {
2821
2854
  const _component_ASpin = Spin;
2822
- return openBlock(), createBlock(unref$1(Modal), mergeProps(unref$1(getBindValue), { onCancel: handleCancel }), createSlots({
2855
+ return openBlock(), createBlock(Modal, mergeProps(unref(getBindValue), { onCancel: handleCancel }), createSlots({
2823
2856
  default: withCtx(() => [
2824
2857
  createVNode(_component_ASpin, {
2825
- spinning: unref$1(getBindValue).loading,
2826
- tip: unref$1(getBindValue).loadingTip
2858
+ spinning: unref(getBindValue).loading,
2859
+ tip: unref(getBindValue).loadingTip
2827
2860
  }, {
2828
2861
  default: withCtx(() => [
2829
- createVNode(_sfc_main$3, mergeProps({
2830
- useWrapper: unref$1(getBindValue).useWrapper,
2831
- fullScreen: unref$1(fullScreenRef),
2862
+ createVNode(ModalWrapper, mergeProps({
2863
+ useWrapper: unref(getBindValue).useWrapper,
2864
+ fullScreen: unref(fullScreenRef),
2832
2865
  ref_key: "modalWrapperRef",
2833
2866
  ref: modalWrapperRef,
2834
- minHeight: unref$1(getBindValue).minHeight,
2835
- height: unref$1(getWrapperHeight),
2836
- visible: unref$1(visibleRef),
2837
- modalFooterHeight: unref$1(modalFooterHeight)
2838
- }, unref$1(omit)(unref$1(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
2867
+ minHeight: unref(getBindValue).minHeight,
2868
+ height: unref(getWrapperHeight),
2869
+ visible: visibleRef.value,
2870
+ modalFooterHeight: unref(modalFooterHeight)
2871
+ }, unref(omit)(unref(getBindValue).wrapperProps, "visible", "height", "modalFooterHeight"), { onHeightChange: handleHeightChange }), {
2839
2872
  default: withCtx(() => [
2840
2873
  renderSlot(_ctx.$slots, "default")
2841
2874
  ]),
@@ -2850,11 +2883,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
2850
2883
  !_ctx.$slots.closeIcon ? {
2851
2884
  name: "closeIcon",
2852
2885
  fn: withCtx(() => [
2853
- createVNode(_sfc_main$7, {
2854
- canFullscreen: unref$1(getBindValue).canFullscreen,
2855
- fullScreen: unref$1(fullScreenRef),
2886
+ createVNode(CloseIcon, {
2887
+ canFullscreen: unref(getBindValue).canFullscreen,
2888
+ fullScreen: unref(fullScreenRef),
2856
2889
  onCancel: handleCancel,
2857
- onFullscreen: unref$1(toggleFullScreen)
2890
+ onFullscreen: unref(toggleFullScreen)
2858
2891
  }, null, 8, ["canFullscreen", "fullScreen", "onFullscreen"])
2859
2892
  ]),
2860
2893
  key: "0"
@@ -2862,19 +2895,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
2862
2895
  !_ctx.$slots.title ? {
2863
2896
  name: "title",
2864
2897
  fn: withCtx(() => [
2865
- createTextVNode(toDisplayString(unref$1(getMergeProps).title), 1)
2898
+ createTextVNode(toDisplayString(unref(getMergeProps).title), 1)
2866
2899
  ]),
2867
2900
  key: "1"
2868
2901
  } : void 0,
2869
2902
  !_ctx.$slots.footer ? {
2870
2903
  name: "footer",
2871
2904
  fn: withCtx(() => [
2872
- createVNode(_sfc_main$2, {
2873
- buttons: unref$1(propsRef)?.footer,
2874
- showSave: unref$1(getBindValue).showOkBtn,
2875
- showCancel: unref$1(getBindValue).showCancelBtn,
2876
- okText: unref$1(getBindValue).okText,
2877
- cancelText: unref$1(getBindValue).cancelText,
2905
+ createVNode(ModalFooter, {
2906
+ buttons: propsRef.value?.footer,
2907
+ showSave: unref(getBindValue).showOkBtn,
2908
+ showCancel: unref(getBindValue).showCancelBtn,
2909
+ okText: unref(getBindValue).okText,
2910
+ cancelText: unref(getBindValue).cancelText,
2878
2911
  onHandleSave: handleSave,
2879
2912
  onHandleCancel: handleCancel
2880
2913
  }, createSlots({ _: 2 }, [
@@ -2890,7 +2923,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
2890
2923
  ]),
2891
2924
  key: "2"
2892
2925
  } : void 0,
2893
- renderList(Object.keys(unref$1(omit)(_ctx.$slots, "default")), (item) => {
2926
+ renderList(Object.keys(unref(omit)(_ctx.$slots, "default")), (item) => {
2894
2927
  return {
2895
2928
  name: item,
2896
2929
  fn: withCtx((data) => [
@@ -2902,6 +2935,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
2902
2935
  };
2903
2936
  }
2904
2937
  });
2938
+ 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"]]);
2905
2939
  const basicProps = {
2906
2940
  title: {
2907
2941
  type: Object
@@ -2912,7 +2946,7 @@ const basicProps = {
2912
2946
  },
2913
2947
  schemas: {
2914
2948
  type: Array,
2915
- default: []
2949
+ default: () => []
2916
2950
  },
2917
2951
  footer: {
2918
2952
  type: Array,
@@ -2939,32 +2973,29 @@ const basicProps = {
2939
2973
  },
2940
2974
  onSave: {
2941
2975
  type: Function,
2942
- default: () => {
2943
- }
2976
+ default: () => ({})
2944
2977
  },
2945
2978
  onDeletes: {
2946
2979
  type: Function,
2947
- default: (keys) => {
2948
- }
2980
+ default: (keys) => ({})
2949
2981
  },
2950
2982
  onQueryById: {
2951
2983
  type: Function,
2952
- default: (id) => {
2953
- }
2984
+ default: (id) => ({})
2954
2985
  },
2955
2986
  onRegister: {
2956
- type: Object
2987
+ type: Function
2957
2988
  },
2958
2989
  registerInstance: {
2959
2990
  type: Function
2960
2991
  }
2961
2992
  };
2962
- const _sfc_main = /* @__PURE__ */ defineComponent$1({
2993
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2963
2994
  __name: "Curd",
2964
2995
  props: basicProps,
2965
2996
  setup(__props) {
2966
2997
  const props = __props;
2967
- const [registerDialog, { setModalProps }] = useModal({
2998
+ const [registerDialog] = useModal({
2968
2999
  ...omit(toRaw(props), [
2969
3000
  "curd",
2970
3001
  "formProps",
@@ -2976,8 +3007,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
2976
3007
  props?.onSave();
2977
3008
  }
2978
3009
  return (_ctx, _cache) => {
2979
- return openBlock(), createBlock(unref$1(_sfc_main$1), {
2980
- onRegister: unref$1(registerDialog),
3010
+ return openBlock(), createBlock(unref(DtModal$1), {
3011
+ onRegister: unref(registerDialog),
2981
3012
  onSave: _cache[0] || (_cache[0] = ($event) => handleSave())
2982
3013
  }, {
2983
3014
  default: withCtx(() => [
@@ -2988,6 +3019,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
2988
3019
  };
2989
3020
  }
2990
3021
  });
3022
+ 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"]]);
2991
3023
  function useCurd(curdOpt) {
2992
3024
  const [register, {
2993
3025
  openModal,
@@ -3015,7 +3047,7 @@ function useCurd(curdOpt) {
3015
3047
  const DtCurdModal = () => {
3016
3048
  return h(createVNode("div", {
3017
3049
  "class": "dt-curd-modal"
3018
- }, [createVNode(_sfc_main, mergeProps(curdOpt, {
3050
+ }, [createVNode(DtModal, mergeProps(curdOpt, {
3019
3051
  "title": title,
3020
3052
  "onRegister": register
3021
3053
  }), {