@web-utils/component 2.7.16 → 2.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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 = {};
@@ -10908,7 +10775,7 @@ const FormInputTime = /* @__PURE__ */ function() {
10908
10775
  },
10909
10776
  methods: {
10910
10777
  renderFormItem() {
10911
- var k, F, S;
10778
+ var k, E, S;
10912
10779
  const t = this.$createElement, {
10913
10780
  label: n,
10914
10781
  labelWidth: s,
@@ -10922,18 +10789,18 @@ const FormInputTime = /* @__PURE__ */ function() {
10922
10789
  required: p,
10923
10790
  block: m,
10924
10791
  half: h,
10925
- wrapCol: f,
10792
+ wrapCol: _,
10926
10793
  wrapFormItem: b,
10927
10794
  disabled: g,
10928
- formItemConfig: _,
10795
+ formItemConfig: f,
10929
10796
  getRequireRule: v
10930
10797
  } = this;
10931
- let $ = r, y = p, x = p, C = m, w = 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", {
10798
+ let $ = r, y = p, x = p, C = m, w = _;
10799
+ f && (hasOwn(f, "block") && (C = f.block), hasOwn(f, "wrapCol") && (w = f.wrapCol));
10800
+ const F = C && h && w ? `calc( 50% - ${this.gutter / 2}px)` : "";
10801
+ return g || c != null && c.disabled ? ($ = [], u && !u.required && !((k = u.requiredFields) != null && k.includes(a)) && (x = !1)) : (u && !u.required && !((E = u.requiredFields) != null && E.includes(a)) && (y = !1), y && !($ != null && $.length) && a ? $ = [v()] : y || (x = !1, $ && ($ = $.filter((M) => !M.required)))), b ? t("ElFormItem", {
10935
10802
  style: {
10936
- width: E
10803
+ width: F
10937
10804
  },
10938
10805
  key: `${a}-${y}`,
10939
10806
  class: x ? `form-item required ${d || ""}` : `${d || ""}`,
@@ -13961,18 +13828,18 @@ const FyCurd_vue_vue_type_style_index_0_lang = "", __vue2_script$1K = {
13961
13828
  r[l] = d + a.length;
13962
13829
  break;
13963
13830
  case "avg":
13964
- const p = a.map((f) => Number(f[o.property]));
13831
+ const p = a.map((_) => Number(_[o.property]));
13965
13832
  let m = 1;
13966
- r[l] = p.reduce((f, b) => {
13833
+ r[l] = p.reduce((_, b) => {
13967
13834
  const g = Number(b);
13968
- return isNaN(g) ? f : (f * (m - 1) + b) / m++;
13835
+ return isNaN(g) ? _ : (_ * (m - 1) + b) / m++;
13969
13836
  }, 0), r[l] = d + r[l].toFixed(u);
13970
13837
  break;
13971
13838
  case "sum":
13972
- const h = a.map((f) => Number(f[o.property]));
13973
- r[l] = h.reduce((f, b) => {
13839
+ const h = a.map((_) => Number(_[o.property]));
13840
+ r[l] = h.reduce((_, b) => {
13974
13841
  const g = Number(b);
13975
- return isNaN(g) ? f : f + b;
13842
+ return isNaN(g) ? _ : _ + b;
13976
13843
  }, 0), r[l] = d + r[l].toFixed(u);
13977
13844
  break;
13978
13845
  }
@@ -14114,7 +13981,7 @@ const FyDate = /* @__PURE__ */ function() {
14114
13981
  }();
14115
13982
  var render$1D = function() {
14116
13983
  var t = this, n = t.$createElement, s = t._self._c || n;
14117
- return t.boxVisible ? s("div", [s(t.dialogType, t._b({
13984
+ return t.boxVisible ? s(t.dialogType, t._b({
14118
13985
  tag: "Component",
14119
13986
  class: {
14120
13987
  "dialog-form": !t.isView
@@ -14201,7 +14068,7 @@ var render$1D = function() {
14201
14068
  disabled: t.disabled,
14202
14069
  size: t.crud.controlSize,
14203
14070
  type: t.boxType
14204
- })], 2)], 1)], 1) : t._e();
14071
+ })], 2)], 1) : t._e();
14205
14072
  }, staticRenderFns$1D = [];
14206
14073
  const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
14207
14074
  name: "FyDialogForm",
@@ -14215,7 +14082,6 @@ const FyDialogForm_vue_vue_type_style_index_0_lang = "", __vue2_script$1I = {
14215
14082
  data() {
14216
14083
  return {
14217
14084
  disabled: !1,
14218
- config: config$1,
14219
14085
  boxType: "",
14220
14086
  fullscreen: !1,
14221
14087
  size: null,
@@ -14668,12 +14534,12 @@ const FyDraggable_vue_vue_type_style_index_0_lang = "", __vue2_script$1H = {
14668
14534
  this.moveActive = !0, n === "right" ? (s = !0, a = !1) : n === "left" ? (s = !0, r = !0, l = !0, a = !1) : n === "top" ? (s = !1, a = !0, o = !0, c = !0) : n === "bottom" ? (s = !1, a = !0) : n === "bottom-right" ? (s = !0, a = !0) : n === "bottom-left" ? (s = !0, a = !0, r = !0, l = !0) : n === "top-right" ? (s = !0, a = !0, o = !0, c = !0) : n === "top-left" && (s = !0, a = !0, r = !0, l = !0, o = !0, c = !0);
14669
14535
  const m = p.clientX - u, h = p.clientY - d;
14670
14536
  if (u = p.clientX, d = p.clientY, s) {
14671
- let f = m * this.step;
14672
- l && (f = -f), r && (this.baseLeft = getFixed(this.baseLeft - f)), this.baseWidth = getFixed(this.baseWidth + f);
14537
+ let _ = m * this.step;
14538
+ l && (_ = -_), r && (this.baseLeft = getFixed(this.baseLeft - _)), this.baseWidth = getFixed(this.baseWidth + _);
14673
14539
  }
14674
14540
  if (a) {
14675
- let f = h * this.step;
14676
- c && (f = -f), o && (this.baseTop = getFixed(this.baseTop - f)), this.baseHeight = getFixed(this.baseHeight + f);
14541
+ let _ = h * this.step;
14542
+ c && (_ = -_), o && (this.baseTop = getFixed(this.baseTop - _)), this.baseHeight = getFixed(this.baseHeight + _);
14677
14543
  }
14678
14544
  }, this.handleClear();
14679
14545
  },
@@ -15156,41 +15022,41 @@ const FyEmpty = /* @__PURE__ */ function() {
15156
15022
  function c({ en: g }) {
15157
15023
  return g ? o.name(!0) : o.cname();
15158
15024
  }
15159
- function u({ max: g, min: _, precision: v }) {
15025
+ function u({ max: g, min: f, precision: v }) {
15160
15026
  if (v) {
15161
- const $ = `${o.float(_, g, v)}`, y = $.indexOf(".") + 1;
15027
+ const $ = `${o.float(f, g, v)}`, y = $.indexOf(".") + 1;
15162
15028
  return Number($.substring(0, y + v));
15163
15029
  } else
15164
- return o.integer(_, g);
15030
+ return o.integer(f, g);
15165
15031
  }
15166
- function d({ header: g, footer: _ }) {
15032
+ function d({ header: g, footer: f }) {
15167
15033
  let v = o.url();
15168
15034
  const $ = v.indexOf("://");
15169
15035
  return g === !1 ? v = v.substring($ + 3) : v = `http://${v.substring($ + 3)}`, v;
15170
15036
  }
15171
- function p({ format: g, now: _ }) {
15172
- return _ ? o.now(g) : o.datetime(g);
15037
+ function p({ format: g, now: f }) {
15038
+ return f ? o.now(g) : o.datetime(g);
15173
15039
  }
15174
- function m({ min: g, max: _ }) {
15175
- return o.csentence(g, _);
15040
+ function m({ min: g, max: f }) {
15041
+ return o.csentence(g, f);
15176
15042
  }
15177
15043
  function h() {
15178
15044
  return o.county(!0);
15179
15045
  }
15180
- function f({ dic: g, props: _, columnType: v, multiple: $ }) {
15181
- const y = _.value || "value", x = g.length;
15046
+ function _({ dic: g, props: f, columnType: v, multiple: $ }) {
15047
+ const y = f.value || "value", x = g.length;
15182
15048
  if (["checkbox"].includes(v) || $) {
15183
15049
  const C = u({
15184
15050
  min: 1,
15185
15051
  max: x
15186
15052
  }), w = [];
15187
- for (let E = 0; E < C; E++) {
15053
+ for (let F = 0; F < C; F++) {
15188
15054
  let k = !0;
15189
15055
  for (; k; ) {
15190
- const F = u({
15056
+ const E = u({
15191
15057
  min: 0,
15192
15058
  max: x - 1
15193
- }), S = g[F][y];
15059
+ }), S = g[E][y];
15194
15060
  w.includes(S) || (w.push(S), k = !1);
15195
15061
  }
15196
15062
  }
@@ -15205,34 +15071,34 @@ const FyEmpty = /* @__PURE__ */ function() {
15205
15071
  }
15206
15072
  function b() {
15207
15073
  Object.keys(t).forEach((g) => {
15208
- const _ = 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) {
15074
+ const f = t[g];
15075
+ if (f.mock && typeof f.mock == "object") {
15076
+ const v = f.mock;
15077
+ switch (v.dic = typeof f.dicData == "string" ? n[f.dicData] : f.dicData || [], v.props = f.props || {}, v.columnType = f.type, v.multiple = f.multiple, v.type) {
15212
15078
  case "name":
15213
- l[_.prop] = c(v);
15079
+ l[f.prop] = c(v);
15214
15080
  break;
15215
15081
  case "number":
15216
- l[_.prop] = u(v);
15082
+ l[f.prop] = u(v);
15217
15083
  break;
15218
15084
  case "datetime":
15219
- l[_.prop] = p(v);
15085
+ l[f.prop] = p(v);
15220
15086
  break;
15221
15087
  case "word":
15222
- l[_.prop] = m(v);
15088
+ l[f.prop] = m(v);
15223
15089
  break;
15224
15090
  case "url":
15225
- l[_.prop] = d(v);
15091
+ l[f.prop] = d(v);
15226
15092
  break;
15227
15093
  case "county":
15228
- l[_.prop] = h();
15094
+ l[f.prop] = h();
15229
15095
  break;
15230
15096
  case "dic":
15231
- l[_.prop] = f(v);
15097
+ l[f.prop] = _(v);
15232
15098
  break;
15233
15099
  }
15234
15100
  } else
15235
- _.mock instanceof Function && (l[_.prop] = _.mock(s));
15101
+ f.mock instanceof Function && (l[f.prop] = f.mock(s));
15236
15102
  });
15237
15103
  }
15238
15104
  return b(), l;
@@ -26542,30 +26408,30 @@ function detailImg(t, n = {}, s) {
26542
26408
  function m() {
26543
26409
  config.text = a || config.text, config.fontFamily = r || config.fontFamily, config.color = o || config.color, config.fontSize = l || config.fontSize, config.opacity = c || config.opacity, config.bottom = u || config.bottom, config.right = d || config.right, config.ratio = p || config.ratio;
26544
26410
  }
26545
- function h(_) {
26411
+ function h(f) {
26546
26412
  const v = new Image();
26547
- v.src = _, v.onload = function() {
26413
+ v.src = f, v.onload = function() {
26548
26414
  const $ = v.width, y = v.height;
26549
- f($, y), ctx.drawImage(v, 0, 0, $, y), b($, y);
26415
+ _($, y), ctx.drawImage(v, 0, 0, $, y), b($, y);
26550
26416
  const x = document.getElementById("canvas").toDataURL(t.type, config.ratio), C = dataURLtoFile(x, t.name);
26551
26417
  s && s(C);
26552
26418
  };
26553
26419
  }
26554
- function f(_, 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;
26420
+ function _(f, v) {
26421
+ canvas = document.getElementById("canvas"), canvas === null && (canvas = document.createElement("canvas"), canvas.id = "canvas", canvas.className = "avue-canvas", document.body.appendChild(canvas)), ctx = canvas.getContext("2d"), canvas.width = f, canvas.height = v;
26556
26422
  }
26557
- function b(_, v) {
26558
- const $ = config.text, y = g($, _, v);
26423
+ function b(f, v) {
26424
+ const $ = config.text, y = g($, f, v);
26559
26425
  ctx.font = `${y.fontSize}px ${config.fontFamily}`, ctx.fillStyle = config.color, ctx.globalAlpha = config.opacity / 100, ctx.fillText($, y.x, y.y);
26560
26426
  }
26561
- function g(_, v, $) {
26427
+ function g(f, v, $) {
26562
26428
  let y, x;
26563
26429
  const w = config.fontSize / configDefault.width * v;
26564
26430
  config.bottom ? x = configDefault.height - config.bottom : x = config.top, config.right ? y = configDefault.width - config.right : y = config.left, ctx.font = `${config.fontSize}px ${config.fontFamily}`;
26565
- const 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 * $, {
26431
+ const F = Number(ctx.measureText(f).width);
26432
+ y = y - F;
26433
+ const k = y / configDefault.width, E = x / configDefault.height;
26434
+ return y = k * v, x = E * $, {
26569
26435
  x: y,
26570
26436
  y: x,
26571
26437
  fontSize: w
@@ -27001,8 +26867,8 @@ const __vue2_script$U = {
27001
26867
  const l = new FormData(), c = () => {
27002
26868
  const d = (p) => {
27003
26869
  let m = this.action;
27004
- for (const f in this.data)
27005
- l.append(f, this.data[f]);
26870
+ for (const _ in this.data)
26871
+ l.append(_, this.data[_]);
27006
26872
  const h = p || n;
27007
26873
  if (l.append(this.fileName, h), this.isQiniuOss) {
27008
26874
  if (!window.CryptoJS) {
@@ -27010,11 +26876,11 @@ const __vue2_script$U = {
27010
26876
  return;
27011
26877
  }
27012
26878
  r = this.qiniu || this.$AVUE.qiniu;
27013
- const f = getToken(r.AK, r.SK, {
26879
+ const _ = getToken(r.AK, r.SK, {
27014
26880
  scope: r.scope,
27015
26881
  deadline: new Date().getTime() + r.deadline * 3600
27016
26882
  });
27017
- l.append("token", f), m = r.bucket;
26883
+ l.append("token", _), m = r.bucket;
27018
26884
  } else if (this.isAliOss) {
27019
26885
  if (!window.OSS) {
27020
26886
  packages$1.logs("AliOSS"), this.hide();
@@ -27024,10 +26890,10 @@ const __vue2_script$U = {
27024
26890
  }
27025
26891
  (() => this.isAliOss ? o.put(h.name, h, {
27026
26892
  headers: this.headers
27027
- }) : this.$axios.post(m, l, { headers: a }))().then((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);
26893
+ }) : this.$axios.post(m, l, { headers: a }))().then((_) => {
26894
+ this.res = {}, this.isQiniuOss && (_.data.key = r.url + _.data.key), this.res = getAsVal(this.isAliOss ? _ : _.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
26895
+ }).catch((_) => {
26896
+ this.hide(_);
27031
26897
  });
27032
26898
  };
27033
26899
  typeof this.uploadBefore == "function" ? this.uploadBefore(n, d, this.hide, this.column) : d();
@@ -27855,8 +27721,8 @@ const IframeWindow = /* @__PURE__ */ function() {
27855
27721
  data: {
27856
27722
  option: s
27857
27723
  }
27858
- });
27859
- return a.$mount(), document.body.appendChild(a.$el), a.show(), a;
27724
+ }).$mount();
27725
+ return document.body.appendChild(a.$el), a.show(), a;
27860
27726
  };
27861
27727
  var render$I = function() {
27862
27728
  var t = this, n = t.$createElement, s = t._self._c || n;
@@ -28063,8 +27929,8 @@ const ImageCropper = /* @__PURE__ */ function() {
28063
27929
  }
28064
27930
  }, o = new a({
28065
27931
  data: r
28066
- });
28067
- return o.$mount(), document.body.appendChild(o.$el), o.isShow = !0, o;
27932
+ }).$mount();
27933
+ return document.body.appendChild(o.$el), o.isShow = !0, o;
28068
27934
  };
28069
27935
  var render$H = function() {
28070
27936
  var t = this, n = t.$createElement, s = t._self._c || n;
@@ -28916,9 +28782,9 @@ let Keyboard$1 = class {
28916
28782
  const u = [], d = [];
28917
28783
  for (let h = 0; h < l.length; h++) {
28918
28784
  u.push([]), d.push([]), c = l[h];
28919
- for (let f = 0; f < c.length; f++) {
28920
- if (c[f].length === 1) {
28921
- switch (d[h].push(c[f].toUpperCase()), c[f]) {
28785
+ for (let _ = 0; _ < c.length; _++) {
28786
+ if (c[_].length === 1) {
28787
+ switch (d[h].push(c[_].toUpperCase()), c[_]) {
28922
28788
  case "`":
28923
28789
  u[h].push("~");
28924
28790
  continue;
@@ -28983,29 +28849,29 @@ let Keyboard$1 = class {
28983
28849
  u[h].push("?");
28984
28850
  continue;
28985
28851
  }
28986
- u[h].push(c[f].toUpperCase());
28852
+ u[h].push(c[_].toUpperCase());
28987
28853
  continue;
28988
28854
  }
28989
- u[h].push(c[f]), d[h].push(c[f]);
28855
+ u[h].push(c[_]), d[h].push(c[_]);
28990
28856
  }
28991
28857
  }
28992
28858
  for (let h = 0; h < l.length; h++) {
28993
28859
  c = l[h], r += '<div class="akeyboard-keyboard-innerKeys">';
28994
- for (let f = 0; f < c.length; f++)
28995
- r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[f]}">${c[f]}</div>`;
28860
+ for (let _ = 0; _ < c.length; _++)
28861
+ r += `<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-${c[_]}">${c[_]}</div>`;
28996
28862
  r += "</div>";
28997
28863
  }
28998
28864
  r += "</div>", s.innerHTML = r;
28999
28865
  let p = !1;
29000
28866
  l.forEach((h) => {
29001
28867
  h.includes("Shift") && (p = !0);
29002
- }), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((f) => {
29003
- f.onclick = function() {
28868
+ }), p && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Shift`).forEach((_) => {
28869
+ _.onclick = function() {
29004
28870
  if (!this.isShift) {
29005
- const _ = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);
29006
- if (_ && _.isCaps)
28871
+ const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Caps`);
28872
+ if (f && f.isCaps)
29007
28873
  return;
29008
- f.isShift = !0, f.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
28874
+ _.isShift = !0, _.innerHTML = "SHIFT", this.classList.add("keyboard-keyboard-keys-focus");
29009
28875
  const v = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
29010
28876
  let $;
29011
28877
  for (let y = 0; y < v.length; y++) {
@@ -29015,24 +28881,24 @@ let Keyboard$1 = class {
29015
28881
  }
29016
28882
  return;
29017
28883
  }
29018
- f.isShift = !1, f.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
28884
+ _.isShift = !1, _.innerHTML = "Shift", this.classList.remove("keyboard-keyboard-keys-focus");
29019
28885
  const b = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
29020
28886
  let g;
29021
- for (let _ = 0; _ < b.length; _++) {
29022
- g = b[_];
28887
+ for (let f = 0; f < b.length; f++) {
28888
+ g = b[f];
29023
28889
  for (let v = 0; v < g.childNodes.length; v++)
29024
- g.childNodes[v].innerHTML = l[_][v];
28890
+ g.childNodes[v].innerHTML = l[f][v];
29025
28891
  }
29026
28892
  };
29027
28893
  });
29028
28894
  let m = !1;
29029
28895
  l.forEach((h) => {
29030
28896
  h.includes("Caps") && (m = !0);
29031
- }), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((f) => {
29032
- f.onclick = function() {
28897
+ }), m && document.querySelectorAll(`${n.el} .akeyboard-keyboard-keys-Caps`).forEach((_) => {
28898
+ _.onclick = function() {
29033
28899
  if (!this.isCaps) {
29034
- const _ = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Shift`);
29035
- if (_ && _.isShift)
28900
+ const f = document.querySelector(`${n.el} .akeyboard-keyboard-keys-Shift`);
28901
+ if (f && f.isShift)
29036
28902
  return;
29037
28903
  this.isCaps = !0, this.classList.add("keyboard-keyboard-keys-focus");
29038
28904
  const v = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
@@ -29047,10 +28913,10 @@ let Keyboard$1 = class {
29047
28913
  this.isCaps = !1, this.classList.remove("keyboard-keyboard-keys-focus");
29048
28914
  const b = document.querySelectorAll(`${n.el} .akeyboard-keyboard-innerKeys`);
29049
28915
  let g;
29050
- for (let _ = 0; _ < b.length; _++) {
29051
- g = b[_];
28916
+ for (let f = 0; f < b.length; f++) {
28917
+ g = b[f];
29052
28918
  for (let v = 0; v < g.childNodes.length; v++)
29053
- g.childNodes[v].innerHTML = l[_][v];
28919
+ g.childNodes[v].innerHTML = l[f][v];
29054
28920
  }
29055
28921
  };
29056
28922
  });
@@ -32225,9 +32091,9 @@ const __vue2_script$l = {
32225
32091
  let a = 1, r = 30, o = 0;
32226
32092
  function l(p, m) {
32227
32093
  const h = p.getBoundingClientRect();
32228
- let 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),
32094
+ let _, b;
32095
+ return m.targetTouches ? (_ = m.targetTouches[0].clientX, b = m.targetTouches[0].clientY) : (_ = m.clientX, b = m.clientY), {
32096
+ x: (_ - h.left) * (p.width / h.width),
32231
32097
  y: (b - h.top) * (p.height / h.height)
32232
32098
  };
32233
32099
  }
@@ -32237,8 +32103,8 @@ const __vue2_script$l = {
32237
32103
  const m = l(t, p).x, h = l(t, p).y;
32238
32104
  if (o === 1) {
32239
32105
  n.linex.push(m), n.liney.push(h), n.linen.push(1), s.save(), s.translate(s.canvas.width / 2, s.canvas.height / 2), s.translate(-s.canvas.width / 2, -s.canvas.height / 2), s.beginPath(), s.lineWidth = 2;
32240
- for (let 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);
32106
+ for (let _ = 1; _ < n.linex.length; _++)
32107
+ a = n.linex[_], r = n.liney[_], n.linen[_] === 0 ? s.moveTo(a, r) : s.lineTo(a, r);
32242
32108
  s.shadowBlur = 10, s.stroke(), s.restore();
32243
32109
  }
32244
32110
  p.preventDefault();
@@ -32855,7 +32721,7 @@ const SplitPane = /* @__PURE__ */ function() {
32855
32721
  }
32856
32722
  },
32857
32723
  render(t, { props: n, data: s, children: a }) {
32858
- const { draft: r, doing: o, overdue: l, error: c, done: u, closed: d, status: p, tag: m, size: h, type: f } = n, b = {
32724
+ const { draft: r, doing: o, overdue: l, error: c, done: u, closed: d, status: p, tag: m, size: h, type: _ } = n, b = {
32859
32725
  draft: Array.isArray(r) ? r.includes(p) : r,
32860
32726
  doing: Array.isArray(o) ? o.includes(p) : o,
32861
32727
  overdue: Array.isArray(l) ? l.includes(p) : l,
@@ -32866,7 +32732,7 @@ const SplitPane = /* @__PURE__ */ function() {
32866
32732
  return t(m, s, [
32867
32733
  t("span", {
32868
32734
  style: { width: h, height: h },
32869
- class: ["stateful", f, b]
32735
+ class: ["stateful", _, b]
32870
32736
  }),
32871
32737
  a
32872
32738
  ]);
@@ -36019,7 +35885,7 @@ function __vue2_injectStyles(t) {
36019
35885
  }
36020
35886
  const Watermark = /* @__PURE__ */ function() {
36021
35887
  return __component__.exports;
36022
- }(), version = "2.7.16";
35888
+ }(), version = "2.7.17";
36023
35889
  function index(t) {
36024
35890
  t.component(AddressInput.name, AddressInput), t.component(Affix.name, Affix), t.component(AsideMenu.name, AsideMenu), t.component(Avatar.name, Avatar), t.component(AwesomeButton.name, AwesomeButton), t.component(CapsuleTab.name, CapsuleTab), t.component(Card.name, Card), t.component(Carousel.name, Carousel), t.component(Chat.name, Chat), t.component(ChunkFileUploader.name, ChunkFileUploader), t.component(ChunkFileUploaderButton.name, ChunkFileUploaderButton), t.component(ChunkFileUploaderDrop.name, ChunkFileUploaderDrop), t.component(ChunkFileUploaderFile.name, ChunkFileUploaderFile), t.component(ChunkFileUploaderFiles.name, ChunkFileUploaderFiles), t.component(ChunkFileUploaderList.name, ChunkFileUploaderList), t.component(ChunkFileUploaderUnSupport.name, ChunkFileUploaderUnSupport), t.component(CodeMirrorEditor.name, CodeMirrorEditor), t.component(ColorPicker.name, ColorPicker), t.component(Column.name, Column), t.component(ColumnDefault.name, ColumnDefault), t.component(ColumnDynamic.name, ColumnDynamic), t.component(ColumnMenu.name, ColumnMenu), t.component(ColumnSlot.name, ColumnSlot), t.component(Comment.name, Comment), t.component(Confirmable.name, Confirmable), t.component(ConfirmButton.name, ConfirmButton), t.component(ContextMenu.name, ContextMenu), t.component(CountUp.name, CountUp), t.component(CustomScrollbar.name, CustomScrollbar), t.component(DataBox.name, DataBox), t.component(DataCard.name, DataCard), t.component(DataCardtext.name, DataCardtext), t.component(DataDisplay.name, DataDisplay), t.component(DataIcons.name, DataIcons), t.component(DataImgtext.name, DataImgtext), t.component(DataOperatext.name, DataOperatext), t.component(DataPanel.name, DataPanel), t.component(DataPay.name, DataPay), t.component(DataPrice.name, DataPrice), t.component(DataProgress.name, DataProgress), t.component(DataRotate.name, DataRotate), t.component(DataTablePicker.name, DataTablePicker), t.component(DataTabs.name, DataTabs), t.component(DialogColumn.name, DialogColumn), t.component(DialogExcel.name, DialogExcel), t.component(DialogFilter.name, DialogFilter), t.component(DialogForm.name, DialogForm), t.component(DynamicTable.name, DynamicTable), t.component(ECharts.name, ECharts), t.component(EditableProgress.name, EditableProgress), t.component(EditableTree.name, EditableTree), t.component(EgdCollapse.name, EgdCollapse), t.component(EgdCollapseItem.name, EgdCollapseItem), t.component(ElementDialog.name, ElementDialog), t.component(EmptyView.name, EmptyView), t.component(ErrorView.name, ErrorView), t.component(FlexColumn.name, FlexColumn), t.component(FlexItem.name, FlexItem), t.component(FlexRow.name, FlexRow), t.component(FlexScroller.name, FlexScroller), t.component(Flow.name, Flow), t.component(FlowNode.name, FlowNode), t.component(FormButton.name, FormButton), t.component(FormCascader.name, FormCascader), t.component(FormCheckboxGroup.name, FormCheckboxGroup), t.component(FormDatePicker.name, FormDatePicker), t.component(FormGroup.name, FormGroup), t.component(FormHolder.name, FormHolder), t.component(FormInput.name, FormInput), t.component(FormInputEmail.name, FormInputEmail), t.component(FormInputIdCard.name, FormInputIdCard), t.component(FormInputNumber.name, FormInputNumber), t.component(FormInputPhoneNumber.name, FormInputPhoneNumber), t.component(FormInputTime.name, FormInputTime), t.component(FormItem.name, FormItem), t.component(FormItemConfigProvider.name, FormItemConfigProvider), t.component(FormItemGroup.name, FormItemGroup), t.component(FormRadioGroup.name, FormRadioGroup), t.component(FormSelect.name, FormSelect), t.component(FormSwitch.name, FormSwitch), t.component(FormTemp.name, FormTemp), t.component(FormTextarea.name, FormTextarea), t.component(FormView.name, FormView), t.component(FyArray.name, FyArray), t.component(FyArticle.name, FyArticle), t.component(FyCascader.name, FyCascader), t.component(FyCheckbox.name, FyCheckbox), t.component(FyCode.name, FyCode), t.component(FyCurd.name, FyCurd), t.component(FyDate.name, FyDate), t.component(FyDialogForm.name, FyDialogForm), t.component(FyDraggable.name, FyDraggable), t.component(FyDynamic.name, FyDynamic), t.component(FyEmpty.name, FyEmpty), t.component(FyForm.name, FyForm), t.component(FyFormDesign.name, FyFormDesign), t.component(FyFormMenu.name, FyFormMenu), t.component(FyInput.name, FyInput), t.component(FyInputColor.name, FyInputColor), t.component(FyInputIcon.name, FyInputIcon), t.component(FyInputMap.name, FyInputMap), t.component(FyInputNumber.name, FyInputNumber), t.component(FyInputTable.name, FyInputTable), t.component(FyInputTree.name, FyInputTree), t.component(FyProgress.name, FyProgress), t.component(FyRadio.name, FyRadio), t.component(FyRate.name, FyRate), t.component(FySelect.name, FySelect), t.component(FySlider.name, FySlider), t.component(FySwitch.name, FySwitch), t.component(FyTabs.name, FyTabs), t.component(FyTime.name, FyTime), t.component(FyTitle.name, FyTitle), t.component(FyTree.name, FyTree), t.component(FyUEditor.name, FyUEditor), t.component(FyUpload.name, FyUpload), t.component(GuideSteps.name, GuideSteps), t.component(HeaderMenu.name, HeaderMenu), t.component(HeaderSearch.name, HeaderSearch), t.component(IconCard.name, IconCard), t.component(IconTemp.name, IconTemp), t.component(IframeWindow.name, IframeWindow), t.component(ImageCropper.name, ImageCropper), t.component(ImagePreview.name, ImagePreview), t.component(ImageViewer.name, ImageViewer), t.component(InputNumber.name, InputNumber), t.component(InputNumberRange.name, InputNumberRange), t.component(JSXComponent.name, JSXComponent), t.component(KeepViewAlive.name, KeepViewAlive), t.component(Keyboard.name, Keyboard), t.component(License.name, License), t.component(LoadingView.name, LoadingView), t.component(Login.name, Login), t.component(NameAvatar.name, NameAvatar), t.component(NavBar.name, NavBar), t.component(Notice.name, Notice), t.component(NotImplement.name, NotImplement), t.component(Page.name, Page), t.component(PageableTable.name, PageableTable), t.component(PageableView.name, PageableView), t.component(PageHeader.name, PageHeader), t.component(PageIndex.name, PageIndex), t.component(PageIndexTop.name, PageIndexTop), t.component(PageSkeleton.name, PageSkeleton), t.component(PageSkeletonNew.name, PageSkeletonNew), t.component(PhotoSwipe.name, PhotoSwipe), t.component(Queue.name, Queue), t.component(RecordVideo.name, RecordVideo), t.component(ResizeObserver.name, ResizeObserver), t.component(Search.name, Search), t.component(SearchPopover.name, SearchPopover), t.component(Sign.name, Sign), t.component(SignPanel.name, SignPanel), t.component(Skeleton.name, Skeleton), t.component(SplitPane.name, SplitPane), t.component(Stateful.name, Stateful), t.component(StaticPageableTable.name, StaticPageableTable), t.component(Swiper.name, Swiper), t.component(Tab.name, Tab), t.component(TabItem.name, TabItem), t.component(TableColumn.name, TableColumn), t.component(TablePage.name, TablePage), t.component(TableView.name, TableView), t.component(TagRender.name, TagRender), t.component(TextEllipsis.name, TextEllipsis), t.component(TinymceEditor.name, TinymceEditor), t.component(TinymceWrapper.name, TinymceWrapper), t.component(Toolbar.name, Toolbar), t.component(ToolbarButton.name, ToolbarButton), t.component(Trigger.name, Trigger), t.component(Verify.name, Verify), t.component(VueTagsInput.name, VueTagsInput), t.component(Watermark.name, Watermark);
36025
35891
  }