@aplus-frontend/ui 0.4.0 → 0.4.2

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 (118) hide show
  1. package/es/src/ap-field/number/index.vue.d.ts +322 -1
  2. package/es/src/ap-field/radio/index.vue.d.ts +98 -2
  3. package/es/src/ap-field/rate/index.vue.d.ts +82 -1
  4. package/es/src/ap-field/segmented/index.vue.d.ts +1 -7
  5. package/es/src/ap-field/select/index.vue.d.ts +423 -1
  6. package/es/src/ap-field/select/index.vue.mjs +4 -3
  7. package/es/src/ap-field/slider/index.vue.d.ts +257 -1
  8. package/es/src/ap-field/text/index.vue.d.ts +1 -13
  9. package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
  10. package/es/src/ap-form/ap-form.vue.d.ts +636 -1
  11. package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  12. package/es/src/ap-form/item/index.vue.d.ts +777 -1
  13. package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
  14. package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
  15. package/es/src/ap-form/items/text/index.vue.d.ts +128 -15
  16. package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
  17. package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  19. package/es/src/ap-form/modal-form/index.vue.mjs +77 -75
  20. package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
  21. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  22. package/es/src/ap-list/index.vue.d.ts +1 -1
  23. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  24. package/es/src/ap-scroll-bar/index.d.ts +3 -1
  25. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  26. package/es/src/ap-table/ap-table.vue2.mjs +98 -97
  27. package/es/src/ap-table/constants.d.ts +2260 -26
  28. package/es/src/ap-table/context.d.ts +1 -0
  29. package/es/src/ap-table/context.mjs +11 -10
  30. package/es/src/ap-table/utils.d.ts +1168 -8
  31. package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  32. package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
  33. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  34. package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
  35. package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  36. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  37. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
  38. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  39. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -4
  40. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  41. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
  42. package/es/src/business/ap-group-search/index.d.ts +444 -4
  43. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  44. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +1 -0
  45. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  46. package/es/src/business/ap-table-modal/index.d.ts +22 -2
  47. package/es/src/business/ap-table-modal/interface.d.ts +2 -2
  48. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  49. package/es/src/business/batch-input-group/index.vue.d.ts +134 -3
  50. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  51. package/es/src/business/hooks/usePageListApTable.d.ts +2 -2
  52. package/es/src/business/hooks/usePageListApTable.mjs +35 -33
  53. package/es/src/editable-table/form-item.vue.d.ts +1 -1
  54. package/es/src/editable-table/index.vue.d.ts +1 -1
  55. package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  56. package/lib/src/ap-field/number/index.vue.d.ts +322 -1
  57. package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
  58. package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
  59. package/lib/src/ap-field/segmented/index.vue.d.ts +1 -7
  60. package/lib/src/ap-field/select/index.vue.d.ts +423 -1
  61. package/lib/src/ap-field/select/index.vue.js +1 -1
  62. package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
  63. package/lib/src/ap-field/text/index.vue.d.ts +1 -13
  64. package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
  65. package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
  66. package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
  67. package/lib/src/ap-form/item/index.vue.d.ts +777 -1
  68. package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
  69. package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
  70. package/lib/src/ap-form/items/text/index.vue.d.ts +128 -15
  71. package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
  72. package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
  73. package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
  74. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  75. package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
  76. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
  77. package/lib/src/ap-list/index.vue.d.ts +1 -1
  78. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
  79. package/lib/src/ap-scroll-bar/index.d.ts +3 -1
  80. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  81. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  82. package/lib/src/ap-table/constants.d.ts +2260 -26
  83. package/lib/src/ap-table/context.d.ts +1 -0
  84. package/lib/src/ap-table/context.js +1 -1
  85. package/lib/src/ap-table/utils.d.ts +1168 -8
  86. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
  87. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
  88. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
  89. package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
  90. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
  91. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
  92. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  93. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
  94. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  95. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
  96. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  97. package/lib/src/business/ap-group-search/index.d.ts +444 -4
  98. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +421 -3
  99. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +1 -1
  100. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
  101. package/lib/src/business/ap-table-modal/index.d.ts +22 -2
  102. package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
  103. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
  104. package/lib/src/business/batch-input-group/index.vue.d.ts +134 -3
  105. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
  106. package/lib/src/business/hooks/usePageListApTable.d.ts +2 -2
  107. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  108. package/lib/src/editable-table/form-item.vue.d.ts +1 -1
  109. package/lib/src/editable-table/index.vue.d.ts +1 -1
  110. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
  111. package/package.json +5 -5
  112. package/theme/ap-form/index.css +3 -4
  113. package/theme/ap-form/modal-form.css +3 -4
  114. package/theme/ap-form/modal-form.less +3 -4
  115. package/theme/ap-table/ap-table.css +3 -4
  116. package/theme/ap-table-modal/index.css +3 -4
  117. package/theme/editable-table/index.css +3 -4
  118. package/theme/index.css +3 -4
