@aplus-frontend/ui 7.13.11 → 7.14.0

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 (115) hide show
  1. package/es/index.mjs +58 -56
  2. package/es/src/ap-field/select/index.vue.d.ts +8 -18
  3. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  4. package/es/src/ap-field/text/password.vue.mjs +8 -8
  5. package/es/src/ap-form/ap-form.vue.d.ts +1 -0
  6. package/es/src/ap-form/ap-form.vue2.mjs +122 -106
  7. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -0
  8. package/es/src/ap-form/drawer-form/index.vue.mjs +13 -10
  9. package/es/src/ap-form/interface.d.ts +5 -0
  10. package/es/src/ap-form/item/index.vue.d.ts +1 -0
  11. package/es/src/ap-form/item/index.vue.mjs +84 -70
  12. package/es/src/ap-form/items/checkbox/index.vue.mjs +9 -8
  13. package/es/src/ap-form/items/date/index.vue.mjs +10 -9
  14. package/es/src/ap-form/items/date-range/index.vue.mjs +10 -9
  15. package/es/src/ap-form/items/number/index.vue.mjs +7 -6
  16. package/es/src/ap-form/items/radio/index.vue.mjs +9 -8
  17. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  18. package/es/src/ap-form/items/select/index.vue.mjs +3 -2
  19. package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
  20. package/es/src/ap-form/items/text/index.vue2.mjs +6 -5
  21. package/es/src/ap-form/items/text/password.vue.mjs +10 -9
  22. package/es/src/ap-form/items/text-area/index.vue.mjs +4 -3
  23. package/es/src/ap-form/items/tree-select/index.vue.mjs +1 -0
  24. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -0
  25. package/es/src/ap-form/modal-form/index.vue.mjs +3 -0
  26. package/es/src/ap-form/render/item.vue.mjs +6 -5
  27. package/es/src/ap-form/search-form/index.vue.d.ts +4 -0
  28. package/es/src/ap-form/search-form/index.vue.mjs +26 -23
  29. package/es/src/ap-table/ap-table.vue2.mjs +2 -2
  30. package/es/src/ap-table/components/setting/index.d.ts +2 -0
  31. package/es/src/ap-table/components/setting/index.mjs +5 -0
  32. package/es/src/ap-table/components/setting/modal/index.vue.mjs +277 -2
  33. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +2 -273
  34. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +11 -8
  35. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -0
  36. package/es/src/ap-table/components/setting/template/item.vue2.mjs +35 -35
  37. package/es/src/ap-table/constants.d.ts +3 -3
  38. package/es/src/ap-table/hooks/use-table-template-storage.mjs +55 -54
  39. package/es/src/ap-table/index.d.ts +2 -2
  40. package/es/src/ap-table/index.mjs +7 -6
  41. package/es/src/ap-table/interface.d.ts +16 -0
  42. package/es/src/business/ap-size-input/form-item.vue.mjs +6 -5
  43. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -0
  44. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -0
  45. package/es/src/business/batch-input-group/form-item.vue.mjs +8 -7
  46. package/es/src/business/hooks/usePageListAgGrid.mjs +2 -2
  47. package/es/src/index.mjs +54 -52
  48. package/es/src/locale/lang/en.mjs +1 -0
  49. package/es/src/locale/lang/zh-cn.mjs +1 -0
  50. package/es/src/render/render.d.ts +7 -4
  51. package/es/src/render/render.mjs +17 -7
  52. package/es/src/splitter/SplitBar.vue2.mjs +7 -7
  53. package/es/src/splitter/hooks/sizeUtil.d.ts +3 -0
  54. package/es/src/splitter/hooks/sizeUtil.mjs +44 -0
  55. package/es/src/splitter/hooks/useSizes.mjs +38 -41
  56. package/es/src/version.d.ts +1 -1
  57. package/es/src/version.mjs +1 -1
  58. package/lib/index.js +1 -1
  59. package/lib/src/ap-field/select/index.vue.d.ts +8 -18
  60. package/lib/src/ap-field/text/index.vue2.js +1 -1
  61. package/lib/src/ap-field/text/password.vue.js +1 -1
  62. package/lib/src/ap-form/ap-form.vue.d.ts +1 -0
  63. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  64. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -0
  65. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  66. package/lib/src/ap-form/interface.d.ts +5 -0
  67. package/lib/src/ap-form/item/index.vue.d.ts +1 -0
  68. package/lib/src/ap-form/item/index.vue.js +1 -1
  69. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  70. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  71. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  72. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  73. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  74. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  75. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  76. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  77. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  78. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  79. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  80. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  81. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -0
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/render/item.vue.js +1 -1
  84. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -0
  85. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  86. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  87. package/lib/src/ap-table/components/setting/index.d.ts +2 -0
  88. package/lib/src/ap-table/components/setting/index.js +1 -0
  89. package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
  90. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  91. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  92. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -0
  93. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  94. package/lib/src/ap-table/constants.d.ts +3 -3
  95. package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
  96. package/lib/src/ap-table/index.d.ts +2 -2
  97. package/lib/src/ap-table/index.js +1 -1
  98. package/lib/src/ap-table/interface.d.ts +16 -0
  99. package/lib/src/business/ap-size-input/form-item.vue.js +1 -1
  100. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -0
  101. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -0
  102. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  103. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  104. package/lib/src/index.js +1 -1
  105. package/lib/src/locale/lang/en.js +1 -1
  106. package/lib/src/locale/lang/zh-cn.js +1 -1
  107. package/lib/src/render/render.d.ts +7 -4
  108. package/lib/src/render/render.js +1 -1
  109. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  110. package/lib/src/splitter/hooks/sizeUtil.d.ts +3 -0
  111. package/lib/src/splitter/hooks/sizeUtil.js +1 -0
  112. package/lib/src/splitter/hooks/useSizes.js +1 -1
  113. package/lib/src/version.d.ts +1 -1
  114. package/lib/src/version.js +1 -1
  115. package/package.json +3 -3
