@web-utils/component 2.7.16 → 2.7.17
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/components/dialog-form/index.js +85 -219
- package/dist/components/{fy-dialog-form → dialog-form}/style.css +0 -0
- package/dist/components/fy-dialog-form/index.js +11 -12
- package/dist/components/image-cropper/index.js +2 -2
- package/dist/components/image-preview/index.js +2 -2
- package/dist/index.es.js +189 -323
- package/package.json +4 -5
- package/web-types.json +2 -20
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFunction, error, isBlank, getObjType, formatDate, isObject as isObject$1, isString, hasOwn, isPlainObject, isArray, camelize, fastClone, validateNumber, validateIdCard, validatePhoneNum, debounce, addResizeListener, removeResizeListener, isVerticalScrollbarVisible, scrollbarWidth, computePosition, cloneDeep, isUndefined, isNotEmpty, delay, findTreeChildren, setParent, toDate, warning, merge, toStringArray, animate, isInContainer, createLogger, setPx as setPx$1, copy, treeToArray, findFirstMatchNode, getEleWidth, trace, guid, NOOP } from "@web-utils/core";
|
|
1
|
+
import { isFunction, error, isBlank, getObjType, formatDate, isObject as isObject$1, isString, hasOwn, isPlainObject, isArray, camelize, isEmpty, fastClone, validateNumber, validateIdCard, validatePhoneNum, debounce, addResizeListener, removeResizeListener, isVerticalScrollbarVisible, scrollbarWidth, computePosition, cloneDeep, isUndefined, isNotEmpty, delay, findTreeChildren, setParent, toDate, warning, merge, toStringArray, animate, isInContainer, createLogger, setPx as setPx$1, copy, treeToArray, findFirstMatchNode, getEleWidth, trace, guid, NOOP } from "@web-utils/core";
|
|
2
2
|
import Uploader from "simple-uploader.js";
|
|
3
3
|
import CodeMirror from "codemirror";
|
|
4
4
|
import "codemirror/lib/codemirror.css";
|
|
@@ -111,8 +111,8 @@ function normalizeComponent(t, n, s, a, r, o, l, c) {
|
|
|
111
111
|
if (u.functional) {
|
|
112
112
|
u._injectStyles = d;
|
|
113
113
|
var p = u.render;
|
|
114
|
-
u.render = function(
|
|
115
|
-
return d.call(b), p(
|
|
114
|
+
u.render = function(_, b) {
|
|
115
|
+
return d.call(b), p(_, b);
|
|
116
116
|
};
|
|
117
117
|
} else {
|
|
118
118
|
var m = u.beforeCreate;
|
|
@@ -2309,42 +2309,42 @@ var jsonlint = function() {
|
|
|
2309
2309
|
var I;
|
|
2310
2310
|
return I = c.lexer.lex() || 1, typeof I != "number" && (I = c.symbols_[I] || I), I;
|
|
2311
2311
|
}
|
|
2312
|
-
var c = this, u = [0], d = [null], p = [], m = this.table, h = "",
|
|
2312
|
+
var c = this, u = [0], d = [null], p = [], m = this.table, h = "", _ = 0, b = 0, g = 0, f = 2, v = 1;
|
|
2313
2313
|
this.lexer.setInput(r), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
|
|
2314
2314
|
var $ = this.lexer.yylloc;
|
|
2315
2315
|
p.push($), typeof this.yy.parseError == "function" && (this.parseError = this.yy.parseError);
|
|
2316
|
-
for (var y, x, C, w,
|
|
2316
|
+
for (var y, x, C, w, F, k = {}, E, S, M, B; ; ) {
|
|
2317
2317
|
if (C = u[u.length - 1], this.defaultActions[C] ? w = this.defaultActions[C] : (y == null && (y = l()), w = m[C] && m[C][y]), typeof w > "u" || !w.length || !w[0]) {
|
|
2318
2318
|
if (!g) {
|
|
2319
2319
|
B = [];
|
|
2320
|
-
for (
|
|
2321
|
-
this.terminals_[
|
|
2320
|
+
for (E in m[C])
|
|
2321
|
+
this.terminals_[E] && E > 2 && B.push("'" + this.terminals_[E] + "'");
|
|
2322
2322
|
var T = "";
|
|
2323
|
-
this.lexer.showPosition ? T = "Parse error on line " + (
|
|
2323
|
+
this.lexer.showPosition ? T = "Parse error on line " + (_ + 1) + `:
|
|
2324
2324
|
` + this.lexer.showPosition() + `
|
|
2325
|
-
Expecting ` + B.join(", ") + ", got '" + this.terminals_[y] + "'" : T = "Parse error on line " + (
|
|
2325
|
+
Expecting ` + B.join(", ") + ", got '" + this.terminals_[y] + "'" : T = "Parse error on line " + (_ + 1) + ": Unexpected " + (y == 1 ? "end of input" : "'" + (this.terminals_[y] || y) + "'"), this.parseError(T, { text: this.lexer.match, token: this.terminals_[y] || y, line: this.lexer.yylineno, loc: $, expected: B });
|
|
2326
2326
|
}
|
|
2327
2327
|
if (g == 3) {
|
|
2328
2328
|
if (y == v)
|
|
2329
2329
|
throw new Error(T || "Parsing halted.");
|
|
2330
|
-
b = this.lexer.yyleng, h = this.lexer.yytext,
|
|
2330
|
+
b = this.lexer.yyleng, h = this.lexer.yytext, _ = this.lexer.yylineno, $ = this.lexer.yylloc, y = l();
|
|
2331
2331
|
}
|
|
2332
|
-
for (; !(
|
|
2332
|
+
for (; !(f.toString() in m[C]); ) {
|
|
2333
2333
|
if (C == 0)
|
|
2334
2334
|
throw new Error(T || "Parsing halted.");
|
|
2335
2335
|
o(1), C = u[u.length - 1];
|
|
2336
2336
|
}
|
|
2337
|
-
x = y, y =
|
|
2337
|
+
x = y, y = f, C = u[u.length - 1], w = m[C] && m[C][f], g = 3;
|
|
2338
2338
|
}
|
|
2339
2339
|
if (w[0] instanceof Array && w.length > 1)
|
|
2340
2340
|
throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + y);
|
|
2341
2341
|
switch (w[0]) {
|
|
2342
2342
|
case 1:
|
|
2343
|
-
u.push(y), d.push(this.lexer.yytext), p.push(this.lexer.yylloc), u.push(w[1]), y = null, x ? (y = x, x = null) : (b = this.lexer.yyleng, h = this.lexer.yytext,
|
|
2343
|
+
u.push(y), d.push(this.lexer.yytext), p.push(this.lexer.yylloc), u.push(w[1]), y = null, x ? (y = x, x = null) : (b = this.lexer.yyleng, h = this.lexer.yytext, _ = this.lexer.yylineno, $ = this.lexer.yylloc, g > 0 && g--);
|
|
2344
2344
|
break;
|
|
2345
2345
|
case 2:
|
|
2346
|
-
if (S = this.productions_[w[1]][1], k.$ = d[d.length - S], k._$ = { first_line: p[p.length - (S || 1)].first_line, last_line: p[p.length - 1].last_line, first_column: p[p.length - (S || 1)].first_column, last_column: p[p.length - 1].last_column },
|
|
2347
|
-
return
|
|
2346
|
+
if (S = this.productions_[w[1]][1], k.$ = d[d.length - S], k._$ = { first_line: p[p.length - (S || 1)].first_line, last_line: p[p.length - 1].last_line, first_column: p[p.length - (S || 1)].first_column, last_column: p[p.length - 1].last_column }, F = this.performAction.call(k, h, b, _, this.yy, w[1], d, p), typeof F < "u")
|
|
2347
|
+
return F;
|
|
2348
2348
|
S && (u = u.slice(0, -1 * S * 2), d = d.slice(0, -1 * S), p = p.slice(0, -1 * S)), u.push(this.productions_[w[1]][0]), d.push(k.$), p.push(k._$), M = m[u[u.length - 2]][u[u.length - 1]], u.push(M);
|
|
2349
2349
|
break;
|
|
2350
2350
|
case 3:
|
|
@@ -3425,29 +3425,29 @@ const sendDic = (t) => {
|
|
|
3425
3425
|
const m = "key";
|
|
3426
3426
|
n = n || "";
|
|
3427
3427
|
let h = [];
|
|
3428
|
-
const
|
|
3428
|
+
const _ = {};
|
|
3429
3429
|
return h = n.match(/[^{}]+(?=})/g) || [], h.forEach((b) => {
|
|
3430
|
-
const g = `{{${b}}}`,
|
|
3431
|
-
b === m ? n = n.replace(g, u) : n = n.replace(g,
|
|
3430
|
+
const g = `{{${b}}}`, f = p[b];
|
|
3431
|
+
b === m ? n = n.replace(g, u) : n = n.replace(g, f);
|
|
3432
3432
|
}), a === "post" && (h = Object.keys(s), h.forEach((b) => {
|
|
3433
3433
|
const g = s[b];
|
|
3434
|
-
typeof g == "string" && g.match(/\{{|}}/g) ?
|
|
3434
|
+
typeof g == "string" && g.match(/\{{|}}/g) ? _[b] = p[g.replace(/\{{|}}/g, "")] : _[b] = g;
|
|
3435
3435
|
})), o && (r = (o || {}).res || r), new Promise((b) => {
|
|
3436
|
-
const g = (
|
|
3436
|
+
const g = (f) => {
|
|
3437
3437
|
let v = [];
|
|
3438
|
-
typeof l == "function" ? v = l(
|
|
3438
|
+
typeof l == "function" ? v = l(f.data) : v = getObjValue(f.data, r), b(v);
|
|
3439
3439
|
};
|
|
3440
|
-
a === "post" ? window.axios.post(n,
|
|
3440
|
+
a === "post" ? window.axios.post(n, _, {
|
|
3441
3441
|
headers: c
|
|
3442
|
-
}).then(function(
|
|
3443
|
-
g(
|
|
3442
|
+
}).then(function(f) {
|
|
3443
|
+
g(f);
|
|
3444
3444
|
}).catch(() => [
|
|
3445
3445
|
b([])
|
|
3446
3446
|
]) : window.axios.get(n, {
|
|
3447
3447
|
params: s,
|
|
3448
3448
|
headers: c
|
|
3449
|
-
}).then(function(
|
|
3450
|
-
g(
|
|
3449
|
+
}).then(function(f) {
|
|
3450
|
+
g(f);
|
|
3451
3451
|
}).catch(() => [
|
|
3452
3452
|
b([])
|
|
3453
3453
|
]);
|
|
@@ -3804,22 +3804,22 @@ const Comment = /* @__PURE__ */ function() {
|
|
|
3804
3804
|
async function onClick(t, n, s) {
|
|
3805
3805
|
const { stop: a, prevent: r, message: o, loadable: l, loadingText: c, confirmable: u, confirmType: d, confirmText: p } = n;
|
|
3806
3806
|
a && t.stopPropagation(), r && t.preventDefault();
|
|
3807
|
-
const { before: m, click: h, cancel:
|
|
3807
|
+
const { before: m, click: h, cancel: _, after: b } = s;
|
|
3808
3808
|
if (isFunction(h))
|
|
3809
3809
|
try {
|
|
3810
3810
|
let g = !0;
|
|
3811
3811
|
if (isFunction(m) && (g = await m(t)), g === !1)
|
|
3812
3812
|
return;
|
|
3813
3813
|
u && await MessageBox.confirm(o || p, { type: d });
|
|
3814
|
-
let
|
|
3815
|
-
l && (
|
|
3814
|
+
let f;
|
|
3815
|
+
l && (f = Loading.service({ background: "rgba(0,0,0,0.3)", text: c }));
|
|
3816
3816
|
try {
|
|
3817
3817
|
await h(t);
|
|
3818
3818
|
} catch {
|
|
3819
3819
|
}
|
|
3820
|
-
l &&
|
|
3820
|
+
l && f.close(), isFunction(b) && await b(t);
|
|
3821
3821
|
} catch (g) {
|
|
3822
|
-
isFunction(
|
|
3822
|
+
isFunction(_) && await _(g);
|
|
3823
3823
|
}
|
|
3824
3824
|
}
|
|
3825
3825
|
const confirmableMixin = {
|
|
@@ -6577,253 +6577,120 @@ const DialogFilter = /* @__PURE__ */ function() {
|
|
|
6577
6577
|
}();
|
|
6578
6578
|
var render$2c = function() {
|
|
6579
6579
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
6580
|
-
return
|
|
6580
|
+
return s(t.dialogType, t._b({
|
|
6581
6581
|
tag: "Component",
|
|
6582
|
-
|
|
6583
|
-
"avue-dialog--fullscreen": t.fullscreen
|
|
6584
|
-
}],
|
|
6582
|
+
staticClass: "dialog-form",
|
|
6585
6583
|
attrs: {
|
|
6586
|
-
|
|
6587
|
-
"
|
|
6588
|
-
"
|
|
6589
|
-
"wrapper-closable": t.crud.tableOption.dialogClickModal,
|
|
6590
|
-
direction: t.direction,
|
|
6591
|
-
"custom-class": t.crud.tableOption.dialogCustomClass,
|
|
6592
|
-
"modal-append-to-body": "",
|
|
6593
|
-
"append-to-body": "",
|
|
6594
|
-
top: t.dialogTop,
|
|
6595
|
-
title: t.dialogTitle,
|
|
6596
|
-
"close-on-press-escape": t.crud.tableOption.dialogEscape,
|
|
6597
|
-
"close-on-click-modal": t.optVal(t.crud.tableOption.dialogClickModal, !1),
|
|
6598
|
-
modal: t.crud.tableOption.dialogModal,
|
|
6599
|
-
"show-close": t.crud.tableOption.dialogCloseBtn,
|
|
6600
|
-
visible: t.boxVisible,
|
|
6601
|
-
"before-close": t.hide
|
|
6584
|
+
visible: t.visible,
|
|
6585
|
+
"destroy-on-close": "",
|
|
6586
|
+
"before-close": t.beforeClose
|
|
6602
6587
|
},
|
|
6603
6588
|
on: {
|
|
6604
6589
|
"update:visible": function(a) {
|
|
6605
|
-
t.
|
|
6590
|
+
t.visible = a;
|
|
6606
6591
|
}
|
|
6607
6592
|
}
|
|
6608
|
-
}, "Component", t.
|
|
6609
|
-
ref: "
|
|
6593
|
+
}, "Component", t.dialog, !1), [s("FyForm", {
|
|
6594
|
+
ref: "form",
|
|
6610
6595
|
attrs: {
|
|
6611
|
-
|
|
6612
|
-
|
|
6596
|
+
option: Object.assign({}, t.deepClone(t.option), {
|
|
6597
|
+
menuBtn: !1
|
|
6598
|
+
}),
|
|
6599
|
+
status: t.disabled
|
|
6613
6600
|
},
|
|
6614
6601
|
on: {
|
|
6615
6602
|
"update:status": function(a) {
|
|
6616
6603
|
t.disabled = a;
|
|
6617
6604
|
},
|
|
6618
|
-
change: t.handleChange,
|
|
6619
6605
|
submit: t.handleSubmit,
|
|
6620
|
-
"reset-change": t.
|
|
6621
|
-
"tab-click": t.handleTabClick,
|
|
6622
|
-
error: t.handleError
|
|
6606
|
+
"reset-change": t.close
|
|
6623
6607
|
},
|
|
6624
|
-
scopedSlots: t._u([t._l(t.crud.formSlot, function(a) {
|
|
6625
|
-
return {
|
|
6626
|
-
key: t.getSlotName(a),
|
|
6627
|
-
fn: function(r) {
|
|
6628
|
-
return [t._t(a, null, null, Object.assign(r, {
|
|
6629
|
-
type: t.boxType
|
|
6630
|
-
}))];
|
|
6631
|
-
}
|
|
6632
|
-
};
|
|
6633
|
-
})], null, !0),
|
|
6634
6608
|
model: {
|
|
6635
|
-
value: t.
|
|
6609
|
+
value: t.data,
|
|
6636
6610
|
callback: function(a) {
|
|
6637
|
-
t
|
|
6611
|
+
t.data = a;
|
|
6638
6612
|
},
|
|
6639
|
-
expression: "
|
|
6613
|
+
expression: "data"
|
|
6640
6614
|
}
|
|
6641
|
-
},
|
|
6615
|
+
}), t.isEmpty(t.option.menuBtn, !0) ? s("span", {
|
|
6642
6616
|
staticClass: "avue-dialog__footer",
|
|
6643
|
-
class: `avue-dialog__footer--${t.
|
|
6644
|
-
}, [t.
|
|
6617
|
+
class: `avue-dialog__footer--${t.menuPosition}`
|
|
6618
|
+
}, [t.isEmpty(t.option.submitBtn, !0) ? s("ElButton", {
|
|
6645
6619
|
attrs: {
|
|
6646
|
-
|
|
6647
|
-
size: t.crud.controlSize,
|
|
6620
|
+
size: t.$AVUE.size,
|
|
6648
6621
|
icon: t.option.submitIcon,
|
|
6622
|
+
loading: t.disabled,
|
|
6649
6623
|
type: "primary"
|
|
6650
6624
|
},
|
|
6651
6625
|
on: {
|
|
6652
6626
|
click: t.submit
|
|
6653
6627
|
}
|
|
6654
|
-
}, [t._v(t._s(t.option.submitText))]) : t._e(), t.
|
|
6628
|
+
}, [t._v(t._s(t.option.submitText))]) : t._e(), t.isEmpty(t.option.emptyBtn, !0) ? s("ElButton", {
|
|
6655
6629
|
attrs: {
|
|
6656
6630
|
disabled: t.disabled,
|
|
6657
|
-
size: t.
|
|
6631
|
+
size: t.$AVUE.size,
|
|
6658
6632
|
icon: t.option.emptyIcon
|
|
6659
6633
|
},
|
|
6660
6634
|
on: {
|
|
6661
6635
|
click: t.reset
|
|
6662
6636
|
}
|
|
6663
|
-
}, [t._v(t._s(t.option.emptyText))]) : t._e(), t.
|
|
6664
|
-
disabled: t.disabled,
|
|
6665
|
-
size: t.crud.controlSize,
|
|
6666
|
-
type: t.boxType
|
|
6667
|
-
})], 2)], 1)], 1) : t._e();
|
|
6637
|
+
}, [t._v(t._s(t.option.emptyText))]) : t._e()], 1) : t._e()], 1);
|
|
6668
6638
|
}, staticRenderFns$2c = [];
|
|
6669
|
-
const __vue2_script$2o = {
|
|
6639
|
+
const DialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$2o = {
|
|
6670
6640
|
name: "DialogForm",
|
|
6671
|
-
inject: ["crud"],
|
|
6672
|
-
props: {
|
|
6673
|
-
value: {
|
|
6674
|
-
type: Object,
|
|
6675
|
-
default: () => ({})
|
|
6676
|
-
}
|
|
6677
|
-
},
|
|
6678
6641
|
data() {
|
|
6679
6642
|
return {
|
|
6643
|
+
opt: {},
|
|
6680
6644
|
disabled: !1,
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6645
|
+
callback: null,
|
|
6646
|
+
visible: !1,
|
|
6647
|
+
dialog: {
|
|
6648
|
+
closeOnClickModal: !1
|
|
6649
|
+
},
|
|
6650
|
+
isDrawer: !1,
|
|
6651
|
+
option: {
|
|
6652
|
+
submitText: "提交",
|
|
6653
|
+
emptyText: "关闭",
|
|
6654
|
+
submitIcon: "el-icon-check",
|
|
6655
|
+
emptyIcon: "el-icon-close",
|
|
6656
|
+
column: []
|
|
6657
|
+
},
|
|
6658
|
+
data: {}
|
|
6685
6659
|
};
|
|
6686
6660
|
},
|
|
6687
6661
|
computed: {
|
|
6688
|
-
option() {
|
|
6689
|
-
const t = deepClone(this.crud.tableOption);
|
|
6690
|
-
return t.boxType = this.boxType, t.column = deepClone(this.crud.propOption), t.menuBtn = !1, this.isAdd ? (t.submitBtn = t.saveBtn, t.submitText = this.crud.menuIcon("saveBtn"), t.submitIcon = this.crud.getBtnIcon("saveBtn")) : this.isEdit ? (t.submitBtn = t.updateBtn, t.submitText = this.crud.menuIcon("updateBtn"), t.submitIcon = this.crud.getBtnIcon("updateBtn")) : this.isView && (t.detail = !0), t.emptyBtn = t.cancelBtn, t.emptyText = this.crud.menuIcon("cancelBtn"), t.emptyIcon = this.crud.getBtnIcon("cancelBtn"), this.crud.isGroup || (t.dicFlag = !1, t.dicData = this.crud.DIC), isBlank(t.dicFlag) || t.column.forEach((n) => {
|
|
6691
|
-
n.boxType = this.boxType, n.dicFlag = n.dicFlag || t.dicFlag;
|
|
6692
|
-
}), t;
|
|
6693
|
-
},
|
|
6694
|
-
isView() {
|
|
6695
|
-
return this.boxType === "view";
|
|
6696
|
-
},
|
|
6697
|
-
isAdd() {
|
|
6698
|
-
return this.boxType === "add";
|
|
6699
|
-
},
|
|
6700
|
-
isEdit() {
|
|
6701
|
-
return this.boxType === "edit";
|
|
6702
|
-
},
|
|
6703
|
-
direction() {
|
|
6704
|
-
return this.crud.tableOption.dialogDirection;
|
|
6705
|
-
},
|
|
6706
|
-
width() {
|
|
6707
|
-
return optVal(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${config$1.dialogWidth}`);
|
|
6708
|
-
},
|
|
6709
6662
|
dialogType() {
|
|
6710
6663
|
return this.isDrawer ? "ElDrawer" : "ElementDialog";
|
|
6711
6664
|
},
|
|
6712
|
-
|
|
6713
|
-
return
|
|
6714
|
-
},
|
|
6715
|
-
isDrawer() {
|
|
6716
|
-
return this.crud.tableOption.dialogType === "drawer";
|
|
6717
|
-
},
|
|
6718
|
-
params() {
|
|
6719
|
-
return this.isDrawer ? {
|
|
6720
|
-
size: this.fullscreen ? "100%" : this.width,
|
|
6721
|
-
direction: this.crud.tableOption.dialogDirection
|
|
6722
|
-
} : {
|
|
6723
|
-
width: this.width,
|
|
6724
|
-
fullscreen: this.fullscreen
|
|
6725
|
-
};
|
|
6726
|
-
},
|
|
6727
|
-
dialogTitle() {
|
|
6728
|
-
const t = `${this.boxType}`;
|
|
6729
|
-
if (!isBlank(this.boxType)) {
|
|
6730
|
-
const n = {
|
|
6731
|
-
tipStartTitle: "当前表格已选择",
|
|
6732
|
-
tipEndTitle: "项",
|
|
6733
|
-
editTitle: "编 辑",
|
|
6734
|
-
copyTitle: "复 制",
|
|
6735
|
-
addTitle: "新 增",
|
|
6736
|
-
viewTitle: "查 看",
|
|
6737
|
-
filterTitle: "过滤条件",
|
|
6738
|
-
showTitle: "列显隐"
|
|
6739
|
-
};
|
|
6740
|
-
return this.crud.tableOption[`${t}Title`] || n[`${t}Title`];
|
|
6741
|
-
}
|
|
6742
|
-
return "";
|
|
6743
|
-
},
|
|
6744
|
-
dialogMenuPosition() {
|
|
6745
|
-
return this.crud.option.dialogMenuPosition || "right";
|
|
6665
|
+
menuPosition() {
|
|
6666
|
+
return this.opt.menuPosition || "center";
|
|
6746
6667
|
}
|
|
6747
6668
|
},
|
|
6748
6669
|
methods: {
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
uploadFun,
|
|
6670
|
+
isEmpty,
|
|
6671
|
+
deepClone,
|
|
6752
6672
|
submit() {
|
|
6753
|
-
this.$refs.
|
|
6673
|
+
this.$refs.form.submit();
|
|
6754
6674
|
},
|
|
6755
6675
|
reset() {
|
|
6756
|
-
this.$refs.
|
|
6757
|
-
},
|
|
6758
|
-
getSlotName(t) {
|
|
6759
|
-
return t.replace("Form", "");
|
|
6760
|
-
},
|
|
6761
|
-
initFun() {
|
|
6762
|
-
["clearValidate", "validate", "resetForm", "validateField"].forEach((t) => {
|
|
6763
|
-
this.crud[t] = this.$refs.tableForm[t];
|
|
6764
|
-
});
|
|
6765
|
-
},
|
|
6766
|
-
handleChange() {
|
|
6767
|
-
this.crud.setVal();
|
|
6768
|
-
},
|
|
6769
|
-
handleTabClick(t, n) {
|
|
6770
|
-
this.crud.$emit("tab-click", t, n);
|
|
6771
|
-
},
|
|
6772
|
-
handleFullScreen() {
|
|
6773
|
-
this.isDrawer && (isBlank(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen = !this.fullscreen;
|
|
6774
|
-
},
|
|
6775
|
-
handleError(t) {
|
|
6776
|
-
this.crud.$emit("error", t);
|
|
6777
|
-
},
|
|
6778
|
-
handleSubmit(t, n) {
|
|
6779
|
-
this.isAdd ? this.rowSave(n) : this.isEdit && this.rowUpdate(n);
|
|
6780
|
-
},
|
|
6781
|
-
// 保存
|
|
6782
|
-
rowSave(t) {
|
|
6783
|
-
this.crud.$emit(
|
|
6784
|
-
"row-save",
|
|
6785
|
-
filterParams(this.crud.tableForm),
|
|
6786
|
-
this.closeDialog,
|
|
6787
|
-
t
|
|
6788
|
-
);
|
|
6676
|
+
this.$refs.form.resetForm();
|
|
6789
6677
|
},
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
this.crud.$emit(
|
|
6793
|
-
"row-update",
|
|
6794
|
-
filterParams(this.crud.tableForm),
|
|
6795
|
-
this.crud.tableIndex,
|
|
6796
|
-
this.closeDialog,
|
|
6797
|
-
t
|
|
6798
|
-
);
|
|
6678
|
+
beforeClose(t) {
|
|
6679
|
+
t(), this.close();
|
|
6799
6680
|
},
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
s && s.splice(a, 1, t);
|
|
6805
|
-
} else if (this.isAdd) {
|
|
6806
|
-
const { item: s } = this.crud.findData(t[this.crud.rowParentKey]);
|
|
6807
|
-
s ? (s[this.crud.childrenKey] || this.$set(s, this.crud.childrenKey, []), this.crud.tableOption.lazy && this.$set(s, this.crud.hasChildrenKey, !0), s[this.crud.childrenKey].push(t)) : this.crud.list.push(t);
|
|
6808
|
-
}
|
|
6809
|
-
})(), this.hide();
|
|
6681
|
+
show(t) {
|
|
6682
|
+
this.opt = t, this.callback = t.callback;
|
|
6683
|
+
const n = this.deepClone(t);
|
|
6684
|
+
["callback", "option", "data"].forEach((s) => delete n[s]), this.dialog = Object.assign(this.dialog, n), this.dialog.size = this.dialog.width, this.isDrawer = this.dialog.type === "drawer", this.option = Object.assign(this.option, t.option), this.data = t.data, this.visible = !0;
|
|
6810
6685
|
},
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
t && t(), this.crud.tableIndex = -1, this.crud.tableForm = {}, this.crud.setVal(), this.boxVisible = !1;
|
|
6686
|
+
close() {
|
|
6687
|
+
const t = () => {
|
|
6688
|
+
this.visible = !1, this.$destroy(), this.$el.remove();
|
|
6815
6689
|
};
|
|
6816
|
-
typeof this.
|
|
6690
|
+
typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(t) : t();
|
|
6817
6691
|
},
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
this.boxType = t;
|
|
6821
|
-
const n = () => {
|
|
6822
|
-
this.fullscreen = this.crud.tableOption.dialogFullscreen, this.boxVisible = !0, this.$nextTick(() => {
|
|
6823
|
-
this.initFun();
|
|
6824
|
-
});
|
|
6825
|
-
};
|
|
6826
|
-
typeof this.crud.beforeOpen == "function" ? this.crud.beforeOpen(n, this.boxType) : n();
|
|
6692
|
+
handleSubmit(t, n) {
|
|
6693
|
+
this.callback && this.callback({ data: t, close: this.close, done: n });
|
|
6827
6694
|
}
|
|
6828
6695
|
}
|
|
6829
6696
|
}, __cssModules$2o = {};
|
|
@@ -10908,7 +10775,7 @@ const FormInputTime = /* @__PURE__ */ function() {
|
|
|
10908
10775
|
},
|
|
10909
10776
|
methods: {
|
|
10910
10777
|
renderFormItem() {
|
|
10911
|
-
var k,
|
|
10778
|
+
var k, E, S;
|
|
10912
10779
|
const t = this.$createElement, {
|
|
10913
10780
|
label: n,
|
|
10914
10781
|
labelWidth: s,
|
|
@@ -10922,18 +10789,18 @@ const FormInputTime = /* @__PURE__ */ function() {
|
|
|
10922
10789
|
required: p,
|
|
10923
10790
|
block: m,
|
|
10924
10791
|
half: h,
|
|
10925
|
-
wrapCol:
|
|
10792
|
+
wrapCol: _,
|
|
10926
10793
|
wrapFormItem: b,
|
|
10927
10794
|
disabled: g,
|
|
10928
|
-
formItemConfig:
|
|
10795
|
+
formItemConfig: f,
|
|
10929
10796
|
getRequireRule: v
|
|
10930
10797
|
} = this;
|
|
10931
|
-
let $ = r, y = p, x = p, C = m, w =
|
|
10932
|
-
|
|
10933
|
-
const
|
|
10934
|
-
return g || c != null && c.disabled ? ($ = [], u && !u.required && !((k = u.requiredFields) != null && k.includes(a)) && (x = !1)) : (u && !u.required && !((
|
|
10798
|
+
let $ = r, y = p, x = p, C = m, w = _;
|
|
10799
|
+
f && (hasOwn(f, "block") && (C = f.block), hasOwn(f, "wrapCol") && (w = f.wrapCol));
|
|
10800
|
+
const F = C && h && w ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
10801
|
+
return g || c != null && c.disabled ? ($ = [], u && !u.required && !((k = u.requiredFields) != null && k.includes(a)) && (x = !1)) : (u && !u.required && !((E = u.requiredFields) != null && E.includes(a)) && (y = !1), y && !($ != null && $.length) && a ? $ = [v()] : y || (x = !1, $ && ($ = $.filter((M) => !M.required)))), b ? t("ElFormItem", {
|
|
10935
10802
|
style: {
|
|
10936
|
-
width:
|
|
10803
|
+
width: F
|
|
10937
10804
|
},
|
|
10938
10805
|
key: `${a}-${y}`,
|
|
10939
10806
|
class: x ? `form-item required ${d || ""}` : `${d || ""}`,
|
|
@@ -13961,18 +13828,18 @@ const FyCurd_vue_vue_type_style_index_0_lang = "", __vue2_script$1K = {
|
|
|
13961
13828
|
r[l] = d + a.length;
|
|
13962
13829
|
break;
|
|
13963
13830
|
case "avg":
|
|
13964
|
-
const p = a.map((
|
|
13831
|
+
const p = a.map((_) => Number(_[o.property]));
|
|
13965
13832
|
let m = 1;
|
|
13966
|
-
r[l] = p.reduce((
|
|
13833
|
+
r[l] = p.reduce((_, b) => {
|
|
13967
13834
|
const g = Number(b);
|
|
13968
|
-
return isNaN(g) ?
|
|
13835
|
+
return isNaN(g) ? _ : (_ * (m - 1) + b) / m++;
|
|
13969
13836
|
}, 0), r[l] = d + r[l].toFixed(u);
|
|
13970
13837
|
break;
|
|
13971
13838
|
case "sum":
|
|
13972
|
-
const h = a.map((
|
|
13973
|
-
r[l] = h.reduce((
|
|
13839
|
+
const h = a.map((_) => Number(_[o.property]));
|
|
13840
|
+
r[l] = h.reduce((_, b) => {
|
|
13974
13841
|
const g = Number(b);
|
|
13975
|
-
return isNaN(g) ?
|
|
13842
|
+
return isNaN(g) ? _ : _ + b;
|
|
13976
13843
|
}, 0), r[l] = d + r[l].toFixed(u);
|
|
13977
13844
|
break;
|
|
13978
13845
|
}
|
|
@@ -14114,7 +13981,7 @@ const FyDate = /* @__PURE__ */ function() {
|
|
|
14114
13981
|
}();
|
|
14115
13982
|
var render$1D = function() {
|
|
14116
13983
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
14117
|
-
return t.boxVisible ? s(
|
|
13984
|
+
return t.boxVisible ? s(t.dialogType, t._b({
|
|
14118
13985
|
tag: "Component",
|
|
14119
13986
|
class: {
|
|
14120
13987
|
"dialog-form": !t.isView
|
|
@@ -14201,7 +14068,7 @@ var render$1D = function() {
|
|
|
14201
14068
|
disabled: t.disabled,
|
|
14202
14069
|
size: t.crud.controlSize,
|
|
14203
14070
|
type: t.boxType
|
|
14204
|
-
})], 2)], 1)
|
|
14071
|
+
})], 2)], 1) : t._e();
|
|
14205
14072
|
}, staticRenderFns$1D = [];
|
|
14206
14073
|
const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
|
|
14207
14074
|
name: "FyDialogForm",
|
|
@@ -14215,7 +14082,6 @@ const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
|
|
|
14215
14082
|
data() {
|
|
14216
14083
|
return {
|
|
14217
14084
|
disabled: !1,
|
|
14218
|
-
config: config$1,
|
|
14219
14085
|
boxType: "",
|
|
14220
14086
|
fullscreen: !1,
|
|
14221
14087
|
size: null,
|
|
@@ -14668,12 +14534,12 @@ const FyDraggable_vue_vue_type_style_index_0_lang = "", __vue2_script$1H = {
|
|
|
14668
14534
|
this.moveActive = !0, n === "right" ? (s = !0, a = !1) : n === "left" ? (s = !0, r = !0, l = !0, a = !1) : n === "top" ? (s = !1, a = !0, o = !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, l = !0) : n === "top-right" ? (s = !0, a = !0, o = !0, c = !0) : n === "top-left" && (s = !0, a = !0, r = !0, l = !0, o = !0, c = !0);
|
|
14669
14535
|
const m = p.clientX - u, h = p.clientY - d;
|
|
14670
14536
|
if (u = p.clientX, d = p.clientY, s) {
|
|
14671
|
-
let
|
|
14672
|
-
l && (
|
|
14537
|
+
let _ = m * this.step;
|
|
14538
|
+
l && (_ = -_), r && (this.baseLeft = getFixed(this.baseLeft - _)), this.baseWidth = getFixed(this.baseWidth + _);
|
|
14673
14539
|
}
|
|
14674
14540
|
if (a) {
|
|
14675
|
-
let
|
|
14676
|
-
c && (
|
|
14541
|
+
let _ = h * this.step;
|
|
14542
|
+
c && (_ = -_), o && (this.baseTop = getFixed(this.baseTop - _)), this.baseHeight = getFixed(this.baseHeight + _);
|
|
14677
14543
|
}
|
|
14678
14544
|
}, this.handleClear();
|
|
14679
14545
|
},
|
|
@@ -15156,41 +15022,41 @@ const FyEmpty = /* @__PURE__ */ function() {
|
|
|
15156
15022
|
function c({ en: g }) {
|
|
15157
15023
|
return g ? o.name(!0) : o.cname();
|
|
15158
15024
|
}
|
|
15159
|
-
function u({ max: g, min:
|
|
15025
|
+
function u({ max: g, min: f, precision: v }) {
|
|
15160
15026
|
if (v) {
|
|
15161
|
-
const $ = `${o.float(
|
|
15027
|
+
const $ = `${o.float(f, g, v)}`, y = $.indexOf(".") + 1;
|
|
15162
15028
|
return Number($.substring(0, y + v));
|
|
15163
15029
|
} else
|
|
15164
|
-
return o.integer(
|
|
15030
|
+
return o.integer(f, g);
|
|
15165
15031
|
}
|
|
15166
|
-
function d({ header: g, footer:
|
|
15032
|
+
function d({ header: g, footer: f }) {
|
|
15167
15033
|
let v = o.url();
|
|
15168
15034
|
const $ = v.indexOf("://");
|
|
15169
15035
|
return g === !1 ? v = v.substring($ + 3) : v = `http://${v.substring($ + 3)}`, v;
|
|
15170
15036
|
}
|
|
15171
|
-
function p({ format: g, now:
|
|
15172
|
-
return
|
|
15037
|
+
function p({ format: g, now: f }) {
|
|
15038
|
+
return f ? o.now(g) : o.datetime(g);
|
|
15173
15039
|
}
|
|
15174
|
-
function m({ min: g, max:
|
|
15175
|
-
return o.csentence(g,
|
|
15040
|
+
function m({ min: g, max: f }) {
|
|
15041
|
+
return o.csentence(g, f);
|
|
15176
15042
|
}
|
|
15177
15043
|
function h() {
|
|
15178
15044
|
return o.county(!0);
|
|
15179
15045
|
}
|
|
15180
|
-
function
|
|
15181
|
-
const y =
|
|
15046
|
+
function _({ dic: g, props: f, columnType: v, multiple: $ }) {
|
|
15047
|
+
const y = f.value || "value", x = g.length;
|
|
15182
15048
|
if (["checkbox"].includes(v) || $) {
|
|
15183
15049
|
const C = u({
|
|
15184
15050
|
min: 1,
|
|
15185
15051
|
max: x
|
|
15186
15052
|
}), w = [];
|
|
15187
|
-
for (let
|
|
15053
|
+
for (let F = 0; F < C; F++) {
|
|
15188
15054
|
let k = !0;
|
|
15189
15055
|
for (; k; ) {
|
|
15190
|
-
const
|
|
15056
|
+
const E = u({
|
|
15191
15057
|
min: 0,
|
|
15192
15058
|
max: x - 1
|
|
15193
|
-
}), S = g[
|
|
15059
|
+
}), S = g[E][y];
|
|
15194
15060
|
w.includes(S) || (w.push(S), k = !1);
|
|
15195
15061
|
}
|
|
15196
15062
|
}
|
|
@@ -15205,34 +15071,34 @@ const FyEmpty = /* @__PURE__ */ function() {
|
|
|
15205
15071
|
}
|
|
15206
15072
|
function b() {
|
|
15207
15073
|
Object.keys(t).forEach((g) => {
|
|
15208
|
-
const
|
|
15209
|
-
if (
|
|
15210
|
-
const v =
|
|
15211
|
-
switch (v.dic = typeof
|
|
15074
|
+
const f = t[g];
|
|
15075
|
+
if (f.mock && typeof f.mock == "object") {
|
|
15076
|
+
const v = f.mock;
|
|
15077
|
+
switch (v.dic = typeof f.dicData == "string" ? n[f.dicData] : f.dicData || [], v.props = f.props || {}, v.columnType = f.type, v.multiple = f.multiple, v.type) {
|
|
15212
15078
|
case "name":
|
|
15213
|
-
l[
|
|
15079
|
+
l[f.prop] = c(v);
|
|
15214
15080
|
break;
|
|
15215
15081
|
case "number":
|
|
15216
|
-
l[
|
|
15082
|
+
l[f.prop] = u(v);
|
|
15217
15083
|
break;
|
|
15218
15084
|
case "datetime":
|
|
15219
|
-
l[
|
|
15085
|
+
l[f.prop] = p(v);
|
|
15220
15086
|
break;
|
|
15221
15087
|
case "word":
|
|
15222
|
-
l[
|
|
15088
|
+
l[f.prop] = m(v);
|
|
15223
15089
|
break;
|
|
15224
15090
|
case "url":
|
|
15225
|
-
l[
|
|
15091
|
+
l[f.prop] = d(v);
|
|
15226
15092
|
break;
|
|
15227
15093
|
case "county":
|
|
15228
|
-
l[
|
|
15094
|
+
l[f.prop] = h();
|
|
15229
15095
|
break;
|
|
15230
15096
|
case "dic":
|
|
15231
|
-
l[
|
|
15097
|
+
l[f.prop] = _(v);
|
|
15232
15098
|
break;
|
|
15233
15099
|
}
|
|
15234
15100
|
} else
|
|
15235
|
-
|
|
15101
|
+
f.mock instanceof Function && (l[f.prop] = f.mock(s));
|
|
15236
15102
|
});
|
|
15237
15103
|
}
|
|
15238
15104
|
return b(), l;
|
|
@@ -26542,30 +26408,30 @@ function detailImg(t, n = {}, s) {
|
|
|
26542
26408
|
function m() {
|
|
26543
26409
|
config.text = a || config.text, config.fontFamily = r || config.fontFamily, config.color = o || config.color, config.fontSize = l || config.fontSize, config.opacity = c || config.opacity, config.bottom = u || config.bottom, config.right = d || config.right, config.ratio = p || config.ratio;
|
|
26544
26410
|
}
|
|
26545
|
-
function h(
|
|
26411
|
+
function h(f) {
|
|
26546
26412
|
const v = new Image();
|
|
26547
|
-
v.src =
|
|
26413
|
+
v.src = f, v.onload = function() {
|
|
26548
26414
|
const $ = v.width, y = v.height;
|
|
26549
|
-
|
|
26415
|
+
_($, y), ctx.drawImage(v, 0, 0, $, y), b($, y);
|
|
26550
26416
|
const x = document.getElementById("canvas").toDataURL(t.type, config.ratio), C = dataURLtoFile(x, t.name);
|
|
26551
26417
|
s && s(C);
|
|
26552
26418
|
};
|
|
26553
26419
|
}
|
|
26554
|
-
function f
|
|
26555
|
-
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 =
|
|
26420
|
+
function _(f, v) {
|
|
26421
|
+
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 = f, canvas.height = v;
|
|
26556
26422
|
}
|
|
26557
|
-
function b(
|
|
26558
|
-
const $ = config.text, y = g($,
|
|
26423
|
+
function b(f, v) {
|
|
26424
|
+
const $ = config.text, y = g($, f, v);
|
|
26559
26425
|
ctx.font = `${y.fontSize}px ${config.fontFamily}`, ctx.fillStyle = config.color, ctx.globalAlpha = config.opacity / 100, ctx.fillText($, y.x, y.y);
|
|
26560
26426
|
}
|
|
26561
|
-
function g(
|
|
26427
|
+
function g(f, v, $) {
|
|
26562
26428
|
let y, x;
|
|
26563
26429
|
const w = config.fontSize / configDefault.width * v;
|
|
26564
26430
|
config.bottom ? x = configDefault.height - config.bottom : x = config.top, config.right ? y = configDefault.width - config.right : y = config.left, ctx.font = `${config.fontSize}px ${config.fontFamily}`;
|
|
26565
|
-
const
|
|
26566
|
-
y = y -
|
|
26567
|
-
const k = y / configDefault.width,
|
|
26568
|
-
return y = k * v, x =
|
|
26431
|
+
const F = Number(ctx.measureText(f).width);
|
|
26432
|
+
y = y - F;
|
|
26433
|
+
const k = y / configDefault.width, E = x / configDefault.height;
|
|
26434
|
+
return y = k * v, x = E * $, {
|
|
26569
26435
|
x: y,
|
|
26570
26436
|
y: x,
|
|
26571
26437
|
fontSize: w
|
|
@@ -27001,8 +26867,8 @@ const __vue2_script$U = {
|
|
|
27001
26867
|
const l = new FormData(), c = () => {
|
|
27002
26868
|
const d = (p) => {
|
|
27003
26869
|
let m = this.action;
|
|
27004
|
-
for (const
|
|
27005
|
-
l.append(
|
|
26870
|
+
for (const _ in this.data)
|
|
26871
|
+
l.append(_, this.data[_]);
|
|
27006
26872
|
const h = p || n;
|
|
27007
26873
|
if (l.append(this.fileName, h), this.isQiniuOss) {
|
|
27008
26874
|
if (!window.CryptoJS) {
|
|
@@ -27010,11 +26876,11 @@ const __vue2_script$U = {
|
|
|
27010
26876
|
return;
|
|
27011
26877
|
}
|
|
27012
26878
|
r = this.qiniu || this.$AVUE.qiniu;
|
|
27013
|
-
const
|
|
26879
|
+
const _ = getToken(r.AK, r.SK, {
|
|
27014
26880
|
scope: r.scope,
|
|
27015
26881
|
deadline: new Date().getTime() + r.deadline * 3600
|
|
27016
26882
|
});
|
|
27017
|
-
l.append("token",
|
|
26883
|
+
l.append("token", _), m = r.bucket;
|
|
27018
26884
|
} else if (this.isAliOss) {
|
|
27019
26885
|
if (!window.OSS) {
|
|
27020
26886
|
packages$1.logs("AliOSS"), this.hide();
|
|
@@ -27024,10 +26890,10 @@ const __vue2_script$U = {
|
|
|
27024
26890
|
}
|
|
27025
26891
|
(() => this.isAliOss ? o.put(h.name, h, {
|
|
27026
26892
|
headers: this.headers
|
|
27027
|
-
}) : this.$axios.post(m, l, { headers: a }))().then((
|
|
27028
|
-
this.res = {}, this.isQiniuOss && (
|
|
27029
|
-
}).catch((
|
|
27030
|
-
this.hide(
|
|
26893
|
+
}) : this.$axios.post(m, l, { headers: a }))().then((_) => {
|
|
26894
|
+
this.res = {}, this.isQiniuOss && (_.data.key = r.url + _.data.key), this.res = getAsVal(this.isAliOss ? _ : _.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
|
|
26895
|
+
}).catch((_) => {
|
|
26896
|
+
this.hide(_);
|
|
27031
26897
|
});
|
|
27032
26898
|
};
|
|
27033
26899
|
typeof this.uploadBefore == "function" ? this.uploadBefore(n, d, this.hide, this.column) : d();
|
|
@@ -27855,8 +27721,8 @@ const IframeWindow = /* @__PURE__ */ function() {
|
|
|
27855
27721
|
data: {
|
|
27856
27722
|
option: s
|
|
27857
27723
|
}
|
|
27858
|
-
});
|
|
27859
|
-
return
|
|
27724
|
+
}).$mount();
|
|
27725
|
+
return document.body.appendChild(a.$el), a.show(), a;
|
|
27860
27726
|
};
|
|
27861
27727
|
var render$I = function() {
|
|
27862
27728
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
@@ -28063,8 +27929,8 @@ const ImageCropper = /* @__PURE__ */ function() {
|
|
|
28063
27929
|
}
|
|
28064
27930
|
}, o = new a({
|
|
28065
27931
|
data: r
|
|
28066
|
-
});
|
|
28067
|
-
return
|
|
27932
|
+
}).$mount();
|
|
27933
|
+
return document.body.appendChild(o.$el), o.isShow = !0, o;
|
|
28068
27934
|
};
|
|
28069
27935
|
var render$H = function() {
|
|
28070
27936
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
@@ -28916,9 +28782,9 @@ let Keyboard$1 = class {
|
|
|
28916
28782
|
const u = [], d = [];
|
|
28917
28783
|
for (let h = 0; h < l.length; h++) {
|
|
28918
28784
|
u.push([]), d.push([]), c = l[h];
|
|
28919
|
-
for (let
|
|
28920
|
-
if (c[
|
|
28921
|
-
switch (d[h].push(c[
|
|
28785
|
+
for (let _ = 0; _ < c.length; _++) {
|
|
28786
|
+
if (c[_].length === 1) {
|
|
28787
|
+
switch (d[h].push(c[_].toUpperCase()), c[_]) {
|
|
28922
28788
|
case "`":
|
|
28923
28789
|
u[h].push("~");
|
|
28924
28790
|
continue;
|
|
@@ -28983,29 +28849,29 @@ let Keyboard$1 = class {
|
|
|
28983
28849
|
u[h].push("?");
|
|
28984
28850
|
continue;
|
|
28985
28851
|
}
|
|
28986
|
-
u[h].push(c[
|
|
28852
|
+
u[h].push(c[_].toUpperCase());
|
|
28987
28853
|
continue;
|
|
28988
28854
|
}
|
|
28989
|
-
u[h].push(c[
|
|
28855
|
+
u[h].push(c[_]), d[h].push(c[_]);
|
|
28990
28856
|
}
|
|
28991
28857
|
}
|
|
28992
28858
|
for (let h = 0; h < l.length; h++) {
|
|
28993
28859
|
c = l[h], r += '<div class="akeyboard-keyboard-innerKeys">';
|
|
28994
|
-
for (let
|
|
28995
|
-
r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[
|
|
28860
|
+
for (let _ = 0; _ < c.length; _++)
|
|
28861
|
+
r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[_]}">${c[_]}</div>`;
|
|
28996
28862
|
r += "</div>";
|
|
28997
28863
|
}
|
|
28998
28864
|
r += "</div>", s.innerHTML = r;
|
|
28999
28865
|
let p = !1;
|
|
29000
28866
|
l.forEach((h) => {
|
|
29001
28867
|
h.includes("Shift") && (p = !0);
|
|
29002
|
-
}), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((
|
|
29003
|
-
|
|
28868
|
+
}), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((_) => {
|
|
28869
|
+
_.onclick = function() {
|
|
29004
28870
|
if (!this.isShift) {
|
|
29005
|
-
const
|
|
29006
|
-
if (
|
|
28871
|
+
const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);
|
|
28872
|
+
if (f && f.isCaps)
|
|
29007
28873
|
return;
|
|
29008
|
-
|
|
28874
|
+
_.isShift = !0, _.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
|
|
29009
28875
|
const v = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
29010
28876
|
let $;
|
|
29011
28877
|
for (let y = 0; y < v.length; y++) {
|
|
@@ -29015,24 +28881,24 @@ let Keyboard$1 = class {
|
|
|
29015
28881
|
}
|
|
29016
28882
|
return;
|
|
29017
28883
|
}
|
|
29018
|
-
|
|
28884
|
+
_.isShift = !1, _.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
|
|
29019
28885
|
const b = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
29020
28886
|
let g;
|
|
29021
|
-
for (let
|
|
29022
|
-
g = b[
|
|
28887
|
+
for (let f = 0; f < b.length; f++) {
|
|
28888
|
+
g = b[f];
|
|
29023
28889
|
for (let v = 0; v < g.childNodes.length; v++)
|
|
29024
|
-
g.childNodes[v].innerHTML = l[
|
|
28890
|
+
g.childNodes[v].innerHTML = l[f][v];
|
|
29025
28891
|
}
|
|
29026
28892
|
};
|
|
29027
28893
|
});
|
|
29028
28894
|
let m = !1;
|
|
29029
28895
|
l.forEach((h) => {
|
|
29030
28896
|
h.includes("Caps") && (m = !0);
|
|
29031
|
-
}), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((
|
|
29032
|
-
|
|
28897
|
+
}), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((_) => {
|
|
28898
|
+
_.onclick = function() {
|
|
29033
28899
|
if (!this.isCaps) {
|
|
29034
|
-
const
|
|
29035
|
-
if (
|
|
28900
|
+
const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Shift`);
|
|
28901
|
+
if (f && f.isShift)
|
|
29036
28902
|
return;
|
|
29037
28903
|
this.isCaps = !0, this.classList.add("keyboard-keyboard-keys-focus");
|
|
29038
28904
|
const v = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
@@ -29047,10 +28913,10 @@ let Keyboard$1 = class {
|
|
|
29047
28913
|
this.isCaps = !1, this.classList.remove("keyboard-keyboard-keys-focus");
|
|
29048
28914
|
const b = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
29049
28915
|
let g;
|
|
29050
|
-
for (let
|
|
29051
|
-
g = b[
|
|
28916
|
+
for (let f = 0; f < b.length; f++) {
|
|
28917
|
+
g = b[f];
|
|
29052
28918
|
for (let v = 0; v < g.childNodes.length; v++)
|
|
29053
|
-
g.childNodes[v].innerHTML = l[
|
|
28919
|
+
g.childNodes[v].innerHTML = l[f][v];
|
|
29054
28920
|
}
|
|
29055
28921
|
};
|
|
29056
28922
|
});
|
|
@@ -32225,9 +32091,9 @@ const __vue2_script$l = {
|
|
|
32225
32091
|
let a = 1, r = 30, o = 0;
|
|
32226
32092
|
function l(p, m) {
|
|
32227
32093
|
const h = p.getBoundingClientRect();
|
|
32228
|
-
let
|
|
32229
|
-
return m.targetTouches ? (
|
|
32230
|
-
x: (
|
|
32094
|
+
let _, b;
|
|
32095
|
+
return m.targetTouches ? (_ = m.targetTouches[0].clientX, b = m.targetTouches[0].clientY) : (_ = m.clientX, b = m.clientY), {
|
|
32096
|
+
x: (_ - h.left) * (p.width / h.width),
|
|
32231
32097
|
y: (b - h.top) * (p.height / h.height)
|
|
32232
32098
|
};
|
|
32233
32099
|
}
|
|
@@ -32237,8 +32103,8 @@ const __vue2_script$l = {
|
|
|
32237
32103
|
const m = l(t, p).x, h = l(t, p).y;
|
|
32238
32104
|
if (o === 1) {
|
|
32239
32105
|
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;
|
|
32240
|
-
for (let
|
|
32241
|
-
a = n.linex[
|
|
32106
|
+
for (let _ = 1; _ < n.linex.length; _++)
|
|
32107
|
+
a = n.linex[_], r = n.liney[_], n.linen[_] === 0 ? s.moveTo(a, r) : s.lineTo(a, r);
|
|
32242
32108
|
s.shadowBlur = 10, s.stroke(), s.restore();
|
|
32243
32109
|
}
|
|
32244
32110
|
p.preventDefault();
|
|
@@ -32855,7 +32721,7 @@ const SplitPane = /* @__PURE__ */ function() {
|
|
|
32855
32721
|
}
|
|
32856
32722
|
},
|
|
32857
32723
|
render(t, { props: n, data: s, children: a }) {
|
|
32858
|
-
const { draft: r, doing: o, overdue: l, error: c, done: u, closed: d, status: p, tag: m, size: h, type:
|
|
32724
|
+
const { draft: r, doing: o, overdue: l, error: c, done: u, closed: d, status: p, tag: m, size: h, type: _ } = n, b = {
|
|
32859
32725
|
draft: Array.isArray(r) ? r.includes(p) : r,
|
|
32860
32726
|
doing: Array.isArray(o) ? o.includes(p) : o,
|
|
32861
32727
|
overdue: Array.isArray(l) ? l.includes(p) : l,
|
|
@@ -32866,7 +32732,7 @@ const SplitPane = /* @__PURE__ */ function() {
|
|
|
32866
32732
|
return t(m, s, [
|
|
32867
32733
|
t("span", {
|
|
32868
32734
|
style: { width: h, height: h },
|
|
32869
|
-
class: ["stateful",
|
|
32735
|
+
class: ["stateful", _, b]
|
|
32870
32736
|
}),
|
|
32871
32737
|
a
|
|
32872
32738
|
]);
|
|
@@ -36019,7 +35885,7 @@ function __vue2_injectStyles(t) {
|
|
|
36019
35885
|
}
|
|
36020
35886
|
const Watermark = /* @__PURE__ */ function() {
|
|
36021
35887
|
return __component__.exports;
|
|
36022
|
-
}(), version = "2.7.
|
|
35888
|
+
}(), version = "2.7.17";
|
|
36023
35889
|
function index(t) {
|
|
36024
35890
|
t.component(AddressInput.name, AddressInput), t.component(Affix.name, Affix), 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(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(FyArticle.name, FyArticle), t.component(FyCascader.name, FyCascader), t.component(FyCheckbox.name, FyCheckbox), t.component(FyCode.name, FyCode), 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(FyProgress.name, FyProgress), 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(FyUEditor.name, FyUEditor), 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(ImageCropper.name, ImageCropper), t.component(ImagePreview.name, ImagePreview), 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(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);
|
|
36025
35891
|
}
|