@aplus-frontend/ui 0.3.12 → 0.3.13

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 (43) hide show
  1. package/es/index.mjs +29 -27
  2. package/es/src/ap-field/radio/style/index.js +1 -0
  3. package/es/src/ap-form/modal-form/index.vue.mjs +48 -53
  4. package/es/src/business/ap-ladder/style/index.js +1 -0
  5. package/es/src/business/batch-input-group/form-item.vue.d.ts +6 -0
  6. package/es/src/business/batch-input-group/form-item.vue.mjs +101 -0
  7. package/es/src/business/batch-input-group/form-item.vue2.mjs +4 -0
  8. package/es/src/business/batch-input-group/index.d.ts +2 -1
  9. package/es/src/business/batch-input-group/index.mjs +1 -0
  10. package/es/src/business/batch-input-group/index.vue.mjs +46 -44
  11. package/es/src/business/batch-input-group/interface.d.ts +8 -0
  12. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +43 -38
  13. package/es/src/config-provider/config-provider.d.ts +1 -0
  14. package/es/src/config-provider/css-var.d.ts +1 -0
  15. package/es/src/config-provider/css-var.mjs +14 -12
  16. package/es/src/config-provider/index.d.ts +5 -0
  17. package/es/src/index.mjs +12 -10
  18. package/lib/index.js +1 -1
  19. package/lib/src/ap-field/radio/style/index.js +1 -0
  20. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  21. package/lib/src/ap-form/render/style/index.d.ts +1 -0
  22. package/lib/src/ap-form/render/style/index.js +1 -0
  23. package/lib/src/business/ap-ladder/style/index.js +1 -0
  24. package/lib/src/business/batch-input-group/form-item.vue.d.ts +6 -0
  25. package/lib/src/business/batch-input-group/form-item.vue.js +1 -0
  26. package/lib/src/business/batch-input-group/form-item.vue2.js +1 -0
  27. package/lib/src/business/batch-input-group/index.d.ts +2 -1
  28. package/lib/src/business/batch-input-group/index.js +1 -1
  29. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  30. package/lib/src/business/batch-input-group/interface.d.ts +8 -0
  31. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  32. package/lib/src/config-provider/config-provider.d.ts +1 -0
  33. package/lib/src/config-provider/css-var.d.ts +1 -0
  34. package/lib/src/config-provider/css-var.js +1 -1
  35. package/lib/src/config-provider/index.d.ts +5 -0
  36. package/lib/src/index.js +1 -1
  37. package/package.json +4 -4
  38. /package/es/src/ap-field/radio/style/{style.d.ts → index.d.ts} +0 -0
  39. /package/es/src/ap-form/render/style/{style.d.ts → index.d.ts} +0 -0
  40. /package/{lib/src/ap-form/render/style/style.d.ts → es/src/ap-form/render/style/index.js} +0 -0
  41. /package/es/src/business/ap-ladder/style/{style.d.ts → index.d.ts} +0 -0
  42. /package/lib/src/ap-field/radio/style/{style.d.ts → index.d.ts} +0 -0
  43. /package/lib/src/business/ap-ladder/style/{style.d.ts → index.d.ts} +0 -0
package/es/index.mjs CHANGED
@@ -2,7 +2,7 @@ import * as e from "./src/index.mjs";
2
2
  import { default as l } from "./src/path-map.mjs";
3
3
  import "./src/hooks/index.mjs";
4
4
  import { configProviderProps as d } from "./src/config-provider/config-provider-props.mjs";
5
- import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as s, configProviderContextKey as i } from "./src/config-provider/constants.mjs";
5
+ import { DEFAULT_NAMESPACE as A, DEFAULT_UIMODE as s, configProviderContextKey as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as F, useGlobalConfig as I } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as T, buildTranslator as C, localeContextKey as D, translate as g, useLocale as S } from "./src/config-provider/hooks/use-locale.mjs";
8
8
  import { defaultNamespace as G, namespaceContextKey as P, useGetDerivedNamespace as E, useNamespace as L } from "./src/config-provider/hooks/use-namespace.mjs";
@@ -24,7 +24,7 @@ import { default as fo } from "./src/ap-form/item-group/index.vue.mjs";
24
24
  import { default as lo } from "./src/ap-form/list/index.vue.mjs";
25
25
  import { default as uo } from "./src/ap-form/search-form/index.vue.mjs";
26
26
  import { default as so } from "./src/ap-form/modal-form/index.vue.mjs";
