@aplus-frontend/ui 7.10.1 → 7.10.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 (31) hide show
  1. package/es/src/ag-grid/editable/index.vue.mjs +85 -79
  2. package/es/src/ap-action/item-dropdown/index.vue.mjs +43 -38
  3. package/es/src/ap-action/style/dropdown-item.mjs +17 -11
  4. package/es/src/ap-action/style/index.mjs +8 -9
  5. package/es/src/ap-form/style/item.mjs +15 -15
  6. package/es/src/config-provider/config-provider-props.d.ts +12 -12
  7. package/es/src/config-provider/config-provider-props.mjs +12 -12
  8. package/es/src/config-provider/config-provider.d.ts +27 -27
  9. package/es/src/config-provider/config-provider.mjs +42 -40
  10. package/es/src/config-provider/hooks/use-global-config.d.ts +13 -13
  11. package/es/src/config-provider/index.d.ts +43 -43
  12. package/es/src/design-token/interface.d.ts +2 -0
  13. package/es/src/utils/cssinjs/index.mjs +36 -35
  14. package/es/src/version.d.ts +1 -1
  15. package/es/src/version.mjs +1 -1
  16. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  17. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  18. package/lib/src/ap-action/style/dropdown-item.js +1 -1
  19. package/lib/src/ap-action/style/index.js +1 -1
  20. package/lib/src/ap-form/style/item.js +1 -1
  21. package/lib/src/config-provider/config-provider-props.d.ts +12 -12
  22. package/lib/src/config-provider/config-provider-props.js +1 -1
  23. package/lib/src/config-provider/config-provider.d.ts +27 -27
  24. package/lib/src/config-provider/config-provider.js +1 -1
  25. package/lib/src/config-provider/hooks/use-global-config.d.ts +13 -13
  26. package/lib/src/config-provider/index.d.ts +43 -43
  27. package/lib/src/design-token/interface.d.ts +2 -0
  28. package/lib/src/utils/cssinjs/index.js +1 -1
  29. package/lib/src/version.d.ts +1 -1
  30. package/lib/src/version.js +1 -1
  31. package/package.json +5 -6
