@aplus-frontend/ui 0.5.25 → 0.5.26

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 (193) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  10. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  11. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  12. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  13. package/es/src/ap-field/date/index.vue.mjs +4 -4
  14. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  15. package/es/src/ap-field/index.mjs +36 -36
  16. package/es/src/ap-field/number/index.vue.mjs +8 -8
  17. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  18. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  19. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  20. package/es/src/ap-field/select/index.vue.mjs +2 -2
  21. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  22. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  23. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  24. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  25. package/es/src/ap-field/text/password.vue.mjs +2 -2
  26. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  27. package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
  28. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  29. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  30. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  31. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  32. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  33. package/es/src/ap-form/item/index.vue.mjs +7 -7
  34. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  35. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  41. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  42. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  43. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  44. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  45. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  46. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  47. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  48. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  49. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  50. package/es/src/ap-form/render/item.vue.mjs +2 -2
  51. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  52. package/es/src/ap-form/search-form/index.vue.mjs +2 -2
  53. package/es/src/ap-form/set/index.vue.mjs +1 -1
  54. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  55. package/es/src/ap-grid/editable/form-item.vue.mjs +16 -16
  56. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  57. package/es/src/ap-grid/editable/index.vue.mjs +11 -11
  58. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  59. package/es/src/ap-grid/index.vue.d.ts +2 -4
  60. package/es/src/ap-grid/index.vue.mjs +4 -4
  61. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  62. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  63. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  64. package/es/src/ap-list/index.vue.d.ts +2 -4
  65. package/es/src/ap-list/index.vue.mjs +4 -4
  66. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  67. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  68. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  69. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  70. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  71. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  72. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  73. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  75. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  76. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  77. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  78. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  79. package/es/src/ap-table/constants.d.ts +5 -5
  80. package/es/src/ap-table/constants.mjs +45 -45
  81. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  82. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  83. package/es/src/ap-table/utils.d.ts +5 -5
  84. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  85. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  86. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  87. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  88. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  89. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  90. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  91. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  92. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  93. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  94. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  95. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  96. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  97. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  98. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  99. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  100. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  101. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  102. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  103. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  104. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  105. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  106. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  107. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  108. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  109. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  110. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  111. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
  112. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +4 -4
  113. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +13 -13
  114. package/es/src/business/ap-ladder/utils.mjs +1 -1
  115. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  116. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  117. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  118. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  119. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  120. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  121. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  122. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  123. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  124. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  125. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  126. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  127. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  128. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  129. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  130. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  131. package/es/src/check-card/index.vue2.mjs +3 -3
  132. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  133. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  134. package/es/src/editable-table/form-item.vue.mjs +83 -83
  135. package/es/src/editable-table/index.vue.d.ts +2 -4
  136. package/es/src/editable-table/index.vue.mjs +84 -79
  137. package/es/src/full-screen/index.vue.mjs +3 -3
  138. package/es/src/hooks/useFullScreen.mjs +5 -5
  139. package/es/src/mask/index.vue.mjs +10 -10
  140. package/es/src/portal/index.vue.mjs +2 -2
  141. package/es/src/scroll-bar/index.vue.mjs +3 -3
  142. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  143. package/es/src/scroll-view/index.vue.d.ts +5 -5
  144. package/es/src/scroll-view/index.vue.mjs +9 -9
  145. package/es/src/tests/wrapper.d.ts +4 -4
  146. package/es/src/text/group.vue.mjs +2 -2
  147. package/es/src/text/index.vue.mjs +4 -4
  148. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  149. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  150. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  151. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  152. package/lib/src/ap-field/index.js +1 -1
  153. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  154. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  155. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  156. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  157. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  158. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  159. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  160. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  161. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  162. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  163. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  164. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  165. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  166. package/lib/src/ap-list/index.vue.d.ts +2 -4
  167. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  168. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  169. package/lib/src/ap-table/constants.d.ts +5 -5
  170. package/lib/src/ap-table/constants.js +1 -1
  171. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  172. package/lib/src/ap-table/utils.d.ts +5 -5
  173. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  174. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  175. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  176. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  177. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  178. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  179. package/lib/src/business/ap-ladder/utils.js +1 -1
  180. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  181. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  182. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  183. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  184. package/lib/src/editable-table/form-item.vue.js +1 -1
  185. package/lib/src/editable-table/index.vue.d.ts +2 -4
  186. package/lib/src/editable-table/index.vue.js +1 -1
  187. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  188. package/lib/src/tests/wrapper.d.ts +4 -4
  189. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  190. package/package.json +3 -3
  191. package/theme/ap-grid/index.css +4 -3
  192. package/theme/ap-grid/index.less +4 -3
  193. package/theme/index.css +4 -3
