@dazhicheng/ui 1.5.203 → 1.5.204

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 (149) hide show
  1. package/dist/_virtual/___vite-browser-external.js +6 -0
  2. package/dist/_virtual/__vite-browser-external.js +4 -0
  3. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  4. package/dist/_virtual/_commonjsHelpers.js +24 -0
  5. package/dist/_virtual/aes.js +4 -0
  6. package/dist/_virtual/cipher-core.js +4 -0
  7. package/dist/_virtual/core.js +4 -0
  8. package/dist/_virtual/enc-base64.js +4 -0
  9. package/dist/_virtual/enc-utf8.js +4 -0
  10. package/dist/_virtual/evpkdf.js +4 -0
  11. package/dist/_virtual/hmac.js +4 -0
  12. package/dist/_virtual/md5.js +4 -0
  13. package/dist/_virtual/mode-ecb.js +4 -0
  14. package/dist/_virtual/pad-pkcs7.js +4 -0
  15. package/dist/_virtual/sha1.js +4 -0
  16. package/dist/components/tt-api-component/index.js +17 -4
  17. package/dist/components/tt-api-component/index.vue2.js +24 -13
  18. package/dist/components/tt-area/TtArea.vue3.js +24 -13
  19. package/dist/components/tt-button/index.js +18 -5
  20. package/dist/components/tt-button/index.vue2.js +27 -16
  21. package/dist/components/tt-checkbox/index.js +17 -4
  22. package/dist/components/tt-checkbox/index.vue.js +38 -28
  23. package/dist/components/tt-drawer/index.js +17 -7
  24. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +48 -36
  25. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +39 -26
  26. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +23 -10
  27. package/dist/components/tt-drawer/src/props.js +22 -9
  28. package/dist/components/tt-drawer/src/utils/drawer-api.js +42 -33
  29. package/dist/components/tt-empty/index.js +28 -18
  30. package/dist/components/tt-form/index.js +22 -14
  31. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +23 -14
  32. package/dist/components/tt-form/src/components/FormActions.vue2.js +42 -32
  33. package/dist/components/tt-form/src/form/FormDescription.vue.js +19 -10
  34. package/dist/components/tt-form/src/form/FormItem.vue.js +18 -9
  35. package/dist/components/tt-form/src/form/FormLabel.vue.js +18 -9
  36. package/dist/components/tt-form/src/form/RenderContent.vue.js +25 -13
  37. package/dist/components/tt-form/src/form-render/FormField.vue2.js +62 -55
  38. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +36 -28
  39. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +64 -56
  40. package/dist/components/tt-form/src/form-render/array-register/utils.js +18 -8
  41. package/dist/components/tt-form/src/form-render/dependencies.js +36 -24
  42. package/dist/components/tt-form/src/form-render/form.vue2.js +17 -7
  43. package/dist/components/tt-form/src/form-render/helper.js +29 -16
  44. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +17 -7
  45. package/dist/components/tt-form/src/formApi.js +59 -48
  46. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +17 -4
  47. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +67 -57
  48. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +55 -46
  49. package/dist/components/tt-form/src/group-form/groupFormApi.js +21 -10
  50. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +27 -17
  51. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +32 -23
  52. package/dist/components/tt-form/src/index.vue2.js +53 -45
  53. package/dist/components/tt-form/src/useFormContext.js +74 -62
  54. package/dist/components/tt-form-item-error-tooltip/index.js +18 -5
  55. package/dist/components/tt-form-item-error-tooltip/index.vue.js +32 -21
  56. package/dist/components/tt-icon/index.js +20 -7
  57. package/dist/components/tt-image/index.js +19 -6
  58. package/dist/components/tt-image/src/components/ImageViewer.js +27 -17
  59. package/dist/components/tt-loading/index.js +16 -4
  60. package/dist/components/tt-loading/src/directive.js +34 -22
  61. package/dist/components/tt-log/index.js +17 -4
  62. package/dist/components/tt-log/index.vue.js +21 -8
  63. package/dist/components/tt-modal/index.js +16 -5
  64. package/dist/components/tt-modal/src/RenderModal.vue.js +163 -151
  65. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +38 -28
  66. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +24 -11
  67. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +36 -23
  68. package/dist/components/tt-modal/src/props.js +22 -9
  69. package/dist/components/tt-modal/src/utils/modal-api.js +39 -29
  70. package/dist/components/tt-modal-form/index.vue.js +44 -36
  71. package/dist/components/tt-nav-anchor/index.js +17 -4
  72. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +69 -57
  73. package/dist/components/tt-panel-select/index.js +17 -4
  74. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +51 -40
  75. package/dist/components/tt-panel-select/src/index.vue.js +35 -24
  76. package/dist/components/tt-select/index.js +17 -4
  77. package/dist/components/tt-select/src/Select.vue.js +79 -68
  78. package/dist/components/tt-select/src/components/SelectTable.vue.js +41 -30
  79. package/dist/components/tt-select/src/components/Table.vue.js +86 -76
  80. package/dist/components/tt-select/src/hooks/useDataSource.js +59 -49
  81. package/dist/components/tt-select/src/hooks/useSelect.js +46 -38
  82. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +123 -112
  83. package/dist/components/tt-table/index.js +19 -12
  84. package/dist/components/tt-table/src/Table.vue.js +82 -71
  85. package/dist/components/tt-table/src/TableForm.vue.js +77 -65
  86. package/dist/components/tt-table/src/components/TableAction.vue.js +49 -39
  87. package/dist/components/tt-table/src/components/TableButtons.js +73 -60
  88. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +14 -3
  89. package/dist/components/tt-table/src/components/TableToobalTools.vue.js +36 -25
  90. package/dist/components/tt-table/src/hooks/useColumns.js +72 -65
  91. package/dist/components/tt-table/src/hooks/useCustomColumns.js +43 -31
  92. package/dist/components/tt-table/src/hooks/useDataSource.js +50 -42
  93. package/dist/components/tt-table/src/hooks/usePagination.js +36 -25
  94. package/dist/components/tt-table/src/props.js +55 -42
  95. package/dist/components/tt-table/src/utils/table-api.js +33 -22
  96. package/dist/components/tt-table/src/utils/table-form-api.js +35 -24
  97. package/dist/components/tt-text/index.js +17 -4
  98. package/dist/components/tt-upload/index.js +19 -6
  99. package/dist/components/tt-upload/src/TtUpload.vue.js +77 -66
  100. package/dist/directives/disabled-tip/index.js +37 -26
  101. package/dist/hooks/useFormSchemasLink.js +90 -79
  102. package/dist/hooks/useScreenshotOss.js +49 -35
  103. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  104. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +64 -0
  105. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +545 -0
  106. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +508 -0
  107. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +81 -0
  108. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js +10 -0
  109. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +71 -0
  110. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +84 -0
  111. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +72 -0
  112. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +22 -0
  113. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js +11 -0
  114. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +50 -0
  115. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
  116. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +32 -0
  117. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js +11 -0
  118. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js +92 -0
  119. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js +34 -0
  120. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js +52 -0
  121. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js +43 -0
  122. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js +47 -0
  123. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js +122 -0
  124. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js +30 -0
  125. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js +24 -0
  126. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js +106 -0
  127. package/dist/node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js +16 -0
  128. package/dist/node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.js +21 -0
  129. package/dist/node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2922 -0
  130. package/dist/node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js +93 -0
  131. package/dist/packages/hooks/src/propTypes.js +17 -0
  132. package/dist/packages/hooks/src/tools.js +6 -0
  133. package/dist/packages/hooks/src/useDebounce.js +32 -0
  134. package/dist/packages/hooks/src/useDesign.js +12 -0
  135. package/dist/packages/hooks/src/useElementScreenshot.js +136 -0
  136. package/dist/packages/hooks/src/useIsScroll.js +12 -0
  137. package/dist/packages/hooks/src/usePriorityValue.js +45 -0
  138. package/dist/packages/utils/src/calc.js +14 -0
  139. package/dist/packages/utils/src/check.js +10 -0
  140. package/dist/packages/utils/src/install.js +11 -0
  141. package/dist/packages/utils/src/is.js +64 -0
  142. package/dist/packages/utils/src/merge.js +13 -0
  143. package/dist/packages/utils/src/stateHandler.js +33 -0
  144. package/dist/packages/utils/src/string.js +6 -0
  145. package/dist/packages/utils/src/testid-helper.js +14 -0
  146. package/dist/packages/utils/src/tool.js +181 -0
  147. package/dist/plugins/default/renderCellContent.js +39 -28
  148. package/dist/plugins/vxeTable/switchStatus.js +37 -26
  149. package/package.json +1 -1