@@ -1,18 +1,18 @@
1
- import { defineComponent as G, useSlots as U, ref as y, watch as W, unref as n, createBlock as M, openBlock as $, withCtx as d, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
- import { isEqual as ee, isArray as g, omit as oe } from "lodash-unified";
3
- import { ApForm as u } from "../../ap-form/index.mjs";
1
+ import { defineComponent as $, useSlots as q, ref as b, watch as J, unref as n, createBlock as Q, openBlock as X, withCtx as c, createVNode as R, mergeProps as Y, createSlots as Z, renderList as ee, renderSlot as oe, normalizeProps as ae, guardReactiveProps as te } from "vue";
2
+ import { isEqual as ne, isArray as v, omit as le } from "lodash-unified";
3
+ import { ApForm as f } from "../../ap-form/index.mjs";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { useEditableApi as ae } from "../hooks/use-editable-api.mjs";
7
- import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
6
+ import { useEditableApi as re } from "../hooks/use-editable-api.mjs";
7
+ import { useGetEditableColumns as se } from "../hooks/use-editable-columns.mjs";
8
8
  import "../index.vue2.mjs";
9
- import ne from "../style/editable.mjs";
10
- import { arrayToObject as p } from "./utils.mjs";
11
- import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
12
- import { useControllableValue as re } from "../../hooks/useControllableValue.mjs";
13
- import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
14
- import ie from "../index.vue.mjs";
15
- const xe = /* @__PURE__ */ G({
9
+ import ie from "../style/editable.mjs";
10
+ import { arrayToObject as y, getRowKey as de } from "./utils.mjs";
11
+ import { useNamespace as ue } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import { useControllableValue as pe } from "../../hooks/useControllableValue.mjs";
13
+ import { useGlobalConfig as me } from "../../config-provider/hooks/use-global-config.mjs";
14
+ import ce from "../index.vue.mjs";
15
+ const Fe = /* @__PURE__ */ $({
16
16
  name: "EditableGrid",
17
17
  __name: "index",
18
18
  props: {
@@ -131,107 +131,113 @@ const xe = /* @__PURE__ */ G({
131
131
  onFieldChange: {}
132
132
  },
133
133
  emits: ["update:value"],
134
- setup(h, {
135
- expose: b,
136
- emit: v
134
+ setup(C, {
135
+ expose: x,
136
+ emit: B
137
137
  }) {
138
- const C = U(), o = h, {
139
- b: R
140
- } = le("editable-aggrid"), x = ne("editable-aggrid"), B = v, s = y(), {
138
+ const S = q(), o = C, {
139
+ b: T
140
+ } = ue("editable-aggrid"), _ = ie("editable-aggrid"), F = B, d = b(), {
141
141
  value: r,
142
- updateValue: m
143
- } = re(o, B), l = y(), S = u.useWatch(o.name, l);
144
- W(r, (e) => {
145
- const a = p(e, o.rowKey);
146
- ee(a, n(S)) || l.value?.setFieldValue(o.name, a);
142
+ updateValue: w
143
+ } = pe(o, F), l = b(), E = f.useWatch(o.name, l);
144
+ J(r, (e) => {
145
+ const a = y(e, o.rowKey);
146
+ ne(a, n(E)) || l.value?.setFieldValue(o.name, a);
147
147
  }, {
148
148
  deep: !0
149
149
  });
150
- const T = se("valueTypeMap"), _ = te(o, T), {
151
- add: F,
152
- addMultiple: E,
153
- remove: N,
154
- removeByKey: A,
155
- getRowData: V,
156
- getRowsData: j,
157
- setRowData: k,
158
- clear: D,
159
- refreshRowIds: i
160
- } = ae(o, l, r, m);
161
- function K() {
162
- const e = s.value?._internalGridApi;
163
- if (!i.value?.length || !e)
150
+ const K = me("valueTypeMap"), k = se(o, K), {
151
+ add: N,
152
+ addMultiple: j,
153
+ remove: A,
154
+ removeByKey: D,
155
+ getRowData: I,
156
+ getRowsData: V,
157
+ setRowData: H,
158
+ clear: O,
159
+ refreshRowIds: p
160
+ } = re(o, l, r, w);
161
+ function z() {
162
+ const e = d.value?._internalGridApi;
163
+ if (!p.value?.length || !e)
164
164
  return;
165
- const a = i.value.map((t) => e.getRowNode(t)).filter((t) => !!t);
165
+ const a = p.value.map((t) => e.getRowNode(t)).filter((t) => !!t);
166
166
  e.refreshCells({
167
167
  rowNodes: a,
168
168
  force: !0
169
- }), i.value = [];
169
+ }), p.value = [];
170
170
  }
171
- function H() {
171
+ function L() {
172
172
  l.value?.resetFields();
173
173
  }
174
- function I(e) {
175
- return e ? (g(e) ? e : [e]).map((t) => g(t) ? [o.name, ...t] : [o.name, t]) : void 0;
174
+ function P(e) {
175
+ return e ? (v(e) ? e : [e]).map((t) => v(t) ? [o.name, ...t] : [o.name, t]) : void 0;
176
176
  }
177
- async function z(e, a) {
178
- return (await l.value?.validateFields(I(e), a))?.[o.name];
177
+ async function G(e, a) {
178
+ const s = (await l.value?.validateFields(P(e), a))?.[o.name];
179
+ try {
180
+ const u = Object.keys(s), h = r.value.map((i) => de(i, void 0, o.rowKey));
181
+ return u.sort((i, M) => h.findIndex((m) => String(m) === i) - h.findIndex((m) => String(m) === M)), u.map((i) => s[i]);
182
+ } catch {
183
+ return s;
184
+ }
179
185
  }
180
- function L(e) {
181
- m(e);
182
- const a = p(e, o.rowKey);
186
+ function U(e) {
187
+ w(e);
188
+ const a = y(e, o.rowKey);
183
189
  l.value?.setFieldValue(o.name, a);
184
190
  }
185
- function c(e, a) {
191
+ function g(e, a) {
186
192
  const t = e === "end" ? r.value.length - 1 : e;
187
- s.value?.scrollToRow(t, a);
193
+ d.value?.scrollToRow(t, a);
188
194
  }
189
- function O(e, a) {
190
- s.value?.scrollToColumn(e, a);
195
+ function W(e, a) {
196
+ d.value?.scrollToColumn(e, a);
191
197
  }
192
- return b({
193
- resetFields: H,
194
- validateFields: z,
195
- add: F,
196
- addMultiple: E,
197
- remove: N,
198
- removeByKey: A,
199
- getRowData: V,
200
- getRowsData: j,
201
- setRowData: k,
202
- clear: D,
203
- setTableData: L,
204
- scrollTo: c,
205
- scrollToRow: c,
206
- scrollToColumn: O
207
- }), (e, a) => ($(), M(n(u), {
198
+ return x({
199
+ resetFields: L,
200
+ validateFields: G,
201
+ add: N,
202
+ addMultiple: j,
203
+ remove: A,
204
+ removeByKey: D,
205
+ getRowData: I,
206
+ getRowsData: V,
207
+ setRowData: H,
208
+ clear: O,
209
+ setTableData: U,
210
+ scrollTo: g,
211
+ scrollToRow: g,
212
+ scrollToColumn: W
213
+ }), (e, a) => (X(), Q(n(f), {
208
214
  ref_key: "formRef",
209
215
  ref: l,
210
216
  "initial-values": {
211
- [o.name]: n(p)(n(r), o.rowKey)
217
+ [o.name]: n(y)(n(r), o.rowKey)
212
218
  },
213
219
  style: {
214
220
  height: "100%"
215
221
  }
216
222
  }, {
217
- default: d(() => [w(n(u).FormItem, {
223
+ default: c(() => [R(n(f).FormItem, {
218
224
  name: e.name,
219
225
  "no-style": ""
220
226
  }, {
221
- default: d(() => [w(ie, q(n(oe)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
227
+ default: c(() => [R(ce, Y(n(le)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
222
228
  ref_key: "tableRef",
223
- ref: s,
224
- class: [n(R)(), n(x)],
229
+ ref: d,
230
+ class: [n(T)(), n(_)],
225
231
  size: "mini",
226
- columns: n(_),
232
+ columns: n(k),
227
233
  "data-source": n(r),
228
234
  "search-form": !1,
229
- onUpdate: K
230
- }), J({
235
+ onUpdate: z
236
+ }), Z({
231
237
  _: 2
232
- }, [Q(C, (t, f) => ({
233
- name: f,
234
- fn: d((P) => [X(e.$slots, f, Y(Z(P || {})))])
238
+ }, [ee(S, (t, s) => ({
239
+ name: s,
240
+ fn: c((u) => [oe(e.$slots, s, ae(te(u || {})))])
235
241
  }))]), 1040, ["class", "columns", "data-source"])]),
236
242
  _: 3
237
243
  }, 8, ["name"])]),
@@ -240,5 +246,5 @@ const xe = /* @__PURE__ */ G({
240
246
  }
241
247
  });
242
248
  export {
243
- xe as default
249
+ Fe as default
244
250
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as w, ref as B, computed as A, createBlock as n, openBlock as t, unref as o, normalizeClass as s, withCtx as l, createElementVNode as c, createVNode as d, normalizeProps as b, guardReactiveProps as C, renderSlot as I, resolveDynamicComponent as h, createCommentVNode as D, createElementBlock as P, Fragment as N, renderList as $, mergeProps as p } from "vue";
2
- import { Dropdown as L, Menu as V, MenuItem as x } from "@aplus-frontend/antdv";
3
- import { IconApAdLineDown as z } from "@aplus-frontend/icon";
4
- import { isUndefined as E, omit as F } from "lodash-unified";
1
+ import { defineComponent as C, ref as w, computed as A, createBlock as r, openBlock as t, unref as o, normalizeClass as s, withCtx as a, createElementVNode as u, createVNode as d, normalizeProps as B, guardReactiveProps as b, renderSlot as I, resolveDynamicComponent as D, createCommentVNode as P, createElementBlock as N, Fragment as $, renderList as L, mergeProps as m } from "vue";
2
+ import { Dropdown as V, Menu as z, MenuItem as E } from "@aplus-frontend/antdv";
3
+ import { IconApAdLineDown as F } from "@aplus-frontend/icon";
4
+ import { isUndefined as M, omit as S } from "lodash-unified";
5
5
  import "../../config-provider/index.mjs";
6
6
  import "../item/index.vue.mjs";
7
7
  import "../item-modal/index.vue2.mjs";
8
8
  import "../item-popconfirm/index.vue2.mjs";
9
- import M from "../style/dropdown-item.mjs";
10
- import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
11
- import y from "../item/index.vue2.mjs";
12
- import U from "../item-modal/index.vue.mjs";
13
- import R from "../item-popconfirm/index.vue.mjs";
14
- const ee = /* @__PURE__ */ w({
9
+ import x from "../style/dropdown-item.mjs";
10
+ import { useNamespace as O } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import g from "../item/index.vue2.mjs";
12
+ import R from "../item-modal/index.vue.mjs";
13
+ import U from "../item-popconfirm/index.vue.mjs";
14
+ const oe = /* @__PURE__ */ C({
15
15
  name: "ApActionItemDropDown",
16
16
  __name: "index",
17
17
  props: {
@@ -29,42 +29,47 @@ const ee = /* @__PURE__ */ w({
29
29
  iconFirst: { type: Boolean },
30
30
  tooltip: {}
31
31
  },
32
- setup(g) {
33
- const m = g, i = B(!1), { e: f, b: _ } = S("action-item-dropdown"), u = M("action-item-dropdown"), v = A(() => m.actions.filter((e) => e.visible || E(e.visible)).map((e) => ({
32
+ setup(y) {
33
+ const p = y, i = w(!1), { e: c, b: _ } = O("action-item-dropdown"), f = x("action-item-dropdown"), v = (e, n) => {
34
+ (n.source === "trigger" || e) && (i.value = e);
35
+ }, k = A(() => p.actions.filter((e) => e.visible || M(e.visible)).map((e) => ({
34
36
  ...e,
35
- onAction: async (a) => {
37
+ onClick: (n) => {
38
+ e.onClick?.(n), !e.onAction && (i.value = !1);
39
+ },
40
+ onAction: e.onAction ? async (n) => {
36
41
  try {
37
- await e.onAction?.(a);
42
+ await e.onAction?.(n);
38
43
  } finally {
39
44
  i.value = !1;
40
45
  }
41
- }
46
+ } : void 0
42
47
  })));
43
- return (e, a) => (t(), n(o(L), {
48
+ return (e, n) => (t(), r(o(V), {
44
49
  open: i.value,
45
- "onUpdate:open": a[0] || (a[0] = (r) => i.value = r),
46
50
  trigger: e.trigger,
47
51
  placement: e.placement,
48
- class: s(o(u))
52
+ class: s(o(f)),
53
+ onOpenChange: v
49
54
  }, {
50
- overlay: l(() => [
51
- d(o(V), null, {
52
- default: l(() => [
53
- (t(!0), P(N, null, $(v.value, (r, k) => (t(), n(o(x), {
54
- key: k,
55
- class: s([o(u), o(f)("item")])
55
+ overlay: a(() => [
56
+ d(o(z), null, {
57
+ default: a(() => [
58
+ (t(!0), N($, null, L(k.value, (l, h) => (t(), r(o(E), {
59
+ key: h,
60
+ class: s([o(f), o(c)("item")])
56
61
  }, {
57
- default: l(() => [
58
- r.modalProps ? (t(), n(U, p({
62
+ default: a(() => [
63
+ l.modalProps ? (t(), r(R, m({
59
64
  key: 0,
60
65
  ref_for: !0
61
- }, r), null, 16)) : r.popconfirmProps ? (t(), n(R, p({
66
+ }, l), null, 16)) : l.popconfirmProps ? (t(), r(U, m({
62
67
  key: 1,
63
68
  ref_for: !0
64
- }, r), null, 16)) : (t(), n(y, p({
69
+ }, l), null, 16)) : (t(), r(g, m({
65
70
  key: 2,
66
71
  ref_for: !0
67
- }, r), null, 16))
72
+ }, l), null, 16))
68
73
  ]),
69
74
  _: 2
70
75
  }, 1032, ["class"]))), 128))
@@ -72,19 +77,19 @@ const ee = /* @__PURE__ */ w({
72
77
  _: 1
73
78
  })
74
79
  ]),
75
- default: l(() => [
76
- c("span", {
80
+ default: a(() => [
81
+ u("span", {
77
82
  class: s(o(_)())
78
83
  }, [
79
- d(y, b(C(o(F)(m, ["actions", "trigger", "placement", "text"]))), {
80
- default: l(() => [
84
+ d(g, B(b(o(S)(p, ["actions", "trigger", "placement", "text"]))), {
85
+ default: a(() => [
81
86
  I(e.$slots, "default", {}, () => [
82
- (t(), n(h(() => e.text)))
87
+ (t(), r(D(() => e.text)))
83
88
  ]),
84
- c("span", {
85
- class: s(o(f)("icon"))
89
+ u("span", {
90
+ class: s(o(c)("icon"))
86
91
  }, [
87
- e.showIcon ? (t(), n(o(z), { key: 0 })) : D("", !0)
92
+ e.showIcon ? (t(), r(o(F), { key: 0 })) : P("", !0)
88
93
  ], 2)
89
94
  ]),
90
95
  _: 3
@@ -96,5 +101,5 @@ const ee = /* @__PURE__ */ w({
96
101
  }
97
102
  });
98
103
  export {
99
- ee as default
104
+ oe as default
100
105
  };
@@ -1,27 +1,33 @@
1
- import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
2
- const l = (e) => {
3
- const { componentCls: n, namespace: t } = e, o = `.${t}-action-item`;
1
+ import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
2
+ const l = (n) => {
3
+ const { componentCls: e, namespace: o } = n, i = `.${o}-action-item`;
4
4
  return {
5
- [n]: {
5
+ [e]: {
6
6
  display: "inline-flex",
7
7
  flexDirection: "row",
8
8
  alignItems: "center",
9
9
  // dropdown menu item
10
10
  "&__item": {
11
- [o]: {
12
- width: "100%"
11
+ padding: "0px !important",
12
+ [i]: {
13
+ width: "100%",
14
+ paddingInline: "12px",
15
+ paddingBlock: "6px"
16
+ },
17
+ [`${i}--loading`]: {
18
+ marginInlineEnd: n.calc(n.spaceXS).mul(-3).equal()
13
19
  }
14
20
  },
15
- [`${n}__icon`]: {
16
- fontSize: e.fontSize,
21
+ [`${e}__icon`]: {
22
+ fontSize: n.fontSize,
17
23
  display: "inline-flex"
18
24
  }
19
25
  }
20
26
  };
21
- }, s = i("ApAction.Dropdown", (e) => [
22
- l(e)
27
+ }, p = t("ApAction.Dropdown", (n) => [
28
+ l(n)
23
29
  ]);
24
30
  export {
25
- s as default,
31
+ p as default,
26
32
  l as genActionDropdownItemStyle
27
33
  };
@@ -2,11 +2,11 @@ import { resetComponent as t } from "../../style/index.mjs";
2
2
  import { genComponentStyleHook as s } from "../../utils/cssinjs/index.mjs";
3
3
  const d = (o) => {
4
4
  const {
5
- loadingOpacity: n,
6
- colorLink: r,
5
+ loadingOpacity: r,
6
+ colorLink: n,
7
7
  colorSuccess: a,
8
- colorError: l,
9
- colorWarn: c,
8
+ colorError: c,
9
+ colorWarn: l,
10
10
  componentCls: i
11
11
  } = o;
12
12
  return {
@@ -23,7 +23,7 @@ const d = (o) => {
23
23
  opacity: 0.7
24
24
  },
25
25
  "&--primary": {
26
- color: r,
26
+ color: n,
27
27
  [`&${i}--disabled`]: {
28
28
  color: o.colorLinkDisabled
29
29
  }
@@ -35,19 +35,19 @@ const d = (o) => {
35
35
  }
36
36
  },
37
37
  "&--error": {
38
- color: l,
38
+ color: c,
39
39
  [`&${i}--disabled`]: {
40
40
  color: o.colorErrorDisabled
41
41
  }
42
42
  },
43
43
  "&--warn": {
44
- color: c,
44
+ color: l,
45
45
  [`&${i}--disabled`]: {
46
46
  color: o.colorWarnDisabled
47
47
  }
48
48
  },
49
49
  "&--loading": {
50
- opacity: n,
50
+ opacity: r,
51
51
  transition: `opacity ${o.motionDurationMid}`,
52
52
  cursor: "default",
53
53
  [`&${i}--disabled`]: {
@@ -65,7 +65,6 @@ const d = (o) => {
65
65
  },
66
66
  [`${i}-loading-icon`]: {
67
67
  display: "inline-block",
68
- lineHeight: 0,
69
68
  transition: ["width", "opacity", "margin"].map(
70
69
  (e) => `${e} ${o.motionDurationSlow} ${o.apActionLoadingIconEase}`
71
70
  ).join(",")
@@ -1,6 +1,6 @@
1
- import { genComponentStyleHook as r } from "../../utils/cssinjs/index.mjs";
2
- const o = (n) => {
3
- const { componentCls: e, namespace: a } = n, i = `${e}--disabled`, t = n.calc(n.controlHeight).sub(n.calc(n.lineWidth).mul(2)).equal();
1
+ import { genComponentStyleHook as o } from "../../utils/cssinjs/index.mjs";
2
+ const l = (n) => {
3
+ const { componentCls: e, namespace: t, antdv: i } = n, r = `${e}--disabled`, a = n.calc(n.controlHeight).sub(n.calc(n.lineWidth).mul(2)).equal();
4
4
  return {
5
5
  [e]: {
6
6
  // bordered
@@ -12,7 +12,7 @@ const o = (n) => {
12
12
  ".ant-input-affix-wrapper": {
13
13
  padding: 0
14
14
  },
15
- [`&:has(.${a}-batch-input-group):has(.ant-select)`]: {
15
+ [`&:has(.${t}-batch-input-group):has(.ant-select)`]: {
16
16
  ".ant-input-affix-wrapper": {
17
17
  paddingInlineEnd: n.space
18
18
  }
@@ -23,7 +23,7 @@ const o = (n) => {
23
23
  paddingInlineStart: 0
24
24
  }
25
25
  },
26
- [`&:has(div.${a}-batch-input-group .ant-input)`]: {
26
+ [`&:has(div.${t}-batch-input-group .ant-input)`]: {
27
27
  paddingInlineEnd: n.space,
28
28
  ".ant-input": {
29
29
  paddingInlineStart: 0
@@ -52,7 +52,7 @@ const o = (n) => {
52
52
  background: "unset !important"
53
53
  },
54
54
  ".ant-select-single .ant-select-selector": {
55
- height: `${t} !important`
55
+ height: `${a} !important`
56
56
  },
57
57
  "input.ant-input-number-input": {
58
58
  paddingInlineStart: 0
@@ -72,25 +72,25 @@ const o = (n) => {
72
72
  },
73
73
  ".ant-form-item-label > label": {
74
74
  paddingRight: n.spaceLG,
75
- height: t,
75
+ height: a,
76
76
  "&::after": {
77
77
  margin: 0
78
78
  }
79
79
  },
80
80
  ".ant-form-item-control-input": {
81
- minHeight: t,
81
+ minHeight: a,
82
82
  ".ant-select-single": {
83
83
  height: "unset"
84
84
  }
85
85
  },
86
- [`&:hover:not(${i})`]: {
86
+ [`&:hover:not(${r})`]: {
87
87
  borderColor: n.hoverColorBase
88
88
  },
89
89
  "&:focus": {
90
90
  borderColor: n.activeColorBase,
91
- boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
91
+ boxShadow: `0 0 0 2px ${n.calc(i.controlOutline).colorMix(10)}`
92
92
  },
93
- [`.${a}-batch-input-group-popover-input__popover`]: {
93
+ [`.${t}-batch-input-group-popover-input__popover`]: {
94
94
  width: "calc(100% + 12px)"
95
95
  }
96
96
  },
@@ -105,7 +105,7 @@ const o = (n) => {
105
105
  // focus
106
106
  "&--focused": {
107
107
  borderColor: n.activeColorBase,
108
- boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
108
+ boxShadow: `0 0 0 2px ${n.calc(i.controlOutline).colorMix(10)}`
109
109
  },
110
110
  // other
111
111
  ".ant-form-show-help": {
@@ -132,8 +132,8 @@ const o = (n) => {
132
132
  }
133
133
  }
134
134
  };
135
- }, p = r("ApForm", (n) => [o(n)]);
135
+ }, d = o("ApForm", (n) => [l(n)]);
136
136
  export {
137
- p as default,
138
- o as genApFormItemStyle
137
+ d as default,
138
+ l as genApFormItemStyle
139
139
  };
@@ -166,6 +166,18 @@ export declare const configProviderProps: () => {
166
166
  apTitle: {
167
167
  type: PropType<ApTitleConfig>;
168
168
  };
169
+ searchForm: {
170
+ type: PropType<SearchFormGlobalConfig>;
171
+ default: () => {};
172
+ };
173
+ apUpload: {
174
+ type: PropType<ApUploadConfig>;
175
+ default: () => {};
176
+ };
177
+ apDescriptions: {
178
+ type: PropType<ApDescriptionsConfig>;
179
+ default: () => {};
180
+ };
169
181
  /**
170
182
  * @description aplus-ui的locale
171
183
  */
@@ -191,14 +203,6 @@ export declare const configProviderProps: () => {
191
203
  uiMode: {
192
204
  type: PropType<UiModeType>;
193
205
  };
194
- apUpload: {
195
- type: PropType<ApUploadConfig>;
196
- default: () => {};
197
- };
198
- apDescriptions: {
199
- type: PropType<ApDescriptionsConfig>;
200
- default: () => {};
201
- };
202
206
  valueTypeMap: {
203
207
  type: PropType<Record<string, ValueTypeRenderConfig>>;
204
208
  default: () => {};
@@ -218,10 +222,6 @@ export declare const configProviderProps: () => {
218
222
  type: PropType<ViewCacheOption>;
219
223
  default: () => {};
220
224
  };
221
- searchForm: {
222
- type: PropType<SearchFormGlobalConfig>;
223
- default: () => {};
224
- };
225
225
  };
226
226
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
227
227
  export {};
@@ -14,6 +14,18 @@ const t = () => ({
14
14
  },
15
15
  apTitle: {
16
16
  type: Object
17
+ },
18
+ searchForm: {
19
+ type: Object,
20
+ default: () => ({})
21
+ },
22
+ apUpload: {
23
+ type: Object,
24
+ default: () => ({})
25
+ },
26
+ apDescriptions: {
27
+ type: Object,
28
+ default: () => ({})
17
29
  }
18
30
  }), o = () => ({
19
31
  /**
@@ -41,14 +53,6 @@ const t = () => ({
41
53
  uiMode: {
42
54
  type: String
43
55
  },
44
- apUpload: {
45
- type: Object,
46
- default: () => ({})
47
- },
48
- apDescriptions: {
49
- type: Object,
50
- default: () => ({})
51
- },
52
56
  valueTypeMap: {
53
57
  type: Object,
54
58
  default: () => ({})
@@ -68,10 +72,6 @@ const t = () => ({
68
72
  type: Object,
69
73
  default: () => ({})
70
74
  },
71
- searchForm: {
72
- type: Object,
73
- default: () => ({})
74
- },
75
75
  ...t(),
76
76
  ...e()
77
77
  });