@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.
- package/es/src/ag-grid/editable/index.vue.mjs +85 -79
- package/es/src/ap-action/item-dropdown/index.vue.mjs +43 -38
- package/es/src/ap-action/style/dropdown-item.mjs +17 -11
- package/es/src/ap-action/style/index.mjs +8 -9
- package/es/src/ap-form/style/item.mjs +15 -15
- package/es/src/config-provider/config-provider-props.d.ts +12 -12
- package/es/src/config-provider/config-provider-props.mjs +12 -12
- package/es/src/config-provider/config-provider.d.ts +27 -27
- package/es/src/config-provider/config-provider.mjs +42 -40
- package/es/src/config-provider/hooks/use-global-config.d.ts +13 -13
- package/es/src/config-provider/index.d.ts +43 -43
- package/es/src/design-token/interface.d.ts +2 -0
- package/es/src/utils/cssinjs/index.mjs +36 -35
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/style/dropdown-item.js +1 -1
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +12 -12
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +27 -27
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +13 -13
- package/lib/src/config-provider/index.d.ts +43 -43
- package/lib/src/design-token/interface.d.ts +2 -0
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -6
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isEqual as
|
|
3
|
-
import { ApForm as
|
|
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
|
|
7
|
-
import { useGetEditableColumns as
|
|
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
|
|
10
|
-
import { arrayToObject as
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
import { useControllableValue as
|
|
13
|
-
import { useGlobalConfig as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
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(
|
|
135
|
-
expose:
|
|
136
|
-
emit:
|
|
134
|
+
setup(C, {
|
|
135
|
+
expose: x,
|
|
136
|
+
emit: B
|
|
137
137
|
}) {
|
|
138
|
-
const
|
|
139
|
-
b:
|
|
140
|
-
} =
|
|
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:
|
|
143
|
-
} =
|
|
144
|
-
|
|
145
|
-
const a =
|
|
146
|
-
|
|
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
|
|
151
|
-
add:
|
|
152
|
-
addMultiple:
|
|
153
|
-
remove:
|
|
154
|
-
removeByKey:
|
|
155
|
-
getRowData:
|
|
156
|
-
getRowsData:
|
|
157
|
-
setRowData:
|
|
158
|
-
clear:
|
|
159
|
-
refreshRowIds:
|
|
160
|
-
} =
|
|
161
|
-
function
|
|
162
|
-
const e =
|
|
163
|
-
if (!
|
|
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 =
|
|
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
|
-
}),
|
|
169
|
+
}), p.value = [];
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function L() {
|
|
172
172
|
l.value?.resetFields();
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return e ? (
|
|
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
|
|
178
|
-
|
|
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
|
|
181
|
-
|
|
182
|
-
const a =
|
|
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
|
|
191
|
+
function g(e, a) {
|
|
186
192
|
const t = e === "end" ? r.value.length - 1 : e;
|
|
187
|
-
|
|
193
|
+
d.value?.scrollToRow(t, a);
|
|
188
194
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
195
|
+
function W(e, a) {
|
|
196
|
+
d.value?.scrollToColumn(e, a);
|
|
191
197
|
}
|
|
192
|
-
return
|
|
193
|
-
resetFields:
|
|
194
|
-
validateFields:
|
|
195
|
-
add:
|
|
196
|
-
addMultiple:
|
|
197
|
-
remove:
|
|
198
|
-
removeByKey:
|
|
199
|
-
getRowData:
|
|
200
|
-
getRowsData:
|
|
201
|
-
setRowData:
|
|
202
|
-
clear:
|
|
203
|
-
setTableData:
|
|
204
|
-
scrollTo:
|
|
205
|
-
scrollToRow:
|
|
206
|
-
scrollToColumn:
|
|
207
|
-
}), (e, a) => (
|
|
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(
|
|
217
|
+
[o.name]: n(y)(n(r), o.rowKey)
|
|
212
218
|
},
|
|
213
219
|
style: {
|
|
214
220
|
height: "100%"
|
|
215
221
|
}
|
|
216
222
|
}, {
|
|
217
|
-
default:
|
|
223
|
+
default: c(() => [R(n(f).FormItem, {
|
|
218
224
|
name: e.name,
|
|
219
225
|
"no-style": ""
|
|
220
226
|
}, {
|
|
221
|
-
default:
|
|
227
|
+
default: c(() => [R(ce, Y(n(le)(o, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue"]), {
|
|
222
228
|
ref_key: "tableRef",
|
|
223
|
-
ref:
|
|
224
|
-
class: [n(
|
|
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:
|
|
230
|
-
}),
|
|
235
|
+
onUpdate: z
|
|
236
|
+
}), Z({
|
|
231
237
|
_: 2
|
|
232
|
-
}, [
|
|
233
|
-
name:
|
|
234
|
-
fn:
|
|
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
|
-
|
|
249
|
+
Fe as default
|
|
244
250
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Dropdown as
|
|
3
|
-
import { IconApAdLineDown as
|
|
4
|
-
import { isUndefined as
|
|
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
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
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(
|
|
33
|
-
const
|
|
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
|
-
|
|
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?.(
|
|
42
|
+
await e.onAction?.(n);
|
|
38
43
|
} finally {
|
|
39
44
|
i.value = !1;
|
|
40
45
|
}
|
|
41
|
-
}
|
|
46
|
+
} : void 0
|
|
42
47
|
})));
|
|
43
|
-
return (e,
|
|
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(
|
|
52
|
+
class: s(o(f)),
|
|
53
|
+
onOpenChange: v
|
|
49
54
|
}, {
|
|
50
|
-
overlay:
|
|
51
|
-
d(o(
|
|
52
|
-
default:
|
|
53
|
-
(t(!0),
|
|
54
|
-
key:
|
|
55
|
-
class: s([o(
|
|
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:
|
|
58
|
-
|
|
62
|
+
default: a(() => [
|
|
63
|
+
l.modalProps ? (t(), r(R, m({
|
|
59
64
|
key: 0,
|
|
60
65
|
ref_for: !0
|
|
61
|
-
},
|
|
66
|
+
}, l), null, 16)) : l.popconfirmProps ? (t(), r(U, m({
|
|
62
67
|
key: 1,
|
|
63
68
|
ref_for: !0
|
|
64
|
-
},
|
|
69
|
+
}, l), null, 16)) : (t(), r(g, m({
|
|
65
70
|
key: 2,
|
|
66
71
|
ref_for: !0
|
|
67
|
-
},
|
|
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:
|
|
76
|
-
|
|
80
|
+
default: a(() => [
|
|
81
|
+
u("span", {
|
|
77
82
|
class: s(o(_)())
|
|
78
83
|
}, [
|
|
79
|
-
d(
|
|
80
|
-
default:
|
|
84
|
+
d(g, B(b(o(S)(p, ["actions", "trigger", "placement", "text"]))), {
|
|
85
|
+
default: a(() => [
|
|
81
86
|
I(e.$slots, "default", {}, () => [
|
|
82
|
-
(t(),
|
|
87
|
+
(t(), r(D(() => e.text)))
|
|
83
88
|
]),
|
|
84
|
-
|
|
85
|
-
class: s(o(
|
|
89
|
+
u("span", {
|
|
90
|
+
class: s(o(c)("icon"))
|
|
86
91
|
}, [
|
|
87
|
-
e.showIcon ? (t(),
|
|
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
|
-
|
|
104
|
+
oe as default
|
|
100
105
|
};
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const l = (
|
|
3
|
-
const { componentCls:
|
|
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
|
-
[
|
|
5
|
+
[e]: {
|
|
6
6
|
display: "inline-flex",
|
|
7
7
|
flexDirection: "row",
|
|
8
8
|
alignItems: "center",
|
|
9
9
|
// dropdown menu item
|
|
10
10
|
"&__item": {
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
[`${
|
|
16
|
-
fontSize:
|
|
21
|
+
[`${e}__icon`]: {
|
|
22
|
+
fontSize: n.fontSize,
|
|
17
23
|
display: "inline-flex"
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
};
|
|
21
|
-
},
|
|
22
|
-
l(
|
|
27
|
+
}, p = t("ApAction.Dropdown", (n) => [
|
|
28
|
+
l(n)
|
|
23
29
|
]);
|
|
24
30
|
export {
|
|
25
|
-
|
|
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:
|
|
6
|
-
colorLink:
|
|
5
|
+
loadingOpacity: r,
|
|
6
|
+
colorLink: n,
|
|
7
7
|
colorSuccess: a,
|
|
8
|
-
colorError:
|
|
9
|
-
colorWarn:
|
|
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:
|
|
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:
|
|
38
|
+
color: c,
|
|
39
39
|
[`&${i}--disabled`]: {
|
|
40
40
|
color: o.colorErrorDisabled
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"&--warn": {
|
|
44
|
-
color:
|
|
44
|
+
color: l,
|
|
45
45
|
[`&${i}--disabled`]: {
|
|
46
46
|
color: o.colorWarnDisabled
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"&--loading": {
|
|
50
|
-
opacity:
|
|
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
|
|
2
|
-
const
|
|
3
|
-
const { componentCls: e, namespace:
|
|
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(.${
|
|
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.${
|
|
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: `${
|
|
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:
|
|
75
|
+
height: a,
|
|
76
76
|
"&::after": {
|
|
77
77
|
margin: 0
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
".ant-form-item-control-input": {
|
|
81
|
-
minHeight:
|
|
81
|
+
minHeight: a,
|
|
82
82
|
".ant-select-single": {
|
|
83
83
|
height: "unset"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
[`&:hover:not(${
|
|
86
|
+
[`&:hover:not(${r})`]: {
|
|
87
87
|
borderColor: n.hoverColorBase
|
|
88
88
|
},
|
|
89
89
|
"&:focus": {
|
|
90
90
|
borderColor: n.activeColorBase,
|
|
91
|
-
boxShadow:
|
|
91
|
+
boxShadow: `0 0 0 2px ${n.calc(i.controlOutline).colorMix(10)}`
|
|
92
92
|
},
|
|
93
|
-
[`.${
|
|
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:
|
|
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
|
-
},
|
|
135
|
+
}, d = o("ApForm", (n) => [l(n)]);
|
|
136
136
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
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
|
});
|