@aplus-frontend/ui 7.0.1 → 7.1.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.
- 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 +1 -1
- 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/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 +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Descriptions as
|
|
3
|
-
import { mixinsAttachmentExtraProps as
|
|
4
|
-
import { get as
|
|
1
|
+
import { defineComponent as V, createElementBlock as n, openBlock as o, normalizeStyle as x, normalizeClass as y, unref as r, createVNode as B, mergeProps as E, withCtx as f, Fragment as a, renderList as _, createCommentVNode as w, createBlock as i, h as p, renderSlot as A, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { Descriptions as z, DescriptionsItem as d } from "@aplus-frontend/antdv";
|
|
3
|
+
import { mixinsAttachmentExtraProps as F, transformValue as G, isEmptyWithType as I } from "./helper.mjs";
|
|
4
|
+
import { get as b } from "lodash-unified";
|
|
5
5
|
import "./help-message/index.vue.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import
|
|
8
|
-
import { useGlobalConfig as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
7
|
+
import L from "./style/index.mjs";
|
|
8
|
+
import { useGlobalConfig as m } from "../config-provider/hooks/use-global-config.mjs";
|
|
9
|
+
import { useNamespace as M } from "../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import R from "./help-message/index.vue2.mjs";
|
|
11
|
+
const $ = { key: 0 }, Z = /* @__PURE__ */ V({
|
|
12
12
|
name: "ApDescriptions",
|
|
13
13
|
__name: "ap-descriptions",
|
|
14
14
|
props: {
|
|
@@ -19,23 +19,23 @@ const W = { key: 0 }, ee = /* @__PURE__ */ B({
|
|
|
19
19
|
className: {}
|
|
20
20
|
},
|
|
21
21
|
setup(S) {
|
|
22
|
-
const l = S, g =
|
|
22
|
+
const l = S, g = m("apDescriptions"), v = m("downloadCenterTriggerConfig"), { b: C, be: k } = M("ap-descriptions"), P = L("ap-descriptions"), D = (e = {}) => {
|
|
23
23
|
let s = "";
|
|
24
24
|
return l.descriptionsProps?.layout === "vertical" && (s = "start"), {
|
|
25
25
|
justifyContent: s,
|
|
26
26
|
...e
|
|
27
27
|
};
|
|
28
|
-
},
|
|
29
|
-
const s =
|
|
28
|
+
}, c = (e) => {
|
|
29
|
+
const s = b(l.dataSource, e.field);
|
|
30
30
|
if (e.customRender)
|
|
31
31
|
return e.customRender(l.dataSource);
|
|
32
|
-
e.valueType === "attachment" && (e.extraProps =
|
|
33
|
-
fromConfig:
|
|
34
|
-
fromGlobal:
|
|
32
|
+
e.valueType === "attachment" && (e.extraProps = F(e.extraProps, {
|
|
33
|
+
fromConfig: g.value?.downloadFile,
|
|
34
|
+
fromGlobal: v.value?.trigger
|
|
35
35
|
}));
|
|
36
36
|
const t = e.format ? e.format(s, l.dataSource || {}) : s;
|
|
37
|
-
return
|
|
38
|
-
},
|
|
37
|
+
return G({ value: t, record: l.dataSource }, e);
|
|
38
|
+
}, N = (e) => e.valueType === "text" && !!e.extraProps?.ellipsis, T = (e) => {
|
|
39
39
|
if (e.visible != null) {
|
|
40
40
|
if (typeof e.visible == "boolean")
|
|
41
41
|
return e.visible;
|
|
@@ -47,28 +47,28 @@ const W = { key: 0 }, ee = /* @__PURE__ */ B({
|
|
|
47
47
|
}
|
|
48
48
|
return !0;
|
|
49
49
|
};
|
|
50
|
-
return (e, s) => (
|
|
51
|
-
class:
|
|
52
|
-
style:
|
|
50
|
+
return (e, s) => (o(), n("div", {
|
|
51
|
+
class: y([e.className, r(C)(), r(P)]),
|
|
52
|
+
style: x(e.style)
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
"label-style":
|
|
54
|
+
B(r(z), E(e.descriptionsProps, {
|
|
55
|
+
"label-style": D({ ...e.descriptionsProps?.labelStyle || {} })
|
|
56
56
|
}), {
|
|
57
|
-
default:
|
|
58
|
-
(
|
|
59
|
-
key: t.field || "empty" +
|
|
57
|
+
default: f(() => [
|
|
58
|
+
(o(!0), n(a, null, _(e.schemas, (t, u) => (o(), n(a, {
|
|
59
|
+
key: t.field || "empty" + u
|
|
60
60
|
}, [
|
|
61
|
-
|
|
62
|
-
t.valueType === "empty" ? (
|
|
61
|
+
T(t) ? (o(), n(a, { key: 0 }, [
|
|
62
|
+
t.valueType === "empty" ? (o(), i(r(d), {
|
|
63
63
|
key: 0,
|
|
64
64
|
"content-style": t.contentStyle,
|
|
65
65
|
"label-style": t.labelStyle,
|
|
66
66
|
span: t.span
|
|
67
|
-
}, null, 8, ["content-style", "label-style", "span"])) : (
|
|
67
|
+
}, null, 8, ["content-style", "label-style", "span"])) : (o(), i(r(d), {
|
|
68
68
|
key: 1,
|
|
69
|
-
class:
|
|
69
|
+
class: y(N(t) ? r(k)("item", "ellipsis") : ""),
|
|
70
70
|
label: t.label ? p(a, [
|
|
71
|
-
p(
|
|
71
|
+
p(R, {
|
|
72
72
|
helpMessage: t.helpMessage,
|
|
73
73
|
label: t.label
|
|
74
74
|
})
|
|
@@ -77,17 +77,17 @@ const W = { key: 0 }, ee = /* @__PURE__ */ B({
|
|
|
77
77
|
"content-style": t.contentStyle,
|
|
78
78
|
"label-style": t.labelStyle
|
|
79
79
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
|
|
82
|
-
t.contentSlotName ?
|
|
80
|
+
default: f(() => [
|
|
81
|
+
r(I)(r(b)(e.dataSource, t.field), t) ? (o(), n("span", $, "--")) : (o(), n(a, { key: 1 }, [
|
|
82
|
+
t.contentSlotName ? A(e.$slots, t.contentSlotName, {
|
|
83
83
|
key: 0,
|
|
84
|
-
index:
|
|
85
|
-
item:
|
|
84
|
+
index: u,
|
|
85
|
+
item: c(t),
|
|
86
86
|
record: e.dataSource
|
|
87
|
-
}) : (
|
|
87
|
+
}) : (o(), i(j(
|
|
88
88
|
p(a, [
|
|
89
89
|
t.prefix,
|
|
90
|
-
|
|
90
|
+
c(t),
|
|
91
91
|
t.suffix
|
|
92
92
|
])
|
|
93
93
|
), { key: 1 }))
|
|
@@ -95,7 +95,7 @@ const W = { key: 0 }, ee = /* @__PURE__ */ B({
|
|
|
95
95
|
]),
|
|
96
96
|
_: 2
|
|
97
97
|
}, 1032, ["class", "label", "span", "content-style", "label-style"]))
|
|
98
|
-
], 64)) :
|
|
98
|
+
], 64)) : w("", !0)
|
|
99
99
|
], 64))), 128))
|
|
100
100
|
]),
|
|
101
101
|
_: 3
|
|
@@ -104,5 +104,5 @@ const W = { key: 0 }, ee = /* @__PURE__ */ B({
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
Z as default
|
|
108
108
|
};
|
|
@@ -44,58 +44,31 @@ const e = (t) => {
|
|
|
44
44
|
},
|
|
45
45
|
".ant-descriptions-row": {
|
|
46
46
|
".ant-descriptions-item-label": {
|
|
47
|
+
justifyContent: "flex-end",
|
|
48
|
+
width: "var(--ap-descriptions-item-label-width, auto)",
|
|
49
|
+
color: t.textColor3,
|
|
50
|
+
".ap-descriptions-item-content__help": {
|
|
51
|
+
fontSize: t.fontSizeLG,
|
|
52
|
+
marginInlineStart: "4px",
|
|
53
|
+
color: t.textColor3
|
|
54
|
+
},
|
|
47
55
|
".ant-typography": {
|
|
48
56
|
color: "inherit"
|
|
49
57
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
width: "var(--ap-descriptions-item-label-width, auto)",
|
|
57
|
-
color: "#999",
|
|
58
|
-
".ap-descriptions-item-content__help": {
|
|
59
|
-
fontSize: t.fontSizeLG,
|
|
60
|
-
marginInlineStart: "4px",
|
|
61
|
-
color: "#999"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
".ant-descriptions-item-content": {
|
|
65
|
-
color: "#333",
|
|
66
|
-
".ap-descriptions-item-content__link": {
|
|
67
|
-
color: "#1890ff",
|
|
68
|
-
cursor: "pointer"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"&--aplus": {
|
|
74
|
-
".ant-descriptions-row": {
|
|
75
|
-
".ant-descriptions-item-label": {
|
|
76
|
-
justifyContent: "flex-end",
|
|
77
|
-
width: "var(--ap-descriptions-item-label-width, auto)",
|
|
78
|
-
color: "#8896B0",
|
|
79
|
-
".ap-descriptions-item-content__help": {
|
|
80
|
-
fontSize: t.fontSizeLG,
|
|
81
|
-
marginInlineStart: "4px",
|
|
82
|
-
color: "#8896B0"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
".ant-descriptions-item-content": {
|
|
86
|
-
color: "#182948",
|
|
87
|
-
".ap-descriptions-item-content__link": {
|
|
88
|
-
color: "#0070FF",
|
|
89
|
-
cursor: "pointer"
|
|
90
|
-
}
|
|
58
|
+
},
|
|
59
|
+
".ant-descriptions-item-content": {
|
|
60
|
+
color: t.textColor1,
|
|
61
|
+
".ap-descriptions-item-content__link": {
|
|
62
|
+
color: t.colorLink,
|
|
63
|
+
cursor: "pointer"
|
|
91
64
|
}
|
|
92
65
|
}
|
|
93
66
|
}
|
|
94
67
|
}
|
|
95
68
|
};
|
|
96
|
-
},
|
|
69
|
+
}, r = n("ApDescriptions", (t) => [
|
|
97
70
|
e(t)
|
|
98
71
|
]);
|
|
99
72
|
export {
|
|
100
|
-
|
|
73
|
+
r as default
|
|
101
74
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { LoadingOutlined as
|
|
1
|
+
import { defineComponent as O, ref as z, useSlots as A, computed as s, unref as t, createBlock as L, openBlock as i, mergeProps as S, withCtx as x, createElementVNode as m, normalizeClass as j, createElementBlock as f, createCommentVNode as u, createVNode as I, renderSlot as F, toDisplayString as T } from "vue";
|
|
2
|
+
import { Button as U } from "@aplus-frontend/antdv";
|
|
3
|
+
import { LoadingOutlined as V } from "@ant-design/icons-vue";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { useOssInit as
|
|
6
|
-
import { getFileInfo as
|
|
7
|
-
import { useStyle as
|
|
8
|
-
import { omit as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useGlobalConfig as
|
|
11
|
-
const
|
|
5
|
+
import { useOssInit as D } from "./hooks/index.mjs";
|
|
6
|
+
import { getFileInfo as g } from "./utils/getFileInfo.mjs";
|
|
7
|
+
import { useStyle as E } from "./hooks/useStyle.mjs";
|
|
8
|
+
import { omit as P } from "lodash-unified";
|
|
9
|
+
import { useLocale as G } from "../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useGlobalConfig as y } from "../config-provider/hooks/use-global-config.mjs";
|
|
11
|
+
const M = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "spin"
|
|
14
|
-
},
|
|
14
|
+
}, R = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "icon"
|
|
17
|
-
},
|
|
17
|
+
}, W = { class: "text" }, oe = /* @__PURE__ */ O({
|
|
18
18
|
name: "ApDownload",
|
|
19
19
|
__name: "ap-download",
|
|
20
20
|
props: {
|
|
@@ -45,57 +45,57 @@ const W = {
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["downloadCallback"],
|
|
47
47
|
setup(C, { emit: N }) {
|
|
48
|
-
const
|
|
48
|
+
const r = N, n = z(!1), { lang: b } = G(), w = A(), h = s(() => b.value === "zh-cn" ? "zh_CN" : "en_US"), e = C, l = y("apUpload"), c = y(
|
|
49
49
|
"downloadCenterTriggerConfig"
|
|
50
|
-
),
|
|
50
|
+
), d = s(() => e.disabled), v = s(() => e.size), { getInnerWrapperClass: _ } = E(v, d), k = s(() => e.getOssAccess || l.value?.getOssAccess), B = async () => {
|
|
51
51
|
if (!e.disabled) {
|
|
52
|
-
|
|
52
|
+
n.value = !0;
|
|
53
53
|
try {
|
|
54
|
-
if (
|
|
55
|
-
let a =
|
|
56
|
-
e.needName ??
|
|
54
|
+
if (c.value?.trigger) {
|
|
55
|
+
let a = g(
|
|
56
|
+
e.needName ?? l?.value?.needName,
|
|
57
57
|
e.fileName
|
|
58
|
-
).map((
|
|
59
|
-
objectName:
|
|
60
|
-
fileName:
|
|
58
|
+
).map((p) => ({
|
|
59
|
+
objectName: p.path,
|
|
60
|
+
fileName: p.fileName
|
|
61
61
|
}));
|
|
62
|
-
await
|
|
62
|
+
await c.value?.trigger(a), r("downloadCallback", a);
|
|
63
63
|
} else {
|
|
64
|
-
const a = await (await
|
|
65
|
-
|
|
66
|
-
t(
|
|
64
|
+
const a = await (await D(
|
|
65
|
+
k.value,
|
|
66
|
+
t(h)
|
|
67
67
|
)).downloadFile(
|
|
68
|
-
|
|
69
|
-
e.needName ??
|
|
68
|
+
g(
|
|
69
|
+
e.needName ?? l?.value?.needName,
|
|
70
70
|
e.fileName
|
|
71
71
|
)
|
|
72
72
|
);
|
|
73
|
-
|
|
73
|
+
r("downloadCallback", a);
|
|
74
74
|
}
|
|
75
75
|
} catch (o) {
|
|
76
76
|
console.error(o);
|
|
77
77
|
} finally {
|
|
78
|
-
|
|
78
|
+
n.value = !1;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
return (o, a) => (i(),
|
|
82
|
+
return (o, a) => (i(), L(t(U), S(t(P)(e, ["getOssAccess", "fileName", "needName"]), {
|
|
83
83
|
type: e.type,
|
|
84
84
|
size: e.size,
|
|
85
|
-
disabled:
|
|
86
|
-
onClick:
|
|
85
|
+
disabled: d.value,
|
|
86
|
+
onClick: B
|
|
87
87
|
}), {
|
|
88
|
-
default:
|
|
89
|
-
|
|
90
|
-
class:
|
|
88
|
+
default: x(() => [
|
|
89
|
+
m("div", {
|
|
90
|
+
class: j(t(_))
|
|
91
91
|
}, [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
])) :
|
|
95
|
-
t(
|
|
96
|
-
|
|
97
|
-
])) :
|
|
98
|
-
|
|
92
|
+
n.value ? (i(), f("span", M, [
|
|
93
|
+
I(t(V), { spin: !0 })
|
|
94
|
+
])) : u("", !0),
|
|
95
|
+
t(w).icon ? (i(), f("span", R, [
|
|
96
|
+
F(o.$slots, "icon")
|
|
97
|
+
])) : u("", !0),
|
|
98
|
+
m("span", W, T(o.text), 1)
|
|
99
99
|
], 2)
|
|
100
100
|
]),
|
|
101
101
|
_: 3
|
|
@@ -103,5 +103,5 @@ const W = {
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
export {
|
|
106
|
-
|
|
106
|
+
oe as default
|
|
107
107
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
export declare function useStyle(
|
|
2
|
+
export declare function useStyle(size: ComputedRef<string>, disabled: ComputedRef<boolean>): {
|
|
3
3
|
wrapperStyle: ComputedRef<Record<string, any>>;
|
|
4
4
|
getWrapperClass: ComputedRef<string[]>;
|
|
5
5
|
getInnerWrapperClass: ComputedRef<string[]>;
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import { computed as o } from "vue";
|
|
2
|
-
import { getHexWithOpacity as
|
|
2
|
+
import { getHexWithOpacity as c } from "../utils/getFileInfo.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import
|
|
4
|
+
import m from "../style/index.mjs";
|
|
5
|
+
import { useToken as d } from "../../config-provider/hooks/use-token.mjs";
|
|
5
6
|
import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"--download-main-color":
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
function g(a, l) {
|
|
8
|
+
const { b: r, bm: e } = w("ap-download"), n = m("ap-download"), { token: p } = d(), s = o(() => ({
|
|
9
|
+
"--download-main-color": p.value?.colorLink,
|
|
10
|
+
"--download-main-color-opacity": c(
|
|
11
|
+
p.value?.colorLink,
|
|
12
|
+
0.6
|
|
13
|
+
)
|
|
14
|
+
})), i = o(() => [r("wrapper"), e("wrapper", a.value), n.value].filter(
|
|
12
15
|
Boolean
|
|
13
|
-
)),
|
|
14
|
-
const
|
|
15
|
-
return l.value &&
|
|
16
|
+
)), u = o(() => {
|
|
17
|
+
const t = [r(), r("inner-wrapper"), e("inner-wrapper", a.value)];
|
|
18
|
+
return l.value && t.push(e("inner-wrapper", "disabled")), [...t, n.value];
|
|
16
19
|
});
|
|
17
20
|
return {
|
|
18
21
|
wrapperStyle: s,
|
|
19
|
-
getWrapperClass:
|
|
20
|
-
getInnerWrapperClass:
|
|
22
|
+
getWrapperClass: i,
|
|
23
|
+
getInnerWrapperClass: u
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
26
|
export {
|
|
24
|
-
|
|
27
|
+
g as useStyle
|
|
25
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { genComponentStyleHook as l } from "../../utils/cssinjs/index.mjs";
|
|
2
|
-
const
|
|
3
|
-
const { componentCls: e } = o,
|
|
2
|
+
const r = (o) => {
|
|
3
|
+
const { componentCls: e, textColor3: n } = o, i = `${e}-inner-wrapper`;
|
|
4
4
|
return {
|
|
5
5
|
[e]: {
|
|
6
6
|
"&-wrapper": {
|
|
@@ -8,7 +8,7 @@ const i = (o) => {
|
|
|
8
8
|
display: "inline-block"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
-
[
|
|
11
|
+
[i]: {
|
|
12
12
|
display: "flex",
|
|
13
13
|
color: "var(--download-main-color)",
|
|
14
14
|
cursor: "pointer",
|
|
@@ -40,23 +40,16 @@ const i = (o) => {
|
|
|
40
40
|
fontSize: o.fontSizeSM
|
|
41
41
|
},
|
|
42
42
|
"&--disabled": {
|
|
43
|
-
color:
|
|
43
|
+
color: n,
|
|
44
44
|
cursor: "not-allowed",
|
|
45
45
|
"&:hover": {
|
|
46
|
-
color:
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"&--disabled-admin": {
|
|
50
|
-
cursor: "not-allowed",
|
|
51
|
-
color: "#999",
|
|
52
|
-
"&:hover": {
|
|
53
|
-
color: "#999"
|
|
46
|
+
color: n
|
|
54
47
|
}
|
|
55
48
|
}
|
|
56
49
|
}
|
|
57
50
|
};
|
|
58
51
|
}, a = l("ApDownload", (o) => [
|
|
59
|
-
|
|
52
|
+
r(o)
|
|
60
53
|
]);
|
|
61
54
|
export {
|
|
62
55
|
a as default
|