@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/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(f, b) {
115
- return d.call(b), p(f, b);
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 = "", f = 0, b = 0, g = 0, _ = 2, v = 1;
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, E, k = {}, F, S, M, B; ; ) {
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 (F in m[C])
2321
- this.terminals_[F] && F > 2 && B.push("'" + this.terminals_[F] + "'");
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 " + (f + 1) + `:
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 " + (f + 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 });
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, f = this.lexer.yylineno, $ = this.lexer.yylloc, y = l();
2330
+ b = this.lexer.yyleng, h = this.lexer.yytext, _ = this.lexer.yylineno, $ = this.lexer.yylloc, y = l();
2331
2331
  }
2332
- for (; !(_.toString() in m[C]); ) {
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 = _, C = u[u.length - 1], w = m[C] && m[C][_], g = 3;
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, f = this.lexer.yylineno, $ = this.lexer.yylloc, g > 0 && g--);
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 }, E = this.performAction.call(k, h, b, f, this.yy, w[1], d, p), typeof E < "u")
2347
- return E;
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 f = {};
3428
+ const _ = {};
3429
3429
  return h = n.match(/[^{}]+(?=})/g) || [], h.forEach((b) => {
3430
- const g = `{{${b}}}`, _ = p[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) ? f[b] = p[g.replace(/\{{|}}/g, "")] : f[b] = 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(_.data) : v = getObjValue(_.data, r), b(v);
3438
+ typeof l == "function" ? v = l(f.data) : v = getObjValue(f.data, r), b(v);
3439
3439
  };
3440
- a === "post" ? window.axios.post(n, f, {
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: f, after: b } = s;
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 && (_ = Loading.service({ background: "rgba(0,0,0,0.3)", text: c }));
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 && _.close(), isFunction(b) && await b(t);
3820
+ l && f.close(), isFunction(b) && await b(t);
3821
3821
  } catch (g) {
3822
- isFunction(f) && await f(g);
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 t.boxVisible ? s("div", [s(t.dialogType, t._b({
6580
+ return s(t.dialogType, t._b({
6581
6581
  tag: "Component",
6582
- class: ["avue-dialog", "avue-crud__dialog", {
6583
- "avue-dialog--fullscreen": t.fullscreen
6584
- }],
6582
+ staticClass: "dialog-form",
6585
6583
  attrs: {
6586
- "lock-scroll": "",
6587
- "show-full-screen": "",
6588
- "destroy-on-close": t.crud.tableOption.dialogDestroy,
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.boxVisible = a;
6590
+ t.visible = a;
6606
6591
  }
6607
6592
  }
6608
- }, "Component", t.params, !1), [s("FyForm", t._b({
6609
- ref: "tableForm",
6593
+ }, "Component", t.dialog, !1), [s("FyForm", {
6594
+ ref: "form",
6610
6595
  attrs: {
6611
- status: t.disabled,
6612
- option: t.option
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.hide,
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.crud.tableForm,
6609
+ value: t.data,
6636
6610
  callback: function(a) {
6637
- t.$set(t.crud, "tableForm", a);
6611
+ t.data = a;
6638
6612
  },
6639
- expression: "crud.tableForm"
6613
+ expression: "data"
6640
6614
  }
6641
- }, "FyForm", t.uploadFun({}, t.crud), !1)), s("span", {
6615
+ }), t.isEmpty(t.option.menuBtn, !0) ? s("span", {
6642
6616
  staticClass: "avue-dialog__footer",
6643
- class: `avue-dialog__footer--${t.dialogMenuPosition}`
6644
- }, [t.optVal(t.option.submitBtn, !0) && !t.isView ? s("ElButton", {
6617
+ class: `avue-dialog__footer--${t.menuPosition}`
6618
+ }, [t.isEmpty(t.option.submitBtn, !0) ? s("ElButton", {
6645
6619
  attrs: {
6646
- disabled: t.disabled,
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.optVal(t.option.emptyBtn, !0) && !t.isView ? s("ElButton", {
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.crud.controlSize,
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._t("menuForm", null, {
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
- boxType: "",
6682
- fullscreen: !1,
6683
- size: null,
6684
- boxVisible: !1
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
- dialogTop() {
6713
- return !this.isDrawer && !this.fullscreen ? this.crud.tableOption.dialogTop : "0";
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
- isBlank,
6750
- optVal,
6751
- uploadFun,
6670
+ isEmpty,
6671
+ deepClone,
6752
6672
  submit() {
6753
- this.$refs.tableForm.submit();
6673
+ this.$refs.form.submit();
6754
6674
  },
6755
6675
  reset() {
6756
- this.$refs.tableForm.resetForm(!1);
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
- rowUpdate(t) {
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
- closeDialog(t) {
6801
- t = deepClone(t), t && (() => {
6802
- if (this.isEdit) {
6803
- const { parentList: s, index: a } = this.crud.findData(t[this.crud.rowKey]);
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
- hide(t) {
6813
- const n = () => {
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.crud.beforeClose == "function" ? this.crud.beforeClose(n, this.boxType) : n();
6690
+ typeof this.dialog.beforeClose == "function" ? this.dialog.beforeClose(t) : t();
6817
6691
  },
6818
- // 显示表单
6819
- show(t) {
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: "15vh"
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
- return this.fullScreen || (t.marginTop = this.top, this.width && (t.width = this.width)), t;
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, F, S;
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: f,
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 = f;
10932
- _ && (hasOwn(_, "block") && (C = _.block), hasOwn(_, "wrapCol") && (w = _.wrapCol));
10933
- const E = C && h && w ? `calc( 50% - ${this.gutter / 2}px)` : "";
10934
- return g || c != null && c.disabled ? ($ = [], u && !u.required && !((k = u.requiredFields) != null && k.includes(a)) && (x = !1)) : (u && !u.required && !((F = u.requiredFields) != null && F.includes(a)) && (y = !1), y && !($ != null && $.length) && a ? $ = [v()] : y || (x = !1, $ && ($ = $.filter((M) => !M.required)))), b ? t("ElFormItem", {
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: E
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((f) => Number(f[o.property]));
13837
+ const p = a.map((_) => Number(_[o.property]));
13965
13838
  let m = 1;
13966
- r[l] = p.reduce((f, b) => {
13839
+ r[l] = p.reduce((_, b) => {
13967
13840
  const g = Number(b);
13968
- return isNaN(g) ? f : (f * (m - 1) + b) / m++;
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((f) => Number(f[o.property]));
13973
- r[l] = h.reduce((f, b) => {
13845
+ const h = a.map((_) => Number(_[o.property]));
13846
+ r[l] = h.reduce((_, b) => {
13974
13847
  const g = Number(b);
13975
- return isNaN(g) ? f : f + b;
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("div", [s(t.dialogType, t._b({
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)], 1) : t._e();
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 ? this.fullscreen = !1 : this.fullscreen = !0;
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 f = m * this.step;
14672
- l && (f = -f), r && (this.baseLeft = getFixed(this.baseLeft - f)), this.baseWidth = getFixed(this.baseWidth + f);
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 f = h * this.step;
14676
- c && (f = -f), o && (this.baseTop = getFixed(this.baseTop - f)), this.baseHeight = getFixed(this.baseHeight + f);
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: _, precision: v }) {
15031
+ function u({ max: g, min: f, precision: v }) {
15160
15032
  if (v) {
15161
- const $ = `${o.float(_, g, v)}`, y = $.indexOf(".") + 1;
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(_, g);
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 _ ? o.now(g) : o.datetime(g);
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 f({ dic: g, props: _, columnType: v, multiple: $ }) {
15181
- const y = _.value || "value", x = g.length;
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 E = 0; E < C; E++) {
15059
+ for (let F = 0; F < C; F++) {
15188
15060
  let k = !0;
15189
15061
  for (; k; ) {
15190
- const F = u({
15062
+ const E = u({
15191
15063
  min: 0,
15192
15064
  max: x - 1
15193
- }), S = g[F][y];
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 _ = t[g];
15209
- if (_.mock && typeof _.mock == "object") {
15210
- const v = _.mock;
15211
- switch (v.dic = typeof _.dicData == "string" ? n[_.dicData] : _.dicData || [], v.props = _.props || {}, v.columnType = _.type, v.multiple = _.multiple, v.type) {
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[_.prop] = c(v);
15085
+ l[f.prop] = c(v);
15214
15086
  break;
15215
15087
  case "number":
15216
- l[_.prop] = u(v);
15088
+ l[f.prop] = u(v);
15217
15089
  break;
15218
15090
  case "datetime":
15219
- l[_.prop] = p(v);
15091
+ l[f.prop] = p(v);
15220
15092
  break;
15221
15093
  case "word":
15222
- l[_.prop] = m(v);
15094
+ l[f.prop] = m(v);
15223
15095
  break;
15224
15096
  case "url":
15225
- l[_.prop] = d(v);
15097
+ l[f.prop] = d(v);
15226
15098
  break;
15227
15099
  case "county":
15228
- l[_.prop] = h();
15100
+ l[f.prop] = h();
15229
15101
  break;
15230
15102
  case "dic":
15231
- l[_.prop] = f(v);
15103
+ l[f.prop] = _(v);
15232
15104
  break;
15233
15105
  }
15234
15106
  } else
15235
- _.mock instanceof Function && (l[_.prop] = _.mock(s));
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 = _, v.onload = function() {
26419
+ v.src = f, v.onload = function() {
26548
26420
  const $ = v.width, y = v.height;
26549
- f($, y), ctx.drawImage(v, 0, 0, $, y), b($, y);
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(_, v) {
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 = _, canvas.height = v;
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(_, v) {
26558
- const $ = config.text, y = g($, _, v);
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(_, v, $) {
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 E = Number(ctx.measureText(_).width);
26566
- y = y - E;
26567
- const k = y / configDefault.width, F = x / configDefault.height;
26568
- return y = k * v, x = F * $, {
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 f in this.data)
27005
- l.append(f, this.data[f]);
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 f = getToken(r.AK, r.SK, {
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", f), m = r.bucket;
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((f) => {
27028
- this.res = {}, this.isQiniuOss && (f.data.key = r.url + f.data.key), this.res = getAsVal(this.isAliOss ? f : f.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
27029
- }).catch((f) => {
27030
- this.hide(f);
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 a.$mount(), document.body.appendChild(a.$el), a.show(), a;
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 o.$mount(), document.body.appendChild(o.$el), o.isShow = !0, o;
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 f = 0; f < c.length; f++) {
28920
- if (c[f].length === 1) {
28921
- switch (d[h].push(c[f].toUpperCase()), c[f]) {
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[f].toUpperCase());
28858
+ u[h].push(c[_].toUpperCase());
28987
28859
  continue;
28988
28860
  }
28989
- u[h].push(c[f]), d[h].push(c[f]);
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 f = 0; f < c.length; f++)
28995
- r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[f]}">${c[f]}</div>`;
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((f) => {
29003
- f.onclick = function() {
28874
+ }), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((_) => {
28875
+ _.onclick = function() {
29004
28876
  if (!this.isShift) {
29005
- const _ = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);
29006
- if (_ && _.isCaps)
28877
+ const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);
28878
+ if (f && f.isCaps)
29007
28879
  return;
29008
- f.isShift = !0, f.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
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
- f.isShift = !1, f.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
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 _ = 0; _ < b.length; _++) {
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[_][v];
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((f) => {
29032
- f.onclick = function() {
28903
+ }), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((_) => {
28904
+ _.onclick = function() {
29033
28905
  if (!this.isCaps) {
29034
- const _ = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Shift`);
29035
- if (_ && _.isShift)
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 _ = 0; _ < b.length; _++) {
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[_][v];
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 f, b;
32229
- return m.targetTouches ? (f = m.targetTouches[0].clientX, b = m.targetTouches[0].clientY) : (f = m.clientX, b = m.clientY), {
32230
- x: (f - h.left) * (p.width / h.width),
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 f = 1; f < n.linex.length; f++)
32241
- a = n.linex[f], r = n.liney[f], n.linen[f] === 0 ? s.moveTo(a, r) : s.lineTo(a, r);
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: f } = n, b = {
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", f, b]
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.16";
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
  }