@aplus-frontend/ui 7.0.1 → 7.1.1
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/hooks/use-columns-def.mjs +20 -19
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +39 -39
- package/es/src/ap-descriptions/style/index.mjs +16 -43
- package/es/src/ap-download/ap-download.vue.mjs +43 -43
- package/es/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/es/src/ap-download/hooks/useStyle.mjs +17 -14
- package/es/src/ap-download/style/index.mjs +6 -13
- package/es/src/ap-form/modal-form/index.vue.mjs +59 -60
- package/es/src/ap-form/style/modal-form.mjs +14 -15
- package/es/src/ap-form/style/search-form-sorter.mjs +26 -26
- package/es/src/ap-form/style/token.d.ts +4 -0
- package/es/src/ap-grid/style/index.mjs +3 -3
- package/es/src/ap-pro-card/style/statistic.mjs +3 -3
- package/es/src/ap-pro-card/style/token.mjs +1 -1
- package/es/src/ap-table/style/index.mjs +2 -2
- package/es/src/ap-table/style/setting.mjs +2 -2
- package/es/src/ap-tag/ap-tag-group.vue.mjs +61 -61
- package/es/src/ap-tag/ap-tag.vue.mjs +19 -20
- package/es/src/ap-tag/style/group.mjs +2 -8
- package/es/src/ap-tag/style/index.mjs +14 -23
- package/es/src/ap-upload/apUpload.vue.mjs +39 -39
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +60 -61
- package/es/src/ap-upload/components/Picture.vue2.mjs +90 -91
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +72 -72
- package/es/src/ap-upload/style/multiple-file.mjs +13 -40
- package/es/src/ap-upload/style/picture.mjs +12 -30
- package/es/src/ap-upload/style/single-file.mjs +5 -16
- package/es/src/business/ap-appendix/style/index.mjs +1 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +42 -39
- package/es/src/business/ap-copy/style/index.mjs +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +45 -46
- package/es/src/business/ap-ladder/ApLadder.mjs +20 -22
- package/es/src/business/ap-ladder/style/index.mjs +9 -34
- package/es/src/business/ap-product-info/ApProductInfo.mjs +21 -22
- package/es/src/business/ap-product-info/style/index.mjs +8 -24
- package/es/src/business/ap-radio-group/style/index.mjs +1 -1
- package/es/src/business/ap-size-input/ApSizeInput.mjs +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +18 -19
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +13 -13
- package/es/src/business/ap-title/style/index.mjs +12 -12
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +38 -37
- package/es/src/business/ap-value-select-card/index.vue2.mjs +36 -37
- package/es/src/business/ap-value-select-card/style/index.mjs +7 -29
- package/es/src/business/batch-input-group/style/index.mjs +1 -1
- package/es/src/check-card/style/index.mjs +31 -31
- package/es/src/design-token/constants.mjs +4 -2
- package/es/src/design-token/interface.d.ts +36 -39
- package/es/src/scroll-bar/style/index.mjs +12 -12
- package/es/src/splitter/style/index.mjs +6 -6
- package/es/src/style/index.mjs +1 -1
- package/es/src/text/style/index.mjs +1 -1
- package/es/src/utils/cssinjs/TokenUtil.d.ts +11 -0
- package/es/src/utils/cssinjs/TokenUtil.mjs +26 -0
- package/es/src/utils/cssinjs/index.mjs +23 -22
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/style/index.js +1 -1
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/useStyle.d.ts +1 -1
- package/lib/src/ap-download/hooks/useStyle.js +1 -1
- package/lib/src/ap-download/style/index.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/modal-form.js +1 -1
- package/lib/src/ap-form/style/search-form-sorter.js +1 -1
- package/lib/src/ap-form/style/token.d.ts +4 -0
- package/lib/src/ap-grid/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/statistic.js +1 -1
- package/lib/src/ap-pro-card/style/token.js +1 -1
- package/lib/src/ap-table/style/index.js +1 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/ap-tag/style/group.js +1 -1
- package/lib/src/ap-tag/style/index.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/ap-upload/style/multiple-file.js +1 -1
- package/lib/src/ap-upload/style/picture.js +1 -1
- package/lib/src/ap-upload/style/single-file.js +1 -1
- package/lib/src/business/ap-appendix/style/index.js +1 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.js +1 -1
- package/lib/src/business/ap-ladder/style/index.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-radio-group/style/index.js +1 -1
- package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-title/style/index.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/design-token/constants.js +1 -1
- package/lib/src/design-token/interface.d.ts +36 -39
- package/lib/src/scroll-bar/style/index.js +1 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/style/index.js +1 -1
- package/lib/src/text/style/index.js +1 -1
- package/lib/src/utils/cssinjs/TokenUtil.d.ts +11 -0
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -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 +3 -3
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { isVNode as O, defineComponent as z, useSlots as E, ref as d, watch as $, cloneVNode as q, computed as A, createVNode as n, mergeProps as m, unref as o, createElementBlock as D, openBlock as p, Fragment as L, createBlock as T, createCommentVNode as K, withCtx as b, createElementVNode as W, normalizeClass as G, normalizeStyle as H, renderSlot as C, resolveDynamicComponent as B, createTextVNode as J, toDisplayString as Q } from "vue";
|
|
2
|
+
import { Button as v, Flex as X, Space as Y, Modal as Z } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { getSingleVNode as
|
|
5
|
+
import { getSingleVNode as ee } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { omit as
|
|
8
|
-
import
|
|
7
|
+
import { omit as te } from "lodash-unified";
|
|
8
|
+
import le from "../style/modal-form.mjs";
|
|
9
9
|
import { useControllableValue as ae } from "../../hooks/useControllableValue.mjs";
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import ie from "../ap-form.vue2.mjs";
|
|
10
|
+
import { useLocale as oe } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import { useNamespace as se } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
import ne from "../ap-form.vue2.mjs";
|
|
14
13
|
function k(r) {
|
|
15
|
-
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !
|
|
14
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !O(r);
|
|
16
15
|
}
|
|
17
|
-
const
|
|
16
|
+
const Ne = /* @__PURE__ */ z({
|
|
18
17
|
name: "ApFormModalForm",
|
|
19
18
|
__name: "index",
|
|
20
19
|
props: {
|
|
@@ -97,49 +96,49 @@ const Re = /* @__PURE__ */ E({
|
|
|
97
96
|
expose: P,
|
|
98
97
|
emit: S
|
|
99
98
|
}) {
|
|
100
|
-
const t = r, c =
|
|
99
|
+
const t = r, c = E(), w = S, a = d(), y = d(0), i = d(), s = d(!1), {
|
|
101
100
|
value: N,
|
|
102
101
|
updateValue: u
|
|
103
102
|
} = ae(t, w, {
|
|
104
103
|
valuePropName: "open",
|
|
105
104
|
defaultValue: !1,
|
|
106
105
|
beforeUpdateValue(e) {
|
|
107
|
-
return e && (
|
|
106
|
+
return e && (y.value += 1), !0;
|
|
108
107
|
}
|
|
109
108
|
}), {
|
|
110
109
|
t: f
|
|
111
|
-
} =
|
|
110
|
+
} = oe(), x = le("ap-form-modal-form"), {
|
|
112
111
|
b: R,
|
|
113
|
-
e:
|
|
114
|
-
} =
|
|
115
|
-
|
|
112
|
+
e: F
|
|
113
|
+
} = se("ap-form-modal-form");
|
|
114
|
+
$(() => a.value, (e) => {
|
|
116
115
|
e && i.value && (e.setFieldsValue?.(i.value), i.value = void 0);
|
|
117
116
|
});
|
|
118
|
-
const h =
|
|
117
|
+
const h = ee(c.trigger), g = h ? q(h, {
|
|
119
118
|
onClick: () => {
|
|
120
119
|
u(!0);
|
|
121
120
|
}
|
|
122
|
-
}) : null, _ =
|
|
121
|
+
}) : null, _ = A(() => {
|
|
123
122
|
const e = [];
|
|
124
123
|
if (t.submitter === !1)
|
|
125
124
|
return null;
|
|
126
125
|
if (t.showCancel) {
|
|
127
126
|
let l;
|
|
128
|
-
e.push(n(
|
|
127
|
+
e.push(n(v, {
|
|
129
128
|
onClick: V,
|
|
130
129
|
disabled: s.value
|
|
131
130
|
}, k(l = f("ap.common.cancelText")) ? l : {
|
|
132
131
|
default: () => [l]
|
|
133
132
|
}));
|
|
134
133
|
}
|
|
135
|
-
return t.submitter?.resetButtonProps !== !1 && e.push(n(
|
|
134
|
+
return t.submitter?.resetButtonProps !== !1 && e.push(n(v, m(t.submitter?.resetButtonProps || {}, {
|
|
136
135
|
key: "reset",
|
|
137
136
|
disabled: s.value,
|
|
138
137
|
onClick: I,
|
|
139
138
|
htmlType: "reset"
|
|
140
139
|
}), {
|
|
141
140
|
default: () => [t.submitter?.resetText || f("ap.common.resetText")]
|
|
142
|
-
})), t.submitter?.submitButtonProps !== !1 && e.push(n(
|
|
141
|
+
})), t.submitter?.submitButtonProps !== !1 && e.push(n(v, m({
|
|
143
142
|
type: "primary",
|
|
144
143
|
key: "submit",
|
|
145
144
|
htmlType: "submit"
|
|
@@ -147,28 +146,28 @@ const Re = /* @__PURE__ */ E({
|
|
|
147
146
|
loading: s.value
|
|
148
147
|
}), {
|
|
149
148
|
default: () => [t.submitter?.submitText || f("ap.common.okText")]
|
|
150
|
-
})), n(
|
|
149
|
+
})), n(X, {
|
|
151
150
|
justify: "flex-end",
|
|
152
|
-
key:
|
|
153
|
-
class: [
|
|
151
|
+
key: o(y),
|
|
152
|
+
class: [F("footer")]
|
|
154
153
|
}, {
|
|
155
|
-
default: () => [c.submitter ? c.submitter(e) : n(
|
|
154
|
+
default: () => [c.submitter ? c.submitter(e) : n(Y, null, k(e) ? e : {
|
|
156
155
|
default: () => [e]
|
|
157
156
|
})]
|
|
158
157
|
});
|
|
159
158
|
});
|
|
160
159
|
function I() {
|
|
161
|
-
t.submitter !== !1 && (
|
|
160
|
+
t.submitter !== !1 && (a.value?.resetFields(), t.submitter?.onReset?.());
|
|
162
161
|
}
|
|
163
|
-
async function
|
|
162
|
+
async function M(e) {
|
|
164
163
|
if (t.submitter !== !1)
|
|
165
164
|
try {
|
|
166
165
|
t.submitter?.onSubmit?.(), s.value = !0;
|
|
167
166
|
const l = t.onFinish?.(e);
|
|
168
167
|
if (t.submitTimeout && l instanceof Promise) {
|
|
169
|
-
const
|
|
168
|
+
const j = setTimeout(() => s.value = !1, t.submitTimeout);
|
|
170
169
|
l.finally(() => {
|
|
171
|
-
clearTimeout(
|
|
170
|
+
clearTimeout(j), s.value = !1;
|
|
172
171
|
});
|
|
173
172
|
}
|
|
174
173
|
await l && u(!1);
|
|
@@ -177,71 +176,71 @@ const Re = /* @__PURE__ */ E({
|
|
|
177
176
|
}
|
|
178
177
|
}
|
|
179
178
|
function V() {
|
|
180
|
-
|
|
179
|
+
o(s) || u(!1);
|
|
181
180
|
}
|
|
182
|
-
function
|
|
183
|
-
!e &&
|
|
181
|
+
function U(e) {
|
|
182
|
+
!e && o(s) || u(e);
|
|
184
183
|
}
|
|
185
184
|
return P({
|
|
186
185
|
resetFields: async () => {
|
|
187
|
-
|
|
186
|
+
a.value?.resetFields();
|
|
188
187
|
},
|
|
189
188
|
clearValidate: (e) => {
|
|
190
|
-
|
|
189
|
+
a.value?.clearValidate(e);
|
|
191
190
|
},
|
|
192
|
-
validateFields: (e, l) =>
|
|
193
|
-
getFieldsValue: (e) =>
|
|
194
|
-
validate: (e, l) =>
|
|
191
|
+
validateFields: (e, l) => a.value?.validateFields(e, l),
|
|
192
|
+
getFieldsValue: (e) => a.value?.getFieldsValue(e),
|
|
193
|
+
validate: (e, l) => a.value?.validate(e, l),
|
|
195
194
|
scrollToField: (e, l = {}) => {
|
|
196
|
-
|
|
195
|
+
a.value?.scrollToField(e, l);
|
|
197
196
|
},
|
|
198
197
|
setFieldValue: (e, l) => {
|
|
199
|
-
|
|
198
|
+
a.value?.setFieldValue?.(e, l);
|
|
200
199
|
},
|
|
201
200
|
setFieldsValue: (e) => {
|
|
202
|
-
if (!
|
|
201
|
+
if (!a.value) {
|
|
203
202
|
i.value = e;
|
|
204
203
|
return;
|
|
205
204
|
}
|
|
206
|
-
|
|
205
|
+
a.value?.setFieldsValue?.(e);
|
|
207
206
|
},
|
|
208
|
-
getInternalInstance: (e) =>
|
|
207
|
+
getInternalInstance: (e) => a.value?.getInternalInstance(e),
|
|
209
208
|
getFieldsValueTransformed(e) {
|
|
210
|
-
return
|
|
209
|
+
return a.value?.getFieldsValueTransformed(e);
|
|
211
210
|
},
|
|
212
211
|
validateFieldsReturnTransformed(e, l) {
|
|
213
|
-
return
|
|
212
|
+
return a.value?.validateFieldsReturnTransformed(e, l);
|
|
214
213
|
}
|
|
215
|
-
}), (e, l) => (
|
|
216
|
-
open:
|
|
214
|
+
}), (e, l) => (p(), D(L, null, [n(o(Z), m(e.modalProps, {
|
|
215
|
+
open: o(N),
|
|
217
216
|
footer: null,
|
|
218
217
|
width: e.width,
|
|
219
|
-
class: [
|
|
218
|
+
class: [o(R)(), o(x)],
|
|
220
219
|
"body-style": {
|
|
221
220
|
padding: "0px !important"
|
|
222
221
|
},
|
|
223
|
-
"onUpdate:open":
|
|
222
|
+
"onUpdate:open": U,
|
|
224
223
|
onCancel: V
|
|
225
224
|
}), {
|
|
226
|
-
title:
|
|
227
|
-
default:
|
|
225
|
+
title: b(() => [C(e.$slots, "title", {}, () => [J(Q(t.title), 1)])]),
|
|
226
|
+
default: b(() => [n(ne, m({
|
|
228
227
|
ref_key: "formRef",
|
|
229
|
-
ref:
|
|
230
|
-
},
|
|
231
|
-
onFinish:
|
|
228
|
+
ref: a
|
|
229
|
+
}, o(te)(t, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"]), {
|
|
230
|
+
onFinish: M
|
|
232
231
|
}), {
|
|
233
|
-
default:
|
|
234
|
-
style:
|
|
235
|
-
class:
|
|
236
|
-
}, [C(e.$slots, "default")], 6), (
|
|
232
|
+
default: b(() => [W("div", {
|
|
233
|
+
style: H(e.modalProps?.bodyStyle),
|
|
234
|
+
class: G(o(F)("content"))
|
|
235
|
+
}, [C(e.$slots, "default")], 6), (p(), T(B(_.value)))]),
|
|
237
236
|
_: 3
|
|
238
237
|
}, 16)]),
|
|
239
238
|
_: 3
|
|
240
|
-
}, 16, ["open", "width", "class"]),
|
|
239
|
+
}, 16, ["open", "width", "class"]), o(g) ? (p(), T(B(o(g)), {
|
|
241
240
|
key: 0
|
|
242
241
|
})) : K("", !0)], 64));
|
|
243
242
|
}
|
|
244
243
|
});
|
|
245
244
|
export {
|
|
246
|
-
|
|
245
|
+
Ne as default
|
|
247
246
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
1
|
+
import { genComponentStyleHook as r } from "../../utils/cssinjs/index.mjs";
|
|
2
2
|
const e = (o) => {
|
|
3
|
-
const { componentCls:
|
|
3
|
+
const { componentCls: a, apFormModalCloseSize: d } = o;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[a]: {
|
|
6
6
|
".ant-modal-content": {
|
|
7
7
|
padding: 0
|
|
8
8
|
},
|
|
@@ -12,23 +12,21 @@ const e = (o) => {
|
|
|
12
12
|
borderBottom: "1px solid #E9EDF3",
|
|
13
13
|
marginBottom: 0
|
|
14
14
|
},
|
|
15
|
-
[`${
|
|
15
|
+
[`${a}__content`]: {
|
|
16
16
|
padding: o.apFormModalContentPadding
|
|
17
17
|
},
|
|
18
|
-
[`${
|
|
19
|
-
padding: o.apFormModalFooterPadding
|
|
20
|
-
|
|
21
|
-
[`${d}__footer-admin`]: {
|
|
22
|
-
borderTop: "1px solid #E9EDF3"
|
|
18
|
+
[`${a}__footer`]: {
|
|
19
|
+
padding: o.apFormModalFooterPadding,
|
|
20
|
+
borderTop: o.apFormModalFooterBorderTop
|
|
23
21
|
},
|
|
24
22
|
".ant-modal-close": {
|
|
25
|
-
top:
|
|
26
|
-
width:
|
|
27
|
-
height:
|
|
23
|
+
top: o.calc(o.apFormModalHeaderPaddingBlock).sub(o.calc(d).sub("22px").div(2)).equal(),
|
|
24
|
+
width: d,
|
|
25
|
+
height: d
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
};
|
|
31
|
-
},
|
|
29
|
+
}, n = r(
|
|
32
30
|
"ApForm.Modal",
|
|
33
31
|
(o) => [e(o)],
|
|
34
32
|
{
|
|
@@ -36,10 +34,11 @@ const e = (o) => {
|
|
|
36
34
|
apFormModalHeaderPaddingBlock: 15,
|
|
37
35
|
apFormModalContentPadding: "20px 20px 0px",
|
|
38
36
|
apFormModalFooterPadding: "12px 20px",
|
|
39
|
-
apFormModalCloseSize: 32
|
|
37
|
+
apFormModalCloseSize: 32,
|
|
38
|
+
apFormModalFooterBorderTop: "unset"
|
|
40
39
|
}
|
|
41
40
|
);
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
n as default,
|
|
44
43
|
e as genModalFormStyle
|
|
45
44
|
};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { resetComponent as
|
|
2
|
-
import { genComponentStyleHook as
|
|
3
|
-
import { genPopoverStyle as
|
|
4
|
-
const
|
|
5
|
-
const { componentCls:
|
|
1
|
+
import { resetComponent as o } from "../../style/index.mjs";
|
|
2
|
+
import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
|
|
3
|
+
import { genPopoverStyle as t } from "./search-form.mjs";
|
|
4
|
+
const l = (r) => {
|
|
5
|
+
const { componentCls: e } = r, a = r.calc("100%").div(r.searchFormSorterCountPerRow).equal();
|
|
6
6
|
return {
|
|
7
|
-
[
|
|
8
|
-
[`${
|
|
7
|
+
[e]: {
|
|
8
|
+
[`${e}-content`]: {
|
|
9
9
|
width: r.searchFormSorterWidth
|
|
10
10
|
},
|
|
11
|
-
[`${
|
|
11
|
+
[`${e}-header`]: {
|
|
12
12
|
padding: `${r.spaceXL} ${r.spaceXL} 0px`,
|
|
13
13
|
"&-title": {
|
|
14
|
-
...
|
|
15
|
-
color: r.
|
|
14
|
+
...o(r),
|
|
15
|
+
color: r.textColor1,
|
|
16
16
|
fontWeight: 700,
|
|
17
17
|
display: "inline-block",
|
|
18
18
|
paddingBottom: r.spaceXS
|
|
19
19
|
},
|
|
20
20
|
"&-desc": {
|
|
21
|
-
...
|
|
21
|
+
...o(r),
|
|
22
22
|
color: r.textColor3
|
|
23
23
|
},
|
|
24
24
|
"&-action-wrapper": {
|
|
25
25
|
padding: r.space,
|
|
26
|
-
margin:
|
|
26
|
+
margin: r.calc(-1).mul(r.space).equal(),
|
|
27
27
|
cursor: "pointer"
|
|
28
28
|
},
|
|
29
29
|
"&-reset-btn": {
|
|
30
|
-
...
|
|
30
|
+
...o(r),
|
|
31
31
|
color: r.colorLink
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
[`${
|
|
34
|
+
[`${e}-sorter-wrapper`]: {
|
|
35
35
|
display: "flex",
|
|
36
36
|
flexDirection: "row",
|
|
37
37
|
flexWrap: "wrap",
|
|
38
|
-
marginInlineStart:
|
|
39
|
-
marginInlineEnd:
|
|
38
|
+
marginInlineStart: r.calc(r.searchFormSorterItemGap).div(-2).equal(),
|
|
39
|
+
marginInlineEnd: r.calc(r.searchFormSorterItemGap).div(-2).equal(),
|
|
40
40
|
rowGap: r.searchFormSorterItemGap
|
|
41
41
|
},
|
|
42
|
-
[`${
|
|
42
|
+
[`${e}-sorter-item`]: {
|
|
43
43
|
flex: `0 0 ${a}`,
|
|
44
44
|
maxWidth: a,
|
|
45
|
-
paddingInline:
|
|
45
|
+
paddingInline: r.calc(r.searchFormSorterItemGap).div(2).equal(),
|
|
46
46
|
"> div": {
|
|
47
47
|
border: `1px solid ${r.colorBg1}`,
|
|
48
48
|
borderRadius: r.borderRadius,
|
|
@@ -62,21 +62,21 @@ const c = (r) => {
|
|
|
62
62
|
display: "none"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
[`${
|
|
66
|
-
...
|
|
65
|
+
[`${e}-sorter-item-text`]: {
|
|
66
|
+
...o(r),
|
|
67
67
|
paddingInlineStart: r.spaceXS,
|
|
68
|
-
color: r.
|
|
68
|
+
color: r.textColor1,
|
|
69
69
|
maxWidth: "100%",
|
|
70
70
|
whiteSpace: "nowrap",
|
|
71
71
|
overflow: "hidden",
|
|
72
72
|
textOverflow: "ellipsis"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
...
|
|
75
|
+
...t(r)
|
|
76
76
|
};
|
|
77
|
-
},
|
|
77
|
+
}, d = i(
|
|
78
78
|
"ApForm.SearchFormSorter",
|
|
79
|
-
(r) => [
|
|
79
|
+
(r) => [l(r)],
|
|
80
80
|
{
|
|
81
81
|
searchFormSorterWidth: 560,
|
|
82
82
|
searchFormSorterItemGap: 8,
|
|
@@ -87,6 +87,6 @@ const c = (r) => {
|
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
89
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
d as default,
|
|
91
|
+
l as genSearchFormSorter
|
|
92
92
|
};
|
|
@@ -139,13 +139,13 @@ const g = (e) => {
|
|
|
139
139
|
backgroundColor: "var(--vxe-ui-loading-background-color)"
|
|
140
140
|
},
|
|
141
141
|
[`${i}-pagination-count-text`]: {
|
|
142
|
-
color: e.
|
|
142
|
+
color: e.textColor1
|
|
143
143
|
},
|
|
144
144
|
[`${i}-pagination--total-right`]: {
|
|
145
145
|
paddingInlineStart: "12px"
|
|
146
146
|
},
|
|
147
147
|
[`${i}-pagination-total-wrapper`]: {
|
|
148
|
-
color: e.
|
|
148
|
+
color: e.textColor2
|
|
149
149
|
},
|
|
150
150
|
// ApGrid中表格表头的样式
|
|
151
151
|
[`${i}-table-header`]: {
|
|
@@ -203,7 +203,7 @@ const g = (e) => {
|
|
|
203
203
|
},
|
|
204
204
|
"div.vxe-cell--tree-btn > i": {
|
|
205
205
|
fontSize: e.fontSizeSM,
|
|
206
|
-
color: e.
|
|
206
|
+
color: e.textColor1
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
}
|
|
@@ -51,7 +51,7 @@ const o = (t) => {
|
|
|
51
51
|
marginTop: "4px"
|
|
52
52
|
},
|
|
53
53
|
".ant-statistic-title": {
|
|
54
|
-
color: t.
|
|
54
|
+
color: t.textColor2,
|
|
55
55
|
fontSize: t.fontSize,
|
|
56
56
|
lineHeight: t.lineHeight,
|
|
57
57
|
marginBlockEnd: "8px"
|
|
@@ -94,7 +94,7 @@ const o = (t) => {
|
|
|
94
94
|
fontWeight: "500"
|
|
95
95
|
},
|
|
96
96
|
".ant-statistic-content": {
|
|
97
|
-
color: t.
|
|
97
|
+
color: t.textColor1,
|
|
98
98
|
fontSize: t.fontSize,
|
|
99
99
|
lineHeight: t.lineHeight,
|
|
100
100
|
fontWeight: "500"
|
|
@@ -111,7 +111,7 @@ const o = (t) => {
|
|
|
111
111
|
fontWeight: "500"
|
|
112
112
|
},
|
|
113
113
|
".ant-statistic-content": {
|
|
114
|
-
color: t.
|
|
114
|
+
color: t.textColor1,
|
|
115
115
|
fontSize: t.fontSize,
|
|
116
116
|
lineHeight: t.lineHeight,
|
|
117
117
|
fontWeight: "500"
|
|
@@ -12,7 +12,7 @@ const r = {
|
|
|
12
12
|
apProCardTooltipColor: "#8896b0",
|
|
13
13
|
apProCardHeaderTitleFontSize: "12px",
|
|
14
14
|
apProCardHeaderTitleFontColor: "#182948",
|
|
15
|
-
apProCardAreaColor: "#
|
|
15
|
+
apProCardAreaColor: "#f7f8fa",
|
|
16
16
|
apProCardSplitLineHeight: "100%",
|
|
17
17
|
apProCardDividerLineHeight: "60%"
|
|
18
18
|
};
|
|
@@ -126,13 +126,13 @@ const r = (t) => ({
|
|
|
126
126
|
marginBlockEnd: 0
|
|
127
127
|
},
|
|
128
128
|
"&-pagination-count-text": {
|
|
129
|
-
color: t.
|
|
129
|
+
color: t.textColor1
|
|
130
130
|
},
|
|
131
131
|
"&-pagination--total-right": {
|
|
132
132
|
paddingLeft: "12px"
|
|
133
133
|
},
|
|
134
134
|
"&-pagination-total-wrapper": {
|
|
135
|
-
color: t.
|
|
135
|
+
color: t.textColor2
|
|
136
136
|
},
|
|
137
137
|
// ApTable的header区域
|
|
138
138
|
[`${a}-header`]: {
|
|
@@ -16,7 +16,7 @@ const r = (e) => {
|
|
|
16
16
|
[`.${l}-ap-grid-table-header__title`]: {
|
|
17
17
|
...n(e),
|
|
18
18
|
fontWeight: "normal",
|
|
19
|
-
color: e.
|
|
19
|
+
color: e.textColor1
|
|
20
20
|
},
|
|
21
21
|
[`.${l}-ag-grid-table-header__title`]: {
|
|
22
22
|
...n(e)
|
|
@@ -169,7 +169,7 @@ const r = (e) => {
|
|
|
169
169
|
"&-title": {
|
|
170
170
|
...i(e),
|
|
171
171
|
fontWeight: "bold",
|
|
172
|
-
color: e.
|
|
172
|
+
color: e.textColor1
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
"&-content": {
|