@aplus-frontend/ui 7.7.3 → 7.7.4

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 (79) hide show
  1. package/es/src/ap-field/checkbox/index.vue.mjs +18 -8
  2. package/es/src/ap-field/number/index.vue.mjs +19 -19
  3. package/es/src/ap-field/radio/index.vue.mjs +24 -24
  4. package/es/src/ap-field/rate/index.vue.mjs +10 -10
  5. package/es/src/ap-field/select/index.vue.mjs +74 -71
  6. package/es/src/ap-field/slider/index.vue.d.ts +4 -2
  7. package/es/src/ap-field/slider/index.vue.mjs +12 -12
  8. package/es/src/ap-field/switch/index.vue.mjs +20 -20
  9. package/es/src/ap-field/text/index.vue2.mjs +23 -23
  10. package/es/src/ap-field/text/password.vue.mjs +9 -9
  11. package/es/src/ap-field/text-area/index.vue.mjs +24 -20
  12. package/es/src/ap-field/tree-select/index.vue.mjs +17 -17
  13. package/es/src/ap-form/ap-form.vue2.mjs +64 -64
  14. package/es/src/ap-form/drawer-form/index.vue.mjs +41 -41
  15. package/es/src/ap-form/item/index.vue.mjs +64 -64
  16. package/es/src/ap-form/items/number/index.vue.mjs +10 -10
  17. package/es/src/ap-form/items/radio/index.vue.mjs +3 -3
  18. package/es/src/ap-form/items/select/index.vue.mjs +5 -5
  19. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  20. package/es/src/ap-form/items/text/index.vue2.mjs +6 -6
  21. package/es/src/ap-form/items/text/password.vue.mjs +7 -7
  22. package/es/src/ap-form/items/text-area/index.vue.mjs +5 -5
  23. package/es/src/ap-form/items/tree-select/index.vue.mjs +7 -7
  24. package/es/src/ap-form/search-form/index.vue.mjs +63 -63
  25. package/es/src/ap-form/style/item.mjs +8 -7
  26. package/es/src/ap-list/index.vue.mjs +6 -6
  27. package/es/src/ap-table/constants.d.ts +1 -1
  28. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  29. package/es/src/editable-table/form-item.vue.mjs +64 -64
  30. package/es/src/editable-table/index.vue.mjs +66 -66
  31. package/es/src/scroll-bar/index.vue.d.ts +7 -7
  32. package/es/src/scroll-bar/index.vue.mjs +21 -21
  33. package/es/src/scroll-bar/internal.vue.d.ts +4 -4
  34. package/es/src/scroll-bar/internal.vue.mjs +20 -20
  35. package/es/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
  36. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +13 -13
  37. package/es/src/scroll-view/index.vue.d.ts +25 -25
  38. package/es/src/version.d.ts +1 -1
  39. package/es/src/version.mjs +1 -1
  40. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  41. package/lib/src/ap-field/number/index.vue.js +1 -1
  42. package/lib/src/ap-field/radio/index.vue.js +1 -1
  43. package/lib/src/ap-field/rate/index.vue.js +1 -1
  44. package/lib/src/ap-field/select/index.vue.js +1 -1
  45. package/lib/src/ap-field/slider/index.vue.d.ts +4 -2
  46. package/lib/src/ap-field/slider/index.vue.js +1 -1
  47. package/lib/src/ap-field/switch/index.vue.js +1 -1
  48. package/lib/src/ap-field/text/index.vue2.js +1 -1
  49. package/lib/src/ap-field/text/password.vue.js +1 -1
  50. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  51. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  52. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  53. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  54. package/lib/src/ap-form/item/index.vue.js +1 -1
  55. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  56. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  57. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  58. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  59. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  60. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  61. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  62. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  63. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  64. package/lib/src/ap-form/style/item.js +1 -1
  65. package/lib/src/ap-list/index.vue.js +1 -1
  66. package/lib/src/ap-table/constants.d.ts +1 -1
  67. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  68. package/lib/src/editable-table/form-item.vue.js +1 -1
  69. package/lib/src/editable-table/index.vue.js +1 -1
  70. package/lib/src/scroll-bar/index.vue.d.ts +7 -7
  71. package/lib/src/scroll-bar/index.vue.js +1 -1
  72. package/lib/src/scroll-bar/internal.vue.d.ts +4 -4
  73. package/lib/src/scroll-bar/internal.vue.js +1 -1
  74. package/lib/src/scroll-view/hooks/use-scroll-wrapper.d.ts +4 -4
  75. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  76. package/lib/src/scroll-view/index.vue.d.ts +25 -25
  77. package/lib/src/version.d.ts +1 -1
  78. package/lib/src/version.js +1 -1
  79. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- import { isVNode as Q, defineComponent as Y, useSlots as Z, ref as p, computed as w, unref as n, watch as P, cloneVNode as ee, createVNode as s, mergeProps as h, createElementBlock as N, openBlock as v, Fragment as te, createBlock as S, createCommentVNode as M, withCtx as b, renderSlot as _, withModifiers as ie, normalizeClass as ne, resolveDynamicComponent as I, createTextVNode as oe, toDisplayString as ae } from "vue";