@@ -1,16 +1,18 @@
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 { QuestionCircleOutlined as Z } from "@ant-design/icons-vue";
3
- import { Form as ee, Tooltip as oe, TypographyText as te } from "@aplus-frontend/antdv";
4
- import { useToken as re } from "@aplus-frontend/antdv/es/theme/internal";
5
- import { isFunction as v, cloneDeep as le, isArray as ae, omit as F } from "lodash-unified";
6
- import { isPromise as ne } from "../../utils/is.mjs";
1
+ import { defineComponent as L, useSlots as _, ref as $, shallowRef as j, onMounted as D, computed as E, unref as r, cloneVNode as M, createBlock as O, openBlock as q, mergeProps as K, createSlots as Q, withCtx as n, createVNode as u, renderSlot as c, renderList as U, createElementVNode as Y, normalizeClass as G, normalizeStyle as H, normalizeProps as J, guardReactiveProps as W } from "vue";
2
+ import { QuestionCircleOutlined as X } from "@ant-design/icons-vue";
3
+ import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
4
+ import { useToken as te } from "@aplus-frontend/antdv/es/theme/internal";
5
+ import { isFunction as y, cloneDeep as re, isArray as le, omit as b } from "lodash-unified";
6
+ import "../../render/index.mjs";
7
+ import { isPromise as ae } from "../../utils/is.mjs";
7
8
  import "../../config-provider/index.mjs";
