geekplus-digital-ui 0.1.24 → 0.1.26
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 +31 -31
- package/components/icons/image-light.vue.d.ts +2 -0
- package/components/icons/image-light.vue.js +18 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +6 -4
- package/components/inline-edit/index.d.ts +73 -0
- package/components/inline-edit/index.js +6 -0
- package/components/inline-edit/src/inline-edit.css +1 -0
- package/components/inline-edit/src/inline-edit.vue.d.ts +38 -0
- package/components/inline-edit/src/inline-edit.vue.js +112 -0
- package/components/upload/src/upload.css +1 -1
- package/components/upload/src/upload.vue.js +100 -89
- package/index.js +12 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-copy[data-v-
|
|
1
|
+
.d-copy[data-v-5ec3986a] .el-link__inner{gap:4px}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as m,
|
|
2
|
-
import { useClipboard as
|
|
3
|
-
import { ElMessage as $, ElLink as
|
|
1
|
+
import { ref as m, computed as p, onMounted as k, onBeforeUnmount as C, openBlock as a, createBlock as d, unref as f, withModifiers as L, normalizeStyle as S, withCtx as y, createElementBlock as x, normalizeClass as M, createVNode as N, renderSlot as _, createCommentVNode as B } from "vue";
|
|
2
|
+
import { useClipboard as w } from "@vueuse/core";
|
|
3
|
+
import { ElMessage as $, ElLink as b } from "element-plus";
|
|
4
4
|
import "../../index.js";
|
|
5
5
|
import "../../../hooks/index.js";
|
|
6
|
-
import
|
|
6
|
+
import z from "../../icons/copy-light.vue.js";
|
|
7
7
|
import './copy.css';/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { DIcon as
|
|
11
|
-
const
|
|
8
|
+
import D from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
import { useLocale as I } from "../../../hooks/use-locale/index.js";
|
|
10
|
+
import { DIcon as R } from "../../icon/index.js";
|
|
11
|
+
const V = /* @__PURE__ */ Object.assign({
|
|
12
12
|
name: "DCopy"
|
|
13
13
|
}, {
|
|
14
14
|
__name: "copy",
|
|
@@ -28,63 +28,63 @@ const H = /* @__PURE__ */ Object.assign({
|
|
|
28
28
|
}
|
|
29
29
|
// 触发元素显示的dom,不设置就一直显示
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
source:
|
|
34
|
-
}), { t:
|
|
31
|
+
setup(r, { expose: v }) {
|
|
32
|
+
const n = r, l = m(null), s = m(!1), { copy: g } = w({
|
|
33
|
+
source: n.text
|
|
34
|
+
}), { t: E } = I(), e = p(() => {
|
|
35
35
|
const o = l.value?.$el ?? l.value;
|
|
36
|
-
if (!
|
|
36
|
+
if (!n.triggerElement || !o)
|
|
37
37
|
return null;
|
|
38
38
|
let t = o.parentNode;
|
|
39
39
|
for (; t; ) {
|
|
40
|
-
if (t.matches(
|
|
40
|
+
if (t.matches(n.triggerElement))
|
|
41
41
|
return t;
|
|
42
42
|
t = t.parentNode;
|
|
43
43
|
}
|
|
44
44
|
return null;
|
|
45
|
-
}),
|
|
46
|
-
display:
|
|
45
|
+
}), h = p(() => ({
|
|
46
|
+
display: n.triggerElement && !s.value ? "none" : ""
|
|
47
47
|
})), i = () => {
|
|
48
|
-
|
|
49
|
-
$.success(
|
|
48
|
+
g().then(() => {
|
|
49
|
+
$.success(E("d.copy.success"));
|
|
50
50
|
});
|
|
51
51
|
}, u = () => {
|
|
52
52
|
s.value = !0;
|
|
53
53
|
}, c = () => {
|
|
54
54
|
s.value = !1;
|
|
55
55
|
};
|
|
56
|
-
return
|
|
56
|
+
return k(() => {
|
|
57
57
|
e.value && (e.value.addEventListener("mouseenter", u), e.value.addEventListener("mouseleave", c));
|
|
58
|
-
}),
|
|
58
|
+
}), C(() => {
|
|
59
59
|
e.value && (e.value.removeEventListener("mouseenter", u), e.value.removeEventListener("mouseleave", c));
|
|
60
60
|
}), v({
|
|
61
61
|
rootRef: l,
|
|
62
62
|
handleCopy: i
|
|
63
|
-
}), (o, t) => (a(), d(f(
|
|
63
|
+
}), (o, t) => (a(), d(f(b), {
|
|
64
64
|
ref_key: "rootRef",
|
|
65
65
|
ref: l,
|
|
66
66
|
class: "d-copy",
|
|
67
|
-
type:
|
|
67
|
+
type: r.type,
|
|
68
68
|
underline: "never",
|
|
69
|
-
style:
|
|
70
|
-
onClick:
|
|
69
|
+
style: S(h.value),
|
|
70
|
+
onClick: L(i, ["stop"])
|
|
71
71
|
}, {
|
|
72
72
|
default: y(() => [
|
|
73
|
-
|
|
73
|
+
r.icon ? (a(), x("i", {
|
|
74
74
|
key: 0,
|
|
75
|
-
class:
|
|
76
|
-
}, null, 2)) : (a(), d(f(
|
|
75
|
+
class: M(r.icon)
|
|
76
|
+
}, null, 2)) : (a(), d(f(R), { key: 1 }, {
|
|
77
77
|
default: y(() => [
|
|
78
|
-
|
|
78
|
+
N(z)
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
})),
|
|
82
|
-
o.$slots.default ?
|
|
82
|
+
o.$slots.default ? _(o.$slots, "default", { key: 2 }, void 0, !0) : B("", !0)
|
|
83
83
|
]),
|
|
84
84
|
_: 3
|
|
85
85
|
}, 8, ["type", "style"]));
|
|
86
86
|
}
|
|
87
|
-
}),
|
|
87
|
+
}), P = /* @__PURE__ */ D(V, [["__scopeId", "data-v-5ec3986a"]]);
|
|
88
88
|
export {
|
|
89
|
-
|
|
89
|
+
P as default
|
|
90
90
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { openBlock as l, createElementBlock as e, createElementVNode as t } from "vue";
|
|
2
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const r = {}, s = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
viewBox: "0 0 448 512"
|
|
6
|
+
};
|
|
7
|
+
function n(m, c) {
|
|
8
|
+
return l(), e("svg", s, [...c[0] || (c[0] = [
|
|
9
|
+
t("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M384 64c17.7 0 32 14.3 32 32l0 320c0 17.7-14.3 32-32 32L64 448c-17.7 0-32-14.3-32-32L32 96c0-17.7 14.3-32 32-32l320 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 144a16 16 0 1 1 0-32 16 16 0 1 1 0 32zM80 160a48 48 0 1 0 96 0 48 48 0 1 0 -96 0zm169.3 59.7c1.5-2.3 4-3.7 6.7-3.7s5.2 1.4 6.7 3.7l88 136c1.6 2.5 1.7 5.6 .3 8.2s-4.1 4.2-7 4.2l-240 0c-3 0-5.7-1.7-7.1-4.3s-1.2-5.8 .5-8.3l56-80c1.5-2.1 3.9-3.4 6.6-3.4s5.1 1.3 6.6 3.4l10.6 15.2c3.1 4.4 8.1 6.9 13.4 6.8s10.2-2.8 13.1-7.3l45.6-70.4zM256 184c-13.6 0-26.2 6.9-33.6 18.3l-32.9 50.8c-7.5-8.3-18.2-13.1-29.6-13.1-13.1 0-25.3 6.4-32.8 17.1l-56 80c-8.6 12.2-9.6 28.2-2.7 41.4S89.1 400 104 400l240 0c14.7 0 28.1-8 35.1-20.9s6.4-28.5-1.6-40.8l-88-136c-7.4-11.4-20-18.3-33.6-18.3z"
|
|
12
|
+
}, null, -1)
|
|
13
|
+
])]);
|
|
14
|
+
}
|
|
15
|
+
const i = /* @__PURE__ */ o(r, [["render", n]]);
|
|
16
|
+
export {
|
|
17
|
+
i as default
|
|
18
|
+
};
|
package/components/index.d.ts
CHANGED
package/components/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { DCopy as p } from "./copy/index.js";
|
|
2
2
|
import { DFoldText as t } from "./fold-text/index.js";
|
|
3
3
|
import { DIconTip as f } from "./icon-tip/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { DInlineEdit as D } from "./inline-edit/index.js";
|
|
5
|
+
import { DUpload as d } from "./upload/index.js";
|
|
6
|
+
import { DIcon as l } from "./icon/index.js";
|
|
6
7
|
export {
|
|
7
8
|
p as DCopy,
|
|
8
9
|
t as DFoldText,
|
|
9
|
-
|
|
10
|
+
l as DIcon,
|
|
10
11
|
f as DIconTip,
|
|
11
|
-
D as
|
|
12
|
+
D as DInlineEdit,
|
|
13
|
+
d as DUpload
|
|
12
14
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const DInlineEdit: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
3
|
+
editable: import('vue').Ref<boolean, boolean>;
|
|
4
|
+
$emit: (event: "focus" | "blur", ...args: any[]) => void;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
trigger: string;
|
|
7
|
+
autofocus: boolean;
|
|
8
|
+
outsideIgnore: unknown[];
|
|
9
|
+
beforeClose?: Function;
|
|
10
|
+
focusTarget?: string | Function;
|
|
11
|
+
$props: {
|
|
12
|
+
readonly disabled?: boolean;
|
|
13
|
+
readonly trigger?: string;
|
|
14
|
+
readonly autofocus?: boolean;
|
|
15
|
+
readonly outsideIgnore?: unknown[];
|
|
16
|
+
readonly beforeClose?: Function;
|
|
17
|
+
readonly focusTarget?: string | Function;
|
|
18
|
+
};
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
20
|
+
rootRef: HTMLDivElement;
|
|
21
|
+
editorRef: HTMLDivElement;
|
|
22
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
30
|
+
editable: import('vue').Ref<boolean, boolean>;
|
|
31
|
+
$emit: (event: "focus" | "blur", ...args: any[]) => void;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
trigger: string;
|
|
34
|
+
autofocus: boolean;
|
|
35
|
+
outsideIgnore: unknown[];
|
|
36
|
+
beforeClose?: Function;
|
|
37
|
+
focusTarget?: string | Function;
|
|
38
|
+
$props: {
|
|
39
|
+
readonly disabled?: boolean;
|
|
40
|
+
readonly trigger?: string;
|
|
41
|
+
readonly autofocus?: boolean;
|
|
42
|
+
readonly outsideIgnore?: unknown[];
|
|
43
|
+
readonly beforeClose?: Function;
|
|
44
|
+
readonly focusTarget?: string | Function;
|
|
45
|
+
};
|
|
46
|
+
}, {}, {}, {}, {}>;
|
|
47
|
+
__isFragment?: never;
|
|
48
|
+
__isTeleport?: never;
|
|
49
|
+
__isSuspense?: never;
|
|
50
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
51
|
+
editable: import('vue').Ref<boolean, boolean>;
|
|
52
|
+
$emit: (event: "focus" | "blur", ...args: any[]) => void;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
trigger: string;
|
|
55
|
+
autofocus: boolean;
|
|
56
|
+
outsideIgnore: unknown[];
|
|
57
|
+
beforeClose?: Function;
|
|
58
|
+
focusTarget?: string | Function;
|
|
59
|
+
$props: {
|
|
60
|
+
readonly disabled?: boolean;
|
|
61
|
+
readonly trigger?: string;
|
|
62
|
+
readonly autofocus?: boolean;
|
|
63
|
+
readonly outsideIgnore?: unknown[];
|
|
64
|
+
readonly beforeClose?: Function;
|
|
65
|
+
readonly focusTarget?: string | Function;
|
|
66
|
+
};
|
|
67
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
68
|
+
$slots: {
|
|
69
|
+
editor?(_: {}): any;
|
|
70
|
+
default?(_: {}): any;
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
export default DInlineEdit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.d-inline-edit .text-hover[data-v-db4be4cc]{border-radius:4px;cursor:text}.d-inline-edit .text-hover[data-v-db4be4cc]:hover{box-shadow:0 0 0 1px var(--el-border-color) inset}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
+
editable: import('vue').Ref<boolean, boolean>;
|
|
8
|
+
$emit: (event: "focus" | "blur", ...args: any[]) => void;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
trigger: string;
|
|
11
|
+
autofocus: boolean;
|
|
12
|
+
outsideIgnore: unknown[];
|
|
13
|
+
beforeClose?: Function;
|
|
14
|
+
focusTarget?: string | Function;
|
|
15
|
+
$props: {
|
|
16
|
+
readonly disabled?: boolean;
|
|
17
|
+
readonly trigger?: string;
|
|
18
|
+
readonly autofocus?: boolean;
|
|
19
|
+
readonly outsideIgnore?: unknown[];
|
|
20
|
+
readonly beforeClose?: Function;
|
|
21
|
+
readonly focusTarget?: string | Function;
|
|
22
|
+
};
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
24
|
+
rootRef: HTMLDivElement;
|
|
25
|
+
editorRef: HTMLDivElement;
|
|
26
|
+
}, HTMLDivElement>;
|
|
27
|
+
type __VLS_TemplateResult = {
|
|
28
|
+
attrs: Partial<{}>;
|
|
29
|
+
slots: {
|
|
30
|
+
editor?(_: {}): any;
|
|
31
|
+
default?(_: {}): any;
|
|
32
|
+
};
|
|
33
|
+
refs: {
|
|
34
|
+
rootRef: HTMLDivElement;
|
|
35
|
+
editorRef: HTMLDivElement;
|
|
36
|
+
};
|
|
37
|
+
rootEl: HTMLDivElement;
|
|
38
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ref as f, nextTick as k, openBlock as d, createElementBlock as p, renderSlot as C, normalizeClass as x } from "vue";
|
|
2
|
+
import { onClickOutside as R } from "@vueuse/core";
|
|
3
|
+
import { isFunction as n } from "lodash-es";
|
|
4
|
+
import './inline-edit.css';/* empty css */
|
|
5
|
+
import w from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const v = 'input:not([disabled]), textarea:not([disabled]), [contenteditable="true"], [tabindex]:not([tabindex="-1"])', B = /* @__PURE__ */ Object.assign({
|
|
7
|
+
name: "DInlineEdit"
|
|
8
|
+
}, {
|
|
9
|
+
__name: "inline-edit",
|
|
10
|
+
props: {
|
|
11
|
+
disabled: Boolean,
|
|
12
|
+
trigger: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "click",
|
|
15
|
+
validator: (s) => ["click", "dblclick"].includes(s)
|
|
16
|
+
},
|
|
17
|
+
beforeClose: {
|
|
18
|
+
type: Function
|
|
19
|
+
},
|
|
20
|
+
autofocus: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
focusTarget: {
|
|
25
|
+
type: [String, Function]
|
|
26
|
+
},
|
|
27
|
+
outsideIgnore: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: () => [],
|
|
30
|
+
validator: (s) => s.every((u) => typeof u == "string")
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["focus", "blur"],
|
|
34
|
+
setup(s, { expose: u, emit: E }) {
|
|
35
|
+
const _ = [".el-popper"], t = s, b = E, y = f(null), l = f(null), o = f(!1), S = [
|
|
36
|
+
..._,
|
|
37
|
+
...t.outsideIgnore
|
|
38
|
+
], c = (e) => e?.querySelector ? e.querySelector(v) : null, a = (e) => {
|
|
39
|
+
if (!e)
|
|
40
|
+
return !1;
|
|
41
|
+
if (e.$el && n(e.focus))
|
|
42
|
+
return e.focus(), !0;
|
|
43
|
+
const r = e.$el ?? e;
|
|
44
|
+
if (!r)
|
|
45
|
+
return !1;
|
|
46
|
+
const i = c(r);
|
|
47
|
+
return i && n(i.focus) ? (i.focus(), !0) : n(r.matches) && r.matches(v) && n(r.focus) ? (r.focus(), !0) : !1;
|
|
48
|
+
}, g = () => {
|
|
49
|
+
const e = l.value;
|
|
50
|
+
if (!e || !t.focusTarget)
|
|
51
|
+
return null;
|
|
52
|
+
if (n(t.focusTarget))
|
|
53
|
+
return t.focusTarget(e);
|
|
54
|
+
try {
|
|
55
|
+
return e.querySelector(t.focusTarget);
|
|
56
|
+
} catch {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}, T = async () => {
|
|
60
|
+
if (!t.autofocus)
|
|
61
|
+
return;
|
|
62
|
+
await k();
|
|
63
|
+
const e = g();
|
|
64
|
+
if (a(e))
|
|
65
|
+
return;
|
|
66
|
+
const r = c(l.value);
|
|
67
|
+
if (a(r))
|
|
68
|
+
return;
|
|
69
|
+
await k();
|
|
70
|
+
const i = g() ?? c(l.value);
|
|
71
|
+
a(i);
|
|
72
|
+
}, m = async () => {
|
|
73
|
+
t.disabled || (o.value = !0, b("focus"), await T());
|
|
74
|
+
}, F = () => {
|
|
75
|
+
t.trigger === "click" && m();
|
|
76
|
+
}, h = () => {
|
|
77
|
+
t.trigger === "dblclick" && m();
|
|
78
|
+
}, I = async () => n(t.beforeClose) ? await t.beforeClose() !== !1 : !0, O = async () => {
|
|
79
|
+
o.value && await I() && (o.value = !1, b("blur"));
|
|
80
|
+
};
|
|
81
|
+
return R(y, async () => {
|
|
82
|
+
o.value && await O();
|
|
83
|
+
}, {
|
|
84
|
+
ignore: S
|
|
85
|
+
}), u({
|
|
86
|
+
editable: o
|
|
87
|
+
}), (e, r) => (d(), p("div", {
|
|
88
|
+
ref_key: "rootRef",
|
|
89
|
+
ref: y,
|
|
90
|
+
class: "d-inline-edit"
|
|
91
|
+
}, [
|
|
92
|
+
o.value ? (d(), p("div", {
|
|
93
|
+
key: 0,
|
|
94
|
+
ref_key: "editorRef",
|
|
95
|
+
ref: l,
|
|
96
|
+
class: "editor"
|
|
97
|
+
}, [
|
|
98
|
+
C(e.$slots, "editor", {}, void 0, !0)
|
|
99
|
+
], 512)) : (d(), p("div", {
|
|
100
|
+
key: 1,
|
|
101
|
+
class: x(["text", { "text-hover": !t.disabled }]),
|
|
102
|
+
onClick: F,
|
|
103
|
+
onDblclick: h
|
|
104
|
+
}, [
|
|
105
|
+
C(e.$slots, "default", {}, void 0, !0)
|
|
106
|
+
], 34))
|
|
107
|
+
], 512));
|
|
108
|
+
}
|
|
109
|
+
}), j = /* @__PURE__ */ w(B, [["__scopeId", "data-v-db4be4cc"]]);
|
|
110
|
+
export {
|
|
111
|
+
j as default
|
|
112
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-upload[data-v-
|
|
1
|
+
.d-upload[data-v-0552ceda]{line-height:normal}.d-upload .header[data-v-0552ceda]{display:flex;width:100%;align-items:center;gap:8px}.d-upload .header .el-button[data-v-0552ceda]{margin:0}.d-upload.is-list[data-v-0552ceda],.d-upload.is-list .list[data-v-0552ceda]{display:flex;flex-direction:column;gap:8px}.d-upload.is-list .list .list-item .file-row[data-v-0552ceda]{position:relative;display:flex;align-items:center;gap:4px}.d-upload.is-list .list .list-item .file-row[data-v-0552ceda] .el-link{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.d-upload.is-list .list .list-item .file-row[data-v-0552ceda] .el-link .el-link__inner{display:inline}.d-upload.is-list .list .list-item .file-row .remove-icon[data-v-0552ceda]{cursor:pointer;display:none;color:var(--el-text-color-secondary)}.d-upload.is-list .list .list-item .file-row:hover .remove-icon[data-v-0552ceda]{display:block}.d-upload.is-card[data-v-0552ceda],.d-upload.is-card .card[data-v-0552ceda]{display:flex;flex-wrap:wrap;gap:8px}.d-upload.is-card .card .card-item[data-v-0552ceda]{display:flex;justify-content:center;align-items:center;font-size:16px;box-sizing:border-box;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-0552ceda]{display:flex;justify-content:center;align-items:center;gap:12px;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 .d-icon[data-v-0552ceda]{color:var(--el-color-white)}.d-upload.is-card .card .card-item .card-cover[data-v-0552ceda]:hover{opacity:1}.d-upload.is-card .card .el-image[data-v-0552ceda]{width:100%;height:100%}.d-upload.is-card .card .el-image .el-image__error[data-v-0552ceda]{font-size:16px}.d-upload .expand-toggle[data-v-0552ceda]{display:flex;width:100%}.d-upload .expand-toggle[data-v-0552ceda] .el-link__inner{gap:4px}.d-upload .tip[data-v-0552ceda]{width:100%;font-size:12px;margin:0;color:var(--el-text-color-regular)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel as pe, ref as
|
|
1
|
+
import { useModel as pe, ref as g, computed as f, reactive as De, watch as Ee, onMounted as Ie, onBeforeUnmount as Ne, openBlock as o, createElementBlock as m, normalizeClass as Be, createVNode as u, unref as n, createBlock as c, createCommentVNode as p, withCtx as i, createElementVNode as S, createTextVNode as A, toDisplayString as k, normalizeStyle as z, Fragment as j, renderList as me, withModifiers as fe, mergeModels as ve } from "vue";
|
|
2
2
|
import "../../../hooks/index.js";
|
|
3
3
|
import { useFormItem as $e, ElMessageBox as je, ElMessage as H, ElUpload as He, ElImageViewer as Pe, ElDialog as Re, ElButton as P, ElImage as qe, ElProgress as ye, ElLink as R } from "element-plus";
|
|
4
4
|
import "../../index.js";
|
|
@@ -13,16 +13,17 @@ import Ye from "../../icons/eye-light.vue.js";
|
|
|
13
13
|
import Ze from "../../icons/file-light.vue.js";
|
|
14
14
|
import et from "../../icons/plus-light.vue.js";
|
|
15
15
|
import tt from "../../icons/trash-light.vue.js";
|
|
16
|
+
import lt from "../../icons/image-light.vue.js";
|
|
16
17
|
import './upload2.css';import './upload.css';/* empty css */
|
|
17
18
|
/* empty css */
|
|
18
|
-
import
|
|
19
|
-
import { useLocale as
|
|
20
|
-
import { useActivated as
|
|
21
|
-
import { DIcon as
|
|
22
|
-
const
|
|
19
|
+
import at from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
20
|
+
import { useLocale as ot } from "../../../hooks/use-locale/index.js";
|
|
21
|
+
import { useActivated as nt } from "../../../hooks/use-activated/index.js";
|
|
22
|
+
import { DIcon as v } from "../../icon/index.js";
|
|
23
|
+
const st = { class: "d-upload__preview" }, rt = ["src"], it = {
|
|
23
24
|
key: 2,
|
|
24
25
|
class: "header"
|
|
25
|
-
}, ut = ["onClick"],
|
|
26
|
+
}, ut = ["onClick"], dt = { class: "card-cover" }, ct = ["innerHTML"], pt = { class: "file-row" }, mt = {
|
|
26
27
|
key: 6,
|
|
27
28
|
class: "expand-toggle"
|
|
28
29
|
}, ft = /* @__PURE__ */ Object.assign({
|
|
@@ -105,15 +106,15 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
105
106
|
}),
|
|
106
107
|
emits: /* @__PURE__ */ ve(["change", "success"], ["update:modelValue", "update:uploadingCount"]),
|
|
107
108
|
setup(h, { emit: ge }) {
|
|
108
|
-
const l = h, q = ge, O = pe(h, "modelValue"), he = pe(h, "uploadingCount"), K = ["jpg", "jpeg", "png", "gif"], ke = ["mp4"], s =
|
|
109
|
+
const l = h, q = ge, O = pe(h, "modelValue"), he = pe(h, "uploadingCount"), K = ["jpg", "jpeg", "png", "gif"], ke = ["mp4"], s = g([]), F = g(!1), w = g(!1), V = g(0), D = g([]), L = g(""), x = g(!1), X = g(null), G = g(null), { t: d } = ot(), we = nt(), { formItem: xe } = $e(), J = f(() => x.value ? s.value : s.value.slice(0, l.maxShow)), E = f(() => s.value.length > 0), b = f(() => !l.disabled && !Q.value), _ = f(() => l.showType === "list"), _e = f(() => b.value && _.value || l.showDownloadAll && E.value), Q = f(() => s.value.length >= l.maxNumber), Ce = f(() => _.value ? "is-list" : "is-card"), W = f(() => l.format.length ? l.format.map((t) => t.toUpperCase()) : []), Y = f(() => ({
|
|
109
110
|
width: l.size,
|
|
110
111
|
height: l.size
|
|
111
|
-
})), Se =
|
|
112
|
+
})), Se = f(() => l.format.map((t) => `.${t}`).join(",")), Z = f(() => ({
|
|
112
113
|
maxHeight: l.scrollHeight,
|
|
113
114
|
overflow: l.scrollHeight ? "auto" : void 0
|
|
114
|
-
})), Le =
|
|
115
|
+
})), Le = f(() => {
|
|
115
116
|
const t = l.format.length && l.format.every((e) => K.includes(e)), a = [];
|
|
116
|
-
return l.maxSize && !t && a.push(
|
|
117
|
+
return l.maxSize && !t && a.push(d("d.upload.lessThan", { size: l.maxSize })), l.format.length && a.push(d("d.upload.format", { format: l.format.join("/") })), l.pasteable && a.push(d("d.upload.pasteable")), a.join(d("d.upload.comma"));
|
|
117
118
|
}), be = (t) => {
|
|
118
119
|
s.value.some((e) => e.status === "uploading") || (s.value = t?.map((e) => ({
|
|
119
120
|
id: e.id,
|
|
@@ -152,23 +153,23 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
152
153
|
}
|
|
153
154
|
a();
|
|
154
155
|
};
|
|
155
|
-
je.confirm(
|
|
156
|
+
je.confirm(d("d.upload.deleteConfirm"), d("d.upload.tip"), {
|
|
156
157
|
type: "warning"
|
|
157
158
|
}).then(async () => {
|
|
158
159
|
await e();
|
|
159
160
|
}).catch(() => {
|
|
160
161
|
});
|
|
161
162
|
}, Ue = (t, a) => {
|
|
162
|
-
H.success(
|
|
163
|
+
H.success(d("d.upload.fileSuccess", { file: t.name })), q("success", t, a, s.value);
|
|
163
164
|
}, Me = (t, a) => {
|
|
164
165
|
const e = I(t.name);
|
|
165
166
|
if (e) {
|
|
166
167
|
const r = e.toUpperCase();
|
|
167
168
|
if (W.value.length && !W.value.includes(r))
|
|
168
|
-
return a || H.error(
|
|
169
|
+
return a || H.error(d("d.upload.fileFormat", { file: t.name, format: l.format.join("/") })), !1;
|
|
169
170
|
}
|
|
170
171
|
return !0;
|
|
171
|
-
}, Ae = (t) => t.size > l.maxSize * 1024 * 1024 ? (H.error(
|
|
172
|
+
}, Ae = (t) => t.size > l.maxSize * 1024 * 1024 ? (H.error(d("d.upload.fileLessThan", { file: t.name, size: l.maxSize })), !1) : !0, ze = (t, a) => {
|
|
172
173
|
if (!a)
|
|
173
174
|
return;
|
|
174
175
|
const { loaded: e = 0, total: r = 0 } = t || {};
|
|
@@ -191,23 +192,23 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
191
192
|
s.value.push(e), M();
|
|
192
193
|
const r = () => s.value.indexOf(e);
|
|
193
194
|
try {
|
|
194
|
-
const { data:
|
|
195
|
+
const { data: y } = await l.axios({
|
|
195
196
|
url: l.url,
|
|
196
197
|
method: "post",
|
|
197
198
|
data: a,
|
|
198
199
|
onUploadProgress: ($) => ze($, e)
|
|
199
|
-
}), B =
|
|
200
|
+
}), B = y?.data || y;
|
|
200
201
|
if (B && r() !== -1) {
|
|
201
202
|
const {
|
|
202
203
|
id: $,
|
|
203
|
-
name:
|
|
204
|
+
name: ue,
|
|
204
205
|
url: de,
|
|
205
206
|
type: ce
|
|
206
207
|
} = B;
|
|
207
208
|
Object.assign(e, {
|
|
208
209
|
id: $,
|
|
209
|
-
name:
|
|
210
|
-
docName:
|
|
210
|
+
name: ue,
|
|
211
|
+
docName: ue,
|
|
211
212
|
url: l.domain + de,
|
|
212
213
|
docUrl: l.domain + de,
|
|
213
214
|
type: l.docType || ce,
|
|
@@ -229,10 +230,10 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
229
230
|
return;
|
|
230
231
|
const a = t.clipboardData?.items || [];
|
|
231
232
|
for (let e = 0; e < a.length; e++) {
|
|
232
|
-
const
|
|
233
|
-
|
|
233
|
+
const y = a[e].getAsFile();
|
|
234
|
+
y && ne(y, !0);
|
|
234
235
|
}
|
|
235
|
-
},
|
|
236
|
+
}, ie = (t) => {
|
|
236
237
|
!E.value || !t?.url || (C(t) || T(t) ? Te(t) : se(t));
|
|
237
238
|
}, Ve = () => {
|
|
238
239
|
Oe(l.downloadAllMethod) ? l.downloadAllMethod(s.value) : s.value.forEach((t) => {
|
|
@@ -249,10 +250,10 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
249
250
|
document.addEventListener("paste", re);
|
|
250
251
|
}), Ne(() => {
|
|
251
252
|
document.removeEventListener("paste", re);
|
|
252
|
-
}), (t, a) => (o(),
|
|
253
|
+
}), (t, a) => (o(), m("div", {
|
|
253
254
|
class: Be(["d-upload", Ce.value])
|
|
254
255
|
}, [
|
|
255
|
-
|
|
256
|
+
u(n(He), {
|
|
256
257
|
ref_key: "uploadRef",
|
|
257
258
|
ref: X,
|
|
258
259
|
style: { display: "none" },
|
|
@@ -276,41 +277,41 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
276
277
|
key: 1,
|
|
277
278
|
modelValue: w.value,
|
|
278
279
|
"onUpdate:modelValue": a[1] || (a[1] = (e) => w.value = e),
|
|
279
|
-
title: n(
|
|
280
|
+
title: n(d)("d.upload.preview"),
|
|
280
281
|
width: "1200px",
|
|
281
282
|
"align-center": "",
|
|
282
283
|
"before-close": le,
|
|
283
284
|
"append-to-body": ""
|
|
284
285
|
}, {
|
|
285
|
-
footer:
|
|
286
|
-
|
|
287
|
-
default:
|
|
288
|
-
A(k(n(
|
|
286
|
+
footer: i(() => [
|
|
287
|
+
u(n(P), { onClick: le }, {
|
|
288
|
+
default: i(() => [
|
|
289
|
+
A(k(n(d)("d.upload.close")), 1)
|
|
289
290
|
]),
|
|
290
291
|
_: 1
|
|
291
292
|
})
|
|
292
293
|
]),
|
|
293
|
-
default:
|
|
294
|
-
S("div",
|
|
295
|
-
L.value ? (o(),
|
|
294
|
+
default: i(() => [
|
|
295
|
+
S("div", st, [
|
|
296
|
+
L.value ? (o(), m("video", {
|
|
296
297
|
key: 0,
|
|
297
298
|
ref_key: "videoRef",
|
|
298
299
|
ref: G,
|
|
299
300
|
src: L.value,
|
|
300
301
|
controls: "",
|
|
301
302
|
class: "preview-video"
|
|
302
|
-
}, null, 8,
|
|
303
|
+
}, null, 8, rt)) : p("", !0)
|
|
303
304
|
])
|
|
304
305
|
]),
|
|
305
306
|
_: 1
|
|
306
307
|
}, 8, ["modelValue", "title"])) : p("", !0),
|
|
307
|
-
_e.value ? (o(),
|
|
308
|
+
_e.value ? (o(), m("div", it, [
|
|
308
309
|
b.value && _.value ? (o(), c(n(P), {
|
|
309
310
|
key: 0,
|
|
310
311
|
onClick: te
|
|
311
312
|
}, {
|
|
312
|
-
default:
|
|
313
|
-
A(k(n(
|
|
313
|
+
default: i(() => [
|
|
314
|
+
A(k(n(d)("d.upload.upload")), 1)
|
|
314
315
|
]),
|
|
315
316
|
_: 1
|
|
316
317
|
})) : p("", !0),
|
|
@@ -320,57 +321,67 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
320
321
|
link: "",
|
|
321
322
|
onClick: Ve
|
|
322
323
|
}, {
|
|
323
|
-
default:
|
|
324
|
-
A(k(n(
|
|
324
|
+
default: i(() => [
|
|
325
|
+
A(k(n(d)("d.upload.downloadAll")), 1)
|
|
325
326
|
]),
|
|
326
327
|
_: 1
|
|
327
328
|
})) : p("", !0)
|
|
328
329
|
])) : p("", !0),
|
|
329
|
-
_.value ? p("", !0) : (o(),
|
|
330
|
+
_.value ? p("", !0) : (o(), m("div", {
|
|
330
331
|
key: 3,
|
|
331
332
|
class: "card",
|
|
332
333
|
style: z(Z.value)
|
|
333
334
|
}, [
|
|
334
|
-
(o(!0),
|
|
335
|
+
(o(!0), m(j, null, me(J.value, (e, r) => (o(), m("div", {
|
|
335
336
|
key: e.id || `${e.name}-${r}`,
|
|
336
337
|
class: "card-item",
|
|
337
338
|
style: z(Y.value),
|
|
338
|
-
onClick: (
|
|
339
|
+
onClick: (y) => ie(e)
|
|
339
340
|
}, [
|
|
340
|
-
U(e) ? (o(),
|
|
341
|
+
U(e) ? (o(), m(j, { key: 0 }, [
|
|
341
342
|
C(e) ? (o(), c(n(qe), {
|
|
342
343
|
key: 0,
|
|
343
344
|
src: e.url,
|
|
344
345
|
fit: "cover"
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
}, {
|
|
347
|
+
error: i(() => [
|
|
348
|
+
u(n(v), { class: "el-image__error" }, {
|
|
349
|
+
default: i(() => [
|
|
350
|
+
u(lt)
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
})
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
}, 8, ["src"])) : T(e) ? (o(), c(n(v), { key: 1 }, {
|
|
357
|
+
default: i(() => [
|
|
358
|
+
u(Je)
|
|
348
359
|
]),
|
|
349
360
|
_: 1
|
|
350
|
-
})) : (o(), c(n(
|
|
351
|
-
default:
|
|
352
|
-
|
|
361
|
+
})) : (o(), c(n(v), { key: 2 }, {
|
|
362
|
+
default: i(() => [
|
|
363
|
+
u(Ze)
|
|
353
364
|
]),
|
|
354
365
|
_: 1
|
|
355
366
|
})),
|
|
356
|
-
S("div",
|
|
357
|
-
C(e) || T(e) ? (o(), c(n(
|
|
358
|
-
default:
|
|
359
|
-
|
|
367
|
+
S("div", dt, [
|
|
368
|
+
C(e) || T(e) ? (o(), c(n(v), { key: 0 }, {
|
|
369
|
+
default: i(() => [
|
|
370
|
+
u(Ye)
|
|
360
371
|
]),
|
|
361
372
|
_: 1
|
|
362
|
-
})) : (o(), c(n(
|
|
363
|
-
default:
|
|
364
|
-
|
|
373
|
+
})) : (o(), c(n(v), { key: 1 }, {
|
|
374
|
+
default: i(() => [
|
|
375
|
+
u(We)
|
|
365
376
|
]),
|
|
366
377
|
_: 1
|
|
367
378
|
})),
|
|
368
|
-
ee(e) ? (o(), c(n(
|
|
379
|
+
ee(e) ? (o(), c(n(v), {
|
|
369
380
|
key: 2,
|
|
370
|
-
onClick:
|
|
381
|
+
onClick: fe((y) => ae(e), ["stop"])
|
|
371
382
|
}, {
|
|
372
|
-
default:
|
|
373
|
-
|
|
383
|
+
default: i(() => [
|
|
384
|
+
u(tt)
|
|
374
385
|
]),
|
|
375
386
|
_: 1
|
|
376
387
|
}, 8, ["onClick"])) : p("", !0)
|
|
@@ -383,52 +394,52 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
383
394
|
"show-text": !1
|
|
384
395
|
}, null, 8, ["percentage"]))
|
|
385
396
|
], 12, ut))), 128)),
|
|
386
|
-
b.value ? (o(),
|
|
397
|
+
b.value ? (o(), m("div", {
|
|
387
398
|
key: 0,
|
|
388
399
|
class: "card-item",
|
|
389
400
|
style: z(Y.value),
|
|
390
401
|
onClick: te
|
|
391
402
|
}, [
|
|
392
|
-
|
|
393
|
-
default:
|
|
394
|
-
|
|
403
|
+
u(n(v), null, {
|
|
404
|
+
default: i(() => [
|
|
405
|
+
u(et)
|
|
395
406
|
]),
|
|
396
407
|
_: 1
|
|
397
408
|
})
|
|
398
409
|
], 4)) : p("", !0)
|
|
399
410
|
], 4)),
|
|
400
|
-
b.value && h.showTip ? (o(),
|
|
411
|
+
b.value && h.showTip ? (o(), m("p", {
|
|
401
412
|
key: 4,
|
|
402
413
|
class: "tip",
|
|
403
414
|
innerHTML: Le.value
|
|
404
|
-
}, null, 8,
|
|
405
|
-
_.value ? (o(),
|
|
415
|
+
}, null, 8, ct)) : p("", !0),
|
|
416
|
+
_.value ? (o(), m("div", {
|
|
406
417
|
key: 5,
|
|
407
418
|
style: z(Z.value),
|
|
408
419
|
class: "list"
|
|
409
420
|
}, [
|
|
410
|
-
(o(!0),
|
|
421
|
+
(o(!0), m(j, null, me(J.value, (e, r) => (o(), m("div", {
|
|
411
422
|
key: e.id || `${e.name}-${r}`,
|
|
412
423
|
class: "list-item"
|
|
413
424
|
}, [
|
|
414
|
-
S("div",
|
|
415
|
-
|
|
425
|
+
S("div", pt, [
|
|
426
|
+
u(n(R), {
|
|
416
427
|
type: "primary",
|
|
417
428
|
underline: "never",
|
|
418
|
-
onClick: (
|
|
429
|
+
onClick: (y) => ie(e)
|
|
419
430
|
}, {
|
|
420
|
-
default:
|
|
431
|
+
default: i(() => [
|
|
421
432
|
A(k(e.name), 1)
|
|
422
433
|
]),
|
|
423
434
|
_: 2
|
|
424
435
|
}, 1032, ["onClick"]),
|
|
425
|
-
ee(e) ? (o(), c(n(
|
|
436
|
+
ee(e) ? (o(), c(n(v), {
|
|
426
437
|
key: 0,
|
|
427
438
|
class: "remove-icon",
|
|
428
|
-
onClick:
|
|
439
|
+
onClick: fe((y) => ae(e), ["stop"])
|
|
429
440
|
}, {
|
|
430
|
-
default:
|
|
431
|
-
|
|
441
|
+
default: i(() => [
|
|
442
|
+
u(Qe)
|
|
432
443
|
]),
|
|
433
444
|
_: 1
|
|
434
445
|
}, 8, ["onClick"])) : p("", !0)
|
|
@@ -440,18 +451,18 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
440
451
|
}, null, 8, ["percentage"]))
|
|
441
452
|
]))), 128))
|
|
442
453
|
], 4)) : p("", !0),
|
|
443
|
-
s.value.length > h.maxShow ? (o(),
|
|
454
|
+
s.value.length > h.maxShow ? (o(), m("div", mt, [
|
|
444
455
|
x.value ? (o(), c(n(R), {
|
|
445
456
|
key: 0,
|
|
446
457
|
type: "primary",
|
|
447
458
|
underline: "never",
|
|
448
459
|
onClick: N
|
|
449
460
|
}, {
|
|
450
|
-
default:
|
|
451
|
-
S("span", null, k(n(
|
|
452
|
-
|
|
453
|
-
default:
|
|
454
|
-
|
|
461
|
+
default: i(() => [
|
|
462
|
+
S("span", null, k(n(d)("d.upload.collapse")), 1),
|
|
463
|
+
u(n(v), null, {
|
|
464
|
+
default: i(() => [
|
|
465
|
+
u(Ge)
|
|
455
466
|
]),
|
|
456
467
|
_: 1
|
|
457
468
|
})
|
|
@@ -463,11 +474,11 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
463
474
|
underline: "never",
|
|
464
475
|
onClick: N
|
|
465
476
|
}, {
|
|
466
|
-
default:
|
|
467
|
-
S("span", null, k(n(
|
|
468
|
-
|
|
469
|
-
default:
|
|
470
|
-
|
|
477
|
+
default: i(() => [
|
|
478
|
+
S("span", null, k(n(d)("d.upload.expand")), 1),
|
|
479
|
+
u(n(v), null, {
|
|
480
|
+
default: i(() => [
|
|
481
|
+
u(Xe)
|
|
471
482
|
]),
|
|
472
483
|
_: 1
|
|
473
484
|
})
|
|
@@ -477,7 +488,7 @@ const nt = { class: "d-upload__preview" }, st = ["src"], rt = {
|
|
|
477
488
|
])) : p("", !0)
|
|
478
489
|
], 2));
|
|
479
490
|
}
|
|
480
|
-
}),
|
|
491
|
+
}), Nt = /* @__PURE__ */ at(ft, [["__scopeId", "data-v-0552ceda"]]);
|
|
481
492
|
export {
|
|
482
|
-
|
|
493
|
+
Nt as default
|
|
483
494
|
};
|
package/index.js
CHANGED
|
@@ -2,24 +2,26 @@ import { install as o } from "./install.js";
|
|
|
2
2
|
import "./components/index.js";
|
|
3
3
|
import "./hooks/index.js";
|
|
4
4
|
import { setComponentRegistry as x, setGlobalConfig as i } from "./config/index.js";
|
|
5
|
-
import { DCopy as
|
|
5
|
+
import { DCopy as l } from "./components/copy/index.js";
|
|
6
6
|
import { DFoldText as a } from "./components/fold-text/index.js";
|
|
7
|
-
import { DIcon as
|
|
7
|
+
import { DIcon as D } from "./components/icon/index.js";
|
|
8
8
|
import { DIconTip as u } from "./components/icon-tip/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import { DInlineEdit as I } from "./components/inline-edit/index.js";
|
|
10
|
+
import { DUpload as y } from "./components/upload/index.js";
|
|
11
|
+
import { useActivated as b } from "./hooks/use-activated/index.js";
|
|
12
|
+
import { useLocale as A } from "./hooks/use-locale/index.js";
|
|
12
13
|
const p = { install: o };
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
l as DCopy,
|
|
15
16
|
a as DFoldText,
|
|
16
|
-
|
|
17
|
+
D as DIcon,
|
|
17
18
|
u as DIconTip,
|
|
18
|
-
|
|
19
|
+
I as DInlineEdit,
|
|
20
|
+
y as DUpload,
|
|
19
21
|
p as default,
|
|
20
22
|
o as install,
|
|
21
23
|
x as setComponentRegistry,
|
|
22
24
|
i as setGlobalConfig,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
b as useActivated,
|
|
26
|
+
A as useLocale
|
|
25
27
|
};
|