@@ -1,19 +1,19 @@
1
- import { isVNode as q, defineComponent as D, useSlots as L, ref as h, watch as A, cloneVNode as G, computed as I, createVNode as u, mergeProps as p, unref as n, openBlock as g, createElementBlock as W, Fragment as H, withCtx as F, renderSlot as P, createTextVNode as J, toDisplayString as K, createElementVNode as Q, normalizeClass as X, createBlock as w, resolveDynamicComponent as x, createCommentVNode as Y } from "vue";
2
- import { Button as V, Flex as Z, Space as ee, Modal as te } from "@aplus-frontend/antdv";
1
+ import { isVNode as D, defineComponent as L, useSlots as A, ref as p, watch as G, cloneVNode as I, computed as K, createVNode as u, mergeProps as b, unref as s, openBlock as g, createElementBlock as W, Fragment as H, withCtx as F, renderSlot as P, createTextVNode as J, toDisplayString as Q, createElementVNode as X, normalizeStyle as Y, normalizeClass as Z, createBlock as w, resolveDynamicComponent as N, createCommentVNode as ee } from "vue";
2
+ import { Button as V, Flex as te, Space as le, Modal as oe } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
5
- import { getSingleVNode as le } from "../../utils/slot.mjs";
5
+ import { getSingleVNode as ae } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { omit as oe } from "lodash-unified";
8
- import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs";
9
- import { useLocale as ne } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
11
- import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
12
- import re from "../ap-form.vue2.mjs";
13
- function N(c) {
14
- return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !q(c);
7
+ import { omit as se } from "lodash-unified";
8
+ import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
9
+ import { useLocale as ie } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useGlobalConfig as re } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import de from "../ap-form.vue2.mjs";
13
+ function S(c) {
14
+ return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !D(c);
15
15
  }