2
- import { Button as z, Flex as se, Space as le, Drawer as re } from "@aplus-frontend/antdv";
1
+ import { isVNode as Q, defineComponent as Y, useSlots as Z, shallowRef as ee, ref as y, computed as w, unref as n, watch as P, cloneVNode as te, createVNode as s, mergeProps as p, createElementBlock as N, openBlock as h, Fragment as ie, createBlock as S, createCommentVNode as M, withCtx as v, renderSlot as _, withModifiers as ne, normalizeClass as oe, resolveDynamicComponent as I, createTextVNode as ae, toDisplayString as se } from "vue";
2
+ import { Button as z, Flex as le, Space as re, Drawer as ue } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
5
- import { getSingleVNode as ue } from "../../utils/slot.mjs";
5
+ import { getSingleVNode as de } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isBoolean as de, isUndefined as me, omit as ce } from "lodash-unified";
8
- import { convertReactiveToRaw as fe } from "../../utils/index.mjs";
9
- import pe from "../style/drawer-form.mjs";
10
- import { useControllableValue as he } from "../../hooks/useControllableValue.mjs";
11
- import { useLocale as ve } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useNamespace as be } from "../../config-provider/hooks/use-namespace.mjs";
13
- import ge from "../ap-form.vue2.mjs";
7
+ import { isBoolean as me, isUndefined as ce, omit as fe } from "lodash-unified";
8
+ import { convertReactiveToRaw as pe } from "../../utils/index.mjs";
9
+ import he from "../style/drawer-form.mjs";
10
+ import { useControllableValue as ve } from "../../hooks/useControllableValue.mjs";
11
+ import { useLocale as be } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import Fe from "../ap-form.vue2.mjs";
14
14
  function L(r) {
15
15
  return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !Q(r);
16
16
  }
