geekplus-digital-ui 0.1.13 → 0.1.14
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/components/copy/src/copy.css +1 -1
- package/components/copy/src/copy.vue.js +10 -10
- package/components/fold-text/src/fold-text.css +1 -1
- package/components/fold-text/src/fold-text.vue.js +3 -3
- package/components/icon-tip/src/icon-tip.css +1 -1
- package/components/icon-tip/src/icon-tip.vue.js +6 -6
- package/components/upload/src/upload.css +1 -1
- package/components/upload/src/upload.vue.js +23 -23
- package/config/index.js +13 -18
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-copy[data-v-
|
|
1
|
+
.d-copy[data-v-4d6e9b83] .el-link__inner{gap:5px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as m, toRef as x, computed as
|
|
1
|
+
import { ref as m, toRef as x, computed as d, onMounted as L, onBeforeUnmount as S, openBlock as u, createBlock as f, unref as y, withModifiers as M, normalizeStyle as N, withCtx as v, createElementBlock as _, normalizeClass as B, createVNode as b, renderSlot as w, createCommentVNode as R } from "vue";
|
|
2
2
|
import { useClipboard as V } from "@vueuse/core";
|
|
3
3
|
import { ElMessage as $, ElLink as z, ElIcon as I } from "element-plus";
|
|
4
4
|
import "../../../hooks/index.js";
|
|
@@ -14,26 +14,26 @@ const O = /* @__PURE__ */ Object.assign({
|
|
|
14
14
|
props: {
|
|
15
15
|
text: {
|
|
16
16
|
type: String,
|
|
17
|
-
default: s("Copy", "text")
|
|
17
|
+
default: () => s("Copy", "text")
|
|
18
18
|
},
|
|
19
19
|
type: {
|
|
20
20
|
type: String,
|
|
21
|
-
default: s("Copy", "type", "primary")
|
|
21
|
+
default: () => s("Copy", "type", "primary")
|
|
22
22
|
},
|
|
23
23
|
icon: {
|
|
24
24
|
type: String,
|
|
25
|
-
default: s("Copy", "icon")
|
|
25
|
+
default: () => s("Copy", "icon")
|
|
26
26
|
},
|
|
27
27
|
triggerElement: {
|
|
28
28
|
type: String,
|
|
29
|
-
default: s("Copy", "triggerElement")
|
|
29
|
+
default: () => s("Copy", "triggerElement")
|
|
30
30
|
}
|
|
31
31
|
// 触发元素显示的dom,不设置就一直显示
|
|
32
32
|
},
|
|
33
33
|
setup(n, { expose: g }) {
|
|
34
34
|
const r = n, l = m(null), a = m(!1), C = x(r, "text"), { copy: E } = V({
|
|
35
35
|
source: C
|
|
36
|
-
}), { t: h } = H(), e =
|
|
36
|
+
}), { t: h } = H(), e = d(() => {
|
|
37
37
|
const o = l.value?.$el ?? l.value;
|
|
38
38
|
if (!r.triggerElement || !o)
|
|
39
39
|
return null;
|
|
@@ -44,7 +44,7 @@ const O = /* @__PURE__ */ Object.assign({
|
|
|
44
44
|
t = t.parentNode;
|
|
45
45
|
}
|
|
46
46
|
return null;
|
|
47
|
-
}), k =
|
|
47
|
+
}), k = d(() => ({
|
|
48
48
|
display: r.triggerElement && !a.value ? "none" : ""
|
|
49
49
|
})), i = () => {
|
|
50
50
|
E().then(() => {
|
|
@@ -62,7 +62,7 @@ const O = /* @__PURE__ */ Object.assign({
|
|
|
62
62
|
}), g({
|
|
63
63
|
rootRef: l,
|
|
64
64
|
handleCopy: i
|
|
65
|
-
}), (o, t) => (u(),
|
|
65
|
+
}), (o, t) => (u(), f(y(z), {
|
|
66
66
|
ref_key: "rootRef",
|
|
67
67
|
ref: l,
|
|
68
68
|
class: "d-copy",
|
|
@@ -75,7 +75,7 @@ const O = /* @__PURE__ */ Object.assign({
|
|
|
75
75
|
n.icon ? (u(), _("i", {
|
|
76
76
|
key: 0,
|
|
77
77
|
class: B(n.icon)
|
|
78
|
-
}, null, 2)) : (u(),
|
|
78
|
+
}, null, 2)) : (u(), f(y(I), { key: 1 }, {
|
|
79
79
|
default: v(() => [
|
|
80
80
|
b(j)
|
|
81
81
|
]),
|
|
@@ -86,7 +86,7 @@ const O = /* @__PURE__ */ Object.assign({
|
|
|
86
86
|
_: 3
|
|
87
87
|
}, 8, ["type", "style"]));
|
|
88
88
|
}
|
|
89
|
-
}), T = /* @__PURE__ */ D(O, [["__scopeId", "data-v-
|
|
89
|
+
}), T = /* @__PURE__ */ D(O, [["__scopeId", "data-v-4d6e9b83"]]);
|
|
90
90
|
export {
|
|
91
91
|
T as default
|
|
92
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-fold-text[data-v-
|
|
1
|
+
.d-fold-text[data-v-cfdb3ac3]{display:flex;flex-direction:column;overflow-wrap:break-word}.d-fold-text .text-content[data-v-cfdb3ac3]{white-space:pre-wrap}.d-fold-text .text-content.line-clamp[data-v-cfdb3ac3]{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.d-fold-text .text-link[data-v-cfdb3ac3]{display:flex}.d-fold-text .text-link[data-v-cfdb3ac3] .el-link__inner{gap:5px}
|
|
@@ -18,11 +18,11 @@ const D = { class: "d-fold-text" }, R = {
|
|
|
18
18
|
props: {
|
|
19
19
|
showFold: {
|
|
20
20
|
type: Boolean,
|
|
21
|
-
default: y("FoldText", "showFold", !0)
|
|
21
|
+
default: () => y("FoldText", "showFold", !0)
|
|
22
22
|
},
|
|
23
23
|
lineClamp: {
|
|
24
24
|
type: Number,
|
|
25
|
-
default: y("FoldText", "lineClamp", 3)
|
|
25
|
+
default: () => y("FoldText", "lineClamp", 3)
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
setup(i) {
|
|
@@ -79,7 +79,7 @@ const D = { class: "d-fold-text" }, R = {
|
|
|
79
79
|
])) : E("", !0)
|
|
80
80
|
]));
|
|
81
81
|
}
|
|
82
|
-
}), G = /* @__PURE__ */ V(S, [["__scopeId", "data-v-
|
|
82
|
+
}), G = /* @__PURE__ */ V(S, [["__scopeId", "data-v-cfdb3ac3"]]);
|
|
83
83
|
export {
|
|
84
84
|
G as default
|
|
85
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-icon-tip .tip-content[data-v-
|
|
1
|
+
.d-icon-tip .tip-content[data-v-d89c029a]{white-space:pre-wrap}
|
|
@@ -11,19 +11,19 @@ const _ = { class: "tip-content" }, h = /* @__PURE__ */ Object.assign({
|
|
|
11
11
|
props: {
|
|
12
12
|
content: {
|
|
13
13
|
type: String,
|
|
14
|
-
default: n("IconTip", "content")
|
|
14
|
+
default: () => n("IconTip", "content")
|
|
15
15
|
},
|
|
16
16
|
icon: {
|
|
17
17
|
type: String,
|
|
18
|
-
default: n("IconTip", "icon")
|
|
18
|
+
default: () => n("IconTip", "icon")
|
|
19
19
|
},
|
|
20
20
|
placement: {
|
|
21
21
|
type: String,
|
|
22
|
-
default: n("IconTip", "placement", "top")
|
|
22
|
+
default: () => n("IconTip", "placement", "top")
|
|
23
23
|
},
|
|
24
24
|
type: {
|
|
25
25
|
type: String,
|
|
26
|
-
default: n("IconTip", "type", "primary")
|
|
26
|
+
default: () => n("IconTip", "type", "primary")
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
emits: ["click"],
|
|
@@ -62,7 +62,7 @@ const _ = { class: "tip-content" }, h = /* @__PURE__ */ Object.assign({
|
|
|
62
62
|
_: 3
|
|
63
63
|
}, 8, ["placement"]));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), b = /* @__PURE__ */ E(h, [["__scopeId", "data-v-d89c029a"]]);
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
b as default
|
|
68
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-upload.is-list[data-v-
|
|
1
|
+
.d-upload.is-list[data-v-f8fa376c],.d-upload.is-list .list[data-v-f8fa376c]{display:flex;flex-direction:column;gap:8px}.d-upload.is-list .list .list-item[data-v-f8fa376c]{line-height:1.5}.d-upload.is-list .list .list-item .file-row[data-v-f8fa376c]{position:relative;display:flex;align-items:center;gap:10px}.d-upload.is-list .list .list-item .file-row[data-v-f8fa376c] .el-link{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.d-upload.is-list .list .list-item .file-row[data-v-f8fa376c] .el-link .el-link__inner{display:inline}.d-upload.is-list .list .list-item .file-row .remove-icon[data-v-f8fa376c]{cursor:pointer;display:none;color:var(--el-text-color-secondary)}.d-upload.is-list .list .list-item .file-row:hover .remove-icon[data-v-f8fa376c]{display:block}.d-upload.is-card[data-v-f8fa376c],.d-upload.is-card .card[data-v-f8fa376c]{display:flex;flex-wrap:wrap;gap:8px}.d-upload.is-card .card .card-item[data-v-f8fa376c]{display:flex;justify-content:center;align-items:center;font-size:16px;border:1px solid var(--el-border-color);border-radius:4px;overflow:hidden;position:relative;cursor:pointer}.d-upload.is-card .card .card-item .card-cover[data-v-f8fa376c]{display:flex;justify-content:center;align-items:center;gap:10px;position:absolute;top:0;left:0;width:100%;height:100%;background:var(--el-overlay-color);opacity:0}.d-upload.is-card .card .card-item .card-cover .el-icon[data-v-f8fa376c]{color:var(--el-color-white);font-size:16px}.d-upload.is-card .card .card-item .card-cover[data-v-f8fa376c]:hover{opacity:1}.d-upload.is-card .card .el-image[data-v-f8fa376c]{width:100%;height:100%}.d-upload .expand-toggle[data-v-f8fa376c] .el-link__inner{gap:5px}.d-upload .tip[data-v-f8fa376c]{width:100%;font-size:12px;line-height:1.5;margin:0;color:var(--el-text-color-regular)}.d-upload .tip .highlight[data-v-f8fa376c]{color:var(--el-color-danger)}
|
|
@@ -31,84 +31,84 @@ const tl = { class: "d-upload__preview" }, ol = ["src"], nl = { key: 2 }, sl = {
|
|
|
31
31
|
props: /* @__PURE__ */ ge({
|
|
32
32
|
domain: {
|
|
33
33
|
type: String,
|
|
34
|
-
default: i("Upload", "domain"),
|
|
34
|
+
default: () => i("Upload", "domain"),
|
|
35
35
|
required: !0
|
|
36
36
|
},
|
|
37
37
|
axios: {
|
|
38
38
|
type: Function,
|
|
39
|
-
default: i("Upload", "axios"),
|
|
39
|
+
default: () => i("Upload", "axios"),
|
|
40
40
|
required: !0
|
|
41
41
|
},
|
|
42
42
|
url: {
|
|
43
43
|
type: String,
|
|
44
|
-
default: i("Upload", "url"),
|
|
44
|
+
default: () => i("Upload", "url"),
|
|
45
45
|
required: !0
|
|
46
46
|
},
|
|
47
47
|
format: {
|
|
48
48
|
type: Array,
|
|
49
|
-
default: i("Upload", "format", [])
|
|
49
|
+
default: () => i("Upload", "format", [])
|
|
50
50
|
},
|
|
51
51
|
maxSize: {
|
|
52
52
|
type: Number,
|
|
53
|
-
default: i("Upload", "maxSize", 500)
|
|
53
|
+
default: () => i("Upload", "maxSize", 500)
|
|
54
54
|
},
|
|
55
55
|
maxNumber: {
|
|
56
56
|
type: Number,
|
|
57
|
-
default: i("Upload", "maxNumber", 99)
|
|
57
|
+
default: () => i("Upload", "maxNumber", 99)
|
|
58
58
|
},
|
|
59
59
|
maxShow: {
|
|
60
60
|
type: Number,
|
|
61
|
-
default: i("Upload", "maxShow", 3)
|
|
61
|
+
default: () => i("Upload", "maxShow", 3)
|
|
62
62
|
},
|
|
63
63
|
disabled: {
|
|
64
64
|
type: Boolean,
|
|
65
|
-
default: i("Upload", "disabled", !1)
|
|
65
|
+
default: () => i("Upload", "disabled", !1)
|
|
66
66
|
},
|
|
67
67
|
showType: {
|
|
68
68
|
type: String,
|
|
69
|
-
default: i("Upload", "showType", "card")
|
|
69
|
+
default: () => i("Upload", "showType", "card")
|
|
70
70
|
},
|
|
71
71
|
beforeUpload: {
|
|
72
72
|
type: Function,
|
|
73
|
-
default: i("Upload", "beforeUpload")
|
|
73
|
+
default: () => i("Upload", "beforeUpload")
|
|
74
74
|
},
|
|
75
75
|
docType: {
|
|
76
76
|
type: String,
|
|
77
|
-
default: i("Upload", "docType")
|
|
77
|
+
default: () => i("Upload", "docType")
|
|
78
78
|
},
|
|
79
79
|
size: {
|
|
80
80
|
type: String,
|
|
81
|
-
default: i("Upload", "size", "80px")
|
|
81
|
+
default: () => i("Upload", "size", "80px")
|
|
82
82
|
},
|
|
83
83
|
scrollHeight: {
|
|
84
84
|
type: String,
|
|
85
|
-
default: i("Upload", "scrollHeight")
|
|
85
|
+
default: () => i("Upload", "scrollHeight")
|
|
86
86
|
},
|
|
87
87
|
showTip: {
|
|
88
88
|
type: Boolean,
|
|
89
|
-
default: i("Upload", "showTip", !0)
|
|
89
|
+
default: () => i("Upload", "showTip", !0)
|
|
90
90
|
},
|
|
91
91
|
pasteable: {
|
|
92
92
|
type: Boolean,
|
|
93
|
-
default: i("Upload", "pasteable", !1)
|
|
93
|
+
default: () => i("Upload", "pasteable", !1)
|
|
94
94
|
},
|
|
95
95
|
showDownloadAll: {
|
|
96
96
|
type: Boolean,
|
|
97
|
-
default: i("Upload", "showDownloadAll", !1)
|
|
97
|
+
default: () => i("Upload", "showDownloadAll", !1)
|
|
98
98
|
},
|
|
99
99
|
downloadAllMethod: {
|
|
100
100
|
type: Function,
|
|
101
|
-
default: i("Upload", "downloadAllMethod")
|
|
101
|
+
default: () => i("Upload", "downloadAllMethod")
|
|
102
102
|
}
|
|
103
103
|
}, {
|
|
104
104
|
modelValue: {
|
|
105
105
|
type: Array,
|
|
106
|
-
default: i("Upload", "modelValue", [])
|
|
106
|
+
default: () => i("Upload", "modelValue", [])
|
|
107
107
|
},
|
|
108
108
|
modelModifiers: {},
|
|
109
109
|
uploadingCount: {
|
|
110
110
|
type: Number,
|
|
111
|
-
default: i("Upload", "uploadingCount", 0)
|
|
111
|
+
default: () => i("Upload", "uploadingCount", 0)
|
|
112
112
|
},
|
|
113
113
|
uploadingCountModifiers: {}
|
|
114
114
|
}),
|
|
@@ -189,7 +189,7 @@ const tl = { class: "d-upload__preview" }, ol = ["src"], nl = { key: 2 }, sl = {
|
|
|
189
189
|
return !1;
|
|
190
190
|
U.value || R();
|
|
191
191
|
const t = new FormData();
|
|
192
|
-
t.append("file", l), ke(a.beforeUpload) && a.beforeUpload(l, t);
|
|
192
|
+
t.append("file", l), ke(a.beforeUpload()) && a.beforeUpload()(l, t);
|
|
193
193
|
const e = {
|
|
194
194
|
uploadStatus: "processing",
|
|
195
195
|
percentage: 0,
|
|
@@ -200,7 +200,7 @@ const tl = { class: "d-upload__preview" }, ol = ["src"], nl = { key: 2 }, sl = {
|
|
|
200
200
|
G.value++;
|
|
201
201
|
const v = () => s.value.indexOf(e);
|
|
202
202
|
try {
|
|
203
|
-
const { data: z } = await a.axios({
|
|
203
|
+
const { data: z } = await a.axios()({
|
|
204
204
|
url: a.url,
|
|
205
205
|
method: "post",
|
|
206
206
|
data: t,
|
|
@@ -244,7 +244,7 @@ const tl = { class: "d-upload__preview" }, ol = ["src"], nl = { key: 2 }, sl = {
|
|
|
244
244
|
}, re = (l) => {
|
|
245
245
|
!P.value || !l?.url || (S(l) || A(l) ? Te(l) : de(l));
|
|
246
246
|
}, ce = () => {
|
|
247
|
-
ke(a.downloadAllMethod) ? a.downloadAllMethod(b(s.value)) : s.value.forEach((l) => {
|
|
247
|
+
ke(a.downloadAllMethod()) ? a.downloadAllMethod()(b(s.value)) : s.value.forEach((l) => {
|
|
248
248
|
de(l);
|
|
249
249
|
});
|
|
250
250
|
};
|
|
@@ -499,7 +499,7 @@ const tl = { class: "d-upload__preview" }, ol = ["src"], nl = { key: 2 }, sl = {
|
|
|
499
499
|
])) : f("", !0)
|
|
500
500
|
], 2));
|
|
501
501
|
}
|
|
502
|
-
}), Vl = /* @__PURE__ */ el(pl, [["__scopeId", "data-v-
|
|
502
|
+
}), Vl = /* @__PURE__ */ el(pl, [["__scopeId", "data-v-f8fa376c"]]);
|
|
503
503
|
export {
|
|
504
504
|
Vl as default
|
|
505
505
|
};
|
package/config/index.js
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { isPlainObject as i } from "lodash-es";
|
|
2
|
+
const s = {
|
|
3
3
|
components: {}
|
|
4
|
-
},
|
|
5
|
-
if (!
|
|
4
|
+
}, c = (n, o = {}) => {
|
|
5
|
+
if (!i(o))
|
|
6
6
|
return n;
|
|
7
7
|
const { components: t } = o;
|
|
8
|
-
return
|
|
9
|
-
},
|
|
8
|
+
return i(t) && Object.assign(n.components, t), n;
|
|
9
|
+
}, l = (n) => c(s, n), u = () => s, r = (n) => {
|
|
10
10
|
if (!n)
|
|
11
11
|
return {};
|
|
12
|
-
const o =
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
if (!n || !o)
|
|
16
|
-
return s(t);
|
|
17
|
-
const c = g(n)?.[o];
|
|
18
|
-
return s(c ?? t);
|
|
19
|
-
};
|
|
12
|
+
const o = s.components?.[n];
|
|
13
|
+
return i(o) ? o : {};
|
|
14
|
+
}, C = (n, o, t) => !n || !o ? t : r(n)?.[o] ?? t;
|
|
20
15
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
r as getComponentConfig,
|
|
17
|
+
C as getComponentConfigValue,
|
|
18
|
+
u as getGlobalConfig,
|
|
19
|
+
l as setGlobalConfig
|
|
25
20
|
};
|