@@ -1,48 +1,61 @@
1
- import { defineComponent as d, ref as s, computed as g, watch as x, unref as o, onMounted as w, nextTick as v, withDirectives as S, createElementBlock as _, openBlock as k, normalizeClass as y, normalizeStyle as B, renderSlot as C } from "vue";
2
- import { useDesign as H, useIsScroll as T } from "@dazhicheng/hooks";
3
- import { vLoading as $ } from "element-plus";
1
+ import { defineComponent as d, ref as i, computed as g, watch as x, unref as e, onMounted as w, nextTick as v, withDirectives as S, createElementBlock as _, openBlock as k, normalizeClass as y, normalizeStyle as B, renderSlot as C } from "vue";
2
+ import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
3
+ import { useDesign as H } from "../../../../packages/hooks/src/useDesign.js";
4
+ import "axios";
5
+ import { vLoading as T } from "element-plus";
6
+ import "dayjs";
7
+ import "xe-utils";
8
+ import "dayjs/plugin/utc";
9
+ import "dayjs/plugin/timezone";
10
+ import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
+ import "lodash-es";
16
+ import { useIsScroll as $ } from "../../../../packages/hooks/src/useIsScroll.js";
4
17
  import { basicProps as b } from "../props.js";
5
- const E = /* @__PURE__ */ d({
18
+ const Q = /* @__PURE__ */ d({
6
19
  name: "TtWrapper",
7
20
  __name: "ModalWrapper",
8
21
  props: b,
9
22
  emits: ["is-scroll"],
10
- setup(n, { expose: i, emit: l }) {
11
- const t = n, p = l, a = s(window.innerHeight * 0.7), { prefixCls: c } = H("modal-wrapper"), e = s(), m = g(() => ({
23
+ setup(p, { expose: m, emit: s }) {
24
+ const r = p, n = s, l = i(window.innerHeight * 0.7), { prefixCls: a } = H("modal-wrapper"), o = i(), c = g(() => ({
12
25
  // minHeight: `${props.minHeight}px`,
13
- maxHeight: t.isBottom ? "calc(100vh - 60px - 44px - 33px)" : `${t.height || a.value}px`,
14
- height: t.height > 0 ? `${t.height}px !important` : "auto"
26
+ maxHeight: r.isBottom ? "calc(100vh - 60px - 44px - 33px)" : `${r.height || l.value}px`,
27
+ height: r.height > 0 ? `${r.height}px !important` : "auto"
15
28
  // overflow: 'auto',
16
29
  // padding: '12px 16px',
17
30
  }));
18
31
  function f() {
19
- o(e) && o(e).scrollTo(0, 1e6);
32
+ e(o) && e(o).scrollTo(0, 1e6);
20
33
  }
21
- const { hasScrollbar: h, update: u } = T();
34
+ const { hasScrollbar: h, update: u } = $();
22
35
  return x(
23
- () => o(h),
24
- (r) => {
25
- p("is-scroll", r);
36
+ () => e(h),
37
+ (t) => {
38
+ n("is-scroll", t);
26
39
  }
27
40
  ), w(() => {
28
41
  v(() => {
29
- u(e);
42
+ u(o);
30
43
  });
31
- }), i({
44
+ }), m({
32
45
  onScrollBottom: f,
33
- elm: e
34
- }), (r, z) => S((k(), _("div", {
46
+ elm: o
47
+ }), (t, z) => S((k(), _("div", {
35
48
  ref_key: "wrapperRef",
36
- ref: e,
37
- style: B(m.value),
38
- class: y([o(c)])
49
+ ref: o,
50
+ style: B(c.value),
51
+ class: y([e(a)])
39
52
  }, [
40
- C(r.$slots, "default")
53
+ C(t.$slots, "default")
41
54
  ], 6)), [
42
- [o($), r.loading]
55
+ [e(T), t.loading]
43
56
  ]);
44
57
  }
45
58
  });
46
59
  export {
47
- E as default
60
+ Q as default
48
61
  };
@@ -1,20 +1,33 @@
1
- import { propTypes as e } from "@dazhicheng/hooks";
2
- import { GlobalConfig as t } from "../../../hooks/useSetup.js";
1
+ import { propTypes as t } from "../../../packages/hooks/src/propTypes.js";
2
+ import "axios";
3
+ import "element-plus";
4
+ import "dayjs";
5
+ import "vue";
6
+ import "xe-utils";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import "lodash-es";
15
+ import { GlobalConfig as e } from "../../../hooks/useSetup.js";
3
16
  const o = {
4
17
  /** 测试标识 */
5
- testId: e.string,
18
+ testId: t.string,
6
19
  /** 是否显示 */
7
20
  visible: { type: Boolean },
8
21
  /** 标题 */
9
- title: e.string.def(""),
22
+ title: t.string.def(""),
10
23
  /** 取消按钮文本 */
11
24
  cancelText: { type: String, default: "取消" },
12
25
  /** 确定按钮文本 */
13
26
  okText: { type: String, default: "确定" },
14
27
  /** 最小高度 */
15
- minHeight: e.number.def(192),
28
+ minHeight: t.number.def(192),
16
29
  /** 高度 */
17
- height: e.number,
30
+ height: t.number,
18
31
  /** 是否滚动到顶 */
19
32
  scrollTop: { type: Boolean, default: !0 },
20
33
  /** 取消前的函数 */
@@ -25,7 +38,7 @@ const o = {
25
38
  fullscreen: { type: Boolean, default: !1 },
26
39
  /** 是否允许自定义大小 */
27
40
  resizer: { type: Boolean, default: !1 }
28
- }, n = Object.assign({}, o, {
41
+ }, b = Object.assign({}, o, {
29
42
  /** 弹窗的loading */
30
43
  loading: { type: Boolean, default: !1 },
31
44
  /** 弹窗的loading提示 */
@@ -66,10 +79,10 @@ const o = {
66
79
  /** 是否显示modal */
67
80
  modal: {
68
81
  type: Boolean,
69
- default: () => t.showMask
82
+ default: () => e.showMask
70
83
  }
71
84
  });
72
85
  export {
73
- n as basicProps,
86
+ b as basicProps,
74
87
  o as modalProps
75
88
  };
@@ -1,35 +1,45 @@
1
1
  var v = Object.defineProperty;
2
2
  var b = (o, t, e) => t in o ? v(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var i = (o, t, e) => b(o, typeof t != "symbol" ? t + "" : t, e);
4
- import { mergeWithArrayOverride as u, bindMethods as S, isElement as w, isFunction as n } from "@dazhicheng/utils";
5
- import { Store as C } from "@tanstack/vue-store";
6
- import { useDebounceFn as k } from "@vueuse/core";
7
- import { computed as y } from "vue";
3
+ var s = (o, t, e) => b(o, typeof t != "symbol" ? t + "" : t, e);
4
+ import "axios";
5
+ import "element-plus";
6
+ import { isElement as S, isFunction as n } from "../../../../packages/utils/src/is.js";
7
+ import { computed as w } from "vue";
8
+ import { bindMethods as C } from "../../../../packages/utils/src/tool.js";
9
+ import { mergeWithArrayOverride as m } from "../../../../packages/utils/src/merge.js";
10
+ import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
+ import "lodash-es";
16
+ import { Store as k } from "@tanstack/vue-store";
17
+ import { useDebounceFn as y } from "@vueuse/core";
8
18
  import { GlobalConfig as D } from "../../../../hooks/useSetup.js";
9
- class x {
19
+ class U {
10
20
  /** 构造函数,初始化弹窗的API接口和状态 */
11
21
  constructor(t = {}) {
12
22
  /** 共享数据对象,用于在组件间传递数据 */
13
- i(this, "sharedData", {
23
+ s(this, "sharedData", {
14
24
  payload: {}
15
25
  });
16
26
  /** 状态存储对象,使用Store管理弹窗的各种状态 */
17
- i(this, "store");
27
+ s(this, "store");
18
28
  /** 弹窗的API接口,用于处理外部事件 */
19
- i(this, "api");
29
+ s(this, "api");
20
30
  /** 弹窗的当前状态,使用Partial<ModalRenderState>类型 */
21
- i(this, "state");
31
+ s(this, "state");
22
32
  /** 弹窗的实例方法,用于处理弹窗的各种操作 */
23
- i(this, "methods");
33
+ s(this, "methods");
24
34
  /**
25
35
  * 确认操作
26
36
  */
27
- i(this, "onOk", k(async () => {
37
+ s(this, "onOk", y(async () => {
28
38
  var t, e;
29
39
  try {
30
40
  this.changeOkLoading(!0), this.api.onOk && await ((e = (t = this.api).onOk) == null ? void 0 : e.call(t));
31
- } catch (s) {
32
- throw new Error(s);
41
+ } catch (i) {
42
+ throw new Error(i);
33
43
  } finally {
34
44
  this.changeOkLoading(!1);
35
45
  }
@@ -38,16 +48,16 @@ class x {
38
48
  * 获取弹窗的可见状态
39
49
  * @returns 弹窗的可见状态
40
50
  */
41
- i(this, "getVisible", y(() => this.state.visible));
51
+ s(this, "getVisible", w(() => this.state.visible));
42
52
  const {
43
53
  connectedComponent: e,
44
- onVisibleChange: s,
54
+ onVisibleChange: i,
45
55
  onClose: a,
46
56
  onClosed: r,
47
- onOk: f,
48
- onReceiveSharedData: m,
49
- ...g
50
- } = t, p = {
57
+ onOk: p,
58
+ onReceiveSharedData: u,
59
+ ...f
60
+ } = t, g = {
51
61
  visible: !1,
52
62
  title: "",
53
63
  cancelText: "取消",
@@ -77,13 +87,13 @@ class x {
77
87
  resizeChange: void 0,
78
88
  modal: D.showMask
79
89
  };
80
- this.store = new C(u(g, p), {
90
+ this.store = new k(m(f, g), {
81
91
  onUpdate: () => {
82
92
  var h, c, d;
83
93
  const l = this.store.state;
84
94
  this.state = l, l.visible !== ((h = this.state) == null ? void 0 : h.visible) && ((d = (c = this.api).onVisibleChange) == null || d.call(c, !!l.visible));
85
95
  }
86
- }), this.state = this.store.state, this.api = { onVisibleChange: s, onClose: a, onClosed: r, onOk: f, onReceiveSharedData: m }, S(this);
96
+ }), this.state = this.store.state, this.api = { onVisibleChange: i, onClose: a, onClosed: r, onOk: p, onReceiveSharedData: u }, C(this);
87
97
  }
88
98
  /**
89
99
  * 挂载弹窗实例和API接口
@@ -91,7 +101,7 @@ class x {
91
101
  * @param methods - 外部传入的实例方法
92
102
  */
93
103
  mount(t, e) {
94
- this.api = u(t, this.api), this.methods = e;
104
+ this.api = m(t, this.api), this.methods = e;
95
105
  }
96
106
  /**
97
107
  * 关闭弹窗
@@ -99,11 +109,11 @@ class x {
99
109
  async close() {
100
110
  var a, r;
101
111
  const t = document.querySelector('.viewer-container[aria-modal="true"]');
102
- if (w(t))
112
+ if (S(t))
103
113
  return;
104
114
  const { closeFunc: e } = this.state;
105
- let s = !0;
106
- e && n(e) && (s = await e()), this.setState({ visible: !s }), (r = (a = this.api).onClosed) == null || r.call(a);
115
+ let i = !0;
116
+ e && n(e) && (i = await e()), this.setState({ visible: !i }), (r = (a = this.api).onClosed) == null || r.call(a);
107
117
  }
108
118
  /**
109
119
  * 取消操作
@@ -171,8 +181,8 @@ class x {
171
181
  * @returns 当前实例
172
182
  */
173
183
  setData(t) {
174
- var e, s;
175
- return this.sharedData.payload = t, (s = (e = this.api).onReceiveSharedData) == null || s.call(e, t), this;
184
+ var e, i;
185
+ return this.sharedData.payload = t, (i = (e = this.api).onReceiveSharedData) == null || i.call(e, t), this;
176
186
  }
177
187
  /**
178
188
  * 关闭弹窗
@@ -196,5 +206,5 @@ class x {
196
206
  }
197
207
  }
198
208
  export {
199
- x as ModalApi
209
+ U as ModalApi
200
210
  };
@@ -1,21 +1,29 @@
1
1
  import { defineComponent as G, useSlots as H, ref as K, computed as F, toValue as J, nextTick as y, watch as Q, createBlock as C, openBlock as M, unref as d, createSlots as B, withCtx as A, renderSlot as h, createVNode as W, renderList as P, normalizeProps as S, guardReactiveProps as b, createCommentVNode as X } from "vue";
2
- import { isFunction as c } from "@dazhicheng/utils";
2
+ import "axios";
3
3
  import { ElCheckbox as Y, ElMessage as V } from "element-plus";
4
+ import { isFunction as m } from "../../packages/utils/src/is.js";
5
+ import "xe-utils";
6
+ import "dayjs";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import { get as Z } from "lodash-es";
4
15
  import "../tt-select/index.js";
5
16
  import "../tt-panel-select/index.js";
6
17
  import "../tt-upload/index.js";
7
18
  import "../tt-api-component/index.js";
8
19
  import "vee-validate";
9
- import { useForm as Z } from "../tt-form/src/useForm.js";
20
+ import { useForm as ee } from "../tt-form/src/useForm.js";
10
21
  import "zod";
11
- import { get as ee } from "lodash-es";
12
- import "dayjs";
13
- import "dayjs/plugin/timezone";
14
22
  import "@tanstack/vue-store";
15
23
  import "es-toolkit/compat";
16
24
  import "../tt-form/src/shared/zod-defaults.js";
17
25
  import "../tt-nav-anchor/index.js";
18
- import "@dazhicheng/hooks";
26
+ import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
19
27
  import "../tt-icon/index.js";
20
28
  import "../tt-form/src/components/Slot.js";
21
29
  import "../tt-form-item-error-tooltip/index.js";
@@ -28,7 +36,7 @@ import "../tt-form/src/form-render/FormFieldContact.js";
28
36
  import "../tt-modal/index.js";
29
37
  import { useModalFormSlot as oe } from "./hooks/useModalFormSlot.js";
30
38
  import { useModalRender as te } from "../tt-modal/src/hooks/useModalRender.js";
31
- const De = /* @__PURE__ */ G({
39
+ const ze = /* @__PURE__ */ G({
32
40
  name: "TtModalForm",
33
41
  __name: "index",
34
42
  props: {
@@ -54,7 +62,7 @@ const De = /* @__PURE__ */ G({
54
62
  emits: ["submit", "fetch", "getinfo"],
55
63
  setup(I, { emit: O }) {
56
64
  var k, w;
57
- const o = I, m = O, D = H(), f = K(), s = K(!1), { getFormSlotKeys: L, getModalSlotKeys: E, replaceFormSlotKey: R, replaceModalSlotKey: _ } = oe(D), x = F(() => E.value.filter(Boolean)), T = F(() => L.value.filter(Boolean)), [$, l] = Z({
65
+ const o = I, p = O, D = H(), f = K(), r = K(!1), { getFormSlotKeys: L, getModalSlotKeys: E, replaceFormSlotKey: R, replaceModalSlotKey: _ } = oe(D), x = F(() => E.value.filter(Boolean)), T = F(() => L.value.filter(Boolean)), [$, s] = ee({
58
66
  showDefaultActions: !1,
59
67
  ...J(o.formProps)
60
68
  }), [z, a] = te({
@@ -64,9 +72,9 @@ const De = /* @__PURE__ */ G({
64
72
  f.value = void 0;
65
73
  return;
66
74
  }
67
- if (e.schemas && l.setState({ schema: e.schemas }), e != null && e.title && a.setModalProps({ title: e.title }), f.value = e[o.infoApiIdKey], e != null && e[o.infoApiIdKey]) {
75
+ if (e.schemas && s.setState({ schema: e.schemas }), e != null && e.title && a.setModalProps({ title: e.title }), f.value = e[o.infoApiIdKey], e != null && e[o.infoApiIdKey]) {
68
76
  const i = o.infoApi;
69
- if (!c(i)) {
77
+ if (!m(i)) {
70
78
  v(e);
71
79
  return;
72
80
  }
@@ -75,8 +83,8 @@ const De = /* @__PURE__ */ G({
75
83
  const t = {
76
84
  ...o.infoApiParams,
77
85
  [o.infoApiIdKey]: e[o.infoApiIdKey]
78
- }, n = c(o.infoApiBefore) ? await o.infoApiBefore(t) : t, r = await i(n), p = o.dataField ? ee(r, o.dataField) : r, u = c(o.infoApiAfter) ? await o.infoApiAfter(p) : p;
79
- g(u), m("getinfo", u), await y(), await l.resetForm({ values: u });
86
+ }, n = m(o.infoApiBefore) ? await o.infoApiBefore(t) : t, l = await i(n), c = o.dataField ? Z(l, o.dataField) : l, u = m(o.infoApiAfter) ? await o.infoApiAfter(c) : c;
87
+ g(u), p("getinfo", u), await y(), await s.resetForm({ values: u });
80
88
  } finally {
81
89
  a.changeLoading(!1);
82
90
  }
@@ -90,7 +98,7 @@ const De = /* @__PURE__ */ G({
90
98
  function v(e) {
91
99
  const i = e[o.infoDataKey || ""] || {};
92
100
  g(i), y(() => {
93
- l.resetForm({ values: i });
101
+ s.resetForm({ values: i });
94
102
  });
95
103
  }
96
104
  function g(e) {
@@ -100,49 +108,49 @@ const De = /* @__PURE__ */ G({
100
108
  const n = (u = o.checkedOptions) == null ? void 0 : u[t];
101
109
  if (!Array.isArray(n) || n.length === 0)
102
110
  return;
103
- const [r, p] = n.length === 1 ? [n[0], n[0]] : n;
104
- !r || !p || (e[t] = {
105
- label: e[r],
106
- value: e[p]
111
+ const [l, c] = n.length === 1 ? [n[0], n[0]] : n;
112
+ !l || !c || (e[t] = {
113
+ label: e[l],
114
+ value: e[c]
107
115
  });
108
116
  });
109
117
  }
110
118
  async function N() {
111
- const e = await l.getValues(), { apiParams: i } = o;
119
+ const e = await s.getValues(), { apiParams: i } = o;
112
120
  let t = {
113
121
  ...e,
114
122
  ...i
115
123
  };
116
- return t = c(o.saveApiBefore) ? await o.saveApiBefore(t) : t, { reqParams: t, formValue: e };
124
+ return t = m(o.saveApiBefore) ? await o.saveApiBefore(t) : t, { reqParams: t, formValue: e };
117
125
  }
118
126
  async function j(e, i) {
119
127
  const { editApi: t } = o;
120
- !t || !c(t) || (e[o.infoApiIdKey] = f.value, await t(e, i.files), V.success("修改成功"), m("submit", {
128
+ !t || !m(t) || (e[o.infoApiIdKey] = f.value, await t(e, i.files), V.success("修改成功"), p("submit", {
121
129
  ...e,
122
- continuousChecked: s.value
130
+ continuousChecked: r.value
123
131
  }), a.closeModal());
124
132
  }
125
133
  async function U(e, i) {
126
134
  const { addApi: t } = o;
127
- !t || !c(t) || (await t(e, i.files), V.success("新增成功"), m("submit", {
135
+ !t || !m(t) || (await t(e, i.files), V.success("新增成功"), p("submit", {
128
136
  ...e,
129
- continuousChecked: s.value
130
- }), (!s.value || !o.isContinuousChecked) && a.closeModal());
137
+ continuousChecked: r.value
138
+ }), (!r.value || !o.isContinuousChecked) && a.closeModal());
131
139
  }
132
140
  async function q() {
133
141
  a.changeOkLoading(!0);
134
142
  try {
135
- const { valid: e } = await l.validate();
143
+ const { valid: e } = await s.validate();
136
144
  if (!e) return;
137
145
  const { reqParams: i, formValue: t } = await N();
138
146
  if (!i)
139
147
  return;
140
- const { addApi: n, editApi: r } = o;
141
- if (!n && !r) {
142
- m("submit", {
148
+ const { addApi: n, editApi: l } = o;
149
+ if (!n && !l) {
150
+ p("submit", {
143
151
  ...i,
144
152
  [o.infoApiIdKey]: f.value,
145
- continuousChecked: s.value
153
+ continuousChecked: r.value
146
154
  });
147
155
  return;
148
156
  }
@@ -151,7 +159,7 @@ const De = /* @__PURE__ */ G({
151
159
  a.changeOkLoading(!1);
152
160
  }
153
161
  }
154
- return (k = o.getFormApi) == null || k.call(o, l), (w = o.getModalApi) == null || w.call(o, a), Q(
162
+ return (k = o.getFormApi) == null || k.call(o, s), (w = o.getModalApi) == null || w.call(o, a), Q(
155
163
  () => {
156
164
  var e;
157
165
  return (e = a.getVisible) == null ? void 0 : e.value;
@@ -159,17 +167,17 @@ const De = /* @__PURE__ */ G({
159
167
  async (e) => {
160
168
  if (e) {
161
169
  await y();
162
- const i = await l.getValues();
163
- m("fetch", i);
170
+ const i = await s.getValues();
171
+ p("fetch", i);
164
172
  } else
165
- s.value = !1;
173
+ r.value = !1;
166
174
  }
167
175
  ), (e, i) => (M(), C(d(z), null, B({
168
176
  insertFooter: A(() => [
169
177
  o.isContinuousChecked && !f.value ? (M(), C(d(Y), {
170
178
  key: 0,
171
- modelValue: s.value,
172
- "onUpdate:modelValue": i[0] || (i[0] = (t) => s.value = t),
179
+ modelValue: r.value,
180
+ "onUpdate:modelValue": i[0] || (i[0] = (t) => r.value = t),
173
181
  label: "连续添加",
174
182
  size: "small"
175
183
  }, null, 8, ["modelValue"])) : X("", !0)
@@ -197,5 +205,5 @@ const De = /* @__PURE__ */ G({
197
205
  }
198
206
  });
199
207
  export {
200
- De as default
208
+ ze as default
201
209
  };
@@ -1,8 +1,21 @@
1
- import { withInstall as t } from "@dazhicheng/utils";
1
+ import "axios";
2
+ import "element-plus";
3
+ import "dayjs";
4
+ import "vue";
5
+ import { withInstall as t } from "../../packages/utils/src/install.js";
6
+ import "xe-utils";
7
+ import "dayjs/plugin/utc";
8
+ import "dayjs/plugin/timezone";
9
+ import "../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
10
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
11
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
+ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
+ import "lodash-es";
2
15
  import o from "./src/TtNavAnchor.vue.js";
3
16
  /* empty css */
4
- const i = t(o);
17
+ const w = t(o);
5
18
  export {
6
- i as TtNavAnchor,
7
- i as default
19
+ w as TtNavAnchor,
20
+ w as default
8
21
  };