8
- import { getValidVNodeList as ie } from "../../utils/slot.mjs";
9
- import { apFormItemColPropKeys as se } from "../constant.mjs";
10
- import { useInjectForm as ue } from "../context.mjs";
11
- import de from "../style/item.mjs";
12
- import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
13
- const ke = /* @__PURE__ */ L({
9
+ import { getValidVNodeList as ne } from "../../utils/slot.mjs";
10
+ import { apFormItemColPropKeys as ie } from "../constant.mjs";
11
+ import { useInjectForm as se } from "../context.mjs";
12
+ import ue from "../style/item.mjs";
13
+ import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
14
+ import fe from "../../render/render.mjs";
15
+ const Ne = /* @__PURE__ */ L({
14
16
  name: "ApFormItem",
15
17
  __name: "index",
16
18
  props: {
@@ -55,113 +57,125 @@ const ke = /* @__PURE__ */ L({
55
57
  transform: {},
56
58
  description: {},
57
59
  customFilled: {},
58
- disabled: { type: Boolean }
60
+ disabled: { type: Boolean },
61
+ autoFocus: { type: Boolean, default: void 0 }
59
62
  },
60
- setup(V, { expose: h }) {
61
- const o = V, m = _(), { model: p, updateModel: g, internalInstance: B } = ue(), { m: u, b: C } = fe("ap-form-item"), k = de("ap-form-item"), d = j(!1), n = E(), [, P] = re();
62
- M(async () => {
63
- let e = v(o.initialValue) ? o.initialValue() : o.initialValue;
64
- ne(e) && (e = await e), B?.registerField({
63
+ setup(v, { expose: F }) {
64
+ const o = v, V = _(), { model: p, updateModel: h, internalInstance: g } = se(), { m: d, b: B } = de("ap-form-item"), k = ue("ap-form-item"), f = $(!1), i = j(), [, C] = te();
65
+ D(async () => {
66
+ let e = y(o.initialValue) ? o.initialValue() : o.initialValue;
67
+ ae(e) && (e = await e), g?.registerField({
65
68
  name: o.name,
66
- initialValue: le(e),
69
+ initialValue: re(e),
67
70
  transform: o.transform
68
71
  });
69
72
  });
70
- const c = O(() => o.name ? ae(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
71
- function x(e, t) {
73
+ const m = E(() => o.name ? le(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
74
+ function P(e, t) {
72
75
  const l = Object.keys(t), a = { ...t };
73
76
  return l.forEach((s) => {
74
77
  s in e || delete a[s];
75
78
  }), a;
76
79
  }
77
- function N() {
78
- const e = m.default?.() || [];
80
+ function N(e) {
79
81
  if (!o.name)
80
82
  return e[0];
81
- const t = ie(e)[0];
83
+ const t = ne(e)[0];
82
84
  if (!t)
83
85
  return null;
84
86
  const l = t?.type?.props ?? {}, a = {
87
+ autofocus: o.autoFocus ?? t?.props?.autofocus,
85
88
  variant: o.bordered ? "borderless" : t?.props?.variant,
86
89
  bordered: o.bordered ? !1 : t?.props?.bordered,
87
- onFocus: S,
88
- onBlur: T
90
+ onFocus: I,
91
+ onBlur: S
89
92
  };
90
- return $(t, {
91
- ...x(l, a),
92
- [o.valuePropName]: r(c),
93
- [`onUpdate:${o.valuePropName}`]: I
93
+ return M(t, {
94
+ ...P(l, a),
95
+ [o.valuePropName]: r(m),
96
+ [`onUpdate:${o.valuePropName}`]: x
94
97
  });
95
98
  }
96
- function I(e) {
97
- g?.(o.name, e);
99
+ function x(e) {
100
+ h?.(o.name, e);
101
+ }
102
+ function I() {
103
+ f.value = !0;
98
104
  }
99
105
  function S() {
100
- d.value = !0;
106
+ f.value = !1;
101
107
  }
102
108
  function T() {
103
- d.value = !1;
109
+ i.value?.onFieldBlur();
104
110
  }
105
111
  function w() {
106
- n.value?.onFieldBlur();
112
+ i.value?.onFieldChange();
107
113
  }
108
114
  function R() {
109
- n.value?.onFieldChange();
115
+ i.value?.clearValidate();
110
116
  }
111
117
  function z() {
112
- n.value?.clearValidate();
113
- }
114
- function A() {
115
- n.value?.resetField();
118
+ i.value?.resetField();
116
119
  }
117
- function D(e = !1) {
118
- const t = r(c);
120
+ function A(e = !1) {
121
+ const t = r(m);
119
122
  if (!e || !o.transform)
120
123
  return t;
121
- const l = v(o.transform) ? o.transform : o.transform.transformer;
124
+ const l = y(o.transform) ? o.transform : o.transform.transformer;
122
125
  return o.transform ? l(t) : t;
123
126
  }
124
- return h({
125
- onFieldBlur: w,
126
- onFieldChange: R,
127
- clearValidate: z,
128
- resetField: A,
129
- getFieldValue: D
130
- }), (e, t) => (b(), y(r(ee).Item, q(
127
+ return F({
128
+ onFieldBlur: T,
129
+ onFieldChange: w,
130
+ clearValidate: R,
131
+ resetField: z,
132
+ getFieldValue: A
133
+ }), (e, t) => (q(), O(r(Z).Item, K(
131
134
  {
132
135
  ref_key: "formItemRef",
133
- ref: n
136
+ ref: i
134
137
  },
135
- r(F)(o, [...r(se), "tooltip", "label", "description"]),
138
+ r(b)(o, [
139
+ ...r(ie),
140
+ "tooltip",
141
+ "label",
142
+ "description",
143
+ "autoFocus"
144
+ ]),
136
145
  {
137
146
  class: {
138
- [r(u)("bordered")]: e.bordered,
139
- [r(u)("focused")]: e.bordered && d.value,
140
- [r(u)("disabled")]: e.bordered && e.disabled,
141
- [r(C)()]: !0,
147
+ [r(d)("bordered")]: e.bordered,
148
+ [r(d)("focused")]: e.bordered && f.value,
149
+ [r(d)("disabled")]: e.bordered && e.disabled,
150
+ [r(B)()]: !0,
142
151
  [r(k)]: !0
143
152
  },
144
153
  colon: e.bordered ? !1 : o.colon
145
154
  }
146
- ), K({
147
- default: i(() => [
148
- (b(), y(Q(N())))
155
+ ), Q({
156
+ default: n(() => [
157
+ u(r(fe), { renderer: N }, {
158
+ default: n(() => [
159
+ c(e.$slots, "default")
160
+ ]),
161
+ _: 3
162
+ })
149
163
  ]),
150
164
  _: 2
151
165
  }, [
152
166
  o.tooltip ? {
153
167
  name: "tooltip",
154
- fn: i(({ class: l }) => [
168
+ fn: n(({ class: l }) => [
155
169
  Y("span", {
156
170
  class: G(l)
157
171
  }, [
158
- f(r(oe), {
172
+ u(r(ee), {
159
173
  title: o.tooltip
160
174
  }, {
161
- default: i(() => [
162
- f(r(Z), {
175
+ default: n(() => [
176
+ u(r(X), {
163
177
  style: H({
164
- color: r(P).colorTextTertiary,
178
+ color: r(C).colorTextTertiary,
165
179
  fontSize: "14px",
166
180
  transform: "translateY(1px)"
167
181
  })
@@ -175,8 +189,8 @@ const ke = /* @__PURE__ */ L({
175
189
  } : void 0,
176
190
  e.label ? {
177
191
  name: "label",
178
- fn: i(() => [
179
- f(r(te), {
192
+ fn: n(() => [
193
+ u(r(oe), {
180
194
  content: e.label,
181
195
  ellipsis: { tooltip: e.label },
182
196
  style: { "min-width": "0px", flex: "1" }
@@ -184,15 +198,15 @@ const ke = /* @__PURE__ */ L({
184
198
  ]),
185
199
  key: "1"
186
200
  } : void 0,
187
- U(r(F)(m, "default"), (l, a) => ({
201
+ U(r(b)(V, "default"), (l, a) => ({
188
202
  name: a,
189
- fn: i((s) => [
190
- J(e.$slots, a, W(X(s || {})))
203
+ fn: n((s) => [
204
+ c(e.$slots, a, J(W(s || {})))
191
205
  ])
192
206
  }))
193
207
  ]), 1040, ["class", "colon"]));
194
208
  }
195
209
  });
196
210
  export {
197
- ke as default
211
+ Ne as default
198
212
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as f, useSlots as m, createBlock as u, openBlock as c, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as v, renderSlot as x } from "vue";
1
+ import { defineComponent as u, useSlots as f, createBlock as m, openBlock as c, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as B, withCtx as r, createVNode as b, mergeProps as y, renderList as _, renderSlot as v } from "vue";
2
2
  import { omit as i } from "lodash-unified";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import "../../item/index.vue2.mjs";
5
- import y from "../../item/index.vue.mjs";
5
+ import x from "../../item/index.vue.mjs";
6
6
  import g from "../../../ap-field/checkbox/index.vue.mjs";
7
- const w = /* @__PURE__ */ f({
7
+ const w = /* @__PURE__ */ u({
8
8
  name: "ApFormItemCheckbox",
9
9
  __name: "index",
10
10
  props: {
@@ -49,20 +49,21 @@ const w = /* @__PURE__ */ f({
49
49
  description: {},
50
50
  customFilled: {},
51
51
  disabled: { type: Boolean, default: void 0 },
52
+ autoFocus: { type: Boolean },
52
53
  field: { default: () => ({}) }
53
54
  },
54
55
  setup(s) {
55
- const d = s, n = m();
56
- return (e, h) => (c(), u(y, a(t(o(i)(d, ["field"]))), b({
56
+ const n = s, d = f();
57
+ return (e, h) => (c(), m(x, a(t(o(i)(n, ["field"]))), B({
57
58
  default: r(() => [
58
- B(o(g), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
59
+ b(o(g), y({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
59
60
  ]),
60
61
  _: 2
61
62
  }, [
62
- v(o(i)(n, "default"), (C, l) => ({
63
+ _(o(i)(d, "default"), (C, l) => ({
63
64
  name: l,
64
65
  fn: r((p) => [
65
- x(e.$slots, l, a(t(p || {})))
66
+ v(e.$slots, l, a(t(p || {})))
66
67
  ])
67
68
  }))
68
69
  ]), 1040));
@@ -1,11 +1,11 @@
1
- import { defineComponent as h, useSlots as B, computed as v, createBlock as y, openBlock as x, normalizeProps as r, guardReactiveProps as t, unref as l, createSlots as s, withCtx as d, createVNode as g, renderList as p, renderSlot as f } from "vue";
1
+ import { defineComponent as B, useSlots as h, computed as y, createBlock as v, openBlock as x, normalizeProps as t, guardReactiveProps as a, unref as l, createSlots as s, withCtx as d, createVNode as g, renderList as p, renderSlot as f } from "vue";
2
2
  import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
3
3
  import "../../../ap-field/date/index.vue2.mjs";
4
4
  import { apFormItemSlotNames as u } from "../../constant.mjs";
5
5
  import "../../item/index.vue2.mjs";
6
6
  import k from "../../item/index.vue.mjs";
7
7
  import C from "../../../ap-field/date/index.vue.mjs";
8
- const L = /* @__PURE__ */ h({
8
+ const L = /* @__PURE__ */ B({
9
9
  name: "ApFormItemDate",
10
10
  __name: "index",
11
11
  props: {
@@ -51,23 +51,24 @@ const L = /* @__PURE__ */ h({
51
51
  description: {},
52
52
  customFilled: {},
53
53
  disabled: { type: Boolean, default: void 0 },
54
+ autoFocus: { type: Boolean },
54
55
  field: { default: () => ({}) },
55
56
  placeholder: {}
56
57
  },
57
58
  setup(c) {
58
- const e = c, i = B(), b = v(() => ({
59
+ const e = c, i = h(), b = y(() => ({
59
60
  placeholder: e.placeholder,
60
61
  disabled: e.disabled,
61
62
  ...e.field,
62
63
  bordered: e.bordered ? !1 : F(e.field?.bordered) ? !0 : e.field.bordered
63
64
  }));
64
- return (n, P) => (x(), y(k, r(t(l(m)(e, ["field", "placeholder"]))), s({
65
+ return (n, P) => (x(), v(k, t(a(l(m)(e, ["field", "placeholder"]))), s({
65
66
  default: d(() => [
66
- g(C, r(t(b.value)), s({ _: 2 }, [
67
+ g(C, t(a(b.value)), s({ _: 2 }, [
67
68
  p(l(m)(i, l(u)), (_, o) => ({
68
69
  name: o,
69
- fn: d((a) => [
70
- f(n.$slots, o, r(t(a || {})))
70
+ fn: d((r) => [
71
+ f(n.$slots, o, t(a(r || {})))
71
72
  ])
72
73
  }))
73
74
  ]), 1040)
@@ -76,8 +77,8 @@ const L = /* @__PURE__ */ h({
76
77
  }, [
77
78
  p(l(S)(i, l(u)), (_, o) => ({
78
79
  name: o,
79
- fn: d((a) => [
80
- f(n.$slots, o, r(t(a || {})))
80
+ fn: d((r) => [
81
+ f(n.$slots, o, t(a(r || {})))
81
82
  ])
82
83
  }))
83
84
  ]), 1040));
@@ -1,11 +1,11 @@
1
- import { defineComponent as h, useSlots as B, computed as g, createBlock as v, openBlock as y, normalizeProps as a, guardReactiveProps as r, unref as o, createSlots as s, withCtx as d, createVNode as x, renderList as p, renderSlot as f } from "vue";
1
+ import { defineComponent as B, useSlots as h, computed as y, createBlock as g, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as o, createSlots as s, withCtx as d, createVNode as x, renderList as p, renderSlot as f } from "vue";
2
2
  import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { apFormItemSlotNames as u } from "../../constant.mjs";
5
5
  import "../../item/index.vue2.mjs";
6
6
  import k from "../../item/index.vue.mjs";
7
7
  import C from "../../../ap-field/date-range/index.vue.mjs";
8
- const I = /* @__PURE__ */ h({
8
+ const I = /* @__PURE__ */ B({
9
9
  name: "ApFormItemDateRange",
10
10
  __name: "index",
11
11
  props: {
@@ -51,23 +51,24 @@ const I = /* @__PURE__ */ h({
51
51
  description: {},
52
52
  customFilled: {},
53
53
  disabled: { type: Boolean, default: void 0 },
54
+ autoFocus: { type: Boolean },
54
55
  field: { default: () => ({}) },
55
56
  placeholder: {}
56
57
  },
57
58
  setup(c) {
58
- const e = c, n = B(), b = g(() => ({
59
+ const e = c, n = h(), b = y(() => ({
59
60
  placeholder: e.placeholder,
60
61
  disabled: e.disabled,
61
62
  ...e.field,
62
63
  bordered: e.bordered ? !1 : F(e.field?.bordered) ? !0 : e.field?.bordered
63
64
  }));
64
- return (i, P) => (y(), v(k, a(r(o(m)(e, ["field", "placeholder"]))), s({
65
+ return (i, P) => (v(), g(k, a(t(o(m)(e, ["field", "placeholder"]))), s({
65
66
  default: d(() => [
66
- x(o(C), a(r(b.value)), s({ _: 2 }, [
67
+ x(o(C), a(t(b.value)), s({ _: 2 }, [
67
68
  p(o(m)(n, o(u)), (_, l) => ({
68
69
  name: l,
69
- fn: d((t) => [
70
- f(i.$slots, l, a(r(t || {})))
70
+ fn: d((r) => [
71
+ f(i.$slots, l, a(t(r || {})))
71
72
  ])
72
73
  }))
73
74
  ]), 1040)
@@ -76,8 +77,8 @@ const I = /* @__PURE__ */ h({
76
77
  }, [
77
78
  p(o(S)(n, o(u)), (_, l) => ({
78
79
  name: l,
79
- fn: d((t) => [
80
- f(i.$slots, l, a(r(t || {})))
80
+ fn: d((r) => [
81
+ f(i.$slots, l, a(t(r || {})))
81
82
  ])
82
83
  }))
83
84
  ]), 1040));
@@ -1,11 +1,11 @@
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";
1
+ import { defineComponent as B, useSlots as v, 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 F, mergeProps as k, renderList as i, renderSlot as u } from "vue";
2
2
  import { omit as f, pick as N } from "lodash-unified";
3
3
  import "../../../ap-field/number/index.vue2.mjs";
4
4
  import { apFormItemSlotNames as m } from "../../constant.mjs";
5
5
  import "../../item/index.vue2.mjs";
6
6
  import S from "../../item/index.vue.mjs";
7
7
  import C from "../../../ap-field/number/index.vue.mjs";
8
- const T = /* @__PURE__ */ y({
8
+ const T = /* @__PURE__ */ B({
9
9
  name: "ApFormItemNumber",
10
10
  __name: "index",
11
11
  props: {
@@ -51,11 +51,12 @@ const T = /* @__PURE__ */ y({
51
51
  description: {},
52
52
  customFilled: {},
53
53
  disabled: { type: Boolean, default: void 0 },
54
+ autoFocus: { type: Boolean },
54
55
  field: { default: () => ({}) },
55
56
  placeholder: {}
56
57
  },
57
58
  setup(c, { expose: b }) {
58
- const h = c, p = B(), a = _();
59
+ const h = c, p = v(), a = _();
59
60
  return b({
60
61
  focus: () => {
61
62
  a.value?.focus();
@@ -65,13 +66,13 @@ const T = /* @__PURE__ */ y({
65
66
  }
66
67
  }), (e, $) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder"]))), d({
67
68
  default: n(() => [
68
- k(C, F({
69
+ F(C, k({
69
70
  ref_key: "inputNumberRef",
70
71
  ref: a,
71
72
  placeholder: e.placeholder,
72
73
  disabled: e.disabled
73
74
  }, e.field), d({ _: 2 }, [
74
- i(l(f)(p, l(m)), (v, o) => ({
75
+ i(l(f)(p, l(m)), (y, o) => ({
75
76
  name: o,
76
77
  fn: n((r) => [
77
78
  u(e.$slots, o, t(s(r || {})))
@@ -81,7 +82,7 @@ const T = /* @__PURE__ */ y({
81
82
  ]),
82
83
  _: 2
83
84
  }, [
84
- i(l(N)(p, l(m)), (v, o) => ({
85
+ i(l(N)(p, l(m)), (y, o) => ({
85
86
  name: o,
86
87
  fn: n((r) => [
87
88
  u(e.$slots, o, t(s(r || {})))
@@ -1,10 +1,10 @@
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";
1
+ import { defineComponent as f, useSlots as m, shallowRef as c, createBlock as b, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as y, withCtx as s, createVNode as B, mergeProps as _, renderList as x, renderSlot as g } from "vue";
2
2
  import { omit as h } from "lodash-unified";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import "../../item/index.vue2.mjs";
5
- import k from "../../item/index.vue.mjs";
6
- import C from "../../../ap-field/radio/index.vue.mjs";
7
- const q = /* @__PURE__ */ u({
5
+ import F from "../../item/index.vue.mjs";
6
+ import k from "../../../ap-field/radio/index.vue.mjs";
7
+ const q = /* @__PURE__ */ f({
8
8
  name: "ApFormItemRadio",
9
9
  __name: "index",
10
10
  props: {
@@ -49,6 +49,7 @@ const q = /* @__PURE__ */ u({
49
49
  description: {},
50
50
  customFilled: {},
51
51
  disabled: { type: Boolean, default: void 0 },
52
+ autoFocus: { type: Boolean },
52
53
  field: { default: () => ({}) }
53
54
  },
54
55
  setup(i, { expose: n }) {
@@ -60,9 +61,9 @@ const q = /* @__PURE__ */ u({
60
61
  blur: () => {
61
62
  e.value?.blur();
62
63
  }
63
- }), (o, S) => (v(), b(k, a(t(r(h)(d, ["field"]))), _({
64
+ }), (o, S) => (v(), b(F, a(t(r(h)(d, ["field"]))), y({
64
65
  default: s(() => [
65
- y(r(C), B({
66
+ B(r(k), _({
66
67
  ref_key: "radioRef",
67
68
  ref: e,
68
69
  disabled: o.disabled
@@ -72,8 +73,8 @@ const q = /* @__PURE__ */ u({
72
73
  }, [
73
74
  x(p, (P, l) => ({
74
75
  name: l,
75
- fn: s((f) => [
76
- g(o.$slots, l, a(t(f || {})))
76
+ fn: s((u) => [
77
+ g(o.$slots, l, a(t(u || {})))
77
78
  ])
78
79
  }))
79
80
  ]), 1040));
@@ -102,7 +102,7 @@ declare function __VLS_template(): {
102
102
  readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
103
103
  searchValue: string;
104
104
  }) => number) | undefined;
105
- readonly optionFilterProp?: string | undefined;
105
+ readonly optionFilterProp?: string | string[] | undefined;
106
106
  readonly optionLabelProp?: string | undefined;
107
107
  readonly options?: DefaultOptionType[] | undefined;
108
108
  readonly defaultActiveFirstOption?: boolean | undefined;
@@ -269,7 +269,7 @@ declare function __VLS_template(): {
269
269
  filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
270
270
  searchValue: string;
271
271
  }) => number>;
272
- optionFilterProp: StringConstructor;
272
+ optionFilterProp: PropType<string | string[]>;
273
273
  optionLabelProp: StringConstructor;
274
274
  options: PropType< DefaultOptionType[]>;
275
275
  defaultActiveFirstOption: {
@@ -491,7 +491,7 @@ declare function __VLS_template(): {
491
491
  filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
492
492
  searchValue: string;
493
493
  }) => number>;
494
- optionFilterProp: StringConstructor;
494
+ optionFilterProp: PropType<string | string[]>;
495
495
  optionLabelProp: StringConstructor;
496
496
  options: PropType< DefaultOptionType[]>;
497
497
  defaultActiveFirstOption: {
@@ -763,7 +763,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
763
763
  readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
764
764
  searchValue: string;
765
765
  }) => number) | undefined;
766
- readonly optionFilterProp?: string | undefined;
766
+ readonly optionFilterProp?: string | string[] | undefined;
767
767
  readonly optionLabelProp?: string | undefined;
768
768
  readonly options?: DefaultOptionType[] | undefined;
769
769
  readonly defaultActiveFirstOption?: boolean | undefined;
@@ -930,7 +930,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
930
930
  filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
931
931
  searchValue: string;
932
932
  }) => number>;
933
- optionFilterProp: StringConstructor;
933
+ optionFilterProp: PropType<string | string[]>;
934
934
  optionLabelProp: StringConstructor;
935
935
  options: PropType< DefaultOptionType[]>;
936
936
  defaultActiveFirstOption: {
@@ -1152,7 +1152,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
1152
1152
  filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
1153
1153
  searchValue: string;
1154
1154
  }) => number>;
1155
- optionFilterProp: StringConstructor;
1155
+ optionFilterProp: PropType<string | string[]>;
1156
1156
  optionLabelProp: StringConstructor;
1157
1157
  options: PropType< DefaultOptionType[]>;
1158
1158
  defaultActiveFirstOption: {
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as y, useSlots as B, shallowRef as x, computed as g, createBlock as F, openBlock as S, 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 { isUndefined as P, omit as c, pick as q } from "lodash-unified";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { apFormItemSlotNames as m } from "../../constant.mjs";
@@ -51,6 +51,7 @@ const E = /* @__PURE__ */ y({
51
51
  description: {},
52
52
  customFilled: {},
53
53
  disabled: { type: Boolean, default: void 0 },
54
+ autoFocus: { type: Boolean },
54
55
  field: { default: () => ({}) },
55
56
  placeholder: {}
56
57
  },
@@ -71,7 +72,7 @@ const E = /* @__PURE__ */ y({
71
72
  request: () => {
72
73
  r.value?.request();
73
74
  }
74
- }), (i, A) => (F(), S(R, a(s(o(c)(e, ["field", "placeholder"]))), p({
75
+ }), (i, A) => (S(), F(R, a(s(o(c)(e, ["field", "placeholder"]))), p({
75
76
  default: d(() => [
76
77
  k(o($), C(v.value, {
77
78
  ref_key: "selectRef",
@@ -1,11 +1,11 @@
1
- import { defineComponent as b, useSlots as B, createBlock as h, openBlock as v, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as i, createVNode as y, mergeProps as g, renderList as n, renderSlot as p } from "vue";
1
+ import { defineComponent as _, useSlots as b, createBlock as y, openBlock as h, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as i, createVNode as v, mergeProps as g, renderList as n, renderSlot as p } from "vue";
2
2
  import { omit as m, pick as x } from "lodash-unified";
3
3
  import "../../../ap-field/switch/index.vue2.mjs";
4
4
  import { apFormItemSlotNames as f } from "../../constant.mjs";
5
5
  import "../../item/index.vue2.mjs";
6
- import S from "../../item/index.vue.mjs";
7
- import k from "../../../ap-field/switch/index.vue.mjs";
8
- const I = /* @__PURE__ */ b({
6
+ import F from "../../item/index.vue.mjs";
7
+ import S from "../../../ap-field/switch/index.vue.mjs";
8
+ const I = /* @__PURE__ */ _({
9
9
  name: "ApFormItemSwitch",
10
10
  __name: "index",
11
11
  props: {
@@ -50,14 +50,15 @@ const I = /* @__PURE__ */ b({
50
50
  description: {},
51
51
  customFilled: {},
52
52
  disabled: { type: Boolean, default: void 0 },
53
+ autoFocus: { type: Boolean },
53
54
  field: { default: () => ({}) }
54
55
  },
55
56
  setup(u) {
56
- const c = u, s = B();
57
- return (l, F) => (v(), h(S, t(r(o(m)(c, ["field", "disabled"]))), d({
57
+ const c = u, s = b();
58
+ return (l, k) => (h(), y(F, t(r(o(m)(c, ["field", "disabled"]))), d({
58
59
  default: i(() => [
59
- y(k, g({ disabled: l.disabled }, l.field), d({ _: 2 }, [
60
- n(o(m)(s, o(f)), (_, e) => ({
60
+ v(S, g({ disabled: l.disabled }, l.field), d({ _: 2 }, [
61
+ n(o(m)(s, o(f)), (B, e) => ({
61
62
  name: e,
62
63
  fn: i((a) => [
63
64
  p(l.$slots, e, t(r(a || {})))
@@ -67,7 +68,7 @@ const I = /* @__PURE__ */ b({
67
68
  ]),
68
69
  _: 2
69
70
  }, [
70
- n(o(x)(s, o(f)), (_, e) => ({
71
+ n(o(x)(s, o(f)), (B, e) => ({
71
72
  name: e,
72
73
  fn: i((a) => [
73
74
  p(l.$slots, e, t(r(a || {})))
@@ -1,10 +1,10 @@
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";
1
+ import { defineComponent as g, 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 { omit as m, pick as P } from "lodash-unified";
3
3
  import { ApField as w } from "../../../ap-field/index.mjs";
4
4
  import { apFormItemSlotNames as v } from "../../constant.mjs";
5
5
  import "../../item/index.vue2.mjs";
6
6
  import A from "../../item/index.vue.mjs";
7
- const E = /* @__PURE__ */ B({
7
+ const E = /* @__PURE__ */ g({
8
8
  name: "ApFormItemText",
9
9
  __name: "index",
10
10
  props: {
@@ -50,11 +50,12 @@ const E = /* @__PURE__ */ B({
50
50
  description: {},
51
51
  customFilled: {},
52
52
  disabled: { type: Boolean, default: void 0 },
53
+ autoFocus: { type: Boolean },
53
54
  field: { default: () => ({}) },
54
55
  placeholder: {}
55
56
  },
56
57
  setup(b, { expose: h }) {
57
- const { Text: g } = w, i = x(), y = b, o = S();
58
+ const { Text: y } = w, i = x(), B = b, o = S();
58
59
  return h({
59
60
  focus: (e) => {
60
61
  o.value?.focus(e);
@@ -69,9 +70,9 @@ const E = /* @__PURE__ */ B({
69
70
  o.value?.select();
70
71
  },
71
72
  input: _(() => o.value?.input)
72
- }), (e, d) => (R(), F(A, s(n(l(m)(y, ["field", "placeholder"]))), u({
73
+ }), (e, d) => (R(), F(A, s(n(l(m)(B, ["field", "placeholder"]))), u({
73
74
  default: p(() => [
74
- k(l(g), C({
75
+ k(l(y), C({
75
76
  ref_key: "inputRef",
76
77
  ref: o,
77
78
  disabled: e.disabled,