27
- import { default as no } from "./src/ap-form/dependency/index.vue.mjs";
27
+ import { default as io } from "./src/ap-form/dependency/index.vue.mjs";
28
28
  import { default as Fo } from "./src/ap-form/set/index.vue.mjs";
29
29
  import { default as bo } from "./src/ap-form/drawer-form/index.vue.mjs";
30
30
  import { default as Co } from "./src/ap-form/render/control.vue.mjs";
@@ -50,7 +50,7 @@ import { default as fe } from "./src/ap-action/item-modal/index.vue.mjs";
50
50
  import { default as le } from "./src/ap-action/item-popconfirm/index.vue.mjs";
51
51
  import { default as de } from "./src/ap-action/item-dropdown/index.vue.mjs";
52
52
  import { default as Ae } from "./src/ap-action/group/index.vue.mjs";
53
- import { DictCode as ie, langMap as ne } from "./src/work-order-modal/interfaces.mjs";
53
+ import { DictCode as ne, langMap as ie } from "./src/work-order-modal/interfaces.mjs";
54
54
  import { createWorkOrderModal as Fe } from "./src/work-order-modal/createWorkOrder.mjs";
55
55
  import { default as be } from "./src/work-order-modal/work-order-modal.vue.mjs";
56
56
  import { default as Ce } from "./src/ap-tag/ap-tag.vue.mjs";
@@ -77,7 +77,7 @@ import { ApBatchActionGroup as mr } from "./src/business/ap-batch-action-group/i
77
77
  import { ApButtonGroup as xr } from "./src/business/ap-button-group/index.mjs";
78
78
  import { ApCard as ur } from "./src/business/ap-card/index.mjs";
79
79
  import { ApExpandAlert as sr } from "./src/business/ap-expand-alert/index.mjs";
80
- import { ApExportGroupActionType as nr } from "./src/business/ap-export-group/interface.mjs";
80
+ import { ApExportGroupActionType as ir } from "./src/business/ap-export-group/interface.mjs";
81
81
  import { ApExportGroup as Fr } from "./src/business/ap-export-group/index.mjs";
82
82
  import { handleExportDownload as br } from "./src/business/ap-export-group/handleExportDownload.mjs";
83
83
  import { convertExportField as Cr } from "./src/business/ap-export-group/convertExportField.mjs";
@@ -98,15 +98,16 @@ import { ApAppendix as ot } from "./src/business/ap-appendix/index.mjs";
98
98
  import { ApExtensionSelect as rt, ApGroupSearch as tt, ApPopoverSelect as pt } from "./src/business/ap-group-search/index.mjs";
99
99
  import { default as ft } from "./src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
100
100
  import { default as lt } from "./src/business/batch-input-group/index.vue.mjs";
