@aplus-frontend/ui 0.4.1 → 0.4.3

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