geekplus-digital-ui 0.1.29 → 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 CHANGED
@@ -1,3 +1,5 @@
1
1
  # Geekplus Digital UI
2
2
 
3
3
  极智嘉数字化组件库,仅供内部使用。
4
+
5
+ 文档地址:https://ui.geekplus.cc/static/ui/
@@ -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<string | import('vue').Component>;
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<string | import('vue').Component>;
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<string | import('vue').Component>;
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<string | import('vue').Component>;
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: Data;
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<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<LinkProps>, {
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<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<LinkProps>, {
193
+ }> & Omit<Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
196
194
  type: undefined;
197
195
  underline: undefined;
198
196
  href: string;
@@ -1,14 +1,15 @@
1
- import { ref as n, computed as s, createApp as $, watch as b, nextTick as F, onBeforeUnmount as M, openBlock as w, createElementBlock as G, normalizeClass as J, withDirectives as K, createVNode as x, unref as C, vShow as Q, normalizeStyle as W, createBlock as X, createCommentVNode as Y } from "vue";
2
- import { i18nChangeLanguage as Z } from "@wangeditor-next/editor";
3
- import { Toolbar as _, Editor as ee } from "@wangeditor-next/editor-for-vue";
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
+ import { i18nChangeLanguage as te } from "@wangeditor-next/editor";
3
+ import { Toolbar as oe, Editor as le } from "@wangeditor-next/editor-for-vue";
4
4
  import './editor2.css';import './editor.css';/* empty css */
5
5
  import "../../../hooks/index.js";
6
- import { useFormItem as te, ElImageViewer as oe } from "element-plus";
7
- import le from "./code-collapse.vue.js";
6
+ import { useFormItem as ae, ElImageViewer as ne } from "element-plus";
7
+ import re from "./code-collapse.vue.js";
8
+ import { normalizeTableColumnWidths as B } from "./table-width.js";
8
9
  /* empty css */
9
- import ae from "../../../_virtual/_plugin-vue_export-helper.js";
10
- import { useLocale as ne } from "../../../hooks/use-locale/index.js";
11
- const re = /* @__PURE__ */ Object.assign({
10
+ import ie from "../../../_virtual/_plugin-vue_export-helper.js";
11
+ import { useLocale as de } from "../../../hooks/use-locale/index.js";
12
+ const ce = /* @__PURE__ */ Object.assign({
12
13
  name: "DEditor"
13
14
  }, {
14
15
  __name: "editor",
@@ -48,106 +49,110 @@ const re = /* @__PURE__ */ Object.assign({
48
49
  placeholder: String
49
50
  },
50
51
  emits: ["update:model-value"],
51
- setup(l, { emit: I }) {
52
- const o = l, V = I, B = n(null), r = n(null), h = n(""), y = n(0), u = n(!1), m = n([]), f = n(0), p = /* @__PURE__ */ new Map(), { t: S, getLocale: N } = ne(), { formItem: E } = te(), A = s(() => N()), R = (e) => {
52
+ setup(n, { emit: S }) {
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) => {
53
54
  r.value = Object.seal(e);
54
- }, L = (e) => {
55
- let t = e;
56
- t === "<p><br></p>" && (t = ""), t !== h.value && (h.value = t, V("update:model-value", t), E?.validate("change"), E?.validate("blur"));
57
55
  }, O = (e) => {
56
+ let t = e;
57
+ t === "<p><br></p>" && (t = "");
58
+ const l = B(t);
59
+ l !== m.value && (f.value = l, m.value = l, N("update:model-value", l), k?.validate("change"), k?.validate("blur"));
60
+ }, j = (e) => {
58
61
  if (!o.disabled)
59
62
  return;
60
63
  const t = e?.target?.closest?.("img");
61
64
  if (!t)
62
65
  return;
63
- const a = r.value?.getEditableContainer?.(), i = Array.from(a?.querySelectorAll?.("img") || []);
66
+ const l = r.value?.getEditableContainer?.(), i = Array.from(l?.querySelectorAll?.("img") || []);
64
67
  if (i.length === 0)
65
68
  return;
66
- const g = (d) => d?.currentSrc || d?.src || d?.getAttribute?.("data-src") || "", v = i.map(g).filter(Boolean);
67
- if (v.length === 0)
69
+ const h = (d) => d?.currentSrc || d?.src || d?.getAttribute?.("data-src") || "", y = i.map(h).filter(Boolean);
70
+ if (y.length === 0)
68
71
  return;
69
- const P = g(t), k = v.findIndex((d) => d === P);
70
- m.value = v, f.value = k >= 0 ? k : 0, u.value = !0, e?.stopPropagation?.();
71
- }, T = (e) => {
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
+ }, U = (e) => {
72
75
  if (o.disabled) {
73
- O(e);
76
+ j(e);
74
77
  return;
75
78
  }
76
79
  r.value?.focus?.();
77
- }, j = () => {
78
- u.value = !1, m.value = [], f.value = 0;
80
+ }, D = () => {
81
+ g.value = !1, v.value = [], b.value = 0;
79
82
  }, c = () => {
80
- p.forEach(({ app: e, host: t, pre: a }) => {
81
- t?.isConnected && a?.isConnected && t.parentNode && t.parentNode.insertBefore(a, t), e.unmount(), t?.remove();
82
- }), p.clear();
83
- }, z = (e) => {
83
+ C.forEach(({ app: e, host: t, pre: l }) => {
84
+ t?.isConnected && l?.isConnected && t.parentNode && t.parentNode.insertBefore(l, t), e.unmount(), t?.remove();
85
+ }), C.clear();
86
+ }, H = (e) => {
84
87
  const t = document.createElement("div");
85
88
  e.parentNode?.insertBefore(t, e);
86
- const a = $(le), i = a.mount(t);
87
- (i.contentRef?.value || i.contentRef)?.appendChild(e), p.set(e, {
88
- app: a,
89
+ const l = W(re), i = l.mount(t);
90
+ (i.contentRef?.value || i.contentRef)?.appendChild(e), C.set(e, {
91
+ app: l,
89
92
  host: t,
90
93
  pre: e
91
94
  });
92
- }, U = () => {
95
+ }, P = () => {
93
96
  const e = r.value?.getEditableContainer?.()?.querySelectorAll("pre");
94
97
  e && e.forEach((t) => {
95
- t.parentElement?.tagName !== "DETAILS" && z(t);
98
+ t.parentElement?.tagName !== "DETAILS" && H(t);
96
99
  });
97
- }, D = s(() => ({
100
+ }, q = s(() => ({
98
101
  ...o.toolbarConfig
99
- })), H = s(() => ({
100
- placeholder: o.disabled ? "" : o.placeholder || S("d.editor.placeholder"),
102
+ })), F = s(() => ({
103
+ placeholder: o.disabled ? "" : o.placeholder || A("d.editor.placeholder"),
101
104
  readOnly: o.disabled,
105
+ autoFocus: !1,
102
106
  ...o.editorConfig
103
- })), q = s(() => ({
107
+ })), M = s(() => ({
104
108
  "--minHeight": o.disabled ? "" : `${o.minHeight}px`
105
109
  }));
106
- return b(A, (e) => {
107
- Z(e === "zh-cn" ? "zh-CN" : "en");
108
- }, { immediate: !0 }), b(() => o.disabled, () => {
109
- c(), y.value++;
110
- }), b(() => o.modelValue, () => {
111
- o.disabled ? F(() => {
112
- c(), U();
110
+ return V(T, (e) => {
111
+ te(e === "zh-cn" ? "zh-CN" : "en");
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();
113
118
  }) : c();
114
- }, { immediate: !0 }), M(() => {
119
+ }, { immediate: !0 }), J(() => {
115
120
  c(), r.value?.destroy?.();
116
- }), (e, t) => (w(), G("div", {
121
+ }), (e, t) => (x(), K("div", {
117
122
  ref_key: "rootRef",
118
- ref: B,
119
- key: y.value,
120
- class: J(["d-editor", { "editor-border": l.border, "editor-disabled": l.disabled }])
123
+ ref: z,
124
+ key: p.value,
125
+ class: Q(["d-editor", { "editor-border": n.border, "editor-disabled": n.disabled }])
121
126
  }, [
122
- K(x(C(_), {
127
+ X(I(E(oe), {
123
128
  class: "toolbar-container",
124
129
  editor: r.value,
125
- "default-config": D.value,
126
- mode: l.mode
130
+ "default-config": q.value,
131
+ mode: n.mode
127
132
  }, null, 8, ["editor", "default-config", "mode"]), [
128
- [Q, l.showToolbar && !l.disabled]
133
+ [Y, n.showToolbar && !n.disabled]
129
134
  ]),
130
- x(C(ee), {
135
+ I(E(le), {
131
136
  class: "editor-container",
132
- style: W(q.value),
133
- "model-value": l.modelValue,
134
- "default-config": H.value,
135
- mode: l.mode,
136
- onOnCreated: R,
137
- "onUpdate:modelValue": L,
138
- onClick: T
137
+ style: Z(M.value),
138
+ "model-value": u.value,
139
+ "default-config": F.value,
140
+ mode: n.mode,
141
+ onOnCreated: L,
142
+ "onUpdate:modelValue": O,
143
+ onClick: U
139
144
  }, null, 8, ["style", "model-value", "default-config", "mode"]),
140
- u.value ? (w(), X(C(oe), {
145
+ g.value ? (x(), _(E(ne), {
141
146
  key: 0,
142
- "url-list": m.value,
143
- "initial-index": f.value,
147
+ "url-list": v.value,
148
+ "initial-index": b.value,
144
149
  "hide-on-click-modal": "",
145
150
  teleported: "",
146
- onClose: j
147
- }, null, 8, ["url-list", "initial-index"])) : Y("", !0)
151
+ onClose: D
152
+ }, null, 8, ["url-list", "initial-index"])) : ee("", !0)
148
153
  ], 2));
149
154
  }
150
- }), be = /* @__PURE__ */ ae(re, [["__scopeId", "data-v-439ac8a4"]]);
155
+ }), Ve = /* @__PURE__ */ ie(ce, [["__scopeId", "data-v-a52cf202"]]);
151
156
  export {
152
- be as default
157
+ Ve as default
153
158
  };
@@ -1 +1 @@
1
- .d-editor[data-v-439ac8a4]{width:100%}.d-editor.w-e-full-screen-container[data-v-439ac8a4]{z-index:1000}.d-editor .toolbar-container[data-v-439ac8a4]{border-bottom:1px solid var(--el-border-color)}.d-editor .toolbar-container[data-v-439ac8a4] .w-e-toolbar{border-radius:4px}.d-editor .toolbar-container[data-v-439ac8a4] .w-e-drop-panel{z-index:100}.d-editor .editor-container[data-v-439ac8a4]{min-height:var(--minHeight);background:var(--el-fill-color-blank);border-radius:4px}.d-editor .editor-container[data-v-439ac8a4] p[id^=w-e-element-paragraph-]{margin:10px 0}.d-editor .editor-container[data-v-439ac8a4] .w-e-text-placeholder{font-style:normal;font-size:14px;line-height:normal;top:11px}.d-editor .editor-container[data-v-439ac8a4] .w-e-image-container{width:500px}.d-editor .editor-container[data-v-439ac8a4] pre :deep(code){text-shadow:none}.d-editor.editor-disabled[data-v-439ac8a4]:not(.editor-border) div[id^=w-e-textarea-]{padding:0}.d-editor.editor-disabled[data-v-439ac8a4]:not(.editor-border) p[id^=w-e-element-paragraph-]:first-child{margin-top:0}.d-editor.editor-disabled[data-v-439ac8a4]:not(.editor-border) p[id^=w-e-element-paragraph-]:last-child{margin-bottom:0}.editor-border[data-v-439ac8a4]{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-439ac8a4]:hover{border-color:var(--el-text-color-disabled)}.editor-disabled .editor-container[data-v-439ac8a4] img{cursor:zoom-in}.el-form-item.is-error .editor-border[data-v-439ac8a4]{border:1px solid var(--el-color-danger)}
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)}
@@ -0,0 +1 @@
1
+ export function normalizeTableColumnWidths(html: any): any;
@@ -0,0 +1,63 @@
1
+ const d = /<table[\s>]/i, h = /<col(?:group)?[\s>]/i, p = /* @__PURE__ */ new Set(["TD", "TH"]), g = (t) => d.test(t) && h.test(t), l = (t) => {
2
+ if (t == null)
3
+ return "";
4
+ const e = `${t}`.trim();
5
+ return !e || e === "auto" ? "" : /^\d+(?:\.\d+)?$/.test(e) ? `${e}px` : e;
6
+ }, a = (t) => {
7
+ const e = l(t);
8
+ if (!e)
9
+ return null;
10
+ const r = Number.parseFloat(e);
11
+ return Number.isFinite(r) ? r : null;
12
+ }, A = (t) => t ? l(
13
+ t.getAttribute("width") || t.style?.width || t.getAttribute("data-width")
14
+ ) : "", c = (t, e) => {
15
+ if (!t || !e)
16
+ return !1;
17
+ let r = !1;
18
+ t.style.width !== e && (t.style.width = e, r = !0);
19
+ const n = a(e);
20
+ if (n != null) {
21
+ const s = `${n}`;
22
+ t.getAttribute("width") !== s && (t.setAttribute("width", s), r = !0);
23
+ }
24
+ return r;
25
+ }, b = (t) => {
26
+ if (t.length === 0)
27
+ return "";
28
+ if (t.length === 1)
29
+ return t[0];
30
+ const e = t.map(a);
31
+ return e.every((r) => r != null) ? `${e.reduce((r, n) => r + n, 0)}px` : t[0];
32
+ }, y = (t) => {
33
+ const e = Array.from(t.querySelectorAll("colgroup col"));
34
+ if (e.length === 0)
35
+ return !1;
36
+ const r = e.map(A);
37
+ if (r.every((o) => !o))
38
+ return !1;
39
+ let n = !1;
40
+ e.forEach((o, u) => {
41
+ n = c(o, r[u]) || n;
42
+ });
43
+ const s = t.querySelector("tr");
44
+ if (!s)
45
+ return n;
46
+ let i = 0;
47
+ return Array.from(s.children).filter((o) => p.has(o.tagName)).forEach((o) => {
48
+ const u = Number.parseInt(o.getAttribute("colspan") || "1", 10) || 1, f = r.slice(i, i + u).filter(Boolean);
49
+ n = c(o, b(f)) || n, i += u;
50
+ }), n;
51
+ }, T = (t) => {
52
+ if (!t || typeof t != "string" || !g(t) || typeof document > "u")
53
+ return t;
54
+ const e = document.createElement("template");
55
+ e.innerHTML = t;
56
+ let r = !1;
57
+ return e.content.querySelectorAll("table").forEach((n) => {
58
+ r = y(n) || r;
59
+ }), r ? e.innerHTML : t;
60
+ };
61
+ export {
62
+ T as normalizeTableColumnWidths
63
+ };
@@ -39,21 +39,21 @@ export const DUpload: import('vue').DefineComponent<{}, {
39
39
  $: import('vue').ComponentInternalInstance;
40
40
  $data: {};
41
41
  $props: Partial<{
42
- 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>);
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
- method: string;
49
- action: string;
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
- 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>);
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
- method: string;
219
- action: string;
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
- 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>);
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
- method: string;
259
- action: string;
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
- 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>);
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
- method: string;
49
- action: string;
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
- 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>);
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
- method: string;
219
- action: string;
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
- 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>);
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
- method: string;
259
- action: string;
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.29",
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.2.8"
28
+ "vue-i18n": "^11.3.0"
28
29
  },
29
30
  "peerDependencies": {
30
- "element-plus": "^2.13.2",
31
- "vue": "^3.5.29"
31
+ "element-plus": "^2.13.0",
32
+ "vue": "^3.5.0"
32
33
  }
33
34
  }