geekplus-digital-ui 0.1.30 → 0.1.31
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/README.md +2 -0
- package/components/copy/index.d.ts +9 -11
- package/components/copy/src/copy.vue.d.ts +18 -20
- package/components/editor/src/editor.vue.js +34 -33
- package/components/editor/src/editor2.css +1 -1
- package/components/upload/index.d.ts +19 -21
- package/components/upload/src/upload.vue.d.ts +19 -21
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -17,9 +17,9 @@ export const DCopy: {
|
|
|
17
17
|
$: import('vue').ComponentInternalInstance;
|
|
18
18
|
$data: {};
|
|
19
19
|
$props: Partial<{
|
|
20
|
-
underline: boolean | "always" | "never" | "hover";
|
|
21
|
-
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
22
20
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
21
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
22
|
+
underline: boolean | "always" | "never" | "hover";
|
|
23
23
|
href: string;
|
|
24
24
|
}> & Omit<{
|
|
25
25
|
readonly href: string;
|
|
@@ -30,9 +30,7 @@ export const DCopy: {
|
|
|
30
30
|
readonly disabled?: boolean;
|
|
31
31
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
32
32
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "underline" | "href" | "target">;
|
|
33
|
-
$attrs:
|
|
34
|
-
[x: string]: unknown;
|
|
35
|
-
};
|
|
33
|
+
$attrs: import('vue').Attrs;
|
|
36
34
|
$refs: {
|
|
37
35
|
[x: string]: unknown;
|
|
38
36
|
};
|
|
@@ -50,7 +48,7 @@ export const DCopy: {
|
|
|
50
48
|
default: undefined;
|
|
51
49
|
};
|
|
52
50
|
icon: {
|
|
53
|
-
type: import('vue').PropType<
|
|
51
|
+
type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
|
|
54
52
|
};
|
|
55
53
|
underline: {
|
|
56
54
|
type: import('vue').PropType<boolean | "always" | "never" | "hover">;
|
|
@@ -72,9 +70,9 @@ export const DCopy: {
|
|
|
72
70
|
}, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
71
|
click: (evt: MouseEvent) => void;
|
|
74
72
|
}, string, {
|
|
75
|
-
underline: boolean | "always" | "never" | "hover";
|
|
76
|
-
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
77
73
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
74
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
75
|
+
underline: boolean | "always" | "never" | "hover";
|
|
78
76
|
href: string;
|
|
79
77
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
80
78
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -97,9 +95,9 @@ export const DCopy: {
|
|
|
97
95
|
$nextTick: typeof import('vue').nextTick;
|
|
98
96
|
$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;
|
|
99
97
|
} & Readonly<{
|
|
100
|
-
underline: boolean | "always" | "never" | "hover";
|
|
101
|
-
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
102
98
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
99
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
100
|
+
underline: boolean | "always" | "never" | "hover";
|
|
103
101
|
href: string;
|
|
104
102
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
105
103
|
type: {
|
|
@@ -107,7 +105,7 @@ export const DCopy: {
|
|
|
107
105
|
default: undefined;
|
|
108
106
|
};
|
|
109
107
|
icon: {
|
|
110
|
-
type: import('vue').PropType<
|
|
108
|
+
type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
|
|
111
109
|
};
|
|
112
110
|
underline: {
|
|
113
111
|
type: import('vue').PropType<boolean | "always" | "never" | "hover">;
|
|
@@ -21,9 +21,9 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
21
21
|
$: import('vue').ComponentInternalInstance;
|
|
22
22
|
$data: {};
|
|
23
23
|
$props: Partial<{
|
|
24
|
-
underline: boolean | "always" | "never" | "hover";
|
|
25
|
-
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
26
24
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
25
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
26
|
+
underline: boolean | "always" | "never" | "hover";
|
|
27
27
|
href: string;
|
|
28
28
|
}> & Omit<{
|
|
29
29
|
readonly href: string;
|
|
@@ -34,9 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
34
34
|
readonly disabled?: boolean;
|
|
35
35
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
36
36
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "type" | "underline" | "href" | "target">;
|
|
37
|
-
$attrs:
|
|
38
|
-
[x: string]: unknown;
|
|
39
|
-
};
|
|
37
|
+
$attrs: import('vue').Attrs;
|
|
40
38
|
$refs: {
|
|
41
39
|
[x: string]: unknown;
|
|
42
40
|
};
|
|
@@ -54,7 +52,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
54
52
|
default: undefined;
|
|
55
53
|
};
|
|
56
54
|
icon: {
|
|
57
|
-
type: import('vue').PropType<
|
|
55
|
+
type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
|
|
58
56
|
};
|
|
59
57
|
underline: {
|
|
60
58
|
type: import('vue').PropType<boolean | "always" | "never" | "hover">;
|
|
@@ -76,9 +74,9 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
76
74
|
}, unknown, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
75
|
click: (evt: MouseEvent) => void;
|
|
78
76
|
}, string, {
|
|
79
|
-
underline: boolean | "always" | "never" | "hover";
|
|
80
|
-
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
81
77
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
78
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
79
|
+
underline: boolean | "always" | "never" | "hover";
|
|
82
80
|
href: string;
|
|
83
81
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
84
82
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -101,9 +99,9 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
101
99
|
$nextTick: typeof import('vue').nextTick;
|
|
102
100
|
$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;
|
|
103
101
|
} & Readonly<{
|
|
104
|
-
underline: boolean | "always" | "never" | "hover";
|
|
105
|
-
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
106
102
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
|
|
103
|
+
type: "primary" | "success" | "warning" | "info" | "danger" | "default";
|
|
104
|
+
underline: boolean | "always" | "never" | "hover";
|
|
107
105
|
href: string;
|
|
108
106
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
109
107
|
type: {
|
|
@@ -111,7 +109,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
111
109
|
default: undefined;
|
|
112
110
|
};
|
|
113
111
|
icon: {
|
|
114
|
-
type: import('vue').PropType<
|
|
112
|
+
type: import('vue').PropType<import('element-plus/es/utils/index.mjs').IconPropType>;
|
|
115
113
|
};
|
|
116
114
|
underline: {
|
|
117
115
|
type: import('vue').PropType<boolean | "always" | "never" | "hover">;
|
|
@@ -148,9 +146,9 @@ type __VLS_TemplateResult = {
|
|
|
148
146
|
$: ComponentInternalInstance;
|
|
149
147
|
$data: {};
|
|
150
148
|
$props: Partial<{
|
|
151
|
-
underline: boolean | "always" | "never" | "hover";
|
|
152
|
-
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
153
149
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
150
|
+
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
151
|
+
underline: boolean | "always" | "never" | "hover";
|
|
154
152
|
href: string;
|
|
155
153
|
}> & Omit<{
|
|
156
154
|
readonly href: string;
|
|
@@ -161,7 +159,7 @@ type __VLS_TemplateResult = {
|
|
|
161
159
|
readonly disabled?: boolean;
|
|
162
160
|
onClick?: (evt: MouseEvent) => any;
|
|
163
161
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "underline" | "href" | "target">;
|
|
164
|
-
$attrs:
|
|
162
|
+
$attrs: Attrs;
|
|
165
163
|
$refs: Data;
|
|
166
164
|
$slots: Readonly<InternalSlots>;
|
|
167
165
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
@@ -169,7 +167,7 @@ type __VLS_TemplateResult = {
|
|
|
169
167
|
$host: Element;
|
|
170
168
|
$emit: (event: "click", evt: MouseEvent) => void;
|
|
171
169
|
$el: any;
|
|
172
|
-
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<
|
|
170
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
173
171
|
type: undefined;
|
|
174
172
|
underline: undefined;
|
|
175
173
|
href: string;
|
|
@@ -179,20 +177,20 @@ type __VLS_TemplateResult = {
|
|
|
179
177
|
}, unknown, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
180
178
|
click: (evt: MouseEvent) => void;
|
|
181
179
|
}, string, {
|
|
182
|
-
underline: boolean | "always" | "never" | "hover";
|
|
183
|
-
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
184
180
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
181
|
+
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
182
|
+
underline: boolean | "always" | "never" | "hover";
|
|
185
183
|
href: string;
|
|
186
184
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & MergedComponentOptionsOverride;
|
|
187
185
|
$forceUpdate: () => void;
|
|
188
186
|
$nextTick: typeof nextTick;
|
|
189
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;
|
|
190
188
|
} & Readonly<{
|
|
191
|
-
underline: boolean | "always" | "never" | "hover";
|
|
192
|
-
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
193
189
|
target: "_blank" | "_parent" | "_self" | "_top" | (string & {});
|
|
190
|
+
type: "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
191
|
+
underline: boolean | "always" | "never" | "hover";
|
|
194
192
|
href: string;
|
|
195
|
-
}> & Omit<Readonly<ExtractPropTypes<
|
|
193
|
+
}> & Omit<Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
196
194
|
type: undefined;
|
|
197
195
|
underline: undefined;
|
|
198
196
|
href: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as a, computed as s, createApp as W, watch as
|
|
1
|
+
import { ref as a, computed as s, createApp as W, watch as V, nextTick as G, onBeforeUnmount as J, openBlock as x, createElementBlock as K, normalizeClass as Q, withDirectives as X, createVNode as I, unref as E, vShow as Y, normalizeStyle as Z, createBlock as _, createCommentVNode as ee } from "vue";
|
|
2
2
|
import { i18nChangeLanguage as te } from "@wangeditor-next/editor";
|
|
3
3
|
import { Toolbar as oe, Editor as le } from "@wangeditor-next/editor-for-vue";
|
|
4
4
|
import './editor2.css';import './editor.css';/* empty css */
|
|
@@ -50,13 +50,13 @@ const ce = /* @__PURE__ */ Object.assign({
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["update:model-value"],
|
|
52
52
|
setup(n, { emit: S }) {
|
|
53
|
-
const o = n, N = S, z = a(null), r = a(null),
|
|
53
|
+
const o = n, N = S, z = a(null), r = a(null), u = a(""), m = a(""), f = a(null), p = a(0), g = a(!1), v = a([]), b = a(0), C = /* @__PURE__ */ new Map(), { t: A, getLocale: R } = de(), { formItem: k } = ae(), T = s(() => R()), L = (e) => {
|
|
54
54
|
r.value = Object.seal(e);
|
|
55
55
|
}, O = (e) => {
|
|
56
56
|
let t = e;
|
|
57
57
|
t === "<p><br></p>" && (t = "");
|
|
58
58
|
const l = B(t);
|
|
59
|
-
l !==
|
|
59
|
+
l !== m.value && (f.value = l, m.value = l, N("update:model-value", l), k?.validate("change"), k?.validate("blur"));
|
|
60
60
|
}, j = (e) => {
|
|
61
61
|
if (!o.disabled)
|
|
62
62
|
return;
|
|
@@ -66,11 +66,11 @@ const ce = /* @__PURE__ */ Object.assign({
|
|
|
66
66
|
const l = r.value?.getEditableContainer?.(), i = Array.from(l?.querySelectorAll?.("img") || []);
|
|
67
67
|
if (i.length === 0)
|
|
68
68
|
return;
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
69
|
+
const h = (d) => d?.currentSrc || d?.src || d?.getAttribute?.("data-src") || "", y = i.map(h).filter(Boolean);
|
|
70
|
+
if (y.length === 0)
|
|
71
71
|
return;
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const $ = h(t), w = y.findIndex((d) => d === $);
|
|
73
|
+
v.value = y, b.value = w >= 0 ? w : 0, g.value = !0, e?.stopPropagation?.();
|
|
74
74
|
}, U = (e) => {
|
|
75
75
|
if (o.disabled) {
|
|
76
76
|
j(e);
|
|
@@ -78,80 +78,81 @@ const ce = /* @__PURE__ */ Object.assign({
|
|
|
78
78
|
}
|
|
79
79
|
r.value?.focus?.();
|
|
80
80
|
}, D = () => {
|
|
81
|
-
|
|
81
|
+
g.value = !1, v.value = [], b.value = 0;
|
|
82
82
|
}, c = () => {
|
|
83
|
-
|
|
83
|
+
C.forEach(({ app: e, host: t, pre: l }) => {
|
|
84
84
|
t?.isConnected && l?.isConnected && t.parentNode && t.parentNode.insertBefore(l, t), e.unmount(), t?.remove();
|
|
85
|
-
}),
|
|
85
|
+
}), C.clear();
|
|
86
86
|
}, H = (e) => {
|
|
87
87
|
const t = document.createElement("div");
|
|
88
88
|
e.parentNode?.insertBefore(t, e);
|
|
89
89
|
const l = W(re), i = l.mount(t);
|
|
90
|
-
(i.contentRef?.value || i.contentRef)?.appendChild(e),
|
|
90
|
+
(i.contentRef?.value || i.contentRef)?.appendChild(e), C.set(e, {
|
|
91
91
|
app: l,
|
|
92
92
|
host: t,
|
|
93
93
|
pre: e
|
|
94
94
|
});
|
|
95
|
-
},
|
|
95
|
+
}, P = () => {
|
|
96
96
|
const e = r.value?.getEditableContainer?.()?.querySelectorAll("pre");
|
|
97
97
|
e && e.forEach((t) => {
|
|
98
98
|
t.parentElement?.tagName !== "DETAILS" && H(t);
|
|
99
99
|
});
|
|
100
|
-
},
|
|
100
|
+
}, q = s(() => ({
|
|
101
101
|
...o.toolbarConfig
|
|
102
|
-
})),
|
|
102
|
+
})), F = s(() => ({
|
|
103
103
|
placeholder: o.disabled ? "" : o.placeholder || A("d.editor.placeholder"),
|
|
104
104
|
readOnly: o.disabled,
|
|
105
|
+
autoFocus: !1,
|
|
105
106
|
...o.editorConfig
|
|
106
|
-
})),
|
|
107
|
+
})), M = s(() => ({
|
|
107
108
|
"--minHeight": o.disabled ? "" : `${o.minHeight}px`
|
|
108
109
|
}));
|
|
109
|
-
return
|
|
110
|
+
return V(T, (e) => {
|
|
110
111
|
te(e === "zh-cn" ? "zh-CN" : "en");
|
|
111
|
-
}, { immediate: !0 }),
|
|
112
|
-
c(),
|
|
113
|
-
}),
|
|
114
|
-
const e = B(o.modelValue);
|
|
115
|
-
|
|
116
|
-
c(),
|
|
112
|
+
}, { immediate: !0 }), V(() => o.disabled, () => {
|
|
113
|
+
c(), p.value++;
|
|
114
|
+
}), V(() => o.modelValue, () => {
|
|
115
|
+
const e = B(o.modelValue), t = f.value === o.modelValue;
|
|
116
|
+
m.value = e, t ? f.value = null : u.value === e ? p.value++ : u.value = e, o.disabled ? G(() => {
|
|
117
|
+
c(), P();
|
|
117
118
|
}) : c();
|
|
118
119
|
}, { immediate: !0 }), J(() => {
|
|
119
120
|
c(), r.value?.destroy?.();
|
|
120
121
|
}), (e, t) => (x(), K("div", {
|
|
121
122
|
ref_key: "rootRef",
|
|
122
123
|
ref: z,
|
|
123
|
-
key:
|
|
124
|
+
key: p.value,
|
|
124
125
|
class: Q(["d-editor", { "editor-border": n.border, "editor-disabled": n.disabled }])
|
|
125
126
|
}, [
|
|
126
|
-
X(I(
|
|
127
|
+
X(I(E(oe), {
|
|
127
128
|
class: "toolbar-container",
|
|
128
129
|
editor: r.value,
|
|
129
|
-
"default-config":
|
|
130
|
+
"default-config": q.value,
|
|
130
131
|
mode: n.mode
|
|
131
132
|
}, null, 8, ["editor", "default-config", "mode"]), [
|
|
132
133
|
[Y, n.showToolbar && !n.disabled]
|
|
133
134
|
]),
|
|
134
|
-
I(
|
|
135
|
+
I(E(le), {
|
|
135
136
|
class: "editor-container",
|
|
136
|
-
style: Z(
|
|
137
|
-
"model-value":
|
|
138
|
-
"default-config":
|
|
137
|
+
style: Z(M.value),
|
|
138
|
+
"model-value": u.value,
|
|
139
|
+
"default-config": F.value,
|
|
139
140
|
mode: n.mode,
|
|
140
141
|
onOnCreated: L,
|
|
141
142
|
"onUpdate:modelValue": O,
|
|
142
143
|
onClick: U
|
|
143
144
|
}, null, 8, ["style", "model-value", "default-config", "mode"]),
|
|
144
|
-
|
|
145
|
+
g.value ? (x(), _(E(ne), {
|
|
145
146
|
key: 0,
|
|
146
|
-
"url-list":
|
|
147
|
-
"initial-index":
|
|
147
|
+
"url-list": v.value,
|
|
148
|
+
"initial-index": b.value,
|
|
148
149
|
"hide-on-click-modal": "",
|
|
149
150
|
teleported: "",
|
|
150
151
|
onClose: D
|
|
151
152
|
}, null, 8, ["url-list", "initial-index"])) : ee("", !0)
|
|
152
153
|
], 2));
|
|
153
154
|
}
|
|
154
|
-
}), Ve = /* @__PURE__ */ ie(ce, [["__scopeId", "data-v-
|
|
155
|
+
}), Ve = /* @__PURE__ */ ie(ce, [["__scopeId", "data-v-a52cf202"]]);
|
|
155
156
|
export {
|
|
156
157
|
Ve as default
|
|
157
158
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.d-editor[data-v-
|
|
1
|
+
.d-editor[data-v-a52cf202]{width:100%}.d-editor.w-e-full-screen-container[data-v-a52cf202]{z-index:1000}.d-editor .toolbar-container[data-v-a52cf202]{border-bottom:1px solid var(--el-border-color)}.d-editor .toolbar-container[data-v-a52cf202] .w-e-toolbar{border-radius:4px}.d-editor .toolbar-container[data-v-a52cf202] .w-e-drop-panel{z-index:100}.d-editor .editor-container[data-v-a52cf202]{min-height:var(--minHeight);background:var(--el-fill-color-blank);border-radius:4px}.d-editor .editor-container[data-v-a52cf202] p[id^=w-e-element-paragraph-]{margin:10px 0}.d-editor .editor-container[data-v-a52cf202] .w-e-text-placeholder{font-style:normal;font-size:14px;line-height:normal;top:11px}.d-editor .editor-container[data-v-a52cf202] .w-e-image-container{width:500px}.d-editor .editor-container[data-v-a52cf202] pre :deep(code){text-shadow:none}.d-editor.editor-disabled[data-v-a52cf202]:not(.editor-border) div[id^=w-e-textarea-]{padding:0}.d-editor.editor-disabled[data-v-a52cf202]:not(.editor-border) p[id^=w-e-element-paragraph-]:first-child{margin-top:0}.d-editor.editor-disabled[data-v-a52cf202]:not(.editor-border) p[id^=w-e-element-paragraph-]:last-child{margin-bottom:0}.editor-border[data-v-a52cf202]{border:1px solid var(--el-border-color);border-radius:4px;background:var(--el-bg-color);transition:border-color .2s cubic-bezier(.645,.045,.355,1)}.editor-border[data-v-a52cf202]:hover{border-color:var(--el-text-color-disabled)}.editor-disabled .editor-container[data-v-a52cf202] img{cursor:zoom-in}.el-form-item.is-error .editor-border[data-v-a52cf202]{border:1px solid var(--el-color-danger)}
|
|
@@ -39,21 +39,21 @@ export const DUpload: import('vue').DefineComponent<{}, {
|
|
|
39
39
|
$: import('vue').ComponentInternalInstance;
|
|
40
40
|
$data: {};
|
|
41
41
|
$props: Partial<{
|
|
42
|
-
|
|
42
|
+
onChange: import('element-plus').UploadHooks["onChange"];
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
name: string;
|
|
45
|
-
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
46
|
-
onChange: import('element-plus').UploadHooks["onChange"];
|
|
47
45
|
onError: import('element-plus').UploadHooks["onError"];
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
accept: string;
|
|
46
|
+
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
47
|
+
data: import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>);
|
|
51
48
|
beforeUpload: import('element-plus').UploadHooks["beforeUpload"];
|
|
52
49
|
onRemove: import('element-plus').UploadHooks["onRemove"];
|
|
53
50
|
onPreview: import('element-plus').UploadHooks["onPreview"];
|
|
54
51
|
onSuccess: import('element-plus').UploadHooks["onSuccess"];
|
|
55
52
|
onExceed: import('element-plus').UploadHooks["onExceed"];
|
|
53
|
+
action: string;
|
|
54
|
+
method: string;
|
|
56
55
|
showFileList: boolean;
|
|
56
|
+
accept: string;
|
|
57
57
|
fileList: import('element-plus').UploadUserFile[];
|
|
58
58
|
autoUpload: boolean;
|
|
59
59
|
listType: import('element-plus').ListType;
|
|
@@ -87,9 +87,7 @@ export const DUpload: import('vue').DefineComponent<{}, {
|
|
|
87
87
|
readonly limit?: number;
|
|
88
88
|
readonly directory?: boolean;
|
|
89
89
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "name" | "data" | "onChange" | "onError" | "onProgress" | "disabled" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
90
|
-
$attrs:
|
|
91
|
-
[x: string]: unknown;
|
|
92
|
-
};
|
|
90
|
+
$attrs: import('vue').Attrs;
|
|
93
91
|
$refs: {
|
|
94
92
|
[x: string]: unknown;
|
|
95
93
|
};
|
|
@@ -209,21 +207,21 @@ export const DUpload: import('vue').DefineComponent<{}, {
|
|
|
209
207
|
handleStart: (rawFile: import('element-plus').UploadRawFile) => void;
|
|
210
208
|
handleRemove: (file: import('element-plus').UploadFile | import('element-plus').UploadRawFile) => void;
|
|
211
209
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
212
|
-
|
|
210
|
+
onChange: import('element-plus').UploadHooks["onChange"];
|
|
213
211
|
disabled: boolean;
|
|
214
212
|
name: string;
|
|
215
|
-
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
216
|
-
onChange: import('element-plus').UploadHooks["onChange"];
|
|
217
213
|
onError: import('element-plus').UploadHooks["onError"];
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
accept: string;
|
|
214
|
+
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
215
|
+
data: import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>);
|
|
221
216
|
beforeUpload: import('element-plus').UploadHooks["beforeUpload"];
|
|
222
217
|
onRemove: import('element-plus').UploadHooks["onRemove"];
|
|
223
218
|
onPreview: import('element-plus').UploadHooks["onPreview"];
|
|
224
219
|
onSuccess: import('element-plus').UploadHooks["onSuccess"];
|
|
225
220
|
onExceed: import('element-plus').UploadHooks["onExceed"];
|
|
221
|
+
action: string;
|
|
222
|
+
method: string;
|
|
226
223
|
showFileList: boolean;
|
|
224
|
+
accept: string;
|
|
227
225
|
fileList: import('element-plus').UploadUserFile[];
|
|
228
226
|
autoUpload: boolean;
|
|
229
227
|
listType: import('element-plus').ListType;
|
|
@@ -249,21 +247,21 @@ export const DUpload: import('vue').DefineComponent<{}, {
|
|
|
249
247
|
$nextTick: typeof import('vue').nextTick;
|
|
250
248
|
$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;
|
|
251
249
|
} & Readonly<{
|
|
252
|
-
|
|
250
|
+
onChange: import('element-plus').UploadHooks["onChange"];
|
|
253
251
|
disabled: boolean;
|
|
254
252
|
name: string;
|
|
255
|
-
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
256
|
-
onChange: import('element-plus').UploadHooks["onChange"];
|
|
257
253
|
onError: import('element-plus').UploadHooks["onError"];
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
accept: string;
|
|
254
|
+
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
255
|
+
data: import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>);
|
|
261
256
|
beforeUpload: import('element-plus').UploadHooks["beforeUpload"];
|
|
262
257
|
onRemove: import('element-plus').UploadHooks["onRemove"];
|
|
263
258
|
onPreview: import('element-plus').UploadHooks["onPreview"];
|
|
264
259
|
onSuccess: import('element-plus').UploadHooks["onSuccess"];
|
|
265
260
|
onExceed: import('element-plus').UploadHooks["onExceed"];
|
|
261
|
+
action: string;
|
|
262
|
+
method: string;
|
|
266
263
|
showFileList: boolean;
|
|
264
|
+
accept: string;
|
|
267
265
|
fileList: import('element-plus').UploadUserFile[];
|
|
268
266
|
autoUpload: boolean;
|
|
269
267
|
listType: import('element-plus').ListType;
|
|
@@ -39,21 +39,21 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
39
39
|
$: import('vue').ComponentInternalInstance;
|
|
40
40
|
$data: {};
|
|
41
41
|
$props: Partial<{
|
|
42
|
-
|
|
42
|
+
onChange: import('element-plus').UploadHooks["onChange"];
|
|
43
43
|
disabled: boolean;
|
|
44
44
|
name: string;
|
|
45
|
-
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
46
|
-
onChange: import('element-plus').UploadHooks["onChange"];
|
|
47
45
|
onError: import('element-plus').UploadHooks["onError"];
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
accept: string;
|
|
46
|
+
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
47
|
+
data: import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>);
|
|
51
48
|
beforeUpload: import('element-plus').UploadHooks["beforeUpload"];
|
|
52
49
|
onRemove: import('element-plus').UploadHooks["onRemove"];
|
|
53
50
|
onPreview: import('element-plus').UploadHooks["onPreview"];
|
|
54
51
|
onSuccess: import('element-plus').UploadHooks["onSuccess"];
|
|
55
52
|
onExceed: import('element-plus').UploadHooks["onExceed"];
|
|
53
|
+
action: string;
|
|
54
|
+
method: string;
|
|
56
55
|
showFileList: boolean;
|
|
56
|
+
accept: string;
|
|
57
57
|
fileList: import('element-plus').UploadUserFile[];
|
|
58
58
|
autoUpload: boolean;
|
|
59
59
|
listType: import('element-plus').ListType;
|
|
@@ -87,9 +87,7 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
87
87
|
readonly limit?: number;
|
|
88
88
|
readonly directory?: boolean;
|
|
89
89
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "name" | "data" | "onChange" | "onError" | "onProgress" | "disabled" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
90
|
-
$attrs:
|
|
91
|
-
[x: string]: unknown;
|
|
92
|
-
};
|
|
90
|
+
$attrs: import('vue').Attrs;
|
|
93
91
|
$refs: {
|
|
94
92
|
[x: string]: unknown;
|
|
95
93
|
};
|
|
@@ -209,21 +207,21 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
209
207
|
handleStart: (rawFile: import('element-plus').UploadRawFile) => void;
|
|
210
208
|
handleRemove: (file: import('element-plus').UploadFile | import('element-plus').UploadRawFile) => void;
|
|
211
209
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
212
|
-
|
|
210
|
+
onChange: import('element-plus').UploadHooks["onChange"];
|
|
213
211
|
disabled: boolean;
|
|
214
212
|
name: string;
|
|
215
|
-
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
216
|
-
onChange: import('element-plus').UploadHooks["onChange"];
|
|
217
213
|
onError: import('element-plus').UploadHooks["onError"];
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
accept: string;
|
|
214
|
+
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
215
|
+
data: import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>);
|
|
221
216
|
beforeUpload: import('element-plus').UploadHooks["beforeUpload"];
|
|
222
217
|
onRemove: import('element-plus').UploadHooks["onRemove"];
|
|
223
218
|
onPreview: import('element-plus').UploadHooks["onPreview"];
|
|
224
219
|
onSuccess: import('element-plus').UploadHooks["onSuccess"];
|
|
225
220
|
onExceed: import('element-plus').UploadHooks["onExceed"];
|
|
221
|
+
action: string;
|
|
222
|
+
method: string;
|
|
226
223
|
showFileList: boolean;
|
|
224
|
+
accept: string;
|
|
227
225
|
fileList: import('element-plus').UploadUserFile[];
|
|
228
226
|
autoUpload: boolean;
|
|
229
227
|
listType: import('element-plus').ListType;
|
|
@@ -249,21 +247,21 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
249
247
|
$nextTick: typeof import('vue').nextTick;
|
|
250
248
|
$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;
|
|
251
249
|
} & Readonly<{
|
|
252
|
-
|
|
250
|
+
onChange: import('element-plus').UploadHooks["onChange"];
|
|
253
251
|
disabled: boolean;
|
|
254
252
|
name: string;
|
|
255
|
-
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
256
|
-
onChange: import('element-plus').UploadHooks["onChange"];
|
|
257
253
|
onError: import('element-plus').UploadHooks["onError"];
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
accept: string;
|
|
254
|
+
onProgress: import('element-plus').UploadHooks["onProgress"];
|
|
255
|
+
data: import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData> | ((rawFile: import('element-plus').UploadRawFile) => import('element-plus/es/utils/typescript.mjs').Awaitable<import('element-plus').UploadData>);
|
|
261
256
|
beforeUpload: import('element-plus').UploadHooks["beforeUpload"];
|
|
262
257
|
onRemove: import('element-plus').UploadHooks["onRemove"];
|
|
263
258
|
onPreview: import('element-plus').UploadHooks["onPreview"];
|
|
264
259
|
onSuccess: import('element-plus').UploadHooks["onSuccess"];
|
|
265
260
|
onExceed: import('element-plus').UploadHooks["onExceed"];
|
|
261
|
+
action: string;
|
|
262
|
+
method: string;
|
|
266
263
|
showFileList: boolean;
|
|
264
|
+
accept: string;
|
|
267
265
|
fileList: import('element-plus').UploadUserFile[];
|
|
268
266
|
autoUpload: boolean;
|
|
269
267
|
listType: import('element-plus').ListType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geekplus-digital-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
|
+
"homepage": "https://ui.geekplus.cc/static/ui/",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"main": "index.js",
|
|
6
7
|
"module": "index.js",
|
|
@@ -24,10 +25,10 @@
|
|
|
24
25
|
"@wangeditor-next/editor-for-vue": "^5.1.14",
|
|
25
26
|
"file-saver": "^2.0.5",
|
|
26
27
|
"lodash-es": "^4.17.23",
|
|
27
|
-
"vue-i18n": "^11.
|
|
28
|
+
"vue-i18n": "^11.3.0"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
30
|
-
"element-plus": "^2.13.
|
|
31
|
-
"vue": "^3.5.
|
|
31
|
+
"element-plus": "^2.13.0",
|
|
32
|
+
"vue": "^3.5.0"
|
|
32
33
|
}
|
|
33
34
|
}
|