16
- const Se = /* @__PURE__ */ D({
16
+ const Me = /* @__PURE__ */ L({
17
17
  __name: "index",
18
18
  props: {
19
19
  layout: {
@@ -91,54 +91,57 @@ const Se = /* @__PURE__ */ D({
91
91
  },
92
92
  emits: ["update:open"],
93
93
  setup(c, {
94
- expose: S,
94
+ expose: x,
95
95
  emit: _
96
96
  }) {
97
- const o = c, b = L(), M = _, a = h(), m = h(), i = h(!1), {
97
+ const o = c, y = A(), M = _, a = p(), C = p(0), m = p(), i = p(!1), {
98
98
  value: R,
99
99
  updateValue: f
100
- } = ae(o, M, {
100
+ } = ne(o, M, {
101
101
  valuePropName: "open",
102
- defaultValue: !1
102
+ defaultValue: !1,
103
+ beforeUpdateValue(e) {
104
+ return e && (C.value += 1), !0;
105
+ }
103
106
  }), {
104
107
  t: v
105
- } = ne(), y = se("uiMode", "aplus"), {
108
+ } = ie(), U = re("uiMode", "aplus"), {
106
109
  b: j,
107
- e: C
108
- } = ie("ap-form-modal-form");
109
- A(() => a.value, (e) => {
110
+ e: h
111
+ } = ue("ap-form-modal-form");
112
+ G(() => a.value, (e) => {
110
113
  var t;
111
114
  e && m.value && ((t = e.setFieldsValue) == null || t.call(e, m.value), m.value = void 0);
112
115
  });
113
- const T = le(b.trigger), B = T ? G(T, {
116
+ const T = ae(y.trigger), B = T ? I(T, {
114
117
  onClick: () => {
115
118
  f(!0);
116
119
  }
117
- }) : null, O = I(() => {
120
+ }) : null, O = K(() => {
118
121
  var t, l, r, d;
119
122
  const e = [];
120
123
  if (o.submitter === !1)
121
124
  return null;
122
125
  if (o.showCancel) {
123
- let s;
126
+ let n;
124
127
  e.push(u(V, {
125
128
  onClick: k,
126
129
  disabled: i.value
127
- }, N(s = v("ap.common.cancelText")) ? s : {
128
- default: () => [s]
130
+ }, S(n = v("ap.common.cancelText")) ? n : {
131
+ default: () => [n]
129
132
  }));
130
133
  }
131
- return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, p(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
134
+ return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, b(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
132
135
  key: "reset",
133
136
  disabled: i.value,
134
- onClick: U,
137
+ onClick: z,
135
138
  htmlType: "reset"
136
139
  }), {
137
140
  default: () => {
138
- var s;
139
- return [((s = o.submitter) == null ? void 0 : s.resetText) || v("ap.common.resetText")];
141
+ var n;
142
+ return [((n = o.submitter) == null ? void 0 : n.resetText) || v("ap.common.resetText")];
140
143
  }
141
- })), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, p({
144
+ })), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, b({
142
145
  type: "primary",
143
146
  key: "submit",
144
147
  htmlType: "submit"
@@ -146,32 +149,33 @@ const Se = /* @__PURE__ */ D({
146
149
  loading: i.value
147
150
  }), {
148
151
  default: () => {
149
- var s;
150
- return [((s = o.submitter) == null ? void 0 : s.submitText) || v("ap.common.okText")];
152
+ var n;
153
+ return [((n = o.submitter) == null ? void 0 : n.submitText) || v("ap.common.okText")];
151
154
  }
152
- })), u(Z, {
155
+ })), u(te, {
153
156
  justify: "flex-end",
154
- class: C(n(y) === "admin" ? "footer-admin" : "footer")
157
+ key: s(C),
158
+ class: [h("footer"), s(U) === "admin" ? h("footer-admin") : null]
155
159
  }, {
156
- default: () => [b.submitter ? b.submitter(e) : u(ee, null, N(e) ? e : {
160
+ default: () => [y.submitter ? y.submitter(e) : u(le, null, S(e) ? e : {
157
161
  default: () => [e]
158
162
  })]
159
163
  });
160
164
  });
161
- function U() {
165
+ function z() {
162
166
  var e, t, l;
163
167
  o.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (l = (t = o.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
164
168
  }
165
- async function z(e) {
169
+ async function E(e) {
166
170
  var t, l, r;
167
171
  if (o.submitter !== !1)
168
172
  try {
169
173
  (l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), i.value = !0;
170
174
  const d = (r = o.onFinish) == null ? void 0 : r.call(o, e);
171
175
  if (o.submitTimeout && d instanceof Promise) {
172
- const $ = setTimeout(() => i.value = !1, o.submitTimeout);
176
+ const q = setTimeout(() => i.value = !1, o.submitTimeout);
173
177
  d.finally(() => {
174
- clearTimeout($), i.value = !1;
178
+ clearTimeout(q), i.value = !1;
175
179
  });
176
180
  }
177
181
  await d && f(!1);
@@ -180,12 +184,12 @@ const Se = /* @__PURE__ */ D({
180
184
  }
181
185
  }
182
186
  function k() {
183
- n(i) || f(!1);
187
+ s(i) || f(!1);
184
188
  }
185
- function E(e) {
186
- !e && n(i) || f(e);
189
+ function $(e) {
190
+ !e && s(i) || f(e);
187
191
  }
188
- return S({
192
+ return x({
189
193
  resetFields: () => {
190
194
  var e;
191
195
  (e = a.value) == null || e.resetFields();
@@ -226,41 +230,39 @@ const Se = /* @__PURE__ */ D({
226
230
  var t;
227
231
  return (t = a.value) == null ? void 0 : t.getInternalInstance(e);
228
232
  }
229
- }), (e, t) => {
230
- var l;
231
- return g(), W(H, null, [u(n(te), p(e.modalProps, {
232
- open: n(R),
233
- footer: null,
234
- width: e.width,
235
- class: n(j)(),
236
- "body-style": {
237
- ...((l = e.modalProps) == null ? void 0 : l.bodyStyle) || {},
238
- padding: n(y) === "admin" ? "0px !important" : "20px !important"
239
- // 这里使用内联样式目的是为了使用最高优先级覆盖设置的全局样式
240
- // 使用ModalForm你可能无法再自定义body的样式
241
- },
242
- "onUpdate:open": E,
243
- onCancel: k
233
+ }), (e, t) => (g(), W(H, null, [u(s(oe), b(e.modalProps, {
234
+ open: s(R),
235
+ footer: null,
236
+ width: e.width,
237
+ class: s(j)(),
238
+ "body-style": {
239
+ padding: "0px !important"
240
+ },
241
+ "onUpdate:open": $,
242
+ onCancel: k
243
+ }), {
244
+ title: F(() => [P(e.$slots, "title", {}, () => [J(Q(o.title), 1)])]),
245
+ default: F(() => [u(de, b({
246
+ ref_key: "formRef",
247
+ ref: a
248
+ }, s(se)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
249
+ onFinish: E
244
250
  }), {
245
- title: F(() => [P(e.$slots, "title", {}, () => [J(K(o.title), 1)])]),
246
- default: F(() => [u(re, p({
247
- ref_key: "formRef",
248
- ref: a
249
- }, n(oe)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
250
- onFinish: z
251
- }), {
252
- default: F(() => [Q("div", {
253
- class: X(n(C)(n(y) === "admin" ? "content-admin" : "content"))
254
- }, [P(e.$slots, "default")], 2), (g(), w(x(O.value)))]),
255
- _: 3
256
- }, 16)]),
251
+ default: F(() => {
252
+ var l;
253
+ return [X("div", {
254
+ style: Y((l = e.modalProps) == null ? void 0 : l.bodyStyle),
255
+ class: Z(s(h)("content"))
256
+ }, [P(e.$slots, "default")], 6), (g(), w(N(O.value)))];
257
+ }),
257
258
  _: 3
258
- }, 16, ["open", "width", "class", "body-style"]), n(B) ? (g(), w(x(n(B)), {
259
- key: 0
260
- })) : Y("", !0)], 64);
261
- };
259
+ }, 16)]),
260
+ _: 3
261
+ }, 16, ["open", "width", "class"]), s(B) ? (g(), w(N(s(B)), {
262
+ key: 0
263
+ })) : ee("", !0)], 64));
262
264
  }
263
265
  });
264
266
  export {
265
- Se as default
267
+ Me as default
266
268
  };