geekplus-digital-ui 0.1.37 → 0.1.39
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/index.d.ts +437 -92
- package/components/copy/src/copy.js +29 -29
- package/components/copy/src/copy.vue.d.ts +182 -116
- package/components/copy/src/copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css +1 -0
- package/components/editor/index.d.ts +11 -11
- package/components/editor/src/code-collapse.js +14 -14
- package/components/editor/src/code-collapse.vue.d.ts +2 -2
- package/components/editor/src/{code-collapse.vue_vue_type_style_index_0_scoped_788021d6_lang.css → code-collapse.vue_vue_type_style_index_0_scoped_44e188d6_lang.css} +1 -1
- package/components/editor/src/editor.vue.d.ts +11 -11
- package/components/editor/src/editor.vue_vue_type_style_index_0_scoped_9103e51e_lang.css +1 -0
- package/components/editor/src/editor2.js +70 -70
- package/components/fold-text/index.d.ts +6 -6
- package/components/fold-text/src/fold-text.js +22 -22
- package/components/fold-text/src/fold-text.vue.d.ts +2 -2
- package/components/fold-text/src/fold-text.vue_vue_type_style_index_0_scoped_cc699234_lang.css +1 -0
- package/components/icon-tip/index.d.ts +18 -18
- package/components/icon-tip/src/icon-tip.vue.d.ts +6 -6
- package/components/inline-edit/index.d.ts +24 -24
- package/components/inline-edit/src/inline-edit.js +32 -32
- package/components/inline-edit/src/inline-edit.vue.d.ts +8 -8
- package/components/inline-edit/src/inline-edit.vue_vue_type_style_index_0_scoped_fc1016d4_lang.css +1 -0
- package/components/upload/index.d.ts +338 -280
- package/components/upload/src/upload.js +145 -145
- package/components/upload/src/upload.vue.d.ts +338 -280
- package/components/upload/src/upload.vue_vue_type_style_index_0_scoped_c4e16833_lang.css +1 -0
- package/package.json +2 -2
- package/components/copy/src/copy.vue_vue_type_style_index_0_scoped_e06a10af_lang.css +0 -1
- package/components/editor/src/editor.vue_vue_type_style_index_0_scoped_290537fe_lang.css +0 -1
- package/components/fold-text/src/fold-text.vue_vue_type_style_index_0_scoped_53a3b28a_lang.css +0 -1
- package/components/inline-edit/src/inline-edit.vue_vue_type_style_index_0_scoped_db4be4cc_lang.css +0 -1
- package/components/upload/src/upload.vue_vue_type_style_index_0_scoped_ddbeb9ca_lang.css +0 -1
|
@@ -2,13 +2,13 @@ import { useLocale as e } from "../../../hooks/use-locale/index.js";
|
|
|
2
2
|
import "../../../hooks/index.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
import n from "../../icons/copy-light.js";
|
|
5
|
-
import './copy.
|
|
5
|
+
import './copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css';/* empty css */
|
|
6
6
|
import r from "../../icon/index.js";
|
|
7
7
|
import "../../index.js";
|
|
8
|
-
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toRef as g, unref as _,
|
|
9
|
-
import { useClipboard as
|
|
10
|
-
import { ElLink as
|
|
11
|
-
var
|
|
8
|
+
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toRef as g, unref as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
|
|
9
|
+
import { useClipboard as x } from "@vueuse/core";
|
|
10
|
+
import { ElLink as S, ElMessage as C } from "element-plus";
|
|
11
|
+
var w = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "DCopy" }, {
|
|
12
12
|
__name: "copy",
|
|
13
13
|
props: {
|
|
14
14
|
text: { type: String },
|
|
@@ -19,51 +19,51 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "DCopy" }, {
|
|
|
19
19
|
icon: { type: String },
|
|
20
20
|
triggerElement: { type: String }
|
|
21
21
|
},
|
|
22
|
-
setup(t, { expose:
|
|
23
|
-
let
|
|
24
|
-
let e =
|
|
25
|
-
if (!
|
|
22
|
+
setup(t, { expose: w }) {
|
|
23
|
+
let T = t, E = v("rootRef"), D = m(!1), { copy: O } = x({ source: g(T, "text") }), { t: k } = e(), A = i(() => {
|
|
24
|
+
let e = E.value?.$el ?? E.value;
|
|
25
|
+
if (!T.triggerElement || !e) return null;
|
|
26
26
|
let t = e.parentNode;
|
|
27
27
|
for (; t;) {
|
|
28
|
-
if (t.matches(
|
|
28
|
+
if (t.matches(T.triggerElement)) return t;
|
|
29
29
|
t = t.parentNode;
|
|
30
30
|
}
|
|
31
31
|
return null;
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
}), j = i(() => ({ display: T.triggerElement && !D.value ? "none" : "" })), M = () => {
|
|
33
|
+
O().then(() => {
|
|
34
|
+
C.success(k("d.copy.success"));
|
|
35
35
|
});
|
|
36
|
-
}, M = () => {
|
|
37
|
-
E.value = !0;
|
|
38
36
|
}, N = () => {
|
|
39
|
-
|
|
37
|
+
D.value = !0;
|
|
38
|
+
}, P = () => {
|
|
39
|
+
D.value = !1;
|
|
40
40
|
};
|
|
41
41
|
return f(() => {
|
|
42
|
-
|
|
42
|
+
A.value && (A.value.addEventListener("mouseenter", N), A.value.addEventListener("mouseleave", P));
|
|
43
43
|
}), d(() => {
|
|
44
|
-
|
|
45
|
-
}),
|
|
46
|
-
rootRef:
|
|
47
|
-
handleCopy:
|
|
48
|
-
}), (e, i) => (p(), a(_(
|
|
44
|
+
A.value && (A.value.removeEventListener("mouseenter", N), A.value.removeEventListener("mouseleave", P));
|
|
45
|
+
}), w({
|
|
46
|
+
rootRef: E,
|
|
47
|
+
handleCopy: M
|
|
48
|
+
}), (e, i) => (p(), a(_(S), {
|
|
49
49
|
ref_key: "rootRef",
|
|
50
|
-
ref:
|
|
50
|
+
ref: E,
|
|
51
51
|
class: "d-copy",
|
|
52
52
|
type: t.type,
|
|
53
53
|
underline: "never",
|
|
54
|
-
style: u(
|
|
55
|
-
onClick:
|
|
54
|
+
style: u(j.value),
|
|
55
|
+
onClick: b(M, ["stop"])
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
57
|
+
default: y(() => [t.icon ? (p(), s("i", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: l(t.icon)
|
|
60
60
|
}, null, 2)) : (p(), a(_(r), { key: 1 }, {
|
|
61
|
-
default:
|
|
61
|
+
default: y(() => [c(n)]),
|
|
62
62
|
_: 1
|
|
63
63
|
})), e.$slots.default ? h(e.$slots, "default", { key: 2 }, void 0, !0) : o("", !0)]),
|
|
64
64
|
_: 3
|
|
65
65
|
}, 8, ["type", "style"]));
|
|
66
66
|
}
|
|
67
|
-
}), [["__scopeId", "data-v-
|
|
67
|
+
}), [["__scopeId", "data-v-80dabae9"]]);
|
|
68
68
|
//#endregion
|
|
69
|
-
export {
|
|
69
|
+
export { w as default };
|
|
@@ -4,79 +4,38 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
4
4
|
$slots: S;
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
|
-
rootRef: import('vue').
|
|
8
|
-
handleCopy: () => void;
|
|
9
|
-
type: string;
|
|
10
|
-
text?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
triggerElement?: string;
|
|
13
|
-
$props: {
|
|
14
|
-
readonly type?: string;
|
|
15
|
-
readonly text?: string;
|
|
16
|
-
readonly icon?: string;
|
|
17
|
-
readonly triggerElement?: string;
|
|
18
|
-
};
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
20
|
-
rootRef: {
|
|
7
|
+
rootRef: Readonly<import('vue').ShallowRef<({
|
|
21
8
|
$: import('vue').ComponentInternalInstance;
|
|
22
9
|
$data: {};
|
|
23
|
-
$props:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
href
|
|
28
|
-
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
readonly icon?: unknown;
|
|
33
|
-
readonly underline?: boolean | "always" | "never" | "hover";
|
|
34
|
-
readonly disabled?: boolean;
|
|
35
|
-
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
36
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "underline" | "href" | "target">;
|
|
10
|
+
$props: {
|
|
11
|
+
readonly type?: "primary" | "success" | "warning" | "info" | "danger" | "default" | undefined;
|
|
12
|
+
readonly underline?: boolean | "always" | "never" | "hover" | undefined;
|
|
13
|
+
readonly disabled?: boolean | undefined;
|
|
14
|
+
readonly href?: string | undefined;
|
|
15
|
+
readonly target?: ("_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>)) | undefined;
|
|
16
|
+
readonly icon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
17
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
18
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
37
19
|
$attrs: import('vue').Attrs;
|
|
38
20
|
$refs: {
|
|
39
21
|
[x: string]: unknown;
|
|
40
22
|
};
|
|
41
23
|
$slots: Readonly<{
|
|
42
|
-
[name: string]: import('vue').Slot<any
|
|
24
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
43
25
|
}>;
|
|
44
26
|
$root: import('vue').ComponentPublicInstance | null;
|
|
45
27
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
46
28
|
$host: Element | null;
|
|
47
29
|
$emit: (event: "click", evt: MouseEvent) => void;
|
|
48
30
|
$el: any;
|
|
49
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('
|
|
50
|
-
type: {
|
|
51
|
-
type: import('vue').PropType<"default" | "primary" | "success" | "warning" | "info" | "danger">;
|
|
52
|
-
default: undefined;
|
|
53
|
-
};
|
|
54
|
-
icon: {
|
|
55
|
-
type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
|
|
56
|
-
};
|
|
57
|
-
underline: {
|
|
58
|
-
type: import('vue').PropType<boolean | "always" | "never" | "hover">;
|
|
59
|
-
default: undefined;
|
|
60
|
-
};
|
|
61
|
-
disabled: {
|
|
62
|
-
type: import('vue').PropType<boolean>;
|
|
63
|
-
};
|
|
64
|
-
href: {
|
|
65
|
-
type: import('vue').PropType<string>;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
target: {
|
|
69
|
-
type: import('vue').PropType<"_blank" | "_parent" | "_self" | "_top" | (string & {})>;
|
|
70
|
-
default: string;
|
|
71
|
-
};
|
|
72
|
-
}>> & {
|
|
31
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').LinkProps> & Readonly<{
|
|
73
32
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
74
|
-
}
|
|
33
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
75
34
|
click: (evt: MouseEvent) => void;
|
|
76
35
|
}, string, {
|
|
77
|
-
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
78
36
|
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
79
37
|
underline: boolean | "always" | "never" | "hover";
|
|
38
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
80
39
|
href: string;
|
|
81
40
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
82
41
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -99,42 +58,164 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
99
58
|
$nextTick: typeof import('vue').nextTick;
|
|
100
59
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
101
60
|
} & Readonly<{
|
|
102
|
-
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
103
61
|
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
104
62
|
underline: boolean | "always" | "never" | "hover";
|
|
63
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
105
64
|
href: string;
|
|
106
|
-
}> & Omit<Readonly<import('
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
65
|
+
}> & Omit<Readonly<import('element-plus').LinkProps> & Readonly<{
|
|
66
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
67
|
+
}>, "type" | "underline" | "href" | "target"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
68
|
+
$slots: {
|
|
69
|
+
default?: (props: {}) => any;
|
|
70
|
+
} & {
|
|
71
|
+
icon?: (props: {}) => any;
|
|
110
72
|
};
|
|
111
|
-
|
|
112
|
-
|
|
73
|
+
}) | null, ({
|
|
74
|
+
$: import('vue').ComponentInternalInstance;
|
|
75
|
+
$data: {};
|
|
76
|
+
$props: {
|
|
77
|
+
readonly type?: "primary" | "success" | "warning" | "info" | "danger" | "default" | undefined;
|
|
78
|
+
readonly underline?: boolean | "always" | "never" | "hover" | undefined;
|
|
79
|
+
readonly disabled?: boolean | undefined;
|
|
80
|
+
readonly href?: string | undefined;
|
|
81
|
+
readonly target?: ("_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>)) | undefined;
|
|
82
|
+
readonly icon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
83
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
84
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
85
|
+
$attrs: import('vue').Attrs;
|
|
86
|
+
$refs: {
|
|
87
|
+
[x: string]: unknown;
|
|
113
88
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
89
|
+
$slots: Readonly<{
|
|
90
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
93
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
94
|
+
$host: Element | null;
|
|
95
|
+
$emit: (event: "click", evt: MouseEvent) => void;
|
|
96
|
+
$el: any;
|
|
97
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').LinkProps> & Readonly<{
|
|
98
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
99
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
100
|
+
click: (evt: MouseEvent) => void;
|
|
101
|
+
}, string, {
|
|
102
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
103
|
+
underline: boolean | "always" | "never" | "hover";
|
|
104
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
105
|
+
href: string;
|
|
106
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
107
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
108
|
+
created?: (() => void) | (() => void)[];
|
|
109
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
110
|
+
mounted?: (() => void) | (() => void)[];
|
|
111
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
112
|
+
updated?: (() => void) | (() => void)[];
|
|
113
|
+
activated?: (() => void) | (() => void)[];
|
|
114
|
+
deactivated?: (() => void) | (() => void)[];
|
|
115
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
116
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
117
|
+
destroyed?: (() => void) | (() => void)[];
|
|
118
|
+
unmounted?: (() => void) | (() => void)[];
|
|
119
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
120
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
121
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
117
122
|
};
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
$forceUpdate: () => void;
|
|
124
|
+
$nextTick: typeof import('vue').nextTick;
|
|
125
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
126
|
+
} & Readonly<{
|
|
127
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
128
|
+
underline: boolean | "always" | "never" | "hover";
|
|
129
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
130
|
+
href: string;
|
|
131
|
+
}> & Omit<Readonly<import('element-plus').LinkProps> & Readonly<{
|
|
132
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
133
|
+
}>, "type" | "underline" | "href" | "target"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
134
|
+
$slots: {
|
|
135
|
+
default?: (props: {}) => any;
|
|
136
|
+
} & {
|
|
137
|
+
icon?: (props: {}) => any;
|
|
120
138
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
139
|
+
}) | null>>;
|
|
140
|
+
handleCopy: () => void;
|
|
141
|
+
type: string;
|
|
142
|
+
text?: string | undefined;
|
|
143
|
+
icon?: string | undefined;
|
|
144
|
+
triggerElement?: string | undefined;
|
|
145
|
+
$props: {
|
|
146
|
+
readonly type?: string | undefined;
|
|
147
|
+
readonly text?: string | undefined;
|
|
148
|
+
readonly icon?: string | undefined;
|
|
149
|
+
readonly triggerElement?: string | undefined;
|
|
150
|
+
};
|
|
151
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
152
|
+
rootRef: ({
|
|
153
|
+
$: import('vue').ComponentInternalInstance;
|
|
154
|
+
$data: {};
|
|
155
|
+
$props: {
|
|
156
|
+
readonly type?: "primary" | "success" | "warning" | "info" | "danger" | "default" | undefined;
|
|
157
|
+
readonly underline?: boolean | "always" | "never" | "hover" | undefined;
|
|
158
|
+
readonly disabled?: boolean | undefined;
|
|
159
|
+
readonly href?: string | undefined;
|
|
160
|
+
readonly target?: ("_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>)) | undefined;
|
|
161
|
+
readonly icon?: import('element-plus/es/utils/index.mjs').IconPropType | undefined;
|
|
162
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
163
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
164
|
+
$attrs: import('vue').Attrs;
|
|
165
|
+
$refs: {
|
|
166
|
+
[x: string]: unknown;
|
|
124
167
|
};
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
168
|
+
$slots: Readonly<{
|
|
169
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
170
|
+
}>;
|
|
171
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
172
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
173
|
+
$host: Element | null;
|
|
174
|
+
$emit: (event: "click", evt: MouseEvent) => void;
|
|
175
|
+
$el: any;
|
|
176
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('element-plus').LinkProps> & Readonly<{
|
|
177
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
178
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
179
|
+
click: (evt: MouseEvent) => void;
|
|
180
|
+
}, string, {
|
|
181
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
182
|
+
underline: boolean | "always" | "never" | "hover";
|
|
183
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
184
|
+
href: string;
|
|
185
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
186
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
187
|
+
created?: (() => void) | (() => void)[];
|
|
188
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
189
|
+
mounted?: (() => void) | (() => void)[];
|
|
190
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
191
|
+
updated?: (() => void) | (() => void)[];
|
|
192
|
+
activated?: (() => void) | (() => void)[];
|
|
193
|
+
deactivated?: (() => void) | (() => void)[];
|
|
194
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
195
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
196
|
+
destroyed?: (() => void) | (() => void)[];
|
|
197
|
+
unmounted?: (() => void) | (() => void)[];
|
|
198
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
199
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
200
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
128
201
|
};
|
|
129
|
-
|
|
202
|
+
$forceUpdate: () => void;
|
|
203
|
+
$nextTick: typeof import('vue').nextTick;
|
|
204
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
205
|
+
} & Readonly<{
|
|
206
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
207
|
+
underline: boolean | "always" | "never" | "hover";
|
|
208
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
209
|
+
href: string;
|
|
210
|
+
}> & Omit<Readonly<import('element-plus').LinkProps> & Readonly<{
|
|
130
211
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
131
|
-
}
|
|
212
|
+
}>, "type" | "underline" | "href" | "target"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
132
213
|
$slots: {
|
|
133
214
|
default?: (props: {}) => any;
|
|
134
215
|
} & {
|
|
135
216
|
icon?: (props: {}) => any;
|
|
136
217
|
};
|
|
137
|
-
};
|
|
218
|
+
}) | null;
|
|
138
219
|
}, any>;
|
|
139
220
|
type __VLS_TemplateResult = {
|
|
140
221
|
attrs: Partial<{}>;
|
|
@@ -142,64 +223,49 @@ type __VLS_TemplateResult = {
|
|
|
142
223
|
default?(_: {}): any;
|
|
143
224
|
};
|
|
144
225
|
refs: {
|
|
145
|
-
rootRef: {
|
|
226
|
+
rootRef: ({
|
|
146
227
|
$: ComponentInternalInstance;
|
|
147
228
|
$data: {};
|
|
148
|
-
$props:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
href
|
|
153
|
-
|
|
154
|
-
readonly
|
|
155
|
-
readonly
|
|
156
|
-
|
|
157
|
-
readonly icon?: unknown;
|
|
158
|
-
readonly underline?: boolean | "always" | "never" | "hover";
|
|
159
|
-
readonly disabled?: boolean;
|
|
160
|
-
onClick?: (evt: MouseEvent) => any;
|
|
161
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "underline" | "href" | "target">;
|
|
229
|
+
$props: {
|
|
230
|
+
readonly type?: "primary" | "default" | "success" | "warning" | "info" | "danger" | undefined;
|
|
231
|
+
readonly underline?: boolean | "always" | "never" | "hover" | undefined;
|
|
232
|
+
readonly disabled?: boolean | undefined;
|
|
233
|
+
readonly href?: string | undefined;
|
|
234
|
+
readonly target?: "_blank" | "_parent" | "_self" | "_top" | (string & {}) | undefined;
|
|
235
|
+
readonly icon?: IconPropType | undefined;
|
|
236
|
+
readonly onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
237
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
162
238
|
$attrs: Attrs;
|
|
163
239
|
$refs: Data;
|
|
164
240
|
$slots: Readonly<InternalSlots>;
|
|
165
|
-
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any
|
|
166
|
-
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any
|
|
167
|
-
$host: Element;
|
|
241
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
242
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
243
|
+
$host: Element | null;
|
|
168
244
|
$emit: (event: "click", evt: MouseEvent) => void;
|
|
169
245
|
$el: any;
|
|
170
|
-
$options: ComponentOptionsBase<Readonly<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
href: string;
|
|
174
|
-
target: string;
|
|
175
|
-
}>>> & {
|
|
176
|
-
onClick?: (evt: MouseEvent) => any;
|
|
177
|
-
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
246
|
+
$options: ComponentOptionsBase<Readonly<LinkProps> & Readonly<{
|
|
247
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
248
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
178
249
|
click: (evt: MouseEvent) => void;
|
|
179
250
|
}, string, {
|
|
180
|
-
|
|
181
|
-
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
251
|
+
type: "primary" | "default" | "success" | "warning" | "info" | "danger";
|
|
182
252
|
underline: boolean | "always" | "never" | "hover";
|
|
253
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
183
254
|
href: string;
|
|
184
255
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & MergedComponentOptionsOverride;
|
|
185
256
|
$forceUpdate: () => void;
|
|
186
257
|
$nextTick: typeof nextTick;
|
|
187
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnCleanup) => any : (args_0: any, args_1: any, args_2: OnCleanup) => any, options?: WatchOptions<boolean>): WatchStopHandle;
|
|
258
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnCleanup) => any : (args_0: any, args_1: any, args_2: OnCleanup) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
188
259
|
} & Readonly<{
|
|
189
|
-
|
|
190
|
-
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
260
|
+
type: "primary" | "default" | "success" | "warning" | "info" | "danger";
|
|
191
261
|
underline: boolean | "always" | "never" | "hover";
|
|
262
|
+
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
192
263
|
href: string;
|
|
193
|
-
}> & Omit<Readonly<
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
href: string;
|
|
197
|
-
target: string;
|
|
198
|
-
}>>> & {
|
|
199
|
-
onClick?: (evt: MouseEvent) => any;
|
|
200
|
-
}, "type" | "underline" | "href" | "target"> & ShallowUnwrapRef<{}> & ExtractComputedReturns<{}> & ComponentCustomProperties & {} & {
|
|
264
|
+
}> & Omit<Readonly<LinkProps> & Readonly<{
|
|
265
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
266
|
+
}>, "type" | "underline" | "href" | "target"> & ShallowUnwrapRef<{}> & ExtractComputedReturns<{}> & ComponentCustomProperties & {} & {
|
|
201
267
|
$slots: __VLS_Slots;
|
|
202
|
-
};
|
|
268
|
+
}) | null;
|
|
203
269
|
};
|
|
204
270
|
rootEl: any;
|
|
205
271
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.d-copy[data-v-80dabae9] .el-link__inner{gap:4px}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const DEditor: import('vue').DefineComponent<{}, {
|
|
2
|
-
editorRef: import('vue').
|
|
2
|
+
editorRef: import('vue').ShallowRef<null, null>;
|
|
3
3
|
$emit: (event: "update:model-value", ...args: any[]) => void;
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
modelValue: string;
|
|
@@ -9,17 +9,17 @@ export const DEditor: import('vue').DefineComponent<{}, {
|
|
|
9
9
|
border: boolean;
|
|
10
10
|
toolbarConfig: Record<string, any>;
|
|
11
11
|
editorConfig: Record<string, any>;
|
|
12
|
-
placeholder?: string;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
13
|
$props: {
|
|
14
|
-
readonly disabled?: boolean;
|
|
15
|
-
readonly modelValue?: string;
|
|
16
|
-
readonly mode?: string;
|
|
17
|
-
readonly showToolbar?: boolean;
|
|
18
|
-
readonly minHeight?: number;
|
|
19
|
-
readonly border?: boolean;
|
|
20
|
-
readonly toolbarConfig?: Record<string, any
|
|
21
|
-
readonly editorConfig?: Record<string, any
|
|
22
|
-
readonly placeholder?: string;
|
|
14
|
+
readonly disabled?: boolean | undefined;
|
|
15
|
+
readonly modelValue?: string | undefined;
|
|
16
|
+
readonly mode?: string | undefined;
|
|
17
|
+
readonly showToolbar?: boolean | undefined;
|
|
18
|
+
readonly minHeight?: number | undefined;
|
|
19
|
+
readonly border?: boolean | undefined;
|
|
20
|
+
readonly toolbarConfig?: Record<string, any> | undefined;
|
|
21
|
+
readonly editorConfig?: Record<string, any> | undefined;
|
|
22
|
+
readonly placeholder?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
25
|
export default DEditor;
|
|
@@ -3,34 +3,34 @@ import "../../../hooks/index.js";
|
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
import n from "../../icons/angle-down-light.js";
|
|
5
5
|
import r from "../../icons/angle-up-light.js";
|
|
6
|
-
import './code-collapse.
|
|
6
|
+
import './code-collapse.vue_vue_type_style_index_0_scoped_44e188d6_lang.css';/* empty css */
|
|
7
7
|
import i from "../../icon/index.js";
|
|
8
8
|
import "../../index.js";
|
|
9
|
-
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, openBlock as u, ref as d, toDisplayString as f, unref as p,
|
|
9
|
+
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, openBlock as u, ref as d, toDisplayString as f, unref as p, useTemplateRef as m, withCtx as h } from "vue";
|
|
10
10
|
//#region packages/components/editor/src/code-collapse.vue
|
|
11
|
-
var
|
|
11
|
+
var g = ["open"], _ = /* @__PURE__ */ t({
|
|
12
12
|
__name: "code-collapse",
|
|
13
13
|
props: { initialOpen: {
|
|
14
14
|
type: Boolean,
|
|
15
15
|
default: !1
|
|
16
16
|
} },
|
|
17
|
-
setup(t, { expose:
|
|
18
|
-
let
|
|
19
|
-
|
|
17
|
+
setup(t, { expose: _ }) {
|
|
18
|
+
let v = t, y = m("contentRef"), b = d(v.initialOpen), { t: x } = e(), S = a(() => x(b.value ? "d.editor.collapse" : "d.editor.expand")), C = (e) => {
|
|
19
|
+
b.value = e.target.open;
|
|
20
20
|
};
|
|
21
|
-
return
|
|
21
|
+
return _({ contentRef: y }), (e, a) => (u(), s("details", {
|
|
22
22
|
class: "code-collapse",
|
|
23
23
|
open: t.initialOpen,
|
|
24
|
-
onToggle:
|
|
25
|
-
}, [c("summary", null, [c("span", null, f(
|
|
26
|
-
default:
|
|
24
|
+
onToggle: C
|
|
25
|
+
}, [c("summary", null, [c("span", null, f(S.value), 1), l(p(i), null, {
|
|
26
|
+
default: h(() => [b.value ? (u(), o(r, { key: 0 })) : (u(), o(n, { key: 1 }))]),
|
|
27
27
|
_: 1
|
|
28
28
|
})]), c("div", {
|
|
29
29
|
ref_key: "contentRef",
|
|
30
|
-
ref:
|
|
30
|
+
ref: y,
|
|
31
31
|
class: "code-collapse-content"
|
|
32
|
-
}, null, 512)], 40,
|
|
32
|
+
}, null, 512)], 40, g));
|
|
33
33
|
}
|
|
34
|
-
}, [["__scopeId", "data-v-
|
|
34
|
+
}, [["__scopeId", "data-v-44e188d6"]]);
|
|
35
35
|
//#endregion
|
|
36
|
-
export {
|
|
36
|
+
export { _ as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
contentRef: import('vue').
|
|
2
|
+
contentRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>>;
|
|
3
3
|
initialOpen: boolean;
|
|
4
4
|
$props: {
|
|
5
|
-
readonly initialOpen?: boolean;
|
|
5
|
+
readonly initialOpen?: boolean | undefined;
|
|
6
6
|
};
|
|
7
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
8
|
contentRef: HTMLDivElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.code-collapse[data-v-
|
|
1
|
+
.code-collapse[data-v-44e188d6]{border:1px solid var(--el-border-color);background:var(--el-bg-color-overlay);border-radius:4px;overflow:hidden}.code-collapse summary[data-v-44e188d6]{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--el-text-color-primary);justify-content:flex-end;align-items:center;gap:4px;padding:8px 12px;line-height:normal;list-style:none;display:flex}.code-collapse[data-v-44e188d6] pre code{border:none;border-radius:0;margin:0}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
editorRef: import('vue').
|
|
2
|
+
editorRef: import('vue').ShallowRef<null, null>;
|
|
3
3
|
$emit: (event: "update:model-value", ...args: any[]) => void;
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
modelValue: string;
|
|
@@ -9,17 +9,17 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
9
9
|
border: boolean;
|
|
10
10
|
toolbarConfig: Record<string, any>;
|
|
11
11
|
editorConfig: Record<string, any>;
|
|
12
|
-
placeholder?: string;
|
|
12
|
+
placeholder?: string | undefined;
|
|
13
13
|
$props: {
|
|
14
|
-
readonly disabled?: boolean;
|
|
15
|
-
readonly modelValue?: string;
|
|
16
|
-
readonly mode?: string;
|
|
17
|
-
readonly showToolbar?: boolean;
|
|
18
|
-
readonly minHeight?: number;
|
|
19
|
-
readonly border?: boolean;
|
|
20
|
-
readonly toolbarConfig?: Record<string, any
|
|
21
|
-
readonly editorConfig?: Record<string, any
|
|
22
|
-
readonly placeholder?: string;
|
|
14
|
+
readonly disabled?: boolean | undefined;
|
|
15
|
+
readonly modelValue?: string | undefined;
|
|
16
|
+
readonly mode?: string | undefined;
|
|
17
|
+
readonly showToolbar?: boolean | undefined;
|
|
18
|
+
readonly minHeight?: number | undefined;
|
|
19
|
+
readonly border?: boolean | undefined;
|
|
20
|
+
readonly toolbarConfig?: Record<string, any> | undefined;
|
|
21
|
+
readonly editorConfig?: Record<string, any> | undefined;
|
|
22
|
+
readonly placeholder?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
25
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.d-editor[data-v-9103e51e]{width:100%}.d-editor.w-e-full-screen-container[data-v-9103e51e]{z-index:1000}.d-editor .toolbar-container[data-v-9103e51e]{border-bottom:1px solid var(--el-border-color)}.d-editor .toolbar-container[data-v-9103e51e] .w-e-toolbar{border-radius:4px}.d-editor .toolbar-container[data-v-9103e51e] .w-e-drop-panel{z-index:100}.d-editor .editor-container[data-v-9103e51e]{min-height:var(--minHeight);background:var(--el-fill-color-blank);border-radius:4px}.d-editor .editor-container[data-v-9103e51e] p[id^=w-e-element-paragraph-]{margin:10px 0}.d-editor .editor-container[data-v-9103e51e] .w-e-text-placeholder{font-size:14px;font-style:normal;line-height:normal;top:11px}.d-editor .editor-container[data-v-9103e51e] .w-e-image-container{width:500px}.d-editor .editor-container[data-v-9103e51e] pre code{text-shadow:none}.d-editor.editor-disabled[data-v-9103e51e]:not(.editor-border) div[id^=w-e-textarea-]{padding:0}.d-editor.editor-disabled[data-v-9103e51e]:not(.editor-border) p[id^=w-e-element-paragraph-]:first-child{margin-top:0}.d-editor.editor-disabled[data-v-9103e51e]:not(.editor-border) p[id^=w-e-element-paragraph-]:last-child{margin-bottom:0}.editor-border[data-v-9103e51e]{border:1px solid var(--el-border-color);background:var(--el-bg-color);border-radius:4px;transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.editor-border[data-v-9103e51e]:hover{border-color:var(--el-text-color-disabled)}.editor-disabled .editor-container[data-v-9103e51e] img{cursor:zoom-in}.el-form-item.is-error .editor-border[data-v-9103e51e]{border:1px solid var(--el-color-danger)}
|