@@ -1,16 +1,16 @@
1
- import { defineComponent as W, useSlots as $, ref as w, watch as C, unref as o, openBlock as q, createBlock as J, withCtx as c, createVNode as b, mergeProps as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as ee, guardReactiveProps as te } from "vue";
1
+ import { defineComponent as $, useSlots as q, ref as w, watch as y, unref as s, createBlock as J, openBlock as Q, withCtx as h, createVNode as C, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
2
  import { Table as ae } from "@aplus-frontend/antdv";
3
- import { ApForm as p } from "../ap-form/index.mjs";
4
- import { isEqual as ne, isArray as R, isNumber as x, cloneDeep as h, omit as F } from "lodash-unified";
3
+ import { ApForm as x } from "../ap-form/index.mjs";
4
+ import { isEqual as ne, isArray as b, isUndefined as oe, isNumber as g, cloneDeep as le, omit as R } from "lodash-unified";
5
5
  import "../config-provider/index.mjs";
6
6
  import "../hooks/index.mjs";
7
- import { isDef as g } from "../utils/index.mjs";
8
- import { scrollToRowIndex as oe } from "./utils.mjs";
9
- import le from "./hooks/use-get-columns.mjs";
7
+ import { isDef as F } from "../utils/index.mjs";
8
+ import { scrollToRowIndex as ue } from "./utils.mjs";
9
+ import se from "./hooks/use-get-columns.mjs";
10
10
  import { useNamespace as re } from "../config-provider/hooks/use-namespace.mjs";
11
- import { useControllableValue as ue } from "../hooks/useControllableValue.mjs";
12
- import { useGlobalConfig as se } from "../config-provider/hooks/use-global-config.mjs";
13
- const Ce = /* @__PURE__ */ W({
11
+ import { useControllableValue as ie } from "../hooks/useControllableValue.mjs";
12
+ import { useGlobalConfig as de } from "../config-provider/hooks/use-global-config.mjs";
13
+ const Re = /* @__PURE__ */ $({
14
14
  name: "EditableTable",
15
15
  __name: "index",
16
16
  props: {
@@ -111,126 +111,131 @@ const Ce = /* @__PURE__ */ W({
111
111
  emits: ["update:value"],
112
112
  setup(B, {
113
113
  expose: V,
114
- emit: D
114
+ emit: T
115
115
  }) {
116
116
  const n = B, {
117
117
  b: L
118
- } = re("editable-table"), T = $(), _ = D, v = w(), {
119
- value: u,
118
+ } = re("editable-table"), _ = q(), D = T, v = w(), {
119
+ value: m,
120
120
  updateValue: E
121
- } = ue(n, _), s = w(), N = se("valueTypeMap"), m = p.useWatch(n.name, s);
122
- C(() => m.value, (e) => {
121
+ } = ie(n, D), i = w(), N = de("valueTypeMap"), c = x.useWatch(n.name, i);
122
+ y(() => c.value, (e) => {
123
123
  var t;
124
124
  E(e), (t = n.onChange) == null || t.call(n, e);
125
125
  }, {
126
- deep: !0
127
- }), C(u, (e) => {
126
+ deep: !0,
127
+ flush: "post"
128
+ }), y(m, (e) => {
128
129
  var t;
129
- e !== o(m) && (ne(e, o(m)) || (t = s.value) == null || t.setFieldValue(n.name, e));
130
+ e !== s(c) && (ne(e, s(c)) || (t = i.value) == null || t.setFieldValue(n.name, e));
130
131
  }, {
131
132
  deep: !0
132
133
  });
133
- const k = le(n, N);
134
- function A() {
134
+ const S = se(n, N);
135
+ function k() {
135
136
  var e;
136
- (e = s.value) == null || e.resetFields();
137
+ (e = i.value) == null || e.resetFields();
137
138
  }
138
- function S(e) {
139
- return e ? (R(e) ? e : [e]).map((l) => R(l) ? [n.name, ...l] : [n.name, l]) : void 0;
139
+ function A(e) {
140
+ return e ? (b(e) ? e : [e]).map((o) => b(o) ? [n.name, ...o] : [n.name, o]) : void 0;
140
141
  }
141
- async function P(e, t) {
142
+ async function I(e, t) {
142
143
  var a;
143
- const l = await ((a = s.value) == null ? void 0 : a.validateFields(S(e), t));
144
- return l == null ? void 0 : l[n.name];
144
+ const o = await ((a = i.value) == null ? void 0 : a.validateFields(A(e), t));
145
+ return o == null ? void 0 : o[n.name];
145
146
  }
146
- function j(e, t) {
147
- var r, d, i;
148
- const l = ((r = o(u)) == null ? void 0 : r.length) || 0;
149
- if (g(n.maxLength) && l >= n.maxLength)
147
+ function P(e, t) {
148
+ var l, u, r;
149
+ const o = ((l = s(m)) == null ? void 0 : l.length) || 0;
150
+ if (F(n.maxLength) && o >= n.maxLength)
150
151
  return;
151
- const a = [...o(u) || []];
152
- g(t) ? a.splice(t, 0, {
153
- ...e || {}
154
- }) : a.push({
152
+ const a = {
155
153
  ...e || {}
156
- }), (i = (d = s.value) == null ? void 0 : d.setFieldValue) == null || i.call(d, n.name, a);
154
+ };
155
+ (r = (u = i.value) == null ? void 0 : u.setFieldValue) == null || r.call(u, n.name, a, !0, (d, f) => {
156
+ d[f] || (d[f] = [a]), oe(t) ? d[f].push(a) : d[f].splice(t, 0, a);
157
+ });
157
158
  }
158
- function z(e, t = "suffix") {
159
- var i, f, y;
160
- const l = ((i = o(u)) == null ? void 0 : i.length) || 0, a = x(e) ? e : e.length;
161
- if (g(n.maxLength) && l + a > n.maxLength)
159
+ function j(e, t = "suffix") {
160
+ var u, r, d;
161
+ const o = ((u = s(m)) == null ? void 0 : u.length) || 0, a = g(e) ? e : e.length;
162
+ if (F(n.maxLength) && o + a > n.maxLength)
162
163
  return;
163
- const r = [...o(u) || []], d = x(e) ? new Array(e).fill({}) : h(e);
164
- t === "suffix" ? r.push(...d) : r.unshift(...d), (y = (f = s.value) == null ? void 0 : f.setFieldValue) == null || y.call(f, n.name, r);
164
+ const l = g(e) ? new Array(e).fill({}) : le(e);
165
+ (d = (r = i.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, n.name, l, !0, (f, p) => {
166
+ f[p] || (f[p] = [...l]), t === "suffix" ? f[p].push(...l) : f[p].unshift(...l);
167
+ });
165
168
  }
166
- function I(e) {
167
- var a, r;
168
- let t = h(o(u) || []);
169
- const l = x(e) ? [e] : e;
170
- t = t.filter((d, i) => !l.includes(i)), (r = (a = s.value) == null ? void 0 : a.setFieldValue) == null || r.call(a, n.name, t);
169
+ function z(e) {
170
+ var o, a;
171
+ const t = new Set(g(e) ? [e] : e);
172
+ (a = (o = i.value) == null ? void 0 : o.setFieldValue) == null || a.call(o, n.name, void 0, !0, (l, u) => {
173
+ l[u] = l[u].filter((r, d) => !t.has(d));
174
+ });
171
175
  }
172
176
  function O() {
173
- return o(u);
177
+ return s(m);
174
178
  }
175
179
  function K(e) {
176
180
  var t;
177
- (t = s.value) == null || t.setFieldValue(n.name, e);
181
+ (t = i.value) == null || t.setFieldValue(n.name, e);
178
182
  }
179
- function M(e) {
183
+ function U(e) {
180
184
  var t;
181
- return (t = o(u)) == null ? void 0 : t[e];
185
+ return (t = s(m)) == null ? void 0 : t[e];
182
186
  }
183
- function G(e, t, l = !0) {
184
- var r, d;
185
- const a = h(o(u));
186
- a[e] && (a[e] = {
187
- ...l ? a[e] : {},
188
- ...t
189
- }, (d = (r = s.value) == null ? void 0 : r.setFieldValue) == null || d.call(r, n.name, [...a]));
187
+ function G(e, t, o = !0) {
188
+ var a, l;
189
+ (l = (a = i.value) == null ? void 0 : a.setFieldValue) == null || l.call(a, n.name, void 0, !0, (u, r) => {
190
+ !u[r] || !u[r][e] || (u[r][e] = {
191
+ ...o ? u[r][e] : {},
192
+ ...t
193
+ });
194
+ });
190
195
  }
191
196
  function H(e, t) {
192
197
  var a;
193
- const l = e === "end" ? u.value.length - 1 : e;
194
- oe(l, (a = v.value) == null ? void 0 : a.$el, t);
198
+ const o = e === "end" ? m.value.length - 1 : e;
199
+ ue(o, (a = v.value) == null ? void 0 : a.$el, t);
195
200
  }
196
- function U() {
201
+ function W() {
197
202
  var e, t;
198
- (t = (e = s.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, n.name, []);
203
+ (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, n.name, []);
199
204
  }
200
205
  return V({
201
- resetFields: A,
202
- validateFields: P,
203
- add: j,
204
- remove: I,
205
- getRowData: M,
206
+ resetFields: k,
207
+ validateFields: I,
208
+ add: P,
209
+ remove: z,
210
+ getRowData: U,
206
211
  getRowsData: O,
207
212
  setRowData: G,
208
- addMultiple: z,
213
+ addMultiple: j,
209
214
  scrollTo: H,
210
- clear: U,
215
+ clear: W,
211
216
  setTableData: K
212
- }), (e, t) => (q(), J(o(p), {
217
+ }), (e, t) => (Q(), J(s(x), {
213
218
  ref_key: "formRef",
214
- ref: s,
219
+ ref: i,
215
220
  "initial-values": {
216
- [n.name]: o(u)
221
+ [n.name]: s(m)
217
222
  }
218
223
  }, {
219
- default: c(() => [b(o(p).FormItem, {
224
+ default: h(() => [C(s(x).FormItem, {
220
225
  name: e.name,
221
226
  "no-style": ""
222
227
  }, {
223
- default: c(() => [b(o(ae), Q(o(F)(n, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
228
+ default: h(() => [C(s(ae), X(s(R)(n, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
224
229
  ref_key: "tableRef",
225
230
  ref: v,
226
- class: o(L)(),
227
- columns: o(k),
228
- "data-source": o(u)
229
- }), X({
231
+ class: s(L)(),
232
+ columns: s(S),
233
+ "data-source": s(m)
234
+ }), Y({
230
235
  _: 2
231
- }, [Y(o(F)(T, ["headerCell"]), (l, a) => ({
236
+ }, [Z(s(R)(_, ["headerCell"]), (o, a) => ({
232
237
  name: a,
233
- fn: c((r) => [Z(e.$slots, a, ee(te(r || {})))])
238
+ fn: h((l) => [M(e.$slots, a, ee(te(l || {})))])
234
239
  }))]), 1040, ["class", "columns", "data-source"])]),
235
240
  _: 3
236
241
  }, 8, ["name"])]),
@@ -239,5 +244,5 @@ const Ce = /* @__PURE__ */ W({
239
244
  }
240
245
  });
241
246
  export {
242
- Ce as default
247
+ Re as default
243
248
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as R, ref as i, watch as E, unref as a, computed as n, openBlock as m, createBlock as d, withCtx as v, resolveDynamicComponent as z, mergeProps as C, renderSlot as F, createElementVNode as N, normalizeClass as S } from "vue";
1
+ import { defineComponent as R, ref as i, watch as E, unref as a, computed as n, createBlock as m, openBlock as d, withCtx as v, resolveDynamicComponent as z, mergeProps as C, renderSlot as F, createElementVNode as N, normalizeClass as S } from "vue";
2
2
  import "../hooks/index.mjs";
3
3
  import "../portal/index.mjs";
4
4
  import "../config-provider/index.mjs";
@@ -43,12 +43,12 @@ const H = /* @__PURE__ */ R({
43
43
  enter: o,
44
44
  exit: s,
45
45
  toggle: c
46
- }), (e, r) => (m(), d(a(B), {
46
+ }), (e, r) => (d(), m(a(B), {
47
47
  to: "body",
48
48
  disabled: l.value !== "window"
49
49
  }, {
50
50
  default: v(() => [
51
- (m(), d(z(e.wrapperElementName), C({
51
+ (d(), m(z(e.wrapperElementName), C({
52
52
  ref_key: "target",
53
53
  ref: f
54
54
  }, e.$attrs, {
@@ -1,5 +1,5 @@
1
1
  import { isClient as d } from "@vueuse/core";
2
- import { computed as c, unref as u, isRef as v, ref as f, watch as p } from "vue";
2
+ import { ref as c, computed as f, isRef as v, unref as u, watch as p } from "vue";
3
3
  const a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new Set();
4
4
  d && document.addEventListener("fullscreenchange", () => {
5
5
  if (o.forEach((e) => e.value = !1), document.fullscreenElement) {
@@ -9,13 +9,13 @@ d && document.addEventListener("fullscreenchange", () => {
9
9
  e && (e.value = !0);
10
10
  }
11
11
  });
12
- const E = (e = f(null)) => {
13
- const i = c({
12
+ const E = (e = c(null)) => {
13
+ const i = f({
14
14
  get: () => u(e),
15
15
  set: (t) => {
16
16
  v(e) && (e.value = t);
17
17
  }
18
- }), l = f(!1);
18
+ }), l = c(!1);
19
19
  o.add(l), p(
20
20
  () => e.value,
21
21
  (t, n) => {
@@ -40,7 +40,7 @@ const E = (e = f(null)) => {
40
40
  }
41
41
  return {
42
42
  target: i,
43
- full: c(() => u(l)),
43
+ full: f(() => u(l)),
44
44
  enter: r,
45
45
  exit: s,
46
46
  toggle: m
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, ref as m, watch as v, watchEffect as A, onMounted as M, onUnmounted as O, openBlock as y, createBlock as x, Teleport as P, createElementVNode as r, normalizeClass as d, unref as o, normalizeStyle as k, createVNode as C, Transition as b, withCtx as h, createElementBlock as T, renderSlot as B, createCommentVNode as i } from "vue";
1
+ import { defineComponent as g, ref as m, watch as v, watchEffect as A, onMounted as M, onUnmounted as O, createBlock as x, createCommentVNode as r, openBlock as y, Teleport as P, createElementVNode as d, normalizeStyle as k, unref as o, normalizeClass as i, createVNode as C, Transition as b, withCtx as h, createElementBlock as T, renderSlot as B } from "vue";
2
2
  import "../hooks/index.mjs";
3
3
  import "../config-provider/index.mjs";
4
4
  import { getMaskZIndex as U, lockScrollable as $ } from "./utils.mjs";
@@ -68,10 +68,10 @@ const J = /* @__PURE__ */ g({
68
68
  key: 0,
69
69
  to: "body"
70
70
  }, [
71
- r("div", {
71
+ d("div", {
72
72
  ref_key: "wrapper",
73
73
  ref: p,
74
- class: d(o(z)()),
74
+ class: i(o(z)()),
75
75
  style: k({ zIndex: o(N), visibility: l.value ? void 0 : "hidden" })
76
76
  }, [
77
77
  C(b, {
@@ -82,19 +82,19 @@ const J = /* @__PURE__ */ g({
82
82
  default: h(() => [
83
83
  o(a) ? (y(), T("div", {
84
84
  key: 0,
85
- class: d([o(u)("mask"), { [o(I)("mask", "disabled")]: e.disabled }]),
85
+ class: i([o(u)("mask"), { [o(I)("mask", "disabled")]: e.disabled }]),
86
86
  onClick: _
87
87
  }, [
88
88
  B(e.$slots, "mask", {}, () => [
89
- r("div", {
90
- class: d(o(u)("mask-inner"))
89
+ d("div", {
90
+ class: i(o(u)("mask-inner"))
91
91
  }, null, 2)
92
92
  ])
93
- ], 2)) : i("", !0)
93
+ ], 2)) : r("", !0)
94
94
  ]),
95
95
  _: 3
96
96
  }, 8, ["name"]),
97
- r("div", {
97
+ d("div", {
98
98
  style: k(e.contentStyle)
99
99
  }, [
100
100
  C(b, {
@@ -102,13 +102,13 @@ const J = /* @__PURE__ */ g({
102
102
  name: o(c)()
103
103
  }, {
104
104
  default: h(() => [
105
- o(a) ? B(e.$slots, "default", { key: 0 }) : i("", !0)
105
+ o(a) ? B(e.$slots, "default", { key: 0 }) : r("", !0)
106
106
  ]),
107
107
  _: 3
108
108
  }, 8, ["name"])
109
109
  ], 4)
110
110
  ], 6)
111
- ])) : i("", !0);
111
+ ])) : r("", !0);
112
112
  }
113
113
  });
114
114
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, openBlock as n, createBlock as p, Teleport as a, mergeProps as l, renderSlot as s } from "vue";
1
+ import { defineComponent as r, createBlock as n, openBlock as p, Teleport as a, mergeProps as l, renderSlot as s } from "vue";
2
2
  const m = /* @__PURE__ */ r({
3
3
  name: "Portal",
4
4
  __name: "index",
@@ -9,7 +9,7 @@ const m = /* @__PURE__ */ r({
9
9
  },
10
10
  setup(o) {
11
11
  const t = o;
12
- return (e, d) => (n(), p(a, l(t, {
12
+ return (e, d) => (p(), n(a, l(t, {
13
13
  to: e.to || "body"
14
14
  }), [
15
15
  s(e.$slots, "default")
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s, openBlock as k, createBlock as C, mergeProps as B, createCommentVNode as L } from "vue";
1
+ import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s, createBlock as k, createCommentVNode as C, openBlock as B, mergeProps as L } from "vue";
2
2
  import "./internal.vue2.mjs";
3
3
  import { omit as R } from "lodash-unified";
4
4
  import { getScrollable as u, ensureRangeValue as w } from "./utils/index.mjs";
@@ -79,14 +79,14 @@ const W = /* @__PURE__ */ z({
79
79
  var e;
80
80
  return a((e = l.value) == null ? void 0 : e.container);
81
81
  })
82
- }), (e, t) => n.value !== 100 ? (k(), C(E, B({
82
+ }), (e, t) => n.value !== 100 ? (B(), k(E, L({
83
83
  key: 0,
84
84
  ref_key: "barRef",
85
85
  ref: l
86
86
  }, a(R)(r, ["onScroll", "extraSize", "scrollContainer"]), {
87
87
  "bar-length": n.value,
88
88
  onScroll: d
89
- }), null, 16, ["bar-length"])) : L("", !0);
89
+ }), null, 16, ["bar-length"])) : C("", !0);
90
90
  }
91
91
  });
92
92
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, ref as f, toRef as h, watch as W, watchEffect as z, unref as o, openBlock as A, createElementBlock as N, normalizeClass as m, normalizeStyle as U, createElementVNode as L } from "vue";
1
+ import { defineComponent as V, ref as f, toRef as h, watch as W, watchEffect as z, unref as o, createElementBlock as A, openBlock as N, normalizeStyle as U, normalizeClass as m, createElementVNode as L } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import { useTrack as X } from "./hooks/use-track.mjs";
4
4
  import { ensureRangeValue as C } from "./utils/index.mjs";
@@ -88,7 +88,7 @@ const I = /* @__PURE__ */ V({
88
88
  bar: l,
89
89
  track: c,
90
90
  scroll: $
91
- }), (e, n) => (A(), N("div", {
91
+ }), (e, n) => (N(), A("div", {
92
92
  ref_key: "container",
93
93
  ref: k,
94
94
  class: m([o(B)(), o(P)(e.direction)]),
@@ -1,5 +1,5 @@
1
1
  import { ScrollOptions, ScrollViewProps } from './interface';
2
- import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
2
+ import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
3
3
  import { CreateComponentPublicInstanceWithMixins, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
4
4
  declare function scroll(x?: number, y?: number): void;
5
5
  declare function scrollTo({ smooth, left, top }: ScrollOptions): void;
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
106
106
  onScroll?: ((percent: number) => void) | undefined;
107
107
  disabled?: boolean | undefined;
108
108
  trackSpeed?: number | undefined;
109
- barColor?: ColorType;
110
- trackColor?: ColorType;
109
+ barColor?: import("csstype").Property.BackgroundColor | undefined;
110
+ trackColor?: import("csstype").Property.BackgroundColor | undefined;
111
111
  trackWidth?: number | undefined;
112
112
  showTrack?: boolean | undefined;
113
113
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
118
118
  onScroll?: ((percent: number) => void) | undefined;
119
119
  disabled?: boolean | undefined;
120
120
  trackSpeed?: number | undefined;
121
- barColor?: ColorType;
122
- trackColor?: ColorType;
121
+ barColor?: import("csstype").Property.BackgroundColor | undefined;
122
+ trackColor?: import("csstype").Property.BackgroundColor | undefined;
123
123
  trackWidth?: number | undefined;
124
124
  showTrack?: boolean | undefined;
125
125
  onScrollStart?: ((percent: number) => void) | undefined;
@@ -1,4 +1,4 @@
1
- import { defineComponent as fe, ref as ue, reactive as he, computed as v, unref as l, watchEffect as _, watch as pe, openBlock as P, createElementBlock as ye, normalizeClass as B, normalizeStyle as M, withModifiers as A, createElementVNode as z, renderSlot as me, createBlock as L, mergeProps as O, createCommentVNode as T } from "vue";
1
+ import { defineComponent as fe, ref as ue, reactive as he, computed as v, unref as l, watchEffect as _, watch as pe, createElementBlock as ye, openBlock as P, withModifiers as M, normalizeStyle as A, normalizeClass as B, createElementVNode as z, renderSlot as me, createBlock as L, createCommentVNode as O, mergeProps as T } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import "../scroll-bar/index.mjs";
4
4
  import { isDef as f } from "../utils/index.mjs";
@@ -206,10 +206,10 @@ const Ye = /* @__PURE__ */ fe({
206
206
  ref_key: "containerRef",
207
207
  ref: s,
208
208
  class: B(l(J)()),
209
- style: M(oe.value),
209
+ style: A(oe.value),
210
210
  onWheel: [
211
- A(ae, ["exact"]),
212
- A(le, ["shift"])
211
+ M(ae, ["exact"]),
212
+ M(le, ["shift"])
213
213
  ]
214
214
  }, [
215
215
  z("div", {
@@ -221,21 +221,21 @@ const Ye = /* @__PURE__ */ fe({
221
221
  ], 2),
222
222
  z("div", {
223
223
  class: B([l(w)("bar-wrapper"), l(W)("bar-wrapper", "vertical")]),
224
- style: M(`height: calc(100% - ${m.value ? t.xBarProps.trackWidth || 10 : 0}px)`)
224
+ style: A(`height: calc(100% - ${m.value ? t.xBarProps.trackWidth || 10 : 0}px)`)
225
225
  }, [
226
- x.value ? (P(), L(l(H), O({
226
+ x.value ? (P(), L(l(H), T({
227
227
  key: 0,
228
228
  ref_key: "yBarRef",
229
229
  ref: Q
230
230
  }, t.yBarProps, {
231
231
  "bar-length": c.y,
232
232
  onScroll: e[0] || (e[0] = (a) => X(a, "vertical"))
233
- }), null, 16, ["bar-length"])) : T("", !0)
233
+ }), null, 16, ["bar-length"])) : O("", !0)
234
234
  ], 6),
235
235
  z("div", {
236
236
  class: B([l(w)("bar-wrapper"), l(W)("bar-wrapper", "horizontal")])
237
237
  }, [
238
- m.value ? (P(), L(l(H), O({
238
+ m.value ? (P(), L(l(H), T({
239
239
  key: 0,
240
240
  ref_key: "xBarRef",
241
241
  ref: K
@@ -243,7 +243,7 @@ const Ye = /* @__PURE__ */ fe({
243
243
  direction: "horizontal",
244
244
  "bar-length": c.x,
245
245
  onScroll: e[1] || (e[1] = (a) => X(a, "horizontal"))
246
- }), null, 16, ["bar-length"])) : T("", !0)
246
+ }), null, 16, ["bar-length"])) : O("", !0)
247
247
  ], 2)
248
248
  ], 38));
249
249
  }
@@ -1,8 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  export declare const Wrapper: DefineComponent<{
3
- uiMode?: ("admin" | "aplus") | undefined;
4
- lang?: ("en" | "zh-cn") | undefined;
3
+ uiMode?: "admin" | "aplus" | undefined;
4
+ lang?: "en" | "zh-cn" | undefined;
5
5
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
6
- uiMode?: ("admin" | "aplus") | undefined;
7
- lang?: ("en" | "zh-cn") | undefined;
6
+ uiMode?: "admin" | "aplus" | undefined;
7
+ lang?: "en" | "zh-cn" | undefined;
8
8
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, toRef as t, openBlock as p, createBlock as c, unref as o, mergeProps as s, withCtx as f, renderSlot as u } from "vue";
1
+ import { defineComponent as n, toRef as t, createBlock as p, openBlock as c, unref as o, mergeProps as s, withCtx as f, renderSlot as u } from "vue";
2
2
  import { useProvideApTextGroup as d } from "./context.mjs";
3
3
  import "../config-provider/index.mjs";
4
4
  import { Space as m } from "@aplus-frontend/antdv";
@@ -22,7 +22,7 @@ const z = /* @__PURE__ */ n({
22
22
  colon: t(e.colon),
23
23
  vertical: t(e.vertical),
24
24
  labelStyle: t(e.labelStyle)
25
- }), (l, b) => (p(), c(o(m), s({
25
+ }), (l, b) => (c(), p(o(m), s({
26
26
  class: [o(r)(), l.direction === "horizontal" ? o(i)("horizontal") : null]
27
27
  }, o(v)(e, ["colon", "vertical", "labelStyle"])), {
28
28
  default: f(() => [
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, useSlots as L, computed as r, unref as l, isVNode as O, createVNode as $, Fragment as z, openBlock as t, createElementBlock as c, normalizeClass as s, normalizeStyle as D, createBlock as u, resolveDynamicComponent as E, createCommentVNode as b, createElementVNode as U, mergeProps as v, withCtx as m, renderSlot as i, createSlots as w, createTextVNode as F, toDisplayString as G, renderList as I, normalizeProps as R, guardReactiveProps as q } from "vue";
1
+ import { defineComponent as A, useSlots as L, computed as r, unref as l, createVNode as O, isVNode as $, Fragment as z, createElementBlock as c, openBlock as t, normalizeClass as s, createCommentVNode as b, createElementVNode as D, normalizeStyle as E, createBlock as u, resolveDynamicComponent as U, mergeProps as v, withCtx as m, renderSlot as i, createSlots as w, createTextVNode as F, toDisplayString as G, renderList as I, normalizeProps as R, guardReactiveProps as q } from "vue";
2
2
  import { TypographyLink as H, TypographyText as J } from "@aplus-frontend/antdv";
3
3
  import { isUndefined as d, isString as K, omit as C } from "lodash-unified";
4
4
  import "../config-provider/index.mjs";
@@ -78,7 +78,7 @@ const oe = /* @__PURE__ */ A({
78
78
  return Object.assign(e, o.labelStyle || {}), e;
79
79
  }), y = r(() => {
80
80
  if (o.label)
81
- return O(o.label) ? o.label : $(z, null, [o.label]);
81
+ return $(o.label) ? o.label : O(z, null, [o.label]);
82
82
  });
83
83
  return (e, W) => (t(), c("div", {
84
84
  class: s([l(g)(), {
@@ -89,8 +89,8 @@ const oe = /* @__PURE__ */ A({
89
89
  class: s([l(p)("label"), {
90
90
  [l(S)("label", "no-colon")]: !V.value
91
91
  }]),
92
- style: D(j.value)
93
- }, [(t(), u(E(y.value)))], 6)) : b("", !0), U("div", {
92
+ style: E(j.value)
93
+ }, [(t(), u(U(y.value)))], 6)) : b("", !0), D("div", {
94
94
  class: s(l(p)("content"))
95
95
  }, [e.link ? (t(), u(l(H), v({
96
96
  key: 0
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, openBlock as s, createBlock as a, unref as o, withCtx as r, createElementVNode as t, toDisplayString as i, createVNode as d } from "vue";
1
+ import { defineComponent as n, createBlock as s, openBlock as a, unref as o, withCtx as r, createVNode as d, createElementVNode as t, toDisplayString as i } from "vue";
2
2
  import { QuestionCircleOutlined as p } from "@ant-design/icons-vue";
3
3
  import { Tooltip as m } from "@aplus-frontend/antdv";
4
4
  import "../config-provider/index.mjs";
@@ -7,7 +7,7 @@ const u = { class: "title" }, c = { class: "flex" }, _ = { class: "flex" }, w =
7
7
  __name: "help-message",
8
8
  setup(x) {
9
9
  const { t: l } = f();
10
- return (v, e) => (s(), a(o(m), { placement: "right" }, {
10
+ return (v, e) => (a(), s(o(m), { placement: "right" }, {
11
11
  title: r(() => [
12
12
  t("div", u, [
13
13
  t("div", c, [
@@ -1,14 +1,13 @@
1
1
  import { WorkOrderModalProps } from './interfaces';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
3
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
4
+ import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
5
  import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
6
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
7
7
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
8
8
  import { Options } from '../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../node_modules/vue-types';
11
- import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
12
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
13
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '..';
14
13
  import { OnCleanup } from '@vue/reactivity';
@@ -113,7 +112,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
113
112
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
114
113
  readonly initialValues?: Recordable | undefined;
115
114
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
116
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
115
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
117
116
  readonly syncToUrlPriority?: boolean | undefined;
118
117
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
119
118
  $attrs: {
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, ref as g, computed as M, openBlock as N, createElementBlock as L, createVNode as t, unref as e, mergeProps as P, withCtx as n, h as q } from "vue";
1
+ import { defineComponent as F, ref as g, computed as M, createElementBlock as N, openBlock as L, createVNode as t, unref as e, mergeProps as P, withCtx as n, h as q } from "vue";
2
2
  import { message as E, Modal as I, Input as A, Textarea as V } from "@aplus-frontend/antdv";
3
3
  import { ApForm as c } from "../ap-form/index.mjs";
4
4
  import "./help-message.vue.mjs";
@@ -86,7 +86,7 @@ const pe = /* @__PURE__ */ F({
86
86
  console.log(i.value);
87
87
  }, 500), m("modalClose");
88
88
  };
89
- return (r, a) => (N(), L("div", null, [
89
+ return (r, a) => (L(), N("div", null, [
90
90
  t(e(I), P(s, {
91
91
  width: 600,
92
92
  centered: !0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const f=require("@aplus-frontend/icon");require("../../config-provider/index.js");const s=require("lodash-unified"),m=require("../../config-provider/hooks/use-namespace.js"),_=require("../item-modal/index.vue.js"),g=require("../item-popconfirm/index.vue.js"),i=require("../item/index.vue2.js"),k=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1}},setup(c){const a=c,n=e.ref(!1),{e:l}=m.useNamespace("action-item-dropdown"),p=e.computed(()=>a.actions.filter(r=>r.visible||s.isUndefined(r.visible)).map(r=>({...r,onAction:async o=>{var t;try{await((t=r.onAction)==null?void 0:t.call(r,o))}finally{n.value=!1}}})));return(r,o)=>(e.openBlock(),e.createBlock(e.unref(u.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=t=>n.value=t),trigger:r.trigger,placement:r.placement},{overlay:e.withCtx(()=>[e.createVNode(e.unref(u.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t,d)=>(e.openBlock(),e.createBlock(e.unref(u.MenuItem),{key:d,class:e.normalizeClass(e.unref(l)("item"))},{default:e.withCtx(()=>[t.modalProps?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:0,ref_for:!0},t),null,16)):t.popconfirmProps?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:1,ref_for:!0},t),null,16)):(e.openBlock(),e.createBlock(i.default,e.mergeProps({key:2,ref_for:!0},t),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("wrapper"))},[e.createVNode(i.default,e.normalizeProps(e.guardReactiveProps(e.unref(s.omit)(a,["actions","trigger","placement"]))),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16),r.showIcon?(e.openBlock(),e.createBlock(e.unref(f.IconApAdLineDown),{key:0,class:e.normalizeClass(e.unref(l)("icon"))},null,8,["class"])):e.createCommentVNode("",!0)],2)]),_:3},8,["open","trigger","placement"]))}});exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const f=require("@aplus-frontend/icon");require("../../config-provider/index.js");const s=require("lodash-unified"),m=require("../../config-provider/hooks/use-namespace.js"),i=require("../item/index.vue2.js"),_=require("../item-modal/index.vue.js"),g=require("../item-popconfirm/index.vue.js"),k=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1}},setup(c){const a=c,n=e.ref(!1),{e:l}=m.useNamespace("action-item-dropdown"),p=e.computed(()=>a.actions.filter(r=>r.visible||s.isUndefined(r.visible)).map(r=>({...r,onAction:async o=>{var t;try{await((t=r.onAction)==null?void 0:t.call(r,o))}finally{n.value=!1}}})));return(r,o)=>(e.openBlock(),e.createBlock(e.unref(u.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=t=>n.value=t),trigger:r.trigger,placement:r.placement},{overlay:e.withCtx(()=>[e.createVNode(e.unref(u.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(t,d)=>(e.openBlock(),e.createBlock(e.unref(u.MenuItem),{key:d,class:e.normalizeClass(e.unref(l)("item"))},{default:e.withCtx(()=>[t.modalProps?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:0,ref_for:!0},t),null,16)):t.popconfirmProps?(e.openBlock(),e.createBlock(g.default,e.mergeProps({key:1,ref_for:!0},t),null,16)):(e.openBlock(),e.createBlock(i.default,e.mergeProps({key:2,ref_for:!0},t),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l)("wrapper"))},[e.createVNode(i.default,e.normalizeProps(e.guardReactiveProps(e.unref(s.omit)(a,["actions","trigger","placement"]))),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16),r.showIcon?(e.openBlock(),e.createBlock(e.unref(f.IconApAdLineDown),{key:0,class:e.normalizeClass(e.unref(l)("icon"))},null,8,["class"])):e.createCommentVNode("",!0)],2)]),_:3},8,["open","trigger","placement"]))}});exports.default=k;