@web-utils/component 2.7.16 → 2.7.18
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/element-dialog/index.js +9 -3
- package/dist/components/element-dialog/style.css +1 -1
- package/dist/components/fy-dialog-form/index.js +12 -13
- package/dist/components/image-cropper/index.js +2 -2
- package/dist/components/image-preview/index.js +2 -2
- package/dist/index.css +1 -0
- package/dist/index.es.js +199 -327
- package/package.json +4 -5
- package/web-types.json +11 -21
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 = {};
|
|
@@ -8486,6 +8353,10 @@ const ElementDialog_vue_vue_type_style_index_0_lang = "", defaults = {
|
|
|
8486
8353
|
closeOnPressEscape: {
|
|
8487
8354
|
type: Boolean,
|
|
8488
8355
|
default: !0
|
|
8356
|
+
},
|
|
8357
|
+
maxHeight: {
|
|
8358
|
+
type: String,
|
|
8359
|
+
default: "76vh"
|
|
8489
8360
|
}
|
|
8490
8361
|
}
|
|
8491
8362
|
}, __vue2_script$2h = {
|
|
@@ -8524,7 +8395,7 @@ const ElementDialog_vue_vue_type_style_index_0_lang = "", defaults = {
|
|
|
8524
8395
|
},
|
|
8525
8396
|
top: {
|
|
8526
8397
|
type: String,
|
|
8527
|
-
default: "
|
|
8398
|
+
default: "10vh"
|
|
8528
8399
|
},
|
|
8529
8400
|
beforeClose: {
|
|
8530
8401
|
type: Function
|
|
@@ -8550,8 +8421,10 @@ const ElementDialog_vue_vue_type_style_index_0_lang = "", defaults = {
|
|
|
8550
8421
|
},
|
|
8551
8422
|
computed: {
|
|
8552
8423
|
style() {
|
|
8553
|
-
const t = {
|
|
8554
|
-
|
|
8424
|
+
const t = {
|
|
8425
|
+
maxHeight: "100%"
|
|
8426
|
+
};
|
|
8427
|
+
return this.fullScreen || (t.marginTop = this.top, this.width && (t.width = this.width), t.maxHeight = this.maxHeight), t;
|
|
8555
8428
|
}
|
|
8556
8429
|
},
|
|
8557
8430
|
watch: {
|
|
@@ -10908,7 +10781,7 @@ const FormInputTime = /* @__PURE__ */ function() {
|
|
|
10908
10781
|
},
|
|
10909
10782
|
methods: {
|
|
10910
10783
|
renderFormItem() {
|
|
10911
|
-
var k,
|
|
10784
|
+
var k, E, S;
|
|
10912
10785
|
const t = this.$createElement, {
|
|
10913
10786
|
label: n,
|
|
10914
10787
|
labelWidth: s,
|
|
@@ -10922,18 +10795,18 @@ const FormInputTime = /* @__PURE__ */ function() {
|
|
|
10922
10795
|
required: p,
|
|
10923
10796
|
block: m,
|
|
10924
10797
|
half: h,
|
|
10925
|
-
wrapCol:
|
|
10798
|
+
wrapCol: _,
|
|
10926
10799
|
wrapFormItem: b,
|
|
10927
10800
|
disabled: g,
|
|
10928
|
-
formItemConfig:
|
|
10801
|
+
formItemConfig: f,
|
|
10929
10802
|
getRequireRule: v
|
|
10930
10803
|
} = 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 && !((
|
|
10804
|
+
let $ = r, y = p, x = p, C = m, w = _;
|
|
10805
|
+
f && (hasOwn(f, "block") && (C = f.block), hasOwn(f, "wrapCol") && (w = f.wrapCol));
|
|
10806
|
+
const F = C && h && w ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
10807
|
+
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
10808
|
style: {
|
|
10936
|
-
width:
|
|
10809
|
+
width: F
|
|
10937
10810
|
},
|
|
10938
10811
|
key: `${a}-${y}`,
|
|
10939
10812
|
class: x ? `form-item required ${d || ""}` : `${d || ""}`,
|
|
@@ -13961,18 +13834,18 @@ const FyCurd_vue_vue_type_style_index_0_lang = "", __vue2_script$1K = {
|
|
|
13961
13834
|
r[l] = d + a.length;
|
|
13962
13835
|
break;
|
|
13963
13836
|
case "avg":
|
|
13964
|
-
const p = a.map((
|
|
13837
|
+
const p = a.map((_) => Number(_[o.property]));
|
|
13965
13838
|
let m = 1;
|
|
13966
|
-
r[l] = p.reduce((
|
|
13839
|
+
r[l] = p.reduce((_, b) => {
|
|
13967
13840
|
const g = Number(b);
|
|
13968
|
-
return isNaN(g) ?
|
|
13841
|
+
return isNaN(g) ? _ : (_ * (m - 1) + b) / m++;
|
|
13969
13842
|
}, 0), r[l] = d + r[l].toFixed(u);
|
|
13970
13843
|
break;
|
|
13971
13844
|
case "sum":
|
|
13972
|
-
const h = a.map((
|
|
13973
|
-
r[l] = h.reduce((
|
|
13845
|
+
const h = a.map((_) => Number(_[o.property]));
|
|
13846
|
+
r[l] = h.reduce((_, b) => {
|
|
13974
13847
|
const g = Number(b);
|
|
13975
|
-
return isNaN(g) ?
|
|
13848
|
+
return isNaN(g) ? _ : _ + b;
|
|
13976
13849
|
}, 0), r[l] = d + r[l].toFixed(u);
|
|
13977
13850
|
break;
|
|
13978
13851
|
}
|
|
@@ -14114,7 +13987,7 @@ const FyDate = /* @__PURE__ */ function() {
|
|
|
14114
13987
|
}();
|
|
14115
13988
|
var render$1D = function() {
|
|
14116
13989
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
14117
|
-
return t.boxVisible ? s(
|
|
13990
|
+
return t.boxVisible ? s(t.dialogType, t._b({
|
|
14118
13991
|
tag: "Component",
|
|
14119
13992
|
class: {
|
|
14120
13993
|
"dialog-form": !t.isView
|
|
@@ -14201,7 +14074,7 @@ var render$1D = function() {
|
|
|
14201
14074
|
disabled: t.disabled,
|
|
14202
14075
|
size: t.crud.controlSize,
|
|
14203
14076
|
type: t.boxType
|
|
14204
|
-
})], 2)], 1)
|
|
14077
|
+
})], 2)], 1) : t._e();
|
|
14205
14078
|
}, staticRenderFns$1D = [];
|
|
14206
14079
|
const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
|
|
14207
14080
|
name: "FyDialogForm",
|
|
@@ -14215,7 +14088,6 @@ const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
|
|
|
14215
14088
|
data() {
|
|
14216
14089
|
return {
|
|
14217
14090
|
disabled: !1,
|
|
14218
|
-
config: config$1,
|
|
14219
14091
|
boxType: "",
|
|
14220
14092
|
fullscreen: !1,
|
|
14221
14093
|
size: null,
|
|
@@ -14307,7 +14179,7 @@ const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
|
|
|
14307
14179
|
this.crud.$emit("tab-click", t, n);
|
|
14308
14180
|
},
|
|
14309
14181
|
handleFullScreen() {
|
|
14310
|
-
this.isDrawer && (isBlank(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen
|
|
14182
|
+
this.isDrawer && (isBlank(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen = !this.fullscreen;
|
|
14311
14183
|
},
|
|
14312
14184
|
handleError(t) {
|
|
14313
14185
|
this.crud.$emit("error", t);
|
|
@@ -14668,12 +14540,12 @@ const FyDraggable_vue_vue_type_style_index_0_lang = "", __vue2_script$1H = {
|
|
|
14668
14540
|
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
14541
|
const m = p.clientX - u, h = p.clientY - d;
|
|
14670
14542
|
if (u = p.clientX, d = p.clientY, s) {
|
|
14671
|
-
let
|
|
14672
|
-
l && (
|
|
14543
|
+
let _ = m * this.step;
|
|
14544
|
+
l && (_ = -_), r && (this.baseLeft = getFixed(this.baseLeft - _)), this.baseWidth = getFixed(this.baseWidth + _);
|
|
14673
14545
|
}
|
|
14674
14546
|
if (a) {
|
|
14675
|
-
let
|
|
14676
|
-
c && (
|
|
14547
|
+
let _ = h * this.step;
|
|
14548
|
+
c && (_ = -_), o && (this.baseTop = getFixed(this.baseTop - _)), this.baseHeight = getFixed(this.baseHeight + _);
|
|
14677
14549
|
}
|
|
14678
14550
|
}, this.handleClear();
|
|
14679
14551
|
},
|
|
@@ -15156,41 +15028,41 @@ const FyEmpty = /* @__PURE__ */ function() {
|
|
|
15156
15028
|
function c({ en: g }) {
|
|
15157
15029
|
return g ? o.name(!0) : o.cname();
|
|
15158
15030
|
}
|
|
15159
|
-
function u({ max: g, min:
|
|
15031
|
+
function u({ max: g, min: f, precision: v }) {
|
|
15160
15032
|
if (v) {
|
|
15161
|
-
const $ = `${o.float(
|
|
15033
|
+
const $ = `${o.float(f, g, v)}`, y = $.indexOf(".") + 1;
|
|
15162
15034
|
return Number($.substring(0, y + v));
|
|
15163
15035
|
} else
|
|
15164
|
-
return o.integer(
|
|
15036
|
+
return o.integer(f, g);
|
|
15165
15037
|
}
|
|
15166
|
-
function d({ header: g, footer:
|
|
15038
|
+
function d({ header: g, footer: f }) {
|
|
15167
15039
|
let v = o.url();
|
|
15168
15040
|
const $ = v.indexOf("://");
|
|
15169
15041
|
return g === !1 ? v = v.substring($ + 3) : v = `http://${v.substring($ + 3)}`, v;
|
|
15170
15042
|
}
|
|
15171
|
-
function p({ format: g, now:
|
|
15172
|
-
return
|
|
15043
|
+
function p({ format: g, now: f }) {
|
|
15044
|
+
return f ? o.now(g) : o.datetime(g);
|
|
15173
15045
|
}
|
|
15174
|
-
function m({ min: g, max:
|
|
15175
|
-
return o.csentence(g,
|
|
15046
|
+
function m({ min: g, max: f }) {
|
|
15047
|
+
return o.csentence(g, f);
|
|
15176
15048
|
}
|
|
15177
15049
|
function h() {
|
|
15178
15050
|
return o.county(!0);
|
|
15179
15051
|
}
|
|
15180
|
-
function
|
|
15181
|
-
const y =
|
|
15052
|
+
function _({ dic: g, props: f, columnType: v, multiple: $ }) {
|
|
15053
|
+
const y = f.value || "value", x = g.length;
|
|
15182
15054
|
if (["checkbox"].includes(v) || $) {
|
|
15183
15055
|
const C = u({
|
|
15184
15056
|
min: 1,
|
|
15185
15057
|
max: x
|
|
15186
15058
|
}), w = [];
|
|
15187
|
-
for (let
|
|
15059
|
+
for (let F = 0; F < C; F++) {
|
|
15188
15060
|
let k = !0;
|
|
15189
15061
|
for (; k; ) {
|
|
15190
|
-
const
|
|
15062
|
+
const E = u({
|
|
15191
15063
|
min: 0,
|
|
15192
15064
|
max: x - 1
|
|
15193
|
-
}), S = g[
|
|
15065
|
+
}), S = g[E][y];
|
|
15194
15066
|
w.includes(S) || (w.push(S), k = !1);
|
|
15195
15067
|
}
|
|
15196
15068
|
}
|
|
@@ -15205,34 +15077,34 @@ const FyEmpty = /* @__PURE__ */ function() {
|
|
|
15205
15077
|
}
|
|
15206
15078
|
function b() {
|
|
15207
15079
|
Object.keys(t).forEach((g) => {
|
|
15208
|
-
const
|
|
15209
|
-
if (
|
|
15210
|
-
const v =
|
|
15211
|
-
switch (v.dic = typeof
|
|
15080
|
+
const f = t[g];
|
|
15081
|
+
if (f.mock && typeof f.mock == "object") {
|
|
15082
|
+
const v = f.mock;
|
|
15083
|
+
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
15084
|
case "name":
|
|
15213
|
-
l[
|
|
15085
|
+
l[f.prop] = c(v);
|
|
15214
15086
|
break;
|
|
15215
15087
|
case "number":
|
|
15216
|
-
l[
|
|
15088
|
+
l[f.prop] = u(v);
|
|
15217
15089
|
break;
|
|
15218
15090
|
case "datetime":
|
|
15219
|
-
l[
|
|
15091
|
+
l[f.prop] = p(v);
|
|
15220
15092
|
break;
|
|
15221
15093
|
case "word":
|
|
15222
|
-
l[
|
|
15094
|
+
l[f.prop] = m(v);
|
|
15223
15095
|
break;
|
|
15224
15096
|
case "url":
|
|
15225
|
-
l[
|
|
15097
|
+
l[f.prop] = d(v);
|
|
15226
15098
|
break;
|
|
15227
15099
|
case "county":
|
|
15228
|
-
l[
|
|
15100
|
+
l[f.prop] = h();
|
|
15229
15101
|
break;
|
|
15230
15102
|
case "dic":
|
|
15231
|
-
l[
|
|
15103
|
+
l[f.prop] = _(v);
|
|
15232
15104
|
break;
|
|
15233
15105
|
}
|
|
15234
15106
|
} else
|
|
15235
|
-
|
|
15107
|
+
f.mock instanceof Function && (l[f.prop] = f.mock(s));
|
|
15236
15108
|
});
|
|
15237
15109
|
}
|
|
15238
15110
|
return b(), l;
|
|
@@ -26542,30 +26414,30 @@ function detailImg(t, n = {}, s) {
|
|
|
26542
26414
|
function m() {
|
|
26543
26415
|
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
26416
|
}
|
|
26545
|
-
function h(
|
|
26417
|
+
function h(f) {
|
|
26546
26418
|
const v = new Image();
|
|
26547
|
-
v.src =
|
|
26419
|
+
v.src = f, v.onload = function() {
|
|
26548
26420
|
const $ = v.width, y = v.height;
|
|
26549
|
-
|
|
26421
|
+
_($, y), ctx.drawImage(v, 0, 0, $, y), b($, y);
|
|
26550
26422
|
const x = document.getElementById("canvas").toDataURL(t.type, config.ratio), C = dataURLtoFile(x, t.name);
|
|
26551
26423
|
s && s(C);
|
|
26552
26424
|
};
|
|
26553
26425
|
}
|
|
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 =
|
|
26426
|
+
function _(f, v) {
|
|
26427
|
+
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
26428
|
}
|
|
26557
|
-
function b(
|
|
26558
|
-
const $ = config.text, y = g($,
|
|
26429
|
+
function b(f, v) {
|
|
26430
|
+
const $ = config.text, y = g($, f, v);
|
|
26559
26431
|
ctx.font = `${y.fontSize}px ${config.fontFamily}`, ctx.fillStyle = config.color, ctx.globalAlpha = config.opacity / 100, ctx.fillText($, y.x, y.y);
|
|
26560
26432
|
}
|
|
26561
|
-
function g(
|
|
26433
|
+
function g(f, v, $) {
|
|
26562
26434
|
let y, x;
|
|
26563
26435
|
const w = config.fontSize / configDefault.width * v;
|
|
26564
26436
|
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 =
|
|
26437
|
+
const F = Number(ctx.measureText(f).width);
|
|
26438
|
+
y = y - F;
|
|
26439
|
+
const k = y / configDefault.width, E = x / configDefault.height;
|
|
26440
|
+
return y = k * v, x = E * $, {
|
|
26569
26441
|
x: y,
|
|
26570
26442
|
y: x,
|
|
26571
26443
|
fontSize: w
|
|
@@ -27001,8 +26873,8 @@ const __vue2_script$U = {
|
|
|
27001
26873
|
const l = new FormData(), c = () => {
|
|
27002
26874
|
const d = (p) => {
|
|
27003
26875
|
let m = this.action;
|
|
27004
|
-
for (const
|
|
27005
|
-
l.append(
|
|
26876
|
+
for (const _ in this.data)
|
|
26877
|
+
l.append(_, this.data[_]);
|
|
27006
26878
|
const h = p || n;
|
|
27007
26879
|
if (l.append(this.fileName, h), this.isQiniuOss) {
|
|
27008
26880
|
if (!window.CryptoJS) {
|
|
@@ -27010,11 +26882,11 @@ const __vue2_script$U = {
|
|
|
27010
26882
|
return;
|
|
27011
26883
|
}
|
|
27012
26884
|
r = this.qiniu || this.$AVUE.qiniu;
|
|
27013
|
-
const
|
|
26885
|
+
const _ = getToken(r.AK, r.SK, {
|
|
27014
26886
|
scope: r.scope,
|
|
27015
26887
|
deadline: new Date().getTime() + r.deadline * 3600
|
|
27016
26888
|
});
|
|
27017
|
-
l.append("token",
|
|
26889
|
+
l.append("token", _), m = r.bucket;
|
|
27018
26890
|
} else if (this.isAliOss) {
|
|
27019
26891
|
if (!window.OSS) {
|
|
27020
26892
|
packages$1.logs("AliOSS"), this.hide();
|
|
@@ -27024,10 +26896,10 @@ const __vue2_script$U = {
|
|
|
27024
26896
|
}
|
|
27025
26897
|
(() => this.isAliOss ? o.put(h.name, h, {
|
|
27026
26898
|
headers: this.headers
|
|
27027
|
-
}) : this.$axios.post(m, l, { headers: a }))().then((
|
|
27028
|
-
this.res = {}, this.isQiniuOss && (
|
|
27029
|
-
}).catch((
|
|
27030
|
-
this.hide(
|
|
26899
|
+
}) : this.$axios.post(m, l, { headers: a }))().then((_) => {
|
|
26900
|
+
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();
|
|
26901
|
+
}).catch((_) => {
|
|
26902
|
+
this.hide(_);
|
|
27031
26903
|
});
|
|
27032
26904
|
};
|
|
27033
26905
|
typeof this.uploadBefore == "function" ? this.uploadBefore(n, d, this.hide, this.column) : d();
|
|
@@ -27855,8 +27727,8 @@ const IframeWindow = /* @__PURE__ */ function() {
|
|
|
27855
27727
|
data: {
|
|
27856
27728
|
option: s
|
|
27857
27729
|
}
|
|
27858
|
-
});
|
|
27859
|
-
return
|
|
27730
|
+
}).$mount();
|
|
27731
|
+
return document.body.appendChild(a.$el), a.show(), a;
|
|
27860
27732
|
};
|
|
27861
27733
|
var render$I = function() {
|
|
27862
27734
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
@@ -28063,8 +27935,8 @@ const ImageCropper = /* @__PURE__ */ function() {
|
|
|
28063
27935
|
}
|
|
28064
27936
|
}, o = new a({
|
|
28065
27937
|
data: r
|
|
28066
|
-
});
|
|
28067
|
-
return
|
|
27938
|
+
}).$mount();
|
|
27939
|
+
return document.body.appendChild(o.$el), o.isShow = !0, o;
|
|
28068
27940
|
};
|
|
28069
27941
|
var render$H = function() {
|
|
28070
27942
|
var t = this, n = t.$createElement, s = t._self._c || n;
|
|
@@ -28916,9 +28788,9 @@ let Keyboard$1 = class {
|
|
|
28916
28788
|
const u = [], d = [];
|
|
28917
28789
|
for (let h = 0; h < l.length; h++) {
|
|
28918
28790
|
u.push([]), d.push([]), c = l[h];
|
|
28919
|
-
for (let
|
|
28920
|
-
if (c[
|
|
28921
|
-
switch (d[h].push(c[
|
|
28791
|
+
for (let _ = 0; _ < c.length; _++) {
|
|
28792
|
+
if (c[_].length === 1) {
|
|
28793
|
+
switch (d[h].push(c[_].toUpperCase()), c[_]) {
|
|
28922
28794
|
case "`":
|
|
28923
28795
|
u[h].push("~");
|
|
28924
28796
|
continue;
|
|
@@ -28983,29 +28855,29 @@ let Keyboard$1 = class {
|
|
|
28983
28855
|
u[h].push("?");
|
|
28984
28856
|
continue;
|
|
28985
28857
|
}
|
|
28986
|
-
u[h].push(c[
|
|
28858
|
+
u[h].push(c[_].toUpperCase());
|
|
28987
28859
|
continue;
|
|
28988
28860
|
}
|
|
28989
|
-
u[h].push(c[
|
|
28861
|
+
u[h].push(c[_]), d[h].push(c[_]);
|
|
28990
28862
|
}
|
|
28991
28863
|
}
|
|
28992
28864
|
for (let h = 0; h < l.length; h++) {
|
|
28993
28865
|
c = l[h], r += '<div class="akeyboard-keyboard-innerKeys">';
|
|
28994
|
-
for (let
|
|
28995
|
-
r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[
|
|
28866
|
+
for (let _ = 0; _ < c.length; _++)
|
|
28867
|
+
r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[_]}">${c[_]}</div>`;
|
|
28996
28868
|
r += "</div>";
|
|
28997
28869
|
}
|
|
28998
28870
|
r += "</div>", s.innerHTML = r;
|
|
28999
28871
|
let p = !1;
|
|
29000
28872
|
l.forEach((h) => {
|
|
29001
28873
|
h.includes("Shift") && (p = !0);
|
|
29002
|
-
}), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((
|
|
29003
|
-
|
|
28874
|
+
}), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((_) => {
|
|
28875
|
+
_.onclick = function() {
|
|
29004
28876
|
if (!this.isShift) {
|
|
29005
|
-
const
|
|
29006
|
-
if (
|
|
28877
|
+
const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);
|
|
28878
|
+
if (f && f.isCaps)
|
|
29007
28879
|
return;
|
|
29008
|
-
|
|
28880
|
+
_.isShift = !0, _.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
|
|
29009
28881
|
const v = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
29010
28882
|
let $;
|
|
29011
28883
|
for (let y = 0; y < v.length; y++) {
|
|
@@ -29015,24 +28887,24 @@ let Keyboard$1 = class {
|
|
|
29015
28887
|
}
|
|
29016
28888
|
return;
|
|
29017
28889
|
}
|
|
29018
|
-
|
|
28890
|
+
_.isShift = !1, _.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
|
|
29019
28891
|
const b = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
29020
28892
|
let g;
|
|
29021
|
-
for (let
|
|
29022
|
-
g = b[
|
|
28893
|
+
for (let f = 0; f < b.length; f++) {
|
|
28894
|
+
g = b[f];
|
|
29023
28895
|
for (let v = 0; v < g.childNodes.length; v++)
|
|
29024
|
-
g.childNodes[v].innerHTML = l[
|
|
28896
|
+
g.childNodes[v].innerHTML = l[f][v];
|
|
29025
28897
|
}
|
|
29026
28898
|
};
|
|
29027
28899
|
});
|
|
29028
28900
|
let m = !1;
|
|
29029
28901
|
l.forEach((h) => {
|
|
29030
28902
|
h.includes("Caps") && (m = !0);
|
|
29031
|
-
}), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((
|
|
29032
|
-
|
|
28903
|
+
}), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((_) => {
|
|
28904
|
+
_.onclick = function() {
|
|
29033
28905
|
if (!this.isCaps) {
|
|
29034
|
-
const
|
|
29035
|
-
if (
|
|
28906
|
+
const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Shift`);
|
|
28907
|
+
if (f && f.isShift)
|
|
29036
28908
|
return;
|
|
29037
28909
|
this.isCaps = !0, this.classList.add("keyboard-keyboard-keys-focus");
|
|
29038
28910
|
const v = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
@@ -29047,10 +28919,10 @@ let Keyboard$1 = class {
|
|
|
29047
28919
|
this.isCaps = !1, this.classList.remove("keyboard-keyboard-keys-focus");
|
|
29048
28920
|
const b = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
|
|
29049
28921
|
let g;
|
|
29050
|
-
for (let
|
|
29051
|
-
g = b[
|
|
28922
|
+
for (let f = 0; f < b.length; f++) {
|
|
28923
|
+
g = b[f];
|
|
29052
28924
|
for (let v = 0; v < g.childNodes.length; v++)
|
|
29053
|
-
g.childNodes[v].innerHTML = l[
|
|
28925
|
+
g.childNodes[v].innerHTML = l[f][v];
|
|
29054
28926
|
}
|
|
29055
28927
|
};
|
|
29056
28928
|
});
|
|
@@ -32225,9 +32097,9 @@ const __vue2_script$l = {
|
|
|
32225
32097
|
let a = 1, r = 30, o = 0;
|
|
32226
32098
|
function l(p, m) {
|
|
32227
32099
|
const h = p.getBoundingClientRect();
|
|
32228
|
-
let
|
|
32229
|
-
return m.targetTouches ? (
|
|
32230
|
-
x: (
|
|
32100
|
+
let _, b;
|
|
32101
|
+
return m.targetTouches ? (_ = m.targetTouches[0].clientX, b = m.targetTouches[0].clientY) : (_ = m.clientX, b = m.clientY), {
|
|
32102
|
+
x: (_ - h.left) * (p.width / h.width),
|
|
32231
32103
|
y: (b - h.top) * (p.height / h.height)
|
|
32232
32104
|
};
|
|
32233
32105
|
}
|
|
@@ -32237,8 +32109,8 @@ const __vue2_script$l = {
|
|
|
32237
32109
|
const m = l(t, p).x, h = l(t, p).y;
|
|
32238
32110
|
if (o === 1) {
|
|
32239
32111
|
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[
|
|
32112
|
+
for (let _ = 1; _ < n.linex.length; _++)
|
|
32113
|
+
a = n.linex[_], r = n.liney[_], n.linen[_] === 0 ? s.moveTo(a, r) : s.lineTo(a, r);
|
|
32242
32114
|
s.shadowBlur = 10, s.stroke(), s.restore();
|
|
32243
32115
|
}
|
|
32244
32116
|
p.preventDefault();
|
|
@@ -32855,7 +32727,7 @@ const SplitPane = /* @__PURE__ */ function() {
|
|
|
32855
32727
|
}
|
|
32856
32728
|
},
|
|
32857
32729
|
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:
|
|
32730
|
+
const { draft: r, doing: o, overdue: l, error: c, done: u, closed: d, status: p, tag: m, size: h, type: _ } = n, b = {
|
|
32859
32731
|
draft: Array.isArray(r) ? r.includes(p) : r,
|
|
32860
32732
|
doing: Array.isArray(o) ? o.includes(p) : o,
|
|
32861
32733
|
overdue: Array.isArray(l) ? l.includes(p) : l,
|
|
@@ -32866,7 +32738,7 @@ const SplitPane = /* @__PURE__ */ function() {
|
|
|
32866
32738
|
return t(m, s, [
|
|
32867
32739
|
t("span", {
|
|
32868
32740
|
style: { width: h, height: h },
|
|
32869
|
-
class: ["stateful",
|
|
32741
|
+
class: ["stateful", _, b]
|
|
32870
32742
|
}),
|
|
32871
32743
|
a
|
|
32872
32744
|
]);
|
|
@@ -36019,7 +35891,7 @@ function __vue2_injectStyles(t) {
|
|
|
36019
35891
|
}
|
|
36020
35892
|
const Watermark = /* @__PURE__ */ function() {
|
|
36021
35893
|
return __component__.exports;
|
|
36022
|
-
}(), version = "2.7.
|
|
35894
|
+
}(), version = "2.7.18";
|
|
36023
35895
|
function index(t) {
|
|
36024
35896
|
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
35897
|
}
|