17
- const Ee = /* @__PURE__ */ Y({
17
+ const De = /* @__PURE__ */ Y({
18
18
  name: "ApFormDrawerForm",
19
19
  __name: "index",
20
20
  props: {
@@ -101,10 +101,10 @@ const Ee = /* @__PURE__ */ Y({
101
101
  expose: U,
102
102
  emit: j
103
103
  }) {
104
- const t = r, g = Z(), E = j, o = p(), d = p(), a = p(!1), {
104
+ const t = r, b = Z(), E = j, o = ee(), d = y(), a = y(!1), {
105
105
  value: C,
106
106
  updateValue: m
107
- } = he(t, E, {
107
+ } = ve(t, E, {
108
108
  valuePropName: "open",
109
109
  defaultValue: !1
110
110
  }), l = w(() => {
@@ -115,19 +115,19 @@ const Ee = /* @__PURE__ */ Y({
115
115
  maxWidth: window.innerWidth * 0.8,
116
116
  resizeOnOpen: !0
117
117
  };
118
- return de(t.resize) ? t.resize ? e : {} : {
118
+ return me(t.resize) ? t.resize ? e : {} : {
119
119
  minWidth: t.resize?.minWidth ?? e.minWidth,
120
120
  maxWidth: t.resize?.maxWidth ?? e.maxWidth,
121
121
  onResize: t.resize?.onResize ?? e.onResize,
122
- resizeOnOpen: me(t.resize?.resizeOnOpen) ? e.onResize : t.resize.resizeOnOpen
122
+ resizeOnOpen: ce(t.resize?.resizeOnOpen) ? e.onResize : t.resize.resizeOnOpen
123
123
  };
124
- }), u = p(T()), {
125
- t: F
126
- } = ve(), D = pe("ap-form-drawer-form"), {
124
+ }), u = y(T()), {
125
+ t: g
126
+ } = be(), D = he("ap-form-drawer-form"), {
127
127
  b: $,
128
128
  e: q,
129
129
  em: V
130
- } = be("ap-form-drawer-form"), A = w(() => [q("resize-bar"), {
130
+ } = ge("ap-form-drawer-form"), A = w(() => [q("resize-bar"), {
131
131
  [V("resize-bar", "min-disabled")]: n(u) === n(l).minWidth
132
132
  }, {
133
133
  [V("resize-bar", "max-disabled")]: n(u) === n(l).maxWidth
@@ -141,7 +141,7 @@ const Ee = /* @__PURE__ */ Y({
141
141
  const e = n(l)?.minWidth;
142
142
  return !e || e && e < t.width ? t.width : e;
143
143
  }
144
- const W = ue(g.trigger), R = W ? ee(W, {
144
+ const R = de(b.trigger), W = R ? te(R, {
145
145
  onClick: () => {
146
146
  m(!0);
147
147
  }
@@ -154,28 +154,28 @@ const Ee = /* @__PURE__ */ Y({
154
154
  e.push(s(z, {
155
155
  onClick: k,
156
156
  disabled: a.value
157
- }, L(i = F("ap.common.cancelText")) ? i : {
157
+ }, L(i = g("ap.common.cancelText")) ? i : {
158
158
  default: () => [i]
159
159
  }));
160
160
  }
161
- return t.submitter?.resetButtonProps !== !1 && e.push(s(z, h(t.submitter?.resetButtonProps || {}, {
161
+ return t.submitter?.resetButtonProps !== !1 && e.push(s(z, p(t.submitter?.resetButtonProps || {}, {
162
162
  key: "submit",
163
163
  disabled: a.value,
164
164
  onClick: H
165
165
  }), {
166
- default: () => [t.submitter?.resetText || F("ap.common.resetText")]
167
- })), t.submitter?.submitButtonProps !== !1 && e.push(s(z, h({
166
+ default: () => [t.submitter?.resetText || g("ap.common.resetText")]
167
+ })), t.submitter?.submitButtonProps !== !1 && e.push(s(z, p({
168
168
  type: "primary",
169
169
  key: "submit"
170
170
  }, t.submitter?.submitButtonProps || {}, {
171
171
  loading: a.value,
172
172
  onClick: J
173
173
  }), {
174
- default: () => [t.submitter?.submitText || F("ap.common.okText")]
175
- })), s(se, {
174
+ default: () => [t.submitter?.submitText || g("ap.common.okText")]
175
+ })), s(le, {
176
176
  justify: "flex-end"
177
177
  }, {
178
- default: () => [g.submitter ? g.submitter(e) : s(le, null, L(e) ? e : {
178
+ default: () => [b.submitter ? b.submitter(e) : s(re, null, L(e) ? e : {
179
179
  default: () => [e]
180
180
  })]
181
181
  });
@@ -185,8 +185,8 @@ const Ee = /* @__PURE__ */ Y({
185
185
  }
186
186
  function B(e) {
187
187
  const i = n(l), c = (document.body.offsetWidth || 1e3) - (e.clientX - document.body.offsetLeft), f = i?.minWidth ?? (t.width || 800), O = i?.maxWidth ?? window.innerWidth * 0.8;
188
- let y = c;
189
- c < f && (y = f), c > O && (y = O), u.value = y;
188
+ let F = c;
189
+ c < f && (F = f), c > O && (F = O), u.value = F;
190
190
  }
191
191
  function x() {
192
192
  document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", x);
@@ -199,7 +199,7 @@ const Ee = /* @__PURE__ */ Y({
199
199
  try {
200
200
  const e = await o.value?.validateFieldsReturnTransformed();
201
201
  t.submitter?.onSubmit?.(), a.value = !0;
202
- const i = t.onFinish?.(fe(e));
202
+ const i = t.onFinish?.(pe(e));
203
203
  if (t.submitTimeout && i instanceof Promise) {
204
204
  const f = setTimeout(() => a.value = !1, t.submitTimeout);
205
205
  i.finally(() => {
@@ -243,32 +243,32 @@ const Ee = /* @__PURE__ */ Y({
243
243
  getInternalInstance: (e) => o.value?.getInternalInstance(e),
244
244
  getFieldsValueTransformed: (e) => o.value?.getFieldsValueTransformed(e),
245
245
  validateFieldsReturnTransformed: (e) => o.value?.validateFieldsReturnTransformed(e)
246
- }), (e, i) => (v(), N(te, null, [s(n(re), h(e.drawerProps, {
246
+ }), (e, i) => (h(), N(ie, null, [s(n(ue), p(e.drawerProps, {
247
247
  open: n(C),
248
248
  width: u.value,
249
249
  class: [n($)(), n(D)],
250
250
  "onUpdate:open": K,
251
251
  onCancel: k
252
252
  }), {
253
- title: b(() => [_(e.$slots, "title", {}, () => [oe(ae(t.title), 1)])]),
254
- footer: b(() => [(v(), S(I(X.value)))]),
255
- default: b(() => [s(ge, h({
253
+ title: v(() => [_(e.$slots, "title", {}, () => [ae(se(t.title), 1)])]),
254
+ footer: v(() => [(h(), S(I(X.value)))]),
255
+ default: v(() => [s(Fe, p({
256
256
  ref_key: "formRef",
257
257
  ref: o
258
- }, n(ce)(t, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
259
- default: b(() => [_(e.$slots, "default")]),
258
+ }, n(fe)(t, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
259
+ default: v(() => [_(e.$slots, "default")]),
260
260
  _: 3
261
- }, 16), e.resize ? (v(), N("div", {
261
+ }, 16), e.resize ? (h(), N("div", {
262
262
  key: 0,
263
- class: ne(A.value),
264
- onMousedown: ie(G, ["stop", "prevent"])
263
+ class: oe(A.value),
264
+ onMousedown: ne(G, ["stop", "prevent"])
265
265
  }, null, 34)) : M("", !0)]),
266
266
  _: 3
267
- }, 16, ["open", "width", "class"]), n(R) ? (v(), S(I(n(R)), {
267
+ }, 16, ["open", "width", "class"]), n(W) ? (h(), S(I(n(W)), {
268
268
  key: 0
269
269
  })) : M("", !0)], 64));
270
270
  }
271
271
  });
272
272
  export {
273
- Ee as default
273
+ De as default
274
274
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as _, useSlots as j, ref as y, onMounted as E, computed as M, unref as r, cloneVNode as O, createBlock as b, openBlock as v, mergeProps as $, createSlots as q, withCtx as i, resolveDynamicComponent as K, renderList as Q, createElementVNode as U, normalizeClass as Y, createVNode as f, normalizeStyle as G, renderSlot as H, normalizeProps as J, guardReactiveProps as W } from "vue";
2
- import { Form as X, Tooltip as Z, TypographyText as ee } from "@aplus-frontend/antdv";
3
- import { useToken as oe } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { isFunction as F, cloneDeep as te, isArray as re, omit as V } from "lodash-unified";
5
- import { apFormItemColPropKeys as le } from "../constant.mjs";
1
+ import { defineComponent as L, useSlots as _, ref as j, shallowRef as E, onMounted as M, computed as O, unref as r, cloneVNode as $, createBlock as y, openBlock as b, mergeProps as q, createSlots as K, withCtx as i, resolveDynamicComponent as Q, renderList as U, createElementVNode as Y, normalizeClass as G, createVNode as f, normalizeStyle as H, renderSlot as J, normalizeProps as W, guardReactiveProps as X } from "vue";
2
+ import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
3
+ import { useToken as te } from "@aplus-frontend/antdv/es/theme/internal";
4
+ import { isFunction as v, cloneDeep as re, isArray as le, omit as F } from "lodash-unified";
5
+ import { apFormItemColPropKeys as ae } from "../constant.mjs";
6
6
  import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
7
7
  import "../../config-provider/index.mjs";
8
- import { useInjectForm as ae } from "../context.mjs";
9
- import { getValidVNodeList as ie } from "../../utils/slot.mjs";
10
- import se from "../style/item.mjs";
11
- import { isPromise as ue } from "../../utils/is.mjs";
12
- import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
13
- const Ce = /* @__PURE__ */ _({
8
+ import { useInjectForm as ie } from "../context.mjs";
9
+ import { getValidVNodeList as se } from "../../utils/slot.mjs";
10
+ import ue from "../style/item.mjs";
11
+ import { isPromise as de } from "../../utils/is.mjs";
12
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
13
+ const ke = /* @__PURE__ */ L({
14
14
  name: "ApFormItem",
15
15
  __name: "index",
16
16
  props: {
@@ -57,111 +57,111 @@ const Ce = /* @__PURE__ */ _({
57
57
  customFilled: {},
58
58
  disabled: { type: Boolean }
59
59
  },
60
- setup(g, { expose: h }) {
61
- const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P = se("ap-form-item"), d = y(!1), a = y(), [, x] = oe();
62
- E(async () => {
63
- let e = F(o.initialValue) ? o.initialValue() : o.initialValue;
64
- ue(e) && (e = await e), C?.registerField({
60
+ setup(V, { expose: h }) {
61
+ const o = V, m = _(), { model: p, updateModel: g, internalInstance: B } = ie(), { m: u, b: C } = fe("ap-form-item"), k = ue("ap-form-item"), d = j(!1), n = E(), [, P] = te();
62
+ M(async () => {
63
+ let e = v(o.initialValue) ? o.initialValue() : o.initialValue;
64
+ de(e) && (e = await e), B?.registerField({
65
65
  name: o.name,
66
- initialValue: te(e),
66
+ initialValue: re(e),
67
67
  transform: o.transform
68
68
  });
69
69
  });
70
- const c = M(() => o.name ? re(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
71
- function N(e, t) {
72
- const l = Object.keys(t), n = { ...t };
70
+ const c = O(() => o.name ? le(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
71
+ function x(e, t) {
72
+ const l = Object.keys(t), a = { ...t };
73
73
  return l.forEach((s) => {
74
- s in e || delete n[s];
75
- }), n;
74
+ s in e || delete a[s];
75
+ }), a;
76
76
  }
77
- function I() {
77
+ function N() {
78
78
  const e = m.default?.() || [];
79
79
  if (!o.name)
80
80
  return e[0];
81
- const t = ie(e)[0];
81
+ const t = se(e)[0];
82
82
  if (!t)
83
83
  return null;
84
- const l = t?.type?.props ?? {}, n = {
84
+ const l = t?.type?.props ?? {}, a = {
85
85
  variant: o.bordered ? "borderless" : t?.props?.variant,
86
86
  bordered: o.bordered ? !1 : t?.props?.bordered,
87
- onFocus: T,
88
- onBlur: w
87
+ onFocus: S,
88
+ onBlur: T
89
89
  };
90
- return O(t, {
91
- ...N(l, n),
90
+ return $(t, {
91
+ ...x(l, a),
92
92
  [o.valuePropName]: r(c),
93
- [`onUpdate:${o.valuePropName}`]: S
93
+ [`onUpdate:${o.valuePropName}`]: I
94
94
  });
95
95
  }
96
- function S(e) {
97
- B?.(o.name, e);
96
+ function I(e) {
97
+ g?.(o.name, e);
98
98
  }
99
- function T() {
99
+ function S() {
100
100
  d.value = !0;
101
101
  }
102
- function w() {
102
+ function T() {
103
103
  d.value = !1;
104
104
  }
105
- function z() {
106
- a.value?.onFieldBlur();
105
+ function w() {
106
+ n.value?.onFieldBlur();
107
107
  }
108
108
  function R() {
109
- a.value?.onFieldChange();
109
+ n.value?.onFieldChange();
110
110
  }
111
- function A() {
112
- a.value?.clearValidate();
111
+ function z() {
112
+ n.value?.clearValidate();
113
113
  }
114
- function D() {
115
- a.value?.resetField();
114
+ function A() {
115
+ n.value?.resetField();
116
116
  }
117
- function L(e = !1) {
117
+ function D(e = !1) {
118
118
  const t = r(c);
119
119
  if (!e || !o.transform)
120
120
  return t;
121
- const l = F(o.transform) ? o.transform : o.transform.transformer;
121
+ const l = v(o.transform) ? o.transform : o.transform.transformer;
122
122
  return o.transform ? l(t) : t;
123
123
  }
124
124
  return h({
125
- onFieldBlur: z,
125
+ onFieldBlur: w,
126
126
  onFieldChange: R,
127
- clearValidate: A,
128
- resetField: D,
129
- getFieldValue: L
130
- }), (e, t) => (v(), b(r(X).Item, $(
127
+ clearValidate: z,
128
+ resetField: A,
129
+ getFieldValue: D
130
+ }), (e, t) => (b(), y(r(Z).Item, q(
131
131
  {
132
132
  ref_key: "formItemRef",
133
- ref: a
133
+ ref: n
134
134
  },
135
- r(V)(o, [...r(le), "tooltip", "label", "description"]),
135
+ r(F)(o, [...r(ae), "tooltip", "label", "description"]),
136
136
  {
137
137
  class: {
138
138
  [r(u)("bordered")]: e.bordered,
139
139
  [r(u)("focused")]: e.bordered && d.value,
140
140
  [r(u)("disabled")]: e.bordered && e.disabled,
141
- [r(k)()]: !0,
142
- [r(P)]: !0
141
+ [r(C)()]: !0,
142
+ [r(k)]: !0
143
143
  },
144
144
  colon: e.bordered ? !1 : o.colon
145
145
  }
146
- ), q({
146
+ ), K({
147
147
  default: i(() => [
148
- (v(), b(K(I())))
148
+ (b(), y(Q(N())))
149
149
  ]),
150
150
  _: 2
151
151
  }, [
152
152
  o.tooltip ? {
153
153
  name: "tooltip",
154
154
  fn: i(({ class: l }) => [
155
- U("span", {
156
- class: Y(l)
155
+ Y("span", {
156
+ class: G(l)
157
157
  }, [
158
- f(r(Z), {
158
+ f(r(ee), {
159
159
  title: o.tooltip
160
160
  }, {
161
161
  default: i(() => [
162
162
  f(r(ne), {
163
- style: G({
164
- color: r(x).colorTextTertiary,
163
+ style: H({
164
+ color: r(P).colorTextTertiary,
165
165
  fontSize: "14px",
166
166
  transform: "translateY(1px)"
167
167
  })
@@ -176,7 +176,7 @@ const Ce = /* @__PURE__ */ _({
176
176
  e.label ? {
177
177
  name: "label",
178
178
  fn: i(() => [
179
- f(r(ee), {
179
+ f(r(oe), {
180
180
  content: e.label,
181
181
  ellipsis: { tooltip: e.label },
182
182
  style: { "min-width": "0px", flex: "1" }
@@ -184,15 +184,15 @@ const Ce = /* @__PURE__ */ _({
184
184
  ]),
185
185
  key: "1"
186
186
  } : void 0,
187
- Q(r(V)(m, "default"), (l, n) => ({
188
- name: n,
187
+ U(r(F)(m, "default"), (l, a) => ({
188
+ name: a,
189
189
  fn: i((s) => [
190
- H(e.$slots, n, J(W(s || {})))
190
+ J(e.$slots, a, W(X(s || {})))
191
191
  ])
192
192
  }))
193
193
  ]), 1040, ["class", "colon"]));
194
194
  }
195
195
  });
196
196
  export {
197
- Ce as default
197
+ ke as default
198
198
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, useSlots as B, ref as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as F, renderList as i, renderSlot as u } from "vue";
1
+ import { defineComponent as y, useSlots as B, shallowRef as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as F, renderList as i, renderSlot as u } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/number/index.vue2.mjs";
4
4
  import { omit as f, pick as N } from "lodash-unified";
@@ -55,26 +55,26 @@ const T = /* @__PURE__ */ y({
55
55
  placeholder: {}
56
56
  },
57
57
  setup(c, { expose: b }) {
58
- const h = c, p = B(), r = _();
58
+ const h = c, p = B(), a = _();
59
59
  return b({
60
60
  focus: () => {
61
- r.value?.focus();
61
+ a.value?.focus();
62
62
  },
63
63
  blur: () => {
64
- r.value?.blur();
64
+ a.value?.blur();
65
65
  }
66
- }), (e, R) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder"]))), d({
66
+ }), (e, $) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder"]))), d({
67
67
  default: n(() => [
68
68
  k(C, F({
69
69
  ref_key: "inputNumberRef",
70
- ref: r,
70
+ ref: a,
71
71
  placeholder: e.placeholder,
72
72
  disabled: e.disabled
73
73
  }, e.field), d({ _: 2 }, [
74
74
  i(l(f)(p, l(m)), (v, o) => ({
75
75
  name: o,
76
- fn: n((a) => [
77
- u(e.$slots, o, t(s(a || {})))
76
+ fn: n((r) => [
77
+ u(e.$slots, o, t(s(r || {})))
78
78
  ])
79
79
  }))
80
80
  ]), 1040, ["placeholder", "disabled"])
@@ -83,8 +83,8 @@ const T = /* @__PURE__ */ y({
83
83
  }, [
84
84
  i(l(N)(p, l(m)), (v, o) => ({
85
85
  name: o,
86
- fn: n((a) => [
87
- u(e.$slots, o, t(s(a || {})))
86
+ fn: n((r) => [
87
+ u(e.$slots, o, t(s(r || {})))
88
88
  ])
89
89
  }))
90
90
  ]), 1040));
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, useSlots as m, ref as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
1
+ import { defineComponent as u, useSlots as m, shallowRef as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as _, withCtx as s, createVNode as y, mergeProps as B, renderList as x, renderSlot as g } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { omit as h } from "lodash-unified";
@@ -60,7 +60,7 @@ const q = /* @__PURE__ */ u({
60
60
  blur: () => {
61
61
  e.value?.blur();
62
62
  }
63
- }), (o, P) => (v(), b(k, a(t(r(h)(d, ["field"]))), _({
63
+ }), (o, S) => (v(), b(k, a(t(r(h)(d, ["field"]))), _({
64
64
  default: s(() => [
65
65
  y(r(C), B({
66
66
  ref_key: "radioRef",
@@ -70,7 +70,7 @@ const q = /* @__PURE__ */ u({
70
70
  ]),
71
71
  _: 2
72
72
  }, [
73
- x(p, (R, l) => ({
73
+ x(p, (P, l) => ({
74
74
  name: l,
75
75
  fn: s((f) => [
76
76
  g(o.$slots, l, a(t(f || {})))
@@ -1,10 +1,10 @@
1
- import { defineComponent as y, useSlots as B, ref as x, computed as g, createBlock as S, openBlock as F, normalizeProps as a, guardReactiveProps as s, unref as o, createSlots as p, withCtx as d, createVNode as k, mergeProps as C, renderList as u, renderSlot as f } from "vue";
1
+ import { defineComponent as y, useSlots as B, shallowRef as x, computed as g, createBlock as S, openBlock as F, normalizeProps as a, guardReactiveProps as s, unref as o, createSlots as p, withCtx as d, createVNode as k, mergeProps as C, renderList as u, renderSlot as f } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { isUndefined as P, omit as c, pick as q } from "lodash-unified";
5
5
  import { apFormItemSlotNames as m } from "../../constant.mjs";
6
- import $ from "../../item/index.vue.mjs";
7
- import N from "../../../ap-field/select/index.vue.mjs";
6
+ import R from "../../item/index.vue.mjs";
7
+ import $ from "../../../ap-field/select/index.vue.mjs";
8
8
  const E = /* @__PURE__ */ y({
9
9
  name: "ApFormItemSelect",
10
10
  __name: "index",
@@ -71,9 +71,9 @@ const E = /* @__PURE__ */ y({
71
71
  request: () => {
72
72
  r.value?.request();
73
73
  }
74
- }), (i, A) => (F(), S($, a(s(o(c)(e, ["field", "placeholder"]))), p({
74
+ }), (i, A) => (F(), S(R, a(s(o(c)(e, ["field", "placeholder"]))), p({
75
75
  default: d(() => [
76
- k(o(N), C(v.value, {
76
+ k(o($), C(v.value, {
77
77
  ref_key: "selectRef",
78
78
  ref: r
79
79
  }), p({ _: 2 }, [
@@ -140,7 +140,7 @@ declare function __VLS_template(): {
140
140
  allowClear: boolean;
141
141
  }> & Omit<Readonly< ApFieldTextProps> & Readonly<{
142
142
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
143
- }>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear") | "setSelectionRange"> & ShallowUnwrapRef<{
143
+ }>, "blur" | "focus" | "input" | "select" | "setSelectionRange" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")> & ShallowUnwrapRef<{
144
144
  focus: (options?: InputFocusOptions) => void;
145
145
  blur: () => void;
146
146
  input: any;
@@ -297,7 +297,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
297
297
  allowClear: boolean;
298
298
  }> & Omit<Readonly< ApFieldTextProps> & Readonly<{
299
299
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
300
- }>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear") | "setSelectionRange"> & ShallowUnwrapRef<{
300
+ }>, "blur" | "focus" | "input" | "select" | "setSelectionRange" | ("type" | "mode" | "disabled" | "bordered" | "emptyText" | "lazy" | "allowClear")> & ShallowUnwrapRef<{
301
301
  focus: (options?: InputFocusOptions) => void;
302
302
  blur: () => void;
303
303
  input: any;
@@ -1,9 +1,9 @@
1
- import { defineComponent as B, useSlots as x, ref as S, computed as _, createBlock as F, openBlock as k, normalizeProps as s, guardReactiveProps as n, unref as l, createSlots as u, withCtx as p, createVNode as R, mergeProps as C, renderList as f, renderSlot as c } from "vue";
1
+ import { defineComponent as B, useSlots as x, shallowRef as S, computed as _, createBlock as F, openBlock as R, normalizeProps as s, guardReactiveProps as n, unref as l, createSlots as u, withCtx as p, createVNode as k, mergeProps as C, renderList as f, renderSlot as c } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import { ApField as P } from "../../../ap-field/index.mjs";
4
- import { omit as m, pick as A } from "lodash-unified";
4
+ import { omit as m, pick as w } from "lodash-unified";
5
5
  import { apFormItemSlotNames as v } from "../../constant.mjs";
6
- import N from "../../item/index.vue.mjs";
6
+ import A from "../../item/index.vue.mjs";
7
7
  const E = /* @__PURE__ */ B({
8
8
  name: "ApFormItemText",
9
9
  __name: "index",
@@ -69,9 +69,9 @@ const E = /* @__PURE__ */ B({
69
69
  o.value?.select();
70
70
  },
71
71
  input: _(() => o.value?.input)
72
- }), (e, d) => (k(), F(N, s(n(l(m)(y, ["field", "placeholder"]))), u({
72
+ }), (e, d) => (R(), F(A, s(n(l(m)(y, ["field", "placeholder"]))), u({
73
73
  default: p(() => [
74
- R(l(g), C({
74
+ k(l(g), C({
75
75
  ref_key: "inputRef",
76
76
  ref: o,
77
77
  disabled: e.disabled,
@@ -87,7 +87,7 @@ const E = /* @__PURE__ */ B({
87
87
  ]),
88
88
  _: 2
89
89
  }, [
90
- f(l(A)(i, l(v)), (a, t) => ({
90
+ f(l(w)(i, l(v)), (a, t) => ({
91
91
  name: t,
92
92
  fn: p((r) => [
93
93
  c(e.$slots, t, s(n(r || {})))
@@ -1,7 +1,7 @@
1
- import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as e, createSlots as n, withCtx as d, createVNode as k, mergeProps as P, renderList as i, renderSlot as f } from "vue";
1
+ import { defineComponent as B, useSlots as _, shallowRef as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as e, createSlots as n, withCtx as d, createVNode as k, mergeProps as w, renderList as i, renderSlot as f } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
- import { ApField as S } from "../../../ap-field/index.mjs";
4
- import { omit as u, pick as w } from "lodash-unified";
3
+ import { ApField as P } from "../../../ap-field/index.mjs";
4
+ import { omit as u, pick as S } from "lodash-unified";
5
5
  import { apFormItemSlotNames as m } from "../../constant.mjs";
6
6
  import C from "../../item/index.vue.mjs";
7
7
  const z = /* @__PURE__ */ B({
@@ -54,7 +54,7 @@ const z = /* @__PURE__ */ B({
54
54
  placeholder: {}
55
55
  },
56
56
  setup(c, { expose: b }) {
57
- const { Text: h } = S, p = _(), v = c, a = g();
57
+ const { Text: h } = P, p = _(), v = c, a = g();
58
58
  return b({
59
59
  focus: () => {
60
60
  a.value?.focus();
@@ -62,9 +62,9 @@ const z = /* @__PURE__ */ B({
62
62
  blur: () => {
63
63
  a.value?.blur();
64
64
  }
65
- }), (o, R) => (F(), x(C, t(s(e(u)(v, ["field", "disabled", "placeholder"]))), n({
65
+ }), (o, N) => (F(), x(C, t(s(e(u)(v, ["field", "disabled", "placeholder"]))), n({
66
66
  default: d(() => [
67
- k(e(h).Password, P({
67
+ k(e(h).Password, w({
68
68
  ref_key: "inputRef",
69
69
  ref: a,
70
70
  disabled: o.disabled,
@@ -80,7 +80,7 @@ const z = /* @__PURE__ */ B({
80
80
  ]),
81
81
  _: 2
82
82
  }, [
83
- i(e(w)(p, e(m)), (y, l) => ({
83
+ i(e(S)(p, e(m)), (y, l) => ({
84
84
  name: l,
85
85
  fn: d((r) => [
86
86
  f(o.$slots, l, t(s(r || {})))
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, useSlots as c, ref as b, computed as x, createBlock as h, openBlock as v, normalizeProps as a, guardReactiveProps as r, unref as t, createSlots as y, withCtx as s, createVNode as B, mergeProps as A, renderList as g, renderSlot as _ } from "vue";
1
+ import { defineComponent as m, useSlots as c, shallowRef as b, computed as x, createBlock as h, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as y, withCtx as s, createVNode as B, mergeProps as A, renderList as g, renderSlot as _ } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import { ApField as F } from "../../../ap-field/index.mjs";
4
4
  import { omit as k } from "lodash-unified";
@@ -61,9 +61,9 @@ const $ = /* @__PURE__ */ m({
61
61
  l.value?.blur();
62
62
  },
63
63
  resizableTextArea: x(() => l.value?.resizableTextArea)
64
- }), (e, P) => (v(), h(C, a(r(t(k)(u, ["field", "placeholder"]))), y({
64
+ }), (e, P) => (v(), h(C, a(t(r(k)(u, ["field", "placeholder"]))), y({
65
65
  default: s(() => [
66
- B(t(n), A({
66
+ B(r(n), A({
67
67
  ref_key: "textAreaRef",
68
68
  ref: l,
69
69
  disabled: e.disabled,
@@ -72,10 +72,10 @@ const $ = /* @__PURE__ */ m({
72
72
  ]),
73
73
  _: 2
74
74
  }, [
75
- g(p, (z, o) => ({
75
+ g(p, (R, o) => ({
76
76
  name: o,
77
77
  fn: s((f) => [
78
- _(e.$slots, o, a(r(f || {})))
78
+ _(e.$slots, o, a(t(f || {})))
79
79
  ])
80
80
  }))
81
81
  ]), 1040));