101
- import { ApSizeInput as dt } from "./src/business/ap-size-input/index.mjs";
102
- import { useTablePaging as At } from "./src/ap-table/hooks/use-table-paging.mjs";
103
- import { ApTable as it } from "./src/ap-table/index.mjs";
104
- import { default as ct } from "./src/editable-table/index.vue.mjs";
105
- import { default as It } from "./src/editable-table/form-item.vue.mjs";
106
- import { default as Tt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
107
- import { ApScrollBar as Dt } from "./src/ap-scroll-bar/index.mjs";
108
- import { useMessage as St } from "./src/hooks/useMessage.mjs";
109
- import { useControllableValue as Gt } from "./src/hooks/useControllableValue.mjs";
101
+ import { default as dt } from "./src/business/batch-input-group/form-item.vue.mjs";
102
+ import { ApSizeInput as At } from "./src/business/ap-size-input/index.mjs";
103
+ import { useTablePaging as nt } from "./src/ap-table/hooks/use-table-paging.mjs";
104
+ import { ApTable as ct } from "./src/ap-table/index.mjs";
105
+ import { default as It } from "./src/editable-table/index.vue.mjs";
106
+ import { default as Tt } from "./src/editable-table/form-item.vue.mjs";
107
+ import { default as Dt } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
108
+ import { ApScrollBar as St } from "./src/ap-scroll-bar/index.mjs";
109
+ import { useMessage as Gt } from "./src/hooks/useMessage.mjs";
110
+ import { useControllableValue as Et } from "./src/hooks/useControllableValue.mjs";
110
111
  const a = {
111
112
  install: (r) => {
112
113
  for (const t in e) {
@@ -130,13 +131,13 @@ export {
130
131
  ze as ApButton,
131
132
  xr as ApButtonGroup,
132
133
  ur as ApCard,
133
- Tt as ApDescriptions,
134
+ Dt as ApDescriptions,
134
135
  Ne as ApDownLoadNeedNameKeyDefault,
135
136
  we as ApDownload,
136
137
  je as ApDrawer,
137
138
  sr as ApExpandAlert,
138
139
  Fr as ApExportGroup,
139
- nr as ApExportGroupActionType,
140
+ ir as ApExportGroupActionType,
140
141
  rt as ApExtensionSelect,
141
142
  Po as ApField,
142
143
  No as ApFieldCheckbox,
@@ -154,9 +155,10 @@ export {
154
155
  Wo as ApFieldTextArea,
155
156
  ro as ApForm,
156
157
  Co as ApFormControlRender,
157
- no as ApFormDependency,
158
+ io as ApFormDependency,
158
159
  bo as ApFormDrawerForm,
159
160
  po as ApFormItem,
161
+ dt as ApFormItemBatchInput,
160
162
  Y as ApFormItemCheckbox,
161
163
  _ as ApFormItemDate,
162
164
  H as ApFormItemDateRange,
@@ -185,13 +187,13 @@ export {
185
187
  Ue as ApModal,
186
188
  Yr as ApNeedNameKeyDefault,
187
189
  pt as ApPopoverSelect,
188
- Dt as ApScrollBar,
190
+ St as ApScrollBar,
189
191
  Rr as ApSelectLayout,
190
- dt as ApSizeInput,
192
+ At as ApSizeInput,
191
193
  vr as ApStatus,
192
194
  Br as ApStatusGroup,
193
195
  Qr as ApSummary,
194
- it as ApTable,
196
+ ct as ApTable,
195
197
  Xe as ApTableModal,
196
198
  Ce as ApTag,
197
199
  ge as ApTagGroup,
@@ -205,9 +207,9 @@ export {
205
207
  N as ConfigProvider,
206
208
  A as DEFAULT_NAMESPACE,
207
209
  s as DEFAULT_UIMODE,
208
- ie as DictCode,
209
- ct as EditableTable,
210
- It as EditableTableFormItem,
210
+ ne as DictCode,
211
+ It as EditableTable,
212
+ Tt as EditableTableFormItem,
211
213
  Pe as NeedNameKeyDefault,
212
214
  be as WorkOrderModal,
213
215
  ee as adminToken,
@@ -215,7 +217,7 @@ export {
215
217
  T as buildLocaleContext,
216
218
  C as buildTranslator,
217
219
  Vr as computedRecords,
218
- i as configProviderContextKey,
220
+ n as configProviderContextKey,
219
221
  d as configProviderProps,
220
222
  Cr as convertExportField,
221
223
  Fe as createWorkOrderModal,
@@ -227,22 +229,22 @@ export {
227
229
  y as globalConfigCached,
228
230
  br as handleExportDownload,
229
231
  c as keysOf,
230
- ne as langMap,
232
+ ie as langMap,
231
233
  D as localeContextKey,
232
234
  Mr as locales,
233
235
  P as namespaceContextKey,
234
236
  l as pathMap,
235
237
  F as provideGlobalConfig,
236
238
  g as translate,
237
- Gt as useControllableValue,
239
+ Et as useControllableValue,
238
240
  E as useGetDerivedNamespace,
239
241
  I as useGlobalConfig,
240
242
  S as useLocale,
241
- St as useMessage,
243
+ Gt as useMessage,
242
244
  L as useNamespace,
243
245
  Wr as usePageListApTable,
244
246
  Ze as useTableModal,
245
- At as useTablePaging,
247
+ nt as useTablePaging,
246
248
  zr as useTableRefresh,
247
249
  er as useTableSelectModal
248
250
  };
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-field/radio.less';
@@ -1,21 +1,19 @@
1
- import { isVNode as q, defineComponent as D, useSlots as L, ref as g, watch as A, cloneVNode as G, computed as I, createVNode as u, mergeProps as p, unref as n, openBlock as F, createElementBlock as W, Fragment as H, withCtx as b, 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";
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
2
  import { Button as V, Flex as Z, Space as ee, Modal as te } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
5
5
  import { getSingleVNode as le } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { omit as oe } from "lodash-unified";
8
- import "../item/index.vue2.mjs";
9
8
  import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs";
10
9
  import { useLocale as ne } from "../../config-provider/hooks/use-locale.mjs";
11
- import { useGlobalConfig as ie } from "../../config-provider/hooks/use-global-config.mjs";
12
- import { useNamespace as se } from "../../config-provider/hooks/use-namespace.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";
13
12
  import re from "../ap-form.vue2.mjs";
14
- import ue from "../item/index.vue.mjs";
15
- function N(m) {
16
- return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !q(m);
13
+ function N(c) {
14
+ return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !q(c);
17
15
  }
18
- const Re = /* @__PURE__ */ D({
16
+ const Se = /* @__PURE__ */ D({
19
17
  __name: "index",
20
18
  props: {
21
19
  layout: {
@@ -92,27 +90,27 @@ const Re = /* @__PURE__ */ D({
92
90
  submitTimeout: {}
93
91
  },
94
92
  emits: ["update:open"],
95
- setup(m, {
96
- expose: _,
97
- emit: S
93
+ setup(c, {
94
+ expose: S,
95
+ emit: _
98
96
  }) {
99
- const o = m, v = L(), M = S, a = g(), c = g(), s = g(!1), {
97
+ const o = c, b = L(), M = _, a = h(), m = h(), i = h(!1), {
100
98
  value: R,
101
99
  updateValue: f
102
100
  } = ae(o, M, {
103
101
  valuePropName: "open",
104
102
  defaultValue: !1
105
103
  }), {
106
- t: y
107
- } = ne(), h = ie("uiMode", "aplus"), {
104
+ t: v
105
+ } = ne(), y = se("uiMode", "aplus"), {
108
106
  b: j,
109
107
  e: C
110
- } = se("ap-form-modal-form");
108
+ } = ie("ap-form-modal-form");
111
109
  A(() => a.value, (e) => {
112
110
  var t;
113
- e && c.value && ((t = e.setFieldsValue) == null || t.call(e, c.value), c.value = void 0);
111
+ e && m.value && ((t = e.setFieldsValue) == null || t.call(e, m.value), m.value = void 0);
114
112
  });
115
- const T = le(v.trigger), B = T ? G(T, {
113
+ const T = le(b.trigger), B = T ? G(T, {
116
114
  onClick: () => {
117
115
  f(!0);
118
116
  }
@@ -122,40 +120,40 @@ const Re = /* @__PURE__ */ D({
122
120
  if (o.submitter === !1)
123
121
  return null;
124
122
  if (o.showCancel) {
125
- let i;
123
+ let s;
126
124
  e.push(u(V, {
127
125
  onClick: k,
128
- disabled: s.value
129
- }, N(i = y("ap.common.cancelText")) ? i : {
130
- default: () => [i]
126
+ disabled: i.value
127
+ }, N(s = v("ap.common.cancelText")) ? s : {
128
+ default: () => [s]
131
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
132
  key: "reset",
135
- disabled: s.value,
133
+ disabled: i.value,
136
134
  onClick: U,
137
135
  htmlType: "reset"
138
136
  }), {
139
137
  default: () => {
140
- var i;
141
- return [((i = o.submitter) == null ? void 0 : i.resetText) || y("ap.common.resetText")];
138
+ var s;
139
+ return [((s = o.submitter) == null ? void 0 : s.resetText) || v("ap.common.resetText")];
142
140
  }
143
141
  })), ((r = o.submitter) == null ? void 0 : r.submitButtonProps) !== !1 && e.push(u(V, p({
144
142
  type: "primary",
145
143
  key: "submit",
146
144
  htmlType: "submit"
147
145
  }, ((d = o.submitter) == null ? void 0 : d.submitButtonProps) || {}, {
148
- loading: s.value
146
+ loading: i.value
149
147
  }), {
150
148
  default: () => {
151
- var i;
152
- return [((i = o.submitter) == null ? void 0 : i.submitText) || y("ap.common.okText")];
149
+ var s;
150
+ return [((s = o.submitter) == null ? void 0 : s.submitText) || v("ap.common.okText")];
153
151
  }
154
152
  })), u(Z, {
155
153
  justify: "flex-end",
156
- class: C(n(h) === "admin" ? "footer-admin" : "footer")
154
+ class: C(n(y) === "admin" ? "footer-admin" : "footer")
157
155
  }, {
158
- default: () => [v.submitter ? v.submitter(e) : u(ee, null, N(e) ? e : {
156
+ default: () => [b.submitter ? b.submitter(e) : u(ee, null, N(e) ? e : {
159
157
  default: () => [e]
160
158
  })]
161
159
  });
@@ -164,30 +162,30 @@ const Re = /* @__PURE__ */ D({
164
162
  var e, t, l;
165
163
  o.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (l = (t = o.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
166
164
  }
167
- async function $(e) {
165
+ async function z(e) {
168
166
  var t, l, r;
169
167
  if (o.submitter !== !1)
170
168
  try {
171
- (l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), s.value = !0;
169
+ (l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), i.value = !0;
172
170
  const d = (r = o.onFinish) == null ? void 0 : r.call(o, e);
173
171
  if (o.submitTimeout && d instanceof Promise) {
174
- const E = setTimeout(() => s.value = !1, o.submitTimeout);
172
+ const $ = setTimeout(() => i.value = !1, o.submitTimeout);
175
173
  d.finally(() => {
176
- clearTimeout(E), s.value = !1;
174
+ clearTimeout($), i.value = !1;
177
175
  });
178
176
  }
179
177
  await d && f(!1);
180
178
  } finally {
181
- s.value = !1;
179
+ i.value = !1;
182
180
  }
183
181
  }
184
182
  function k() {
185
- n(s) || f(!1);
183
+ n(i) || f(!1);
186
184
  }
187
- function z(e) {
188
- !e && n(s) || f(e);
185
+ function E(e) {
186
+ !e && n(i) || f(e);
189
187
  }
190
- return _({
188
+ return S({
191
189
  resetFields: () => {
192
190
  var e;
193
191
  (e = a.value) == null || e.resetFields();
@@ -219,7 +217,7 @@ const Re = /* @__PURE__ */ D({
219
217
  setFieldsValue: (e) => {
220
218
  var t, l;
221
219
  if (!a.value) {
222
- c.value = e;
220
+ m.value = e;
223
221
  return;
224
222
  }
225
223
  (l = (t = a.value) == null ? void 0 : t.setFieldsValue) == null || l.call(t, e);
@@ -230,42 +228,39 @@ const Re = /* @__PURE__ */ D({
230
228
  }
231
229
  }), (e, t) => {
232
230
  var l;
233
- return F(), W(H, null, [u(n(te), p(e.modalProps, {
231
+ return g(), W(H, null, [u(n(te), p(e.modalProps, {
234
232
  open: n(R),
235
233
  footer: null,
236
234
  width: e.width,
237
235
  class: n(j)(),
238
236
  "body-style": {
239
237
  ...((l = e.modalProps) == null ? void 0 : l.bodyStyle) || {},
240
- padding: n(h) === "admin" ? "0px !important" : "20px !important"
238
+ padding: n(y) === "admin" ? "0px !important" : "20px !important"
241
239
  // 这里使用内联样式目的是为了使用最高优先级覆盖设置的全局样式
242
240
  // 使用ModalForm你可能无法再自定义body的样式
243
241
  },
244
- "onUpdate:open": z,
242
+ "onUpdate:open": E,
245
243
  onCancel: k
246
244
  }), {
247
- title: b(() => [P(e.$slots, "title", {}, () => [J(K(o.title), 1)])]),
248
- default: b(() => [u(re, p({
245
+ title: F(() => [P(e.$slots, "title", {}, () => [J(K(o.title), 1)])]),
246
+ default: F(() => [u(re, p({
249
247
  ref_key: "formRef",
250
248
  ref: a
251
249
  }, n(oe)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
252
- onFinish: $
250
+ onFinish: z
253
251
  }), {
254
- default: b(() => [Q("div", {
255
- class: X(n(C)(n(h) === "admin" ? "content-admin" : "content"))
256
- }, [P(e.$slots, "default")], 2), u(ue, null, {
257
- default: b(() => [(F(), w(x(O.value)))]),
258
- _: 1
259
- })]),
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)))]),
260
255
  _: 3
261
256
  }, 16)]),
262
257
  _: 3
263
- }, 16, ["open", "width", "class", "body-style"]), n(B) ? (F(), w(x(n(B)), {
258
+ }, 16, ["open", "width", "class", "body-style"]), n(B) ? (g(), w(x(n(B)), {
264
259
  key: 0
265
260
  })) : Y("", !0)], 64);
266
261
  };
267
262
  }
268
263
  });
269
264
  export {
270
- Re as default
265
+ Se as default
271
266
  };
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-ladder/ap-ladder.less';
@@ -0,0 +1,6 @@
1
+ import { ApFormItemBatchInputProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
4
+ trim: boolean;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,101 @@
1
+ import { defineComponent as B, computed as n, openBlock as b, createBlock as _, mergeProps as u, unref as f, withCtx as g, createVNode as x } from "vue";
2
+ import "./index.vue2.mjs";
3
+ import "../../ap-form/item/index.vue2.mjs";
4
+ import { isValid as d } from "@aplus-frontend/utils";
5
+ import { omit as p } from "lodash-unified";
6
+ import V from "../../ap-form/item/index.vue.mjs";
7
+ import k from "./index.vue.mjs";
8
+ const A = /* @__PURE__ */ B({
9
+ __name: "form-item",
10
+ props: {
11
+ htmlFor: {},
12
+ prefixCls: {},
13
+ label: {},
14
+ help: {},
15
+ extra: {},
16
+ labelCol: {},
17
+ wrapperCol: {},
18
+ hasFeedback: { type: Boolean },
19
+ colon: { type: Boolean },
20
+ labelAlign: {},
21
+ prop: {},
22
+ name: {},
23
+ rules: {},
24
+ autoLink: { type: Boolean },
25
+ required: { type: Boolean },
26
+ validateFirst: { type: Boolean },
27
+ validateStatus: {},
28
+ validateTrigger: {},
29
+ messageVariables: {},
30
+ hidden: { type: Boolean },
31
+ noStyle: { type: Boolean },
32
+ tooltip: {},
33
+ span: {},
34
+ order: {},
35
+ offset: {},
36
+ push: {},
37
+ pull: {},
38
+ xs: {},
39
+ sm: {},
40
+ md: {},
41
+ lg: {},
42
+ xl: {},
43
+ xxl: {},
44
+ flex: {},
45
+ bordered: { type: Boolean },
46
+ valuePropName: {},
47
+ initialValue: {},
48
+ _signal: {},
49
+ transform: {},
50
+ field: {},
51
+ disabled: { type: Boolean },
52
+ placeholer: {},
53
+ trim: { type: Boolean, default: !0 }
54
+ },
55
+ setup(c) {
56
+ const l = c, y = n(() => (l == null ? void 0 : l.transform) || {
57
+ flat: !1,
58
+ transformer: (e) => {
59
+ var o, a, i, r, m, s;
60
+ if (e)
61
+ return !(e != null && e.value) || ((o = e == null ? void 0 : e.value) == null ? void 0 : o.length) < 1 ? void 0 : (a = l == null ? void 0 : l.field) != null && a.options ? {
62
+ ...e,
63
+ value: (r = (i = e == null ? void 0 : e.value) == null ? void 0 : i.filter((t) => d(t == null ? void 0 : t.trim()))) == null ? void 0 : r.map((t) => l.trim ? t == null ? void 0 : t.trim() : t)
64
+ } : (s = (m = e == null ? void 0 : e.value) == null ? void 0 : m.filter((t) => d(t == null ? void 0 : t.trim()))) == null ? void 0 : s.map((t) => l.trim ? t == null ? void 0 : t.trim() : t);
65
+ }
66
+ }), v = n(() => {
67
+ var e;
68
+ return ((e = l.field) == null ? void 0 : e.style) || "width:auto";
69
+ }), h = n(() => {
70
+ var e, o;
71
+ return (l == null ? void 0 : l.initialValue) || {
72
+ key: (o = (e = l == null ? void 0 : l.field) == null ? void 0 : e.options) == null ? void 0 : o.map((a) => a.value)
73
+ };
74
+ });
75
+ return (e, o) => (b(), _(V, u(
76
+ f(p)(l, [
77
+ "field",
78
+ "initialValue",
79
+ "transform",
80
+ "placeholder",
81
+ "disabled"
82
+ ]),
83
+ {
84
+ "initial-value": h.value,
85
+ transform: y.value
86
+ }
87
+ ), {
88
+ default: g(() => [
89
+ x(k, u(f(p)(l.field, ["style"]), {
90
+ style: v.value,
91
+ disabled: e.disabled,
92
+ placeholer: e.placeholer
93
+ }), null, 16, ["style", "disabled", "placeholer"])
94
+ ]),
95
+ _: 1
96
+ }, 16, ["initial-value", "transform"]));
97
+ }
98
+ });
99
+ export {
100
+ A as default
101
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./form-item.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,2 +1,3 @@
1
1
  import { default as BatchInputGroup } from './index.vue';
2
- export { BatchInputGroup };
2
+ import { default as ApFormItemBatchInput } from './form-item.vue';
3
+ export { BatchInputGroup, ApFormItemBatchInput };
@@ -1 +1,2 @@
1
1
  import "./index.vue2.mjs";
2
+ import "./form-item.vue2.mjs";