@aplus-frontend/ui 7.4.1 → 7.4.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/index.mjs +183 -181
- package/es/src/ag-grid/index.vue.mjs +207 -187
- package/es/src/ap-drawer/style/index.mjs +10 -10
- package/es/src/ap-field/date/index.vue.mjs +1 -0
- package/es/src/ap-field/date/read.vue2.mjs +4 -3
- package/es/src/ap-field/date-range/index.vue.mjs +1 -0
- package/es/src/ap-field/date-range/read.vue2.mjs +1 -0
- package/es/src/ap-field/interface.d.ts +2 -0
- package/es/src/ap-field/text/index.vue2.mjs +27 -23
- package/es/src/ap-field/text/password.vue.mjs +31 -27
- package/es/src/ap-form/item/index.vue.mjs +20 -20
- package/es/src/ap-pro-card/style/index.mjs +1 -1
- package/es/src/ap-pro-card/style/title.mjs +10 -10
- package/es/src/business/ap-copy/style/index.mjs +11 -11
- package/es/src/business/ap-label/style/index.mjs +1 -1
- package/es/src/business/ap-value-select-card/style/index.mjs +2 -2
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +302 -299
- package/es/src/render/index.d.ts +2 -0
- package/es/src/render/index.mjs +4 -0
- package/es/src/render/render.d.ts +15 -0
- package/es/src/render/render.mjs +17 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-drawer/style/index.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/interface.d.ts +2 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-pro-card/style/index.js +1 -1
- package/lib/src/ap-pro-card/style/title.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-label/style/index.js +1 -1
- package/lib/src/business/ap-value-select-card/style/index.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/render/index.d.ts +2 -0
- package/lib/src/render/index.js +1 -0
- package/lib/src/render/render.d.ts +15 -0
- package/lib/src/render/render.js +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
- package/es/src/portal/style/css.d.ts +0 -1
- package/es/src/portal/style/index.d.ts +0 -1
- package/lib/src/portal/style/css.d.ts +0 -1
- package/lib/src/portal/style/index.d.ts +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const r = (
|
|
3
|
-
[`${
|
|
1
|
+
import { genComponentStyleHook as o } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
const r = (e) => ({
|
|
3
|
+
[`${e.componentCls}-close`]: {
|
|
4
4
|
width: "32px",
|
|
5
5
|
height: "32px",
|
|
6
6
|
display: "flex",
|
|
7
7
|
flexDirection: "column",
|
|
8
8
|
justifyContent: "center",
|
|
9
9
|
alignItems: "center",
|
|
10
|
-
border: `1px solid ${
|
|
11
|
-
borderRadius:
|
|
10
|
+
border: `1px solid ${e.borderColorBase}`,
|
|
11
|
+
borderRadius: e.borderRadius,
|
|
12
12
|
cursor: "pointer",
|
|
13
|
-
".
|
|
13
|
+
".user-frontend-icon": {
|
|
14
14
|
fontSize: "18px",
|
|
15
15
|
display: "flex",
|
|
16
16
|
alignItems: "center",
|
|
17
17
|
transition: "color 0.3s"
|
|
18
18
|
},
|
|
19
19
|
"&:hover": {
|
|
20
|
-
".
|
|
21
|
-
color:
|
|
20
|
+
".user-frontend-icon": {
|
|
21
|
+
color: e.colorError
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
}), t =
|
|
26
|
-
r(
|
|
25
|
+
}), t = o("ApDrawer", (e) => [
|
|
26
|
+
r(e)
|
|
27
27
|
]);
|
|
28
28
|
export {
|
|
29
29
|
t as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, computed as t, toDisplayString as i, unref as d } from "vue";
|
|
2
2
|
import n from "dayjs";
|
|
3
3
|
import { isNil as m } from "lodash-unified";
|
|
4
4
|
import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
|
|
5
5
|
import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
|
|
6
6
|
import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
|
|
7
|
-
const T = /* @__PURE__ */
|
|
7
|
+
const T = /* @__PURE__ */ u({
|
|
8
8
|
name: "ApFieldDateRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -78,6 +78,7 @@ const T = /* @__PURE__ */ i({
|
|
|
78
78
|
emptyText: { default: "--" },
|
|
79
79
|
value: {},
|
|
80
80
|
defaultValue: {},
|
|
81
|
+
"onUpdate:value": {},
|
|
81
82
|
onChange: {},
|
|
82
83
|
onOk: {},
|
|
83
84
|
format: { default: "Y-D" },
|
|
@@ -96,7 +97,7 @@ const T = /* @__PURE__ */ i({
|
|
|
96
97
|
let o = n(e.value);
|
|
97
98
|
return e.timezone && (o = n(c(e.value, r.value))), o;
|
|
98
99
|
});
|
|
99
|
-
return (o, h) =>
|
|
100
|
+
return (o, h) => i(a.value ? d(n)(a.value).format(s.value) : o.emptyText);
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
export {
|
|
@@ -47,6 +47,7 @@ export type ApFieldDateProps = BasicApFieldProps<Omit<DatePickerProps, 'mode' |
|
|
|
47
47
|
emptyText?: string;
|
|
48
48
|
value?: number | null;
|
|
49
49
|
defaultValue?: number;
|
|
50
|
+
'onUpdate:value'?: (ts: number | null) => void;
|
|
50
51
|
onChange?: (ts: number | null, dayStr: string) => void;
|
|
51
52
|
onOk?: (ts: number | null) => void;
|
|
52
53
|
format?: LiteralUnion<ApFormatPresetType, string>;
|
|
@@ -116,6 +117,7 @@ export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'va
|
|
|
116
117
|
emptyText?: string;
|
|
117
118
|
value?: RangeValue<number> | null;
|
|
118
119
|
defaultValue?: RangeValue<number>;
|
|
120
|
+
'onUpdate:value'?: (ts: RangeValue<number> | null) => void;
|
|
119
121
|
onChange?: (ts: RangeValue<number> | null, dayStr: [string, string]) => void;
|
|
120
122
|
onOk?: (ts: RangeValue<number>) => void;
|
|
121
123
|
format?: LiteralUnion<ApFormatPresetType, string>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { isVNode as g, defineComponent as C, ref as S, useSlots as _, createVNode as i, mergeProps as
|
|
2
|
-
import { Input as
|
|
1
|
+
import { isVNode as g, defineComponent as C, ref as S, useSlots as _, createVNode as i, mergeProps as R, unref as r, computed as V, createBlock as w, openBlock as T } from "vue";
|
|
2
|
+
import { Input as j } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import { useDefaultPlaceholder as
|
|
6
|
-
import
|
|
4
|
+
import { omit as U } from "lodash-unified";
|
|
5
|
+
import { useDefaultPlaceholder as z } from "../hooks/use-default-placeholder.mjs";
|
|
6
|
+
import "../../render/index.mjs";
|
|
7
|
+
import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
|
|
8
|
+
import M from "../../render/render.mjs";
|
|
7
9
|
function N(n) {
|
|
8
10
|
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !g(n);
|
|
9
11
|
}
|
|
10
|
-
const
|
|
12
|
+
const $ = /* @__PURE__ */ C({
|
|
11
13
|
name: "ApFieldText",
|
|
12
14
|
__name: "index",
|
|
13
15
|
props: {
|
|
@@ -95,43 +97,45 @@ const K = /* @__PURE__ */ C({
|
|
|
95
97
|
emits: ["update:value"],
|
|
96
98
|
setup(n, {
|
|
97
99
|
expose: d,
|
|
98
|
-
emit:
|
|
100
|
+
emit: f
|
|
99
101
|
}) {
|
|
100
|
-
const t = S(),
|
|
102
|
+
const t = S(), u = _(), c = (o) => {
|
|
101
103
|
t.value?.focus(o);
|
|
102
104
|
}, m = () => {
|
|
103
105
|
t.value?.blur();
|
|
104
|
-
}, y = (o,
|
|
105
|
-
t.value?.setSelectionRange(o,
|
|
106
|
-
},
|
|
106
|
+
}, y = (o, l, a) => {
|
|
107
|
+
t.value?.setSelectionRange(o, l, a);
|
|
108
|
+
}, x = () => {
|
|
107
109
|
t.value?.select();
|
|
108
|
-
},
|
|
110
|
+
}, v = f, e = n, {
|
|
109
111
|
value: p,
|
|
110
112
|
updateValue: B
|
|
111
|
-
} =
|
|
113
|
+
} = F(e, v), b = z("Text", e);
|
|
112
114
|
function h(o) {
|
|
113
|
-
const
|
|
115
|
+
const l = o.target.value || "", a = e.beforeInput ? e.beforeInput?.(l) : l, s = t.value?.$el?.querySelector("input");
|
|
114
116
|
s && (s.value = a), B(a);
|
|
115
117
|
}
|
|
116
118
|
function I() {
|
|
117
|
-
return e.mode === "edit" ? i(
|
|
119
|
+
return e.mode === "edit" ? i(j, R(U(e, ["mode", "emptyText", "value", "onUpdate:value", "beforeInput"]), {
|
|
118
120
|
placeholder: r(b),
|
|
119
121
|
value: r(p),
|
|
120
122
|
onInput: h,
|
|
121
123
|
ref: t
|
|
122
|
-
}), N(
|
|
123
|
-
default: () => [
|
|
124
|
-
}) : i("span", null, [e.prefix ||
|
|
124
|
+
}), N(u) ? u : {
|
|
125
|
+
default: () => [u]
|
|
126
|
+
}) : i("span", null, [e.prefix || u?.prefix?.(), r(p) || e.emptyText, e.suffix || u?.suffix?.()]);
|
|
125
127
|
}
|
|
126
128
|
return d({
|
|
127
|
-
focus:
|
|
129
|
+
focus: c,
|
|
128
130
|
blur: m,
|
|
129
131
|
setSelectionRange: y,
|
|
130
|
-
select:
|
|
131
|
-
input:
|
|
132
|
-
}), (o,
|
|
132
|
+
select: x,
|
|
133
|
+
input: V(() => t.value?.input)
|
|
134
|
+
}), (o, l) => (T(), w(r(M), {
|
|
135
|
+
renderer: I
|
|
136
|
+
}));
|
|
133
137
|
}
|
|
134
138
|
});
|
|
135
139
|
export {
|
|
136
|
-
|
|
140
|
+
$ as default
|
|
137
141
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { isVNode as x, defineComponent as h, useSlots as
|
|
2
|
-
import { Input as
|
|
1
|
+
import { isVNode as x, defineComponent as h, useSlots as g, ref as C, unref as a, createVNode as e, mergeProps as w, Fragment as P, createBlock as U, openBlock as V } from "vue";
|
|
2
|
+
import { Input as _, Space as S } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../hooks/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import { EyeOutlined as
|
|
6
|
-
import { useDefaultPlaceholder as
|
|
7
|
-
import
|
|
4
|
+
import { omit as T } from "lodash-unified";
|
|
5
|
+
import { EyeOutlined as I, EyeInvisibleOutlined as O } from "@ant-design/icons-vue";
|
|
6
|
+
import { useDefaultPlaceholder as j } from "../hooks/use-default-placeholder.mjs";
|
|
7
|
+
import "../../render/index.mjs";
|
|
8
|
+
import { useControllableValue as p } from "../../hooks/useControllableValue.mjs";
|
|
9
|
+
import k from "../../render/render.mjs";
|
|
8
10
|
function E(t) {
|
|
9
11
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !x(t);
|
|
10
12
|
}
|
|
11
|
-
const
|
|
13
|
+
const J = /* @__PURE__ */ h({
|
|
12
14
|
name: "ApFieldTextPassword",
|
|
13
15
|
__name: "password",
|
|
14
16
|
props: {
|
|
@@ -110,48 +112,50 @@ const G = /* @__PURE__ */ h({
|
|
|
110
112
|
expose: c,
|
|
111
113
|
emit: f
|
|
112
114
|
}) {
|
|
113
|
-
const
|
|
115
|
+
const r = f, o = t, u = g(), i = C(), {
|
|
114
116
|
value: m,
|
|
115
117
|
updateValue: v
|
|
116
|
-
} =
|
|
118
|
+
} = p(o, r), y = j("TextPassword", o), {
|
|
117
119
|
value: b,
|
|
118
|
-
updateValue:
|
|
119
|
-
} =
|
|
120
|
+
updateValue: s
|
|
121
|
+
} = p(o, r, {
|
|
120
122
|
valuePropName: "visible"
|
|
121
123
|
});
|
|
122
124
|
function B() {
|
|
123
|
-
const n =
|
|
125
|
+
const n = a(m), l = a(b);
|
|
124
126
|
if (o.mode === "edit")
|
|
125
|
-
return e(
|
|
126
|
-
placeholder:
|
|
127
|
+
return e(_.Password, w(T(o, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
|
|
128
|
+
placeholder: a(y),
|
|
127
129
|
value: n,
|
|
128
130
|
"onUpdate:value": v,
|
|
129
131
|
visible: l,
|
|
130
|
-
"onUpdate:visible":
|
|
131
|
-
ref:
|
|
132
|
-
}), E(
|
|
133
|
-
default: () => [
|
|
132
|
+
"onUpdate:visible": s,
|
|
133
|
+
ref: i
|
|
134
|
+
}), E(u) ? u : {
|
|
135
|
+
default: () => [u]
|
|
134
136
|
});
|
|
135
|
-
let
|
|
136
|
-
return n && (
|
|
137
|
+
let d = e(P, null, [o.emptyText]);
|
|
138
|
+
return n && (d = e(S, null, {
|
|
137
139
|
default: () => [e("span", null, [l ? n : "********"]), e("span", {
|
|
138
140
|
style: {
|
|
139
141
|
cursor: "pointer"
|
|
140
142
|
},
|
|
141
|
-
onClick: () =>
|
|
142
|
-
}, [l ? e(
|
|
143
|
-
})),
|
|
143
|
+
onClick: () => s(!l)
|
|
144
|
+
}, [l ? e(I, null, null) : e(O, null, null)])]
|
|
145
|
+
})), d;
|
|
144
146
|
}
|
|
145
147
|
return c({
|
|
146
148
|
focus: () => {
|
|
147
|
-
|
|
149
|
+
i.value?.focus();
|
|
148
150
|
},
|
|
149
151
|
blur: () => {
|
|
150
|
-
|
|
152
|
+
i.value?.blur();
|
|
151
153
|
}
|
|
152
|
-
}), (n, l) => (V(), U(
|
|
154
|
+
}), (n, l) => (V(), U(a(k), {
|
|
155
|
+
renderer: B
|
|
156
|
+
}));
|
|
153
157
|
}
|
|
154
158
|
});
|
|
155
159
|
export {
|
|
156
|
-
|
|
160
|
+
J as default
|
|
157
161
|
};
|
|
@@ -3,9 +3,9 @@ import { Form as X, Tooltip as Z, TypographyText as ee } from "@aplus-frontend/a
|
|
|
3
3
|
import { useToken as oe } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { isFunction as F, cloneDeep as te, isArray as re, omit as V } from "lodash-unified";
|
|
5
5
|
import { apFormItemColPropKeys as le } from "../constant.mjs";
|
|
6
|
-
import { QuestionCircleOutlined as
|
|
6
|
+
import { QuestionCircleOutlined as ae } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
|
-
import { useInjectForm as
|
|
8
|
+
import { useInjectForm as ne } from "../context.mjs";
|
|
9
9
|
import { isPromise as ie } from "@fruits-chain/utils";
|
|
10
10
|
import { getValidVNodeList as se } from "../../utils/slot.mjs";
|
|
11
11
|
import ue from "../style/item.mjs";
|
|
@@ -58,7 +58,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
58
58
|
disabled: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(g, { expose: h }) {
|
|
61
|
-
const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } =
|
|
61
|
+
const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ne(), { m: u, b: k } = de("ap-form-item"), x = ue("ap-form-item"), d = y(!1), n = y(), [, N] = oe();
|
|
62
62
|
E(async () => {
|
|
63
63
|
let e = F(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
64
64
|
ie(e) && (e = await e), C?.registerField({
|
|
@@ -68,11 +68,11 @@ const Ce = /* @__PURE__ */ _({
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
const c = M(() => o.name ? re(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
|
|
71
|
-
function
|
|
72
|
-
const l = Object.keys(t),
|
|
71
|
+
function P(e, t) {
|
|
72
|
+
const l = Object.keys(t), a = { ...t };
|
|
73
73
|
return l.forEach((s) => {
|
|
74
|
-
s in e || delete
|
|
75
|
-
}),
|
|
74
|
+
s in e || delete a[s];
|
|
75
|
+
}), console.log("result", e), a;
|
|
76
76
|
}
|
|
77
77
|
function I() {
|
|
78
78
|
const e = m.default?.() || [];
|
|
@@ -81,7 +81,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
81
81
|
const t = se(e)[0];
|
|
82
82
|
if (!t)
|
|
83
83
|
return null;
|
|
84
|
-
const l = t?.type?.props ?? {},
|
|
84
|
+
const l = t?.type?.props ?? {}, a = {
|
|
85
85
|
[o.valuePropName]: r(c),
|
|
86
86
|
[`onUpdate:${o.valuePropName}`]: S,
|
|
87
87
|
variant: o.bordered ? "borderless" : t?.props?.variant,
|
|
@@ -89,7 +89,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
89
89
|
onFocus: T,
|
|
90
90
|
onBlur: w
|
|
91
91
|
};
|
|
92
|
-
return O(t,
|
|
92
|
+
return O(t, P(l, a));
|
|
93
93
|
}
|
|
94
94
|
function S(e) {
|
|
95
95
|
B?.(o.name, e);
|
|
@@ -101,16 +101,16 @@ const Ce = /* @__PURE__ */ _({
|
|
|
101
101
|
d.value = !1;
|
|
102
102
|
}
|
|
103
103
|
function z() {
|
|
104
|
-
|
|
104
|
+
n.value?.onFieldBlur();
|
|
105
105
|
}
|
|
106
106
|
function R() {
|
|
107
|
-
|
|
107
|
+
n.value?.onFieldChange();
|
|
108
108
|
}
|
|
109
109
|
function A() {
|
|
110
|
-
|
|
110
|
+
n.value?.clearValidate();
|
|
111
111
|
}
|
|
112
112
|
function D() {
|
|
113
|
-
|
|
113
|
+
n.value?.resetField();
|
|
114
114
|
}
|
|
115
115
|
function L(e = !1) {
|
|
116
116
|
const t = r(c);
|
|
@@ -128,7 +128,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
128
128
|
}), (e, t) => (v(), b(r(X).Item, $(
|
|
129
129
|
{
|
|
130
130
|
ref_key: "formItemRef",
|
|
131
|
-
ref:
|
|
131
|
+
ref: n
|
|
132
132
|
},
|
|
133
133
|
r(V)(o, [...r(le), "tooltip", "label", "description"]),
|
|
134
134
|
{
|
|
@@ -137,7 +137,7 @@ const Ce = /* @__PURE__ */ _({
|
|
|
137
137
|
[r(u)("focused")]: e.bordered && d.value,
|
|
138
138
|
[r(u)("disabled")]: e.bordered && e.disabled,
|
|
139
139
|
[r(k)()]: !0,
|
|
140
|
-
[r(
|
|
140
|
+
[r(x)]: !0
|
|
141
141
|
},
|
|
142
142
|
colon: e.bordered ? !1 : o.colon
|
|
143
143
|
}
|
|
@@ -157,9 +157,9 @@ const Ce = /* @__PURE__ */ _({
|
|
|
157
157
|
title: o.tooltip
|
|
158
158
|
}, {
|
|
159
159
|
default: i(() => [
|
|
160
|
-
f(r(
|
|
160
|
+
f(r(ae), {
|
|
161
161
|
style: G({
|
|
162
|
-
color: r(
|
|
162
|
+
color: r(N).colorTextTertiary,
|
|
163
163
|
fontSize: "14px",
|
|
164
164
|
transform: "translateY(1px)"
|
|
165
165
|
})
|
|
@@ -182,10 +182,10 @@ const Ce = /* @__PURE__ */ _({
|
|
|
182
182
|
]),
|
|
183
183
|
key: "1"
|
|
184
184
|
} : void 0,
|
|
185
|
-
Q(r(V)(m, "default"), (l,
|
|
186
|
-
name:
|
|
185
|
+
Q(r(V)(m, "default"), (l, a) => ({
|
|
186
|
+
name: a,
|
|
187
187
|
fn: i((s) => [
|
|
188
|
-
H(e.$slots,
|
|
188
|
+
H(e.$slots, a, J(W(s || {})))
|
|
189
189
|
])
|
|
190
190
|
}))
|
|
191
191
|
]), 1040, ["class", "colon"]));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const
|
|
3
|
-
const { componentCls:
|
|
1
|
+
import { genComponentStyleHook as e } from "../../utils/cssinjs/index.mjs";
|
|
2
|
+
const r = (t) => {
|
|
3
|
+
const { componentCls: o } = t;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[o]: {
|
|
6
6
|
"&-default": {
|
|
7
7
|
position: "relative",
|
|
8
8
|
fontWeight: "bold",
|
|
@@ -19,7 +19,7 @@ const n = (t) => {
|
|
|
19
19
|
transform: "translateY(-50%)",
|
|
20
20
|
width: "3px",
|
|
21
21
|
height: "14px",
|
|
22
|
-
backgroundColor:
|
|
22
|
+
backgroundColor: t.colorPrimary,
|
|
23
23
|
borderRadius: "0px 4px 4px 0px"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -34,17 +34,17 @@ const n = (t) => {
|
|
|
34
34
|
width: "8px",
|
|
35
35
|
height: "8px",
|
|
36
36
|
borderRadius: "50%",
|
|
37
|
-
border:
|
|
37
|
+
border: `2px solid ${t.colorPrimary}`,
|
|
38
38
|
background: "#fff"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
},
|
|
45
|
-
|
|
44
|
+
}, a = e("ProCard.Title", (t) => [
|
|
45
|
+
r(t)
|
|
46
46
|
]);
|
|
47
47
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
a as default,
|
|
49
|
+
r as genProCardTitleStyle
|
|
50
50
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
1
|
+
import { genComponentStyleHook as t } from "../../../utils/cssinjs/index.mjs";
|
|
2
2
|
const r = (o) => {
|
|
3
|
-
const { componentCls:
|
|
3
|
+
const { componentCls: e } = o;
|
|
4
4
|
return {
|
|
5
|
-
[
|
|
5
|
+
[e]: {
|
|
6
6
|
display: "flex",
|
|
7
7
|
alignItems: "center",
|
|
8
8
|
width: "100%",
|
|
@@ -15,40 +15,40 @@ const r = (o) => {
|
|
|
15
15
|
opacity: 1
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
[`${
|
|
18
|
+
[`${e}__text`]: {
|
|
19
19
|
overflow: "hidden",
|
|
20
20
|
textOverflow: "ellipsis",
|
|
21
21
|
whiteSpace: "nowrap",
|
|
22
22
|
height: "18px",
|
|
23
23
|
lineHeight: "18px"
|
|
24
24
|
},
|
|
25
|
-
[`${
|
|
25
|
+
[`${e}--text-major`]: {
|
|
26
26
|
color: o.textColor1
|
|
27
27
|
},
|
|
28
|
-
[`${
|
|
28
|
+
[`${e}--text-minor`]: {
|
|
29
29
|
color: o.textColor3
|
|
30
30
|
},
|
|
31
|
-
[`${
|
|
31
|
+
[`${e}--text-link`]: {
|
|
32
32
|
color: o.colorLink,
|
|
33
33
|
cursor: "pointer",
|
|
34
34
|
"&:hover": {
|
|
35
35
|
color: o.colorLinkHover
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
[`${
|
|
38
|
+
[`${e}__copy-btn`]: {
|
|
39
39
|
flexShrink: 0,
|
|
40
40
|
width: "16px",
|
|
41
41
|
marginInlineStart: "4px",
|
|
42
42
|
display: "flex",
|
|
43
43
|
alignItems: "center",
|
|
44
|
-
".
|
|
44
|
+
".user-frontend-icon": {
|
|
45
45
|
cursor: "pointer",
|
|
46
46
|
color: "#ABB7CC",
|
|
47
47
|
height: "14px",
|
|
48
48
|
lineHeight: "14px"
|
|
49
49
|
},
|
|
50
50
|
"&:hover": {
|
|
51
|
-
".
|
|
51
|
+
".user-frontend-icon": {
|
|
52
52
|
cursor: "pointer",
|
|
53
53
|
color: o.colorLink
|
|
54
54
|
}
|
|
@@ -56,7 +56,7 @@ const r = (o) => {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
}, i =
|
|
59
|
+
}, i = t("ApCopy", (o) => [
|
|
60
60
|
r(o)
|
|
61
61
|
]);
|
|
62
62
|
export {
|
|
@@ -18,7 +18,7 @@ const l = (o) => {
|
|
|
18
18
|
boxSizing: "border-box",
|
|
19
19
|
padding: "8px 16px",
|
|
20
20
|
color: o.textColor2,
|
|
21
|
-
border: `1px solid ${o.
|
|
21
|
+
border: `1px solid ${o.borderColorBase}`,
|
|
22
22
|
borderRadius: o.borderRadius,
|
|
23
23
|
cursor: "pointer",
|
|
24
24
|
"&-close": {
|
|
@@ -69,7 +69,7 @@ const l = (o) => {
|
|
|
69
69
|
color: o.textColor3,
|
|
70
70
|
background: "#f9f9fa",
|
|
71
71
|
cursor: "not-allowed",
|
|
72
|
-
border: `1px solid ${o.
|
|
72
|
+
border: `1px solid ${o.borderColorBase}`
|
|
73
73
|
},
|
|
74
74
|
"&.select": {
|
|
75
75
|
backgroundColor: o.colorBgControl,
|
package/es/src/index.d.ts
CHANGED