@10yun/cv-pc-ui 0.3.54 → 0.3.55
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/lib/cv-ui.cjs +8 -8
- package/lib/cv-ui.js +369 -365
- package/package.json +9 -9
- package/src/mixins/value.js +3 -3
- package/src/utils/value.js +63 -0
package/lib/cv-ui.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ElBadge as Ua, ElButton as Fe, ElAutocomplete as bl, ElForm as
|
|
2
|
-
import { resolveComponent as C, createBlock as V, openBlock as d, mergeProps as O, withCtx as v, renderSlot as D, resolveDirective as re, withDirectives as M, createElementBlock as u, createVNode as b, createCommentVNode as w, normalizeProps as U, withModifiers as kl, createTextVNode as L, toHandlers as xl, guardReactiveProps as Y, createSlots as _e, createElementVNode as r, normalizeClass as z, toDisplayString as T, Fragment as F, renderList as E, normalizeStyle as H, defineComponent as Sl, vShow as A, TransitionGroup as gn, withKeys as Oe, ref as N, unref as $, reactive as
|
|
1
|
+
import { ElBadge as Ua, ElButton as Fe, ElAutocomplete as bl, ElForm as et, ElFormItem as Wa, ElInput as zo, ElInputNumber as Jl, ElRadioGroup as en, ElCheckbox as tn, ElCheckboxButton as on, ElCheckboxGroup as an, ElMessage as q, ElOption as Ya, ElSelect as yl, ElCascader as ln, ElTimePicker as nn, ElDatePicker as sn, ElSwitch as rn, ElMessageBox as Oa, ElTag as cn, ElTable as dn, ElTableColumn as Z, ElPopover as Fa, ElScrollbar as Ma, ElImage as Ea, ClickOutside as hn, ElAvatar as Cl, ElPagination as pn, ElIcon as wl, ElDialog as un, ElDrawer as mn } from "element-plus";
|
|
2
|
+
import { resolveComponent as C, createBlock as V, openBlock as d, mergeProps as O, withCtx as v, renderSlot as D, resolveDirective as re, withDirectives as M, createElementBlock as u, createVNode as b, createCommentVNode as w, normalizeProps as U, withModifiers as kl, createTextVNode as L, toHandlers as xl, guardReactiveProps as Y, createSlots as _e, createElementVNode as r, normalizeClass as z, toDisplayString as T, Fragment as F, renderList as E, normalizeStyle as H, defineComponent as Sl, vShow as A, TransitionGroup as gn, withKeys as Oe, ref as N, unref as $, reactive as Po, computed as G, inject as ne, watch as ae, onMounted as ze, Transition as fn, nextTick as Ne, useCssVars as vn, onUnmounted as bn, h as Na, shallowRef as se, shallowReadonly as yn, toValue as De, getCurrentScope as Cn, onScopeDispose as wn, readonly as Xa, getCurrentInstance as kn, toRaw as Vl, toRefs as xn, provide as Te, useSlots as Sn, resolveDynamicComponent as _l, onBeforeUnmount as Vn, vModelText as _n, render as Ho } from "vue";
|
|
3
3
|
import { basicSetup as In } from "codemirror";
|
|
4
4
|
import { EditorState as Ve, Compartment as Tn, StateEffect as Ln, EditorSelection as Dn } from "@codemirror/state";
|
|
5
5
|
import { EditorView as X, keymap as $n, placeholder as On } from "@codemirror/view";
|
|
6
6
|
import { indentWithTab as Fn } from "@codemirror/commands";
|
|
7
7
|
import { indentUnit as Mn, syntaxHighlighting as Q, HighlightStyle as J } from "@codemirror/language";
|
|
8
8
|
import { tags as s } from "@lezer/highlight";
|
|
9
|
-
import { javascript as
|
|
9
|
+
import { javascript as qa } from "@codemirror/lang-javascript";
|
|
10
10
|
import { html as En } from "@codemirror/lang-html";
|
|
11
11
|
import { json as Nn } from "@codemirror/lang-json";
|
|
12
12
|
import { markdown as Bn } from "@codemirror/lang-markdown";
|
|
13
13
|
import { vue as zn } from "@codemirror/lang-vue";
|
|
14
14
|
import { php as Hn } from "@codemirror/lang-php";
|
|
15
15
|
import { java as An } from "@codemirror/lang-java";
|
|
16
|
-
import { sql as
|
|
16
|
+
import { sql as Ka } from "@codemirror/lang-sql";
|
|
17
17
|
import { python as Pn } from "@codemirror/lang-python";
|
|
18
18
|
import { xml as jn } from "@codemirror/lang-xml";
|
|
19
19
|
import { go as Rn } from "@codemirror/lang-go";
|
|
@@ -23,29 +23,29 @@ const S = (e, t) => {
|
|
|
23
23
|
const o = e.__vccOpts || e;
|
|
24
24
|
for (const [l, a] of t) o[l] = a;
|
|
25
25
|
return o;
|
|
26
|
-
},
|
|
26
|
+
}, tt = S({ name: "cvBadge", extends: { ExtendBadge: Ua }, props: { ...Ua.props }, created() {
|
|
27
27
|
}, computed: { isShow() {
|
|
28
28
|
return !this.value || !(this.value > 0);
|
|
29
29
|
} }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
|
|
30
30
|
const n = C("el-badge");
|
|
31
31
|
return d(), V(n, O(e.$props, { hidden: i.isShow }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["hidden"]);
|
|
32
32
|
}]]);
|
|
33
|
-
|
|
34
|
-
e.component(
|
|
33
|
+
tt.install = function(e) {
|
|
34
|
+
e.component(tt.name, tt);
|
|
35
35
|
};
|
|
36
|
-
const
|
|
36
|
+
const ot = S({ name: "cvRow", props: { gutter: { type: [Number, String], default: 0 }, type: { type: [String], default: "" }, justify: { type: [String], default: "start" }, align: { type: [String], default: "top" }, tag: { type: [String], default: "div" } }, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
37
37
|
const n = C("el-row");
|
|
38
38
|
return d(), V(n, O({ class: "cv-row" }, { type: o.type, justify: o.justify, align: o.align, tag: o.tag }, { gutter: parseInt(o.gutter) }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["gutter"]);
|
|
39
|
-
}]]),
|
|
39
|
+
}]]), at = S({ name: "cvCol", props: { span: { type: [Number, String], default: 24 }, offset: { type: [Number, String], default: 0 } }, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
40
40
|
const n = C("el-col");
|
|
41
41
|
return d(), V(n, { class: "cv-col", span: parseInt(o.span), offset: parseInt(o.offset) }, { default: v(() => [D(e.$slots, "default")]), _: 3 }, 8, ["span", "offset"]);
|
|
42
42
|
}]]);
|
|
43
|
-
|
|
44
|
-
e.component(tt.name, tt);
|
|
45
|
-
}, ot.install = function(e) {
|
|
43
|
+
ot.install = function(e) {
|
|
46
44
|
e.component(ot.name, ot);
|
|
45
|
+
}, at.install = function(e) {
|
|
46
|
+
e.component(at.name, at);
|
|
47
47
|
};
|
|
48
|
-
const
|
|
48
|
+
const it = S({ name: "cvBtnBase", emits: ["click"], props: { ...Fe.props, autoLoading: { type: Boolean, default: !1 } }, data: () => ({ loadingStatus: !1 }), computed: { filteredProps() {
|
|
49
49
|
const { autoLoading: e, ...t } = this.$props;
|
|
50
50
|
return t;
|
|
51
51
|
}, hasDefaultContent() {
|
|
@@ -63,7 +63,7 @@ const at = S({ name: "cvBtnBase", emits: ["click"], props: { ...Fe.props, autoLo
|
|
|
63
63
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
64
64
|
const n = C("el-button");
|
|
65
65
|
return e.$slots.default || i.hasDefaultContent ? (d(), V(n, O({ key: 0, class: "cv-btn" }, i.filteredProps, { loading: a.loadingStatus, onClick: i.handleClick }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["loading", "onClick"])) : (d(), V(n, O({ key: 1, class: "cv-btn" }, i.filteredProps, { loading: a.loadingStatus, onClick: i.handleClick }), null, 16, ["loading", "onClick"]));
|
|
66
|
-
}]]),
|
|
66
|
+
}]]), lt = S({ name: "cvBtnText", emits: ["click"], props: { ...Fe.props, autoLoading: { type: Boolean, default: !1 } }, data: () => ({ loadingStatus: !1 }), methods: { handleClick() {
|
|
67
67
|
this.autoLoading && (this.loadingStatus = !0), this.$emit("click", () => {
|
|
68
68
|
this.loadingStatus = !1;
|
|
69
69
|
});
|
|
@@ -71,17 +71,17 @@ const at = S({ name: "cvBtnBase", emits: ["click"], props: { ...Fe.props, autoLo
|
|
|
71
71
|
const n = C("el-button");
|
|
72
72
|
return d(), V(n, O({ class: "cv-btn" }, e.$props, { link: "", loading: a.loadingStatus, onClick: i.handleClick }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["loading", "onClick"]);
|
|
73
73
|
}]]);
|
|
74
|
-
|
|
75
|
-
e.component(at.name, at);
|
|
76
|
-
}, it.install = function(e) {
|
|
74
|
+
it.install = function(e) {
|
|
77
75
|
e.component(it.name, it);
|
|
76
|
+
}, lt.install = function(e) {
|
|
77
|
+
e.component(lt.name, lt);
|
|
78
78
|
};
|
|
79
|
-
const
|
|
79
|
+
const nt = S({ name: "cvAutocompleteBase", props: { ...bl.props }, data: () => ({ localVal: "", loadingStatus: !1 }), created() {
|
|
80
80
|
}, methods: { async querySearchAsync(e, t) {
|
|
81
81
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
82
82
|
const n = C("el-autocomplete");
|
|
83
83
|
return d(), V(n, O({ modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.localVal = c) }, e.$props, { "fetch-suggestions": i.querySearchAsync }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["modelValue", "fetch-suggestions"]);
|
|
84
|
-
}]]),
|
|
84
|
+
}]]), jo = { props: { compConfig: {}, dataParse: { type: [Function], default: () => null } }, data: () => ({ searchData: {}, loadDataLoading: !1, loadDataList: [], loadDataTotal: 0, loadPageCurr: 1, loadPageLimit: 10, loadConfigSetting: {}, loadConfigDef: { pageCurr: 1, pageLimit: 10, isSkip: !1, url: null, apiFunc: null, mockData: null, where: {}, response: { statusName: "status", statusCode: 200, msgName: "msg", countName: "total", dataName: "data" }, request: { pageName: "page", limitName: "pagesize" } } }), methods: { loadEnding() {
|
|
85
85
|
this.loadDataLoading = !1, this.$nextTick(() => {
|
|
86
86
|
this.loadDataLoading = !1;
|
|
87
87
|
});
|
|
@@ -105,7 +105,7 @@ const lt = S({ name: "cvAutocompleteBase", props: { ...bl.props }, data: () => (
|
|
|
105
105
|
o.status = e[t.statusName], o.msg = e[t.msgName], o.total = e[t.countName], l = e[t.dataName];
|
|
106
106
|
for (let i in l) a[i] = l[i];
|
|
107
107
|
return o.data = a, o;
|
|
108
|
-
} } },
|
|
108
|
+
} } }, st = S({ name: "cvAutocompleteLoad", mixins: [jo], emits: ["update:modelValue", "input"], props: { ...bl.props, modelValue: { type: [String, Object, Number], default: () => ({}) }, placeholder: { type: [String], default: "请输入内容" }, popperClass: { type: [String], default: "cv-autocomplete-load" }, clearable: { type: [Boolean], default: !0 }, triggerOnFocus: !1, debounce: 500, refID: { type: [String], required: !1, default: () => "cvAutocompleteLoad-" + +/* @__PURE__ */ new Date() + (Math.random() / 1e4).toFixed(0) }, compConfig: { type: [Object], default: () => ({}) } }, data: () => ({ localVal: "", searchList: [], compConfigDef: { searchField: ["value"] }, timeout: null, loadingMore: !1 }), directives: { loadmore: { mounted(e, t) {
|
|
109
109
|
const o = /* @__PURE__ */ ((a, i) => {
|
|
110
110
|
let n = null;
|
|
111
111
|
return function(...c) {
|
|
@@ -161,35 +161,35 @@ const lt = S({ name: "cvAutocompleteBase", props: { ...bl.props }, data: () => (
|
|
|
161
161
|
const n = C("cv-icons"), c = C("el-autocomplete"), h = re("loadmore");
|
|
162
162
|
return M((d(), u("div", null, [b(c, O(e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[1] || (t[1] = (p) => a.localVal = p), "fetch-suggestions": i.querySearchAsync, onChange: i.handleChange, onSelect: i.handleSelect, teleported: !1, "popper-append-to-body": !1 }), { load: v(() => [...t[2] || (t[2] = [])]), default: v(({ item: p }) => [p.is_last_tip ? w("", !0) : D(e.$slots, "default", U(O({ key: 0 }, { item: p }))), p.is_last_tip ? (d(), u("div", { key: 1, class: "cv-autocomolete-nodata", onClick: t[0] || (t[0] = kl((...m) => i.getData && i.getData(...m), ["stop"])), disabled: "" }, [t[3] || (t[3] = L(" 没有更多数据了 ", -1)), b(n, { type: "ElIconRefreshLeft" }), t[4] || (t[4] = L(" 刷新按钮 ", -1))])) : w("", !0)]), _: 3 }, 16, ["modelValue", "fetch-suggestions", "onChange", "onSelect"])])), [[h, i.getMoreData]]);
|
|
163
163
|
}]]);
|
|
164
|
-
|
|
165
|
-
e.component(lt.name, lt);
|
|
166
|
-
}, nt.install = function(e) {
|
|
164
|
+
nt.install = function(e) {
|
|
167
165
|
e.component(nt.name, nt);
|
|
166
|
+
}, st.install = function(e) {
|
|
167
|
+
e.component(st.name, st);
|
|
168
168
|
};
|
|
169
|
-
const
|
|
169
|
+
const rt = S({ ...et, name: "cvFormBase", extends: et, provide() {
|
|
170
170
|
return { elForm: this };
|
|
171
|
-
}, props: { ...
|
|
171
|
+
}, props: { ...et.props, labelWidth: { type: [String, Number], default: "auto" }, labelPosition: { type: String, default: "right" } }, watch: { model() {
|
|
172
172
|
} }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
|
|
173
173
|
const n = C("el-form");
|
|
174
174
|
return d(), V(n, O({ class: "cv-form-base" }, { ...e.$props, ...e.$attrs }, xl(e.$attrs)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
|
|
175
|
-
}]]),
|
|
175
|
+
}]]), ct = S({ name: "cvFormInline", provide() {
|
|
176
176
|
return { elForm: this };
|
|
177
|
-
}, props: { ...
|
|
177
|
+
}, props: { ...et.props }, watch: {}, data: () => ({ form: {} }) }, [["render", function(e, t, o, l, a, i) {
|
|
178
178
|
const n = C("el-form");
|
|
179
179
|
return d(), V(n, O({ class: "cv-form-base" }, e.$props, xl(e.$attrs), { inline: !0 }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
|
|
180
180
|
}]]), Yn = { name: "cvFormItem", extends: Wa, props: { ...Wa.props }, data: () => ({ localLabelWidth: "", localError: "" }), created() {
|
|
181
|
-
}, methods: {} }, Xn = { key: 0, class: "cv-form-item__tip" },
|
|
181
|
+
}, methods: {} }, Xn = { key: 0, class: "cv-form-item__tip" }, dt = S(Yn, [["render", function(e, t, o, l, a, i) {
|
|
182
182
|
const n = C("el-form-item");
|
|
183
183
|
return d(), V(n, U(Y({ ...e.$props, ...e.$attrs })), { default: v(() => [D(e.$slots, "default"), e.$slots.tip ? (d(), u("div", Xn, [D(e.$slots, "tip")])) : w("", !0)]), _: 3 }, 16);
|
|
184
184
|
}]]);
|
|
185
|
-
|
|
186
|
-
e.component(st.name, st);
|
|
187
|
-
}, rt.install = function(e) {
|
|
185
|
+
rt.install = function(e) {
|
|
188
186
|
e.component(rt.name, rt);
|
|
189
187
|
}, ct.install = function(e) {
|
|
190
188
|
e.component(ct.name, ct);
|
|
189
|
+
}, dt.install = function(e) {
|
|
190
|
+
e.component(dt.name, dt);
|
|
191
191
|
};
|
|
192
|
-
const ie = { extends:
|
|
192
|
+
const ie = { extends: zo, emits: ["update:modelValue", "change"], props: { ...zo.props, modelValue: { type: [Number, String], default: "" }, placeholder: { type: [Number, String], default: "" }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue(e) {
|
|
193
193
|
this.localVal = e;
|
|
194
194
|
}, localVal() {
|
|
195
195
|
this.handleChange(), this.handleInput();
|
|
@@ -227,25 +227,25 @@ const ie = { extends: Bo, emits: ["update:modelValue", "change"], props: { ...Bo
|
|
|
227
227
|
} } }, qn = S({ name: "cvInputText", mixins: [ie], props: {}, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
228
228
|
const n = C("el-input");
|
|
229
229
|
return d(), V(n, O({ type: "text" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入", clearable: "" }), _e({ _: 2 }, [e.$slots.prepend ? { name: "prepend", fn: v(() => [D(e.$slots, "prepend")]), key: "0" } : void 0, e.$slots.prepend ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "1" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
230
|
-
}]]),
|
|
230
|
+
}]]), ht = S({ name: "cvInputMobile", mixins: [ie], components: {}, props: {}, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
231
231
|
const n = C("el-input");
|
|
232
232
|
return d(), V(n, O({ type: "number", oninput: "if(value.length>11)value=value.slice(0,11)" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入11位大陆手机号", clearable: "" }), _e({ prepend: v(() => [t[1] || (t[1] = L("+86", -1))]), _: 2 }, [e.$slots.append ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "0" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
233
|
-
}]]),
|
|
233
|
+
}]]), pt = S({ name: "cvInputEmail", mixins: [ie], components: {}, props: {}, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
234
234
|
const n = C("el-input");
|
|
235
235
|
return d(), V(n, O({ type: "text" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入邮箱", clearable: "" }), _e({ _: 2 }, [e.$slots.prepend ? { name: "prepend", fn: v(() => [D(e.$slots, "prepend")]), key: "0" } : void 0, e.$slots.append ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "1" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
236
|
-
}]]),
|
|
236
|
+
}]]), ut = S({ name: "cvInputPassword", mixins: [ie], components: {}, props: { showPassword: { type: Boolean, default: !1 } }, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
237
237
|
const n = C("el-input");
|
|
238
238
|
return d(), V(n, O({ type: "password" }, { disabled: e.disabled, showPassword: o.showPassword }, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入密码", clearable: "" }), _e({ _: 2 }, [e.$slots.prepend ? { name: "prepend", fn: v(() => [D(e.$slots, "prepend")]), key: "0" } : void 0, e.$slots.append ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "1" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
239
|
-
}]]),
|
|
239
|
+
}]]), mt = S({ name: "cvInputNumber", mixins: [ie], props: {}, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
240
240
|
const n = C("el-input");
|
|
241
241
|
return d(), V(n, O({ class: "cv-number", type: "number" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入整数", clearable: "" }), _e({ _: 2 }, [e.$slots.prepend ? { name: "prepend", fn: v(() => [D(e.$slots, "prepend")]), key: "0" } : void 0, e.$slots.append ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "1" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
242
|
-
}]]),
|
|
242
|
+
}]]), gt = S({ name: "cvInputIdcard", mixins: [ie], components: {}, props: {}, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
243
243
|
const n = C("el-input");
|
|
244
244
|
return d(), V(n, O({ type: "text", oninput: "if(value.length>18)value=value.slice(0,18)" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入身份证", clearable: "", maxlength: "18" }), _e({ _: 2 }, [e.$slots.prepend ? { name: "prepend", fn: v(() => [D(e.$slots, "prepend")]), key: "0" } : void 0, e.$slots.append ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "1" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
245
|
-
}]]),
|
|
245
|
+
}]]), ft = S({ name: "cvInputDigit", mixins: [ie], components: {}, props: {}, data: () => ({}), methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
246
246
|
const n = C("el-input");
|
|
247
247
|
return d(), V(n, O({ type: "number" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入", clearable: "" }), _e({ _: 2 }, [e.$slots.prepend ? { name: "prepend", fn: v(() => [D(e.$slots, "prepend")]), key: "0" } : void 0, e.$slots.append ? { name: "append", fn: v(() => [D(e.$slots, "append")]), key: "1" } : void 0]), 1040, ["modelValue", "onChange", "onInput", "placeholder"]);
|
|
248
|
-
}]]),
|
|
248
|
+
}]]), vt = S({ name: "cvTextarea", mixins: [ie], props: { rows: { type: [Number, String], default: 3 }, autosize: { type: [Boolean, Object], default: !1 } }, data: () => ({}), computed: { lastRow() {
|
|
249
249
|
return parseInt(this.rows);
|
|
250
250
|
} }, created() {
|
|
251
251
|
}, methods: { onSubmit() {
|
|
@@ -257,20 +257,18 @@ const ie = { extends: Bo, emits: ["update:modelValue", "change"], props: { ...Bo
|
|
|
257
257
|
return parseInt(this.rows);
|
|
258
258
|
} }, methods: { onSubmit() {
|
|
259
259
|
this.$emit("btnClick", this.localVal);
|
|
260
|
-
} } }, Gn = { class: "cv-textab-group" }, Zn = { class: "cv-textab-group__append" }, Qn = { class: "cv-textab_slot-wrap" },
|
|
260
|
+
} } }, Gn = { class: "cv-textab-group" }, Zn = { class: "cv-textab-group__append" }, Qn = { class: "cv-textab_slot-wrap" }, bt = S(Kn, [["render", function(e, t, o, l, a, i) {
|
|
261
261
|
const n = C("el-input"), c = C("el-button");
|
|
262
262
|
return d(), u("div", Gn, [b(n, O({ type: "textarea" }, { disabled: e.disabled, rows: i.lastRow, autosize: o.autosize }, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (h) => e.localVal = h), onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入内容", clearable: "" }), null, 16, ["modelValue", "onInput", "placeholder"]), r("div", Zn, [r("div", Qn, [D(e.$slots, "default", {}, () => [b(c, { class: "cv-textab_slotbtn", type: "primary", size: e.size, onClick: i.onSubmit }, { default: v(() => [o.btnIcon ? (d(), u("i", { key: 0, class: z(o.btnIcon), style: { "margin-right": "5px" } }, null, 2)) : w("", !0), L(" " + T(o.btnText), 1)]), _: 1 }, 8, ["size", "onClick"])])])])]);
|
|
263
|
-
}]]), Jn = { class: "cv-input-group" }, es = { class: "cv-input-group__append" },
|
|
263
|
+
}]]), Jn = { class: "cv-input-group" }, es = { class: "cv-input-group__append" }, yt = S({ name: "cvInputBtn", mixins: [ie], emits: ["btnClick"], components: {}, props: { btnText: { type: [Number, String], default: "确定" }, btnIcon: { type: [String], default: "" } }, data: () => ({}), methods: { onSubmit() {
|
|
264
264
|
this.$emit("btnClick", this.localVal);
|
|
265
265
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
266
266
|
const n = C("el-input"), c = C("el-button");
|
|
267
267
|
return d(), u("div", Jn, [b(n, O({ type: "text" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (h) => e.localVal = h), onChange: e.handleChange, onInput: e.handleInput, placeholder: e.placeholder ? e.placeholder : "请输入", clearable: "" }), null, 16, ["modelValue", "onChange", "onInput", "placeholder"]), r("div", es, [D(e.$slots, "default", {}, () => [b(c, { class: "cv-input-btn__slotbtn", type: "primary", size: e.size, onClick: i.onSubmit }, { default: v(() => [o.btnIcon ? (d(), u("i", { key: 0, class: z(o.btnIcon), style: { "margin-right": "5px" } }, null, 2)) : w("", !0), L(" " + T(o.btnText), 1)]), _: 1 }, 8, ["size", "onClick"])])])]);
|
|
268
|
-
}]]),
|
|
268
|
+
}]]), Wo = S({ data: () => ({ formData: {} }) }, [["render", function(e, t, o, l, a, i) {
|
|
269
269
|
return d(), u("div");
|
|
270
270
|
}]]);
|
|
271
|
-
|
|
272
|
-
e.component(dt.name, dt);
|
|
273
|
-
}, ht.install = function(e) {
|
|
271
|
+
ht.install = function(e) {
|
|
274
272
|
e.component(ht.name, ht);
|
|
275
273
|
}, pt.install = function(e) {
|
|
276
274
|
e.component(pt.name, pt);
|
|
@@ -286,10 +284,12 @@ dt.install = function(e) {
|
|
|
286
284
|
e.component(vt.name, vt);
|
|
287
285
|
}, bt.install = function(e) {
|
|
288
286
|
e.component(bt.name, bt);
|
|
289
|
-
},
|
|
290
|
-
e.component(
|
|
287
|
+
}, yt.install = function(e) {
|
|
288
|
+
e.component(yt.name, yt);
|
|
289
|
+
}, Wo.install = function(e) {
|
|
290
|
+
e.component(Wo.name, Wo);
|
|
291
291
|
};
|
|
292
|
-
const
|
|
292
|
+
const Ct = S({ name: "cvInputCounter", extends: Jl, props: {}, watch: { modelValue() {
|
|
293
293
|
this.localVal = this.modelValue;
|
|
294
294
|
} }, data: () => ({ localVal: 0 }), created() {
|
|
295
295
|
}, methods: { handleChange(e) {
|
|
@@ -298,19 +298,19 @@ const yt = S({ name: "cvInputCounter", extends: Jl, props: {}, watch: { modelVal
|
|
|
298
298
|
const n = C("el-input-number");
|
|
299
299
|
return d(), V(n, O(e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.localVal = c), onChange: i.handleChange, step: e.step }), null, 16, ["modelValue", "onChange", "step"]);
|
|
300
300
|
}]]);
|
|
301
|
-
|
|
302
|
-
e.component(
|
|
301
|
+
Ct.install = function(e) {
|
|
302
|
+
e.component(Ct.name, Ct);
|
|
303
303
|
};
|
|
304
|
-
const ts = { class: "cv-show-text" }, os = ["innerHTML"],
|
|
304
|
+
const ts = { class: "cv-show-text" }, os = ["innerHTML"], wt = S({ name: "cvShowText", mixins: [], components: {}, props: { text: { type: [Number, String, Object], default: "" } }, data: () => ({}), created() {
|
|
305
305
|
}, methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
306
306
|
return d(), u("div", ts, [o.text ? (d(), u("div", { key: 0, innerHTML: o.text }, null, 8, os)) : w("", !0), o.text ? w("", !0) : D(e.$slots, "default", { key: 1 })]);
|
|
307
|
-
}]]), as = { class: "cv-show-image" },
|
|
307
|
+
}]]), as = { class: "cv-show-image" }, kt = S({ name: "cvShowImage", mixins: [], components: {}, props: { url: { type: [String, Array, Object], default: "" }, width: { type: [String], default: "100px" }, height: { type: [String], default: "100px" } }, data: () => ({ localUrl: "" }), watch: { url: { handler() {
|
|
308
308
|
this.localUrl = typeof this.url == "string" ? [this.url] : this.url;
|
|
309
309
|
}, immediate: !0, deep: !0 } }, created() {
|
|
310
310
|
}, methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
311
311
|
const n = C("el-image");
|
|
312
312
|
return d(), u("div", as, [(d(!0), u(F, null, E(a.localUrl, (c, h) => (d(), V(n, { style: H("width:" + o.width + "; height:" + o.height + "; margin-right:10px"), key: h, src: c, "preview-src-list": a.localUrl }, null, 8, ["style", "src", "preview-src-list"]))), 128))]);
|
|
313
|
-
}]]),
|
|
313
|
+
}]]), xt = S({ name: "cvShowTip", props: { borderColor: { type: [String], default: "#50bfff" }, bgColor: { type: [String], default: "#ecf8ff" } }, data: () => ({ backgroundColor: "#ecf8ff", borderLeft: "5px solid #50bfff" }), created() {
|
|
314
314
|
this.borderLeft = `5px solid ${this.borderColor}`, this.backgroundColor = `${this.bgColor}`;
|
|
315
315
|
}, methods: {} }, [["render", function(e, t, o, l, a, i) {
|
|
316
316
|
return d(), u("div", { class: "cv-show-tip", style: H({ backgroundColor: this.backgroundColor, borderLeft: this.borderLeft }) }, [D(e.$slots, "default")], 4);
|
|
@@ -343,26 +343,26 @@ const ts = { class: "cv-show-text" }, os = ["innerHTML"], Ct = S({ name: "cvShow
|
|
|
343
343
|
return this.type === "image" && this.thumbSuffix && (t += this.thumbSuffix), { type: this.type, src: e, thumb: t };
|
|
344
344
|
}, getObjectSource(e) {
|
|
345
345
|
return e.type = e.thumb ? "image" : this.type, e.thumb = e.thumb || e.src, e;
|
|
346
|
-
} } }, hs = { key: 0, class: "cv-gallery" }, ps = { class: "el-upload-list el-upload-list--picture-card" }, us = ["src"], ms = { class: "el-upload-list__item-actions" }, gs = ["onClick"],
|
|
346
|
+
} } }, hs = { key: 0, class: "cv-gallery" }, ps = { class: "el-upload-list el-upload-list--picture-card" }, us = ["src"], ms = { class: "el-upload-list__item-actions" }, gs = ["onClick"], Yo = S(ds, [["render", function(e, t, o, l, a, i) {
|
|
347
347
|
const n = C("cv-icons"), c = C("GalleryDialog");
|
|
348
348
|
return o.source ? (d(), u("div", hs, [r("div", ps, [(d(!0), u(F, null, E(i.computedSources, (h, p) => (d(), u("li", { key: p, class: "el-upload-list__item" }, [r("div", { style: H(i.computedStyle), class: "cv-gallery-iframe embed-responsive embed-responsive-16by9" }, [r("iframe", { src: h.thumb, allowfullscreen: "true", border: "0", frameborder: "no", framespacing: "0", scrolling: "no" }, null, 8, us)], 4), r("span", ms, [r("span", { onClick: (m) => i.handlePreview(p, h) }, [b(n, { type: "ElIconVideoPlay", size: "20" })], 8, gs), D(e.$slots, "action", O({ ref_for: !0 }, { source: h, index: p }))])]))), 128))]), b(c, { carouselAttrs: o.carouselAttrs, sliceSingle: o.sliceSingle, sources: i.computedSources, title: o.title, type: o.type, ref: "dialog" }, null, 8, ["carouselAttrs", "sliceSingle", "sources", "title", "type"])])) : w("", !0);
|
|
349
349
|
}]]);
|
|
350
|
-
|
|
351
|
-
e.component(Ct.name, Ct);
|
|
352
|
-
}, wt.install = function(e) {
|
|
350
|
+
wt.install = function(e) {
|
|
353
351
|
e.component(wt.name, wt);
|
|
354
352
|
}, kt.install = function(e) {
|
|
355
353
|
e.component(kt.name, kt);
|
|
356
|
-
},
|
|
357
|
-
e.component(
|
|
354
|
+
}, xt.install = function(e) {
|
|
355
|
+
e.component(xt.name, xt);
|
|
356
|
+
}, Yo.install = function(e) {
|
|
357
|
+
e.component(Yo.name, Yo);
|
|
358
358
|
};
|
|
359
|
-
const
|
|
359
|
+
const St = S({ name: "cvRadioOptBase" }, [["render", function(e, t, o, l, a, i) {
|
|
360
360
|
const n = C("el-radio");
|
|
361
361
|
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
|
|
362
|
-
}]]),
|
|
362
|
+
}]]), Vt = S({ name: "cvRadioOptBtn" }, [["render", function(e, t, o, l, a, i) {
|
|
363
363
|
const n = C("el-radio-button");
|
|
364
364
|
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
|
|
365
|
-
}]]),
|
|
365
|
+
}]]), _t = S({ name: "cvRadioGroup", props: { ...en.props, modelValue: { default: "" }, type: { type: [String], default: "base" }, dataLists: { type: Array, default: () => [] }, dataField: { type: [Object], default: () => ({}) }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue(e) {
|
|
366
366
|
this.localVal = e;
|
|
367
367
|
}, localVal() {
|
|
368
368
|
this.handleChange();
|
|
@@ -390,17 +390,17 @@ const xt = S({ name: "cvRadioOptBase" }, [["render", function(e, t, o, l, a, i)
|
|
|
390
390
|
const n = C("el-radio"), c = C("el-radio-button"), h = C("el-radio-group");
|
|
391
391
|
return d(), V(h, { class: "cv-radio-group", modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (p) => a.localVal = p) }, { default: v(() => [D(e.$slots, "default", {}, () => [o.type == "base" ? (d(!0), u(F, { key: 0 }, E(a.localOpt, (p, m) => (d(), V(n, { label: p.label, value: p.value, key: m, disabled: o.disabled || p.disabled }, { default: v(() => [L(T(p.label), 1)]), _: 2 }, 1032, ["label", "value", "disabled"]))), 128)) : w("", !0), o.type == "button" ? (d(!0), u(F, { key: 1 }, E(a.localOpt, (p, m) => (d(), V(c, { label: p.label, value: p.value, key: m, disabled: o.disabled || p.disabled }, { default: v(() => [L(T(p.label), 1)]), _: 2 }, 1032, ["label", "value", "disabled"]))), 128)) : w("", !0)])]), _: 3 }, 8, ["modelValue"]);
|
|
392
392
|
}]]);
|
|
393
|
-
|
|
394
|
-
e.component(xt.name, xt);
|
|
395
|
-
}, St.install = function(e) {
|
|
393
|
+
St.install = function(e) {
|
|
396
394
|
e.component(St.name, St);
|
|
397
395
|
}, Vt.install = function(e) {
|
|
398
396
|
e.component(Vt.name, Vt);
|
|
397
|
+
}, _t.install = function(e) {
|
|
398
|
+
e.component(_t.name, _t);
|
|
399
399
|
};
|
|
400
|
-
const
|
|
400
|
+
const It = S({ name: "cvCheckboxOptBase", extends: tn }, [["render", function(e, t, o, l, a, i) {
|
|
401
401
|
const n = C("el-checkbox");
|
|
402
402
|
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
|
|
403
|
-
}]]),
|
|
403
|
+
}]]), Tt = S({ name: "cvCheckboxOptBtn", extends: on, props: {} }, [["render", function(e, t, o, l, a, i) {
|
|
404
404
|
const n = C("el-checkbox-button");
|
|
405
405
|
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
|
|
406
406
|
}]]), Il = { props: { ...an.props, modelValue: { type: [Array], default: () => [] }, dataLists: { type: Array, default: () => [] }, dataField: { type: [Object], default: () => ({}) }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue() {
|
|
@@ -429,7 +429,7 @@ const _t = S({ name: "cvCheckboxOptBase", extends: tn }, [["render", function(e,
|
|
|
429
429
|
}
|
|
430
430
|
this._parseLocalOptDiy();
|
|
431
431
|
}, _parseLocalOptDiy() {
|
|
432
|
-
} } }, fs = { class: "cv-checkbox-all" },
|
|
432
|
+
} } }, fs = { class: "cv-checkbox-all" }, Lt = S({ name: "cvCheckboxAll", mixins: [Il], components: {}, data: () => ({ checkAll: !1, isIndeterminate: !0, localOptAll: [] }), methods: { handleCheckAllChange(e) {
|
|
433
433
|
this.localVal = e ? this.localOptAll : [], this.isIndeterminate = !1, this.handleChange();
|
|
434
434
|
}, handleCheckedCitiesChange(e) {
|
|
435
435
|
let t = e.length;
|
|
@@ -441,7 +441,7 @@ const _t = S({ name: "cvCheckboxOptBase", extends: tn }, [["render", function(e,
|
|
|
441
441
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
442
442
|
const n = C("el-checkbox"), c = C("el-checkbox-group");
|
|
443
443
|
return d(), u("div", fs, [b(n, { indeterminate: a.isIndeterminate, modelValue: a.checkAll, "onUpdate:modelValue": t[0] || (t[0] = (h) => a.checkAll = h), onChange: i.handleCheckAllChange }, { default: v(() => [...t[2] || (t[2] = [L("全选", -1)])]), _: 1 }, 8, ["indeterminate", "modelValue", "onChange"]), t[3] || (t[3] = r("div", { style: { margin: "15px 0" } }, null, -1)), b(c, { modelValue: e.localVal, "onUpdate:modelValue": t[1] || (t[1] = (h) => e.localVal = h), onChange: i.handleCheckedCitiesChange }, { default: v(() => [D(e.$slots, "default", {}, () => [(d(!0), u(F, null, E(e.localOpt, (h, p) => (d(), V(n, { label: h.label, value: h.value, key: p, onChange: e.handleChange, disabled: e.disabled || h.disabled }, { default: v(() => [L(T(h.label), 1)]), _: 2 }, 1032, ["label", "value", "onChange", "disabled"]))), 128))])]), _: 3 }, 8, ["modelValue", "onChange"])]);
|
|
444
|
-
}]]),
|
|
444
|
+
}]]), Dt = S({ name: "cvCheckboxGroup", mixins: [Il], components: {}, props: { type: { type: [String], default: "base" } }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
|
|
445
445
|
const n = C("el-checkbox"), c = C("el-checkbox-button"), h = C("el-checkbox-group");
|
|
446
446
|
return d(), V(h, O(e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (p) => e.localVal = p) }), { default: v(() => [D(e.$slots, "default", {}, () => [o.type == "base" ? (d(!0), u(F, { key: 0 }, E(e.localOpt, (p, m) => (d(), V(n, { label: p.label, value: p.value, key: m, onChange: e.handleChange, disabled: e.disabled || p.disabled }, { default: v(() => [L(T(p.label), 1)]), _: 2 }, 1032, ["label", "value", "onChange", "disabled"]))), 128)) : w("", !0), o.type == "button" ? (d(!0), u(F, { key: 1 }, E(e.localOpt, (p, m) => (d(), V(c, { label: p.label, value: p.value, key: m, onChange: e.handleChange, disabled: e.disabled || p.disabled }, { default: v(() => [L(T(p.label), 1)]), _: 2 }, 1032, ["label", "value", "onChange", "disabled"]))), 128)) : w("", !0)])]), _: 3 }, 16, ["modelValue"]);
|
|
447
447
|
}]]);
|
|
@@ -458,10 +458,10 @@ function Tl(e, t, o) {
|
|
|
458
458
|
function ce() {
|
|
459
459
|
_ = Date.now(), i.apply(ee, j);
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function He() {
|
|
462
462
|
c = void 0;
|
|
463
463
|
}
|
|
464
|
-
y || (g || !x || c || ce(), I(), x === void 0 && te > a ? g ? (_ = Date.now(), m || (c = setTimeout(x ?
|
|
464
|
+
y || (g || !x || c || ce(), I(), x === void 0 && te > a ? g ? (_ = Date.now(), m || (c = setTimeout(x ? He : ce, a))) : ce() : m !== !0 && (c = setTimeout(x ? He : ce, x === void 0 ? a - te : a)));
|
|
465
465
|
}
|
|
466
466
|
return B.cancel = function(P) {
|
|
467
467
|
var j = (P || {}).upcomingOnly, W = j !== void 0 && j;
|
|
@@ -469,7 +469,7 @@ function Tl(e, t, o) {
|
|
|
469
469
|
}, B;
|
|
470
470
|
}(e, t, { debounceMode: (l !== void 0 && l) !== !1 });
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function $t(e, t = !1, o = !0) {
|
|
473
473
|
return new Promise((l, a) => {
|
|
474
474
|
const i = document.createElement("script");
|
|
475
475
|
e = e.replace(/([^:]\/)\/+/g, "$1"), i.id = e, i.type = "text/javascript", i.src = t ? e + "?t=" + (/* @__PURE__ */ new Date()).getTime() : e, document.getElementById(e) && o ? l() : (document.body.appendChild(i), i.onload = () => {
|
|
@@ -498,8 +498,8 @@ function bs(e) {
|
|
|
498
498
|
function ke(e, ...t) {
|
|
499
499
|
return t.reduce((o, l) => Object.keys(l).reduce((a, i) => {
|
|
500
500
|
const n = l[i];
|
|
501
|
-
return
|
|
502
|
-
if (
|
|
501
|
+
return Ao(n) ? a[i] = ke(a[i] ? a[i] : {}, n) : Dl(n) ? a[i] = n.map((c, h) => {
|
|
502
|
+
if (Ao(c)) {
|
|
503
503
|
const p = a[i] ? a[i] : [];
|
|
504
504
|
return ke(p[h] ? p[h] : {}, c);
|
|
505
505
|
}
|
|
@@ -511,14 +511,14 @@ function Ll(e, t) {
|
|
|
511
511
|
const { [t[0]]: o, ...l } = e;
|
|
512
512
|
return Object.keys(e).reduce((a, i) => (t.includes(i) || (a[i] = e[i]), a), {});
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Ao(e) {
|
|
515
515
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
516
516
|
}
|
|
517
517
|
function Dl(e) {
|
|
518
518
|
return typeof Array.isArray == "function" ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
|
|
519
519
|
}
|
|
520
520
|
function $e(e) {
|
|
521
|
-
return Dl(e) ? e.length === 0 :
|
|
521
|
+
return Dl(e) ? e.length === 0 : Ao(e) ? Object.keys(e).length === 0 : e === "" || e == null;
|
|
522
522
|
}
|
|
523
523
|
function Ee(e, t) {
|
|
524
524
|
return $e(e) ? t : e;
|
|
@@ -530,14 +530,14 @@ function ys(e) {
|
|
|
530
530
|
function Se(e) {
|
|
531
531
|
return e == null ? "" : String(e);
|
|
532
532
|
}
|
|
533
|
-
|
|
534
|
-
e.component(_t.name, _t);
|
|
535
|
-
}, It.install = function(e) {
|
|
533
|
+
It.install = function(e) {
|
|
536
534
|
e.component(It.name, It);
|
|
537
|
-
}, Lt.install = function(e) {
|
|
538
|
-
e.component(Lt.name, Lt);
|
|
539
535
|
}, Tt.install = function(e) {
|
|
540
536
|
e.component(Tt.name, Tt);
|
|
537
|
+
}, Dt.install = function(e) {
|
|
538
|
+
e.component(Dt.name, Dt);
|
|
539
|
+
}, Lt.install = function(e) {
|
|
540
|
+
e.component(Lt.name, Lt);
|
|
541
541
|
};
|
|
542
542
|
const $l = (() => {
|
|
543
543
|
const e = { svg: ["image/svg+xml", "image/svg"], jpg: ["image/jpeg", "image/jpg"], jpeg: ["image/jpeg"], png: ["image/png"], gif: ["image/gif"], webp: ["image/webp"], bmp: ["image/bmp", "image/x-bmp", "image/x-ms-bmp"], ico: ["image/x-icon", "image/vnd.microsoft.icon"], tiff: ["image/tiff", "image/tif", "image/x-tiff"], apng: ["image/apng"], avif: ["image/avif"], heic: ["image/heic"], pdf: ["application/pdf"], txt: ["text/plain"], csv: ["text/csv"], json: ["application/json"], xml: ["application/xml"], doc: ["application/msword"], docx: ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"], xls: ["application/vnd.ms-excel"], xlsx: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"], ppt: ["application/vnd.ms-powerpoint"], pptx: ["application/vnd.openxmlformats-officedocument.presentationml.presentation"], zip: ["application/zip"], rar: ["application/x-rar-compressed"], "7z": ["application/x-7z-compressed"], mp3: ["audio/mpeg"], mp4: ["video/mp4"], mov: ["video/quicktime"], avi: ["video/x-msvideo"], wav: ["audio/wav"] }, t = {}, o = {};
|
|
@@ -556,7 +556,7 @@ const $l = (() => {
|
|
|
556
556
|
}, districtCode(e) {
|
|
557
557
|
this.initDistrict();
|
|
558
558
|
} }, data: () => ({ provinceCdnList: {}, cityCdnList: {}, districtCdnList: {}, isCdnLoading: !0, provinceList: [], cityList: [], districtList: [], local1_code: "", local1_name: "", local2_code: "", local2_name: "", local3_code: "", local3_name: "", local1_flag: !1, local2_flag: !1, local3_flag: !1, hideMunicipality: !1, municipalities: ["110000", "120000", "310000", "500000", "北京市", "天津市", "上海市", "重庆市"] }), async mounted() {
|
|
559
|
-
await
|
|
559
|
+
await $t(this.CDN_URL_UI + "/dict/geo/province-kv-window.js"), await $t(this.CDN_URL_UI + "/dict/geo/city-kv-window.js"), await $t(this.CDN_URL_UI + "/dict/geo/district-kv-window.js"), await this.initLoad();
|
|
560
560
|
}, methods: { initLoad() {
|
|
561
561
|
setTimeout(() => {
|
|
562
562
|
this.provinceCdnList = window.cdn__DictAreaProvince, this.cityCdnList = window.cdn__DictAreaCity, this.districtCdnList = window.cdn__DictAreaDistrict, this.local1_flag = !1, this.isCdnLoading = !1, this.getProvinces(), this.initProvince();
|
|
@@ -600,7 +600,7 @@ const $l = (() => {
|
|
|
600
600
|
this.local3_code = e, this.local3_name = this.districtList.find((t) => t.districtCode === e)?.districtName, this.handleChoose();
|
|
601
601
|
}, handleChoose() {
|
|
602
602
|
this.$emit("update:province", this.local1_name), this.$emit("update:provinceCode", this.local1_code), this.$emit("update:city", this.local2_name), this.$emit("update:cityCode", this.local2_code), this.$emit("update:district", this.local3_name), this.$emit("update:districtCode", this.local3_code);
|
|
603
|
-
} } }, ws = { class: "cv-geo-city" }, ks = { key: 0 }, xs = { key: 1 },
|
|
603
|
+
} } }, ws = { class: "cv-geo-city" }, ks = { key: 0 }, xs = { key: 1 }, Ot = S(Cs, [["render", function(e, t, o, l, a, i) {
|
|
604
604
|
const n = C("el-option"), c = C("el-select"), h = re("loading");
|
|
605
605
|
return M((d(), u("div", ws, [r("div", null, [b(c, { modelValue: a.local1_code, "onUpdate:modelValue": t[0] || (t[0] = (p) => a.local1_code = p), onFocus: i.getProvinces, onChange: i.changeProvince, placeholder: "省", filterable: "" }, { default: v(() => [(d(!0), u(F, null, E(a.provinceList, (p, m) => (d(), V(n, { key: p.provinceCode, label: p.provinceName, value: p.provinceCode }, { default: v(() => [L(T(p.provinceName), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onFocus", "onChange"])]), o.cityHide ? w("", !0) : (d(), u("div", ks, [b(c, { modelValue: a.local2_code, "onUpdate:modelValue": t[1] || (t[1] = (p) => a.local2_code = p), onFocus: i.getCities, onChange: i.changeCity, placeholder: "市", filterable: "" }, { default: v(() => [(d(!0), u(F, null, E(a.cityList, (p, m) => (d(), V(n, { key: p.cityCode, label: p.cityName, value: p.cityCode }, { default: v(() => [L(T(p.cityName), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onFocus", "onChange"])])), o.cityHide || o.districtHide ? w("", !0) : (d(), u("div", xs, [b(c, { modelValue: a.local3_code, "onUpdate:modelValue": t[2] || (t[2] = (p) => a.local3_code = p), onFocus: i.getDistrict, onChange: i.changeDistrict, placeholder: "区/县", filterable: "" }, { default: v(() => [(d(!0), u(F, null, E(a.districtList, (p, m) => (d(), V(n, { key: p.districtCode, label: p.districtName, value: p.districtCode }, { default: v(() => [L(T(p.districtName), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onFocus", "onChange"])]))])), [[h, a.isCdnLoading]]);
|
|
606
606
|
}]]), Ol = { computed: { componentName() {
|
|
@@ -608,7 +608,7 @@ const $l = (() => {
|
|
|
608
608
|
} }, methods: { _mergeAttrs(e) {
|
|
609
609
|
const t = this.$cvUiParams || {}, o = e && t[e] || {}, l = t[this.componentName] || {}, a = Object.assign({}, o, l);
|
|
610
610
|
return Object.assign({}, a, this.$attrs);
|
|
611
|
-
} } }, Ss = { class: "cv-geo-map__wrap" }, Vs = { class: "cv-geo-map__box" }, _s = { style: { width: "100%", height: "510px" } }, Is = ["src"], Ts = { class: "cv-geo-map__info" }, Ls = { key: 0, class: "cv-geo-map__address" }, Ds = { key: 1, class: "cv-geo-map__jwd" },
|
|
611
|
+
} } }, Ss = { class: "cv-geo-map__wrap" }, Vs = { class: "cv-geo-map__box" }, _s = { style: { width: "100%", height: "510px" } }, Is = ["src"], Ts = { class: "cv-geo-map__info" }, Ls = { key: 0, class: "cv-geo-map__address" }, Ds = { key: 1, class: "cv-geo-map__jwd" }, Ft = S({ name: "cvGeoMap", mixins: [Ol], emits: ["update:address", "update:latitude", "update:longitude", "update:name", "update:city"], props: { title: { type: [String], default: "选择经纬度地点" }, mapKey: { type: [String], default: "" }, mapSecret: { type: [String], default: "" }, mapType: { type: [String], default: "qq" }, address: { type: [String] }, name: { type: [String] }, city: { type: [String] }, latitude: { type: [Number, String] }, longitude: { type: [Number, String] } }, watch: { address(e) {
|
|
612
612
|
this.localAddress = e;
|
|
613
613
|
}, latitude(e) {
|
|
614
614
|
this.localLatitude = e;
|
|
@@ -655,12 +655,12 @@ const $l = (() => {
|
|
|
655
655
|
const n = C("el-input"), c = C("el-tooltip"), h = C("el-button"), p = C("el-scrollbar"), m = C("el-dialog");
|
|
656
656
|
return d(), u(F, null, [r("div", Ss, [r("div", Vs, [b(c, { class: "item", effect: "dark", content: "请点击查找位置选择位置", placement: "bottom" }, { default: v(() => [b(n, { modelValue: a.localAddress, "onUpdate:modelValue": t[0] || (t[0] = (f) => a.localAddress = f) }, null, 8, ["modelValue"])]), _: 1 }), b(h, { type: "primary", icon: "ElIconSearch", onClick: i.handleMapOpen }, { default: v(() => [...t[5] || (t[5] = [L("请查找位置", -1)])]), _: 1 }, 8, ["onClick"])])]), b(m, { modelValue: a.localMapShow, "onUpdate:modelValue": t[4] || (t[4] = (f) => a.localMapShow = f), title: o.title, width: "520", "before-close": i.handleMapClose }, { footer: v(() => [r("div", Ts, [a.localAddress ? (d(), u("div", Ls, [t[6] || (t[6] = r("span", { class: "cv-geo-map__label" }, "已选:", -1)), b(c, { class: "item", effect: "dark", content: "点击复制", placement: "bottom" }, { default: v(() => [r("span", { class: "cv-geo-map__value", onClick: t[1] || (t[1] = (f) => i.handleCopy(a.localAddress)) }, T(a.localAddress), 1)]), _: 1 })])) : w("", !0), a.localAddress ? (d(), u("div", Ds, [t[7] || (t[7] = r("span", { class: "cv-geo-map__label" }, "经度:", -1)), b(c, { class: "item", effect: "dark", content: "点击复制", placement: "bottom" }, { default: v(() => [r("span", { class: "cv-geo-map__value", onClick: t[2] || (t[2] = (f) => i.handleCopy(a.localLongitude)) }, T(a.localLongitude), 1)]), _: 1 }), t[8] || (t[8] = r("span", { class: "cv-geo-map__label" }, "纬度:", -1)), b(c, { class: "item", effect: "dark", content: "点击复制", placement: "bottom" }, { default: v(() => [r("span", { class: "cv-geo-map__value", onClick: t[3] || (t[3] = (f) => i.handleCopy(a.localLatitude)) }, T(a.localLatitude), 1)]), _: 1 })])) : w("", !0)]), r("div", null, [b(h, { onClick: i.handleMapClose }, { default: v(() => [...t[9] || (t[9] = [L("取消", -1)])]), _: 1 }, 8, ["onClick"]), b(h, { type: "primary", onClick: i.handleConfirm, disabled: !a.localAddress }, { default: v(() => [...t[10] || (t[10] = [L("确认选择", -1)])]), _: 1 }, 8, ["onClick", "disabled"])])]), default: v(() => [r("div", _s, [b(p, { style: { height: "510px" } }, { default: v(() => [r("iframe", { id: "mapPage", width: "100%", height: "100%", style: { height: "500px" }, frameborder: "0", src: i.mapSrc }, null, 8, Is)]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title", "before-close"])], 64);
|
|
657
657
|
}]]);
|
|
658
|
-
|
|
659
|
-
e.component($t.name, $t);
|
|
660
|
-
}, Ot.install = function(e) {
|
|
658
|
+
Ot.install = function(e) {
|
|
661
659
|
e.component(Ot.name, Ot);
|
|
660
|
+
}, Ft.install = function(e) {
|
|
661
|
+
e.component(Ft.name, Ft);
|
|
662
662
|
};
|
|
663
|
-
const
|
|
663
|
+
const Mt = { ...Ya, extends: Ya, name: "cvSelectOpt" }, Et = S({ name: "cvSelectBase", emits: ["onChoose", "change", "update:modelValue"], props: { ...yl.props, modelValue: { type: [String, Array, Number], default: () => "" }, dataLists: { type: [Array], default: () => [] }, dataField: { type: [Object], default: () => ({}) }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" } }, watch: { modelValue(e) {
|
|
664
664
|
this.localVal = e;
|
|
665
665
|
}, dataLists: { handler() {
|
|
666
666
|
this._parseLocalOpt();
|
|
@@ -688,7 +688,7 @@ const Ft = { ...Ya, extends: Ya, name: "cvSelectOpt" }, Mt = S({ name: "cvSelect
|
|
|
688
688
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
689
689
|
const n = C("el-option"), c = C("el-select");
|
|
690
690
|
return d(), V(c, O({ class: "cv-select-base" }, e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (h) => a.localVal = h), size: e.size, filterable: "", clearable: "" }), { default: v(() => [D(e.$slots, "default", {}, () => [(d(!0), u(F, null, E(a.localOpt, (h, p) => (d(), V(n, { onClick: (m) => i.handleChoose(h, p), disabled: h.disabled, label: h.label, value: h.value, key: p }, null, 8, ["onClick", "disabled", "label", "value"]))), 128))])]), _: 3 }, 16, ["modelValue", "size"]);
|
|
691
|
-
}]]),
|
|
691
|
+
}]]), Nt = S({ name: "cvSelectTree", emits: ["update:modelValue", "change"], props: { ...yl.props, modelValue: { type: [String, Array, Number], default: () => "" }, dataLists: { type: [Array], default: () => [] }, dataField: { type: [Object], default: () => ({ value: "id", label: "title", children: "children" }) }, clearable: { type: Boolean, default: !0 }, accordion: { type: Boolean, default: !1 }, defaultExpandAll: { type: Boolean, default: !0 }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" }, showAllLevels: { type: Boolean, default: !0 }, showCheckbox: { type: Boolean, default: !1 }, filterable: { type: Boolean, default: !0 }, emitPath: { type: Boolean, default: !0 }, multiple: { type: Boolean, default: !1 }, refID: { type: [String], required: !1, default: () => "cvSelectTree-" + +/* @__PURE__ */ new Date() + (Math.random() / 1e4).toFixed(0) } }, watch: { modelValue() {
|
|
692
692
|
this.localVal = this.modelValue, this.initHandle();
|
|
693
693
|
}, dataLists: { handler() {
|
|
694
694
|
this._parseLocalOpt();
|
|
@@ -731,12 +731,12 @@ const Ft = { ...Ya, extends: Ya, name: "cvSelectOpt" }, Mt = S({ name: "cvSelect
|
|
|
731
731
|
const n = C("el-tree"), c = C("el-option"), h = C("el-select");
|
|
732
732
|
return d(), V(h, O(e.$props, { ref: o.refID, "popper-class": "cv-select-tree", modelValue: a.localTitle, onClear: i.clearHandle }), { default: v(() => [b(c, { value: a.localTitle, label: a.localTitle, class: "options" }, { default: v(() => [b(n, { "highlight-current": "", id: o.refID + "tree", ref: o.refID + "tree", accordion: o.accordion, showCheckbox: o.showCheckbox, data: a.localOpt, props: o.dataField, "node-key": o.dataField.value, onNodeClick: i.handleNodeClick, "default-expand-all": o.defaultExpandAll }, null, 8, ["id", "accordion", "showCheckbox", "data", "props", "node-key", "onNodeClick", "default-expand-all"])]), _: 1 }, 8, ["value", "label"])]), _: 1 }, 16, ["modelValue", "onClear"]);
|
|
733
733
|
}]]);
|
|
734
|
-
|
|
735
|
-
e.component(Ft.name, Ft);
|
|
736
|
-
}, Mt.install = function(e) {
|
|
734
|
+
Mt.install = function(e) {
|
|
737
735
|
e.component(Mt.name, Mt);
|
|
738
736
|
}, Et.install = function(e) {
|
|
739
737
|
e.component(Et.name, Et);
|
|
738
|
+
}, Nt.install = function(e) {
|
|
739
|
+
e.component(Nt.name, Nt);
|
|
740
740
|
};
|
|
741
741
|
const $s = { name: "cvCascaderBase", components: {}, props: { ...ln.props, modelValue: { type: [String, Array, Number], default() {
|
|
742
742
|
} }, dataLists: { type: [Array], default: () => [] }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" }, showAllLevels: { type: Boolean, default: !0 }, filterable: { type: Boolean, default: !0 }, dataField: { type: [Object], default: () => ({}) }, emitPath: { type: Boolean, default: !0 }, multiple: { type: Boolean, default: !1 } }, watch: { modelValue() {
|
|
@@ -762,12 +762,12 @@ const $s = { name: "cvCascaderBase", components: {}, props: { ...ln.props, model
|
|
|
762
762
|
}), a[i].children && l(a[i].children);
|
|
763
763
|
})(e), this.localOpt = e;
|
|
764
764
|
}, getCheckedNodes() {
|
|
765
|
-
} } }, Os = { class: "cv-cascader-base block" },
|
|
765
|
+
} } }, Os = { class: "cv-cascader-base block" }, Bt = S($s, [["render", function(e, t, o, l, a, i) {
|
|
766
766
|
const n = C("el-cascader");
|
|
767
767
|
return d(), u("div", Os, [b(n, O(e.$props, { props: i.props2, modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.localVal = c), options: a.localOpt, onChange: i.handleChange, onGetCheckedNodes: i.getCheckedNodes }), null, 16, ["props", "modelValue", "options", "onChange", "onGetCheckedNodes"])]);
|
|
768
768
|
}]]);
|
|
769
|
-
|
|
770
|
-
e.component(
|
|
769
|
+
Bt.install = function(e) {
|
|
770
|
+
e.component(Bt.name, Bt);
|
|
771
771
|
};
|
|
772
772
|
const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, Object, Date], default: null } }, watch: { modelValue: { handler() {
|
|
773
773
|
if (this.valueFormat != "timestamp") this.localVal = this.modelValue;
|
|
@@ -788,16 +788,16 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
788
788
|
this.$emit("update:modelValue", e);
|
|
789
789
|
} else isNaN(this.localVal) || this.localVal.toString().length != 13 || (e = parseInt(this.localVal / 1e3), this.modelValue != e && this.$emit("update:modelValue", e));
|
|
790
790
|
} }, data: () => ({ localVal: "" }), created() {
|
|
791
|
-
}, methods: {} },
|
|
791
|
+
}, methods: {} }, zt = S({ name: "cvTimeBase", mixins: [Fl], props: { format: { type: String, default: "HH:mm:ss" }, valueFormat: { type: String, default: "HH:mm:ss" }, placeholder: { type: [String, Number], default: "选择时间" } } }, [["render", function(e, t, o, l, a, i) {
|
|
792
792
|
const n = C("el-time-picker");
|
|
793
793
|
return d(), V(n, O({ class: "cv-timePicker-base" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), format: o.format, "picker-options": {} }), null, 16, ["modelValue", "format"]);
|
|
794
|
-
}]]),
|
|
794
|
+
}]]), Ht = S({ name: "cvTimeRange", mixins: [Fl], props: { format: { type: String, default: "HH:mm:ss" }, valueFormat: { type: String, default: "HH:mm:ss" }, startPlaceholder: { type: [String, Number], default: "开始时间" }, rangeSeparator: { type: [String, Number], default: "至" }, endPlaceholder: { type: [String, Number], default: "结束时间" } } }, [["render", function(e, t, o, l, a, i) {
|
|
795
795
|
const n = C("el-time-picker");
|
|
796
796
|
return d(), V(n, O({ class: "cv-timePicker-range" }, e.$props, { "is-range": "", modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), format: o.format, "range-separator": o.rangeSeparator, "start-placeholder": o.startPlaceholder, "end-placeholder": o.endPlaceholder }), null, 16, ["modelValue", "format", "range-separator", "start-placeholder", "end-placeholder"]);
|
|
797
|
-
}]]),
|
|
797
|
+
}]]), At = S({ name: "cvTimeSelect" }, [["render", function(e, t, o, l, a, i) {
|
|
798
798
|
const n = C("el-time-select");
|
|
799
799
|
return d(), V(n, O({ class: "cv-time-select" }, e.$props), null, 16);
|
|
800
|
-
}]]),
|
|
800
|
+
}]]), Ro = { props: { ...sn.props, modelValue: { type: [String, Array, Number, Object, Date], default: null }, pickerOptions: { type: Boolean, default: !1 } }, watch: { modelValue: { handler() {
|
|
801
801
|
if (this.valueFormat != "timestamp") this.localVal = this.modelValue;
|
|
802
802
|
else if (Array.isArray(this.modelValue)) {
|
|
803
803
|
var e;
|
|
@@ -815,7 +815,7 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
815
815
|
}), this.modelValue && e[0] == this.modelValue[0] && e[1] == this.modelValue[1]) return;
|
|
816
816
|
this.$emit("update:modelValue", e);
|
|
817
817
|
} else isNaN(this.localVal) || this.localVal.toString().length != 13 || (e = parseInt(this.localVal / 1e3), this.modelValue != e && this.$emit("update:modelValue", e));
|
|
818
|
-
} }, data: () => ({ localVal: "" }) },
|
|
818
|
+
} }, data: () => ({ localVal: "" }) }, Pt = S({ name: "cvDateBase", mixins: [Ro], props: { format: { type: String, default: "YYYY-MM-DD" }, valueFormat: { type: String, default: "YYYY-MM-DD" }, placeholder: { type: [String, Number], default: "选择日期" } }, data: () => ({ localPickerOptions: { disabledDate: (e) => e.getTime() > Date.now(), shortcuts: [{ text: "今天", onClick(e) {
|
|
819
819
|
e.$emit("pick", /* @__PURE__ */ new Date());
|
|
820
820
|
} }, { text: "昨天", onClick(e) {
|
|
821
821
|
const t = /* @__PURE__ */ new Date();
|
|
@@ -838,7 +838,7 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
838
838
|
} }] } }) }, [["render", function(e, t, o, l, a, i) {
|
|
839
839
|
const n = C("el-date-picker");
|
|
840
840
|
return d(), V(n, O(e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), type: "date", "value-format": o.valueFormat, placeholder: o.placeholder, "picker-options": e.pickerOptions && a.localPickerOptions }), null, 16, ["modelValue", "value-format", "placeholder", "picker-options"]);
|
|
841
|
-
}]]),
|
|
841
|
+
}]]), jt = S({ name: "cvDateRange", mixins: [Ro], props: { valueFormat: { type: String, default: "yyyy-MM-dd" }, startPlaceholder: { type: [String, Number], default: "开始日期" }, rangeSeparator: { type: [String, Number], default: "至" }, endPlaceholder: { type: [String, Number], default: "结束日期" } }, data: () => ({ localPickerOptions: { shortcuts: [{ text: "今天", onClick(e) {
|
|
842
842
|
const t = /* @__PURE__ */ new Date(), o = /* @__PURE__ */ new Date();
|
|
843
843
|
e.$emit("pick", [o, t]);
|
|
844
844
|
} }, { text: "昨天", onClick(e) {
|
|
@@ -862,7 +862,7 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
862
862
|
} }] } }) }, [["render", function(e, t, o, l, a, i) {
|
|
863
863
|
const n = C("el-date-picker");
|
|
864
864
|
return d(), V(n, O(e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), type: "daterange", "value-format": o.valueFormat, "range-separator": o.rangeSeparator, "start-placeholder": o.startPlaceholder, "end-placeholder": o.endPlaceholder, "picker-options": e.pickerOptions && a.localPickerOptions }), null, 16, ["modelValue", "value-format", "range-separator", "start-placeholder", "end-placeholder", "picker-options"]);
|
|
865
|
-
}]]),
|
|
865
|
+
}]]), Rt = S({ name: "cvDatetimeBase", mixins: [Ro], props: { format: { type: String, default: "YYYY-MM-DD HH:mm:ss" }, valueFormat: { type: String, default: "YYYY-MM-DD HH:mm:ss" }, placeholder: { type: [String, Number], default: "选择日期时间" } }, data: () => ({ localPickerOptions: { disabledDate: (e) => e.getTime() > Date.now(), shortcuts: [{ text: "今天", onClick(e) {
|
|
866
866
|
e.$emit("pick", /* @__PURE__ */ new Date());
|
|
867
867
|
} }, { text: "昨天", onClick(e) {
|
|
868
868
|
const t = /* @__PURE__ */ new Date();
|
|
@@ -885,7 +885,7 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
885
885
|
} }] } }) }, [["render", function(e, t, o, l, a, i) {
|
|
886
886
|
const n = C("el-date-picker");
|
|
887
887
|
return d(), V(n, O(e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), type: "datetime", "value-format": o.valueFormat, placeholder: o.placeholder, "picker-options": e.pickerOptions && a.localPickerOptions }), null, 16, ["modelValue", "value-format", "placeholder", "picker-options"]);
|
|
888
|
-
}]]),
|
|
888
|
+
}]]), Ut = S({ name: "cvDatetimeRange", mixins: [Ro], props: { valueFormat: { type: String, default: "YYYY-MM-DD HH:mm:ss" }, startPlaceholder: { type: [String, Number], default: "开始日期" }, rangeSeparator: { type: [String, Number], default: "至" }, endPlaceholder: { type: [String, Number], default: "结束日期" } }, data: () => ({ localPickerOptions: { shortcuts: [{ text: "今天", onClick(e) {
|
|
889
889
|
const t = /* @__PURE__ */ new Date(), o = /* @__PURE__ */ new Date();
|
|
890
890
|
e.$emit("pick", [o, t]);
|
|
891
891
|
} }, { text: "昨天", onClick(e) {
|
|
@@ -909,7 +909,7 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
909
909
|
} }] } }) }, [["render", function(e, t, o, l, a, i) {
|
|
910
910
|
const n = C("el-date-picker");
|
|
911
911
|
return d(), V(n, O(e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), type: "datetimerange", "value-format": o.valueFormat, "range-separator": o.rangeSeparator, "start-placeholder": o.startPlaceholder, "end-placeholder": o.endPlaceholder, align: "right", "picker-options": e.pickerOptions && a.localPickerOptions }), null, 16, ["modelValue", "value-format", "range-separator", "start-placeholder", "end-placeholder", "picker-options"]);
|
|
912
|
-
}]]),
|
|
912
|
+
}]]), Wt = S({ name: "cvDatetimeScreen", props: { start: { type: String, default: null }, end: { type: String, default: null }, autoUpdate: { type: Boolean, default: !0 } }, emits: ["update:start", "update:end", "change"], data() {
|
|
913
913
|
return { defaultTime: [new Date(2e3, 0, 1, 0, 0, 0), new Date(2e3, 0, 1, 23, 59, 59)], internalValue: [this.start || "", this.end || ""] };
|
|
914
914
|
}, watch: { start(e) {
|
|
915
915
|
e !== null && e !== "" || this.end !== null && this.end !== "" ? this.internalValue[0] = e : this.internalValue = [null, null];
|
|
@@ -949,9 +949,7 @@ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
|
|
|
949
949
|
const n = C("el-date-picker");
|
|
950
950
|
return d(), V(n, { modelValue: a.internalValue, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.internalValue = c), type: "datetimerange", shortcuts: i.refinedShortcuts, "range-separator": "至", "start-placeholder": "开始时间", "end-placeholder": "结束时间", "value-format": "YYYY-MM-DD HH:mm:ss", "default-time": a.defaultTime, onChange: i.handleDateChange, onCalendarChange: i.handleCalendarChange, clearable: "", class: "screen-date-picker" }, null, 8, ["modelValue", "shortcuts", "default-time", "onChange", "onCalendarChange"]);
|
|
951
951
|
}]]);
|
|
952
|
-
|
|
953
|
-
e.component(Bt.name, Bt);
|
|
954
|
-
}, zt.install = function(e) {
|
|
952
|
+
zt.install = function(e) {
|
|
955
953
|
e.component(zt.name, zt);
|
|
956
954
|
}, Ht.install = function(e) {
|
|
957
955
|
e.component(Ht.name, Ht);
|
|
@@ -965,8 +963,10 @@ Bt.install = function(e) {
|
|
|
965
963
|
e.component(Rt.name, Rt);
|
|
966
964
|
}, Ut.install = function(e) {
|
|
967
965
|
e.component(Ut.name, Ut);
|
|
966
|
+
}, Wt.install = function(e) {
|
|
967
|
+
e.component(Wt.name, Wt);
|
|
968
968
|
};
|
|
969
|
-
const
|
|
969
|
+
const Yt = S({ name: "cvSwitchBase", props: { ...rn.props, activeColor: { type: [String], default: "" }, inactiveColor: { type: [String], default: "" }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue() {
|
|
970
970
|
this.localVal = this.modelValue;
|
|
971
971
|
}, localVal() {
|
|
972
972
|
this.$emit("update:modelValue", this.localVal);
|
|
@@ -978,10 +978,10 @@ const Wt = S({ name: "cvSwitchBase", props: { ...rn.props, activeColor: { type:
|
|
|
978
978
|
const n = C("el-switch");
|
|
979
979
|
return d(), V(n, O(e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.localVal = c) }), null, 16, ["modelValue"]);
|
|
980
980
|
}]]);
|
|
981
|
-
|
|
982
|
-
e.component(
|
|
981
|
+
Yt.install = function(e) {
|
|
982
|
+
e.component(Yt.name, Yt);
|
|
983
983
|
};
|
|
984
|
-
const
|
|
984
|
+
const Xt = S({ name: "cvCodeSms", mixins: [], components: {}, props: { ...zo.props, maxlength: { type: [Number, String], default: 6 }, modelValue: { type: [Number, String], default: "" }, placeholder: { type: [Number, String], default: "请输入验证码" }, disabled: { type: Boolean, default: !1 }, mobile: { type: [Number, String], default: "" }, mobileParam: { type: String, default: "mobile" }, codeUrl: { type: String, default: "" }, codeSign: { type: Boolean, default: !1 }, apiFunc: { type: Function, default: null }, waitTime: { type: [Number, String], default: 60 } }, watch: { mobile(e) {
|
|
985
985
|
this.localMobile = e;
|
|
986
986
|
}, modelValue(e) {
|
|
987
987
|
this.localVal = e;
|
|
@@ -1017,10 +1017,10 @@ const Yt = S({ name: "cvCodeSms", mixins: [], components: {}, props: { ...Bo.pro
|
|
|
1017
1017
|
const n = C("el-button"), c = C("el-input");
|
|
1018
1018
|
return d(), V(c, O(e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (h) => a.localVal = h), clearable: "", placeholder: a.diyPlaceholder, onInput: i.updateInput }), { append: v(() => [b(n, { onClick: i.getSmsCode, disabled: a.btnDisabled }, { default: v(() => [L(T(a.btnText), 1)]), _: 1 }, 8, ["onClick", "disabled"])]), _: 1 }, 16, ["modelValue", "placeholder", "onInput"]);
|
|
1019
1019
|
}]]);
|
|
1020
|
-
|
|
1021
|
-
e.component(
|
|
1020
|
+
Xt.install = function(e) {
|
|
1021
|
+
e.component(Xt.name, Xt);
|
|
1022
1022
|
};
|
|
1023
|
-
const Fs = { props: { fileType: { type: [Array], default: [] }, fileSize: { type: [Number], default: 2 }, fileUnit: { type: [String], default: "" }, multiple: { type: [Boolean], default: !1 }, limit: { type: [Number], default: 5 } } }, Ms = { class: "cv-upload-tip-box" }, Es = { key: 0 }, Ns = { key: 1 },
|
|
1023
|
+
const Fs = { props: { fileType: { type: [Array], default: [] }, fileSize: { type: [Number], default: 2 }, fileUnit: { type: [String], default: "" }, multiple: { type: [Boolean], default: !1 }, limit: { type: [Number], default: 5 } } }, Ms = { class: "cv-upload-tip-box" }, Es = { key: 0 }, Ns = { key: 1 }, Uo = { inheritAttrs: !1, emits: ["update:modelValue", "update:initValue", "delete", "error", "success"], components: { uploadTip: S(Fs, [["render", function(e, t, o, l, a, i) {
|
|
1024
1024
|
return d(), u("div", Ms, [t[0] || (t[0] = r("span", null, "最多上传", -1)), r("b", null, T(o.limit), 1), r("span", null, T(o.fileUnit), 1), o.fileType.length ? (d(), u("b", Es, T(o.fileType.length ? o.fileType.join("/") : ""), 1)) : w("", !0), o.fileType.length ? (d(), u("span", Ns, "格式")) : w("", !0), r("span", null, "文件;且每" + T(o.fileUnit) + "不超过", 1), r("b", null, T(o.fileSize) + "MB", 1)]);
|
|
1025
1025
|
}]]) }, mixins: [Ol], props: { multiple: { type: [Boolean], default: !1 }, limit: { type: [Number, String], default: 1 }, drag: { type: Boolean, default: !1 }, httpRequest: { type: [Function], default: () => {
|
|
1026
1026
|
} }, accept: String, beforeRemove: Function, upResponseFn: { type: [Function], default: null }, signatureFn: { type: Function, default: null }, signatureType: { type: [String], default: "aliyun_oss_type2" }, signatureParam: { type: [Object], default: () => ({}) } }, data: () => ({ cropShow: !1, upIngPercent: 0, upIngLoading: !1, upIngFileInfo: {} }), computed: { fileTypeStr() {
|
|
@@ -1051,10 +1051,6 @@ const Fs = { props: { fileType: { type: [Array], default: [] }, fileSize: { type
|
|
|
1051
1051
|
}, initOnExceed() {
|
|
1052
1052
|
this.$message.error(`最多上传${this.limit}个文件`);
|
|
1053
1053
|
} } };
|
|
1054
|
-
function Ka(e) {
|
|
1055
|
-
let t = e.lastIndexOf("/"), o = e.substring(t + 1, e.length), l = "";
|
|
1056
|
-
return o.lastIndexOf(".") > -1 && (l = o.slice(o.lastIndexOf(".") + 1), l = "image/" + l), { name: o, url: e, type: l, status: "success" };
|
|
1057
|
-
}
|
|
1058
1054
|
function de(e) {
|
|
1059
1055
|
return Math.pow(1024, e);
|
|
1060
1056
|
}
|
|
@@ -1074,30 +1070,7 @@ function Bs(e) {
|
|
|
1074
1070
|
}(t), l = /* @__PURE__ */ new Date();
|
|
1075
1071
|
return !!isNaN(o.getTime()) || o.getTime() - l.getTime() <= 6e4;
|
|
1076
1072
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return e ? typeof e == "string" || typeof e == "number" ? [e] : Object.prototype.toString.call(e) === "[object Object]" ? [] : [...e] : [];
|
|
1079
|
-
}
|
|
1080
|
-
function Za(e, t) {
|
|
1081
|
-
let o = [];
|
|
1082
|
-
Array.isArray(e) && e.length > 0 && o.push(...e), Array.isArray(t) && t.length > 0 && o.push(...t), typeof t == "string" && o.push(t);
|
|
1083
|
-
let l = [];
|
|
1084
|
-
for (let a in o) {
|
|
1085
|
-
let i = o[a], n = Object.prototype.toString.call(i);
|
|
1086
|
-
n === "[object String]" ? l.push(i) : n === "[object Object]" && i.url && l.push(i.url);
|
|
1087
|
-
}
|
|
1088
|
-
return l;
|
|
1089
|
-
}
|
|
1090
|
-
function Ba(e) {
|
|
1091
|
-
let t = [], o = Object.prototype.toString.call(e);
|
|
1092
|
-
if (o === "[object String]") t.push(Ka(e));
|
|
1093
|
-
else if (o === "[object Object]") e.name && e.url && t.push(e);
|
|
1094
|
-
else if (o === "[object Array]") for (let l in e) {
|
|
1095
|
-
let a = e[l], i = Object.prototype.toString.call(a);
|
|
1096
|
-
i === "[object String]" ? t.push(Ka(a)) : i === "[object Object]" && a.name && a.url && t.push(a);
|
|
1097
|
-
}
|
|
1098
|
-
return t;
|
|
1099
|
-
}
|
|
1100
|
-
async function Qa(e, t) {
|
|
1073
|
+
async function Za(e, t) {
|
|
1101
1074
|
if (!e || typeof e != "function") return !1;
|
|
1102
1075
|
let o = null;
|
|
1103
1076
|
if (Bs(o)) {
|
|
@@ -1107,13 +1080,13 @@ async function Qa(e, t) {
|
|
|
1107
1080
|
}
|
|
1108
1081
|
return { ...o, pass: !!o };
|
|
1109
1082
|
}
|
|
1110
|
-
async function
|
|
1083
|
+
async function Qa(e, t, o, l) {
|
|
1111
1084
|
e = e || "aliyun_oss_type2", l = l || {};
|
|
1112
|
-
const a = await
|
|
1085
|
+
const a = await Za(t, { upload_type: e, ...o });
|
|
1113
1086
|
if (!a.pass) return q.error("获取oss上传凭证异常");
|
|
1114
1087
|
if (e == "oss_upload1") {
|
|
1115
1088
|
const i = { bucket: a.bucket, region: a.endpoint.split(".")[0], accessKeyId: a.accessKeyId, accessKeySecret: a.accessKeySecret, stsToken: a.securityToken, expiration: a.expiration, ...l, refreshSTSToken: async () => {
|
|
1116
|
-
const n = await
|
|
1089
|
+
const n = await Za(t);
|
|
1117
1090
|
return { accessKeyId: n.accessKeyId, accessKeySecret: n.accessKeySecret, stsToken: n.securityToken };
|
|
1118
1091
|
}, refreshSTSTokenInterval: new Date(a.expiration) - /* @__PURE__ */ new Date() - 6e4 };
|
|
1119
1092
|
return new OSS(i);
|
|
@@ -1125,7 +1098,7 @@ async function Ml(e, t, o) {
|
|
|
1125
1098
|
let l = new FormData();
|
|
1126
1099
|
l.append("success_action_status", t.success_action_status || "200"), l.append("policy", t.policy), l.append("signature", t.signature), l.append("x-oss-signature", t.signature), l.append("x-oss-signature-version", "OSS4-HMAC-SHA256"), l.append("x-oss-credential", t.x_oss_credential), l.append("x-oss-date", t.x_oss_date), l.append("x-oss-security-token", t.security_token);
|
|
1127
1100
|
let a = t.key;
|
|
1128
|
-
if (t.key || (a = t.dir + "/" + e.name), l.append("key", a), t.callback && l.append("callback", t.callback), t.callback_var &&
|
|
1101
|
+
if (t.key || (a = t.dir + "/" + e.name), l.append("key", a), t.callback && l.append("callback", t.callback), t.callback_var && Ao(t.callback_var)) for (const i in t.callback_var) t.callback_var.hasOwnProperty(i) && l.append(i, t.callback_var[i]);
|
|
1129
1102
|
return l.append("file", e), fetch(t.host, { method: "POST", body: l, headers: {} }).then((i) => {
|
|
1130
1103
|
if (i.ok) return i.json();
|
|
1131
1104
|
}).then((i) => {
|
|
@@ -1133,7 +1106,7 @@ async function Ml(e, t, o) {
|
|
|
1133
1106
|
}).catch((i) => {
|
|
1134
1107
|
});
|
|
1135
1108
|
}
|
|
1136
|
-
async function
|
|
1109
|
+
async function Ba(e, t, o, l) {
|
|
1137
1110
|
if (!o || typeof o != "function") return q.error("签名方法错误"), Promise.reject();
|
|
1138
1111
|
try {
|
|
1139
1112
|
let a = function() {
|
|
@@ -1699,7 +1672,7 @@ const zs = (e, t) => {
|
|
|
1699
1672
|
e = e || 1, this.$refs.cvAvatartCropper.changeScale(e);
|
|
1700
1673
|
}, cropRealTime(e) {
|
|
1701
1674
|
this.cropPreviews = e;
|
|
1702
|
-
} } }, Xs = { class: "cv-upload-crop-box" }, qs = { class: "cv-upload-crop-left-box" }, Ks = { class: "cv-upload-crop-left-opt" }, Gs = { class: "cv-upload-crop-left-opt2" }, Zs = { class: "cv-upload-crop-left-opt2" }, Qs = { class: "cv-upload-crop-right-box" }, Js = ["innerHTML"], er = { title: "头像上传", name: "cvUploadAvatar", mixins: [
|
|
1675
|
+
} } }, Xs = { class: "cv-upload-crop-box" }, qs = { class: "cv-upload-crop-left-box" }, Ks = { class: "cv-upload-crop-left-opt" }, Gs = { class: "cv-upload-crop-left-opt2" }, Zs = { class: "cv-upload-crop-left-opt2" }, Qs = { class: "cv-upload-crop-right-box" }, Js = ["innerHTML"], er = { title: "头像上传", name: "cvUploadAvatar", mixins: [Uo], components: { UploadCrop: S(Ys, [["render", function(e, t, o, l, a, i) {
|
|
1703
1676
|
const n = C("vue-cropper"), c = C("el-button"), h = C("el-tooltip"), p = C("el-input"), m = C("el-dialog"), f = re("loading");
|
|
1704
1677
|
return d(), V(m, { title: o.title, modelValue: a.cropDialogVisible, "onUpdate:modelValue": t[7] || (t[7] = (g) => a.cropDialogVisible = g), width: "800px", "append-to-body": "", onOpened: i.cropDialogOpened, onClose: i.cropDialoClose }, { footer: v(() => [b(c, { type: "primary", onClick: i.cropSubmit, loading: o.loading, disabled: o.loading }, { default: v(() => [...t[12] || (t[12] = [L("提 交", -1)])]), _: 1 }, 8, ["onClick", "loading", "disabled"])]), default: v(() => [M((d(), u("div", Xs, [r("div", qs, [a.cropVisible ? (d(), V(n, O({ key: 0, ref: "cvAvatartCropper", img: a.cropBeforelImage }, i.cropAttrs, { onRealTime: i.cropRealTime }), null, 16, ["img", "onRealTime"])) : w("", !0), r("div", Ks, [D(e.$slots, "default"), b(h, { effect: "dark", content: "重置", placement: "top" }, { default: v(() => [b(c, { icon: "ElIconRefresh", onClick: t[0] || (t[0] = (g) => i.cropRotateRefresh()) })]), _: 1 }), b(h, { effect: "dark", content: "放大", placement: "top" }, { default: v(() => [b(c, { icon: "ElIconZoomIn", onClick: t[1] || (t[1] = (g) => i.cropChangeScale(1)) })]), _: 1 }), b(h, { effect: "dark", content: "缩小", placement: "top" }, { default: v(() => [b(c, { icon: "ElIconZoomOut", onClick: t[2] || (t[2] = (g) => i.cropChangeScale(-1)) })]), _: 1 }), b(h, { effect: "dark", content: "向左旋转", placement: "top" }, { default: v(() => [b(c, { icon: "ElIconRefreshLeft", onClick: t[3] || (t[3] = (g) => i.cropRotateLeft()) })]), _: 1 }), b(h, { effect: "dark", content: "向右旋转", placement: "top" }, { default: v(() => [b(c, { icon: "ElIconRefreshRight", onClick: t[4] || (t[4] = (g) => i.cropRotateRight()) })]), _: 1 })]), r("div", Gs, [b(p, { size: "small" }, { prepend: v(() => [...t[8] || (t[8] = [L("X 坐标", -1)])]), _: 1 }), b(p, { size: "small" }, { prepend: v(() => [...t[9] || (t[9] = [L("Y 坐标", -1)])]), _: 1 })]), r("div", Zs, [b(p, { size: "small", modelValue: a.cropLocalWidth, "onUpdate:modelValue": t[5] || (t[5] = (g) => a.cropLocalWidth = g) }, { prepend: v(() => [...t[10] || (t[10] = [L("宽度", -1)])]), _: 1 }, 8, ["modelValue"]), b(p, { size: "small", modelValue: a.cropLocalHeight, "onUpdate:modelValue": t[6] || (t[6] = (g) => a.cropLocalHeight = g) }, { prepend: v(() => [...t[11] || (t[11] = [L("高度", -1)])]), _: 1 }, 8, ["modelValue"])])]), r("div", Qs, [r("div", { class: "cv-upload-crop-preview", innerHTML: a.cropPreviews.html }, null, 8, Js)])])), [[f, o.loading]])]), _: 3 }, 8, ["title", "modelValue", "onOpened", "onClose"]);
|
|
1705
1678
|
}]]) }, props: { modelValue: { type: [String], default: "" }, initValue: { type: [String], default: "" }, fileSize: { type: [Number], default: 2 }, fileType: { type: [Array], default: () => ["png", "jpg", "jpeg", "gif"] }, showSize: { type: Number, default: 120 }, crop: { type: [Boolean], default: !0 }, signatureParam: { type: [Object], default: () => ({ save_sign: "avatar" }) } }, data: () => ({ localValue: "", localList: [], upAccept: "image/*" }), computed: { localRef: () => "cvUploadAvatar" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
|
|
@@ -1728,17 +1701,41 @@ const zs = (e, t) => {
|
|
|
1728
1701
|
const { file: t } = e;
|
|
1729
1702
|
this.upIngLoading = !0;
|
|
1730
1703
|
const o = this.mergeAttrs.signatureType || null, l = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
|
|
1731
|
-
await
|
|
1704
|
+
await Ba(t, o, l, a).then((i) => {
|
|
1732
1705
|
this.$nextTick(() => {
|
|
1733
1706
|
this.$emit("update:modelValue", i.full_path), this.$emit("update:initValue", i.cdn_full_path);
|
|
1734
1707
|
}), q.success("上传成功"), this.upIngLoading = !1, this.cropShow = !1;
|
|
1735
1708
|
}).catch(() => {
|
|
1736
1709
|
this.upIngLoading = !1;
|
|
1737
1710
|
});
|
|
1738
|
-
} } }, tr = ["src"],
|
|
1711
|
+
} } }, tr = ["src"], qt = S(er, [["render", function(e, t, o, l, a, i) {
|
|
1739
1712
|
const n = C("upload-tip"), c = C("cv-icons"), h = C("el-button"), p = C("el-tooltip"), m = C("el-upload"), f = C("upload-crop");
|
|
1740
1713
|
return d(), u("div", { class: "cv-upload-avatar-wrap", onClick: t[2] || (t[2] = (...g) => i.cropDialogOpen && i.cropDialogOpen(...g)) }, [o.initValue ? w("", !0) : (d(), u("div", { key: 0, class: "cv-upload-avatar-box cv-upload-avatar-empty", style: H(i.showStyle) }, [...t[3] || (t[3] = [r("div", { class: "cv-upload-avatar__text" }, "上传头像", -1)])], 4)), o.initValue ? (d(), u("div", { key: 1, class: "cv-upload-avatar-box", style: H(i.showStyle) }, [r("img", { class: "cv-upload-avatar__img", src: o.initValue }, null, 8, tr)], 4)) : w("", !0), b(n, O(e.tipAttr, { fileUnit: "张", multiple: !1, limit: 1 }), null, 16), o.crop ? (d(), V(f, { key: 2, modelValue: e.cropShow, "onUpdate:modelValue": t[0] || (t[0] = (g) => e.cropShow = g), title: "修改头像", size: o.showSize, onOnSubmit: i.onHttpRequest, onOnClose: t[1] || (t[1] = (g) => e.upIngLoading = !1), loading: e.upIngLoading, src: a.localValue }, { default: v(() => [b(m, O(i.handlerAttr, { "before-upload": i.initBeforeUpload, "http-request": e.initHttpRequest }), { default: v(() => [b(p, { effect: "dark", content: "选择图片", placement: "top" }, { default: v(() => [b(h, { style: { "margin-right": "10px" }, loading: e.upIngLoading, disabled: e.upIngLoading }, { default: v(() => [b(c, { type: "ElIconPlus", size: "14", style: { "margin-right": "10px" } }), t[4] || (t[4] = L(" 选择 ", -1))]), _: 1 }, 8, ["loading", "disabled"])]), _: 1 })]), _: 1 }, 16, ["before-upload", "http-request"])]), _: 1 }, 8, ["modelValue", "size", "onOnSubmit", "loading", "src"])) : w("", !0)]);
|
|
1741
|
-
}]])
|
|
1714
|
+
}]]);
|
|
1715
|
+
function Be(e) {
|
|
1716
|
+
return e ? typeof e == "string" || typeof e == "number" ? [e] : Object.prototype.toString.call(e) === "[object Object]" ? [] : [...e] : [];
|
|
1717
|
+
}
|
|
1718
|
+
function Ja(e, t) {
|
|
1719
|
+
let o = [];
|
|
1720
|
+
Array.isArray(e) && e.length > 0 && o.push(...e), Array.isArray(t) && t.length > 0 && o.push(...t), typeof t == "string" && o.push(t);
|
|
1721
|
+
let l = [];
|
|
1722
|
+
for (let a in o) {
|
|
1723
|
+
let i = o[a], n = Object.prototype.toString.call(i);
|
|
1724
|
+
n === "[object String]" ? l.push(i) : n === "[object Object]" && i.url && l.push(i.url);
|
|
1725
|
+
}
|
|
1726
|
+
return l;
|
|
1727
|
+
}
|
|
1728
|
+
function za(e) {
|
|
1729
|
+
let t = [], o = Object.prototype.toString.call(e);
|
|
1730
|
+
if (o === "[object String]") t.push(getFileInfo(e));
|
|
1731
|
+
else if (o === "[object Object]") e.name && e.url && t.push(e);
|
|
1732
|
+
else if (o === "[object Array]") for (let l in e) {
|
|
1733
|
+
let a = e[l], i = Object.prototype.toString.call(a);
|
|
1734
|
+
i === "[object String]" ? t.push(getFileInfo(a)) : i === "[object Object]" && a.name && a.url && t.push(a);
|
|
1735
|
+
}
|
|
1736
|
+
return t;
|
|
1737
|
+
}
|
|
1738
|
+
const or = { title: "图片上传", name: "cvUploadImage", mixins: [Uo], components: {}, props: { modelValue: { type: [String, Number, Array, Object], default: "" }, initValue: { type: [String, Number, Array], default: () => "" }, fileSize: { type: [Number], default: 2 }, fileType: { type: [Array], default: () => ["png", "jpg", "jpeg", "gif"] }, showSize: { type: Number, default: 150 }, showBig: { type: [Boolean], default: !1 }, crop: { type: [Boolean], default: !1 }, galleryLabel: { type: String, default: "" }, lazy: { type: Boolean, default: !0 }, drag: { type: Boolean, default: !1 }, signatureParam: { type: [Object], default: () => ({ save_sign: "image" }) } }, data: () => ({ localValue: [], localList: [], previewShow: !1, previewTitle: "", previewUrl: "", upAccept: "image/*" }), computed: { localRef: () => "cvUploadImage" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
|
|
1742
1739
|
return { ref: this.localRef, action: "#", accept: this.upAccept, limit: parseInt(this.limit), multiple: this.multiple, drag: !!this.drag, disabled: this.upIngLoading, showFileList: !1 };
|
|
1743
1740
|
}, showUpload() {
|
|
1744
1741
|
return !(this.localList.length >= this.limit);
|
|
@@ -1753,11 +1750,11 @@ const zs = (e, t) => {
|
|
|
1753
1750
|
}, methods: { _init_parse_value() {
|
|
1754
1751
|
if (this.modelValue) if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
|
|
1755
1752
|
const e = String(this.modelValue).split(",").map((t) => t.trim());
|
|
1756
|
-
this.localValue =
|
|
1757
|
-
} else this.localValue =
|
|
1753
|
+
this.localValue = Be(e);
|
|
1754
|
+
} else this.localValue = Be(this.modelValue);
|
|
1758
1755
|
else this.localValue = [];
|
|
1759
1756
|
}, _init_parse_list() {
|
|
1760
|
-
this.initValue ? this.localList =
|
|
1757
|
+
this.initValue ? this.localList = za(this.initValue) : this.localList = [];
|
|
1761
1758
|
}, initOnChange(e, t) {
|
|
1762
1759
|
}, initBeforeUpload(e) {
|
|
1763
1760
|
return this.upIngLoading = !0, !!this._commonBeforeUpload(e) || (this.upIngLoading = !1, !1);
|
|
@@ -1765,7 +1762,7 @@ const zs = (e, t) => {
|
|
|
1765
1762
|
const { file: t } = e;
|
|
1766
1763
|
this.upIngLoading = !0, this.mergeAttrs.upResponseFn;
|
|
1767
1764
|
const o = this.mergeAttrs.signatureType || null, l = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
|
|
1768
|
-
await
|
|
1765
|
+
await Ba(t, o, l, a).then((i) => {
|
|
1769
1766
|
this.$nextTick(() => {
|
|
1770
1767
|
this.updateValue(i.filelog_id, i.cdn_full_path);
|
|
1771
1768
|
}), q.success("上传成功"), this.upIngLoading = !1;
|
|
@@ -1774,11 +1771,11 @@ const zs = (e, t) => {
|
|
|
1774
1771
|
});
|
|
1775
1772
|
}, updateValue(e, t) {
|
|
1776
1773
|
if (this.multiple) {
|
|
1777
|
-
let o =
|
|
1774
|
+
let o = Ja(this.localValue, e).join(",");
|
|
1778
1775
|
this.$emit("update:modelValue", o);
|
|
1779
1776
|
} else this.$emit("update:modelValue", e);
|
|
1780
1777
|
if (this.multiple) {
|
|
1781
|
-
let o =
|
|
1778
|
+
let o = Ja(this.localList, t);
|
|
1782
1779
|
this.$emit("update:initValue", o);
|
|
1783
1780
|
} else this.$emit("update:initValue", t);
|
|
1784
1781
|
}, handleItemPreview(e, t) {
|
|
@@ -1813,15 +1810,15 @@ const zs = (e, t) => {
|
|
|
1813
1810
|
}).catch(() => {
|
|
1814
1811
|
});
|
|
1815
1812
|
}, handleItemCrop(e, t) {
|
|
1816
|
-
} } }, ar = { class: "cv-upload-image cv-upload-common" }, ir = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, lr = ["tabindex"], nr = { class: "el-upload-list__item-status-label" }, sr = { class: "el-upload-list__item-actions" }, rr = ["onClick"], cr = { class: "el-upload-list__item-delete" }, dr = { class: "el-upload-list__item-delete" }, hr = ["onClick"], pr = { style: { margin: "0 auto" } }, ur = ["src"],
|
|
1813
|
+
} } }, ar = { class: "cv-upload-image cv-upload-common" }, ir = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, lr = ["tabindex"], nr = { class: "el-upload-list__item-status-label" }, sr = { class: "el-upload-list__item-actions" }, rr = ["onClick"], cr = { class: "el-upload-list__item-delete" }, dr = { class: "el-upload-list__item-delete" }, hr = ["onClick"], pr = { style: { margin: "0 auto" } }, ur = ["src"], Kt = S(or, [["render", function(e, t, o, l, a, i) {
|
|
1817
1814
|
const n = C("el-image"), c = C("cv-icons"), h = C("el-upload"), p = C("upload-tip"), m = C("el-dialog"), f = re("loading");
|
|
1818
1815
|
return d(), u("div", ar, [r("div", ir, [(d(!0), u(F, null, E(a.localList, (g, k) => (d(), u("section", { class: "el-upload-list__item is-success", key: k, tabindex: k, style: H(i.showStyle) }, [b(n, { class: "el-upload-list__item-thumbnail", lazy: o.lazy, src: g.url, style: H(i.showStyle), fit: "contain" }, null, 8, ["lazy", "src", "style"]), r("label", nr, [b(c, { type: "ElIconCheck", color: "#ffffff", size: "12" })]), r("span", sr, [r("span", { class: "el-upload-list__item-preview", onClick: (x) => i.handleItemPreview(g) }, [b(c, { type: "ElIconZoomIn", size: "20" })], 8, rr), r("span", cr, [b(c, { type: "ElIconDelete", size: "20", onClick: (x) => i.handleItemRemove(g, k) }, null, 8, ["onClick"])]), r("span", dr, [b(c, { type: "ElIconEdit", size: "20", onClick: (x) => i.handleItemEdit(g, k) }, null, 8, ["onClick"])]), o.crop ? (d(), u("span", { key: 0, class: "el-upload-list__item-preview", onClick: (x) => i.handleItemCrop(g) }, [b(c, { type: "ElIconCrop", size: "20" })], 8, hr)) : w("", !0)])], 12, lr))), 128)), i.showUpload ? (d(), V(h, O({ key: 0, class: "cv-upload-common-handle" }, i.handlerAttr, { "file-list": a.localList, "before-upload": i.initBeforeUpload, "http-request": i.initHttpRequest, "on-change": i.initOnChange, "on-exceed": e.initOnExceed, style: i.showStyle }), { default: v(() => [M((d(), u("div", { class: "cv-upload-common__ing", style: H(i.showStyle) }, [o.drag ? (d(), u(F, { key: 0 }, [b(c, { type: "ElIconUpload", size: "24" }), t[1] || (t[1] = r("div", { class: "el-upload__text" }, [L(" 将文件拖到此处,或 "), r("em", null, "点击上传")], -1))], 64)) : (d(), V(c, { key: 1, type: "ElIconPlus", size: o.showSize / 3 }, null, 8, ["size"]))], 4)), [[f, e.upIngLoading]])]), _: 1 }, 16, ["file-list", "before-upload", "http-request", "on-change", "on-exceed", "style"])) : w("", !0)]), b(p, O(e.tipAttr, { fileUnit: "张" }), null, 16), b(m, { modelValue: a.previewShow, "onUpdate:modelValue": t[0] || (t[0] = (g) => a.previewShow = g), title: a.previewTitle, "append-to-body": "" }, { default: v(() => [r("div", pr, [r("img", { width: "100%", src: a.previewUrl, style: { "max-width": "300px" } }, null, 8, ur)])]), _: 1 }, 8, ["modelValue", "title"])]);
|
|
1819
1816
|
}]]), mr = { mdb: "access", accdb: "access", ai: "ai", html: "html", htm: "html", asp: "web", pdf: "pdf", psd: "photoshop", psb: "photoshop", mpo: "photoshop", eps: "photoshop", avi: "video", wmv: "video", rm: "video", rmvb: "video", mp4: "video", "3gp": "video", asf: "video", mov: "video", m4v: "video", flv: "video", f4v: "video", mkv: "video", mts: "video", swf: "flash", ts: "video", mp3: "audio", wav: "audio", wma: "audio", ape: "audio", aac: "audio", zip: "zip", rar: "zip", gz: "zip", "7z": "zip", z: "zip", bmp: "image", jpg: "image", jpeg: "image", png: "image", gif: "image", webp: "image", svg: "image", txt: "txt", rtf: "txt", xls: "excel", xlsx: "excel", xlsm: "excel", xltx: "excel", doc: "word", docx: "word", docm: "word", wps: "word", dotx: "word", dotm: "word", ppt: "powerpoint", pptx: "powerpoint", mdf: "db", db: "db", dbf: "db", wdb: "db", vue: "vue", php: "php", jar: "jar", ini: "ini", bat: "bat", config: "config", fla: "fla", eot: "font", otf: "font", fon: "font", font: "font", ttf: "font", ttc: "font", woff: "font", woff2: "font", js: "js", md: "markdown", one: "onenote", jsx: "reactjs", xfl: "xfl", file: "file", css: "css" };
|
|
1820
|
-
function
|
|
1817
|
+
function Xo(e) {
|
|
1821
1818
|
return `https://10ui.cn/default/icon_ext/${mr[e]}.svg`;
|
|
1822
1819
|
}
|
|
1823
1820
|
const gr = { name: "uploadList", props: { files: { type: Array, default: () => [] }, disabled: { type: Boolean, default: !1 }, isCanDownload: { type: Boolean, default: !0 }, isCanDelete: { type: Boolean, default: !0 } }, methods: { getExtension(e) {
|
|
1824
|
-
return e.lastIndexOf(".") > -1 &&
|
|
1821
|
+
return e.lastIndexOf(".") > -1 && Xo[e.slice(e.lastIndexOf(".") + 1).toLowerCase()] || Xo.file;
|
|
1825
1822
|
}, getSize: (e) => e && !isNaN(Number(e)) ? e : "", parsePercentage: (e) => parseInt(e, 10), handleDownload(e) {
|
|
1826
1823
|
e.url;
|
|
1827
1824
|
}, handleDelete(e, t) {
|
|
@@ -1829,7 +1826,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
1829
1826
|
this.$emit("remove", e, t);
|
|
1830
1827
|
}).catch(() => {
|
|
1831
1828
|
});
|
|
1832
|
-
} } }, fr = ["src"], vr = { class: "cv-upload-list__item-content-action" }, br = { title: "文件上传", inheritAttrs: !1, name: "cvUploadFile", mixins: [
|
|
1829
|
+
} } }, fr = ["src"], vr = { class: "cv-upload-list__item-content-action" }, br = { title: "文件上传", inheritAttrs: !1, name: "cvUploadFile", mixins: [Uo], components: { uploadList: S(gr, [["render", function(e, t, o, l, a, i) {
|
|
1833
1830
|
const n = C("el-link");
|
|
1834
1831
|
return d(), V(gn, { class: "cv-upload-file-list el-upload-list el-upload-list--text", name: "el-list", tag: "ul" }, { default: v(() => [(d(!0), u(F, null, E(o.files, (c, h) => (d(), u("li", { key: c.uid, class: "el-upload-list__item cv-upload-list__item-content" }, [b(n, { href: c.url, underline: !1, target: "_blank" }, { default: v(() => [r("img", { src: i.getExtension(c.name), class: "el-upload-list__item-content-name-icon" }, null, 8, fr), r("span", null, T(c.name), 1)]), _: 2 }, 1032, ["href"]), r("div", vr, [b(n, { underline: !1 }, { default: v(() => [L(T(i.getSize(c.size)), 1)]), _: 2 }, 1024), o.isCanDownload ? (d(), V(n, { key: 0, underline: !1, onClick: (p) => i.handleDownload(c) }, { default: v(() => [...t[0] || (t[0] = [L("下载", -1)])]), _: 1 }, 8, ["onClick"])) : w("", !0), !o.disabled && o.isCanDelete ? (d(), V(n, { key: 1, underline: !1, onClick: (p) => i.handleDelete(h, c), type: "danger" }, { default: v(() => [...t[1] || (t[1] = [L(" 删除 ", -1)])]), _: 1 }, 8, ["onClick"])) : w("", !0)])]))), 128))]), _: 1 });
|
|
1835
1832
|
}]]) }, props: { modelValue: { type: [String, Object, Array], default: "" }, initValue: { type: [String, Object, Array], default: "" }, fileSize: { type: [Number], default: 5 }, fileType: { type: [Array], default: ["txt", "png", "jpg", "xlsx", "xls"] }, multiple: { type: [Boolean], default: !1 }, limit: { type: [Number], default: 5 }, disabled: Boolean, isCanDownload: { type: Boolean, default: !0 }, isCanDelete: { type: Boolean, default: !0 }, isCanUploadSame: { type: Boolean, default: !0 } }, data: () => ({ localValue: [], localList: [] }), computed: { localRef: () => "cvUploadFile" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
|
|
@@ -1842,7 +1839,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
1842
1839
|
} }, mounted() {
|
|
1843
1840
|
this._init_parse();
|
|
1844
1841
|
}, methods: { _init_parse() {
|
|
1845
|
-
this.initValue ? this.localList =
|
|
1842
|
+
this.initValue ? this.localList = za(this.initValue) : this.localList = [];
|
|
1846
1843
|
}, initOnChange(e, t) {
|
|
1847
1844
|
this.localList = t;
|
|
1848
1845
|
}, initBeforeUpload(e) {
|
|
@@ -1864,10 +1861,10 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
1864
1861
|
const t = [...this.list];
|
|
1865
1862
|
t.splice(e, 1), this.$emit("update:modelValue", t || []);
|
|
1866
1863
|
} else this.$emit("update:modelValue", null);
|
|
1867
|
-
} } }, yr = { class: "cv-upload-file" },
|
|
1864
|
+
} } }, yr = { class: "cv-upload-file" }, Gt = S(br, [["render", function(e, t, o, l, a, i) {
|
|
1868
1865
|
const n = C("el-button"), c = C("el-upload"), h = C("upload-tip"), p = C("upload-list");
|
|
1869
1866
|
return d(), u("div", yr, [b(c, O({ class: "cv-upload-file-uploader" }, i.handlerAttr, { "file-list": a.localList, "onUpdate:fileList": t[0] || (t[0] = (m) => a.localList = m), "before-upload": i.initBeforeUpload, "on-change": i.initOnChange, "on-exceed": e.initOnExceed, "on-error": i.upFileError, "on-success": i.upFileSuccess }), { default: v(() => [b(n, { type: "primary", icon: "ElIconUpload" }, { default: v(() => [...t[1] || (t[1] = [L("上传文件", -1)])]), _: 1 })]), _: 1 }, 16, ["file-list", "before-upload", "on-change", "on-exceed", "on-error", "on-success"]), b(h, O(e.tipAttr, { fileUnit: "个" }), null, 16), b(p, { disabled: o.disabled, files: i.list, isCanDelete: o.isCanDelete, isCanDownload: o.isCanDownload, onRemove: i.handleRemove }, null, 8, ["disabled", "files", "isCanDelete", "isCanDownload", "onRemove"])]);
|
|
1870
|
-
}]]), Cr = { class: "cv-upload-video" }, wr = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, kr = ["tabindex"], xr = ["src"], Sr = { class: "el-upload-list__item-status-label" }, Vr = { class: "el-upload-list__item-actions" }, _r = ["onClick"], Ir = { class: "el-upload-list__item-delete" }, Tr = { class: "el-upload-list__item-delete" }, Lr = { key: 0, style: { width: "500px", height: "300px", margin: "0 auto" } }, Dr = ["src"],
|
|
1867
|
+
}]]), Cr = { class: "cv-upload-video" }, wr = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, kr = ["tabindex"], xr = ["src"], Sr = { class: "el-upload-list__item-status-label" }, Vr = { class: "el-upload-list__item-actions" }, _r = ["onClick"], Ir = { class: "el-upload-list__item-delete" }, Tr = { class: "el-upload-list__item-delete" }, Lr = { key: 0, style: { width: "500px", height: "300px", margin: "0 auto" } }, Dr = ["src"], Zt = S({ title: "视频上传", name: "cvUploadVideo", mixins: [Uo], components: {}, props: { modelValue: { type: [String], default: "" }, initValue: { type: [String], default: "" }, fileSize: { type: [Number], default: 10 }, fileType: { type: Array, default: ["mp4", "mp3"] }, showSize: { type: Number, default: 360 }, signatureParam: { type: [Object], default: () => ({ save_sign: "video" }) } }, data: () => ({ localValue: "", localList: "", previewShow: !1, previewTitle: "", previewUrl: "", upAccept: "video/*" }), computed: { localRef: () => "cvUploadVideo" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
|
|
1871
1868
|
return { ref: this.localRef, action: "#", accept: this.upAccept, limit: 1, multiple: !1, drag: !0, disabled: this.upIngLoading, showFileList: !1 };
|
|
1872
1869
|
}, showUpload() {
|
|
1873
1870
|
return !this.localValue;
|
|
@@ -1880,16 +1877,16 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
1880
1877
|
} }, mounted() {
|
|
1881
1878
|
this._init_parse_value(), this._init_parse_list();
|
|
1882
1879
|
}, methods: { _init_parse_value() {
|
|
1883
|
-
this.modelValue ? this.localValue =
|
|
1880
|
+
this.modelValue ? this.localValue = Be(this.modelValue) : this.localValue = "";
|
|
1884
1881
|
}, _init_parse_list() {
|
|
1885
|
-
this.initValue ? this.localList =
|
|
1882
|
+
this.initValue ? this.localList = za(this.initValue) : this.localList = "";
|
|
1886
1883
|
}, initBeforeUpload(e) {
|
|
1887
1884
|
return this.upIngLoading = !0, !!this._commonBeforeUpload(e) || (this.upIngLoading = !1, !1);
|
|
1888
1885
|
}, async initHttpRequest(e) {
|
|
1889
1886
|
const { file: t } = e;
|
|
1890
1887
|
this.upIngLoading = !0, this.mergeAttrs.upResponseFn;
|
|
1891
1888
|
const o = this.mergeAttrs.signatureType || null, l = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
|
|
1892
|
-
await
|
|
1889
|
+
await Ba(t, o, l, a).then((i) => {
|
|
1893
1890
|
this.$nextTick(() => {
|
|
1894
1891
|
this.$emit("update:modelValue", i.full_path), this.$emit("update:initValue", i.cdn_full_path);
|
|
1895
1892
|
}), ExtendMessage.success("上传成功"), this.upIngLoading = !1;
|
|
@@ -1969,7 +1966,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
1969
1966
|
let n = parseInt(t / l);
|
|
1970
1967
|
return o === 0 && (n = 0), n === 0 || this.handle_network_speed_change(i, a, n), n ? Ga(n) : 0;
|
|
1971
1968
|
}, async resetUpload(e, t) {
|
|
1972
|
-
JSON.stringify(e).indexOf("Error") !== -1 && (t.client && t.client.cancel(), t.client = await
|
|
1969
|
+
JSON.stringify(e).indexOf("Error") !== -1 && (t.client && t.client.cancel(), t.client = await Qa(this.signatureType, this.apiFunc), await this.resumeMultipartUpload(t));
|
|
1973
1970
|
}, async resumeMultipartUpload(e) {
|
|
1974
1971
|
if (e) {
|
|
1975
1972
|
const { tempCheckpoint: t } = e;
|
|
@@ -1996,7 +1993,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
1996
1993
|
}, async ossUploadHandle(e) {
|
|
1997
1994
|
let t = { pass: !0, filePath: "" };
|
|
1998
1995
|
try {
|
|
1999
|
-
const { raw: o, percentage: l } = e, a = o, i = await
|
|
1996
|
+
const { raw: o, percentage: l } = e, a = o, i = await Qa(this.signatureType, this.apiFunc, {}, { secure: !0 });
|
|
2000
1997
|
if (this.signatureType == "aliyun_oss_type1") {
|
|
2001
1998
|
if (e.client = i, e.partSize = 0, l < 100 && o.name.indexOf(".") !== -1) {
|
|
2002
1999
|
const n = i.dir + a.name;
|
|
@@ -2057,13 +2054,11 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
|
|
|
2057
2054
|
const { type: t } = e.raw, o = t.indexOf("video") !== -1, l = t.indexOf("image") !== -1, a = t.indexOf("audio") !== -1;
|
|
2058
2055
|
let i, n = "";
|
|
2059
2056
|
return o ? n = "video" : l ? t.indexOf("adobe") === -1 && (n = "image") : a && (n = "audio"), (o || l || a) && n && (i = await this.handleMediaRes(n)(e.raw)), { ResTitle: e.name, ResDescribe: "", OssKey: e.uploadName, ContentType: t || "application/octet-stream", ContentLength: e.size, ...i };
|
|
2060
|
-
} } }, Or = { class: "oss-upload" }, Fr = { class: "cv-upload-task-hd-title" }, Mr = { class: "cv-upload-task-hd-num" }, Er = { class: "cv-upload-task-opts" }, Nr = { class: "cv-upload-task-lists" }, Br = { class: "cv-upload-task-item-name" }, zr = { class: "name" }, Hr = { class: "file-name-item" }, Ar = { key: 0, class: "speed" }, Pr = { key: 1, class: "speed" }, jr = { key: 2, class: "success" }, Rr = { class: "total" }, Ur = { key: 0, class: "name error" }, Wr = { class: "cv-upload-task-item-tool" }, Yr = ["onClick"], Xr = ["onClick"],
|
|
2057
|
+
} } }, Or = { class: "oss-upload" }, Fr = { class: "cv-upload-task-hd-title" }, Mr = { class: "cv-upload-task-hd-num" }, Er = { class: "cv-upload-task-opts" }, Nr = { class: "cv-upload-task-lists" }, Br = { class: "cv-upload-task-item-name" }, zr = { class: "name" }, Hr = { class: "file-name-item" }, Ar = { key: 0, class: "speed" }, Pr = { key: 1, class: "speed" }, jr = { key: 2, class: "success" }, Rr = { class: "total" }, Ur = { key: 0, class: "name error" }, Wr = { class: "cv-upload-task-item-tool" }, Yr = ["onClick"], Xr = ["onClick"], Qt = S({ name: "cvUploadOss", mixins: [$r] }, [["render", function(e, t, o, l, a, i) {
|
|
2061
2058
|
const n = C("el-button"), c = C("el-upload"), h = C("el-progress"), p = C("cv-icons"), m = C("el-dialog");
|
|
2062
2059
|
return d(), u("div", Or, [b(c, { ref: "upload", action: "", "show-file-list": !1, multiple: "", "on-change": e.handleChange, "before-upload": e.handleBeforeUpload, "auto-upload": !1, limit: 100, "on-exceed": e.handleExceed, accept: e.accept }, { default: v(() => [b(n, { type: "primary", icon: "ElIconUpload", round: "" }, { default: v(() => [...t[1] || (t[1] = [L("上 传", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change", "before-upload", "on-exceed", "accept"]), b(m, { modelValue: e.dialogVisible, "onUpdate:modelValue": t[0] || (t[0] = (f) => e.dialogVisible = f), width: "650px", height: "500", "destroy-on-close": "", "close-on-click-modal": !1, "before-close": e.handleClose, style: { height: "500px" } }, { header: v(() => [r("div", Fr, [t[2] || (t[2] = r("span", null, "上传", -1)), r("span", Mr, T(e.fileList.length - e.unList.length) + "/" + T(e.fileList.length), 1)])]), default: v(() => [r("div", Er, [b(n, { type: "primary", icon: "ElIconVideoPlay", disabled: e.uploadDisabled, onClick: e.starUpload }, { default: v(() => [...t[3] || (t[3] = [L("开始上传", -1)])]), _: 1 }, 8, ["disabled", "onClick"]), b(n, { type: "success", icon: "ElIconRefreshRight", disabled: e.resumeDisabled, onClick: e.resumeUpload }, { default: v(() => [...t[4] || (t[4] = [L("继续", -1)])]), _: 1 }, 8, ["disabled", "onClick"]), b(n, { type: "danger", icon: "ElIconVideoPause", disabled: e.pauseDisabled, onClick: e.stopUpload }, { default: v(() => [...t[5] || (t[5] = [L("暂停", -1)])]), _: 1 }, 8, ["disabled", "onClick"])]), r("div", Nr, [(d(!0), u(F, null, E(e.fileList, (f, g) => (d(), u("div", { class: "cv-upload-task-item-box", key: g }, [r("div", Br, [r("div", zr, [r("span", Hr, T(g + 1) + "." + T(f.name), 1), f.isLoading && !f.isPlay ? (d(), u("span", Ar, "准备就绪")) : w("", !0), f.isPlay && f.percentage !== 100 ? (d(), u("span", Pr, T(f.speed) + "/s", 1)) : w("", !0), f.percentage === 100 ? (d(), u("span", jr, "完成")) : w("", !0), r("div", Rr, T(e.filterSize(f.size)), 1)]), f.errMsg ? (d(), u("span", Ur, T(f.errMsg), 1)) : w("", !0), f.percentage < 100 && !f.errMsg ? (d(), V(h, { key: 1, percentage: f.percentage }, null, 8, ["percentage"])) : (d(), V(h, { key: 2, percentage: f.percentage, status: f.errMsg ? "exception" : "success" }, null, 8, ["percentage", "status"]))]), r("div", Wr, [!f.percentage || 0 < f.percentage < 100 && !f.isPlay ? (d(), u("span", { key: 0, class: "icon delete", onClick: (k) => e.handleDeleteChangeFile(g) }, [b(p, { type: "ElIconClose" })], 8, Yr)) : w("", !0), f.percentage && f.percentage !== 100 ? (d(), u("span", { key: 1, class: z(["icon", f.isPlay ? "delete" : "success"]), onClick: (k) => e.handleStopChangeFile(g, f) }, [f.isPlay ? (d(), V(p, { key: 0, type: "ElIconVideoPause" })) : (d(), V(p, { key: 1, type: "ElIconCaretRight" }))], 10, Xr)) : w("", !0)])]))), 128))])]), _: 1 }, 8, ["modelValue", "before-close"])]);
|
|
2063
2060
|
}], ["__scopeId", "data-v-9c3ea43c"]]);
|
|
2064
|
-
|
|
2065
|
-
e.component(Xt.name, Xt);
|
|
2066
|
-
}, qt.install = function(e) {
|
|
2061
|
+
qt.install = function(e) {
|
|
2067
2062
|
e.component(qt.name, qt);
|
|
2068
2063
|
}, Kt.install = function(e) {
|
|
2069
2064
|
e.component(Kt.name, Kt);
|
|
@@ -2071,8 +2066,10 @@ Xt.install = function(e) {
|
|
|
2071
2066
|
e.component(Gt.name, Gt);
|
|
2072
2067
|
}, Zt.install = function(e) {
|
|
2073
2068
|
e.component(Zt.name, Zt);
|
|
2069
|
+
}, Qt.install = function(e) {
|
|
2070
|
+
e.component(Qt.name, Qt);
|
|
2074
2071
|
};
|
|
2075
|
-
const qr = { class: "tabs-header" },
|
|
2072
|
+
const qr = { class: "tabs-header" }, Jt = S({ name: "cvTabsJump", props: { tabPosition: { type: String, default: "top" } }, provide() {
|
|
2076
2073
|
return { addChildComponents: (e) => {
|
|
2077
2074
|
this.childComponents.push(e);
|
|
2078
2075
|
}, clearChildClass: () => {
|
|
@@ -2092,15 +2089,15 @@ const qr = { class: "tabs-header" }, Qt = S({ name: "cvTabsJump", props: { tabPo
|
|
|
2092
2089
|
this.current && this.handleClick();
|
|
2093
2090
|
}, handleClick() {
|
|
2094
2091
|
this.clearChildClass(), this.className = "active", this.$emit("click");
|
|
2095
|
-
} } }, Gr = { key: 1 },
|
|
2092
|
+
} } }, Gr = { key: 1 }, eo = S(Kr, [["render", function(e, t, o, l, a, i) {
|
|
2096
2093
|
return M((d(), u("div", { class: z(["cv-tab-pane", a.className]), onClick: t[0] || (t[0] = (...n) => i.handleClick && i.handleClick(...n)) }, [e.$slots.label ? D(e.$slots, "label", { key: 0 }) : (d(), u("span", Gr, T(o.label), 1))], 2)), [[A, a.isshow]]);
|
|
2097
2094
|
}]]);
|
|
2098
|
-
|
|
2099
|
-
e.component(Qt.name, Qt);
|
|
2100
|
-
}, Jt.install = function(e) {
|
|
2095
|
+
Jt.install = function(e) {
|
|
2101
2096
|
e.component(Jt.name, Jt);
|
|
2097
|
+
}, eo.install = function(e) {
|
|
2098
|
+
e.component(eo.name, eo);
|
|
2102
2099
|
};
|
|
2103
|
-
const Zr = { class: "cv-draw-captcha" }, Qr = ["width", "height"],
|
|
2100
|
+
const Zr = { class: "cv-draw-captcha" }, Qr = ["width", "height"], to = S({ name: "cvDrawCaptcha", props: { modelValue: { type: [String, Number], default: "1234" }, baseCode: { type: String, default: "1234567890ABCDEFGHGKMNPQRSTUVWXY" }, fontSizeMin: { type: Number, default: 25 }, fontSizeMax: { type: Number, default: 30 }, backgroundColorMin: { type: Number, default: 255 }, backgroundColorMax: { type: Number, default: 255 }, colorMin: { type: Number, default: 0 }, colorMax: { type: Number, default: 160 }, lineColorMin: { type: Number, default: 100 }, lineColorMax: { type: Number, default: 255 }, dotColorMin: { type: Number, default: 0 }, dotColorMax: { type: Number, default: 255 }, contentWidth: { type: Number, default: 112 }, contentHeight: { type: Number, default: 31 }, refreshNum: { type: Number, default: 1 } }, data: () => ({ localCode: "" }), watch: { modelValue(e) {
|
|
2104
2101
|
this.localCode = e, this.drawPic();
|
|
2105
2102
|
}, refreshNum() {
|
|
2106
2103
|
this.refreshCode(), this.drawPic();
|
|
@@ -2130,37 +2127,45 @@ const Zr = { class: "cv-draw-captcha" }, Qr = ["width", "height"], eo = S({ name
|
|
|
2130
2127
|
for (let t = 0; t < 80; t++) e.fillStyle = this.randomColor(0, 255), e.beginPath(), e.arc(this.randomNum(0, this.contentWidth), this.randomNum(0, this.contentHeight), 1, 0, 2 * Math.PI), e.fill();
|
|
2131
2128
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
2132
2129
|
return d(), u("div", Zr, [r("canvas", { id: "cv-draw-captcha", width: o.contentWidth, height: o.contentHeight, onClick: t[0] || (t[0] = (...n) => i.refreshCode && i.refreshCode(...n)) }, null, 8, Qr)]);
|
|
2133
|
-
}]]),
|
|
2130
|
+
}]]), oo = S({ name: "cvDrawQrcode", data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
|
|
2134
2131
|
return d(), u("div", null, "二维码");
|
|
2135
2132
|
}]]);
|
|
2136
|
-
|
|
2137
|
-
e.component(eo.name, eo);
|
|
2138
|
-
}, to.install = function(e) {
|
|
2133
|
+
to.install = function(e) {
|
|
2139
2134
|
e.component(to.name, to);
|
|
2135
|
+
}, oo.install = function(e) {
|
|
2136
|
+
e.component(oo.name, oo);
|
|
2140
2137
|
};
|
|
2141
|
-
const Jr = { name: "cvTagBase", mixins: [], components: {}, emits: ["update:modelValue", "exceed-max-length"], props: { ...cn.props, modelValue: { type: [Array,
|
|
2142
|
-
this.
|
|
2138
|
+
const Jr = { name: "cvTagBase", mixins: [], components: {}, emits: ["update:modelValue", "exceed-max-length"], props: { ...cn.props, modelValue: { type: [Array, String], default: () => [] }, closable: { type: Boolean, default: !1 }, disableTransitions: { type: Boolean, default: !1 }, effect: { type: String, default: "light" }, color: { type: String, default: "" }, hit: { type: Boolean, default: !1 }, type: { type: [String], default: "primary" }, size: { type: [String], default: "large" }, disabled: { type: Boolean, default: !1 }, maxlength: { type: Number, default: 3, validator: (e) => e > 0 } }, watch: { modelValue(e) {
|
|
2139
|
+
this._init_parse_value();
|
|
2143
2140
|
}, localVal(e) {
|
|
2144
|
-
this
|
|
2145
|
-
} }, data() {
|
|
2146
|
-
|
|
2147
|
-
}, methods: {
|
|
2141
|
+
this._parse_last();
|
|
2142
|
+
} }, data: () => ({ localVal: "" }), mounted() {
|
|
2143
|
+
this._init_parse_value();
|
|
2144
|
+
}, methods: { _init_parse_value() {
|
|
2145
|
+
if (this.modelValue) if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
|
|
2146
|
+
const e = String(this.modelValue).split(",").map((t) => t.trim());
|
|
2147
|
+
this.localVal = Be(e);
|
|
2148
|
+
} else this.localVal = Be(this.modelValue);
|
|
2149
|
+
}, _parse_last() {
|
|
2150
|
+
let e = this.localVal, t = e.join(",");
|
|
2151
|
+
this.$emit("update:modelValue", t), e.length >= this.maxlength && this.$emit("exceed-max-length", e.length);
|
|
2152
|
+
}, addTag() {
|
|
2148
2153
|
this.disabled || this.localVal.length >= this.maxlength || (this.localVal.push("新标签"), this.$nextTick(() => {
|
|
2149
2154
|
let e = this.localVal.length, t = this.$refs["newTag" + (e - 1)][0], o = document.createRange();
|
|
2150
|
-
o.selectNodeContents(t), window.getSelection().removeAllRanges(), window.getSelection().addRange(o);
|
|
2155
|
+
o.selectNodeContents(t), window.getSelection().removeAllRanges(), window.getSelection().addRange(o), this._parse_last();
|
|
2151
2156
|
}));
|
|
2152
2157
|
}, checkTag(e) {
|
|
2153
2158
|
if (this.disabled) return;
|
|
2154
2159
|
let t = this.$refs[`newTag${e}`][0].innerText.trim();
|
|
2155
|
-
t.length == 0 ? this.localVal.pop() : this.localVal[e] = t;
|
|
2160
|
+
t.length == 0 ? this.localVal.pop() : this.localVal[e] = t, this._parse_last();
|
|
2156
2161
|
}, removeTag(e) {
|
|
2157
|
-
this.disabled || this.localVal.splice(e, 1);
|
|
2158
|
-
} } }, ec = { class: "cv-tag-base" }, tc = ["contenteditable", "onKeyup", "onBlur"], oc = { key: 1, class: "cv-tag-maxlength-hint" },
|
|
2162
|
+
this.disabled || (this.localVal.splice(e, 1), this._parse_last());
|
|
2163
|
+
} } }, ec = { class: "cv-tag-base" }, tc = ["contenteditable", "onKeyup", "onBlur"], oc = { key: 1, class: "cv-tag-maxlength-hint" }, ao = S(Jr, [["render", function(e, t, o, l, a, i) {
|
|
2159
2164
|
const n = C("el-tag"), c = C("cv-icons");
|
|
2160
2165
|
return d(), u("div", ec, [(d(!0), u(F, null, E(a.localVal, (h, p) => (d(), V(n, O({ class: "cv-tag-content" }, { ref_for: !0 }, { closable: !o.disabled && o.closable, disableTransitions: o.disableTransitions, effect: o.effect, type: o.type, color: o.color, hit: o.hit, size: o.size }, { key: p, onClose: (m) => i.removeTag(p), disabled: o.disabled }), { default: v(() => [r("div", { class: "cv-tag-item", contenteditable: !o.disabled && "plaintext-only", ref_for: !0, ref: `newTag${p}`, onKeyup: Oe((m) => !o.disabled && i.checkTag(p), ["enter"]), onBlur: (m) => !o.disabled && i.checkTag(p) }, T(h), 41, tc)]), _: 2 }, 1040, ["onClose", "disabled"]))), 128)), !o.disabled && a.localVal.length < o.maxlength ? (d(), V(c, { key: 0, type: "ElIconCirclePlus", size: "20", onClick: t[0] || (t[0] = (h) => i.addTag()) })) : w("", !0), !o.disabled && a.localVal.length >= o.maxlength ? (d(), u("span", oc, "已达到最大数量 (" + T(o.maxlength) + ")", 1)) : w("", !0)]);
|
|
2161
2166
|
}]]);
|
|
2162
|
-
|
|
2163
|
-
e.component(
|
|
2167
|
+
ao.install = function(e) {
|
|
2168
|
+
e.component(ao.name, ao);
|
|
2164
2169
|
};
|
|
2165
2170
|
const ac = { name: "cvTransferTable", props: { modelValue: { type: [Array], default: () => [] }, showQuery: { type: Boolean, default: !1 }, showPagination: { type: Boolean, default: !1 }, paginationCallBack: { type: Function, default: function() {
|
|
2166
2171
|
return new Promise((e, t) => {
|
|
@@ -2242,12 +2247,12 @@ const ac = { name: "cvTransferTable", props: { modelValue: { type: [Array], defa
|
|
|
2242
2247
|
for (const e in this.leftQueryCondition) this.leftQueryCondition[e] = void 0;
|
|
2243
2248
|
for (const e in this.rightQueryCondition) this.rightQueryCondition[e] = void 0;
|
|
2244
2249
|
this.pageIndex = 1, this.handlePaginationCallBack();
|
|
2245
|
-
} } }, ic = { class: "cv-transfer-table" }, lc = { class: "transfer-panel" }, nc = { class: "transfer-panel-header" }, sc = { key: 0 }, rc = { style: { padding: "5px" } }, cc = { class: "transfer-buttons" }, dc = { key: 0, class: "button-text" }, hc = { key: 0, class: "button-text" }, pc = { class: "transfer-panel" }, uc = { class: "transfer-panel-header" }, mc = { key: 0 }, gc = { style: { padding: "5px" } },
|
|
2250
|
+
} } }, ic = { class: "cv-transfer-table" }, lc = { class: "transfer-panel" }, nc = { class: "transfer-panel-header" }, sc = { key: 0 }, rc = { style: { padding: "5px" } }, cc = { class: "transfer-buttons" }, dc = { key: 0, class: "button-text" }, hc = { key: 0, class: "button-text" }, pc = { class: "transfer-panel" }, uc = { class: "transfer-panel-header" }, mc = { key: 0 }, gc = { style: { padding: "5px" } }, io = S(ac, [["render", function(e, t, o, l, a, i) {
|
|
2246
2251
|
const n = C("el-button"), c = C("el-form-item"), h = C("el-form"), p = C("el-table-column"), m = C("el-table"), f = C("el-pagination"), g = C("cv-icons");
|
|
2247
2252
|
return d(), u("div", ic, [r("div", lc, [r("p", nc, [r("span", null, T(o.titleTexts && o.titleTexts[0]), 1), r("span", null, T(a.leftSelection.length) + "/" + T(a.leftTableData.length), 1)]), o.showQuery ? (d(), u("div", sc, [b(h, { inline: !0, model: a.leftQueryCondition, class: "cv-transfer-form" }, { default: v(() => [D(e.$slots, "leftCondition", { scope: a.leftQueryCondition }), b(c, null, { default: v(() => [b(n, { type: "primary", onClick: t[0] || (t[0] = (k) => i.onLeftQuerySubmit()) }, { default: v(() => [L(T(o.queryTexts[0]), 1)]), _: 1 })]), _: 1 })]), _: 3 }, 8, ["model"])])) : w("", !0), b(m, { ref: "leftTable", "max-height": o.maxHeight, height: o.minHeight, data: a.leftTableData, "row-key": o.tableRowKey, "row-style": i.handleRowStyle, onRowClick: i.handleLeftRowClick, onSelectionChange: i.handleLeftSelectionChange, border: "", stripe: "" }, { default: v(() => [b(p, { width: "40px", type: "selection", selectable: i.handleSelectable }, null, 8, ["selectable"]), (d(!0), u(F, null, E(o.leftColumns, (k) => (d(), V(p, { prop: k.id, key: k.id, label: k.label, width: k.width }, { default: v((x) => [D(e.$slots, "default", { scope: { row: x.row, col: k } }, () => [r("span", null, T(x.row[k.id]), 1)])]), _: 2 }, 1032, ["prop", "label", "width"]))), 128))]), _: 3 }, 8, ["max-height", "height", "data", "row-key", "row-style", "onRowClick", "onSelectionChange"]), r("div", rc, [o.showPagination ? (d(), V(f, { key: 0, onSizeChange: i.handleSizeChange, onCurrentChange: i.handleCurrentChange, "current-page": a.pageIndex, "page-sizes": [10, 20, 50, 100], "page-size": a.pageSize, "pager-count": 5, total: a.totalSize, layout: "total, sizes, prev, pager, next" }, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "page-size", "total"])) : w("", !0)])]), r("div", cc, [b(n, { type: "primary", class: z(i.buttonClasses), disabled: i.disabledLeftButton, onClick: i.addToRight }, { default: v(() => [o.buttonTexts[0] !== void 0 ? (d(), u("span", dc, T(o.buttonTexts[0]), 1)) : w("", !0), b(g, { type: "ElIconArrowRight" })]), _: 1 }, 8, ["class", "disabled", "onClick"]), b(n, { type: "primary", class: z(i.buttonClasses), disabled: a.rightSelection.length === 0, onClick: i.addToLeft }, { default: v(() => [b(g, { type: "ElIconArrowLeft" }), o.buttonTexts[1] !== void 0 ? (d(), u("span", hc, T(o.buttonTexts[1]), 1)) : w("", !0)]), _: 1 }, 8, ["class", "disabled", "onClick"])]), r("div", pc, [r("p", uc, [r("span", null, T(o.titleTexts && o.titleTexts[1]), 1), r("span", null, T(a.rightSelection.length) + "/" + T(a.rightTableData.length), 1)]), o.showQuery ? (d(), u("div", mc, [b(h, { inline: !0, model: a.rightQueryCondition, class: "cv-transfer-form" }, { default: v(() => [D(e.$slots, "rightCondition", { scope: a.rightQueryCondition }), b(c, null, { default: v(() => [b(n, { type: "primary", onClick: t[1] || (t[1] = (k) => i.onRightQuerySubmit()) }, { default: v(() => [L(T(o.queryTexts[1]), 1)]), _: 1 })]), _: 1 })]), _: 3 }, 8, ["model"])])) : w("", !0), b(m, { ref: "rightTable", "max-height": o.maxHeight, height: o.minHeight, data: i.calcRightTableData, "row-key": o.tableRowKey, onRowClick: i.handleRightRowClick, onSelectionChange: i.handleRightSelectionChange, border: "", stripe: "" }, { default: v(() => [b(p, { width: "40px", type: "selection" }), (d(!0), u(F, null, E(o.rightColumns || o.leftColumns, (k) => (d(), V(p, { prop: k.id, key: k.id, label: k.label, width: k.width }, { default: v((x) => [D(e.$slots, "default", { scope: { row: x.row, col: k } }, () => [r("span", null, T(x.row[k.id]), 1)])]), _: 2 }, 1032, ["prop", "label", "width"]))), 128))]), _: 3 }, 8, ["max-height", "height", "data", "row-key", "onRowClick", "onSelectionChange"]), r("div", gc, [o.showPagination ? (d(), V(f, { key: 0, total: a.rightTableData.length, layout: "total" }, null, 8, ["total"])) : w("", !0)])])]);
|
|
2248
2253
|
}]]);
|
|
2249
|
-
|
|
2250
|
-
e.component(
|
|
2254
|
+
io.install = function(e) {
|
|
2255
|
+
e.component(io.name, io);
|
|
2251
2256
|
};
|
|
2252
2257
|
const Ha = { provide() {
|
|
2253
2258
|
return { pageCurr: this.loadConfigSetting.pageCurr || 1, pageLimit: this.loadConfigSetting.pageLimit || 10 };
|
|
@@ -2265,7 +2270,7 @@ const Ha = { provide() {
|
|
|
2265
2270
|
this.loadPageCurr = e, this.getData();
|
|
2266
2271
|
}, handleSizeChange(e) {
|
|
2267
2272
|
this.loadPageLimit = e, this.getData();
|
|
2268
|
-
} } }, fc = { name: "cvTableBase", mixins: [
|
|
2273
|
+
} } }, fc = { name: "cvTableBase", mixins: [jo, Ha], props: { align: { type: String, default: "left" }, showPagebreak: { type: [Boolean, String], default: !0 }, tablePagin: { type: Object, default: () => ({}) }, tableConfig: { type: Object, default: () => ({}) }, tableRefresh: { type: Number, default: () => 0 } }, data: () => ({ paginationGroup: [10, 20, 30, 50, 100, 200], paginationCount: 7, searchData: {}, tableConfDef: {} }), watch: { tableRefresh(e, t) {
|
|
2269
2274
|
this.initConfAll(), this.refresh();
|
|
2270
2275
|
} }, updated() {
|
|
2271
2276
|
}, created() {
|
|
@@ -2284,10 +2289,10 @@ const Ha = { provide() {
|
|
|
2284
2289
|
this.searchData = {}, this.page = 1, this.getData();
|
|
2285
2290
|
}, refresh(e) {
|
|
2286
2291
|
this.getData();
|
|
2287
|
-
} } }, vc = { class: "cv-table-list" }, bc = { key: 0, class: "cv-tablie-list-page page" },
|
|
2292
|
+
} } }, vc = { class: "cv-table-list" }, bc = { key: 0, class: "cv-tablie-list-page page" }, lo = S(fc, [["render", function(e, t, o, l, a, i) {
|
|
2288
2293
|
const n = C("el-table"), c = C("cv-icons"), h = C("el-button"), p = C("el-pagination"), m = re("loading");
|
|
2289
2294
|
return d(), u("div", vc, [M((d(), V(n, O(e.$props, { data: e.loadDataList, style: { width: "100%" }, onSelectionChange: i.handleSelectionChange }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["data", "onSelectionChange"])), [[m, e.loadDataLoading]]), o.showPagebreak ? M((d(), u("div", bc, [b(h, { onClick: i.refresh, style: { float: "left", margin: "0 10px 0 0", padding: "5px 10px" } }, { default: v(() => [b(c, { type: "ElIconRefresh", size: "14" })]), _: 1 }, 8, ["onClick"]), b(p, { background: "", onSizeChange: e.handleSizeChange, onCurrentChange: e.handleCurrentChange, "pager-count": a.paginationCount, "page-sizes": a.paginationGroup, "current-page": e.loadPageCurr, "page-size": e.loadPageLimit, layout: "total, sizes, prev, pager, next, jumper", total: e.loadDataTotal }, null, 8, ["onSizeChange", "onCurrentChange", "pager-count", "page-sizes", "current-page", "page-size", "total"])], 512)), [[A, e.loadDataLoading === !1]]) : w("", !0)]);
|
|
2290
|
-
}]]), yc = { class: "cv-table-tree" },
|
|
2295
|
+
}]]), yc = { class: "cv-table-tree" }, no = S({ name: "cvTableTree", mixins: [jo, Ha], props: { tableConfig: { type: Object, default: () => ({}) }, tableRefresh: { type: Number, default: () => 0 } }, data: () => ({ searchData: {}, tableConfDef: { tablePrimary: "", childName: "children" }, pager_count: 7, page: 1 }), watch: { tableRefresh(e, t) {
|
|
2291
2296
|
this.refresh();
|
|
2292
2297
|
} }, created() {
|
|
2293
2298
|
this.initConfAll(), this.getData();
|
|
@@ -2308,7 +2313,7 @@ const Ha = { provide() {
|
|
|
2308
2313
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
2309
2314
|
const n = C("el-table"), c = re("loading");
|
|
2310
2315
|
return d(), u("div", yc, [M((d(), V(n, O(e.$props, { data: e.loadDataList, style: { width: "100%" }, onSelectionChange: i.handleSelectionChange, "row-key": e.loadConfigSetting.tablePrimary, "tree-props": { children: e.loadConfigSetting.childName, hasChildren: "hasChildren" } }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["data", "onSelectionChange", "row-key", "tree-props"])), [[c, e.loadDataLoading]])]);
|
|
2311
|
-
}]]), Cc = { name: "cvTableEditor", mixins: [
|
|
2316
|
+
}]]), Cc = { name: "cvTableEditor", mixins: [jo, Ha], props: { border: { type: [Boolean], default: !0 }, tableConfig: { type: [Array, Object], default: () => ({}) } }, data: () => ({ mergeRules: {}, apiFunc: null, tableConfDef: {}, cell_click_index: null, cell_click_label: "" }), watch: {}, created() {
|
|
2312
2317
|
this.loadConfigSetting = Object.assign({}, this.tableConfDef, this.tableConfig);
|
|
2313
2318
|
}, mounted() {
|
|
2314
2319
|
}, methods: { cell_click(e, t, o, l) {
|
|
@@ -2321,16 +2326,16 @@ const Ha = { provide() {
|
|
|
2321
2326
|
return;
|
|
2322
2327
|
}
|
|
2323
2328
|
}, handleChangeTData(e) {
|
|
2324
|
-
} } }, wc = { class: "cv-table-editor" },
|
|
2329
|
+
} } }, wc = { class: "cv-table-editor" }, so = S(Cc, [["render", function(e, t, o, l, a, i) {
|
|
2325
2330
|
const n = C("el-table"), c = re("loading");
|
|
2326
2331
|
return d(), u("div", wc, [M((d(), V(n, O(e.$props, { data: e.loadDataList, style: { width: "100%" }, "row-class-name": "cv-tbed-tr" }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["data"])), [[c, e.loadDataLoading]])]);
|
|
2327
|
-
}]]),
|
|
2332
|
+
}]]), ro = S({ name: "cvTbColumnIndex", inject: { pageCurr: { default: 1 }, pageLimit: { default: 10 } }, props: { ...Z.props, fixed: { type: [String], default: "left" }, align: { type: String, default: "center" }, width: { type: [String, Number], default: 55 }, continuity: { type: [Boolean, String], default: !1 } }, data: () => ({}), created() {
|
|
2328
2333
|
}, methods: { indexMethod(e) {
|
|
2329
2334
|
return this.continuity && this.pageCurr && this.pageLimit ? e + 1 + (this.pageCurr - 1) * this.pageLimit : e + 1;
|
|
2330
2335
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
2331
2336
|
const n = C("el-table-column");
|
|
2332
2337
|
return d(), V(n, O(e.$props, { type: "index", index: i.indexMethod }), null, 16, ["index"]);
|
|
2333
|
-
}]]),
|
|
2338
|
+
}]]), co = S({ name: "cvTbColumnCheck", props: { ...Z.props, fixed: { type: [String], default: "left" }, align: { type: [String], default: "center" }, width: { type: [String, Number], default: 55 } }, data: () => ({}), created() {
|
|
2334
2339
|
} }, [["render", function(e, t, o, l, a, i) {
|
|
2335
2340
|
const n = C("el-table-column");
|
|
2336
2341
|
return d(), V(n, O(e.$props, { type: "selection" }), null, 16);
|
|
@@ -2338,7 +2343,7 @@ const Ha = { provide() {
|
|
|
2338
2343
|
}, methods: { getContentText(e) {
|
|
2339
2344
|
let t = e.row[this.prop];
|
|
2340
2345
|
return this.formatter && (t = this.formatter(e.row, e.column)), t;
|
|
2341
|
-
} } }, xc = { style: { display: "contents" } },
|
|
2346
|
+
} } }, xc = { style: { display: "contents" } }, ho = S(kc, [["render", function(e, t, o, l, a, i) {
|
|
2342
2347
|
const n = C("el-table-column");
|
|
2343
2348
|
return d(), V(n, U(Y(e.$props)), { default: v((c) => [r("div", xc, T(c.row[e.prop]), 1)]), _: 1 }, 16);
|
|
2344
2349
|
}]]), Sc = { name: "cvTbColumnImg", props: { ...Z.props, imgWidth: { type: [String, Number], default: null }, imgHeight: { type: [String, Number], default: null } }, data: () => ({ localImgWidth: "50px", localImgHeight: "50px", localImgArr: [], localImgOne: "" }), created() {
|
|
@@ -2358,22 +2363,22 @@ const Ha = { provide() {
|
|
|
2358
2363
|
}, handleImgLeng(e) {
|
|
2359
2364
|
let t = e[this.prop] || null;
|
|
2360
2365
|
return t ? Object.prototype.toString.call(t) === "[object Array]" ? t.length : Object.prototype.toString.call(t) === "[object String]" ? 1 : void 0 : 0;
|
|
2361
|
-
} } }, Vc = { key: 0, class: "cv-table-column-img-mark" }, _c = { class: "cv-table-column-img-text" },
|
|
2366
|
+
} } }, Vc = { key: 0, class: "cv-table-column-img-mark" }, _c = { class: "cv-table-column-img-text" }, po = S(Sc, [["render", function(e, t, o, l, a, i) {
|
|
2362
2367
|
const n = C("el-image"), c = C("el-table-column");
|
|
2363
2368
|
return d(), V(c, U(Y(e.$props)), { default: v((h) => [r("div", { class: "cv-table-column-img-box", style: H({ width: a.localImgWidth, height: a.localImgHeight }) }, [b(n, { style: H({ width: a.localImgWidth, height: a.localImgHeight }), fit: "scale-down", lazy: "", src: i.handleImgOne(h.row), "preview-src-list": i.handleImgArr(h.row) }, { error: v(() => [...t[0] || (t[0] = [r("span", { class: "el-image__error cv-table-column-img-err" }, [L(" 暂无 "), r("br"), L(" 图片 ")], -1)])]), _: 1 }, 8, ["style", "src", "preview-src-list"]), i.handleImgLeng(h.row) > 1 ? (d(), u("p", Vc, [r("span", _c, T(i.handleImgLeng(h.row)) + "张", 1)])) : w("", !0)], 4)]), _: 1 }, 16);
|
|
2364
|
-
}]]),
|
|
2369
|
+
}]]), uo = S({ name: "cvTbColumnOpt", props: { ...Z.props, fixed: { type: [String], default: "right" }, label: { type: [String], default: "操作" } }, data: () => ({}), created() {
|
|
2365
2370
|
} }, [["render", function(e, t, o, l, a, i) {
|
|
2366
2371
|
const n = C("el-table-column");
|
|
2367
2372
|
return d(), V(n, U(Y(e.$props)), { default: v((c) => [D(e.$slots, "default", U(Y({ row: c.row, $index: c.$index, scope: c })))]), _: 3 }, 16);
|
|
2368
|
-
}]]),
|
|
2373
|
+
}]]), mo = S({ name: "cvTbColumnBase", props: { ...Z.props, width: { type: [String, Number], default: "" } }, data: () => ({}), created() {
|
|
2369
2374
|
} }, [["render", function(e, t, o, l, a, i) {
|
|
2370
2375
|
const n = C("el-table-column");
|
|
2371
2376
|
return d(), V(n, U(Y(e.$props)), { default: v((c) => [D(e.$slots, "default", U(Y({ row: c.row, $index: c.$index, scope: c })))]), _: 3 }, 16);
|
|
2372
|
-
}]]),
|
|
2377
|
+
}]]), go = S({ name: "cvTbColumnExpand", props: { ...Z.props }, data: () => ({}), created() {
|
|
2373
2378
|
} }, [["render", function(e, t, o, l, a, i) {
|
|
2374
2379
|
const n = C("el-table-column");
|
|
2375
2380
|
return d(), V(n, O(e.$props, { type: "expand" }), { default: v((c) => [D(e.$slots, "default", U(Y({ row: c.row, $index: c.$index, props: c })))]), _: 3 }, 16);
|
|
2376
|
-
}]]),
|
|
2381
|
+
}]]), fo = S({ name: "cvTbColumnEnum", props: { ...Z.props, dataLists: { type: [Object, Array], default: () => ({}) } }, data: () => ({}), created() {
|
|
2377
2382
|
}, methods: { dealTypeEnum(e) {
|
|
2378
2383
|
let t = Object.keys(this.dataLists);
|
|
2379
2384
|
return e[this.prop] ? this.dataLists[e[this.prop]] || "" : this.dataLists[t[0]] || "";
|
|
@@ -2437,10 +2442,10 @@ const Ha = { provide() {
|
|
|
2437
2442
|
}, 600);
|
|
2438
2443
|
}, inputSearchFilter: (e) => (t) => t.value.toLowerCase().indexOf(e.toLowerCase()) === 0, searchIconClick() {
|
|
2439
2444
|
this.isEditIndex = null;
|
|
2440
|
-
} } }, Tc = { class: "name" }, Lc = { class: "addr" }, Dc = { class: "addr" }, $c = { class: "droplist-item" }, Oc = { class: "name" }, Fc = { key: 0, class: "attr" }, Mc = { class: "price" }, Ec = { class: "rest" }, Nc = ["onClick"],
|
|
2445
|
+
} } }, Tc = { class: "name" }, Lc = { class: "addr" }, Dc = { class: "addr" }, $c = { class: "droplist-item" }, Oc = { class: "name" }, Fc = { key: 0, class: "attr" }, Mc = { class: "price" }, Ec = { class: "rest" }, Nc = ["onClick"], vo = S(Ic, [["render", function(e, t, o, l, a, i) {
|
|
2441
2446
|
const n = C("ElIconCircleClose"), c = C("el-icon"), h = C("el-autocomplete"), p = C("el-table-column");
|
|
2442
2447
|
return d(), V(p, O(e.$props, { "class-name": "cv-table-editor-search-column" }), { default: v((m) => [a.isEditIndex == m.$index ? (d(), V(h, O({ key: 0, ref: `cv-tbce-autocomplete${m.$index}` }, a.autocompleteAttr, { modelValue: m.row[e.prop], "onUpdate:modelValue": (f) => m.row[e.prop] = f, "popper-class": `cv-tbce-autocomplete cvtegac${m.$index}`, "fetch-suggestions": i.searchQuery, onSelect: (f) => i.searchSelect(f, m.row, m.$index), onFocus: (f) => i.searchFocus(m.$index, f), onBlur: (f) => i.searchBlur(m.row, m.$index) }), { suffix: v(() => [b(c, { onClick: (f) => i.searchIconClick(m.row, m.$index) }, { default: v(() => [b(n)]), _: 1 }, 8, ["onClick"])]), default: v(({ item: f }) => [D(e.$slots, "default", { item: f }, () => [r("div", Tc, T(f.row_name), 1), r("span", Lc, "价格:" + T(f.row_price), 1), r("span", Dc, T(f.row_rest), 1), r("div", $c, [r("div", Oc, [L(T(f.row_name) + " ", 1), f.row_attr ? (d(), u("div", Fc, "[ " + T(f.row_attr) + "]", 1)) : w("", !0)]), r("div", Mc, "¥ " + T(f.row_price), 1), r("div", Ec, T(f.attr_stock), 1)])])]), _: 2 }, 1040, ["modelValue", "onUpdate:modelValue", "popper-class", "fetch-suggestions", "onSelect", "onFocus", "onBlur"])) : (d(), u("span", { key: 1, class: "showtext", onClick: (f) => i.searchEdit(m.row, m.$index) }, T(m.row[e.prop]), 9, Nc))]), _: 3 }, 16);
|
|
2443
|
-
}]]),
|
|
2448
|
+
}]]), bo = S({ name: "cvTbEditOpt", props: { tableData: { type: [Array], default: () => [] }, ...Z.props, label: { type: [String], default: "操作" }, align: { type: [String], default: "center" }, width: { type: [String], default: "100" }, fixed: { type: [String], default: "left" }, btnAdd: { type: [Boolean, String], default: !0 }, btnDel: { type: [Boolean, String], default: !0 } }, data: () => ({ localTbData: [] }), watch: { tableData(e) {
|
|
2444
2449
|
this.localTbData = e;
|
|
2445
2450
|
} }, created() {
|
|
2446
2451
|
this.localTbData = this.tableData;
|
|
@@ -2487,16 +2492,16 @@ const Ha = { provide() {
|
|
|
2487
2492
|
this.isEditIndex = a;
|
|
2488
2493
|
} } }, this.currValue);
|
|
2489
2494
|
} } });
|
|
2490
|
-
} }, zc = ["onClick"],
|
|
2495
|
+
} }, zc = ["onClick"], yo = S(Bc, [["render", function(e, t, o, l, a, i) {
|
|
2491
2496
|
const n = C("el-input"), c = C("el-table-column"), h = re("edfocus");
|
|
2492
2497
|
return d(), V(c, O(e.$props, { "class-name": "cv-table-editor-text-column" }), { default: v((p) => [a.isEditIndex != p.$index || o.editAttr.disabled ? (d(), u("span", { key: 1, class: "showtext", onClick: (m) => i.textHdEdit(p.row, p.$index) }, T(p.row[e.prop]), 9, zc)) : M((d(), V(n, O({ key: 0 }, o.editAttr, { clearable: o.editClearable, style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m, onBlur: kl((m) => i.textHdSave(p.row, p.$index), ["prevent"]), onClear: (m) => i.textHdClear(p.row, p.$index) }), null, 16, ["clearable", "style", "class", "modelValue", "onUpdate:modelValue", "onBlur", "onClear"])), [[h]])]), _: 1 }, 16);
|
|
2493
|
-
}]]),
|
|
2498
|
+
}]]), Co = S({ name: "cvTbEditRadio", props: { ...Z.props, editAttr: { type: [Object], default: () => ({}) }, editStyle: { type: [Object], default: () => ({}) }, editClass: { type: [Object], default: () => ({}) }, dataLists: { type: [Object, Array], default: () => ({}) }, dataField: { type: Object, default: () => ({ label: "label", value: "value" }) }, editChange: { type: [Function], default: () => {
|
|
2494
2499
|
} }, editFormatter: { type: [Function], default: () => {
|
|
2495
2500
|
} } }, data: () => ({}), created() {
|
|
2496
2501
|
} }, [["render", function(e, t, o, l, a, i) {
|
|
2497
2502
|
const n = C("el-radio"), c = C("el-radio-group"), h = C("el-table-column");
|
|
2498
2503
|
return d(), V(h, U(Y(e.$props)), { default: v((p) => [b(c, O({ style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 16, ["style", "class", "modelValue", "onUpdate:modelValue"])]), _: 1 }, 16);
|
|
2499
|
-
}]]),
|
|
2504
|
+
}]]), wo = S({ name: "cvTbEditCheckbox", props: { ...Z.props, editAttr: { type: [Object], default: () => ({}) }, editStyle: { type: [Object], default: () => ({}) }, editClass: { type: [Object], default: () => ({}) }, dataLists: { type: [Object, Array], default: () => ({}) }, dataField: { type: Object, default: () => ({ label: "label", value: "value" }) }, editChange: { type: [Function], default: () => {
|
|
2500
2505
|
} }, editFormatter: { type: [Function], default: () => {
|
|
2501
2506
|
} } }, data: () => ({ localVal: [] }), created() {
|
|
2502
2507
|
}, methods: { handleParseValue(e) {
|
|
@@ -2504,16 +2509,14 @@ const Ha = { provide() {
|
|
|
2504
2509
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
2505
2510
|
const n = C("el-checkbox"), c = C("el-checkbox-group"), h = C("el-table-column");
|
|
2506
2511
|
return d(), V(h, U(Y(e.$props)), { default: v((p) => [p.row[e.prop] ? (d(), V(c, O({ key: 0, style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 16, ["style", "class", "modelValue", "onUpdate:modelValue"])) : w("", !0)]), _: 1 }, 16);
|
|
2507
|
-
}]]),
|
|
2512
|
+
}]]), ko = S({ name: "cvTbEditSelect", props: { ...Z.props, editAttr: { type: [Object], default: () => ({}) }, editStyle: { type: [Object], default: () => ({}) }, editClass: { type: [Object], default: () => ({}) }, dataLists: { type: [Object, Array], default: () => ({}) }, dataField: { type: Object, default: () => ({ label: "label", value: "value" }) }, editChange: { type: [Function], default: () => {
|
|
2508
2513
|
} }, editFormatter: { type: [Function], default: () => {
|
|
2509
2514
|
} } }, data: () => ({}), created() {
|
|
2510
2515
|
} }, [["render", function(e, t, o, l, a, i) {
|
|
2511
2516
|
const n = C("el-option"), c = C("el-select"), h = C("el-table-column");
|
|
2512
2517
|
return d(), V(h, U(Y(e.$props)), { default: v((p) => [b(c, O({ style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 16, ["style", "class", "modelValue", "onUpdate:modelValue"])]), _: 1 }, 16);
|
|
2513
2518
|
}]]);
|
|
2514
|
-
|
|
2515
|
-
e.component(io.name, io);
|
|
2516
|
-
}, lo.install = function(e) {
|
|
2519
|
+
lo.install = function(e) {
|
|
2517
2520
|
e.component(lo.name, lo);
|
|
2518
2521
|
}, no.install = function(e) {
|
|
2519
2522
|
e.component(no.name, no);
|
|
@@ -2545,6 +2548,8 @@ io.install = function(e) {
|
|
|
2545
2548
|
e.component(Co.name, Co);
|
|
2546
2549
|
}, wo.install = function(e) {
|
|
2547
2550
|
e.component(wo.name, wo);
|
|
2551
|
+
}, ko.install = function(e) {
|
|
2552
|
+
e.component(ko.name, ko);
|
|
2548
2553
|
};
|
|
2549
2554
|
const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, Ac = S({}, [["render", function(e, t) {
|
|
2550
2555
|
return d(), u("svg", Hc, [...t[0] || (t[0] = [r("rect", { width: "12", height: "12", rx: "2", fill: "#86909C" }, null, -1), r("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.98095 5.49307L8.22012 3.25389C8.28521 3.18881 8.39074 3.18881 8.45582 3.25389L8.69153 3.4896C8.75661 3.55468 8.75661 3.66021 8.69153 3.7253L6.45235 5.96447L8.69153 8.20364C8.75661 8.26873 8.75661 8.37426 8.69153 8.43934L8.45582 8.67505C8.39074 8.74013 8.28521 8.74013 8.22012 8.67505L5.98095 6.43587L3.74178 8.67505C3.67669 8.74013 3.57116 8.74013 3.50608 8.67505L3.27037 8.43934C3.20529 8.37426 3.20529 8.26873 3.27037 8.20364L5.50954 5.96447L3.27037 3.7253C3.20529 3.66021 3.20529 3.55468 3.27037 3.4896L3.50608 3.25389C3.57116 3.18881 3.67669 3.18881 3.74178 3.25389L5.98095 5.49307Z", fill: "white" }, null, -1)])]);
|
|
@@ -2581,7 +2586,7 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
|
|
|
2581
2586
|
}
|
|
2582
2587
|
}(g) }, [r("img", { src: f, alt: "" }, null, 8, rd)], 10, sd))), 128))]), r("div", cd, [r("div", { class: "emjio-container", style: H({ transform: `translateX(${a.value}%)` }) }, [(d(!0), u(F, null, E(i.value, (f, g) => (d(), u("div", { key: g, class: "emoji-wrapper" }, [b($(Ma), null, { default: v(() => [r("div", dd, [(d(!0), u(F, null, E(f, (k, x) => (d(), u("span", { key: x, class: "emoji-item", onClick: (y) => p.$emit("addEmoji", x) }, [b($(Ea), { src: k, title: String(x), class: "emoji", style: { width: "24px", height: "24px", margin: "5px" }, lazy: "" }, null, 8, ["src", "title"])], 8, hd))), 128))])]), _: 2 }, 1024)]))), 128))], 4)])]), _: 3 }, 8, ["placement"])]));
|
|
2583
2588
|
} }), [["__scopeId", "data-v-2fb59975"]]), gd = { class: "cv-comment-editor" }, fd = ["placeholder", "innerHTML"], vd = ["src"], bd = ["onClick"], yd = { key: 0, class: "cv-comment-editor__action" }, Cd = { __name: "input-box", props: { placeholder: "", contentBtn: "", parentId: "", reply: "" }, emits: ["hide", "close"], setup(e, { expose: t, emit: o }) {
|
|
2584
|
-
const l = e, a = N(""), i = N(), n = N(!1), c = N(!1), h = N(), p = N(!0), m = N(), f = N(), g = N([]), k = N([]), x =
|
|
2589
|
+
const l = e, a = N(""), i = N(), n = N(!1), c = N(!1), h = N(), p = N(!0), m = N(), f = N(), g = N([]), k = N([]), x = Po({ imgLength: 0 }), y = 64, _ = N(), I = N(!1), B = N(), P = G(() => y + "px"), j = G(() => "8px 12px"), W = o, { upload: ee, submit: te, focus: ce } = ne("InjectInputBox"), He = ne("InjectionEmojiApi");
|
|
2585
2590
|
function ja() {
|
|
2586
2591
|
te({ content: l.reply ? `回复 <span style="color: var(--cv-color-success-dark-2);">@${l.reply.user.username}:</span> ${a.value}` : a.value, parentId: Ee(l.parentId, null), reply: l.reply, files: k.value, clear: () => {
|
|
2587
2592
|
h.value && (h.value.innerHTML = "", a.value = h.value.innerHTML, n.value = !1), g.value.length = 0, k.value = [], p.value = !0, W("close");
|
|
@@ -2614,22 +2619,22 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
|
|
|
2614
2619
|
g.value.length = 0, k.value.length = 0;
|
|
2615
2620
|
const R = f.value?.files;
|
|
2616
2621
|
if (x.imgLength = Ee(R?.length, 0), R) for (let oe = 0; oe < R.length; oe++) {
|
|
2617
|
-
let xe = R[oe].name,
|
|
2618
|
-
k.value.push(R[oe]), ys(xe) ? g.value.push(
|
|
2622
|
+
let xe = R[oe].name, Ae = (le = R[oe], window.URL ? window.URL.createObjectURL(le) : window.webkitURL ? window.webkitURL.createObjectURL(le) : "");
|
|
2623
|
+
k.value.push(R[oe]), ys(xe) ? g.value.push(Ae) : q({ type: "warn", message: "请选择图片类型文件!", duration: 2500 });
|
|
2619
2624
|
}
|
|
2620
2625
|
var le;
|
|
2621
2626
|
}
|
|
2622
2627
|
return ae(() => a.value, (K) => {
|
|
2623
2628
|
I.value || (i.value = K);
|
|
2624
|
-
}),
|
|
2629
|
+
}), ze(() => {
|
|
2625
2630
|
h.value?.addEventListener("keyup", (K) => {
|
|
2626
2631
|
const R = K.target;
|
|
2627
2632
|
R.innerHTML == "<br>" && (R.innerHTML = "");
|
|
2628
2633
|
});
|
|
2629
2634
|
}), t({ focus: () => Ra() }), (K, R) => M((d(), u("div", gd, [r("div", { class: z(["cv-comment-editor__box", { active: n.value, "input-active": c.value }]) }, [r("div", { ref_key: "editorRef", ref: h, class: "rich-input", contenteditable: "true", placeholder: l.placeholder, onFocus: ql, onInput: Gl, onBlur: Kl, onKeydown: Oe(Zl, ["enter"]), innerHTML: i.value, style: H({ minHeight: P.value, padding: j.value }) }, null, 44, fd), r("div", { ref_key: "imageRef", ref: B, class: "image-preview-box" }, [(d(!0), u(F, null, E(g.value, (le, oe) => (d(), u("div", { key: oe, class: "image-preview" }, [r("img", { src: le, alt: "" }, null, 8, vd), r("div", { class: "clean-btn", onClick: (xe) => {
|
|
2630
|
-
return
|
|
2631
|
-
var
|
|
2632
|
-
} }, [b($(Ac))], 8, bd)]))), 128))], 512)], 2), b(fn, { name: "fade" }, { default: v(() => [c.value ? (d(), u("div", yd, [r("div", null, [b(md, { emoji: $(
|
|
2635
|
+
return Ae = oe, void g?.value?.splice(Ae, 1);
|
|
2636
|
+
var Ae;
|
|
2637
|
+
} }, [b($(Ac))], 8, bd)]))), 128))], 512)], 2), b(fn, { name: "fade" }, { default: v(() => [c.value ? (d(), u("div", yd, [r("div", null, [b(md, { emoji: $(He), onAddEmoji: R[0] || (R[0] = (le) => function(oe) {
|
|
2633
2638
|
let xe = window.getSelection();
|
|
2634
2639
|
xe && (xe.removeAllRanges(), _.value || (Ra(), _.value = xe.getRangeAt(0)), _.value.deleteContents(), _.value.insertNode(_.value.createContextualFragment(oe)), _.value.collapse(!1), xe.addRange(_.value), a.value = h?.value?.innerHTML || "", $e(a.value.replace(/ |<br>| /g, "")) ? p.value = !0 : p.value = !1);
|
|
2635
2640
|
}(le)) }, null, 8, ["emoji"]), r("div", { class: "picture", onClick: R[1] || (R[1] = (...le) => f.value?.click && f.value?.click(...le)) }, [b($(Yc)), R[2] || (R[2] = r("span", null, "图片", -1)), r("input", { id: "comment-upload", ref_key: "inputRef", ref: f, type: "file", multiple: "", onChange: Ql }, null, 544)])]), r("div", null, [R[3] || (R[3] = r("span", { style: { "margin-right": "10px" } }, [L(" 文明上网理性发言,请遵守 "), r("a", { href: "###", target: "_blank" }, "《新闻评论服务协议》")], -1)), b($(Fe), { type: "primary", disabled: p.value, onClick: ja }, { default: v(() => [L(T(l.contentBtn), 1)]), _: 1 }, 8, ["disabled"])])])) : w("", !0)]), _: 1 })])), [[$(hn), Xl, m.value]]);
|
|
@@ -2640,7 +2645,7 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
|
|
|
2640
2645
|
return c > 0 ? c : 1;
|
|
2641
2646
|
}), l = N(!0), a = N(!1), i = N();
|
|
2642
2647
|
let n;
|
|
2643
|
-
return
|
|
2648
|
+
return ze(() => {
|
|
2644
2649
|
n = new ResizeObserver((c) => {
|
|
2645
2650
|
l.value && i.value && (a.value = i.value.offsetHeight < i.value.scrollHeight);
|
|
2646
2651
|
}), n.observe(i.value);
|
|
@@ -2651,12 +2656,12 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
|
|
|
2651
2656
|
const t = N({}), { showInfo: o } = ne("InjectContentBox"), l = ne("InjectSlots"), a = () => Na("div", l.card(t.value));
|
|
2652
2657
|
return (i, n) => $(l).card ? (d(), V($(Fa), { key: 0, placement: "top", width: 300, "show-after": 300, onBeforeEnter: n[0] || (n[0] = () => $(o)(e.uid, (c) => t.value = c)) }, { reference: v(() => [D(i.$slots, "default")]), default: v(() => [b(a)]), _: 3 })) : D(i.$slots, "default", { key: 1 });
|
|
2653
2658
|
} };
|
|
2654
|
-
function Bl(e) {
|
|
2655
|
-
return !!Cn() && (wn(e), !0);
|
|
2659
|
+
function Bl(e, t) {
|
|
2660
|
+
return !!Cn() && (wn(e, t), !0);
|
|
2656
2661
|
}
|
|
2657
2662
|
const Aa = typeof window < "u" && typeof document < "u";
|
|
2658
2663
|
const Sd = Object.prototype.toString, Vd = (e) => Sd.call(e) === "[object Object]";
|
|
2659
|
-
function
|
|
2664
|
+
function qo(e) {
|
|
2660
2665
|
return Array.isArray(e) ? e : [e];
|
|
2661
2666
|
}
|
|
2662
2667
|
const _d = Aa ? window : void 0, zl = Aa ? window.navigator : void 0;
|
|
@@ -2664,7 +2669,7 @@ function Hl(...e) {
|
|
|
2664
2669
|
const t = [], o = () => {
|
|
2665
2670
|
t.forEach((c) => c()), t.length = 0;
|
|
2666
2671
|
}, l = G(() => {
|
|
2667
|
-
const c =
|
|
2672
|
+
const c = qo(De(e[0])).filter((h) => h != null);
|
|
2668
2673
|
return c.every((h) => typeof h != "string") ? c : void 0;
|
|
2669
2674
|
}), a = (i = ([c, h, p, m]) => {
|
|
2670
2675
|
if (o(), !c?.length || !h?.length || !p?.length) return;
|
|
@@ -2672,31 +2677,30 @@ function Hl(...e) {
|
|
|
2672
2677
|
t.push(...c.flatMap((g) => h.flatMap((k) => p.map((x) => ((y, _, I, B) => (y.addEventListener(_, I, B), () => y.removeEventListener(_, I, B)))(g, k, x, f)))));
|
|
2673
2678
|
}, n = { flush: "post" }, ae(() => {
|
|
2674
2679
|
var c, h;
|
|
2675
|
-
return [(
|
|
2680
|
+
return [(c = (h = l.value) === null || h === void 0 ? void 0 : h.map((p) => function(m) {
|
|
2676
2681
|
var f;
|
|
2677
2682
|
const g = De(m);
|
|
2678
|
-
return (f = g?.$el)
|
|
2679
|
-
}(p)))
|
|
2683
|
+
return (f = g?.$el) !== null && f !== void 0 ? f : g;
|
|
2684
|
+
}(p))) !== null && c !== void 0 ? c : [_d].filter((p) => p != null), qo(De(l.value ? e[1] : e[0])), qo($(l.value ? e[2] : e[1])), De(l.value ? e[3] : e[2])];
|
|
2680
2685
|
}, i, { ...n, immediate: !0 }));
|
|
2681
2686
|
var i, n;
|
|
2682
2687
|
return Bl(o), () => {
|
|
2683
2688
|
a(), o();
|
|
2684
2689
|
};
|
|
2685
2690
|
}
|
|
2686
|
-
function Id() {
|
|
2687
|
-
const e = se(!1), t = kn();
|
|
2688
|
-
return t && Be(() => {
|
|
2689
|
-
e.value = !0;
|
|
2690
|
-
}, t), e;
|
|
2691
|
-
}
|
|
2692
2691
|
function Al(e) {
|
|
2693
|
-
const t =
|
|
2692
|
+
const t = function() {
|
|
2693
|
+
const o = se(!1), l = kn();
|
|
2694
|
+
return l && ze(() => {
|
|
2695
|
+
o.value = !0;
|
|
2696
|
+
}, l), o;
|
|
2697
|
+
}();
|
|
2694
2698
|
return G(() => (t.value, !!e()));
|
|
2695
2699
|
}
|
|
2696
2700
|
function ti(e, t = {}) {
|
|
2697
2701
|
const { controls: o = !1, navigator: l = zl } = t, a = Al(() => l && "permissions" in l), i = se(), n = typeof e == "string" ? { name: e } : e, c = se(), h = () => {
|
|
2698
2702
|
var m, f;
|
|
2699
|
-
c.value = (
|
|
2703
|
+
c.value = (m = (f = i.value) === null || f === void 0 ? void 0 : f.state) !== null && m !== void 0 ? m : "prompt";
|
|
2700
2704
|
};
|
|
2701
2705
|
Hl(i, "change", h, { passive: !0 });
|
|
2702
2706
|
const p = function(m) {
|
|
@@ -2722,7 +2726,7 @@ function ti(e, t = {}) {
|
|
|
2722
2726
|
});
|
|
2723
2727
|
return p(), o ? { state: c, isSupported: a, query: p } : c;
|
|
2724
2728
|
}
|
|
2725
|
-
function
|
|
2729
|
+
function Id(e = {}) {
|
|
2726
2730
|
const { navigator: t = zl, read: o = !1, source: l, copiedDuring: a = 1500, legacy: i = !1 } = e, n = Al(() => t && "clipboard" in t), c = ti("clipboard-read"), h = ti("clipboard-write"), p = G(() => n.value || i), m = se(""), f = se(!1), g = function(x, y, _ = {}) {
|
|
2727
2731
|
const { immediate: I = !0, immediateCallback: B = !1 } = _, P = se(!1);
|
|
2728
2732
|
let j;
|
|
@@ -2750,8 +2754,8 @@ function Td(e = {}) {
|
|
|
2750
2754
|
x = !0;
|
|
2751
2755
|
}
|
|
2752
2756
|
var y, _, I;
|
|
2753
|
-
x && (m.value = (
|
|
2754
|
-
}, { passive: !0 }), { isSupported: p, text: m, copied: f, copy: async function(x = De(l)) {
|
|
2757
|
+
x && (m.value = (y = (_ = document) === null || _ === void 0 || (I = _.getSelection) === null || I === void 0 || (I = I.call(_)) === null || I === void 0 ? void 0 : I.toString()) !== null && y !== void 0 ? y : "");
|
|
2758
|
+
}, { passive: !0 }), { isSupported: p, text: Xa(m), copied: Xa(f), copy: async function(x = De(l)) {
|
|
2755
2759
|
if (p.value && x != null) {
|
|
2756
2760
|
let y = !(n.value && k(h.value));
|
|
2757
2761
|
if (!y) try {
|
|
@@ -2761,20 +2765,20 @@ function Td(e = {}) {
|
|
|
2761
2765
|
}
|
|
2762
2766
|
y && function(_) {
|
|
2763
2767
|
const I = document.createElement("textarea");
|
|
2764
|
-
I.value = _
|
|
2768
|
+
I.value = _, I.style.position = "absolute", I.style.opacity = "0", document.body.appendChild(I), I.select(), document.execCommand("copy"), I.remove();
|
|
2765
2769
|
}(x), m.value = x, f.value = !0, g.start();
|
|
2766
2770
|
}
|
|
2767
2771
|
} };
|
|
2768
2772
|
}
|
|
2769
|
-
const
|
|
2770
|
-
const { copy: t } =
|
|
2773
|
+
const Td = { class: "comment-list-actbox__right" }, Ld = { class: "operation-warp" }, Dd = { class: "dialog-footer" }, $d = { __name: "comment-operate", props: { data: { type: [Object], default: () => ({}) } }, setup(e) {
|
|
2774
|
+
const { copy: t } = Id(), o = N(!1), l = N({ report_type: "", report_content: "" }), a = e;
|
|
2771
2775
|
function i() {
|
|
2772
2776
|
let n = a.data || {};
|
|
2773
2777
|
o.value = !1, q({ type: "info", message: "举报成功: " + n.id });
|
|
2774
2778
|
}
|
|
2775
2779
|
return (n, c) => {
|
|
2776
2780
|
const h = C("el-dropdown-item"), p = C("el-dropdown-menu"), m = C("el-dropdown"), f = C("el-radio"), g = C("el-radio-group"), k = C("el-form-item"), x = C("el-input"), y = C("el-form"), _ = C("el-button"), I = C("el-dialog");
|
|
2777
|
-
return d(), u("div",
|
|
2781
|
+
return d(), u("div", Td, [b(m, { trigger: "click", onCommand: c[0] || (c[0] = (B) => function(P) {
|
|
2778
2782
|
let j = a.data || {};
|
|
2779
2783
|
switch (P) {
|
|
2780
2784
|
case "remove":
|
|
@@ -2788,10 +2792,10 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
|
|
|
2788
2792
|
case "copy":
|
|
2789
2793
|
t(j.content), q({ type: "info", message: "复制成功" });
|
|
2790
2794
|
}
|
|
2791
|
-
}(B)) }, { dropdown: v(() => [b(p, null, { default: v(() => [b(h, { command: "report" }, { default: v(() => [...c[5] || (c[5] = [L("举报", -1)])]), _: 1 }), b(h, { command: "remove" }, { default: v(() => [...c[6] || (c[6] = [L("删除", -1)])]), _: 1 }), b(h, { divided: "", command: "copy" }, { default: v(() => [...c[7] || (c[7] = [L("复制", -1)])]), _: 1 })]), _: 1 })]), default: v(() => [r("div",
|
|
2795
|
+
}(B)) }, { dropdown: v(() => [b(p, null, { default: v(() => [b(h, { command: "report" }, { default: v(() => [...c[5] || (c[5] = [L("举报", -1)])]), _: 1 }), b(h, { command: "remove" }, { default: v(() => [...c[6] || (c[6] = [L("删除", -1)])]), _: 1 }), b(h, { divided: "", command: "copy" }, { default: v(() => [...c[7] || (c[7] = [L("复制", -1)])]), _: 1 })]), _: 1 })]), default: v(() => [r("div", Ld, [b($(qc))])]), _: 1 }), b(I, { title: "举报", modelValue: o.value, "onUpdate:modelValue": c[4] || (c[4] = (B) => o.value = B), width: "400px", style: { width: "90%", "max-width": "400px" } }, { footer: v(() => [r("span", Dd, [b(_, { onClick: c[3] || (c[3] = (B) => o.value = !1) }, { default: v(() => [...c[13] || (c[13] = [L("取消", -1)])]), _: 1 }), b(_, { type: "primary", onClick: i }, { default: v(() => [...c[14] || (c[14] = [L("提交", -1)])]), _: 1 })])]), default: v(() => [b(y, { "label-position": "top" }, { default: v(() => [b(k, { label: "您为什么要举报此信息?" }, { default: v(() => [b(g, { modelValue: l.value.report_type, "onUpdate:modelValue": c[1] || (c[1] = (B) => l.value.report_type = B) }, { default: v(() => [b(f, { value: "色情淫秽" }, { default: v(() => [...c[8] || (c[8] = [L("色情淫秽", -1)])]), _: 1 }), b(f, { value: "骚扰谩骂" }, { default: v(() => [...c[9] || (c[9] = [L("骚扰谩骂", -1)])]), _: 1 }), b(f, { value: "广告欺诈" }, { default: v(() => [...c[10] || (c[10] = [L("广告欺诈", -1)])]), _: 1 }), b(f, { value: "反动" }, { default: v(() => [...c[11] || (c[11] = [L("反动", -1)])]), _: 1 }), b(f, { value: "其他" }, { default: v(() => [...c[12] || (c[12] = [L("其他", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(k, { label: "举报说明(可选):" }, { default: v(() => [b(x, { type: "textarea", modelValue: l.value.report_content, "onUpdate:modelValue": c[2] || (c[2] = (B) => l.value.report_content = B), maxlength: "200", placeholder: "描述恶意行为", rows: "3" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]);
|
|
2792
2796
|
};
|
|
2793
|
-
} },
|
|
2794
|
-
const t = e, o =
|
|
2797
|
+
} }, Od = { class: "comment-sub" }, Fd = ["href"], Md = { class: "comment-primary" }, Ed = { class: "comment-main" }, Nd = { key: 1, class: "user-info" }, Bd = ["href"], zd = { class: "username" }, Hd = { class: "name", style: { "max-width": "10em" } }, Ad = { blank: "true", class: "rank" }, Pd = ["innerHTML"], jd = { class: "address", style: { color: "#939393", "font-size": "12px" } }, Rd = { class: "time" }, Ud = { class: "content" }, Wd = ["innerHTML"], Yd = { class: "imgbox", style: { display: "flex" } }, Xd = { class: "comment-list-actbox select-none" }, qd = { class: "comment-list-actbox__left" }, Kd = { key: 2 }, Gd = { class: "comment-list-actbox__right" }, Zd = { key: 2 }, Pl = S({ __name: "content-box", props: { reply: { type: [Boolean], default: !1 }, data: { type: [Object], default: () => ({}) }, id: { type: [String], default: "" } }, setup(e) {
|
|
2798
|
+
const t = e, o = Po({ active: !1 }), l = N(), a = N(), i = G(() => {
|
|
2795
2799
|
let _ = t.data.contentImg;
|
|
2796
2800
|
return $e(_) ? [] : _?.split("||");
|
|
2797
2801
|
}), { allEmoji: n } = ne("InjectionEmojiApi"), { like: c, user: h, relativeTime: p } = ne("InjectContentBox");
|
|
@@ -2825,9 +2829,9 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
|
|
|
2825
2829
|
return "";
|
|
2826
2830
|
}
|
|
2827
2831
|
};
|
|
2828
|
-
return (_, I) => (d(), u("div", { class: z(["comment", { reply: t.reply }]) }, [r("div",
|
|
2829
|
-
} }, [["__scopeId", "data-v-cfe79df7"]]),
|
|
2830
|
-
const t = e, o =
|
|
2832
|
+
return (_, I) => (d(), u("div", { class: z(["comment", { reply: t.reply }]) }, [r("div", Od, [b(ei, { uid: $(Se)(e.data.uid) }, { default: v(() => [r("a", { href: e.data.user.homeLink, target: "_blank", class: "no-underline", style: { display: "block" } }, [b($(Cl), { style: { "margin-top": "5px" }, size: 40, fit: "cover", src: e.data.user.avatar }, { default: v(() => [...I[2] || (I[2] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 }, 8, ["src"])], 8, Fd)]), _: 1 }, 8, ["uid"])]), r("div", Md, [r("div", Ed, [$(g).info ? (d(), V(k, { key: 0 })) : (d(), u("div", Nd, [b(ei, { uid: $(Se)(e.data.uid) }, { default: v(() => [r("a", { href: e.data.user.homeLink, target: "_blank", class: "no-underline", style: { display: "block" } }, [r("div", zd, [r("span", Hd, T(e.data.user.username), 1), r("span", Ad, [r("i", { class: "comment-common-icon", style: { "font-size": "24px" }, innerHTML: y(e.data.user.level) }, null, 8, Pd)])])], 8, Bd)]), _: 1 }, 8, ["uid"]), r("span", jd, " " + T(e.data.address), 1), r("time", Rd, T($(p) ? $(bs)(e.data.createTime) : e.data.createTime), 1)])), r("div", Ud, [b(xd, { unfold: "" }, { default: v(() => [r("div", { innerHTML: x.value }, null, 8, Wd), r("div", Yd, [(d(!0), u(F, null, E(i.value, (B, P) => (d(), V($(Ea), { key: P, src: B, style: { height: "72px", padding: "8px 4px" }, lazy: "", "preview-src-list": i.value, "initial-index": P }, null, 8, ["src", "preview-src-list", "initial-index"]))), 128))])]), _: 1 })]), r("div", Xd, [r("div", qd, [r("div", { "data-tip": "点赞", class: "item", onClick: I[0] || (I[0] = (B) => $(c)($(Se)(e.data.id))) }, [$(h).likeIds.map(String).indexOf($(Se)(e.data.id)) == -1 ? (d(), V($(Qc), { key: 0 })) : (d(), V($(Gc), { key: 1 })), e.data.likes != 0 ? (d(), u("span", Kd, T(e.data.likes), 1)) : w("", !0)]), r("div", { "data-tip": "回复", ref_key: "btnRef", ref: a, class: z(["item", { active: o.active }]), onClick: m }, [b($(id)), r("span", null, T(o.active ? "取消回复" : "回复"), 1)], 2)]), r("div", Gd, [D(_.$slots, "operate", {}, () => [b($d, { data: t.data }, null, 8, ["data"])], !0)])]), o.active ? (d(), u("div", Zd, [b(Nl, { ref_key: "commentRef", ref: l, "parent-id": $(Se)(e.id), placeholder: `回复 @${e.data.user.username}...`, reply: e.data, "content-btn": "发布", style: { "margin-top": "12px" }, onHide: f, onClose: I[1] || (I[1] = (B) => o.active = !1) }, null, 8, ["parent-id", "placeholder", "reply"])])) : w("", !0)]), D(_.$slots, "default", {}, void 0, !0)])], 2));
|
|
2833
|
+
} }, [["__scopeId", "data-v-cfe79df7"]]), Qd = { key: 0, class: "reply-box" }, Jd = { class: "reply-list" }, eh = { key: 0, class: "fetch-more" }, th = { key: 0 }, oh = { key: 1 }, ah = { key: 0 }, ih = { key: 1, class: "fetch-more" }, lh = S({ __name: "reply-box", props: { data: { type: [Array, Object], default: () => null }, id: { type: [String], default: "" } }, setup(e) {
|
|
2834
|
+
const t = e, o = Po({ loading: !1, over: !1, pageNum: 1, pageSize: 5 }), { replyPage: l, replyShowSize: a, comments: i, page: n } = ne("InjectReplyBox"), c = G(() => {
|
|
2831
2835
|
let g = { total: 0, length: 0, list: [] };
|
|
2832
2836
|
if (t.data) {
|
|
2833
2837
|
let k = t.data.list.length;
|
|
@@ -2849,8 +2853,8 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
|
|
|
2849
2853
|
}, f = (g) => {
|
|
2850
2854
|
o.pageSize = g, l(t.id, o.pageNum, g, (k) => p(k));
|
|
2851
2855
|
};
|
|
2852
|
-
return (g, k) => c.value.length > 0 ? (d(), u("div",
|
|
2853
|
-
} }, [["__scopeId", "data-v-16e0a50b"]]),
|
|
2856
|
+
return (g, k) => c.value.length > 0 ? (d(), u("div", Qd, [r("div", Jd, [(d(!0), u(F, null, E(c.value.list, (x, y) => (d(), V(Pl, { id: e.id, key: y, data: x, reply: "" }, null, 8, ["id", "data"]))), 128)), c.value.length > $(a) ? (d(), u("div", eh, [o.loading ? (d(), u("span", th, "加载中...")) : (d(), u("div", oh, [o.over ? w("", !0) : (d(), u("div", ah, [L(" 共" + T(c.value.total) + "条回复, ", 1), r("span", { class: "fetch-more-comment select-none", onClick: h }, [k[0] || (k[0] = L(" 点击查看 ", -1)), b($(ed))])]))]))])) : w("", !0), o.over && $(n) ? (d(), u("div", ih, [b($(pn), { small: "", "hide-on-single-page": "", layout: "total, prev, pager, next", total: c.value.total, "page-size": o.pageSize, onCurrentChange: m, onSizeChange: f }, null, 8, ["total", "page-size"])])) : w("", !0)])])) : w("", !0);
|
|
2857
|
+
} }, [["__scopeId", "data-v-16e0a50b"]]), nh = { key: 0, class: "comment-list" }, sh = { __name: "comment-list", props: { data: { type: [Array, Object], default: () => [] }, total: { type: [Number], default: 0 }, showSize: { type: [Number], default: 0 } }, setup: (e) => (t, o) => e.data ? (d(), u("div", nh, [(d(!0), u(F, null, E(e.data, (l, a) => (d(), V(Pl, { id: $(Se)(l.id), key: a, data: l }, { default: v(() => [b(lh, { id: $(Se)(l.id), data: l.reply }, null, 8, ["id", "data"])]), _: 2 }, 1032, ["id", "data"]))), 128))])) : w("", !0) }, rh = { class: "cv-comment-base" }, ch = { class: "cv-comment-form" }, dh = { class: "cv-comment-form__content" }, hh = { class: "cv-comment-form__avatar" }, ph = { class: "cv-comment-list-wrapper" }, xo = Object.assign({ name: "cvCommentBase" }, { __name: "comment", props: { config: {}, page: !1, upload: !1, relativeTime: !1 }, emits: ["submit", "like", "replyPage", "showInfo", "focus"], setup(e, { expose: t, emit: o }) {
|
|
2854
2858
|
const l = e, { user: a, comments: i, showSize: n, replyShowSize: c, total: h } = xn(l.config), p = o, m = { upload: l.upload, submit: ({ content: g, parentId: k, reply: x, files: y, clear: _ }) => {
|
|
2855
2859
|
p("submit", { content: g, parentId: k, reply: x, files: y, finish: (I) => {
|
|
2856
2860
|
if (_(), k) {
|
|
@@ -2894,9 +2898,9 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
|
|
|
2894
2898
|
}
|
|
2895
2899
|
} }), (g, k) => {
|
|
2896
2900
|
const x = C("el-avatar");
|
|
2897
|
-
return d(), u("div",
|
|
2901
|
+
return d(), u("div", rh, [r("div", ch, [k[1] || (k[1] = r("div", { class: "cv-comment-form__header" }, [r("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1)), r("div", dh, [r("div", hh, [b(x, { size: 40, src: e.config.user.avatar }, { default: v(() => [...k[0] || (k[0] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 }, 8, ["src"])]), b(Nl, { placeholder: "输入评论(Enter换行,Ctrl + Enter发送)", "content-btn": "发表评论" })])]), D(g.$slots, "default", {}, () => [k[2] || (k[2] = r("div", { class: "title" }, "全部评论", -1))]), r("div", ph, [b(sh, { data: $(i), total: $(h), "show-size": $(Ee)($(n), 5) }, null, 8, ["data", "total", "show-size"])])]);
|
|
2898
2902
|
};
|
|
2899
|
-
} }),
|
|
2903
|
+
} }), uh = { class: "comment-scroll" }, mh = ["infinite-scroll-disabled"], gh = { class: "scroll-btn" }, fh = { key: 1 }, vh = { key: 2 }, So = Object.assign({ name: "cvCommentScroll" }, { __name: "comment-scroll", props: { disable: { type: [Boolean], default: !1 }, show: { type: [Boolean], default: !1 } }, emits: ["more"], setup(e, { emit: t }) {
|
|
2900
2904
|
const o = e, l = N(!1), a = N(!1), i = t, n = G(() => a.value && o.disable), c = G(() => !a.value || l.value || n.value), h = Tl(() => {
|
|
2901
2905
|
i("more"), l.value = !1;
|
|
2902
2906
|
}, 500), p = () => {
|
|
@@ -2904,47 +2908,47 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
|
|
|
2904
2908
|
};
|
|
2905
2909
|
return (m, f) => {
|
|
2906
2910
|
const g = C("el-link"), k = re("infinite-scroll");
|
|
2907
|
-
return d(), u("div",
|
|
2911
|
+
return d(), u("div", uh, [M((d(), u("div", { "infinite-scroll-disabled": c.value, "infinite-scroll-distance": "2" }, [D(m.$slots, "default"), r("div", gh, [a.value ? w("", !0) : (d(), V(g, { key: 0, type: "primary", underline: "never", onClick: f[0] || (f[0] = (x) => a.value = !a.value) }, { default: v(() => [...f[1] || (f[1] = [L("加载更多", -1)])]), _: 1 })), l.value ? (d(), u("p", fh, "加载中...")) : w("", !0), n.value ? (d(), u("p", vh, "没有更多了")) : w("", !0)])], 8, mh)), [[k, p]])]);
|
|
2908
2912
|
};
|
|
2909
|
-
} }),
|
|
2913
|
+
} }), bh = { class: "cv-comment-nav-wrap" }, yh = { class: "cv-comment-nav__sort" }, Vo = Object.assign({ name: "cvCommentNav" }, { __name: "comment-nav", props: { modelValue: !1 }, emits: ["update:modelValue", "sorted"], setup(e, { emit: t }) {
|
|
2910
2914
|
const o = e, l = t, a = G({ get: () => o.modelValue, set(i) {
|
|
2911
2915
|
l("update:modelValue", i), l("sorted", i);
|
|
2912
2916
|
} });
|
|
2913
|
-
return (i, n) => (d(), u("div",
|
|
2917
|
+
return (i, n) => (d(), u("div", bh, [n[4] || (n[4] = r("span", { class: "cv-comment-nav__title" }, "全部评论", -1)), r("div", yh, [r("div", { class: z(["item select-none", { active: a.value }]), onClick: n[0] || (n[0] = (c) => a.value = !0) }, [b($(od)), n[2] || (n[2] = L(" 最新 ", -1))], 2), r("div", { class: z(["item select-none", { active: !a.value }]), onClick: n[1] || (n[1] = (c) => a.value = !1) }, [b($(Uc)), n[3] || (n[3] = L(" 最热 ", -1))], 2)])]));
|
|
2914
2918
|
} });
|
|
2915
|
-
|
|
2916
|
-
e.component(ko.name, ko);
|
|
2917
|
-
}, xo.install = function(e) {
|
|
2919
|
+
xo.install = function(e) {
|
|
2918
2920
|
e.component(xo.name, xo);
|
|
2919
2921
|
}, So.install = function(e) {
|
|
2920
2922
|
e.component(So.name, So);
|
|
2923
|
+
}, Vo.install = function(e) {
|
|
2924
|
+
e.component(Vo.name, Vo);
|
|
2921
2925
|
};
|
|
2922
|
-
const
|
|
2926
|
+
const Ch = { name: "cvSvgs", props: { ...wl.prop, type: { type: [String], default: "" }, size: { type: [String, Number], default: 12 }, name: { type: [String], default: "" } }, data: () => ({}), computed: { svgType() {
|
|
2923
2927
|
return "svg" + this.type;
|
|
2924
2928
|
}, style() {
|
|
2925
2929
|
return { fontSize: isNaN(Number(this.size)) ? this.size + "px" : this.size, color: props.color };
|
|
2926
2930
|
} }, created() {
|
|
2927
|
-
}, methods: {} },
|
|
2931
|
+
}, methods: {} }, wh = { key: 0, "aria-hidden": "true" }, kh = ["xlink:href"], _o = S(Ch, [["render", function(e, t, o, l, a, i) {
|
|
2928
2932
|
const n = C("el-icon");
|
|
2929
|
-
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(_l(i.svgType)))]), o.name ? (d(), u("svg",
|
|
2930
|
-
}]]),
|
|
2933
|
+
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(_l(i.svgType)))]), o.name ? (d(), u("svg", wh, [r("use", { "xlink:href": o.name }, null, 8, kh)])) : w("", !0)]), _: 3 }, 16);
|
|
2934
|
+
}]]), xh = { name: "cvIcons", props: { ...wl.prop, type: { type: [String], default: "" }, size: { type: [String, Number], default: 12 }, name: { type: [String], default: "" } }, data: () => ({}), computed: { style() {
|
|
2931
2935
|
return { fontSize: isNaN(Number(this.size)) ? this.size + "px" : this.size, color: props.color };
|
|
2932
2936
|
} }, created() {
|
|
2933
|
-
}, methods: {} },
|
|
2937
|
+
}, methods: {} }, Sh = { key: 0, "aria-hidden": "true" }, Vh = ["xlink:href"], Io = S(xh, [["render", function(e, t, o, l, a, i) {
|
|
2934
2938
|
const n = C("el-icon");
|
|
2935
|
-
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(_l(o.type)))]), o.name ? (d(), u("svg",
|
|
2939
|
+
return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(_l(o.type)))]), o.name ? (d(), u("svg", Sh, [r("use", { "xlink:href": o.name }, null, 8, Vh)])) : w("", !0)]), _: 3 }, 16);
|
|
2936
2940
|
}]]);
|
|
2937
|
-
|
|
2941
|
+
Io.install = function(e) {
|
|
2942
|
+
e.component(Io.name, Io);
|
|
2943
|
+
}, _o.install = function(e) {
|
|
2938
2944
|
e.component(_o.name, _o);
|
|
2939
|
-
}, Vo.install = function(e) {
|
|
2940
|
-
e.component(Vo.name, Vo);
|
|
2941
2945
|
};
|
|
2942
|
-
const
|
|
2946
|
+
const _h = { class: "u-emoji" }, Ih = { class: "face-tooltip-head select-none" }, Th = ["onClick"], Lh = ["src"], Dh = { class: "emoji-body select-none" }, $h = { style: { padding: "0 5px" } }, Oh = ["onClick"], Fh = { class: "emoji-btn select-none" }, Mh = { key: 0 }, Eh = S(Object.assign({ name: "cvEmoji" }, { __name: "emoji", props: { emoji: { faceList: [], emojiList: [], allEmoji: {} }, placement: "bottom" }, emits: ["addEmoji"], setup(e, { emit: t }) {
|
|
2943
2947
|
const o = e, l = N(0), a = N(0), i = N(new Array(2)), { emojiList: n, faceList: c } = o.emoji;
|
|
2944
2948
|
function h() {
|
|
2945
2949
|
i.value[0] = n[0];
|
|
2946
2950
|
}
|
|
2947
|
-
return (p, m) => (d(), u("div",
|
|
2951
|
+
return (p, m) => (d(), u("div", _h, [b($(Fa), { placement: e.placement, "popper-class": "emoji-popover", width: 250, trigger: "click", onBeforeEnter: h }, { reference: v(() => [r("div", Fh, [p.$slots.default ? D(p.$slots, "default", { key: 1 }, void 0, !0) : (d(), u("div", Mh, [...m[0] || (m[0] = [r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "icon" }, [r("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z" })], -1), r("span", null, "表情", -1)])]))])]), default: v(() => [r("div", Ih, [(d(!0), u(F, null, E($(c), (f, g) => (d(), u("label", { key: g, class: z(l.value == g ? "active" : ""), onClick: (k) => function(x) {
|
|
2948
2952
|
switch (l.value = x, x) {
|
|
2949
2953
|
case 0:
|
|
2950
2954
|
a.value = 0;
|
|
@@ -2952,8 +2956,8 @@ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }
|
|
|
2952
2956
|
case 1:
|
|
2953
2957
|
a.value = -50, i.value[1] = n[1];
|
|
2954
2958
|
}
|
|
2955
|
-
}(g) }, [r("img", { src: f, alt: "" }, null, 8,
|
|
2956
|
-
} }), [["__scopeId", "data-v-da53b6ed"]]),
|
|
2959
|
+
}(g) }, [r("img", { src: f, alt: "" }, null, 8, Lh)], 10, Th))), 128))]), r("div", Dh, [r("div", { class: "emjio-container", style: H({ transform: `translateX(${a.value}%)` }) }, [(d(!0), u(F, null, E(i.value, (f, g) => (d(), u("div", { key: g, class: "emoji-wrapper" }, [b($(Ma), null, { default: v(() => [r("div", $h, [(d(!0), u(F, null, E(f, (k, x) => (d(), u("span", { key: x, class: "emoji-item", onClick: (y) => p.$emit("addEmoji", x) }, [b($(Ea), { src: k, title: String(x), class: "emoji", style: { width: "24px", height: "24px", margin: "5px" }, lazy: "" }, null, 8, ["src", "title"])], 8, Oh))), 128))])]), _: 2 }, 1024)]))), 128))], 4)])]), _: 3 }, 8, ["placement"])]));
|
|
2960
|
+
} }), [["__scopeId", "data-v-da53b6ed"]]), Nh = { class: "cv-chat-message" }, Bh = { class: "chat-list" }, zh = { class: "content" }, Hh = { key: 0, class: "username" }, Ah = ["innerHTML"], Ph = { __name: "message", props: { data: { type: [Array], default: () => [] }, userId: { type: [Number], default: 0 } }, setup(e, { expose: t }) {
|
|
2957
2961
|
const { allEmoji: o } = ne("InjectionEmojiApi"), l = N();
|
|
2958
2962
|
t({ scroll: () => {
|
|
2959
2963
|
Ne(() => {
|
|
@@ -2965,8 +2969,8 @@ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }
|
|
|
2965
2969
|
const h = i[c];
|
|
2966
2970
|
return h ? ['<img src="', h, '" width="20" height="20" alt="', c, '" title="', c, '" style="margin: 0 1px; vertical-align: text-bottom"', "/>"].join("") : c;
|
|
2967
2971
|
});
|
|
2968
|
-
return (i, n) => (d(), u("div",
|
|
2969
|
-
} },
|
|
2972
|
+
return (i, n) => (d(), u("div", Nh, [b($(Ma), { ref_key: "scrollbarRef", ref: l }, { default: v(() => [r("div", Bh, [(d(!0), u(F, null, E(e.data, (c, h) => (d(), u("div", { key: h, class: z([{ self: e.userId == c.id }, "chat-item"]) }, [r("div", null, [b($(Cl), null, { default: v(() => [...n[0] || (n[0] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 })]), r("div", zh, [e.userId != c.id ? (d(), u("div", Hh, T(c.username), 1)) : w("", !0), r("div", { class: "card-box", innerHTML: a($(o), c.content) }, null, 8, Ah)]), n[1] || (n[1] = r("div", { class: "date" }, null, -1))], 2))), 128))])]), _: 1 }, 512)]));
|
|
2973
|
+
} }, jh = { class: "cv-chat-wrap" }, Rh = { class: "header" }, Uh = { id: "chat-footer", class: "footer" }, To = Object.assign({ name: "cvChat" }, { __name: "chat", props: { data: { type: [Array], default: () => [] }, userId: { type: [Number], default: 0 }, emoji: { type: [Object], default: () => ({}) } }, emits: ["submit"], setup(e, { emit: t }) {
|
|
2970
2974
|
const o = e, l = N(!1), a = N(""), i = N(), { data: n } = o, c = t, h = (g) => {
|
|
2971
2975
|
const { ctrlKey: k, key: x } = g;
|
|
2972
2976
|
k && x == "Enter" && m();
|
|
@@ -2983,19 +2987,19 @@ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }
|
|
|
2983
2987
|
};
|
|
2984
2988
|
return Te("InjectionEmojiApi", o.emoji), (g, k) => {
|
|
2985
2989
|
const x = C("cvIcons");
|
|
2986
|
-
return d(), u("div",
|
|
2990
|
+
return d(), u("div", jh, [r("div", { class: z([{ active: l.value }, "chat-container translate"]) }, [r("div", Rh, [b(x, { size: "32" }, { default: v(() => [...k[2] || (k[2] = [r("svg", { viewBox: "0 0 1318 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, [r("path", { d: "M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z", fill: "#612273", "p-id": "10993" }), r("path", { d: "M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z", fill: "#612273", opacity: ".2", "p-id": "10994" }), r("path", { d: "M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z", fill: "#EB3D72", "p-id": "10995" }), r("path", { d: "M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z", fill: "#EB3D72", opacity: ".5", "p-id": "10996" }), r("path", { d: "M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z", fill: "#FED150", "p-id": "10997" })], -1)])]), _: 1 }), k[3] || (k[3] = r("div", { style: { "margin-left": "12px" } }, [r("div", null, "聊天室"), r("div", { style: { "font-size": "12px" } }, "当前2人在线")], -1))]), b(Ph, { ref_key: "messageRef", ref: i, data: $(n), "user-id": e.userId }, null, 8, ["data", "user-id"]), r("div", Uh, [b($(zo), { id: "emojiInput", modelValue: a.value, "onUpdate:modelValue": k[0] || (k[0] = (y) => a.value = y), type: "textarea", autosize: { minRows: 1, maxRows: 4 }, placeholder: "请输入内容", onKeydown: Oe(h, ["enter"]) }, null, 8, ["modelValue"]), b(Eh, { style: { margin: "0 8px 0" }, emoji: e.emoji, placement: "top-end", onAddEmoji: f }, { default: v(() => [...k[4] || (k[4] = [r("svg", { width: "22", height: "22", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "7186" }, [r("path", { d: "M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z", "p-id": "7187" })], -1)])]), _: 1 }, 8, ["emoji"]), b(x, { size: "18", class: z([{ ".cv-chat-wrap submit-btn": a.value.trim() != "" }, "select-none cursor-pointer"]), style: { "padding-bottom": "5px" }, onClick: m }, { default: v(() => [...k[5] || (k[5] = [r("svg", { viewBox: "0 0 1025 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "15072" }, [r("path", { d: "M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z", "p-id": "15073" })], -1)])]), _: 1 }, 8, ["class"])])], 2), b($(Fe), { class: "chat-btn", onClick: k[1] || (k[1] = (y) => l.value = !l.value) }, { default: v(() => [...k[6] || (k[6] = [L("chat", -1)])]), _: 1 })]);
|
|
2987
2991
|
};
|
|
2988
2992
|
} });
|
|
2989
|
-
|
|
2990
|
-
e.component(
|
|
2993
|
+
To.install = function(e) {
|
|
2994
|
+
e.component(To.name, To);
|
|
2991
2995
|
};
|
|
2992
|
-
const
|
|
2993
|
-
const t = e, { data: o, vertical: l, suffixIcon: a, prefixIcon: i, size: n, height: c, delay: h, spped: p, color: m, background: f } = t, g =
|
|
2996
|
+
const Wh = { key: 0 }, Lo = Object.assign({ name: "cvNoticeBar" }, { __name: "notice-bar", props: { data: { type: [String, Array], default: () => [] }, vertical: { type: [Boolean], default: !1 }, suffixIcon: { type: [String], default: "" }, prefixIcon: { type: [String], default: "" }, size: { type: [Number], default: 14 }, height: { type: [Number], default: 40 }, delay: { type: [Number], default: 1e3 }, spped: { type: [Number], default: 100 }, color: { type: [String], default: "--color-warning" }, background: { type: [String], default: "var(--color-warning-light-9)" } }, setup(e) {
|
|
2997
|
+
const t = e, { data: o, vertical: l, suffixIcon: a, prefixIcon: i, size: n, height: c, delay: h, spped: p, color: m, background: f } = t, g = Po({ boxWidth: 0, textWidth: 0, oneTime: 0, twoTime: 0, order: 1 }), k = N({}), x = N({ style: { cssText: "" } }), y = G(() => t.delay > 2e3 ? t.delay : 2e3), _ = () => {
|
|
2994
2998
|
g.oneTime = g.textWidth / t.spped, g.twoTime = (g.textWidth + g.boxWidth) / t.spped;
|
|
2995
2999
|
}, I = () => {
|
|
2996
3000
|
g.order === 1 ? (x.value?.style && (x.value.style.cssText = `animation: oneAnimation ${g.oneTime}s linear; opactity: 1;}`), g.order = 2) : x.value?.style && (x.value.style.cssText = `animation: twoAnimation ${g.twoTime}s linear infinite; opacity: 1;`);
|
|
2997
3001
|
};
|
|
2998
|
-
return
|
|
3002
|
+
return ze(() => {
|
|
2999
3003
|
t.vertical || (Ne(() => {
|
|
3000
3004
|
g.boxWidth = k.value.offsetWidth, g.textWidth = x.value.offsetWidth, document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${g.textWidth}px;}}`), document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${g.boxWidth}px;} 100% {left: -${g.textWidth}px;}}`), _(), setTimeout(() => {
|
|
3001
3005
|
I();
|
|
@@ -3005,13 +3009,13 @@ const Yh = { key: 0 }, To = Object.assign({ name: "cvNoticeBar" }, { __name: "no
|
|
|
3005
3009
|
}, !1));
|
|
3006
3010
|
}), (B, P) => {
|
|
3007
3011
|
const j = C("el-carousel-item"), W = C("el-carousel"), ee = C("cvIcons");
|
|
3008
|
-
return d(), u("div", { class: "cv-notice-bar", style: H({ background: $(f), height: `${$(c)}px` }) }, [$(l) ? (d(), u("div",
|
|
3012
|
+
return d(), u("div", { class: "cv-notice-bar", style: H({ background: $(f), height: `${$(c)}px` }) }, [$(l) ? (d(), u("div", Wh, [b(W, { height: "40px", direction: "vertical", autoplay: !0, "indicator-position": "none", interval: y.value }, { default: v(() => [(d(!0), u(F, null, E($(o), (te) => (d(), V(j, { key: te }, { default: v(() => [L(T(te), 1)]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["interval"])])) : (d(), u("div", { key: 1, style: H({ color: $(m), fontSize: `${$(n)}px` }), class: "cv-notice-bar-wrap" }, [$(i) ? (d(), V(ee, { key: 0, type: $(i) }, null, 8, ["type"])) : w("", !0), r("div", { ref_key: "boxRef", ref: k, class: "text-box" }, [r("div", { ref_key: "textRef", ref: x, class: "text" }, T($(o)), 513)], 512), $(a) ? (d(), V(ee, { key: 1, type: $(a) }, null, 8, ["type"])) : w("", !0)], 4))], 4);
|
|
3009
3013
|
};
|
|
3010
3014
|
} });
|
|
3011
|
-
|
|
3012
|
-
e.component(
|
|
3015
|
+
Lo.install = function(e) {
|
|
3016
|
+
e.component(Lo.name, Lo);
|
|
3013
3017
|
};
|
|
3014
|
-
const
|
|
3018
|
+
const Yh = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize: 2, placeholder: "", autoDestroy: !0, extensions: [In] }), oi = "change", ai = "update", ii = "focus", li = "blur", ni = "ready", si = "update:modelValue", Le = (e) => {
|
|
3015
3019
|
const t = new Tn();
|
|
3016
3020
|
return { compartment: t, run: (o) => {
|
|
3017
3021
|
t.get(e.state) ? e.dispatch({ effects: t.reconfigure(o) }) : e.dispatch({ effects: Ln.appendConfig.of(t.of(o)) });
|
|
@@ -3022,14 +3026,14 @@ const Xh = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSi
|
|
|
3022
3026
|
const i = o.get(e.state);
|
|
3023
3027
|
l(a ?? i !== t ? t : []);
|
|
3024
3028
|
};
|
|
3025
|
-
},
|
|
3026
|
-
const o = se(), l = se(), a = se(), i = { ...
|
|
3029
|
+
}, Xh = Sl({ name: "VueCodemirror", props: { modelValue: { type: String, default: "" }, autofocus: { type: Boolean, default: !1 }, disabled: { type: Boolean, default: !1 }, indentWithTab: { type: Boolean, default: !1 }, tabSize: Number, placeholder: String, style: Object, autoDestroy: { type: Boolean, default: !1 }, phrases: Object, root: Object, extensions: Array, selection: Object }, emits: { [oi]: (e, t) => !0, [ai]: (e) => !0, [ii]: (e) => !0, [li]: (e) => !0, [ni]: (e) => !0, [si]: (e, t) => !0 }, setup(e, t) {
|
|
3030
|
+
const o = se(), l = se(), a = se(), i = { ...Yh }, n = G(() => {
|
|
3027
3031
|
const c = {};
|
|
3028
3032
|
return Object.keys(Vl(e)).forEach((h) => {
|
|
3029
3033
|
h !== "modelValue" && (c[h] = e[h] ?? i[h]);
|
|
3030
3034
|
}), c;
|
|
3031
3035
|
});
|
|
3032
|
-
return
|
|
3036
|
+
return ze(() => {
|
|
3033
3037
|
l.value = (({ onUpdate: h, onChange: p, onFocus: m, onBlur: f, ...g }) => Ve.create({ doc: g.doc, selection: g.selection, extensions: [...Array.isArray(g.extensions) ? g.extensions : [g.extensions], X.updateListener.of((k) => {
|
|
3034
3038
|
h(k), k.docChanged && p(k.state.doc.toString(), k), k.focusChanged && (k.view.hasFocus ? m(k) : f(k));
|
|
3035
3039
|
})] }))({ doc: e.modelValue, selection: n.value.selection, extensions: i.extensions ?? [], onFocus: (h) => t.emit(ii, h), onBlur: (h) => t.emit(li, h), onUpdate: (h) => t.emit(ai, h), onChange: (h, p) => {
|
|
@@ -3056,7 +3060,7 @@ const Xh = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSi
|
|
|
3056
3060
|
}), Vn(() => {
|
|
3057
3061
|
n.value.autoDestroy && a.value && a.value.destroy();
|
|
3058
3062
|
}), () => Na("div", { class: "cv-editor-codemirror", ref: o });
|
|
3059
|
-
} }), ci = "#e06c75", Lo = "#abb2bf", $a = "#7d8799", di = "#d19a66", hi = "#2c313a", pi = "#282c34", qo = "#353a42", ui = "#528bff", Kh = X.theme({ "&": { color: Lo, backgroundColor: pi }, ".cm-content": { caretColor: ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "#3E4451" }, ".cm-panels": { backgroundColor: "#21252b", color: Lo }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: "#72a1ff59", outline: "1px solid #457dff" }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: "#6199ff2f" }, ".cm-activeLine": { backgroundColor: "#6699ff0b" }, ".cm-selectionMatch": { backgroundColor: "#aafe661a" }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" }, ".cm-gutters": { backgroundColor: pi, color: $a, border: "none" }, ".cm-activeLineGutter": { backgroundColor: hi }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: "#ddd" }, ".cm-tooltip": { border: "none", backgroundColor: qo }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: qo, borderBottomColor: qo }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { backgroundColor: hi, color: Lo } } }, { dark: !0 }), Gh = J.define([{ tag: s.keyword, color: "#c678dd" }, { tag: [s.name, s.deleted, s.character, s.propertyName, s.macroName], color: ci }, { tag: [s.function(s.variableName), s.labelName], color: "#61afef" }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: di }, { tag: [s.definition(s.name), s.separator], color: Lo }, { tag: [s.typeName, s.className, s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: "#e5c07b" }, { tag: [s.operator, s.operatorKeyword, s.url, s.escape, s.regexp, s.link, s.special(s.string)], color: "#56b6c2" }, { tag: [s.meta, s.comment], color: $a }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.strikethrough, textDecoration: "line-through" }, { tag: s.link, color: $a, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ci }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: di }, { tag: [s.processingInstruction, s.string, s.inserted], color: "#98c379" }, { tag: s.invalid, color: "#ffffff" }]), Zh = [Kh, Q(Gh)], Qh = !1, Ko = "#FAFAFA", he = "#90A4AE", Ae = "#80CBC440", mi = "#272727", Go = "#FAFAFA", gi = "#00000010", Jh = "#c2c2c222", ep = "#CFD8DC", tp = "#7E939E", op = "#FAFAFA", fi = "#7C4DFF", Zo = "#90A4AE", vi = "#6182B8", ap = "#91B859", ip = "#F76D47", bi = "#8796B0", lp = "#FFB62C", np = "#F76D47", sp = "#90A4AE", rp = "#91B859", cp = "#E53935", dp = "#39ADB5", hp = X.theme({ "&": { color: he, backgroundColor: Ko }, ".cm-content": { caretColor: mi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: mi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ae }, ".cm-panels": { backgroundColor: Go, color: he }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Go, outline: `1px solid ${gi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ae }, ".cm-activeLine": { backgroundColor: Jh }, ".cm-selectionMatch": { backgroundColor: Ae }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: op, outline: "none" }, ".cm-gutters": { backgroundColor: Ko, color: he, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Ko }, ".cm-lineNumbers .cm-gutterElement": { color: ep }, ".cm-lineNumbers .cm-activeLineGutter": { color: tp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: he }, ".cm-tooltip": { border: `1px solid ${gi}`, backgroundColor: Go, color: he }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: he, borderBottomColor: he }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ae, color: he } } }, { dark: Qh }), pp = J.define([{ tag: s.keyword, color: fi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Zo }, { tag: [s.propertyName], color: vi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: ap }, { tag: [s.function(s.variableName), s.labelName], color: vi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: ip }, { tag: [s.definition(s.name), s.separator], color: Zo }, { tag: [s.className], color: lp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: np }, { tag: [s.typeName], color: bi, fontStyle: bi }, { tag: [s.operator, s.operatorKeyword], color: fi }, { tag: [s.url, s.escape, s.regexp, s.link], color: dp }, { tag: [s.meta, s.comment], color: sp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: rp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Zo }, { tag: s.invalid, color: cp }, { tag: s.strikethrough, textDecoration: "line-through" }]), up = [hp, Q(pp)], mp = !0, Qo = "#263238", pe = "#EEFFFF", Pe = "#80CBC420", yi = "#FFCC00", Jo = "#263238", Ci = "#FFFFFF10", gp = "#4c616c22", fp = "#37474F", vp = "#607a86", bp = "#263238", wi = "#C792EA", ea = "#EEFFFF", ki = "#82AAFF", yp = "#C3E88D", Cp = "#F78C6C", xi = "#B2CCD6", wp = "#FFCB6B", kp = "#F78C6C", xp = "#546E7A", Sp = "#C3E88D", Vp = "#FF5370", _p = "#89DDFF", Ip = X.theme({ "&": { color: pe, backgroundColor: Qo }, ".cm-content": { caretColor: yi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: yi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Pe }, ".cm-panels": { backgroundColor: Jo, color: pe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Jo, outline: `1px solid ${Ci}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Pe }, ".cm-activeLine": { backgroundColor: gp }, ".cm-selectionMatch": { backgroundColor: Pe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: bp, outline: "none" }, ".cm-gutters": { backgroundColor: Qo, color: pe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Qo }, ".cm-lineNumbers .cm-gutterElement": { color: fp }, ".cm-lineNumbers .cm-activeLineGutter": { color: vp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: pe }, ".cm-tooltip": { border: `1px solid ${Ci}`, backgroundColor: Jo, color: pe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: pe, borderBottomColor: pe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Pe, color: pe } } }, { dark: mp }), Tp = J.define([{ tag: s.keyword, color: wi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ea }, { tag: [s.propertyName], color: ki }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: yp }, { tag: [s.function(s.variableName), s.labelName], color: ki }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Cp }, { tag: [s.definition(s.name), s.separator], color: ea }, { tag: [s.className], color: wp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: kp }, { tag: [s.typeName], color: xi, fontStyle: xi }, { tag: [s.operator, s.operatorKeyword], color: wi }, { tag: [s.url, s.escape, s.regexp, s.link], color: _p }, { tag: [s.meta, s.comment], color: xp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Sp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ea }, { tag: s.invalid, color: Vp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Lp = [Ip, Q(Tp)], Dp = !1, ta = "#FDF6E3", ue = "#586E75", je = "#EEE8D5", Si = "#657B83", oa = "#FDF6E3", Vi = "#D3AF86", $p = "#d5bd5c22", Op = "#586E75", Fp = "#567983", Mp = "#EEE8D5", _i = "#859900", aa = "#268BD2", Ii = "#268BD2", Ep = "#2AA198", Np = "#CB4B16", Ti = "#CB4B16", Bp = "#CB4B16", zp = "#D33682", Hp = "#93A1A1", Ap = "#268BD2", Pp = "#DC322F", jp = "#DC322F", Rp = X.theme({ "&": { color: ue, backgroundColor: ta }, ".cm-content": { caretColor: Si }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Si }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: je }, ".cm-panels": { backgroundColor: oa, color: ue }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: oa, outline: `1px solid ${Vi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: je }, ".cm-activeLine": { backgroundColor: $p }, ".cm-selectionMatch": { backgroundColor: je }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Mp, outline: "none" }, ".cm-gutters": { backgroundColor: ta, color: ue, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ta }, ".cm-lineNumbers .cm-gutterElement": { color: Op }, ".cm-lineNumbers .cm-activeLineGutter": { color: Fp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ue }, ".cm-tooltip": { border: `1px solid ${Vi}`, backgroundColor: oa, color: ue }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ue, borderBottomColor: ue }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: je, color: ue } } }, { dark: Dp }), Up = J.define([{ tag: s.keyword, color: _i }, { tag: [s.name, s.deleted, s.character, s.macroName], color: aa }, { tag: [s.propertyName], color: Ii }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Ep }, { tag: [s.function(s.variableName), s.labelName], color: Ii }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Np }, { tag: [s.definition(s.name), s.separator], color: aa }, { tag: [s.className], color: Bp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: zp }, { tag: [s.typeName], color: Ti, fontStyle: Ti }, { tag: [s.operator, s.operatorKeyword], color: _i }, { tag: [s.url, s.escape, s.regexp, s.link], color: jp }, { tag: [s.meta, s.comment], color: Hp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ap }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: aa }, { tag: s.invalid, color: Pp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Wp = [Rp, Q(Up)], Yp = !0, ia = "#002B36", me = "#93A1A1", Re = "#274642", Li = "#D30102", la = "#002B36", Di = "#2AA19899", Xp = "#005b7022", qp = "#93A1A1", Kp = "#949494", Gp = "#073642", $i = "#859900", na = "#268BD2", Oi = "#268BD2", Zp = "#2AA198", Qp = "#CB4B16", Fi = "#CB4B16", Jp = "#CB4B16", eu = "#D33682", tu = "#586E75", ou = "#268BD2", au = "#DC322F", iu = "#DC322F", lu = [X.theme({ "&": { color: me, backgroundColor: ia }, ".cm-content": { caretColor: Li }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Li }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Re }, ".cm-panels": { backgroundColor: la, color: me }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: la, outline: `1px solid ${Di}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Re }, ".cm-activeLine": { backgroundColor: Xp }, ".cm-selectionMatch": { backgroundColor: Re }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Gp, outline: "none" }, ".cm-gutters": { backgroundColor: ia, color: me, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ia }, ".cm-lineNumbers .cm-gutterElement": { color: qp }, ".cm-lineNumbers .cm-activeLineGutter": { color: Kp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: me }, ".cm-tooltip": { border: `1px solid ${Di}`, backgroundColor: la, color: me }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: me, borderBottomColor: me }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Re, color: me } } }, { dark: Yp }), Q(J.define([{ tag: s.keyword, color: $i }, { tag: [s.name, s.deleted, s.character, s.macroName], color: na }, { tag: [s.propertyName], color: Oi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Zp }, { tag: [s.function(s.variableName), s.labelName], color: Oi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Qp }, { tag: [s.definition(s.name), s.separator], color: na }, { tag: [s.className], color: Jp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: eu }, { tag: [s.typeName], color: Fi, fontStyle: Fi }, { tag: [s.operator, s.operatorKeyword], color: $i }, { tag: [s.url, s.escape, s.regexp, s.link], color: iu }, { tag: [s.meta, s.comment], color: tu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ou }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: na }, { tag: s.invalid, color: au }, { tag: s.strikethrough, textDecoration: "line-through" }]))], nu = !0, sa = "#282A36", ge = "#F8F8F2", Ue = "#44475A", Mi = "#F8F8F2", ra = "#282A36", Ei = "#191A21", su = "#53576c22", ru = "#6272A4", cu = "#F8F8F2", du = "#44475A", Ni = "#FF79C6", ca = "#F8F8F2", Bi = "#50FA7B", hu = "#F1FA8C", pu = "#BD93F9", zi = "#8BE9FD", uu = "#8BE9FD", mu = "#BD93F9", gu = "#6272A4", fu = "#BD93F9", vu = "#FF5555", bu = "#F1FA8C", yu = [X.theme({ "&": { color: ge, backgroundColor: sa }, ".cm-content": { caretColor: Mi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Mi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ue }, ".cm-panels": { backgroundColor: ra, color: ge }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ra, outline: `1px solid ${Ei}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ue }, ".cm-activeLine": { backgroundColor: su }, ".cm-selectionMatch": { backgroundColor: Ue }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: du, outline: "none" }, ".cm-gutters": { backgroundColor: sa, color: ge, border: "none" }, ".cm-activeLineGutter": { backgroundColor: sa }, ".cm-lineNumbers .cm-gutterElement": { color: ru }, ".cm-lineNumbers .cm-activeLineGutter": { color: cu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ge }, ".cm-tooltip": { border: `1px solid ${Ei}`, backgroundColor: ra, color: ge }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ge, borderBottomColor: ge }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ue, color: ge } } }, { dark: nu }), Q(J.define([{ tag: s.keyword, color: Ni }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ca }, { tag: [s.propertyName], color: Bi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: hu }, { tag: [s.function(s.variableName), s.labelName], color: Bi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: pu }, { tag: [s.definition(s.name), s.separator], color: ca }, { tag: [s.className], color: uu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: mu }, { tag: [s.typeName], color: zi, fontStyle: zi }, { tag: [s.operator, s.operatorKeyword], color: Ni }, { tag: [s.url, s.escape, s.regexp, s.link], color: bu }, { tag: [s.meta, s.comment], color: gu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: fu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ca }, { tag: s.invalid, color: vu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Cu = !1, da = "#fff", fe = "#444d56", We = "#0366d625", Hi = "#044289", ha = "#fff", Ai = "#e1e4e8", wu = "#c6c6c622", ku = "#1b1f234d", xu = "#24292e", Su = "#34d05840", Pi = "#d73a49", pa = "#e36209", ji = "#005cc5", Vu = "#032f62", _u = "#005cc5", Ri = "#005cc5", Iu = "#6f42c1", Tu = "#005cc5", Lu = "#6a737d", Du = "#005cc5", $u = "#cb2431", Ou = "#032f62", Fu = [X.theme({ "&": { color: fe, backgroundColor: da }, ".cm-content": { caretColor: Hi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Hi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: We }, ".cm-panels": { backgroundColor: ha, color: fe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ha, outline: `1px solid ${Ai}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: We }, ".cm-activeLine": { backgroundColor: wu }, ".cm-selectionMatch": { backgroundColor: We }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Su, outline: "none" }, ".cm-gutters": { backgroundColor: da, color: fe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: da }, ".cm-lineNumbers .cm-gutterElement": { color: ku }, ".cm-lineNumbers .cm-activeLineGutter": { color: xu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: fe }, ".cm-tooltip": { border: `1px solid ${Ai}`, backgroundColor: ha, color: fe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: fe, borderBottomColor: fe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: We, color: fe } } }, { dark: Cu }), Q(J.define([{ tag: s.keyword, color: Pi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: pa }, { tag: [s.propertyName], color: ji }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Vu }, { tag: [s.function(s.variableName), s.labelName], color: ji }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: _u }, { tag: [s.definition(s.name), s.separator], color: pa }, { tag: [s.className], color: Iu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Tu }, { tag: [s.typeName], color: Ri, fontStyle: Ri }, { tag: [s.operator, s.operatorKeyword], color: Pi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Ou }, { tag: [s.meta, s.comment], color: Lu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Du }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: pa }, { tag: s.invalid, color: $u }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Mu = !0, ua = "#24292e", ve = "#d1d5da", Ye = "#3392FF44", Ui = "#c8e1ff", ma = "#24292e", Wi = "#1b1f23", Eu = "#4d566022", Nu = "#444d56", Bu = "#e1e4e8", zu = "#17E5E650", Yi = "#f97583", ga = "#ffab70", Xi = "#79b8ff", Hu = "#9ecbff", Au = "#79b8ff", qi = "#79b8ff", Pu = "#b392f0", ju = "#79b8ff", Ru = "#6a737d", Uu = "#79b8ff", Wu = "#f97583", Yu = "#9ecbff", Xu = [X.theme({ "&": { color: ve, backgroundColor: ua }, ".cm-content": { caretColor: Ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ye }, ".cm-panels": { backgroundColor: ma, color: ve }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ma, outline: `1px solid ${Wi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ye }, ".cm-activeLine": { backgroundColor: Eu }, ".cm-selectionMatch": { backgroundColor: Ye }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: zu, outline: "none" }, ".cm-gutters": { backgroundColor: ua, color: ve, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ua }, ".cm-lineNumbers .cm-gutterElement": { color: Nu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Bu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ve }, ".cm-tooltip": { border: `1px solid ${Wi}`, backgroundColor: ma, color: ve }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ve, borderBottomColor: ve }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ye, color: ve } } }, { dark: Mu }), Q(J.define([{ tag: s.keyword, color: Yi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ga }, { tag: [s.propertyName], color: Xi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Hu }, { tag: [s.function(s.variableName), s.labelName], color: Xi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Au }, { tag: [s.definition(s.name), s.separator], color: ga }, { tag: [s.className], color: Pu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: ju }, { tag: [s.typeName], color: qi, fontStyle: qi }, { tag: [s.operator, s.operatorKeyword], color: Yi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Yu }, { tag: [s.meta, s.comment], color: Ru }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Uu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ga }, { tag: s.invalid, color: Wu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], qu = !0, fa = "#21202e", be = "#edecee", Xe = "#3d375e7f", Ki = "#a277ff", va = "#21202e", Gi = "#3b334b", Ku = "#4d4b6622", Gu = "#a394f033", Zu = "#cdccce", Qu = "#a394f033", Zi = "#a277ff", ba = "#edecee", Qi = "#ffca85", Ju = "#61ffca", em = "#61ffca", Ji = "#82e2ff", tm = "#82e2ff", om = "#61ffca", am = "#6d6d6d", im = "#a277ff", lm = "#ff6767", nm = "#61ffca", sm = [X.theme({ "&": { color: be, backgroundColor: fa }, ".cm-content": { caretColor: Ki }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ki }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Xe }, ".cm-panels": { backgroundColor: va, color: be }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: va, outline: `1px solid ${Gi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Xe }, ".cm-activeLine": { backgroundColor: Ku }, ".cm-selectionMatch": { backgroundColor: Xe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Qu, outline: "none" }, ".cm-gutters": { backgroundColor: fa, color: be, border: "none" }, ".cm-activeLineGutter": { backgroundColor: fa }, ".cm-lineNumbers .cm-gutterElement": { color: Gu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Zu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: be }, ".cm-tooltip": { border: `1px solid ${Gi}`, backgroundColor: va, color: be }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: be, borderBottomColor: be }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Xe, color: be } } }, { dark: qu }), Q(J.define([{ tag: s.keyword, color: Zi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ba }, { tag: [s.propertyName], color: Qi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Ju }, { tag: [s.function(s.variableName), s.labelName], color: Qi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: em }, { tag: [s.definition(s.name), s.separator], color: ba }, { tag: [s.className], color: tm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: om }, { tag: [s.typeName], color: Ji, fontStyle: Ji }, { tag: [s.operator, s.operatorKeyword], color: Zi }, { tag: [s.url, s.escape, s.regexp, s.link], color: nm }, { tag: [s.meta, s.comment], color: am }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: im }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ba }, { tag: s.invalid, color: lm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], rm = !0, ya = "#1a1b26", ye = "#787c99", qe = "#515c7e40", el = "#c0caf5", Ca = "#1a1b26", tl = "#787c99", cm = "#43455c22", dm = "#363b54", hm = "#737aa2", pm = "#16161e", ol = "#bb9af7", wa = "#c0caf5", al = "#7aa2f7", um = "#9ece6a", mm = "#bb9af7", il = "#0db9d7", gm = "#c0caf5", fm = "#ff9e64", vm = "#444b6a", bm = "#89ddff", ym = "#ff5370", Cm = "#b4f9f8", wm = [X.theme({ "&": { color: ye, backgroundColor: ya }, ".cm-content": { caretColor: el }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: el }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: qe }, ".cm-panels": { backgroundColor: Ca, color: ye }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Ca, outline: `1px solid ${tl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: qe }, ".cm-activeLine": { backgroundColor: cm }, ".cm-selectionMatch": { backgroundColor: qe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: pm, outline: "none" }, ".cm-gutters": { backgroundColor: ya, color: ye, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ya }, ".cm-lineNumbers .cm-gutterElement": { color: dm }, ".cm-lineNumbers .cm-activeLineGutter": { color: hm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ye }, ".cm-tooltip": { border: `1px solid ${tl}`, backgroundColor: Ca, color: ye }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ye, borderBottomColor: ye }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: qe, color: ye } } }, { dark: rm }), Q(J.define([{ tag: s.keyword, color: ol }, { tag: [s.name, s.deleted, s.character, s.macroName], color: wa }, { tag: [s.propertyName], color: al }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: um }, { tag: [s.function(s.variableName), s.labelName], color: al }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: mm }, { tag: [s.definition(s.name), s.separator], color: wa }, { tag: [s.className], color: gm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: fm }, { tag: [s.typeName], color: il, fontStyle: il }, { tag: [s.operator, s.operatorKeyword], color: ol }, { tag: [s.url, s.escape, s.regexp, s.link], color: Cm }, { tag: [s.meta, s.comment], color: vm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: bm }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: wa }, { tag: s.invalid, color: ym }, { tag: s.strikethrough, textDecoration: "line-through" }]))], km = !0, ka = "#24283b", Ce = "#7982a9", Ke = "#6f7bb630", ll = "#c0caf5", xa = "#24283b", nl = "#7982a9", xm = "#4d547722", Sm = "#3b4261", Vm = "#737aa2", _m = "#1f2335", sl = "#bb9af7", Sa = "#c0caf5", rl = "#7aa2f7", Im = "#9ece6a", Tm = "#bb9af7", cl = "#2ac3de", Lm = "#c0caf5", Dm = "#ff9e64", $m = "#565f89", Om = "#89ddff", Fm = "#ff5370", Mm = "#b4f9f8", Em = [X.theme({ "&": { color: Ce, backgroundColor: ka }, ".cm-content": { caretColor: ll }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ll }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ke }, ".cm-panels": { backgroundColor: xa, color: Ce }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: xa, outline: `1px solid ${nl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ke }, ".cm-activeLine": { backgroundColor: xm }, ".cm-selectionMatch": { backgroundColor: Ke }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: _m, outline: "none" }, ".cm-gutters": { backgroundColor: ka, color: Ce, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ka }, ".cm-lineNumbers .cm-gutterElement": { color: Sm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Vm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: Ce }, ".cm-tooltip": { border: `1px solid ${nl}`, backgroundColor: xa, color: Ce }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: Ce, borderBottomColor: Ce }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ke, color: Ce } } }, { dark: km }), Q(J.define([{ tag: s.keyword, color: sl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Sa }, { tag: [s.propertyName], color: rl }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Im }, { tag: [s.function(s.variableName), s.labelName], color: rl }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Tm }, { tag: [s.definition(s.name), s.separator], color: Sa }, { tag: [s.className], color: Lm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Dm }, { tag: [s.typeName], color: cl, fontStyle: cl }, { tag: [s.operator, s.operatorKeyword], color: sl }, { tag: [s.url, s.escape, s.regexp, s.link], color: Mm }, { tag: [s.meta, s.comment], color: $m }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Om }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Sa }, { tag: s.invalid, color: Fm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Nm = !1, Va = "#e1e2e7", we = "#6a6f8e", Ge = "#8591b840", dl = "#3760bf", _a = "#e1e2e7", hl = "#6a6f8e", Bm = "#a7aaba22", zm = "#b3b6cd", Hm = "#68709a", Am = "#e9e9ec", pl = "#9854f1", Ia = "#3760bf", ul = "#2e7de9", Pm = "#587539", jm = "#9854f1", ml = "#07879d", Rm = "#3760bf", Um = "#b15c00", Wm = "#9da3c2", Ym = "#006a83", Xm = "#ff3e64", qm = "#2e5857", Km = [X.theme({ "&": { color: we, backgroundColor: Va }, ".cm-content": { caretColor: dl }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: dl }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ge }, ".cm-panels": { backgroundColor: _a, color: we }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: _a, outline: `1px solid ${hl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ge }, ".cm-activeLine": { backgroundColor: Bm }, ".cm-selectionMatch": { backgroundColor: Ge }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Am, outline: "none" }, ".cm-gutters": { backgroundColor: Va, color: we, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Va }, ".cm-lineNumbers .cm-gutterElement": { color: zm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Hm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: we }, ".cm-tooltip": { border: `1px solid ${hl}`, backgroundColor: _a, color: we }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: we, borderBottomColor: we }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ge, color: we } } }, { dark: Nm }), Q(J.define([{ tag: s.keyword, color: pl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Ia }, { tag: [s.propertyName], color: ul }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Pm }, { tag: [s.function(s.variableName), s.labelName], color: ul }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: jm }, { tag: [s.definition(s.name), s.separator], color: Ia }, { tag: [s.className], color: Rm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Um }, { tag: [s.typeName], color: ml, fontStyle: ml }, { tag: [s.operator, s.operatorKeyword], color: pl }, { tag: [s.url, s.escape, s.regexp, s.link], color: qm }, { tag: [s.meta, s.comment], color: Wm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ym }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Ia }, { tag: s.invalid, color: Xm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Gm = { disabled: !1, indentWithTab: !0, tabSize: 4, autofocus: !1, placeholder: "input...", backgroundColor: "white", language: "markdown", theme: "oneDark", phrases: "en-us" }, jl = { emits: ["update:config"], components: { CodemirrorEditor: qh }, data: () => ({ codemrrConfig: { ...Gm }, codemrrThemes: { oneDark: Zh, materialLight: up, materialDark: Lp, solarizedLight: Wp, solarizedDark: lu, dracula: yu, githubLight: Fu, githubDark: Xu, aura: sm, tokyoNight: wm, tokyoNightStorm: Em, tokyoNightDay: Km }, codemrrLanguages: { javascript: Xa(), js: Xa(), html: En(), markdown: Bn(), json: Nn(), vue: zn(), java: An(), php: Hn(), python: Pn(), go: Rn(), mysql: qa(), sql: qa(), xml: jn(), css: Un() }, codemrrPhrases: { "Control character": "Steuerzeichen", "Selection deleted": "Auswahl gelöscht", "Folded lines": "Eingeklappte Zeilen", "Unfolded lines": "Ausgeklappte Zeilen", to: "bis", "folded code": "eingeklappter Code", unfold: "ausklappen", "Fold line": "Zeile einklappen", "Unfold line": "Zeile ausklappen", "Go to line": "Springe zu Zeile", go: "OK", Find: "Suchen", Replace: "Ersetzen", next: "nächste", previous: "vorherige", all: "alle", "match case": "groß/klein beachten", "by word": "ganze Wörter", replace: "ersetzen", "replace all": "alle ersetzen", close: "schließen", "current match": "aktueller Treffer", "replaced $ matches": "$ Treffer ersetzt", "replaced match on line $": "Treffer on Zeile $ ersetzt", "on line": "auf Zeile", Completions: "Vervollständigungen", Diagnostics: "Diagnosen", "No diagnostics": "Keine Diagnosen" }, editorViewInst: null, editorStateInst: null }), computed: { optionTheme() {
|
|
3063
|
+
} }), ci = "#e06c75", Do = "#abb2bf", $a = "#7d8799", di = "#d19a66", hi = "#2c313a", pi = "#282c34", Ko = "#353a42", ui = "#528bff", qh = X.theme({ "&": { color: Do, backgroundColor: pi }, ".cm-content": { caretColor: ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "#3E4451" }, ".cm-panels": { backgroundColor: "#21252b", color: Do }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: "#72a1ff59", outline: "1px solid #457dff" }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: "#6199ff2f" }, ".cm-activeLine": { backgroundColor: "#6699ff0b" }, ".cm-selectionMatch": { backgroundColor: "#aafe661a" }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" }, ".cm-gutters": { backgroundColor: pi, color: $a, border: "none" }, ".cm-activeLineGutter": { backgroundColor: hi }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: "#ddd" }, ".cm-tooltip": { border: "none", backgroundColor: Ko }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: Ko, borderBottomColor: Ko }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { backgroundColor: hi, color: Do } } }, { dark: !0 }), Kh = J.define([{ tag: s.keyword, color: "#c678dd" }, { tag: [s.name, s.deleted, s.character, s.propertyName, s.macroName], color: ci }, { tag: [s.function(s.variableName), s.labelName], color: "#61afef" }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: di }, { tag: [s.definition(s.name), s.separator], color: Do }, { tag: [s.typeName, s.className, s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: "#e5c07b" }, { tag: [s.operator, s.operatorKeyword, s.url, s.escape, s.regexp, s.link, s.special(s.string)], color: "#56b6c2" }, { tag: [s.meta, s.comment], color: $a }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.strikethrough, textDecoration: "line-through" }, { tag: s.link, color: $a, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ci }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: di }, { tag: [s.processingInstruction, s.string, s.inserted], color: "#98c379" }, { tag: s.invalid, color: "#ffffff" }]), Gh = [qh, Q(Kh)], Zh = !1, Go = "#FAFAFA", he = "#90A4AE", Pe = "#80CBC440", mi = "#272727", Zo = "#FAFAFA", gi = "#00000010", Qh = "#c2c2c222", Jh = "#CFD8DC", ep = "#7E939E", tp = "#FAFAFA", fi = "#7C4DFF", Qo = "#90A4AE", vi = "#6182B8", op = "#91B859", ap = "#F76D47", bi = "#8796B0", ip = "#FFB62C", lp = "#F76D47", np = "#90A4AE", sp = "#91B859", rp = "#E53935", cp = "#39ADB5", dp = X.theme({ "&": { color: he, backgroundColor: Go }, ".cm-content": { caretColor: mi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: mi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Pe }, ".cm-panels": { backgroundColor: Zo, color: he }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Zo, outline: `1px solid ${gi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Pe }, ".cm-activeLine": { backgroundColor: Qh }, ".cm-selectionMatch": { backgroundColor: Pe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: tp, outline: "none" }, ".cm-gutters": { backgroundColor: Go, color: he, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Go }, ".cm-lineNumbers .cm-gutterElement": { color: Jh }, ".cm-lineNumbers .cm-activeLineGutter": { color: ep }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: he }, ".cm-tooltip": { border: `1px solid ${gi}`, backgroundColor: Zo, color: he }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: he, borderBottomColor: he }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Pe, color: he } } }, { dark: Zh }), hp = J.define([{ tag: s.keyword, color: fi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Qo }, { tag: [s.propertyName], color: vi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: op }, { tag: [s.function(s.variableName), s.labelName], color: vi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: ap }, { tag: [s.definition(s.name), s.separator], color: Qo }, { tag: [s.className], color: ip }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: lp }, { tag: [s.typeName], color: bi, fontStyle: bi }, { tag: [s.operator, s.operatorKeyword], color: fi }, { tag: [s.url, s.escape, s.regexp, s.link], color: cp }, { tag: [s.meta, s.comment], color: np }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: sp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Qo }, { tag: s.invalid, color: rp }, { tag: s.strikethrough, textDecoration: "line-through" }]), pp = [dp, Q(hp)], up = !0, Jo = "#263238", pe = "#EEFFFF", je = "#80CBC420", yi = "#FFCC00", ea = "#263238", Ci = "#FFFFFF10", mp = "#4c616c22", gp = "#37474F", fp = "#607a86", vp = "#263238", wi = "#C792EA", ta = "#EEFFFF", ki = "#82AAFF", bp = "#C3E88D", yp = "#F78C6C", xi = "#B2CCD6", Cp = "#FFCB6B", wp = "#F78C6C", kp = "#546E7A", xp = "#C3E88D", Sp = "#FF5370", Vp = "#89DDFF", _p = X.theme({ "&": { color: pe, backgroundColor: Jo }, ".cm-content": { caretColor: yi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: yi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: je }, ".cm-panels": { backgroundColor: ea, color: pe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ea, outline: `1px solid ${Ci}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: je }, ".cm-activeLine": { backgroundColor: mp }, ".cm-selectionMatch": { backgroundColor: je }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: vp, outline: "none" }, ".cm-gutters": { backgroundColor: Jo, color: pe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Jo }, ".cm-lineNumbers .cm-gutterElement": { color: gp }, ".cm-lineNumbers .cm-activeLineGutter": { color: fp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: pe }, ".cm-tooltip": { border: `1px solid ${Ci}`, backgroundColor: ea, color: pe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: pe, borderBottomColor: pe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: je, color: pe } } }, { dark: up }), Ip = J.define([{ tag: s.keyword, color: wi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ta }, { tag: [s.propertyName], color: ki }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: bp }, { tag: [s.function(s.variableName), s.labelName], color: ki }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: yp }, { tag: [s.definition(s.name), s.separator], color: ta }, { tag: [s.className], color: Cp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: wp }, { tag: [s.typeName], color: xi, fontStyle: xi }, { tag: [s.operator, s.operatorKeyword], color: wi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Vp }, { tag: [s.meta, s.comment], color: kp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: xp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ta }, { tag: s.invalid, color: Sp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Tp = [_p, Q(Ip)], Lp = !1, oa = "#FDF6E3", ue = "#586E75", Re = "#EEE8D5", Si = "#657B83", aa = "#FDF6E3", Vi = "#D3AF86", Dp = "#d5bd5c22", $p = "#586E75", Op = "#567983", Fp = "#EEE8D5", _i = "#859900", ia = "#268BD2", Ii = "#268BD2", Mp = "#2AA198", Ep = "#CB4B16", Ti = "#CB4B16", Np = "#CB4B16", Bp = "#D33682", zp = "#93A1A1", Hp = "#268BD2", Ap = "#DC322F", Pp = "#DC322F", jp = X.theme({ "&": { color: ue, backgroundColor: oa }, ".cm-content": { caretColor: Si }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Si }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Re }, ".cm-panels": { backgroundColor: aa, color: ue }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: aa, outline: `1px solid ${Vi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Re }, ".cm-activeLine": { backgroundColor: Dp }, ".cm-selectionMatch": { backgroundColor: Re }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Fp, outline: "none" }, ".cm-gutters": { backgroundColor: oa, color: ue, border: "none" }, ".cm-activeLineGutter": { backgroundColor: oa }, ".cm-lineNumbers .cm-gutterElement": { color: $p }, ".cm-lineNumbers .cm-activeLineGutter": { color: Op }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ue }, ".cm-tooltip": { border: `1px solid ${Vi}`, backgroundColor: aa, color: ue }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ue, borderBottomColor: ue }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Re, color: ue } } }, { dark: Lp }), Rp = J.define([{ tag: s.keyword, color: _i }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ia }, { tag: [s.propertyName], color: Ii }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Mp }, { tag: [s.function(s.variableName), s.labelName], color: Ii }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Ep }, { tag: [s.definition(s.name), s.separator], color: ia }, { tag: [s.className], color: Np }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Bp }, { tag: [s.typeName], color: Ti, fontStyle: Ti }, { tag: [s.operator, s.operatorKeyword], color: _i }, { tag: [s.url, s.escape, s.regexp, s.link], color: Pp }, { tag: [s.meta, s.comment], color: zp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Hp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ia }, { tag: s.invalid, color: Ap }, { tag: s.strikethrough, textDecoration: "line-through" }]), Up = [jp, Q(Rp)], Wp = !0, la = "#002B36", me = "#93A1A1", Ue = "#274642", Li = "#D30102", na = "#002B36", Di = "#2AA19899", Yp = "#005b7022", Xp = "#93A1A1", qp = "#949494", Kp = "#073642", $i = "#859900", sa = "#268BD2", Oi = "#268BD2", Gp = "#2AA198", Zp = "#CB4B16", Fi = "#CB4B16", Qp = "#CB4B16", Jp = "#D33682", eu = "#586E75", tu = "#268BD2", ou = "#DC322F", au = "#DC322F", iu = [X.theme({ "&": { color: me, backgroundColor: la }, ".cm-content": { caretColor: Li }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Li }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ue }, ".cm-panels": { backgroundColor: na, color: me }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: na, outline: `1px solid ${Di}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ue }, ".cm-activeLine": { backgroundColor: Yp }, ".cm-selectionMatch": { backgroundColor: Ue }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Kp, outline: "none" }, ".cm-gutters": { backgroundColor: la, color: me, border: "none" }, ".cm-activeLineGutter": { backgroundColor: la }, ".cm-lineNumbers .cm-gutterElement": { color: Xp }, ".cm-lineNumbers .cm-activeLineGutter": { color: qp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: me }, ".cm-tooltip": { border: `1px solid ${Di}`, backgroundColor: na, color: me }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: me, borderBottomColor: me }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ue, color: me } } }, { dark: Wp }), Q(J.define([{ tag: s.keyword, color: $i }, { tag: [s.name, s.deleted, s.character, s.macroName], color: sa }, { tag: [s.propertyName], color: Oi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Gp }, { tag: [s.function(s.variableName), s.labelName], color: Oi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Zp }, { tag: [s.definition(s.name), s.separator], color: sa }, { tag: [s.className], color: Qp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Jp }, { tag: [s.typeName], color: Fi, fontStyle: Fi }, { tag: [s.operator, s.operatorKeyword], color: $i }, { tag: [s.url, s.escape, s.regexp, s.link], color: au }, { tag: [s.meta, s.comment], color: eu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: tu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: sa }, { tag: s.invalid, color: ou }, { tag: s.strikethrough, textDecoration: "line-through" }]))], lu = !0, ra = "#282A36", ge = "#F8F8F2", We = "#44475A", Mi = "#F8F8F2", ca = "#282A36", Ei = "#191A21", nu = "#53576c22", su = "#6272A4", ru = "#F8F8F2", cu = "#44475A", Ni = "#FF79C6", da = "#F8F8F2", Bi = "#50FA7B", du = "#F1FA8C", hu = "#BD93F9", zi = "#8BE9FD", pu = "#8BE9FD", uu = "#BD93F9", mu = "#6272A4", gu = "#BD93F9", fu = "#FF5555", vu = "#F1FA8C", bu = [X.theme({ "&": { color: ge, backgroundColor: ra }, ".cm-content": { caretColor: Mi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Mi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: We }, ".cm-panels": { backgroundColor: ca, color: ge }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ca, outline: `1px solid ${Ei}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: We }, ".cm-activeLine": { backgroundColor: nu }, ".cm-selectionMatch": { backgroundColor: We }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: cu, outline: "none" }, ".cm-gutters": { backgroundColor: ra, color: ge, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ra }, ".cm-lineNumbers .cm-gutterElement": { color: su }, ".cm-lineNumbers .cm-activeLineGutter": { color: ru }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ge }, ".cm-tooltip": { border: `1px solid ${Ei}`, backgroundColor: ca, color: ge }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ge, borderBottomColor: ge }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: We, color: ge } } }, { dark: lu }), Q(J.define([{ tag: s.keyword, color: Ni }, { tag: [s.name, s.deleted, s.character, s.macroName], color: da }, { tag: [s.propertyName], color: Bi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: du }, { tag: [s.function(s.variableName), s.labelName], color: Bi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: hu }, { tag: [s.definition(s.name), s.separator], color: da }, { tag: [s.className], color: pu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: uu }, { tag: [s.typeName], color: zi, fontStyle: zi }, { tag: [s.operator, s.operatorKeyword], color: Ni }, { tag: [s.url, s.escape, s.regexp, s.link], color: vu }, { tag: [s.meta, s.comment], color: mu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: gu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: da }, { tag: s.invalid, color: fu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], yu = !1, ha = "#fff", fe = "#444d56", Ye = "#0366d625", Hi = "#044289", pa = "#fff", Ai = "#e1e4e8", Cu = "#c6c6c622", wu = "#1b1f234d", ku = "#24292e", xu = "#34d05840", Pi = "#d73a49", ua = "#e36209", ji = "#005cc5", Su = "#032f62", Vu = "#005cc5", Ri = "#005cc5", _u = "#6f42c1", Iu = "#005cc5", Tu = "#6a737d", Lu = "#005cc5", Du = "#cb2431", $u = "#032f62", Ou = [X.theme({ "&": { color: fe, backgroundColor: ha }, ".cm-content": { caretColor: Hi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Hi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ye }, ".cm-panels": { backgroundColor: pa, color: fe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: pa, outline: `1px solid ${Ai}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ye }, ".cm-activeLine": { backgroundColor: Cu }, ".cm-selectionMatch": { backgroundColor: Ye }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: xu, outline: "none" }, ".cm-gutters": { backgroundColor: ha, color: fe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ha }, ".cm-lineNumbers .cm-gutterElement": { color: wu }, ".cm-lineNumbers .cm-activeLineGutter": { color: ku }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: fe }, ".cm-tooltip": { border: `1px solid ${Ai}`, backgroundColor: pa, color: fe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: fe, borderBottomColor: fe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ye, color: fe } } }, { dark: yu }), Q(J.define([{ tag: s.keyword, color: Pi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ua }, { tag: [s.propertyName], color: ji }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Su }, { tag: [s.function(s.variableName), s.labelName], color: ji }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Vu }, { tag: [s.definition(s.name), s.separator], color: ua }, { tag: [s.className], color: _u }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Iu }, { tag: [s.typeName], color: Ri, fontStyle: Ri }, { tag: [s.operator, s.operatorKeyword], color: Pi }, { tag: [s.url, s.escape, s.regexp, s.link], color: $u }, { tag: [s.meta, s.comment], color: Tu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Lu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ua }, { tag: s.invalid, color: Du }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Fu = !0, ma = "#24292e", ve = "#d1d5da", Xe = "#3392FF44", Ui = "#c8e1ff", ga = "#24292e", Wi = "#1b1f23", Mu = "#4d566022", Eu = "#444d56", Nu = "#e1e4e8", Bu = "#17E5E650", Yi = "#f97583", fa = "#ffab70", Xi = "#79b8ff", zu = "#9ecbff", Hu = "#79b8ff", qi = "#79b8ff", Au = "#b392f0", Pu = "#79b8ff", ju = "#6a737d", Ru = "#79b8ff", Uu = "#f97583", Wu = "#9ecbff", Yu = [X.theme({ "&": { color: ve, backgroundColor: ma }, ".cm-content": { caretColor: Ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Xe }, ".cm-panels": { backgroundColor: ga, color: ve }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ga, outline: `1px solid ${Wi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Xe }, ".cm-activeLine": { backgroundColor: Mu }, ".cm-selectionMatch": { backgroundColor: Xe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Bu, outline: "none" }, ".cm-gutters": { backgroundColor: ma, color: ve, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ma }, ".cm-lineNumbers .cm-gutterElement": { color: Eu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Nu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ve }, ".cm-tooltip": { border: `1px solid ${Wi}`, backgroundColor: ga, color: ve }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ve, borderBottomColor: ve }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Xe, color: ve } } }, { dark: Fu }), Q(J.define([{ tag: s.keyword, color: Yi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: fa }, { tag: [s.propertyName], color: Xi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: zu }, { tag: [s.function(s.variableName), s.labelName], color: Xi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Hu }, { tag: [s.definition(s.name), s.separator], color: fa }, { tag: [s.className], color: Au }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Pu }, { tag: [s.typeName], color: qi, fontStyle: qi }, { tag: [s.operator, s.operatorKeyword], color: Yi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Wu }, { tag: [s.meta, s.comment], color: ju }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ru }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: fa }, { tag: s.invalid, color: Uu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Xu = !0, va = "#21202e", be = "#edecee", qe = "#3d375e7f", Ki = "#a277ff", ba = "#21202e", Gi = "#3b334b", qu = "#4d4b6622", Ku = "#a394f033", Gu = "#cdccce", Zu = "#a394f033", Zi = "#a277ff", ya = "#edecee", Qi = "#ffca85", Qu = "#61ffca", Ju = "#61ffca", Ji = "#82e2ff", em = "#82e2ff", tm = "#61ffca", om = "#6d6d6d", am = "#a277ff", im = "#ff6767", lm = "#61ffca", nm = [X.theme({ "&": { color: be, backgroundColor: va }, ".cm-content": { caretColor: Ki }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ki }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: qe }, ".cm-panels": { backgroundColor: ba, color: be }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ba, outline: `1px solid ${Gi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: qe }, ".cm-activeLine": { backgroundColor: qu }, ".cm-selectionMatch": { backgroundColor: qe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Zu, outline: "none" }, ".cm-gutters": { backgroundColor: va, color: be, border: "none" }, ".cm-activeLineGutter": { backgroundColor: va }, ".cm-lineNumbers .cm-gutterElement": { color: Ku }, ".cm-lineNumbers .cm-activeLineGutter": { color: Gu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: be }, ".cm-tooltip": { border: `1px solid ${Gi}`, backgroundColor: ba, color: be }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: be, borderBottomColor: be }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: qe, color: be } } }, { dark: Xu }), Q(J.define([{ tag: s.keyword, color: Zi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ya }, { tag: [s.propertyName], color: Qi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Qu }, { tag: [s.function(s.variableName), s.labelName], color: Qi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Ju }, { tag: [s.definition(s.name), s.separator], color: ya }, { tag: [s.className], color: em }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: tm }, { tag: [s.typeName], color: Ji, fontStyle: Ji }, { tag: [s.operator, s.operatorKeyword], color: Zi }, { tag: [s.url, s.escape, s.regexp, s.link], color: lm }, { tag: [s.meta, s.comment], color: om }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: am }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ya }, { tag: s.invalid, color: im }, { tag: s.strikethrough, textDecoration: "line-through" }]))], sm = !0, Ca = "#1a1b26", ye = "#787c99", Ke = "#515c7e40", el = "#c0caf5", wa = "#1a1b26", tl = "#787c99", rm = "#43455c22", cm = "#363b54", dm = "#737aa2", hm = "#16161e", ol = "#bb9af7", ka = "#c0caf5", al = "#7aa2f7", pm = "#9ece6a", um = "#bb9af7", il = "#0db9d7", mm = "#c0caf5", gm = "#ff9e64", fm = "#444b6a", vm = "#89ddff", bm = "#ff5370", ym = "#b4f9f8", Cm = [X.theme({ "&": { color: ye, backgroundColor: Ca }, ".cm-content": { caretColor: el }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: el }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ke }, ".cm-panels": { backgroundColor: wa, color: ye }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: wa, outline: `1px solid ${tl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ke }, ".cm-activeLine": { backgroundColor: rm }, ".cm-selectionMatch": { backgroundColor: Ke }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: hm, outline: "none" }, ".cm-gutters": { backgroundColor: Ca, color: ye, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Ca }, ".cm-lineNumbers .cm-gutterElement": { color: cm }, ".cm-lineNumbers .cm-activeLineGutter": { color: dm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ye }, ".cm-tooltip": { border: `1px solid ${tl}`, backgroundColor: wa, color: ye }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ye, borderBottomColor: ye }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ke, color: ye } } }, { dark: sm }), Q(J.define([{ tag: s.keyword, color: ol }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ka }, { tag: [s.propertyName], color: al }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: pm }, { tag: [s.function(s.variableName), s.labelName], color: al }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: um }, { tag: [s.definition(s.name), s.separator], color: ka }, { tag: [s.className], color: mm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: gm }, { tag: [s.typeName], color: il, fontStyle: il }, { tag: [s.operator, s.operatorKeyword], color: ol }, { tag: [s.url, s.escape, s.regexp, s.link], color: ym }, { tag: [s.meta, s.comment], color: fm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: vm }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ka }, { tag: s.invalid, color: bm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], wm = !0, xa = "#24283b", Ce = "#7982a9", Ge = "#6f7bb630", ll = "#c0caf5", Sa = "#24283b", nl = "#7982a9", km = "#4d547722", xm = "#3b4261", Sm = "#737aa2", Vm = "#1f2335", sl = "#bb9af7", Va = "#c0caf5", rl = "#7aa2f7", _m = "#9ece6a", Im = "#bb9af7", cl = "#2ac3de", Tm = "#c0caf5", Lm = "#ff9e64", Dm = "#565f89", $m = "#89ddff", Om = "#ff5370", Fm = "#b4f9f8", Mm = [X.theme({ "&": { color: Ce, backgroundColor: xa }, ".cm-content": { caretColor: ll }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ll }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ge }, ".cm-panels": { backgroundColor: Sa, color: Ce }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Sa, outline: `1px solid ${nl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ge }, ".cm-activeLine": { backgroundColor: km }, ".cm-selectionMatch": { backgroundColor: Ge }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Vm, outline: "none" }, ".cm-gutters": { backgroundColor: xa, color: Ce, border: "none" }, ".cm-activeLineGutter": { backgroundColor: xa }, ".cm-lineNumbers .cm-gutterElement": { color: xm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Sm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: Ce }, ".cm-tooltip": { border: `1px solid ${nl}`, backgroundColor: Sa, color: Ce }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: Ce, borderBottomColor: Ce }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ge, color: Ce } } }, { dark: wm }), Q(J.define([{ tag: s.keyword, color: sl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Va }, { tag: [s.propertyName], color: rl }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: _m }, { tag: [s.function(s.variableName), s.labelName], color: rl }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Im }, { tag: [s.definition(s.name), s.separator], color: Va }, { tag: [s.className], color: Tm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Lm }, { tag: [s.typeName], color: cl, fontStyle: cl }, { tag: [s.operator, s.operatorKeyword], color: sl }, { tag: [s.url, s.escape, s.regexp, s.link], color: Fm }, { tag: [s.meta, s.comment], color: Dm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: $m }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Va }, { tag: s.invalid, color: Om }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Em = !1, _a = "#e1e2e7", we = "#6a6f8e", Ze = "#8591b840", dl = "#3760bf", Ia = "#e1e2e7", hl = "#6a6f8e", Nm = "#a7aaba22", Bm = "#b3b6cd", zm = "#68709a", Hm = "#e9e9ec", pl = "#9854f1", Ta = "#3760bf", ul = "#2e7de9", Am = "#587539", Pm = "#9854f1", ml = "#07879d", jm = "#3760bf", Rm = "#b15c00", Um = "#9da3c2", Wm = "#006a83", Ym = "#ff3e64", Xm = "#2e5857", qm = [X.theme({ "&": { color: we, backgroundColor: _a }, ".cm-content": { caretColor: dl }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: dl }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ze }, ".cm-panels": { backgroundColor: Ia, color: we }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Ia, outline: `1px solid ${hl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ze }, ".cm-activeLine": { backgroundColor: Nm }, ".cm-selectionMatch": { backgroundColor: Ze }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Hm, outline: "none" }, ".cm-gutters": { backgroundColor: _a, color: we, border: "none" }, ".cm-activeLineGutter": { backgroundColor: _a }, ".cm-lineNumbers .cm-gutterElement": { color: Bm }, ".cm-lineNumbers .cm-activeLineGutter": { color: zm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: we }, ".cm-tooltip": { border: `1px solid ${hl}`, backgroundColor: Ia, color: we }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: we, borderBottomColor: we }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ze, color: we } } }, { dark: Em }), Q(J.define([{ tag: s.keyword, color: pl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Ta }, { tag: [s.propertyName], color: ul }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Am }, { tag: [s.function(s.variableName), s.labelName], color: ul }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Pm }, { tag: [s.definition(s.name), s.separator], color: Ta }, { tag: [s.className], color: jm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Rm }, { tag: [s.typeName], color: ml, fontStyle: ml }, { tag: [s.operator, s.operatorKeyword], color: pl }, { tag: [s.url, s.escape, s.regexp, s.link], color: Xm }, { tag: [s.meta, s.comment], color: Um }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Wm }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Ta }, { tag: s.invalid, color: Ym }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Km = { disabled: !1, indentWithTab: !0, tabSize: 4, autofocus: !1, placeholder: "input...", backgroundColor: "white", language: "markdown", theme: "oneDark", phrases: "en-us" }, jl = { emits: ["update:config"], components: { CodemirrorEditor: Xh }, data: () => ({ codemrrConfig: { ...Km }, codemrrThemes: { oneDark: Gh, materialLight: pp, materialDark: Tp, solarizedLight: Up, solarizedDark: iu, dracula: bu, githubLight: Ou, githubDark: Yu, aura: nm, tokyoNight: Cm, tokyoNightStorm: Mm, tokyoNightDay: qm }, codemrrLanguages: { javascript: qa(), js: qa(), html: En(), markdown: Bn(), json: Nn(), vue: zn(), java: An(), php: Hn(), python: Pn(), go: Rn(), mysql: Ka(), sql: Ka(), xml: jn(), css: Un() }, codemrrPhrases: { "Control character": "Steuerzeichen", "Selection deleted": "Auswahl gelöscht", "Folded lines": "Eingeklappte Zeilen", "Unfolded lines": "Ausgeklappte Zeilen", to: "bis", "folded code": "eingeklappter Code", unfold: "ausklappen", "Fold line": "Zeile einklappen", "Unfold line": "Zeile ausklappen", "Go to line": "Springe zu Zeile", go: "OK", Find: "Suchen", Replace: "Ersetzen", next: "nächste", previous: "vorherige", all: "alle", "match case": "groß/klein beachten", "by word": "ganze Wörter", replace: "ersetzen", "replace all": "alle ersetzen", close: "schließen", "current match": "aktueller Treffer", "replaced $ matches": "$ Treffer ersetzt", "replaced match on line $": "Treffer on Zeile $ ersetzt", "on line": "auf Zeile", Completions: "Vervollständigungen", Diagnostics: "Diagnosen", "No diagnostics": "Keine Diagnosen" }, editorViewInst: null, editorStateInst: null }), computed: { optionTheme() {
|
|
3060
3064
|
let e = Object.keys(this.codemrrThemes);
|
|
3061
3065
|
return ["default"].concat(e);
|
|
3062
3066
|
}, optionPhrases: () => ["en-us", "de-de"], optionLanguage() {
|
|
@@ -3078,25 +3082,25 @@ function Rl(e, t) {
|
|
|
3078
3082
|
l.initEvent("click", !0, !0), o.dispatchEvent(l);
|
|
3079
3083
|
} else o.click();
|
|
3080
3084
|
}
|
|
3081
|
-
function
|
|
3085
|
+
function Qe(e) {
|
|
3082
3086
|
return e < 10 ? "0" + e : e;
|
|
3083
3087
|
}
|
|
3084
|
-
const
|
|
3085
|
-
return d(), u("svg",
|
|
3088
|
+
const Gm = { undo: !1, redo: !1, strong: !0, italic: !0, overline: !0, h1: !0, h2: !0, h3: !0, h4: !0, h5: !0, h6: !0, hr: !0, quote: !0, ul: !0, ol: !0, notChecked: !0, checked: !0, link: !0, table: !0, image: !0, uploadImage: !0, custom_image: !0, custom_uploadImage: !0, custom_uploadFile: !0, importmd: !0, exportmd: !0, code: !0, html_to_markdown: !0, split: !0, preview: !0, scrollSync: !0, save: !0, clear: !0, copy: !0, toc: !0, fullscreen: !0, theme: !0, backgroundColor: !1, language: !1, phrases: !1, disabled: !1, autofocus: !1, indentWithTab: !1 }, Zm = { t: "1713021153946", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "1924", width: "20", height: "20" }, Qm = { t: "1599285632421", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "45640", width: "17", height: "17" }, Jm = { t: "1611551476626", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "4615", width: "22", height: "22" }, e1 = { t: "1713097613984", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "6856", width: "18", height: "18" }, t1 = { t: "1713109019954", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "13071", width: "18", height: "18" }, Pa = { components: { SvgImgMap: S({ name: "SvgImgMap" }, [["render", function(e, t, o, l, a, i) {
|
|
3089
|
+
return d(), u("svg", Zm, [...t[0] || (t[0] = [r("path", { d: "M659.456 786.432l-114.688-188.416c-4.10112-8.192-8.19712-12.28288-16.384-12.28288-4.096 0-8.19712 4.096-12.288 4.096l-57.344 57.344-61.44-90.11712c-4.096-8.192-8.192-12.28288-16.384-12.28288s-12.288 4.096-16.384 8.192l-151.552 225.28c0 4.096-4.096 8.192-4.096 12.288 0 12.28288 8.192 20.48 20.48 20.48h413.696c12.288 0 20.48-8.19712 20.48-20.48l-4.096-4.10112zM286.72 512c40.96 0 73.728-32.768 73.728-73.728S327.68 364.544 286.72 364.544s-73.728 32.768-73.728 73.728C208.896 479.232 245.76 512 286.72 512zM851.968 98.304H323.584c-40.96 0-73.728 32.768-73.728 73.728v20.48c0 12.288 8.192 20.48 20.48 20.48s16.384-12.288 16.384-20.48v-20.48c0-20.48 16.384-36.864 36.864-36.864h528.384c20.48 0 36.85888 16.384 36.85888 36.864v528.384c0 20.48-16.37888 36.864-36.85888 36.864h-20.48c-12.288 0-20.48 8.192-20.48 20.48s8.192 20.48 20.48 20.48h20.48c40.96 0 73.72288-32.768 73.72288-73.728v-532.48c0.00512-40.96-32.76288-73.728-73.72288-73.728z", "p-id": "1925" }, null, -1), r("path", { d: "M700.416 249.856H172.032c-40.96 0-73.728 32.768-73.728 73.728v528.384c0 40.96 32.768 73.72288 73.728 73.72288h528.384c40.96 0 73.728-32.76288 73.728-73.72288V323.584c0-40.96-32.768-73.728-73.728-73.728z m36.864 602.112c0 20.48-16.384 36.85888-36.864 36.85888H172.032c-20.48 0-36.864-16.37888-36.864-36.85888V323.584c0-20.48 16.384-36.864 36.864-36.864h528.384c20.48 0 36.864 16.384 36.864 36.864v528.384z", "p-id": "1926" }, null, -1)])]);
|
|
3086
3090
|
}]]), SvgUploadFile: S({ name: "SvgUploadFile" }, [["render", function(e, t, o, l, a, i) {
|
|
3087
|
-
return d(), u("svg",
|
|
3091
|
+
return d(), u("svg", Qm, [...t[0] || (t[0] = [r("path", { d: "M127.519 892.879v-763.34h655.448V514.69h63.612V81.831c0-8.783-7.12-15.903-15.903-15.903H79.81c-8.783 0-15.903 7.12-15.903 15.903v858.757c0 8.783 7.12 15.903 15.903 15.903h493.993v-63.612H127.519z", "p-id": "45641" }, null, -1), r("path", { d: "M231.608 228.388h447.269V292H231.608zM231.608 384.409h447.269v63.612H231.608zM231.608 540.43h245.141v63.612H231.608zM231.608 696.451h245.141v63.612H231.608zM923.269 762.938L745.315 584.984c-3.545-3.545-8.34-5.074-12.966-4.596a15.931 15.931 0 0 0-9.848 4.616L544.586 762.918c-6.248 6.248-6.248 16.379 0 22.627l22.353 22.353c6.248 6.248 16.379 6.248 22.627 0l112.555-112.555v245.148c0 8.837 7.163 16 16 16h31.612c8.837 0 16-7.163 16-16V695.363l112.555 112.555c6.248 6.248 16.379 6.248 22.627 0l22.353-22.353c6.249-6.248 6.249-16.378 0.001-22.627z", "p-id": "45642" }, null, -1)])]);
|
|
3088
3092
|
}]]), SvgToc: S({ name: "SvgToc" }, [["render", function(e, t, o, l, a, i) {
|
|
3089
|
-
return d(), u("svg",
|
|
3093
|
+
return d(), u("svg", Jm, [...t[0] || (t[0] = [r("path", { d: "M370.1 371.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7zM370.1 712.4h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.2-2.6 5.7-5.7 5.7z m333.5-7.5H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.1-2.7 5.7-5.8 5.7zM370.1 542.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7z", "p-id": "4616" }, null, -1), r("path", { d: "M847.1 560.4V250.1s0-24.7-14-46.4c-10.8-16.8-30-31.8-64.2-31.8h-261c-0.2 0-0.3 0-0.5 0.1H255s-78.1 0-78.1 78.1l0.1 213.4V774s0 24.7 13.9 46.3c10.8 16.8 30 31.8 64.2 31.8h261.1c0.2 0 0.3 0 0.5-0.1H769s78.1 0 78.1-78.1l-0.1-213.4 0.1-0.1z m-39 213.6c-1.3 38.5-38.9 39-38.9 39h-514c-1.3-0.1-2.5-0.2-3.8-0.3-5.4-1.1-15.7-4.1-23.9-11.7-9-9.7-11.2-22.3-11.7-26.1v-0.7l0.1-524.2c1.3-38.5 38.9-39 38.9-39h514c1.3 0.1 2.5 0.2 3.7 0.3 5.4 1.1 15.7 4.1 23.9 11.7 9 9.7 11.2 22.2 11.7 26 0 0.2 0 0.5 0.1 0.7l-0.1 524.3z", "p-id": "4617" }, null, -1)])]);
|
|
3090
3094
|
}]]), SvgCopy: S({ name: "SvgCopy" }, [["render", function(e, t, o, l, a, i) {
|
|
3091
|
-
return d(), u("svg",
|
|
3095
|
+
return d(), u("svg", e1, [...t[0] || (t[0] = [r("path", { d: "M857.373005 65.290005 469.604424 65.290005c-34.211173 0-62.044078 27.832905-62.044078 62.043055l0 10.340509-63.076594 0c-25.993001 0-48.228421 16.346293-57.001225 39.293935L166.626995 176.967504c-34.21015 0-62.043055 27.832905-62.043055 62.043055l0 657.655358c0 34.21015 27.832905 62.043055 62.043055 62.043055l550.115086 0c34.21015 0 62.043055-27.832905 62.043055-62.043055l0-49.634444 78.587869 0c34.21015 0 62.043055-27.832905 62.043055-62.043055L919.41606 127.33306C919.41606 93.122911 891.583155 65.290005 857.373005 65.290005zM344.483752 179.035606l194.402595 0c10.833743 0 19.646456 8.813736 19.646456 19.646456 0 10.833743-8.813736 19.646456-19.646456 19.646456L344.483752 218.328517c-10.833743 0-19.646456-8.813736-19.646456-19.646456C324.836273 187.849342 333.650009 179.035606 344.483752 179.035606zM737.423099 896.665917c0 11.402701-9.278317 20.681018-20.681018 20.681018L166.626995 917.346935c-11.403724 0-20.681018-9.278317-20.681018-20.681018L145.945977 239.010559c0-11.402701 9.277294-20.681018 20.681018-20.681018l120.111588 0c8.197706 24.02723 30.977525 41.362037 57.744145 41.362037l194.402595 0c26.767644 0 49.54644-17.334807 57.744145-41.362037l120.111588 0c11.402701 0 20.681018 9.278317 20.681018 20.681018L737.422076 896.665917zM878.054023 784.988418c0 11.402701-9.278317 20.681018-20.681018 20.681018l-78.587869 0L778.785136 239.010559c0-34.21015-27.832905-62.043055-62.043055-62.043055L595.886549 176.967504c-8.771781-22.947641-31.007201-39.293935-57.001225-39.293935l-89.963964 0L448.921359 127.33306c0-11.403724 9.278317-20.681018 20.683065-20.681018l387.768581 0c11.402701 0 20.681018 9.277294 20.681018 20.681018L878.054023 784.988418z", "p-id": "6857" }, null, -1), r("path", { d: "M620.597347 334.252737 260.748652 334.252737c-11.422144 0-20.681018 9.259898-20.681018 20.681018s9.258874 20.681018 20.681018 20.681018l359.849718 0c11.42112 0 20.681018-9.259898 20.681018-20.681018S632.018467 334.252737 620.597347 334.252737z", "p-id": "6858" }, null, -1), r("path", { d: "M620.597347 454.201619 260.748652 454.201619c-11.422144 0-20.681018 9.259898-20.681018 20.681018 0 11.42112 9.258874 20.681018 20.681018 20.681018l359.849718 0c11.42112 0 20.681018-9.259898 20.681018-20.681018C641.278365 463.46254 632.018467 454.201619 620.597347 454.201619z", "p-id": "6859" }, null, -1), r("path", { d: "M440.673511 574.151525 260.748652 574.151525c-11.422144 0-20.681018 9.259898-20.681018 20.681018 0 11.42112 9.258874 20.681018 20.681018 20.681018l179.924859 0c11.42112 0 20.681018-9.259898 20.681018-20.681018C461.35453 583.411423 452.093609 574.151525 440.673511 574.151525z", "p-id": "6860" }, null, -1)])]);
|
|
3092
3096
|
}]]), SvgLanguage: S({ name: "SvgLanguage" }, [["render", function(e, t, o, l, a, i) {
|
|
3093
|
-
return d(), u("svg",
|
|
3097
|
+
return d(), u("svg", t1, [...t[0] || (t[0] = [r("path", { d: "M200.313605 806.764028h487.993851v78.708685h-487.993851z", fill: "#6C7280", "p-id": "13072" }, null, -1), r("path", { d: "M809.518832 136.166026H79.102229a78.708686 78.708686 0 0 0-78.708686 78.708686V944.504228a78.708686 78.708686 0 0 0 78.708686 78.708685h730.416603a78.708686 78.708686 0 0 0 78.708685-78.708685V214.874712a78.708686 78.708686 0 0 0-78.708685-78.708686z m0 848.479631V944.504228H79.102229V214.874712h730.416603V944.504228z", "p-id": "13073" }, null, -1), r("path", { d: "M944.897771 0H171.978478v78.708686H944.897771v787.086856h78.708686V78.708686a78.708686 78.708686 0 0 0-78.708686-78.708686z", "p-id": "13074" }, null, -1), r("path", { d: "M360.092237 609.205227h161.352805l44.863951 117.275941h58.244427l-157.417371-385.672559h-55.09608L263.280553 725.694081H315.228286z m57.45734-157.417372a487.206764 487.206764 0 0 0 20.464259-73.986164q8.657955 31.483474 27.548039 78.708686l40.14143 107.043812H375.046887z", "p-id": "13075" }, null, -1)])]);
|
|
3094
3098
|
}]]) }, emits: ["on-action", "on-act-copy", "on-act-save", "on-act-theme", "on-act-custom", "on-act-choose-image"], props: { exportFileName: { type: String, default: "" }, toolbars: { type: Object, default: () => ({}) }, isPreview: { type: Boolean, default: !1 }, isFullscreen: { type: Boolean, default: !1 } }, data: () => ({ actionThemeDropdown: !1, actionPhrasesDropdown: !1, actionLanguageDropdown: !1, actionBgColorDropdown: !1, actionSplit: !0, actionPreview: !1, actionScrollSync: !0, actionToc: !0, actionFullscreen: !1, actionHtmlDiaVisible: !1, actionHtmlText: "" }), computed: { lastExpFileName() {
|
|
3095
|
-
let e = /* @__PURE__ */ new Date(), t = e.getFullYear(), o = e.getMonth() + 1, l = e.getDate(), a = e.getHours(), i = e.getMinutes(), n = t + "-" +
|
|
3099
|
+
let e = /* @__PURE__ */ new Date(), t = e.getFullYear(), o = e.getMonth() + 1, l = e.getDate(), a = e.getHours(), i = e.getMinutes(), n = t + "-" + Qe(o) + "-" + Qe(l) + "_" + Qe(a) + "-" + Qe(i);
|
|
3096
3100
|
return this.exportFileName || n;
|
|
3097
3101
|
}, toolConfig() {
|
|
3098
3102
|
const { toolbars: e = {} } = this;
|
|
3099
|
-
return { ...
|
|
3103
|
+
return { ...Gm, ...e };
|
|
3100
3104
|
} }, created() {
|
|
3101
3105
|
this.actionPreview = this.isPreview || !1;
|
|
3102
3106
|
}, methods: { actionPhrasesSet(e) {
|
|
@@ -3242,7 +3246,7 @@ row 2 col 1 | row 2 col 2
|
|
|
3242
3246
|
this.$emit("on-action", e, t);
|
|
3243
3247
|
}, actionCustom(e) {
|
|
3244
3248
|
this.$emit("on-act-custom", e);
|
|
3245
|
-
} } },
|
|
3249
|
+
} } }, o1 = { name: "cvEditorCode", mixins: [jl, Me, Pa], emits: ["update:modelValue", "on-ready"], props: { modelValue: { type: [String, Number], default: "" }, options: { type: [Object], default: () => ({ autoRefresh: !0, autofocus: !1, lineNumbers: !0, tabSize: 4, indentUnit: 2, line: !0, styleActiveLine: !0 }) }, toolbars: { type: [Object], default: () => ({}) }, language: { type: [String], default: "" }, theme: { type: [String], default: "oneDark" }, readOnly: { type: [Boolean], default: !1 }, autoSave: { type: [Boolean], default: !1 }, width: { type: [Number, String], default: "auto" }, height: { type: [Number, String], default: 600 }, bordered: { type: [Boolean], default: !0 } }, data: () => ({ localVal: "", heightMainPx: "", editorWrapRefEL: null }), watch: { localVal(e) {
|
|
3246
3250
|
this.$emit("update:modelValue", e);
|
|
3247
3251
|
}, modelValue(e) {
|
|
3248
3252
|
this.localVal != e && (this.localVal = e);
|
|
@@ -3270,10 +3274,10 @@ row 2 col 1 | row 2 col 2
|
|
|
3270
3274
|
const { container: t, state: o, view: l } = e;
|
|
3271
3275
|
this.editorStateInst = o, this.editorViewInst = l, this.listerenEvent(), this.$emit("on-ready");
|
|
3272
3276
|
}, listerenEvent() {
|
|
3273
|
-
} } },
|
|
3277
|
+
} } }, a1 = { key: 0, class: "cv-editor-code-toolbar", "data-title": "头部工具栏" }, i1 = { class: "cv-editor-toolbars" }, l1 = { name: "导入文件", class: "import-file" }, n1 = { name: "保存到本地" }, s1 = { key: 1, class: "shift-theme", name: "主题" }, r1 = ["onClick"], c1 = { class: "shift-theme", name: "语言" }, d1 = ["onClick"], h1 = { class: "icon-svg" }, p1 = { key: 5, class: "segmentation" }, u1 = ["name"], m1 = { title: "编辑器", class: "cv-editor-code-main" }, $o = S(o1, [["render", function(e, t, o, l, a, i) {
|
|
3274
3278
|
const n = C("SvgLanguage"), c = C("SvgCopy"), h = C("CodemirrorEditor");
|
|
3275
|
-
return d(), u("div", { ref: i.editorWrapRefID, class: z(["cv-editor-code-wrap cv-editor-vars", o.bordered ? "border" : ""]), style: H({ width: i.widthTotalPx, height: i.heightTotalPx }) }, [e.actionPreview ? w("", !0) : (d(), u("div",
|
|
3276
|
-
}]]),
|
|
3279
|
+
return d(), u("div", { ref: i.editorWrapRefID, class: z(["cv-editor-code-wrap cv-editor-vars", o.bordered ? "border" : ""]), style: H({ width: i.widthTotalPx, height: i.heightTotalPx }) }, [e.actionPreview ? w("", !0) : (d(), u("div", a1, [r("ul", i1, [e.$slots.title ? (d(), u(F, { key: 0 }, [r("li", null, [D(e.$slots, "title")]), t[16] || (t[16] = r("li", { class: "segmentation" }, [r("div")], -1))], 64)) : w("", !0), M(r("li", l1, [r("span", { class: "iconfont icon-daoru", onClick: t[0] || (t[0] = (...p) => e.actionImportFile && e.actionImportFile(...p)) }), r("input", { type: "file", onChange: t[1] || (t[1] = (p) => e.actionImportFile(p)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", n1, [r("span", { class: "iconfont icon-download", onClick: t[2] || (t[2] = (...p) => e.actionExportFile && e.actionExportFile(...p)) })], 512), [[A, e.toolConfig.exportmd]]), t[20] || (t[20] = r("li", { class: "segmentation" }, [r("div")], -1)), e.toolConfig.theme ? (d(), u("li", s1, [r("span", { class: "iconfont icon-theme", onClick: t[3] || (t[3] = (p) => e.actionThemeDropdown = !e.actionThemeDropdown) }), r("ul", { class: z({ active: e.actionThemeDropdown }), onMouseleave: t[4] || (t[4] = (p) => e.actionThemeDropdown = !1) }, [(d(!0), u(F, null, E(e.optionTheme, (p) => (d(), u("li", { onClick: (m) => e.actionThemesSet(p) }, T(p), 9, r1))), 256))], 34)])) : w("", !0), r("li", c1, [r("span", { class: "icon-svg", onClick: t[5] || (t[5] = (p) => e.actionLanguageDropdown = !e.actionLanguageDropdown) }, [b(n)]), r("ul", { class: z({ active: e.actionLanguageDropdown }), onMouseleave: t[6] || (t[6] = (p) => e.actionLanguageDropdown = !1) }, [(d(!0), u(F, null, E(e.optionLanguage, (p) => (d(), u("li", { class: z(p == o.language ? "active" : ""), onClick: (m) => e.actionLanguageSet(p) }, T(p), 11, d1))), 256))], 34)]), t[21] || (t[21] = r("li", { class: "empty" }, null, -1)), e.toolConfig.copy ? (d(), u("li", { key: 2, name: "复制", onClick: t[7] || (t[7] = (...p) => e.actionCopySet && e.actionCopySet(...p)) }, [r("span", h1, [b(c)])])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 3, name: "清空", onClick: t[8] || (t[8] = (p) => a.localVal = "") }, [...t[17] || (t[17] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 4, name: "保存", onClick: t[9] || (t[9] = (...p) => e.actionSaveSet && e.actionSaveSet(...p)) }, [...t[18] || (t[18] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", p1, [...t[19] || (t[19] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", { key: 6, name: e.actionFullscreen ? "退出全屏" : "全屏" }, [M(r("span", { onClick: t[10] || (t[10] = (p) => e.actionFullscreenSet(!1)), class: "iconfont icon-quite" }, null, 512), [[A, e.actionFullscreen]]), M(r("span", { onClick: t[11] || (t[11] = (p) => e.actionFullscreenSet(!0)), class: "iconfont icon-fullscreen" }, null, 512), [[A, !e.actionFullscreen]])], 8, u1)) : w("", !0)])])), r("div", m1, [b(h, O(e.codemrrBind, { id: e.editorRefID, ref: e.editorRefID, style: { height: a.heightMainPx, backgroundColor: e.codemrrConfig.backgroundColor }, extensions: e.extensions, modelValue: a.localVal, "onUpdate:modelValue": t[12] || (t[12] = (p) => a.localVal = p), onReady: i.initEditorReady, onChange: t[13] || (t[13] = (p) => i.consoleLog("change", p)), onFocus: t[14] || (t[14] = (p) => i.consoleLog("focus", p)), onBlur: t[15] || (t[15] = (p) => i.consoleLog("blur", p)) }), null, 16, ["id", "style", "extensions", "modelValue", "onReady"])])], 6);
|
|
3280
|
+
}]]), g1 = { name: "cvEditorJson", components: {}, mixins: [Me], props: { modelValue: { type: [Object, Array, Number, String, Boolean], default: "" }, mode: { type: [String], default: "text" }, readOnly: { type: [Boolean], default: !1 }, options: { type: [Object], default: () => ({ mode: "text" }) }, height: { type: String }, plus: { type: Boolean, default: !0 } }, data: () => ({ editorInstance: null, style: {}, max: !1, internalChange: !1, localVal: "" }), watch: { modelValue: { handler(e) {
|
|
3277
3281
|
this.localVal != e && (this.localVal = e, this.updateVal(e));
|
|
3278
3282
|
}, deep: !0 }, max(e) {
|
|
3279
3283
|
this.$nextTick(() => {
|
|
@@ -3318,11 +3322,11 @@ row 2 col 1 | row 2 col 2
|
|
|
3318
3322
|
this.emitData || (this.emitData = Tl(400, (t) => {
|
|
3319
3323
|
this.$emit("update:modelValue", t);
|
|
3320
3324
|
})), this.emitData(e);
|
|
3321
|
-
} } },
|
|
3325
|
+
} } }, Oo = S(g1, [["render", function(e, t, o, l, a, i) {
|
|
3322
3326
|
return d(), u("div", { class: z(["cv-editor-json", { "max-box": a.max, "min-box": !a.max }]), style: H(i.getHeight) }, [r("div", { ref: e.editorRefID, class: "jsoneditor-box" }, null, 512), r("a", { onClick: t[0] || (t[0] = (n) => a.max = !a.max), class: "max-btn" })], 6);
|
|
3323
|
-
}]]),
|
|
3327
|
+
}]]), f1 = { class: "cv-editor-upload-container" }, v1 = ["advlist", "anchor", "autolink", "autosave", "code", "codesample", "directionality", "emoticons", "fullscreen", "image", "insertdatetime", "link", "lists", "media", "nonbreaking", "pagebreak", "preview", "save", "searchreplace", "table", "visualblocks", "visualchars", "wordcount"], b1 = ["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ", "inserttemplate undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"];
|
|
3324
3328
|
let Ie = [];
|
|
3325
|
-
const
|
|
3329
|
+
const y1 = (e, t) => {
|
|
3326
3330
|
const o = document.getElementById(e), l = t || function() {
|
|
3327
3331
|
};
|
|
3328
3332
|
if (!o) {
|
|
@@ -3346,7 +3350,7 @@ const C1 = (e, t) => {
|
|
|
3346
3350
|
})(a);
|
|
3347
3351
|
}
|
|
3348
3352
|
o && l && (window.tinymce ? l(null, o) : Ie.push(l));
|
|
3349
|
-
},
|
|
3353
|
+
}, C1 = ["id"], w1 = { class: "editor-custom-btn-container" }, Fo = S({ inheritAttrs: !1, name: "cvEditorTinymce", components: { EditorSlideUpload: S({ name: "EditorSlideUpload", props: { color: { type: String, default: "#1890ff" }, accept: { type: [String], default: "image/jpeg,image/gif,image/png" }, upName: { type: [String], default: "" }, upAction: { type: [String], default: "" }, upResponseFn: { type: [Function], default: () => {
|
|
3350
3354
|
} }, upHeaders: { type: [Object], default: () => {
|
|
3351
3355
|
} }, upData: { type: [Object], default: () => {
|
|
3352
3356
|
} } }, data: () => ({ dialogVisible: !1, listObj: {}, fileList: [], diyUpList: new FormData() }), methods: { checkAllSuccess() {
|
|
@@ -3370,7 +3374,7 @@ const C1 = (e, t) => {
|
|
|
3370
3374
|
});
|
|
3371
3375
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
3372
3376
|
const n = C("cv-icons"), c = C("el-button"), h = C("el-upload"), p = C("el-dialog");
|
|
3373
|
-
return d(), u("div",
|
|
3377
|
+
return d(), u("div", f1, [b(c, { style: H({ background: o.color, borderColor: o.color, fontSize: "16px" }), type: "primary", onClick: t[0] || (t[0] = (m) => a.dialogVisible = !0) }, { default: v(() => [b(n, { type: "ElIconUpload", size: "16", style: { "margin-right": "5px" } }), t[2] || (t[2] = L(" 上传 ", -1))]), _: 1 }, 8, ["style"]), b(p, { visible: a.dialogVisible }, { default: v(() => [b(h, O({ class: "editor-slide-upload" }, { action: o.upAction, headers: o.upHeaders, data: o.upData, name: o.upName, multiple: !0, showFileList: !0, listType: "picture-card", autoUpload: !0 }, { "file-list": a.fileList, "on-remove": i.handleRemove, "on-success": i.handleSuccess, "before-upload": i.beforeUpload }), { default: v(() => [b(c, { type: "primary" }, { default: v(() => [...t[3] || (t[3] = [L("点击上传", -1)])]), _: 1 })]), _: 1 }, 16, ["file-list", "on-remove", "on-success", "before-upload"]), b(c, { onClick: t[1] || (t[1] = (m) => a.dialogVisible = !1) }, { default: v(() => [...t[4] || (t[4] = [L("取消", -1)])]), _: 1 }), b(c, { type: "primary", onClick: i.handleSubmit }, { default: v(() => [...t[5] || (t[5] = [L("确定", -1)])]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["visible"])]);
|
|
3374
3378
|
}]]) }, emits: ["update:modelValue"], mixins: [Me], props: { modelValue: { type: String, default: "" }, toolbar: { type: Array, required: !1, default: () => [] }, menubar: { type: String, default: "file edit insert view format table" }, height: { type: [Number, String], required: !1, default: 360 }, width: { type: [Number, String], required: !1, default: "100%" }, uploadAttr: { type: [Object], default: () => ({}) } }, data: () => ({ localVal: "", fullscreen: !1, languageTypeList: { en: "en", zh: "zh_CN", es: "es_MX", ja: "ja" } }), computed: { containerWidth() {
|
|
3375
3379
|
const e = this.width;
|
|
3376
3380
|
return /^[\d]+(\.[\d]+)?$/.test(e) ? `${e}px` : e;
|
|
@@ -3387,12 +3391,12 @@ const C1 = (e, t) => {
|
|
|
3387
3391
|
}, destroyed() {
|
|
3388
3392
|
this.destroyTinymce();
|
|
3389
3393
|
}, methods: { initLoad() {
|
|
3390
|
-
|
|
3394
|
+
y1("https://10ui.cn/tinymce/@7.0.0/tinymce.min.js", (e) => {
|
|
3391
3395
|
e ? this.$message.error(e.message) : this.initTinymce();
|
|
3392
3396
|
});
|
|
3393
3397
|
}, initTinymce() {
|
|
3394
3398
|
const e = this;
|
|
3395
|
-
window.tinymce.init({ selector: `#${this.editorRefID}`, license_key: "gpl", language: this.languageTypeList.zh, height: this.height, body_class: "panel-body ", object_resizing: !1, toolbar: this.toolbar.length > 0 ? this.toolbar :
|
|
3399
|
+
window.tinymce.init({ selector: `#${this.editorRefID}`, license_key: "gpl", language: this.languageTypeList.zh, height: this.height, body_class: "panel-body ", object_resizing: !1, toolbar: this.toolbar.length > 0 ? this.toolbar : b1, menubar: this.menubar, plugins: v1, end_container_on_empty_block: !0, powerpaste_word_import: "clean", code_dialog_height: 450, code_dialog_width: 1e3, advlist_bullet_styles: "square", advlist_number_styles: "default", editimage_cors_hosts: ["www.tinymce.com", "codepen.io"], link_default_target: "_blank", link_title: !1, nonbreaking_force_tab: !0, init_instance_callback: (t) => {
|
|
3396
3400
|
e.localVal && t.setContent(e.localVal);
|
|
3397
3401
|
}, setup(t) {
|
|
3398
3402
|
t.on("FullscreenStateChanged", (o) => {
|
|
@@ -3414,8 +3418,8 @@ const C1 = (e, t) => {
|
|
|
3414
3418
|
e.forEach((t) => window.tinymce.get(this.editorRefID).insertContent(`<img class="wscnph" src="${t.url}" >`));
|
|
3415
3419
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
3416
3420
|
const n = C("EditorSlideUpload");
|
|
3417
|
-
return d(), u("div", { class: z(["cv-editor-tinymce tinymce-container", { fullscreen: a.fullscreen }]), style: H({ width: i.containerWidth }) }, [r("textarea", { id: e.editorRefID, class: "tinymce-textarea" }, null, 8,
|
|
3418
|
-
}], ["__scopeId", "data-v-8cbc5d06"]]),
|
|
3421
|
+
return d(), u("div", { class: z(["cv-editor-tinymce tinymce-container", { fullscreen: a.fullscreen }]), style: H({ width: i.containerWidth }) }, [r("textarea", { id: e.editorRefID, class: "tinymce-textarea" }, null, 8, C1), r("div", w1, [b(n, O({ color: "#1890ff", class: "editor-upload-btn", onSuccessCBK: i.imageSuccessCBK }, o.uploadAttr), null, 16, ["onSuccessCBK"])])], 6);
|
|
3422
|
+
}], ["__scopeId", "data-v-8cbc5d06"]]), k1 = { name: "cvEditorMarkdown", mixins: [jl, Me, Pa], emits: ["update:modelValue", "on-ready", "on-upload-image"], props: { modelValue: { type: [String, Number], default: "" }, options: { type: [Object], default: () => ({}) }, toolbars: { type: [Object], default: () => ({}) }, language: { type: [String], default: "markdown" }, theme: { type: [String], default: "light" }, readOnly: { type: [Boolean], default: !1 }, autoSave: { type: [Boolean], default: !1 }, width: { type: [Number, String], default: "auto" }, height: { type: [Number, String], default: 600 }, bordered: { type: [Boolean], default: !0 } }, data: () => ({ lastPos: "", lastInsert: "", lastHtml: "", scrollSide: "", localVal: "", heightMainPx: "", editorWrapRefEL: null }), watch: { localVal(e) {
|
|
3419
3423
|
this.$emit("update:modelValue", e);
|
|
3420
3424
|
}, modelValue(e) {
|
|
3421
3425
|
this.localVal != e && (this.localVal = e);
|
|
@@ -3495,10 +3499,10 @@ const C1 = (e, t) => {
|
|
|
3495
3499
|
const { markdownRef: e, markdownScrollHeight: t, markdownScrollTop: o, previewRef: l, contentHeight: a, previewScrollHeight: i, previewScrollTop: n } = this.getScrollData(), c = parseInt(n / (i - a) * (t - a), 0);
|
|
3496
3500
|
e.scrollTop = c;
|
|
3497
3501
|
}
|
|
3498
|
-
} } },
|
|
3502
|
+
} } }, x1 = { key: 0, class: "cv-editor-markdown-toolbar", "data-title": "头部工具栏" }, S1 = { class: "cv-editor-toolbars" }, V1 = { key: 1, name: "插入图片" }, _1 = { key: 2, name: "本地图片" }, I1 = { class: "icon-svg" }, T1 = { key: 4, name: "上传图片" }, L1 = { key: 5, name: "上传文件" }, D1 = { name: "导入文件", class: "import-file" }, $1 = { name: "保存到本地" }, O1 = { key: 6, name: "代码块" }, F1 = { key: 7, class: "shift-theme", name: "主题" }, M1 = ["onClick"], E1 = { key: 8, class: "shift-theme", name: "背景颜色" }, N1 = ["onClick"], B1 = { key: 9, class: "shift-theme", name: "phrases" }, z1 = ["onClick"], H1 = ["name"], A1 = ["name"], P1 = ["name"], j1 = ["name"], R1 = { key: 15, name: "全屏编辑" }, U1 = { key: 16, name: "分屏显示" }, W1 = { key: 17, name: "预览" }, Y1 = { key: 18, class: "segmentation" }, X1 = { class: "icon-svg" }, q1 = { key: 22, class: "segmentation" }, K1 = { key: 23, name: "目录" }, G1 = { key: 24, class: "segmentation" }, Z1 = ["name"], Q1 = { class: "cv-editor-toolbars" }, J1 = { key: 0, name: "撤销" }, eg = { key: 2, name: "粗体" }, tg = { key: 3, name: "斜体" }, og = { key: 4, name: "删除线" }, ag = { key: 5, name: "下划线" }, ig = { key: 6, name: "标题1" }, lg = { key: 7, name: "标题2" }, ng = { key: 8, name: "标题3" }, sg = { key: 9, name: "标题4" }, rg = { key: 10, name: "标题5" }, cg = { key: 11, name: "标题6" }, dg = { key: 12, name: "分割线" }, hg = { key: 13, name: "引用" }, pg = { key: 14, name: "无序列表" }, ug = { key: 15, name: "有序列表" }, mg = { key: 16, name: "未完成列表" }, gg = { key: 17, name: "已完成列表" }, fg = { key: 18, name: "链接" }, vg = { key: 19, name: "表格" }, Mo = S(k1, [["render", function(e, t, o, l, a, i) {
|
|
3499
3503
|
const n = C("SvgImgMap"), c = C("SvgUploadFile"), h = C("SvgCopy"), p = C("SvgToc"), m = C("CodemirrorEditor"), f = C("cv-markdown-show"), g = C("el-input"), k = C("el-button"), x = C("el-dialog");
|
|
3500
|
-
return d(), u("div", { ref: i.editorWrapRefID, class: z(["cv-editor-markdown-wrap", o.bordered ? "border" : ""]), style: H({ width: i.widthTotalPx, height: i.heightTotalPx }) }, [e.actionPreview ? w("", !0) : (d(), u("div", S1, [r("ul", V1, [e.$slots.title ? (d(), u(F, { key: 0 }, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), t[65] || (t[65] = r("li", { class: "segmentation" }, [r("div")], -1))], 64)) : w("", !0), e.toolConfig.image ? (d(), u("li", _1, [r("span", { onClick: t[0] || (t[0] = (...y) => e.actionInsImage && e.actionInsImage(...y)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", I1, [r("span", { onClick: t[1] || (t[1] = (...y) => e.actionChooseImage && e.actionChooseImage(...y)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", { key: 3, name: "图片空间", onClick: t[2] || (t[2] = (y) => e.actionCustom("image-browse")) }, [r("span", T1, [b(n)])])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", L1, [r("span", { onClick: t[3] || (t[3] = (y) => e.actionCustom("image-upload")), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", D1, [r("span", { onClick: t[4] || (t[4] = (y) => e.actionCustom("file-upload")), class: "icon-svg" }, [b(c)])])) : w("", !0), M(r("li", $1, [r("span", { class: "iconfont icon-daoru", onClick: t[5] || (t[5] = (...y) => e.actionImportFile && e.actionImportFile(...y)) }), r("input", { type: "file", onChange: t[6] || (t[6] = (y) => e.actionImportFile(y)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", O1, [r("span", { class: "iconfont icon-download", onClick: t[7] || (t[7] = (...y) => e.actionExportFile && e.actionExportFile(...y)) })], 512), [[A, e.toolConfig.exportmd]]), t[72] || (t[72] = r("li", { class: "segmentation" }, [r("div")], -1)), e.toolConfig.code ? (d(), u("li", F1, [r("span", { onClick: t[8] || (t[8] = (...y) => e.insertCode && e.insertCode(...y)), class: "iconfont icon-code" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", M1, [r("span", { class: "iconfont icon-theme", onClick: t[9] || (t[9] = (y) => e.actionThemeDropdown = !e.actionThemeDropdown) }), r("ul", { class: z({ active: e.actionThemeDropdown }), onMouseleave: t[10] || (t[10] = (y) => e.actionThemeDropdown = !1) }, [(d(!0), u(F, null, E(e.optionTheme, (y) => (d(), u("li", { onClick: (_) => e.actionThemesSet(y) }, T(y), 9, E1))), 256))], 34)])) : w("", !0), e.toolConfig.backgroundColor ? (d(), u("li", N1, [r("span", { class: "iconfont icon-theme", onClick: t[11] || (t[11] = (y) => e.actionBgColorDropdown = !e.actionBgColorDropdown) }), r("ul", { class: z({ active: e.actionBgColorDropdown }), onMouseleave: t[12] || (t[12] = (y) => e.actionBgColorDropdown = !1) }, [(d(), u(F, null, E(["red", "black", "yellow", "lawngreen", "blue", "white"], (y) => r("li", { onClick: (_) => e.actionBgColorSet(y) }, T(y), 9, B1)), 64))], 34)])) : w("", !0), e.toolConfig.phrases ? (d(), u("li", z1, [r("span", { class: "iconfont icon-theme", onClick: t[13] || (t[13] = (y) => e.actionPhrasesDropdown = !e.actionPhrasesDropdown) }), r("ul", { class: z({ active: e.actionPhrasesDropdown }), onMouseleave: t[14] || (t[14] = (y) => e.actionPhrasesDropdown = !1) }, [(d(!0), u(F, null, E(e.optionPhrases, (y) => (d(), u("li", { onClick: (_) => e.actionPhrasesSet(y) }, T(y), 9, H1))), 256))], 34)])) : w("", !0), e.toolConfig.html_to_markdown ? (d(), u("li", { key: 10, name: "html转markdown", onClick: t[15] || (t[15] = (y) => e.actionHtmlVisible(!0)) }, [...t[66] || (t[66] = [r("span", { style: { width: "auto", "font-size": "12px !important", padding: "0px 6px", margin: "0 10px", border: "1px #e2e2e2 solid" } }, " HTML2MD ", -1)])])) : w("", !0), e.toolConfig.disabled ? (d(), u("li", { key: 11, name: e.codemrrConfig.disabled ? "toggle disabled:开" : "toggle disabled:关" }, [M(r("span", { onClick: t[16] || (t[16] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.disabled]]), M(r("span", { onClick: t[17] || (t[17] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.disabled]])], 8, A1)) : w("", !0), e.toolConfig.autofocus ? (d(), u("li", { key: 12, name: e.codemrrConfig.autofocus ? "toggle autofocus:开" : "toggle autofocus:关" }, [M(r("span", { onClick: t[18] || (t[18] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.autofocus]]), M(r("span", { onClick: t[19] || (t[19] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.autofocus]])], 8, P1)) : w("", !0), e.toolConfig.indentWithTab ? (d(), u("li", { key: 13, name: e.codemrrConfig.indentWithTab ? "toggle indentWithTab:开" : "toggle indentWithTab:关" }, [M(r("span", { onClick: t[20] || (t[20] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.indentWithTab]]), M(r("span", { onClick: t[21] || (t[21] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.indentWithTab]])], 8, j1)) : w("", !0), t[73] || (t[73] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 14, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[22] || (t[22] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on active" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[23] || (t[23] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, R1)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", U1, [r("span", { onClick: t[24] || (t[24] = (y) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", W1, [r("span", { onClick: t[25] || (t[25] = (y) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", Y1, [r("span", { onClick: t[26] || (t[26] = (y) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (d(), u("li", X1, [...t[67] || (t[67] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.copy ? (d(), u("li", { key: 19, name: "复制", onClick: t[27] || (t[27] = (...y) => e.actionCopySet && e.actionCopySet(...y)) }, [r("span", q1, [b(h)])])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 20, name: "清空", onClick: t[28] || (t[28] = (y) => a.localVal = "") }, [...t[68] || (t[68] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 21, name: "保存", onClick: t[29] || (t[29] = (...y) => e.actionSaveSet && e.actionSaveSet(...y)) }, [...t[69] || (t[69] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", K1, [...t[70] || (t[70] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", G1, [M(r("span", { onClick: t[30] || (t[30] = (y) => e.actionToc = !e.actionToc), class: "icon-svg active" }, [b(p)], 512), [[A, e.actionToc]]), M(r("span", { onClick: t[31] || (t[31] = (y) => e.actionToc = !e.actionToc), class: "icon-svg" }, [b(p)], 512), [[A, !e.actionToc]])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", Z1, [...t[71] || (t[71] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", { key: 25, name: e.actionFullscreen ? "退出全屏" : "全屏" }, [M(r("span", { onClick: t[32] || (t[32] = (y) => e.actionFullscreenSet(!1)), class: "iconfont icon-quite" }, null, 512), [[A, e.actionFullscreen]]), M(r("span", { onClick: t[33] || (t[33] = (y) => e.actionFullscreenSet(!0)), class: "iconfont icon-fullscreen" }, null, 512), [[A, !e.actionFullscreen]])], 8, Q1)) : w("", !0)]), r("ul", J1, [e.toolConfig.undo ? (d(), u("li", eg, [r("span", { class: "iconfont icon-undo", onClick: t[34] || (t[34] = (...y) => e.actionUndo && e.actionUndo(...y)) })])) : w("", !0), e.toolConfig.redo ? (d(), u("li", { key: 1, name: "重做", onClick: t[35] || (t[35] = (...y) => e.actionRedo && e.actionRedo(...y)) }, [...t[74] || (t[74] = [r("span", { class: "iconfont icon-redo" }, null, -1)])])) : w("", !0), e.toolConfig.strong ? (d(), u("li", tg, [r("span", { onClick: t[36] || (t[36] = (...y) => e.actionInsStrong && e.actionInsStrong(...y)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", og, [r("span", { onClick: t[37] || (t[37] = (...y) => e.actionInsItalic && e.actionInsItalic(...y)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ag, [r("span", { onClick: t[38] || (t[38] = (...y) => e.actionInsOverline && e.actionInsOverline(...y)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ig, [r("span", { onClick: t[39] || (t[39] = (...y) => e.actionInsUnderline && e.actionInsUnderline(...y)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", lg, [r("span", { style: { "font-size": "16px" }, onClick: t[40] || (t[40] = (y) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", ng, [r("span", { style: { "font-size": "16px" }, onClick: t[41] || (t[41] = (y) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", sg, [r("span", { style: { "font-size": "16px" }, onClick: t[42] || (t[42] = (y) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", rg, [r("span", { style: { "font-size": "16px" }, onClick: t[43] || (t[43] = (y) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", cg, [r("span", { style: { "font-size": "16px" }, onClick: t[44] || (t[44] = (y) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", dg, [r("span", { style: { "font-size": "16px" }, onClick: t[45] || (t[45] = (y) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", hg, [r("span", { onClick: t[46] || (t[46] = (...y) => e.actionInsLine && e.actionInsLine(...y)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", pg, [r("span", { style: { "font-size": "16px" }, onClick: t[47] || (t[47] = (...y) => e.actionInsQuote && e.actionInsQuote(...y)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", ug, [r("span", { onClick: t[48] || (t[48] = (...y) => e.actionInsUl && e.actionInsUl(...y)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", mg, [r("span", { onClick: t[49] || (t[49] = (...y) => e.actionInsOl && e.actionInsOl(...y)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", gg, [r("span", { onClick: t[50] || (t[50] = (...y) => e.insertNotFinished && e.insertNotFinished(...y)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", fg, [r("span", { onClick: t[51] || (t[51] = (...y) => e.insertFinished && e.insertFinished(...y)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", vg, [r("span", { onClick: t[52] || (t[52] = (...y) => e.actionInsLink && e.actionInsLink(...y)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", bg, [r("span", { onClick: t[53] || (t[53] = (...y) => e.actionInsTable && e.actionInsTable(...y)), class: "iconfont icon-table" })])) : w("", !0)])])), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(b(m, O(e.codemrrBind, { id: e.editorRefID, ref: e.editorRefID, style: { height: a.heightMainPx, backgroundColor: e.codemrrConfig.backgroundColor }, extensions: e.extensions, modelValue: a.localVal, "onUpdate:modelValue": t[54] || (t[54] = (y) => a.localVal = y), onReady: i.initEditorReady, onChange: t[55] || (t[55] = (y) => i.consoleLog("change", y)), onFocus: t[56] || (t[56] = (y) => i.consoleLog("focus", y)), onBlur: t[57] || (t[57] = (y) => i.consoleLog("blur", y)), onMouseenter: t[58] || (t[58] = (y) => i.mousescrollSide("left")) }), null, 16, ["id", "style", "extensions", "modelValue", "onReady"]), [[A, !e.actionPreview]]), M(b(f, { html: a.lastHtml, "onUpdate:html": t[59] || (t[59] = (y) => a.lastHtml = y), ref: i.previewRefID, editorID: i.previewRefID, modelValue: a.localVal, theme: e.codemrrConfig.theme || o.theme, language: o.language, tocShow: e.actionToc, style: H([{ flex: "1", height: "100%", "border-left": "1px solid #dedede", "overflow-y": "auto" }, { height: e.actionPreview ? "" : a.heightMainPx }]), onMouseenter: t[60] || (t[60] = (y) => i.mousescrollSide("right")) }, null, 8, ["html", "editorID", "modelValue", "theme", "language", "tocShow", "style"]), [[A, e.actionPreview ? e.actionPreview : e.actionSplit]])], 4), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[61] || (t[61] = (y) => e.actionPreview = !1) }, [...t[75] || (t[75] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), b(x, { modelValue: e.actionHtmlDiaVisible, "onUpdate:modelValue": t[64] || (t[64] = (y) => e.actionHtmlDiaVisible = y), title: "html转markdown", width: "680", "show-close": !1, "append-to-body": "" }, { footer: v(() => [b(k, { onClick: t[63] || (t[63] = (y) => e.actionHtmlVisible(!1)) }, { default: v(() => [...t[76] || (t[76] = [L("取消", -1)])]), _: 1 }), b(k, { type: "primary", onClick: e.actionHtmlToMD }, { default: v(() => [...t[77] || (t[77] = [L("转换成markdown", -1)])]), _: 1 }, 8, ["onClick"])]), default: v(() => [b(g, { type: "textarea", modelValue: e.actionHtmlText, "onUpdate:modelValue": t[62] || (t[62] = (y) => e.actionHtmlText = y), rows: 14, placeholder: "请输入html代码..." }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])], 6);
|
|
3501
|
-
}], ["__scopeId", "data-v-a76ecd6a"]]),
|
|
3504
|
+
return d(), u("div", { ref: i.editorWrapRefID, class: z(["cv-editor-markdown-wrap", o.bordered ? "border" : ""]), style: H({ width: i.widthTotalPx, height: i.heightTotalPx }) }, [e.actionPreview ? w("", !0) : (d(), u("div", x1, [r("ul", S1, [e.$slots.title ? (d(), u(F, { key: 0 }, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), t[65] || (t[65] = r("li", { class: "segmentation" }, [r("div")], -1))], 64)) : w("", !0), e.toolConfig.image ? (d(), u("li", V1, [r("span", { onClick: t[0] || (t[0] = (...y) => e.actionInsImage && e.actionInsImage(...y)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", _1, [r("span", { onClick: t[1] || (t[1] = (...y) => e.actionChooseImage && e.actionChooseImage(...y)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", { key: 3, name: "图片空间", onClick: t[2] || (t[2] = (y) => e.actionCustom("image-browse")) }, [r("span", I1, [b(n)])])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", T1, [r("span", { onClick: t[3] || (t[3] = (y) => e.actionCustom("image-upload")), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", L1, [r("span", { onClick: t[4] || (t[4] = (y) => e.actionCustom("file-upload")), class: "icon-svg" }, [b(c)])])) : w("", !0), M(r("li", D1, [r("span", { class: "iconfont icon-daoru", onClick: t[5] || (t[5] = (...y) => e.actionImportFile && e.actionImportFile(...y)) }), r("input", { type: "file", onChange: t[6] || (t[6] = (y) => e.actionImportFile(y)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", $1, [r("span", { class: "iconfont icon-download", onClick: t[7] || (t[7] = (...y) => e.actionExportFile && e.actionExportFile(...y)) })], 512), [[A, e.toolConfig.exportmd]]), t[72] || (t[72] = r("li", { class: "segmentation" }, [r("div")], -1)), e.toolConfig.code ? (d(), u("li", O1, [r("span", { onClick: t[8] || (t[8] = (...y) => e.insertCode && e.insertCode(...y)), class: "iconfont icon-code" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", F1, [r("span", { class: "iconfont icon-theme", onClick: t[9] || (t[9] = (y) => e.actionThemeDropdown = !e.actionThemeDropdown) }), r("ul", { class: z({ active: e.actionThemeDropdown }), onMouseleave: t[10] || (t[10] = (y) => e.actionThemeDropdown = !1) }, [(d(!0), u(F, null, E(e.optionTheme, (y) => (d(), u("li", { onClick: (_) => e.actionThemesSet(y) }, T(y), 9, M1))), 256))], 34)])) : w("", !0), e.toolConfig.backgroundColor ? (d(), u("li", E1, [r("span", { class: "iconfont icon-theme", onClick: t[11] || (t[11] = (y) => e.actionBgColorDropdown = !e.actionBgColorDropdown) }), r("ul", { class: z({ active: e.actionBgColorDropdown }), onMouseleave: t[12] || (t[12] = (y) => e.actionBgColorDropdown = !1) }, [(d(), u(F, null, E(["red", "black", "yellow", "lawngreen", "blue", "white"], (y) => r("li", { onClick: (_) => e.actionBgColorSet(y) }, T(y), 9, N1)), 64))], 34)])) : w("", !0), e.toolConfig.phrases ? (d(), u("li", B1, [r("span", { class: "iconfont icon-theme", onClick: t[13] || (t[13] = (y) => e.actionPhrasesDropdown = !e.actionPhrasesDropdown) }), r("ul", { class: z({ active: e.actionPhrasesDropdown }), onMouseleave: t[14] || (t[14] = (y) => e.actionPhrasesDropdown = !1) }, [(d(!0), u(F, null, E(e.optionPhrases, (y) => (d(), u("li", { onClick: (_) => e.actionPhrasesSet(y) }, T(y), 9, z1))), 256))], 34)])) : w("", !0), e.toolConfig.html_to_markdown ? (d(), u("li", { key: 10, name: "html转markdown", onClick: t[15] || (t[15] = (y) => e.actionHtmlVisible(!0)) }, [...t[66] || (t[66] = [r("span", { style: { width: "auto", "font-size": "12px !important", padding: "0px 6px", margin: "0 10px", border: "1px #e2e2e2 solid" } }, " HTML2MD ", -1)])])) : w("", !0), e.toolConfig.disabled ? (d(), u("li", { key: 11, name: e.codemrrConfig.disabled ? "toggle disabled:开" : "toggle disabled:关" }, [M(r("span", { onClick: t[16] || (t[16] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.disabled]]), M(r("span", { onClick: t[17] || (t[17] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.disabled]])], 8, H1)) : w("", !0), e.toolConfig.autofocus ? (d(), u("li", { key: 12, name: e.codemrrConfig.autofocus ? "toggle autofocus:开" : "toggle autofocus:关" }, [M(r("span", { onClick: t[18] || (t[18] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.autofocus]]), M(r("span", { onClick: t[19] || (t[19] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.autofocus]])], 8, A1)) : w("", !0), e.toolConfig.indentWithTab ? (d(), u("li", { key: 13, name: e.codemrrConfig.indentWithTab ? "toggle indentWithTab:开" : "toggle indentWithTab:关" }, [M(r("span", { onClick: t[20] || (t[20] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.indentWithTab]]), M(r("span", { onClick: t[21] || (t[21] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.indentWithTab]])], 8, P1)) : w("", !0), t[73] || (t[73] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 14, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[22] || (t[22] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on active" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[23] || (t[23] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, j1)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", R1, [r("span", { onClick: t[24] || (t[24] = (y) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", U1, [r("span", { onClick: t[25] || (t[25] = (y) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", W1, [r("span", { onClick: t[26] || (t[26] = (y) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (d(), u("li", Y1, [...t[67] || (t[67] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.copy ? (d(), u("li", { key: 19, name: "复制", onClick: t[27] || (t[27] = (...y) => e.actionCopySet && e.actionCopySet(...y)) }, [r("span", X1, [b(h)])])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 20, name: "清空", onClick: t[28] || (t[28] = (y) => a.localVal = "") }, [...t[68] || (t[68] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 21, name: "保存", onClick: t[29] || (t[29] = (...y) => e.actionSaveSet && e.actionSaveSet(...y)) }, [...t[69] || (t[69] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", q1, [...t[70] || (t[70] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", K1, [M(r("span", { onClick: t[30] || (t[30] = (y) => e.actionToc = !e.actionToc), class: "icon-svg active" }, [b(p)], 512), [[A, e.actionToc]]), M(r("span", { onClick: t[31] || (t[31] = (y) => e.actionToc = !e.actionToc), class: "icon-svg" }, [b(p)], 512), [[A, !e.actionToc]])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", G1, [...t[71] || (t[71] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", { key: 25, name: e.actionFullscreen ? "退出全屏" : "全屏" }, [M(r("span", { onClick: t[32] || (t[32] = (y) => e.actionFullscreenSet(!1)), class: "iconfont icon-quite" }, null, 512), [[A, e.actionFullscreen]]), M(r("span", { onClick: t[33] || (t[33] = (y) => e.actionFullscreenSet(!0)), class: "iconfont icon-fullscreen" }, null, 512), [[A, !e.actionFullscreen]])], 8, Z1)) : w("", !0)]), r("ul", Q1, [e.toolConfig.undo ? (d(), u("li", J1, [r("span", { class: "iconfont icon-undo", onClick: t[34] || (t[34] = (...y) => e.actionUndo && e.actionUndo(...y)) })])) : w("", !0), e.toolConfig.redo ? (d(), u("li", { key: 1, name: "重做", onClick: t[35] || (t[35] = (...y) => e.actionRedo && e.actionRedo(...y)) }, [...t[74] || (t[74] = [r("span", { class: "iconfont icon-redo" }, null, -1)])])) : w("", !0), e.toolConfig.strong ? (d(), u("li", eg, [r("span", { onClick: t[36] || (t[36] = (...y) => e.actionInsStrong && e.actionInsStrong(...y)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", tg, [r("span", { onClick: t[37] || (t[37] = (...y) => e.actionInsItalic && e.actionInsItalic(...y)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", og, [r("span", { onClick: t[38] || (t[38] = (...y) => e.actionInsOverline && e.actionInsOverline(...y)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ag, [r("span", { onClick: t[39] || (t[39] = (...y) => e.actionInsUnderline && e.actionInsUnderline(...y)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", ig, [r("span", { style: { "font-size": "16px" }, onClick: t[40] || (t[40] = (y) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", lg, [r("span", { style: { "font-size": "16px" }, onClick: t[41] || (t[41] = (y) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", ng, [r("span", { style: { "font-size": "16px" }, onClick: t[42] || (t[42] = (y) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", sg, [r("span", { style: { "font-size": "16px" }, onClick: t[43] || (t[43] = (y) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", rg, [r("span", { style: { "font-size": "16px" }, onClick: t[44] || (t[44] = (y) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", cg, [r("span", { style: { "font-size": "16px" }, onClick: t[45] || (t[45] = (y) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", dg, [r("span", { onClick: t[46] || (t[46] = (...y) => e.actionInsLine && e.actionInsLine(...y)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", hg, [r("span", { style: { "font-size": "16px" }, onClick: t[47] || (t[47] = (...y) => e.actionInsQuote && e.actionInsQuote(...y)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", pg, [r("span", { onClick: t[48] || (t[48] = (...y) => e.actionInsUl && e.actionInsUl(...y)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", ug, [r("span", { onClick: t[49] || (t[49] = (...y) => e.actionInsOl && e.actionInsOl(...y)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", mg, [r("span", { onClick: t[50] || (t[50] = (...y) => e.insertNotFinished && e.insertNotFinished(...y)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", gg, [r("span", { onClick: t[51] || (t[51] = (...y) => e.insertFinished && e.insertFinished(...y)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", fg, [r("span", { onClick: t[52] || (t[52] = (...y) => e.actionInsLink && e.actionInsLink(...y)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", vg, [r("span", { onClick: t[53] || (t[53] = (...y) => e.actionInsTable && e.actionInsTable(...y)), class: "iconfont icon-table" })])) : w("", !0)])])), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(b(m, O(e.codemrrBind, { id: e.editorRefID, ref: e.editorRefID, style: { height: a.heightMainPx, backgroundColor: e.codemrrConfig.backgroundColor }, extensions: e.extensions, modelValue: a.localVal, "onUpdate:modelValue": t[54] || (t[54] = (y) => a.localVal = y), onReady: i.initEditorReady, onChange: t[55] || (t[55] = (y) => i.consoleLog("change", y)), onFocus: t[56] || (t[56] = (y) => i.consoleLog("focus", y)), onBlur: t[57] || (t[57] = (y) => i.consoleLog("blur", y)), onMouseenter: t[58] || (t[58] = (y) => i.mousescrollSide("left")) }), null, 16, ["id", "style", "extensions", "modelValue", "onReady"]), [[A, !e.actionPreview]]), M(b(f, { html: a.lastHtml, "onUpdate:html": t[59] || (t[59] = (y) => a.lastHtml = y), ref: i.previewRefID, editorID: i.previewRefID, modelValue: a.localVal, theme: e.codemrrConfig.theme || o.theme, language: o.language, tocShow: e.actionToc, style: H([{ flex: "1", height: "100%", "border-left": "1px solid #dedede", "overflow-y": "auto" }, { height: e.actionPreview ? "" : a.heightMainPx }]), onMouseenter: t[60] || (t[60] = (y) => i.mousescrollSide("right")) }, null, 8, ["html", "editorID", "modelValue", "theme", "language", "tocShow", "style"]), [[A, e.actionPreview ? e.actionPreview : e.actionSplit]])], 4), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[61] || (t[61] = (y) => e.actionPreview = !1) }, [...t[75] || (t[75] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), b(x, { modelValue: e.actionHtmlDiaVisible, "onUpdate:modelValue": t[64] || (t[64] = (y) => e.actionHtmlDiaVisible = y), title: "html转markdown", width: "680", "show-close": !1, "append-to-body": "" }, { footer: v(() => [b(k, { onClick: t[63] || (t[63] = (y) => e.actionHtmlVisible(!1)) }, { default: v(() => [...t[76] || (t[76] = [L("取消", -1)])]), _: 1 }), b(k, { type: "primary", onClick: e.actionHtmlToMD }, { default: v(() => [...t[77] || (t[77] = [L("转换成markdown", -1)])]), _: 1 }, 8, ["onClick"])]), default: v(() => [b(g, { type: "textarea", modelValue: e.actionHtmlText, "onUpdate:modelValue": t[62] || (t[62] = (y) => e.actionHtmlText = y), rows: 14, placeholder: "请输入html代码..." }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])], 6);
|
|
3505
|
+
}], ["__scopeId", "data-v-a76ecd6a"]]), Je = { add(e, t) {
|
|
3502
3506
|
const o = `toc${t}${++this.index}`, l = { anchor: o, level: t, text: e }, a = this.tocItems;
|
|
3503
3507
|
return l.level <= 5 && a.push(l), o;
|
|
3504
3508
|
}, reset: function() {
|
|
@@ -3509,24 +3513,24 @@ function gl(e) {
|
|
|
3509
3513
|
typeof t == "string" && t !== e.text && (e.escaped = !0, e.text = t);
|
|
3510
3514
|
};
|
|
3511
3515
|
}
|
|
3512
|
-
const Ul = /[&<>"']/,
|
|
3516
|
+
const Ul = /[&<>"']/, bg = new RegExp(Ul.source, "g"), Wl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, yg = new RegExp(Wl.source, "g"), Cg = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, fl = (e) => Cg[e];
|
|
3513
3517
|
function vl(e, t) {
|
|
3514
3518
|
if (t) {
|
|
3515
|
-
if (Ul.test(e)) return e.replace(
|
|
3516
|
-
} else if (Wl.test(e)) return e.replace(
|
|
3519
|
+
if (Ul.test(e)) return e.replace(bg, fl);
|
|
3520
|
+
} else if (Wl.test(e)) return e.replace(yg, fl);
|
|
3517
3521
|
return e;
|
|
3518
3522
|
}
|
|
3519
|
-
const
|
|
3523
|
+
const wg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-copy"], props: { html: { type: [String] }, modelValue: { type: [String], default: "" }, markedOptions: { type: Object, default: () => ({}) }, theme: { type: String, default: "light" }, language: { type: String, default: "" }, copyCode: { type: Boolean, default: !0 }, copyBtnText: { type: String, default: "复制代码" }, tocShow: { type: [Boolean], default: !1 } }, watch: { modelValue(e) {
|
|
3520
3524
|
this.localVal = e || "", this.initNewCreate();
|
|
3521
3525
|
}, localHtml(e) {
|
|
3522
3526
|
this.$emit("update:html", e);
|
|
3523
3527
|
} }, data: () => ({ localVal: "", localHtml: "", previewImgModal: !1, previewImgSrc: "", previewImgMode: "", timeoutId: null, imgs: [], tocTrigger: !1, tocAction: "", tocLists: [] }), created() {
|
|
3524
3528
|
this.localVal = this.modelValue || "";
|
|
3525
3529
|
}, async mounted() {
|
|
3526
|
-
|
|
3530
|
+
Je.reset(), await function(e, t = !1) {
|
|
3527
3531
|
let o = document.createElement("link");
|
|
3528
3532
|
o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("id", e), t ? o.setAttribute("href", e + "?t=" + (/* @__PURE__ */ new Date()).getTime()) : o.setAttribute("href", e), document.getElementById(e) || document.head.appendChild(o);
|
|
3529
|
-
}(this.CDN_URL_UI + "/highlight.js/@11.8.0/styles/default.min.css"), await
|
|
3533
|
+
}(this.CDN_URL_UI + "/highlight.js/@11.8.0/styles/default.min.css"), await $t(this.CDN_URL_UI + "/highlight.js/@11.8.0/highlight.min.js").then(() => {
|
|
3530
3534
|
setTimeout(() => {
|
|
3531
3535
|
hljs.highlightAll(), this.initNewCreate();
|
|
3532
3536
|
}, 30);
|
|
@@ -3534,7 +3538,7 @@ const kg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-co
|
|
|
3534
3538
|
}, methods: { async initNewCreate() {
|
|
3535
3539
|
const { Marked: e, Renderer: t } = await import("https://10ui.cn/marked/@12.0.1/marked.esm.js");
|
|
3536
3540
|
t.prototype.heading = function(a, i, n, c) {
|
|
3537
|
-
let h =
|
|
3541
|
+
let h = Je.add(a, i);
|
|
3538
3542
|
return `<h${i} id="${n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, "-")}" toc-id="${h}">${a}</h${i}>`;
|
|
3539
3543
|
};
|
|
3540
3544
|
const o = new e(function(a) {
|
|
@@ -3559,7 +3563,7 @@ const kg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-co
|
|
|
3559
3563
|
} }));
|
|
3560
3564
|
o.use({ gfm: !0, tables: !0, breaks: !1, pedantic: !1, smartLists: !0 });
|
|
3561
3565
|
let l = o.parse(this.localVal, { sanitize: !1, ...this.markedOptions });
|
|
3562
|
-
l = l.replace(/href="/gi, 'target="_blank" href="'), this.copyCode && (l = l.replace(/<pre>/g, '<div class="code-block"><span class="copy-code">' + this.copyBtnText + "</span><pre>").replace(/<\/pre>/g, "</pre></div>")), /\[\[TOC\]\]/.test(l) && (l = l.replace(/\[\[TOC\]\]/g, '<ul class="toc-anchor"></ul>')), this.localHtml = l, this.tocLists =
|
|
3566
|
+
l = l.replace(/href="/gi, 'target="_blank" href="'), this.copyCode && (l = l.replace(/<pre>/g, '<div class="code-block"><span class="copy-code">' + this.copyBtnText + "</span><pre>").replace(/<\/pre>/g, "</pre></div>")), /\[\[TOC\]\]/.test(l) && (l = l.replace(/\[\[TOC\]\]/g, '<ul class="toc-anchor"></ul>')), this.localHtml = l, this.tocLists = Je.tocItems, this.tocTrigger, Je.reset(), this.addCopyListener(), this.addImageClickListener();
|
|
3563
3567
|
}, addCopyListener() {
|
|
3564
3568
|
setTimeout(() => {
|
|
3565
3569
|
const e = document.querySelectorAll(".code-block .copy-code");
|
|
@@ -3608,10 +3612,10 @@ const kg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-co
|
|
|
3608
3612
|
return t === void 0 && (t = this.tocLists), t.forEach(({ level: l }) => {
|
|
3609
3613
|
o = Math.min(o, l);
|
|
3610
3614
|
}), o === 9999 ? e : e - (o - 1);
|
|
3611
|
-
} } },
|
|
3615
|
+
} } }, kg = ["id"], xg = ["innerHTML"], Sg = { class: "toc-anchor" }, Vg = ["anchor", "onClick"], _g = ["anchor", "title"], Ig = ["src"], Eo = S(wg, [["render", function(e, t, o, l, a, i) {
|
|
3612
3616
|
const n = C("cv-icons");
|
|
3613
|
-
return d(), u("div", { class: "cv-markdown-preview", id: e.editorRefID, ref: e.editorRefID, style: H([o.tocShow ? "display:flex;" : ""]) }, [e.$slots.default ? D(e.$slots, "default", { key: 0 }, () => [L(T(a.localHtml), 1)]) : w("", !0), r("div", { class: z("markdown-preview markdown-theme-base " + ("markdown-theme-" + o.theme)), onScroll: t[0] || (t[0] = (...c) => i.handleScroll && i.handleScroll(...c)), innerHTML: a.localHtml }, null, 42,
|
|
3614
|
-
}]]),
|
|
3617
|
+
return d(), u("div", { class: "cv-markdown-preview", id: e.editorRefID, ref: e.editorRefID, style: H([o.tocShow ? "display:flex;" : ""]) }, [e.$slots.default ? D(e.$slots, "default", { key: 0 }, () => [L(T(a.localHtml), 1)]) : w("", !0), r("div", { class: z("markdown-preview markdown-theme-base " + ("markdown-theme-" + o.theme)), onScroll: t[0] || (t[0] = (...c) => i.handleScroll && i.handleScroll(...c)), innerHTML: a.localHtml }, null, 42, xg), M(r("ul", Sg, [(d(!0), u(F, null, E(a.tocLists, (c) => (d(), u("li", { class: "toc-anchor-item", anchor: c.anchor, key: c.anchor, onClick: (h) => i.tocClick(c) }, [r("span", { class: z(`toc-link-${i.tocLevel(c.level)}${a.tocAction == c.anchor ? " toc-link-action" : ""}`), anchor: c.anchor, title: c.text }, T(c.text), 11, _g)], 8, Vg))), 128))], 512), [[A, o.tocShow]]), r("div", { class: z(["preview-img", a.previewImgModal ? "active" : ""]) }, [b(n, { type: "ElIconClose", onClick: t[1] || (t[1] = (c) => a.previewImgModal = !1) }), r("img", { src: a.previewImgSrc, class: z([a.previewImgMode]), alt: "" }, null, 10, Ig)], 2)], 12, kg);
|
|
3618
|
+
}]]), Tg = { name: "cvMarkdownSimple", mixins: [Me, Pa, { methods: { toggleSlideDown() {
|
|
3615
3619
|
this.slideDown = !this.slideDown;
|
|
3616
3620
|
}, actionThemesSet(e) {
|
|
3617
3621
|
this.codemrrConfig.theme = e, this.actionThemeDropdown = !1, this.$emit("on-act-theme", e);
|
|
@@ -3789,9 +3793,9 @@ row 2 col 1 | row 2 col 2
|
|
|
3789
3793
|
}
|
|
3790
3794
|
}, mousescrollSide(e) {
|
|
3791
3795
|
this.scroll = e;
|
|
3792
|
-
} } },
|
|
3793
|
-
return d(), u("div", { class: z(`markdown ${a.fullscreen ? "fullscreen" : ""} ${o.bordered ? "border" : ""}`), ref: "markdown", style: H({ width: o.width + (typeof o.width == "string" ? "" : "px"), height: o.height + (typeof o.height == "string" ? "" : "px") }) }, [e.actionPreview ? w("", !0) : (d(), u("div",
|
|
3794
|
-
}], ["__scopeId", "data-v-36211c6f"]]),
|
|
3796
|
+
} } }, Lg = { key: 0, title: "头部工具栏" }, Dg = { class: "cv-editor-toolbars" }, $g = { key: 0, name: "粗体" }, Og = { key: 1, name: "斜体" }, Fg = { key: 2, name: "删除线" }, Mg = { key: 3, name: "下划线" }, Eg = { key: 4, name: "标题1" }, Ng = { key: 5, name: "标题2" }, Bg = { key: 6, name: "标题3" }, zg = { key: 7, name: "标题4" }, Hg = { key: 8, name: "标题5" }, Ag = { key: 9, name: "标题6" }, Pg = { key: 10, name: "分割线" }, jg = { key: 11, name: "引用" }, Rg = { key: 12, name: "无序列表" }, Ug = { key: 13, name: "有序列表" }, Wg = { key: 14, name: "未完成列表" }, Yg = { key: 15, name: "已完成列表" }, Xg = { key: 16, name: "链接" }, qg = { key: 17, name: "表格" }, Kg = ["name"], Gg = { key: 19, name: "全屏编辑" }, Zg = { key: 20, name: "分屏显示" }, Qg = { key: 21, name: "预览" }, Jg = { class: "cv-editor-toolbars" }, e0 = { key: 0, name: "图片" }, t0 = { key: 1, name: "本地图片" }, o0 = { key: 2, name: "图片空间" }, a0 = { key: 3, name: "上传图片" }, i0 = { key: 4, name: "上传文件" }, l0 = { key: 5, class: "shift-theme", name: "代码块主题" }, n0 = { name: "导入文件", class: "import-file" }, s0 = { name: "保存到本地" }, r0 = { key: 6, name: "全屏" }, c0 = { key: 7, name: "退出全屏" }, d0 = ["innerHTML"], No = S(Tg, [["render", function(e, t, o, l, a, i) {
|
|
3797
|
+
return d(), u("div", { class: z(`markdown ${a.fullscreen ? "fullscreen" : ""} ${o.bordered ? "border" : ""}`), ref: "markdown", style: H({ width: o.width + (typeof o.width == "string" ? "" : "px"), height: o.height + (typeof o.height == "string" ? "" : "px") }) }, [e.actionPreview ? w("", !0) : (d(), u("div", Lg, [r("ul", Dg, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), e.toolConfig.strong ? (d(), u("li", $g, [r("span", { onClick: t[0] || (t[0] = (...n) => e.actionInsStrong && e.actionInsStrong(...n)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", Og, [r("span", { onClick: t[1] || (t[1] = (...n) => e.actionInsItalic && e.actionInsItalic(...n)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", Fg, [r("span", { onClick: t[2] || (t[2] = (...n) => e.actionInsOverline && e.actionInsOverline(...n)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", Mg, [r("span", { onClick: t[3] || (t[3] = (...n) => e.actionInsUnderline && e.actionInsUnderline(...n)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", Eg, [r("span", { style: { "font-size": "16px" }, onClick: t[4] || (t[4] = (n) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", Ng, [r("span", { style: { "font-size": "16px" }, onClick: t[5] || (t[5] = (n) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", Bg, [r("span", { style: { "font-size": "16px" }, onClick: t[6] || (t[6] = (n) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", zg, [r("span", { style: { "font-size": "16px" }, onClick: t[7] || (t[7] = (n) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", Hg, [r("span", { style: { "font-size": "16px" }, onClick: t[8] || (t[8] = (n) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", Ag, [r("span", { style: { "font-size": "16px" }, onClick: t[9] || (t[9] = (n) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", Pg, [r("span", { onClick: t[10] || (t[10] = (...n) => e.actionInsLine && e.actionInsLine(...n)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", jg, [r("span", { style: { "font-size": "16px" }, onClick: t[11] || (t[11] = (...n) => e.actionInsQuote && e.actionInsQuote(...n)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", Rg, [r("span", { onClick: t[12] || (t[12] = (...n) => e.actionInsUl && e.actionInsUl(...n)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", Ug, [r("span", { onClick: t[13] || (t[13] = (...n) => e.actionInsOl && e.actionInsOl(...n)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", Wg, [r("span", { onClick: t[14] || (t[14] = (...n) => e.insertNotFinished && e.insertNotFinished(...n)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", Yg, [r("span", { onClick: t[15] || (t[15] = (...n) => e.insertFinished && e.insertFinished(...n)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", Xg, [r("span", { onClick: t[16] || (t[16] = (...n) => e.actionInsLink && e.actionInsLink(...n)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", qg, [r("span", { onClick: t[17] || (t[17] = (...n) => e.actionInsTable && e.actionInsTable(...n)), class: "iconfont icon-table" })])) : w("", !0), t[53] || (t[53] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 18, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[18] || (t[18] = (n) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[19] || (t[19] = (n) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, Kg)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", Gg, [r("span", { onClick: t[20] || (t[20] = (n) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", Zg, [r("span", { onClick: t[21] || (t[21] = (n) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", Qg, [r("span", { onClick: t[22] || (t[22] = (n) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 22, name: "清空", onClick: t[23] || (t[23] = (n) => a.localVal = "") }, [...t[51] || (t[51] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 23, name: "保存", onClick: t[24] || (t[24] = (...n) => e.actionSaveSet && e.actionSaveSet(...n)) }, [...t[52] || (t[52] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0)]), r("ul", Jg, [e.toolConfig.image ? (d(), u("li", e0, [r("span", { onClick: t[25] || (t[25] = (...n) => e.actionInsImage && e.actionInsImage(...n)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", t0, [r("span", { onClick: t[26] || (t[26] = (...n) => e.actionChooseImage && e.actionChooseImage(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", o0, [r("span", { onClick: t[27] || (t[27] = (...n) => e.custom_actionInsImage && e.custom_actionInsImage(...n)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", a0, [r("span", { onClick: t[28] || (t[28] = (...n) => e.custom_chooseImage && e.custom_chooseImage(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", i0, [r("span", { onClick: t[29] || (t[29] = (...n) => e.custom_chooseFile && e.custom_chooseFile(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", l0, [r("div", null, [r("span", { class: "iconfont icon-theme", onClick: t[30] || (t[30] = (n) => a.themeSlideDown = !a.themeSlideDown) }), r("ul", { class: z({ active: a.themeSlideDown }), onMouseleave: t[35] || (t[35] = (n) => a.themeSlideDown = !1) }, [r("li", { onClick: t[31] || (t[31] = (n) => e.setThemes("light")) }, "Light"), r("li", { onClick: t[32] || (t[32] = (n) => e.setThemes("dark")) }, "VS Code"), r("li", { onClick: t[33] || (t[33] = (n) => e.setThemes("oneDark")) }, "Atom OneDark"), r("li", { onClick: t[34] || (t[34] = (n) => e.setThemes("gitHub")) }, "GitHub")], 34)])])) : w("", !0), M(r("li", n0, [r("span", { class: "iconfont icon-daoru", onClick: t[36] || (t[36] = (...n) => e.actionImportFile && e.actionImportFile(...n)) }), r("input", { type: "file", onChange: t[37] || (t[37] = (n) => e.actionImportFile(n)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", s0, [r("span", { class: "iconfont icon-download", onClick: t[38] || (t[38] = (...n) => e.actionExportFile && e.actionExportFile(...n)) })], 512), [[A, e.toolConfig.exportmd]]), t[54] || (t[54] = r("li", { class: "empty" }, null, -1)), e.toolConfig.fullscreen && !a.fullscreen ? (d(), u("li", r0, [r("span", { onClick: t[39] || (t[39] = (n) => a.fullscreen = !a.fullscreen), class: "iconfont icon-fullscreen" })])) : w("", !0), e.toolConfig.fullscreen && a.fullscreen ? (d(), u("li", c0, [r("span", { onClick: t[40] || (t[40] = (n) => a.fullscreen = !a.fullscreen), class: "iconfont icon-quite" })])) : w("", !0)])])), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[41] || (t[41] = (n) => e.actionPreview = !1) }, [...t[55] || (t[55] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(r("div", { class: "markdown-editor", ref: "markdownEditor", onScroll: t[47] || (t[47] = (...n) => i.markdownScroll && i.markdownScroll(...n)), onMouseenter: t[48] || (t[48] = (n) => i.mousescrollSide("markdown")) }, [r("ul", { class: "index", ref: "index", style: H({ height: a.textareaHeight ? `${a.textareaHeight}px` : "100%" }) }, [(d(!0), u(F, null, E(a.indexLenth, (n) => (d(), u("li", { key: n }, T(n), 1))), 128))], 4), M(r("textarea", { "onUpdate:modelValue": t[42] || (t[42] = (n) => a.localVal = n), ref: "textarea", onKeydown: t[43] || (t[43] = Oe((...n) => i.tab && i.tab(...n), ["tab"])), onKeyup: [t[44] || (t[44] = Oe((...n) => i.enter && i.enter(...n), ["enter"])), t[45] || (t[45] = Oe((...n) => i.onDelete && i.onDelete(...n), ["delete"]))], onMouseenter: t[46] || (t[46] = (n) => i.mousescrollSide("left")), style: H({ height: a.textareaHeight ? `${a.textareaHeight}px` : "100%" }) }, null, 36), [[_n, a.localVal]])], 544), [[A, !e.preview]]), M(r("div", { class: z("markdown-preview " + ("markdown-theme-" + e.codemrrConfig.theme)), ref: "preview", onScroll: t[49] || (t[49] = (...n) => i.previewScroll && i.previewScroll(...n)), onMouseenter: t[50] || (t[50] = (n) => i.mousescrollSide("right")) }, [r("div", { innerHTML: a.html, ref: "previewInner" }, null, 8, d0)], 34), [[A, e.preview ? e.preview : e.split]])], 4)], 6);
|
|
3798
|
+
}], ["__scopeId", "data-v-36211c6f"]]), h0 = ["innerHTML"], Bo = S({ name: "cvMarkdownNostyle", props: { modelValue: { type: String, default: "" }, initValue: { type: String, default: "" } }, data: () => ({ localHtml: "", localVal: "" }), watch: { initValue() {
|
|
3795
3799
|
this.initNewCreate();
|
|
3796
3800
|
} }, created() {
|
|
3797
3801
|
this.localVal = this.initValue || "";
|
|
@@ -3802,27 +3806,27 @@ row 2 col 1 | row 2 col 2
|
|
|
3802
3806
|
let o = new e().parser(this.localVal, { sanitize: !1 });
|
|
3803
3807
|
o = o.replace(/href="/gi, 'target="_blank" href="'), this.localHtml = o;
|
|
3804
3808
|
} } }, [["render", function(e, t, o, l, a, i) {
|
|
3805
|
-
return d(), u("div", { class: "markdown-preview-nostyle", innerHTML: a.localHtml }, null, 8,
|
|
3809
|
+
return d(), u("div", { class: "markdown-preview-nostyle", innerHTML: a.localHtml }, null, 8, h0);
|
|
3806
3810
|
}]]);
|
|
3807
|
-
function
|
|
3811
|
+
function La(e) {
|
|
3808
3812
|
return { text: "按钮", clickFn: null, type: "default", isHide: !1, order: 2, ...e };
|
|
3809
3813
|
}
|
|
3810
|
-
|
|
3811
|
-
e.component(Fo.name, Fo);
|
|
3812
|
-
}, Mo.install = function(e) {
|
|
3814
|
+
Mo.install = function(e) {
|
|
3813
3815
|
e.component(Mo.name, Mo);
|
|
3814
3816
|
}, Eo.install = function(e) {
|
|
3815
3817
|
e.component(Eo.name, Eo);
|
|
3816
3818
|
}, No.install = function(e) {
|
|
3817
3819
|
e.component(No.name, No);
|
|
3818
|
-
},
|
|
3819
|
-
e.component(
|
|
3820
|
+
}, Bo.install = function(e) {
|
|
3821
|
+
e.component(Bo.name, Bo);
|
|
3820
3822
|
}, $o.install = function(e) {
|
|
3821
3823
|
e.component($o.name, $o);
|
|
3822
3824
|
}, Oo.install = function(e) {
|
|
3823
3825
|
e.component(Oo.name, Oo);
|
|
3826
|
+
}, Fo.install = function(e) {
|
|
3827
|
+
e.component(Fo.name, Fo);
|
|
3824
3828
|
};
|
|
3825
|
-
class
|
|
3829
|
+
class p0 {
|
|
3826
3830
|
constructor(t, o) {
|
|
3827
3831
|
this.WinVue = t, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = N(!1), this.boxProps = N({}), this.boxOptions = ke({ closeIsConfirm: !1, closeIsDestroy: !0, width: "40%", title: "默认标题" }, o.diyOpts), this.boxProps.value = Ll(this.boxOptions, ["closeIsConfirm", "closeIsDestroy"]), this.bodyComponent = o.component || "", this.bodyOptions = ke({}, o.props), this.bodyFunc = ke({}, o.onFunc);
|
|
3828
3832
|
for (const l in this.bodyFunc) if (this.bodyFunc.hasOwnProperty(l) && !l.startsWith("on")) {
|
|
@@ -3845,12 +3849,12 @@ class u0 {
|
|
|
3845
3849
|
const i = b(t.bodyComponent, { ...t.bodyOptions, ref: "inner", onSetTitle(m) {
|
|
3846
3850
|
t.boxProps.value.title = m;
|
|
3847
3851
|
}, onClose: () => t.close(), ...t.bodyFunc }, { default: () => "" });
|
|
3848
|
-
let n = { ok:
|
|
3852
|
+
let n = { ok: La({ text: "确定", type: "primary", order: 0 }), cancel: La({ text: "取消", order: 1 }) };
|
|
3849
3853
|
Object.entries(n).forEach(([m, f]) => {
|
|
3850
3854
|
if (["ok", "cancel"].includes(m)) {
|
|
3851
3855
|
const g = m === "ok" ? t.defaultFunc.onOK : t.defaultFunc.onCancel;
|
|
3852
3856
|
f.clickFn = f.clickFn || g;
|
|
3853
|
-
} else n[m] =
|
|
3857
|
+
} else n[m] = La(f);
|
|
3854
3858
|
});
|
|
3855
3859
|
const c = Object.values(n).filter((m) => !m.isHide);
|
|
3856
3860
|
b("div", {}, c.map((m) => b(Fe, { type: m.type, onClick: m.clickFn }, m.text)));
|
|
@@ -3871,10 +3875,10 @@ class u0 {
|
|
|
3871
3875
|
const l = document.createElement("div");
|
|
3872
3876
|
document.body.appendChild(l), this.vmTargetElement = l;
|
|
3873
3877
|
const a = b(o);
|
|
3874
|
-
a.appContext = this.WinVue._context,
|
|
3878
|
+
a.appContext = this.WinVue._context, Ho(a, this.vmTargetElement), this.vmApp = a;
|
|
3875
3879
|
}
|
|
3876
3880
|
close() {
|
|
3877
|
-
this.boxShow && (this.boxShow.value = !1), this.vmTargetElement && (
|
|
3881
|
+
this.boxShow && (this.boxShow.value = !1), this.vmTargetElement && (Ho(null, this.vmTargetElement), document.body.removeChild(this.vmTargetElement), this.vmApp = null);
|
|
3878
3882
|
}
|
|
3879
3883
|
show() {
|
|
3880
3884
|
this.boxShow.value = !0;
|
|
@@ -3883,10 +3887,10 @@ class u0 {
|
|
|
3883
3887
|
return this.vmCompObj.$refs.inner;
|
|
3884
3888
|
}
|
|
3885
3889
|
}
|
|
3886
|
-
function
|
|
3890
|
+
function Da(e) {
|
|
3887
3891
|
return { text: "按钮", clickFn: null, type: "default", isHide: !1, order: 2, ...e };
|
|
3888
3892
|
}
|
|
3889
|
-
class
|
|
3893
|
+
class u0 {
|
|
3890
3894
|
constructor(t, o) {
|
|
3891
3895
|
this.WinVue = t, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = N(!1), this.boxProps = N({}), this.boxOptions = ke({ closeIsConfirm: !0, closeIsDestroy: !0, width: "40%", title: "默认标题" }, o.diyOpts), this.boxProps.value = Ll(this.boxOptions, ["closeIsConfirm", "closeIsDestroy"]), this.bodyComponent = o.component || "", this.bodyOptions = ke({}, o.props), this.bodyFunc = ke({}, o.onFunc);
|
|
3892
3896
|
for (const l in this.bodyFunc) if (this.bodyFunc.hasOwnProperty(l) && !l.startsWith("on")) {
|
|
@@ -3910,12 +3914,12 @@ class m0 {
|
|
|
3910
3914
|
const i = b(t.bodyComponent, { ...t.bodyOptions, ref: "inner", onSetTitle(m) {
|
|
3911
3915
|
t.boxProps.value.title = m;
|
|
3912
3916
|
}, onClose: this.clearVm, ...t.bodyFunc }, { default: () => "" });
|
|
3913
|
-
let n = { ok:
|
|
3917
|
+
let n = { ok: Da({ text: "确定", type: "primary", order: 0 }), cancel: Da({ text: "取消", order: 1 }) };
|
|
3914
3918
|
Object.entries(n).forEach(([m, f]) => {
|
|
3915
3919
|
if (["ok", "cancel"].includes(m)) {
|
|
3916
3920
|
const g = m === "ok" ? t.defaultFunc.onOK : t.defaultFunc.onCancel;
|
|
3917
3921
|
f.clickFn = f.clickFn || g;
|
|
3918
|
-
} else n[m] =
|
|
3922
|
+
} else n[m] = Da(f);
|
|
3919
3923
|
});
|
|
3920
3924
|
const c = Object.values(n).filter((m) => !m.isHide);
|
|
3921
3925
|
b("div", {}, c.map((m) => b(Fe, { type: m.type, onClick: m.clickFn }, m.text)));
|
|
@@ -3936,10 +3940,10 @@ class m0 {
|
|
|
3936
3940
|
const l = document.createElement("div");
|
|
3937
3941
|
document.body.appendChild(l), this.vmTargetElement = l;
|
|
3938
3942
|
const a = b(o);
|
|
3939
|
-
a.appContext = this.WinVue._context,
|
|
3943
|
+
a.appContext = this.WinVue._context, Ho(a, this.vmTargetElement), this.vmApp = a;
|
|
3940
3944
|
}
|
|
3941
3945
|
close() {
|
|
3942
|
-
this.boxShow.value = !1,
|
|
3946
|
+
this.boxShow.value = !1, Ho(null, this.vmTargetElement);
|
|
3943
3947
|
}
|
|
3944
3948
|
show() {
|
|
3945
3949
|
this.boxShow.value = !0;
|
|
@@ -3948,38 +3952,38 @@ class m0 {
|
|
|
3948
3952
|
return this.vmCompObj.$refs.inner;
|
|
3949
3953
|
}
|
|
3950
3954
|
}
|
|
3951
|
-
function
|
|
3952
|
-
const i = new
|
|
3955
|
+
function m0(e, t = null, o = {}, l = {}, a = {}) {
|
|
3956
|
+
const i = new p0(e, { component: t, diyOpts: o, props: l, onFunc: a, onOK() {
|
|
3953
3957
|
i.getInner(), i.close();
|
|
3954
3958
|
}, onCancel() {
|
|
3955
3959
|
i.close();
|
|
3956
3960
|
} });
|
|
3957
3961
|
return i;
|
|
3958
3962
|
}
|
|
3959
|
-
function
|
|
3960
|
-
const i = new
|
|
3963
|
+
function g0(e, t = "", o = {}, l = {}, a = null) {
|
|
3964
|
+
const i = new u0(e, { component: t, diyOpts: { ...o }, props: l, onFunc: a, onOK() {
|
|
3961
3965
|
i.getInner(), i.close();
|
|
3962
3966
|
}, onCancel() {
|
|
3963
3967
|
i.close();
|
|
3964
3968
|
} });
|
|
3965
3969
|
return i;
|
|
3966
3970
|
}
|
|
3967
|
-
var
|
|
3971
|
+
var f0 = [tt, ot, at, it, lt, nt, st, rt, ct, dt, qn, ht, pt, ut, mt, gt, ft, yt, Ct, vt, bt, wt, kt, xt, _t, St, Vt, Dt, It, Tt, Lt, Mt, Et, Nt, Bt, zt, Ht, At, Pt, jt, Rt, Ut, Wt, Yt, qt, Kt, Gt, Zt, Qt, ao, io, Xt, to, oo, no, lo, so, vo, bo, yo, Co, wo, ko, ro, co, ho, po, uo, mo, go, fo, Jt, eo, Ot, Ft, xo, So, Vo, Io, _o, To, Lo, $o, Oo, Fo, Mo, Eo, No, Bo];
|
|
3968
3972
|
const Yl = function(e, t = {}) {
|
|
3969
|
-
|
|
3973
|
+
f0.forEach((o) => {
|
|
3970
3974
|
e.component(o.name, o);
|
|
3971
3975
|
}), e.config.globalProperties.$cvUiParams = { ...t }, e.config.globalProperties.$cvDialogRender = function() {
|
|
3972
|
-
return
|
|
3976
|
+
return m0(e, ...arguments);
|
|
3973
3977
|
}, e.config.globalProperties.$cvCopy = vs, e.config.globalProperties.$cvDrawerRender = function() {
|
|
3974
|
-
return
|
|
3978
|
+
return g0(e, ...arguments);
|
|
3975
3979
|
}, e.config.globalProperties.CDN_URL_UI = "https://10ui.cn/";
|
|
3976
3980
|
};
|
|
3977
3981
|
typeof window < "u" && window._vueApp_ && Yl(window._vueApp_);
|
|
3978
|
-
const
|
|
3982
|
+
const z0 = { version: "0.3.x", install: Yl };
|
|
3979
3983
|
export {
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
+
f0 as components,
|
|
3985
|
+
m0 as cvDialogRender,
|
|
3986
|
+
g0 as cvDrawerRender,
|
|
3987
|
+
z0 as default,
|
|
3984
3988
|
Yl as install
|
|
3985
3989
|
};
|