@web-utils/component 2.7.4 → 2.7.5
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/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.f903c9b2.js → WidgetConfig.vue_vue_type_template_lang.fbbbff76.js} +2 -2
- package/dist/chunks/monaco.1dbdc960.js +283 -0
- package/dist/components/config-custom/index.js +1 -1
- package/dist/components/config-event/index.js +1 -1
- package/dist/components/config-select/index.js +1 -1
- package/dist/components/config-table/index.js +1 -1
- package/dist/components/config-tree/index.js +6 -6
- package/dist/components/config-tree/style.css +1 -1
- package/dist/components/fy-form-design/index.js +60 -176
- package/dist/components/widget-config/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +284 -123
- package/package.json +1 -1
- package/web-types.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -31,7 +31,8 @@ import { addListener, removeListener } from "resize-detector";
|
|
|
31
31
|
import Emitter from "element-ui/src/mixins/emitter";
|
|
32
32
|
import { generateId } from "element-ui/src/utils/util";
|
|
33
33
|
import { dialogDrag } from "@web-utils/core/dist/directives/index";
|
|
34
|
-
import
|
|
34
|
+
import * as monaco from "monaco-editor/esm/vs/editor/editor.api";
|
|
35
|
+
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
35
36
|
import Draggable from "vuedraggable";
|
|
36
37
|
import Viewer from "viewerjs";
|
|
37
38
|
import "viewerjs/dist/viewer.css";
|
|
@@ -109,8 +110,8 @@ function normalizeComponent(t, n, s, a, r, l, o, c) {
|
|
|
109
110
|
if (u.functional) {
|
|
110
111
|
u._injectStyles = d;
|
|
111
112
|
var p = u.render;
|
|
112
|
-
u.render = function(
|
|
113
|
-
return d.call(y), p(
|
|
113
|
+
u.render = function(f, y) {
|
|
114
|
+
return d.call(y), p(f, y);
|
|
114
115
|
};
|
|
115
116
|
} else {
|
|
116
117
|
var m = u.beforeCreate;
|
|
@@ -2438,49 +2439,49 @@ var jsonlint = function() {
|
|
|
2438
2439
|
}, table: [{ 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 12: 1, 13: 2, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15] }, { 1: [3] }, { 14: [1, 16] }, { 14: [2, 7], 18: [2, 7], 22: [2, 7], 24: [2, 7] }, { 14: [2, 8], 18: [2, 8], 22: [2, 8], 24: [2, 8] }, { 14: [2, 9], 18: [2, 9], 22: [2, 9], 24: [2, 9] }, { 14: [2, 10], 18: [2, 10], 22: [2, 10], 24: [2, 10] }, { 14: [2, 11], 18: [2, 11], 22: [2, 11], 24: [2, 11] }, { 14: [2, 12], 18: [2, 12], 22: [2, 12], 24: [2, 12] }, { 14: [2, 3], 18: [2, 3], 22: [2, 3], 24: [2, 3] }, { 14: [2, 4], 18: [2, 4], 22: [2, 4], 24: [2, 4] }, { 14: [2, 5], 18: [2, 5], 22: [2, 5], 24: [2, 5] }, { 14: [2, 1], 18: [2, 1], 21: [2, 1], 22: [2, 1], 24: [2, 1] }, { 14: [2, 2], 18: [2, 2], 22: [2, 2], 24: [2, 2] }, { 3: 20, 4: [1, 12], 18: [1, 17], 19: 18, 20: 19 }, { 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 13: 23, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15], 24: [1, 21], 25: 22 }, { 1: [2, 6] }, { 14: [2, 13], 18: [2, 13], 22: [2, 13], 24: [2, 13] }, { 18: [1, 24], 22: [1, 25] }, { 18: [2, 16], 22: [2, 16] }, { 21: [1, 26] }, { 14: [2, 18], 18: [2, 18], 22: [2, 18], 24: [2, 18] }, { 22: [1, 28], 24: [1, 27] }, { 22: [2, 20], 24: [2, 20] }, { 14: [2, 14], 18: [2, 14], 22: [2, 14], 24: [2, 14] }, { 3: 20, 4: [1, 12], 20: 29 }, { 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 13: 30, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15] }, { 14: [2, 19], 18: [2, 19], 22: [2, 19], 24: [2, 19] }, { 3: 5, 4: [1, 12], 5: 6, 6: [1, 13], 7: 3, 8: [1, 9], 9: 4, 10: [1, 10], 11: [1, 11], 13: 31, 15: 7, 16: 8, 17: [1, 14], 23: [1, 15] }, { 18: [2, 17], 22: [2, 17] }, { 18: [2, 15], 22: [2, 15] }, { 22: [2, 21], 24: [2, 21] }], defaultActions: { 16: [2, 6] }, parseError: function(r, l) {
|
|
2439
2440
|
throw new Error(r);
|
|
2440
2441
|
}, parse: function(r) {
|
|
2441
|
-
function l(
|
|
2442
|
-
u.length = u.length - 2 *
|
|
2442
|
+
function l(F) {
|
|
2443
|
+
u.length = u.length - 2 * F, d.length = d.length - F, p.length = p.length - F;
|
|
2443
2444
|
}
|
|
2444
2445
|
function o() {
|
|
2445
|
-
var
|
|
2446
|
-
return
|
|
2446
|
+
var F;
|
|
2447
|
+
return F = c.lexer.lex() || 1, typeof F != "number" && (F = c.symbols_[F] || F), F;
|
|
2447
2448
|
}
|
|
2448
|
-
var c = this, u = [0], d = [null], p = [], m = this.table, h = "",
|
|
2449
|
+
var c = this, u = [0], d = [null], p = [], m = this.table, h = "", f = 0, y = 0, v = 0, _ = 2, A = 1;
|
|
2449
2450
|
this.lexer.setInput(r), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
|
|
2450
2451
|
var b = this.lexer.yylloc;
|
|
2451
2452
|
p.push(b), typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
|
|
2452
|
-
for (var g, $, x, C,
|
|
2453
|
+
for (var g, $, x, C, E, S = {}, k, w, T, M; ; ) {
|
|
2453
2454
|
if (x = u[u.length - 1], this.defaultActions[x] ? C = this.defaultActions[x] : (g == null && (g = o()), C = m[x] && m[x][g]), typeof C > "u" || !C.length || !C[0]) {
|
|
2454
2455
|
if (!v) {
|
|
2455
2456
|
M = [];
|
|
2456
2457
|
for (k in m[x])
|
|
2457
2458
|
this.terminals_[k] && k > 2 && M.push("'" + this.terminals_[k] + "'");
|
|
2458
2459
|
var I = "";
|
|
2459
|
-
this.lexer.showPosition ? I = "Parse error on line " + (
|
|
2460
|
+
this.lexer.showPosition ? I = "Parse error on line " + (f + 1) + `:
|
|
2460
2461
|
` + this.lexer.showPosition() + `
|
|
2461
|
-
Expecting ` + M.join(", ") + ", got '" + this.terminals_[g] + "'" : I = "Parse error on line " + (
|
|
2462
|
+
Expecting ` + M.join(", ") + ", got '" + this.terminals_[g] + "'" : I = "Parse error on line " + (f + 1) + ": Unexpected " + (g == 1 ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(I, { text: this.lexer.match, token: this.terminals_[g] || g, line: this.lexer.yylineno, loc: b, expected: M });
|
|
2462
2463
|
}
|
|
2463
2464
|
if (v == 3) {
|
|
2464
2465
|
if (g == A)
|
|
2465
2466
|
throw new Error(I || "Parsing halted.");
|
|
2466
|
-
y = this.lexer.yyleng, h = this.lexer.yytext,
|
|
2467
|
+
y = this.lexer.yyleng, h = this.lexer.yytext, f = this.lexer.yylineno, b = this.lexer.yylloc, g = o();
|
|
2467
2468
|
}
|
|
2468
|
-
for (; !(
|
|
2469
|
+
for (; !(_.toString() in m[x]); ) {
|
|
2469
2470
|
if (x == 0)
|
|
2470
2471
|
throw new Error(I || "Parsing halted.");
|
|
2471
2472
|
l(1), x = u[u.length - 1];
|
|
2472
2473
|
}
|
|
2473
|
-
$ = g, g =
|
|
2474
|
+
$ = g, g = _, x = u[u.length - 1], C = m[x] && m[x][_], v = 3;
|
|
2474
2475
|
}
|
|
2475
2476
|
if (C[0] instanceof Array && C.length > 1)
|
|
2476
2477
|
throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + g);
|
|
2477
2478
|
switch (C[0]) {
|
|
2478
2479
|
case 1:
|
|
2479
|
-
u.push(g), d.push(this.lexer.yytext), p.push(this.lexer.yylloc), u.push(C[1]), g = null, $ ? (g = $, $ = null) : (y = this.lexer.yyleng, h = this.lexer.yytext,
|
|
2480
|
+
u.push(g), d.push(this.lexer.yytext), p.push(this.lexer.yylloc), u.push(C[1]), g = null, $ ? (g = $, $ = null) : (y = this.lexer.yyleng, h = this.lexer.yytext, f = this.lexer.yylineno, b = this.lexer.yylloc, v > 0 && v--);
|
|
2480
2481
|
break;
|
|
2481
2482
|
case 2:
|
|
2482
|
-
if (w = this.productions_[C[1]][1], S.$ = d[d.length - w], S._$ = { first_line: p[p.length - (w || 1)].first_line, last_line: p[p.length - 1].last_line, first_column: p[p.length - (w || 1)].first_column, last_column: p[p.length - 1].last_column },
|
|
2483
|
-
return
|
|
2483
|
+
if (w = this.productions_[C[1]][1], S.$ = d[d.length - w], S._$ = { first_line: p[p.length - (w || 1)].first_line, last_line: p[p.length - 1].last_line, first_column: p[p.length - (w || 1)].first_column, last_column: p[p.length - 1].last_column }, E = this.performAction.call(S, h, y, f, this.yy, C[1], d, p), typeof E < "u")
|
|
2484
|
+
return E;
|
|
2484
2485
|
w && (u = u.slice(0, -1 * w * 2), d = d.slice(0, -1 * w), p = p.slice(0, -1 * w)), u.push(this.productions_[C[1]][0]), d.push(S.$), p.push(S._$), T = m[u[u.length - 2]][u[u.length - 1]], u.push(T);
|
|
2485
2486
|
break;
|
|
2486
2487
|
case 3:
|
|
@@ -3558,29 +3559,29 @@ const sendDic = (t) => {
|
|
|
3558
3559
|
d && (n = d.dicUrl, a = d.dicMethod, c = d.headers || {}, s = d.dicQuery || {}, o = d.dicFormatter, l = d.props);
|
|
3559
3560
|
let m = "key";
|
|
3560
3561
|
n = n || "";
|
|
3561
|
-
let h = [],
|
|
3562
|
+
let h = [], f = {};
|
|
3562
3563
|
return h = n.match(/[^\{\}]+(?=\})/g) || [], h.forEach((y) => {
|
|
3563
|
-
let v = `{{${y}}}`,
|
|
3564
|
-
y === m ? n = n.replace(v, u) : n = n.replace(v,
|
|
3564
|
+
let v = `{{${y}}}`, _ = p[y];
|
|
3565
|
+
y === m ? n = n.replace(v, u) : n = n.replace(v, _);
|
|
3565
3566
|
}), a === "post" && (h = Object.keys(s), h.forEach((y) => {
|
|
3566
3567
|
let v = s[y];
|
|
3567
|
-
typeof v == "string" && v.match(/\{{|}}/g) ?
|
|
3568
|
+
typeof v == "string" && v.match(/\{{|}}/g) ? f[y] = p[v.replace(/\{{|}}/g, "")] : f[y] = v;
|
|
3568
3569
|
})), l && (r = (l || {}).res || r), new Promise((y) => {
|
|
3569
|
-
const v = (
|
|
3570
|
+
const v = (_) => {
|
|
3570
3571
|
let A = [];
|
|
3571
|
-
typeof o == "function" ? A = o(
|
|
3572
|
+
typeof o == "function" ? A = o(_.data) : A = getObjValue(_.data, r), y(A);
|
|
3572
3573
|
};
|
|
3573
|
-
a === "post" ? window.axios.post(n,
|
|
3574
|
+
a === "post" ? window.axios.post(n, f, {
|
|
3574
3575
|
headers: c
|
|
3575
|
-
}).then(function(
|
|
3576
|
-
v(
|
|
3576
|
+
}).then(function(_) {
|
|
3577
|
+
v(_);
|
|
3577
3578
|
}).catch(() => [
|
|
3578
3579
|
y([])
|
|
3579
3580
|
]) : window.axios.get(n, {
|
|
3580
3581
|
params: s,
|
|
3581
3582
|
headers: c
|
|
3582
|
-
}).then(function(
|
|
3583
|
-
v(
|
|
3583
|
+
}).then(function(_) {
|
|
3584
|
+
v(_);
|
|
3584
3585
|
}).catch(() => [
|
|
3585
3586
|
y([])
|
|
3586
3587
|
]);
|
|
@@ -3937,22 +3938,22 @@ const Comment = /* @__PURE__ */ function() {
|
|
|
3937
3938
|
async function onClick(t, n, s) {
|
|
3938
3939
|
const { stop: a, prevent: r, message: l, loadable: o, loadingText: c, confirmable: u, confirmType: d, confirmText: p } = n;
|
|
3939
3940
|
a && t.stopPropagation(), r && t.preventDefault();
|
|
3940
|
-
const { before: m, click: h, cancel:
|
|
3941
|
+
const { before: m, click: h, cancel: f, after: y } = s;
|
|
3941
3942
|
if (isFunction(h))
|
|
3942
3943
|
try {
|
|
3943
3944
|
let v = !0;
|
|
3944
3945
|
if (isFunction(m) && (v = await m(t)), v === !1)
|
|
3945
3946
|
return;
|
|
3946
3947
|
u && await MessageBox.confirm(l || p, { type: d });
|
|
3947
|
-
let
|
|
3948
|
-
o && (
|
|
3948
|
+
let _;
|
|
3949
|
+
o && (_ = Loading.service({ background: "rgba(0,0,0,0.3)", text: c }));
|
|
3949
3950
|
try {
|
|
3950
3951
|
await h(t);
|
|
3951
3952
|
} catch {
|
|
3952
3953
|
}
|
|
3953
|
-
o &&
|
|
3954
|
+
o && _.close(), isFunction(y) && await y(t);
|
|
3954
3955
|
} catch (v) {
|
|
3955
|
-
isFunction(
|
|
3956
|
+
isFunction(f) && await f(v);
|
|
3956
3957
|
}
|
|
3957
3958
|
}
|
|
3958
3959
|
const confirmableMixin = {
|
|
@@ -11057,18 +11058,18 @@ const FormInputTime = /* @__PURE__ */ function() {
|
|
|
11057
11058
|
required: p,
|
|
11058
11059
|
block: m,
|
|
11059
11060
|
half: h,
|
|
11060
|
-
wrapCol:
|
|
11061
|
+
wrapCol: f,
|
|
11061
11062
|
wrapFormItem: y,
|
|
11062
11063
|
disabled: v,
|
|
11063
|
-
formItemConfig:
|
|
11064
|
+
formItemConfig: _,
|
|
11064
11065
|
getRequireRule: A
|
|
11065
11066
|
} = this;
|
|
11066
|
-
let b = r, g = p, $ = p, x = m, C =
|
|
11067
|
-
|
|
11068
|
-
const
|
|
11067
|
+
let b = r, g = p, $ = p, x = m, C = f;
|
|
11068
|
+
_ && (hasOwn(_, "block") && (x = _.block), hasOwn(_, "wrapCol") && (C = _.wrapCol));
|
|
11069
|
+
const E = x && h && C ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
11069
11070
|
return v || c != null && c.disabled ? (b = [], u && !u.required && !((S = u.requiredFields) != null && S.includes(a)) && ($ = !1)) : (u && !u.required && !((k = u.requiredFields) != null && k.includes(a)) && (g = !1), g && !(b != null && b.length) && a ? b = [A()] : g || ($ = !1, b && (b = b.filter((T) => !T.required)))), y ? t("ElFormItem", {
|
|
11070
11071
|
style: {
|
|
11071
|
-
width:
|
|
11072
|
+
width: E
|
|
11072
11073
|
},
|
|
11073
11074
|
key: `${a}-${g}`,
|
|
11074
11075
|
class: $ ? `form-item required ${d || ""}` : `${d || ""}`,
|
|
@@ -13948,17 +13949,17 @@ const FyCurd_vue_vue_type_style_index_0_lang = "", __vue2_script$1H = {
|
|
|
13948
13949
|
r[o] = d + a.length;
|
|
13949
13950
|
break;
|
|
13950
13951
|
case "avg":
|
|
13951
|
-
let p = a.map((
|
|
13952
|
-
r[o] = p.reduce((
|
|
13952
|
+
let p = a.map((f) => Number(f[l.property])), m = 1;
|
|
13953
|
+
r[o] = p.reduce((f, y) => {
|
|
13953
13954
|
let v = Number(y);
|
|
13954
|
-
return isNaN(v) ?
|
|
13955
|
+
return isNaN(v) ? f : (f * (m - 1) + y) / m++;
|
|
13955
13956
|
}, 0), r[o] = d + r[o].toFixed(u);
|
|
13956
13957
|
break;
|
|
13957
13958
|
case "sum":
|
|
13958
|
-
let h = a.map((
|
|
13959
|
-
r[o] = h.reduce((
|
|
13959
|
+
let h = a.map((f) => Number(f[l.property]));
|
|
13960
|
+
r[o] = h.reduce((f, y) => {
|
|
13960
13961
|
let v = Number(y);
|
|
13961
|
-
return isNaN(v) ?
|
|
13962
|
+
return isNaN(v) ? f : f + y;
|
|
13962
13963
|
}, 0), r[o] = d + r[o].toFixed(u);
|
|
13963
13964
|
break;
|
|
13964
13965
|
}
|
|
@@ -14655,12 +14656,12 @@ const FyDraggable_vue_vue_type_style_index_0_lang = "", __vue2_script$1E = {
|
|
|
14655
14656
|
this.moveActive = !0, n === "right" ? (s = !0, a = !1) : n === "left" ? (s = !0, r = !0, o = !0, a = !1) : n === "top" ? (s = !1, a = !0, l = !0, c = !0) : n === "bottom" ? (s = !1, a = !0) : n === "bottom-right" ? (s = !0, a = !0) : n === "bottom-left" ? (s = !0, a = !0, r = !0, o = !0) : n === "top-right" ? (s = !0, a = !0, l = !0, c = !0) : n === "top-left" && (s = !0, a = !0, r = !0, o = !0, l = !0, c = !0);
|
|
14656
14657
|
let m = p.clientX - u, h = p.clientY - d;
|
|
14657
14658
|
if (u = p.clientX, d = p.clientY, s) {
|
|
14658
|
-
let
|
|
14659
|
-
o && (
|
|
14659
|
+
let f = m * this.step;
|
|
14660
|
+
o && (f = -f), r && (this.baseLeft = getFixed(this.baseLeft - f)), this.baseWidth = getFixed(this.baseWidth + f);
|
|
14660
14661
|
}
|
|
14661
14662
|
if (a) {
|
|
14662
|
-
let
|
|
14663
|
-
c && (
|
|
14663
|
+
let f = h * this.step;
|
|
14664
|
+
c && (f = -f), l && (this.baseTop = getFixed(this.baseTop - f)), this.baseHeight = getFixed(this.baseHeight + f);
|
|
14664
14665
|
}
|
|
14665
14666
|
}, this.handleClear();
|
|
14666
14667
|
},
|
|
@@ -15142,36 +15143,36 @@ const FyEmpty = /* @__PURE__ */ function() {
|
|
|
15142
15143
|
function c({ en: v }) {
|
|
15143
15144
|
return v ? l.name(!0) : l.cname();
|
|
15144
15145
|
}
|
|
15145
|
-
function u({ max: v, min:
|
|
15146
|
+
function u({ max: v, min: _, precision: A }) {
|
|
15146
15147
|
if (A) {
|
|
15147
|
-
const b = l.float(
|
|
15148
|
+
const b = l.float(_, v, A) + "", g = b.indexOf(".") + 1;
|
|
15148
15149
|
return Number(b.substring(0, g + A));
|
|
15149
15150
|
} else
|
|
15150
|
-
return l.integer(
|
|
15151
|
+
return l.integer(_, v);
|
|
15151
15152
|
}
|
|
15152
|
-
function d({ header: v, footer:
|
|
15153
|
+
function d({ header: v, footer: _ }) {
|
|
15153
15154
|
let A = l.url();
|
|
15154
15155
|
const b = A.indexOf("://");
|
|
15155
15156
|
return v === !1 ? A = A.substring(b + 3) : A = "http://" + A.substring(b + 3), A;
|
|
15156
15157
|
}
|
|
15157
|
-
function p({ format: v, now:
|
|
15158
|
-
return
|
|
15158
|
+
function p({ format: v, now: _ }) {
|
|
15159
|
+
return _ ? l.now(v) : l.datetime(v);
|
|
15159
15160
|
}
|
|
15160
|
-
function m({ min: v, max:
|
|
15161
|
-
return l.csentence(v,
|
|
15161
|
+
function m({ min: v, max: _ }) {
|
|
15162
|
+
return l.csentence(v, _);
|
|
15162
15163
|
}
|
|
15163
15164
|
function h() {
|
|
15164
15165
|
return l.county(!0);
|
|
15165
15166
|
}
|
|
15166
|
-
function
|
|
15167
|
-
const g =
|
|
15167
|
+
function f({ dic: v, props: _, columnType: A, multiple: b }) {
|
|
15168
|
+
const g = _.value || "value", $ = v.length;
|
|
15168
15169
|
if (["checkbox"].includes(A) || b) {
|
|
15169
15170
|
const x = u({
|
|
15170
15171
|
min: 1,
|
|
15171
15172
|
max: $
|
|
15172
15173
|
});
|
|
15173
15174
|
let C = [];
|
|
15174
|
-
for (let
|
|
15175
|
+
for (let E = 0; E < x; E++) {
|
|
15175
15176
|
let S = !0;
|
|
15176
15177
|
for (; S; ) {
|
|
15177
15178
|
const k = u({
|
|
@@ -15192,34 +15193,34 @@ const FyEmpty = /* @__PURE__ */ function() {
|
|
|
15192
15193
|
}
|
|
15193
15194
|
function y() {
|
|
15194
15195
|
Object.keys(t).forEach((v) => {
|
|
15195
|
-
const
|
|
15196
|
-
if (
|
|
15197
|
-
let A =
|
|
15198
|
-
switch (A.dic = typeof
|
|
15196
|
+
const _ = t[v];
|
|
15197
|
+
if (_.mock && typeof _.mock == "object") {
|
|
15198
|
+
let A = _.mock;
|
|
15199
|
+
switch (A.dic = typeof _.dicData == "string" ? n[_.dicData] : _.dicData || [], A.props = _.props || {}, A.columnType = _.type, A.multiple = _.multiple, A.type) {
|
|
15199
15200
|
case "name":
|
|
15200
|
-
o[
|
|
15201
|
+
o[_.prop] = c(A);
|
|
15201
15202
|
break;
|
|
15202
15203
|
case "number":
|
|
15203
|
-
o[
|
|
15204
|
+
o[_.prop] = u(A);
|
|
15204
15205
|
break;
|
|
15205
15206
|
case "datetime":
|
|
15206
|
-
o[
|
|
15207
|
+
o[_.prop] = p(A);
|
|
15207
15208
|
break;
|
|
15208
15209
|
case "word":
|
|
15209
|
-
o[
|
|
15210
|
+
o[_.prop] = m(A);
|
|
15210
15211
|
break;
|
|
15211
15212
|
case "url":
|
|
15212
|
-
o[
|
|
15213
|
+
o[_.prop] = d(A);
|
|
15213
15214
|
break;
|
|
15214
15215
|
case "county":
|
|
15215
|
-
o[
|
|
15216
|
+
o[_.prop] = h();
|
|
15216
15217
|
break;
|
|
15217
15218
|
case "dic":
|
|
15218
|
-
o[
|
|
15219
|
+
o[_.prop] = f(A);
|
|
15219
15220
|
break;
|
|
15220
15221
|
}
|
|
15221
15222
|
} else
|
|
15222
|
-
|
|
15223
|
+
_.mock instanceof Function && (o[_.prop] = _.mock(s));
|
|
15223
15224
|
});
|
|
15224
15225
|
}
|
|
15225
15226
|
return y(), o;
|
|
@@ -16397,7 +16398,167 @@ function quote(t, n) {
|
|
|
16397
16398
|
function condQuoteKey(t, n) {
|
|
16398
16399
|
return keyable.test(t) ? t : quote(t, n);
|
|
16399
16400
|
}
|
|
16400
|
-
|
|
16401
|
+
function noop() {
|
|
16402
|
+
}
|
|
16403
|
+
const MonacoEditor = {
|
|
16404
|
+
name: "MonacoEditor",
|
|
16405
|
+
props: {
|
|
16406
|
+
diffEditor: { type: Boolean, default: !1 },
|
|
16407
|
+
//是否使用diff模式
|
|
16408
|
+
width: { type: [String, Number], default: "100%" },
|
|
16409
|
+
height: { type: [String, Number], default: "100%" },
|
|
16410
|
+
original: String,
|
|
16411
|
+
//只有在diff模式下有效
|
|
16412
|
+
value: [String, Object],
|
|
16413
|
+
language: { type: String, default: "javascript" },
|
|
16414
|
+
theme: { type: String, default: "vs" },
|
|
16415
|
+
readOnly: { type: Boolean, default: !1 },
|
|
16416
|
+
options: {
|
|
16417
|
+
type: Object,
|
|
16418
|
+
default() {
|
|
16419
|
+
return {};
|
|
16420
|
+
}
|
|
16421
|
+
},
|
|
16422
|
+
editorMounted: { type: Function, default: noop },
|
|
16423
|
+
editorBeforeMount: { type: Function, default: noop },
|
|
16424
|
+
keyIndex: { type: String }
|
|
16425
|
+
},
|
|
16426
|
+
watch: {
|
|
16427
|
+
options: {
|
|
16428
|
+
deep: !0,
|
|
16429
|
+
handler(t) {
|
|
16430
|
+
this.editor && this.editor.updateOptions(t);
|
|
16431
|
+
}
|
|
16432
|
+
},
|
|
16433
|
+
keyIndex() {
|
|
16434
|
+
let t = this.value;
|
|
16435
|
+
typeof t == "object" && (t = convert(t)), this.editor && t !== this._getValue() && this._setValue(t);
|
|
16436
|
+
},
|
|
16437
|
+
language() {
|
|
16438
|
+
if (this.editor)
|
|
16439
|
+
if (this.diffEditor) {
|
|
16440
|
+
const { original: t, modified: n } = this.editor.getModel();
|
|
16441
|
+
monaco.editor.setModelLanguage(t, this.language), monaco.editor.setModelLanguage(n, this.language);
|
|
16442
|
+
} else
|
|
16443
|
+
monaco.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
16444
|
+
},
|
|
16445
|
+
theme() {
|
|
16446
|
+
this.editor && monaco.editor.setTheme(this.theme);
|
|
16447
|
+
},
|
|
16448
|
+
style() {
|
|
16449
|
+
this.editor && this.$nextTick(() => {
|
|
16450
|
+
this.editor.layout();
|
|
16451
|
+
});
|
|
16452
|
+
},
|
|
16453
|
+
value(t) {
|
|
16454
|
+
this.editor && t !== this._getValue() && this._setValue(t);
|
|
16455
|
+
}
|
|
16456
|
+
},
|
|
16457
|
+
computed: {
|
|
16458
|
+
style() {
|
|
16459
|
+
return {
|
|
16460
|
+
width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
|
|
16461
|
+
height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
|
|
16462
|
+
position: "relative"
|
|
16463
|
+
};
|
|
16464
|
+
}
|
|
16465
|
+
},
|
|
16466
|
+
mounted() {
|
|
16467
|
+
this.initMonaco();
|
|
16468
|
+
},
|
|
16469
|
+
beforeDestroy() {
|
|
16470
|
+
this.editor && this.editor.dispose();
|
|
16471
|
+
},
|
|
16472
|
+
render(t) {
|
|
16473
|
+
const n = this.options.fullScreen;
|
|
16474
|
+
return t("div", { class: "monaco_editor_container", style: this.style }, [
|
|
16475
|
+
n ? t("i", {
|
|
16476
|
+
class: "el-icon-full-screen",
|
|
16477
|
+
style: {
|
|
16478
|
+
width: "1.2em",
|
|
16479
|
+
height: "1.2em",
|
|
16480
|
+
position: "absolute",
|
|
16481
|
+
left: "0px",
|
|
16482
|
+
top: "0px",
|
|
16483
|
+
zIndex: "1",
|
|
16484
|
+
cursor: "pointer"
|
|
16485
|
+
},
|
|
16486
|
+
on: { click: this._handleFullScreen }
|
|
16487
|
+
}) : ""
|
|
16488
|
+
]);
|
|
16489
|
+
},
|
|
16490
|
+
methods: {
|
|
16491
|
+
initMonaco() {
|
|
16492
|
+
const { value: t, language: n, theme: s, readOnly: a, options: r } = this;
|
|
16493
|
+
Object.assign(r, this._editorBeforeMount()), this.editor = monaco.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
|
|
16494
|
+
value: typeof t == "string" ? t : convert(t),
|
|
16495
|
+
language: n,
|
|
16496
|
+
theme: s,
|
|
16497
|
+
readOnly: a,
|
|
16498
|
+
...r
|
|
16499
|
+
}), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor);
|
|
16500
|
+
},
|
|
16501
|
+
_handleFullScreen() {
|
|
16502
|
+
this.isMaximum ? this.minEditor() : this.maxEditor();
|
|
16503
|
+
},
|
|
16504
|
+
// 放大
|
|
16505
|
+
maxEditor() {
|
|
16506
|
+
this.isMaximum = !0;
|
|
16507
|
+
let t = this.$el;
|
|
16508
|
+
this.originSize = {
|
|
16509
|
+
width: t.clientWidth,
|
|
16510
|
+
height: t.clientHeight
|
|
16511
|
+
}, t.classList.add("editor-fullscreen"), this.editor.layout({
|
|
16512
|
+
height: document.body.clientHeight,
|
|
16513
|
+
width: document.body.clientWidth
|
|
16514
|
+
}), document.addEventListener("keyup", (n) => {
|
|
16515
|
+
n.keyCode == 27 && this.minEditor();
|
|
16516
|
+
});
|
|
16517
|
+
},
|
|
16518
|
+
// 缩小
|
|
16519
|
+
minEditor() {
|
|
16520
|
+
this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
|
|
16521
|
+
height: this.originSize.height,
|
|
16522
|
+
width: this.originSize.width
|
|
16523
|
+
}), document.removeEventListener("keyup", () => {
|
|
16524
|
+
});
|
|
16525
|
+
},
|
|
16526
|
+
_getEditor() {
|
|
16527
|
+
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
16528
|
+
},
|
|
16529
|
+
_setModel(t, n) {
|
|
16530
|
+
const { language: s } = this, a = monaco.editor.createModel(n, s), r = monaco.editor.createModel(t, s);
|
|
16531
|
+
this.editor.setModel({
|
|
16532
|
+
original: a,
|
|
16533
|
+
modified: r
|
|
16534
|
+
});
|
|
16535
|
+
},
|
|
16536
|
+
_setValue(t) {
|
|
16537
|
+
let n = this._getEditor();
|
|
16538
|
+
if (n)
|
|
16539
|
+
return n.setValue(t);
|
|
16540
|
+
},
|
|
16541
|
+
_getValue() {
|
|
16542
|
+
let t = this._getEditor();
|
|
16543
|
+
return t ? t.getValue() : "";
|
|
16544
|
+
},
|
|
16545
|
+
_editorBeforeMount() {
|
|
16546
|
+
return this.editorBeforeMount(monaco) || {};
|
|
16547
|
+
},
|
|
16548
|
+
_editorMounted(t) {
|
|
16549
|
+
this.editorMounted(t, monaco), this.diffEditor ? t.onDidUpdateDiff((n) => {
|
|
16550
|
+
const s = this._getValue();
|
|
16551
|
+
this._emitChange(s, n);
|
|
16552
|
+
}) : t.onDidChangeModelContent((n) => {
|
|
16553
|
+
const s = this._getValue();
|
|
16554
|
+
this._emitChange(s, n);
|
|
16555
|
+
});
|
|
16556
|
+
},
|
|
16557
|
+
_emitChange(t, n) {
|
|
16558
|
+
this.$emit("change", t, n), this.$emit("input", t);
|
|
16559
|
+
}
|
|
16560
|
+
}
|
|
16561
|
+
}, widgetEmpty = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy3hMcHjs/14q0nd9mNfyvL9RoCBBYrIAy3+doK3obhSwIDE5j5NnlgFlaXAIEBC8zcMmzPNR7dJs/hjer13Bsp/fZMSv+9Murw3mZ/yBfvHX39k3+k9MJ/Jju/p3n8sW2Pjx8dn3kz+1zrs2n24ynr49POpX7gw0fS45+x02c8N//mFy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YRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg==", history = {
|
|
16401
16562
|
data() {
|
|
16402
16563
|
return {
|
|
16403
16564
|
historySteps: {
|
|
@@ -19638,7 +19799,7 @@ var __component__$1l = /* @__PURE__ */ normalizeComponent(
|
|
|
19638
19799
|
staticRenderFns$1g,
|
|
19639
19800
|
!1,
|
|
19640
19801
|
__vue2_injectStyles$1l,
|
|
19641
|
-
"
|
|
19802
|
+
"8a482952",
|
|
19642
19803
|
null,
|
|
19643
19804
|
null
|
|
19644
19805
|
);
|
|
@@ -25792,27 +25953,27 @@ function detailImg(t, n = {}, s) {
|
|
|
25792
25953
|
function m() {
|
|
25793
25954
|
config.text = a || config.text, config.fontFamily = r || config.fontFamily, config.color = l || config.color, config.fontSize = o || config.fontSize, config.opacity = c || config.opacity, config.bottom = u || config.bottom, config.right = d || config.right, config.ratio = p || config.ratio;
|
|
25794
25955
|
}
|
|
25795
|
-
function h(
|
|
25956
|
+
function h(_) {
|
|
25796
25957
|
var A = new Image();
|
|
25797
|
-
A.src =
|
|
25958
|
+
A.src = _, A.onload = function() {
|
|
25798
25959
|
var b = A.width, g = A.height;
|
|
25799
|
-
|
|
25960
|
+
f(b, g), ctx.drawImage(A, 0, 0, b, g), y(b, g);
|
|
25800
25961
|
const $ = document.getElementById("canvas").toDataURL(t.type, config.ratio), x = dataURLtoFile($, t.name);
|
|
25801
25962
|
s && s(x);
|
|
25802
25963
|
};
|
|
25803
25964
|
}
|
|
25804
|
-
function _
|
|
25805
|
-
canvas = document.getElementById("canvas"), canvas === null && (canvas = document.createElement("canvas"), canvas.id = "canvas", canvas.className = "avue-canvas", document.body.appendChild(canvas)), ctx = canvas.getContext("2d"), canvas.width =
|
|
25965
|
+
function f(_, A) {
|
|
25966
|
+
canvas = document.getElementById("canvas"), canvas === null && (canvas = document.createElement("canvas"), canvas.id = "canvas", canvas.className = "avue-canvas", document.body.appendChild(canvas)), ctx = canvas.getContext("2d"), canvas.width = _, canvas.height = A;
|
|
25806
25967
|
}
|
|
25807
|
-
function y(
|
|
25808
|
-
var b = config.text, g = v(b,
|
|
25968
|
+
function y(_, A) {
|
|
25969
|
+
var b = config.text, g = v(b, _, A);
|
|
25809
25970
|
ctx.font = g.fontSize + "px " + config.fontFamily, ctx.fillStyle = config.color, ctx.globalAlpha = config.opacity / 100, ctx.fillText(b, g.x, g.y);
|
|
25810
25971
|
}
|
|
25811
|
-
function v(
|
|
25972
|
+
function v(_, A, b) {
|
|
25812
25973
|
var g, $, x = config.fontSize / configDefault.width, C = x * A;
|
|
25813
25974
|
config.bottom ? $ = configDefault.height - config.bottom : $ = config.top, config.right ? g = configDefault.width - config.right : g = config.left, ctx.font = config.fontSize + "px " + config.fontFamily;
|
|
25814
|
-
var
|
|
25815
|
-
g = g -
|
|
25975
|
+
var E = Number(ctx.measureText(_).width);
|
|
25976
|
+
g = g - E;
|
|
25816
25977
|
var S = g / configDefault.width, k = $ / configDefault.height;
|
|
25817
25978
|
return g = S * A, $ = k * b, {
|
|
25818
25979
|
x: g,
|
|
@@ -26387,8 +26548,8 @@ const __vue2_script$T = {
|
|
|
26387
26548
|
const c = () => {
|
|
26388
26549
|
const d = (p) => {
|
|
26389
26550
|
let m = this.action;
|
|
26390
|
-
for (let
|
|
26391
|
-
o.append(
|
|
26551
|
+
for (let f in this.data)
|
|
26552
|
+
o.append(f, this.data[f]);
|
|
26392
26553
|
const h = p || n;
|
|
26393
26554
|
if (o.append(this.fileName, h), this.isQiniuOss) {
|
|
26394
26555
|
if (!window.CryptoJS) {
|
|
@@ -26396,11 +26557,11 @@ const __vue2_script$T = {
|
|
|
26396
26557
|
return;
|
|
26397
26558
|
}
|
|
26398
26559
|
r = this.qiniu || this.$AVUE.qiniu;
|
|
26399
|
-
const
|
|
26560
|
+
const f = getToken(r.AK, r.SK, {
|
|
26400
26561
|
scope: r.scope,
|
|
26401
26562
|
deadline: new Date().getTime() + r.deadline * 3600
|
|
26402
26563
|
});
|
|
26403
|
-
o.append("token",
|
|
26564
|
+
o.append("token", f), m = r.bucket;
|
|
26404
26565
|
} else if (this.isAliOss) {
|
|
26405
26566
|
if (!window.OSS) {
|
|
26406
26567
|
packages$1.logs("AliOSS"), this.hide();
|
|
@@ -26410,10 +26571,10 @@ const __vue2_script$T = {
|
|
|
26410
26571
|
}
|
|
26411
26572
|
(() => this.isAliOss ? l.put(h.name, h, {
|
|
26412
26573
|
headers: this.headers
|
|
26413
|
-
}) : this.$axios.post(m, o, { headers: a }))().then((
|
|
26414
|
-
this.res = {}, this.isQiniuOss && (
|
|
26415
|
-
}).catch((
|
|
26416
|
-
this.hide(
|
|
26574
|
+
}) : this.$axios.post(m, o, { headers: a }))().then((f) => {
|
|
26575
|
+
this.res = {}, this.isQiniuOss && (f.data.key = r.url + f.data.key), this.res = getAsVal(this.isAliOss ? f : f.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
|
|
26576
|
+
}).catch((f) => {
|
|
26577
|
+
this.hide(f);
|
|
26417
26578
|
});
|
|
26418
26579
|
};
|
|
26419
26580
|
typeof this.uploadBefore == "function" ? this.uploadBefore(n, d, this.hide, this.column) : d();
|
|
@@ -27820,9 +27981,9 @@ let Keyboard$1 = class {
|
|
|
27820
27981
|
const u = [], d = [];
|
|
27821
27982
|
for (let h = 0; h < o.length; h++) {
|
|
27822
27983
|
u.push([]), d.push([]), c = o[h];
|
|
27823
|
-
for (let
|
|
27824
|
-
if (c[
|
|
27825
|
-
switch (d[h].push(c[
|
|
27984
|
+
for (let f = 0; f < c.length; f++) {
|
|
27985
|
+
if (c[f].length === 1) {
|
|
27986
|
+
switch (d[h].push(c[f].toUpperCase()), c[f]) {
|
|
27826
27987
|
case "`":
|
|
27827
27988
|
u[h].push("~");
|
|
27828
27989
|
continue;
|
|
@@ -27887,16 +28048,16 @@ let Keyboard$1 = class {
|
|
|
27887
28048
|
u[h].push("?");
|
|
27888
28049
|
continue;
|
|
27889
28050
|
}
|
|
27890
|
-
u[h].push(c[
|
|
28051
|
+
u[h].push(c[f].toUpperCase());
|
|
27891
28052
|
continue;
|
|
27892
28053
|
}
|
|
27893
|
-
u[h].push(c[
|
|
28054
|
+
u[h].push(c[f]), d[h].push(c[f]);
|
|
27894
28055
|
}
|
|
27895
28056
|
}
|
|
27896
28057
|
for (let h = 0; h < o.length; h++) {
|
|
27897
28058
|
c = o[h], r += '<div class="akeyboard-keyboard-innerKeys">';
|
|
27898
|
-
for (let
|
|
27899
|
-
r += '<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-' + c[
|
|
28059
|
+
for (let f = 0; f < c.length; f++)
|
|
28060
|
+
r += '<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-' + c[f] + '">' + c[f] + "</div>";
|
|
27900
28061
|
r += "</div>";
|
|
27901
28062
|
}
|
|
27902
28063
|
r += "</div>", s.innerHTML = r;
|
|
@@ -27906,13 +28067,13 @@ let Keyboard$1 = class {
|
|
|
27906
28067
|
p = !0;
|
|
27907
28068
|
return;
|
|
27908
28069
|
}
|
|
27909
|
-
}), p && document.querySelectorAll(n.el + " .akeyboard-keyboard-keys-Shift").forEach((
|
|
27910
|
-
|
|
28070
|
+
}), p && document.querySelectorAll(n.el + " .akeyboard-keyboard-keys-Shift").forEach((f) => {
|
|
28071
|
+
f.onclick = function() {
|
|
27911
28072
|
if (!this.isShift) {
|
|
27912
|
-
const
|
|
27913
|
-
if (
|
|
28073
|
+
const _ = document.querySelector(n.el + " .akeyboard-keyboard-keys-Caps");
|
|
28074
|
+
if (_ && _.isCaps)
|
|
27914
28075
|
return;
|
|
27915
|
-
|
|
28076
|
+
f.isShift = !0, f.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
|
|
27916
28077
|
const A = document.querySelectorAll(n.el + " .akeyboard-keyboard-innerKeys");
|
|
27917
28078
|
let b;
|
|
27918
28079
|
for (let g = 0; g < A.length; g++) {
|
|
@@ -27922,13 +28083,13 @@ let Keyboard$1 = class {
|
|
|
27922
28083
|
}
|
|
27923
28084
|
return;
|
|
27924
28085
|
}
|
|
27925
|
-
|
|
28086
|
+
f.isShift = !1, f.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
|
|
27926
28087
|
const y = document.querySelectorAll(n.el + " .akeyboard-keyboard-innerKeys");
|
|
27927
28088
|
let v;
|
|
27928
|
-
for (let
|
|
27929
|
-
v = y[
|
|
28089
|
+
for (let _ = 0; _ < y.length; _++) {
|
|
28090
|
+
v = y[_];
|
|
27930
28091
|
for (let A = 0; A < v.childNodes.length; A++)
|
|
27931
|
-
v.childNodes[A].innerHTML = o[
|
|
28092
|
+
v.childNodes[A].innerHTML = o[_][A];
|
|
27932
28093
|
}
|
|
27933
28094
|
};
|
|
27934
28095
|
});
|
|
@@ -27938,11 +28099,11 @@ let Keyboard$1 = class {
|
|
|
27938
28099
|
m = !0;
|
|
27939
28100
|
return;
|
|
27940
28101
|
}
|
|
27941
|
-
}), m && document.querySelectorAll(n.el + " .akeyboard-keyboard-keys-Caps").forEach((
|
|
27942
|
-
|
|
28102
|
+
}), m && document.querySelectorAll(n.el + " .akeyboard-keyboard-keys-Caps").forEach((f) => {
|
|
28103
|
+
f.onclick = function() {
|
|
27943
28104
|
if (!this.isCaps) {
|
|
27944
|
-
const
|
|
27945
|
-
if (
|
|
28105
|
+
const _ = document.querySelector(n.el + " .akeyboard-keyboard-keys-Shift");
|
|
28106
|
+
if (_ && _.isShift)
|
|
27946
28107
|
return;
|
|
27947
28108
|
this.isCaps = !0, this.classList.add("keyboard-keyboard-keys-focus");
|
|
27948
28109
|
const A = document.querySelectorAll(n.el + " .akeyboard-keyboard-innerKeys");
|
|
@@ -27957,10 +28118,10 @@ let Keyboard$1 = class {
|
|
|
27957
28118
|
this.isCaps = !1, this.classList.remove("keyboard-keyboard-keys-focus");
|
|
27958
28119
|
const y = document.querySelectorAll(n.el + " .akeyboard-keyboard-innerKeys");
|
|
27959
28120
|
let v;
|
|
27960
|
-
for (let
|
|
27961
|
-
v = y[
|
|
28121
|
+
for (let _ = 0; _ < y.length; _++) {
|
|
28122
|
+
v = y[_];
|
|
27962
28123
|
for (let A = 0; A < v.childNodes.length; A++)
|
|
27963
|
-
v.childNodes[A].innerHTML = o[
|
|
28124
|
+
v.childNodes[A].innerHTML = o[_][A];
|
|
27964
28125
|
}
|
|
27965
28126
|
};
|
|
27966
28127
|
});
|
|
@@ -31265,9 +31426,9 @@ const __vue2_script$l = {
|
|
|
31265
31426
|
this.linex = new Array(), this.liney = new Array(), this.linen = new Array();
|
|
31266
31427
|
var a = 1, r = 30, l = 0;
|
|
31267
31428
|
function o(p, m) {
|
|
31268
|
-
var h = p.getBoundingClientRect(),
|
|
31269
|
-
return m.targetTouches ? (
|
|
31270
|
-
x: (
|
|
31429
|
+
var h = p.getBoundingClientRect(), f, y;
|
|
31430
|
+
return m.targetTouches ? (f = m.targetTouches[0].clientX, y = m.targetTouches[0].clientY) : (f = m.clientX, y = m.clientY), {
|
|
31431
|
+
x: (f - h.left) * (p.width / h.width),
|
|
31271
31432
|
y: (y - h.top) * (p.height / h.height)
|
|
31272
31433
|
};
|
|
31273
31434
|
}
|
|
@@ -31276,8 +31437,8 @@ const __vue2_script$l = {
|
|
|
31276
31437
|
var m = o(t, p).x, h = o(t, p).y;
|
|
31277
31438
|
if (l == 1) {
|
|
31278
31439
|
n.linex.push(m), n.liney.push(h), n.linen.push(1), s.save(), s.translate(s.canvas.width / 2, s.canvas.height / 2), s.translate(-s.canvas.width / 2, -s.canvas.height / 2), s.beginPath(), s.lineWidth = 2;
|
|
31279
|
-
for (var
|
|
31280
|
-
a = n.linex[
|
|
31440
|
+
for (var f = 1; f < n.linex.length; f++)
|
|
31441
|
+
a = n.linex[f], r = n.liney[f], n.linen[f] == 0 ? s.moveTo(a, r) : s.lineTo(a, r);
|
|
31281
31442
|
s.shadowBlur = 10, s.stroke(), s.restore();
|
|
31282
31443
|
}
|
|
31283
31444
|
p.preventDefault();
|
|
@@ -31895,7 +32056,7 @@ const SplitPane = /* @__PURE__ */ function() {
|
|
|
31895
32056
|
}
|
|
31896
32057
|
},
|
|
31897
32058
|
render(t, { props: n, data: s, children: a }) {
|
|
31898
|
-
const { draft: r, doing: l, overdue: o, error: c, done: u, closed: d, status: p, tag: m, size: h, type:
|
|
32059
|
+
const { draft: r, doing: l, overdue: o, error: c, done: u, closed: d, status: p, tag: m, size: h, type: f } = n, y = {
|
|
31899
32060
|
draft: Array.isArray(r) ? r.includes(p) : r,
|
|
31900
32061
|
doing: Array.isArray(l) ? l.includes(p) : l,
|
|
31901
32062
|
overdue: Array.isArray(o) ? o.includes(p) : o,
|
|
@@ -31906,7 +32067,7 @@ const SplitPane = /* @__PURE__ */ function() {
|
|
|
31906
32067
|
return t(m, s, [
|
|
31907
32068
|
t("span", {
|
|
31908
32069
|
style: { width: h, height: h },
|
|
31909
|
-
class: ["stateful",
|
|
32070
|
+
class: ["stateful", f, y]
|
|
31910
32071
|
}),
|
|
31911
32072
|
a
|
|
31912
32073
|
]);
|
|
@@ -35058,7 +35219,7 @@ function __vue2_injectStyles(t) {
|
|
|
35058
35219
|
}
|
|
35059
35220
|
const Watermark = /* @__PURE__ */ function() {
|
|
35060
35221
|
return __component__.exports;
|
|
35061
|
-
}(), version = "2.7.
|
|
35222
|
+
}(), version = "2.7.5";
|
|
35062
35223
|
function index(t) {
|
|
35063
35224
|
t.component(AddressInput.name, AddressInput), t.component(Affix.name, Affix), t.component(Article.name, Article), t.component(AsideMenu.name, AsideMenu), t.component(Avatar.name, Avatar), t.component(AwesomeButton.name, AwesomeButton), t.component(CapsuleTab.name, CapsuleTab), t.component(Card.name, Card), t.component(Carousel.name, Carousel), t.component(Chat.name, Chat), t.component(ChunkFileUploader.name, ChunkFileUploader), t.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), t.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), t.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), t.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), t.component(ChunkFileUploaderList.name, ChunkFileUploaderList), t.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), t.component(Code.name, Code), t.component(CodeMirrorEditor.name, CodeMirrorEditor), t.component(ColorPicker.name, ColorPicker), t.component(Column.name, Column), t.component(ColumnDefault.name, ColumnDefault), t.component(ColumnDynamic.name, ColumnDynamic), t.component(ColumnMenu.name, ColumnMenu), t.component(ColumnSlot.name, ColumnSlot), t.component(Comment.name, Comment), t.component(Confirmable.name, Confirmable), t.component(ConfirmButton.name, ConfirmButton), t.component(ContextMenu.name, ContextMenu), t.component(CountUp.name, CountUp), t.component(CustomScrollbar.name, CustomScrollbar), t.component(DataBox.name, DataBox), t.component(DataCard.name, DataCard), t.component(DataCardtext.name, DataCardtext), t.component(DataDisplay.name, DataDisplay), t.component(DataIcons.name, DataIcons), t.component(DataImgtext.name, DataImgtext), t.component(DataOperatext.name, DataOperatext), t.component(DataPanel.name, DataPanel), t.component(DataPay.name, DataPay), t.component(DataPrice.name, DataPrice), t.component(DataProgress.name, DataProgress), t.component(DataRotate.name, DataRotate), t.component(DataTablePicker.name, DataTablePicker), t.component(DataTabs.name, DataTabs), t.component(DialogColumn.name, DialogColumn), t.component(DialogExcel.name, DialogExcel), t.component(DialogFilter.name, DialogFilter), t.component(DialogForm.name, DialogForm), t.component(DynamicTable.name, DynamicTable), t.component(ECharts.name, ECharts), t.component(EditableProgress.name, EditableProgress), t.component(EditableTree.name, EditableTree), t.component(EgdCollapse.name, EgdCollapse), t.component(EgdCollapseItem.name, EgdCollapseItem), t.component(ElementDialog.name, ElementDialog), t.component(EmptyView.name, EmptyView), t.component(ErrorView.name, ErrorView), t.component(FlexColumn.name, FlexColumn), t.component(FlexItem.name, FlexItem), t.component(FlexRow.name, FlexRow), t.component(FlexScroller.name, FlexScroller), t.component(Flow.name, Flow), t.component(FlowNode.name, FlowNode), t.component(FormButton.name, FormButton), t.component(FormCascader.name, FormCascader), t.component(FormCheckboxGroup.name, FormCheckboxGroup), t.component(FormDatePicker.name, FormDatePicker), t.component(FormGroup.name, FormGroup), t.component(FormHolder.name, FormHolder), t.component(FormInput.name, FormInput), t.component(FormInputEmail.name, FormInputEmail), t.component(FormInputIdCard.name, FormInputIdCard), t.component(FormInputNumber.name, FormInputNumber), t.component(FormInputPhoneNumber.name, FormInputPhoneNumber), t.component(FormInputTime.name, FormInputTime), t.component(FormItem.name, FormItem), t.component(FormItemConfigProvider.name, FormItemConfigProvider), t.component(FormItemGroup.name, FormItemGroup), t.component(FormRadioGroup.name, FormRadioGroup), t.component(FormSelect.name, FormSelect), t.component(FormSwitch.name, FormSwitch), t.component(FormTemp.name, FormTemp), t.component(FormTextarea.name, FormTextarea), t.component(FormView.name, FormView), t.component(FyArray.name, FyArray), t.component(FyCascader.name, FyCascader), t.component(FyCheckbox.name, FyCheckbox), t.component(FyCurd.name, FyCurd), t.component(FyDate.name, FyDate), t.component(FyDialogForm.name, FyDialogForm), t.component(FyDraggable.name, FyDraggable), t.component(FyDynamic.name, FyDynamic), t.component(FyEmpty.name, FyEmpty), t.component(FyForm.name, FyForm), t.component(FyFormDesign.name, FyFormDesign), t.component(FyFormMenu.name, FyFormMenu), t.component(FyInput.name, FyInput), t.component(FyInputColor.name, FyInputColor), t.component(FyInputIcon.name, FyInputIcon), t.component(FyInputMap.name, FyInputMap), t.component(FyInputNumber.name, FyInputNumber), t.component(FyInputTable.name, FyInputTable), t.component(FyInputTree.name, FyInputTree), t.component(FyRadio.name, FyRadio), t.component(FyRate.name, FyRate), t.component(FySelect.name, FySelect), t.component(FySlider.name, FySlider), t.component(FySwitch.name, FySwitch), t.component(FyTabs.name, FyTabs), t.component(FyTime.name, FyTime), t.component(FyTitle.name, FyTitle), t.component(FyTree.name, FyTree), t.component(FyUpload.name, FyUpload), t.component(GuideSteps.name, GuideSteps), t.component(HeaderMenu.name, HeaderMenu), t.component(HeaderSearch.name, HeaderSearch), t.component(IconCard.name, IconCard), t.component(IconTemp.name, IconTemp), t.component(IframeWindow.name, IframeWindow), t.component(ImageViewer.name, ImageViewer), t.component(InputNumber.name, InputNumber), t.component(InputNumberRange.name, InputNumberRange), t.component(JSXComponent.name, JSXComponent), t.component(KeepViewAlive.name, KeepViewAlive), t.component(Keyboard.name, Keyboard), t.component(License.name, License), t.component(LoadingView.name, LoadingView), t.component(Login.name, Login), t.component(NameAvatar.name, NameAvatar), t.component(NavBar.name, NavBar), t.component(Notice.name, Notice), t.component(NotImplement.name, NotImplement), t.component(Page.name, Page), t.component(PageableTable.name, PageableTable), t.component(PageableView.name, PageableView), t.component(PageHeader.name, PageHeader), t.component(PageIndex.name, PageIndex), t.component(PageIndexTop.name, PageIndexTop), t.component(PageSkeleton.name, PageSkeleton), t.component(PageSkeletonNew.name, PageSkeletonNew), t.component(PhotoSwipe.name, PhotoSwipe), t.component(Progress.name, Progress), t.component(Queue.name, Queue), t.component(RecordVideo.name, RecordVideo), t.component(ResizeObserver.name, ResizeObserver), t.component(Search.name, Search), t.component(SearchPopover.name, SearchPopover), t.component(Sign.name, Sign), t.component(SignPanel.name, SignPanel), t.component(Skeleton.name, Skeleton), t.component(SplitPane.name, SplitPane), t.component(Stateful.name, Stateful), t.component(StaticPageableTable.name, StaticPageableTable), t.component(Swiper.name, Swiper), t.component(Tab.name, Tab), t.component(TabItem.name, TabItem), t.component(TableColumn.name, TableColumn), t.component(TablePage.name, TablePage), t.component(TableView.name, TableView), t.component(TagRender.name, TagRender), t.component(TextEllipsis.name, TextEllipsis), t.component(TinymceEditor.name, TinymceEditor), t.component(TinymceWrapper.name, TinymceWrapper), t.component(Toolbar.name, Toolbar), t.component(ToolbarButton.name, ToolbarButton), t.component(Trigger.name, Trigger), t.component(Verify.name, Verify), t.component(VueTagsInput.name, VueTagsInput), t.component(Watermark.name, Watermark);
|
|
35064
35225
|
}
|