@web-utils/component 2.0.2 → 2.0.4

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.
Files changed (103) hide show
  1. package/dist/chunks/{7af3ceb1.js → 3a79781b.js} +3 -3
  2. package/dist/chunks/{df803484.js → 41a066be.js} +0 -0
  3. package/dist/chunks/{163eed3b.js → 5a78e0db.js} +0 -0
  4. package/dist/chunks/{6499de3a.js → 5d4282fb.js} +0 -0
  5. package/dist/chunks/{a73fe8ee.js → 61ad06b2.js} +0 -0
  6. package/dist/chunks/{86bcadec.js → 76680a03.js} +2 -2
  7. package/dist/chunks/{8bbde9bf.js → 8c0142e0.js} +0 -0
  8. package/dist/chunks/{90bd3d52.js → 97652d86.js} +5 -5
  9. package/dist/chunks/{92404ceb.js → b4acd3a6.js} +3 -3
  10. package/dist/chunks/{2bd4e340.js → f71045fc.js} +0 -0
  11. package/dist/components/address-input/index.js +2 -2
  12. package/dist/components/aside-menu/index.js +1 -1
  13. package/dist/components/awesome-button/index.js +1 -1
  14. package/dist/components/capsule-tab/index.js +1 -1
  15. package/dist/components/chunk-file-uploader/index.js +2 -2
  16. package/dist/components/chunk-file-uploader-button/index.js +2 -2
  17. package/dist/components/chunk-file-uploader-drop/index.js +2 -2
  18. package/dist/components/chunk-file-uploader-file/index.js +3 -3
  19. package/dist/components/chunk-file-uploader-files/index.js +2 -2
  20. package/dist/components/chunk-file-uploader-list/index.js +2 -2
  21. package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
  22. package/dist/components/code-mirror-editor/index.js +1 -1
  23. package/dist/components/color-picker/index.js +1 -1
  24. package/dist/components/confirm-button/index.js +3 -3
  25. package/dist/components/confirmable/index.js +2 -2
  26. package/dist/components/context-menu/index.js +1 -1
  27. package/dist/components/custom-scrollbar/index.js +2 -3
  28. package/dist/components/data-table-picker/index.js +5 -5
  29. package/dist/components/dynamic-table/index.js +6 -6
  30. package/dist/components/e-charts/index.js +1 -1
  31. package/dist/components/editable-progress/index.js +1 -1
  32. package/dist/components/editable-tree/index.js +192 -192
  33. package/dist/components/egd-collapse/index.js +1 -1
  34. package/dist/components/egd-collapse-item/index.js +1 -1
  35. package/dist/components/element-dialog/index.js +7 -6
  36. package/dist/components/empty-view/index.js +2 -2
  37. package/dist/components/error-view/index.js +2 -2
  38. package/dist/components/flex-column/index.js +2 -2
  39. package/dist/components/flex-item/index.js +2 -2
  40. package/dist/components/flex-row/index.js +2 -2
  41. package/dist/components/flex-scroller/index.js +1 -1
  42. package/dist/components/form-button/index.js +2 -2
  43. package/dist/components/form-cascader/index.js +4 -4
  44. package/dist/components/form-checkbox-group/index.js +13 -13
  45. package/dist/components/form-date-picker/index.js +9 -9
  46. package/dist/components/form-holder/index.js +3 -3
  47. package/dist/components/form-input/index.js +3 -3
  48. package/dist/components/form-input-email/index.js +4 -4
  49. package/dist/components/form-input-id-card/index.js +4 -4
  50. package/dist/components/form-input-number/index.js +4 -4
  51. package/dist/components/form-input-phone-number/index.js +4 -4
  52. package/dist/components/form-input-time/index.js +6 -6
  53. package/dist/components/form-item/index.js +4 -5
  54. package/dist/components/form-item-config-provider/index.js +1 -1
  55. package/dist/components/form-item-group/index.js +2 -2
  56. package/dist/components/form-radio-group/index.js +13 -13
  57. package/dist/components/form-select/index.js +14 -14
  58. package/dist/components/form-switch/index.js +3 -3
  59. package/dist/components/form-textarea/index.js +3 -3
  60. package/dist/components/form-view/index.js +7 -7
  61. package/dist/components/guide-steps/index.js +1 -1
  62. package/dist/components/icon-card/index.js +1 -1
  63. package/dist/components/iframe-window/index.js +22 -61
  64. package/dist/components/iframe-window/style.css +1 -1
  65. package/dist/components/input-number/index.js +2 -2
  66. package/dist/components/input-number-range/index.js +2 -2
  67. package/dist/components/keep-view-alive/index.js +1 -1
  68. package/dist/components/loading-view/index.js +2 -2
  69. package/dist/components/nav-bar/index.js +2 -2
  70. package/dist/components/not-implement/index.js +2 -2
  71. package/dist/components/page/index.js +1 -1
  72. package/dist/components/page-header/index.js +2 -2
  73. package/dist/components/page-index/index.js +4 -4
  74. package/dist/components/page-index-top/index.js +3 -3
  75. package/dist/components/page-skeleton/index.js +1 -1
  76. package/dist/components/page-skeleton-new/index.js +4 -4
  77. package/dist/components/pageable-table/index.js +8 -8
  78. package/dist/components/pageable-view/index.js +5 -5
  79. package/dist/components/photo-swipe/index.js +5 -5
  80. package/dist/components/resize-observer/index.js +2 -2
  81. package/dist/components/search-popover/index.js +6 -6
  82. package/dist/components/sign-panel/index.js +11 -11
  83. package/dist/components/split-pane/index.js +1 -1
  84. package/dist/components/stateful/index.js +1 -1
  85. package/dist/components/static-pageable-table/index.js +2 -2
  86. package/dist/components/swiper/index.js +1 -1
  87. package/dist/components/tab/index.js +2 -2
  88. package/dist/components/tab-item/index.js +2 -2
  89. package/dist/components/table-column/index.js +1 -1
  90. package/dist/components/table-view/index.js +12 -12
  91. package/dist/components/tag-render/index.js +3 -3
  92. package/dist/components/tinymce-editor/index.js +3 -3
  93. package/dist/components/tinymce-wrapper/index.js +393 -393
  94. package/dist/components/toolbar/index.js +40 -40
  95. package/dist/components/toolbar-button/index.js +1 -1
  96. package/dist/components/trigger/index.js +1 -1
  97. package/dist/components/vue-tags-input/index.js +3 -3
  98. package/dist/components/watermark/index.js +2 -2
  99. package/dist/components/x-dialog/index.js +6 -6
  100. package/dist/index.css +12 -68
  101. package/dist/index.es.js +617 -656
  102. package/package.json +163 -162
  103. package/web-types.json +18 -2
@@ -1,4 +1,4 @@
1
- import { n } from "../../chunks/6499de3a.js";
1
+ import { n } from "../../chunks/5d4282fb.js";
2
2
  var o = function() {
3
3
  var t = this, e = t.$createElement, i = t._self._c || e;
4
4
  return i("div", {
@@ -46,7 +46,7 @@ var o = function() {
46
46
  return s.stopPropagation(), t.up.apply(null, arguments);
47
47
  }
48
48
  }
49
- }, [t._v("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u624B\u5199\u7B7E\u540D ")])]), i("div", {
49
+ }, [t._v("当前浏览器不支持手写签名 ")])]), i("div", {
50
50
  staticClass: "sign-tool-bar"
51
51
  }, [i("div", {
52
52
  staticClass: "sign-button flex-item",
@@ -58,7 +58,7 @@ var o = function() {
58
58
  }
59
59
  }, [i("i", {
60
60
  staticClass: "fa fa-trash"
61
- }), t._v(" \u6E05\u9664 ")]), i("div", {
61
+ }), t._v(" 清除 ")]), i("div", {
62
62
  staticClass: "sign-button flex-item",
63
63
  staticStyle: {
64
64
  color: "red"
@@ -68,7 +68,7 @@ var o = function() {
68
68
  }
69
69
  }, [i("i", {
70
70
  staticClass: "fa fa-close"
71
- }), t._v(" \u53D6\u6D88 ")]), i("div", {
71
+ }), t._v(" 取消 ")]), i("div", {
72
72
  staticClass: "sign-button flex-item",
73
73
  staticStyle: {
74
74
  color: "orange"
@@ -78,7 +78,7 @@ var o = function() {
78
78
  }
79
79
  }, [i("i", {
80
80
  staticClass: "fa fa-repeat"
81
- }), t._v(" \u64A4\u9500 ")]), i("div", {
81
+ }), t._v(" 撤销 ")]), i("div", {
82
82
  staticClass: "sign-button flex-item",
83
83
  staticStyle: {
84
84
  color: "green"
@@ -88,7 +88,7 @@ var o = function() {
88
88
  }
89
89
  }, [i("i", {
90
90
  staticClass: "fa fa-check"
91
- }), t._v(" \u786E\u5B9A ")])])]), i("div", {
91
+ }), t._v(" 确定 ")])])]), i("div", {
92
92
  directives: [{
93
93
  name: "show",
94
94
  rawName: "v-show",
@@ -106,14 +106,14 @@ var o = function() {
106
106
  staticClass: "sign-image",
107
107
  attrs: {
108
108
  src: t.value,
109
- alt: "\u7B7E\u540D"
109
+ alt: "签名"
110
110
  }
111
111
  }) : t._e(), t.value ? t._e() : i("p", {
112
112
  staticClass: "sign-tips",
113
113
  style: {
114
114
  color: !t.value && t.disabled ? "red" : ""
115
115
  }
116
- }, [t._v(" " + t._s(t.disabled ? "\u672A\u7B7E\u540D" : "\u70B9\u51FB\u8FDB\u884C\u7B7E\u540D") + " ")]), t.disabled ? t._e() : i("i", {
116
+ }, [t._v(" " + t._s(t.disabled ? "未签名" : "点击进行签名") + " ")]), t.disabled ? t._e() : i("i", {
117
117
  staticClass: "el-icon-edit-outline sign-edit-icon"
118
118
  })])]);
119
119
  }, l = [];
@@ -134,7 +134,7 @@ const c = {
134
134
  },
135
135
  text: {
136
136
  type: String,
137
- default: "\u7B7E\u540D\u533A"
137
+ default: "签名区"
138
138
  },
139
139
  fontSize: {
140
140
  type: Number,
@@ -156,7 +156,7 @@ const c = {
156
156
  methods: {
157
157
  init() {
158
158
  if (this.stack = [], this.canvas = this.$refs.canvas, !this.canvas.getContext) {
159
- alert("\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u624B\u5199\u7B7E\u540D");
159
+ alert("当前浏览器不支持手写签名");
160
160
  return;
161
161
  }
162
162
  this.canvasInit();
@@ -176,7 +176,7 @@ const c = {
176
176
  this.ctx = this.canvas.getContext("2d"), this.ctx.lineCap = "round", this.ctx.lineWidth = this.lineWidth, this.ctx.clearRect(0, 0, this.width, this.height), this.blank = this.canvas.toDataURL("image/png");
177
177
  },
178
178
  drawWaterMark() {
179
- this.ctx.font = `${this.fontSize}px bold \u9ED1\u4F53`, this.ctx.fillStyle = "#eee", this.ctx.textAlign = "center", this.ctx.shadowBlur = 1, this.ctx.textBaseline = "middle", this.ctx.fillText(this.text, this.width / 2, this.height / 2);
179
+ this.ctx.font = `${this.fontSize}px bold 黑体`, this.ctx.fillStyle = "#eee", this.ctx.textAlign = "center", this.ctx.shadowBlur = 1, this.ctx.textBaseline = "middle", this.ctx.fillText(this.text, this.width / 2, this.height / 2);
180
180
  },
181
181
  down(t) {
182
182
  this.position(), this.startLine(t.clientX, t.clientY, t), this.target = t.target, this.target.addEventListener("mousemove", this.move), window.addEventListener("mouseup", this.up);
@@ -1,4 +1,4 @@
1
- import { n as h } from "../../chunks/6499de3a.js";
1
+ import { n as h } from "../../chunks/5d4282fb.js";
2
2
  function l(t, e) {
3
3
  for (let s = 0; s < e.length; s++)
4
4
  if (t === e[s])
@@ -1,4 +1,4 @@
1
- import { n as A } from "../../chunks/6499de3a.js";
1
+ import { n as A } from "../../chunks/5d4282fb.js";
2
2
  const v = {
3
3
  name: "Stateful",
4
4
  functional: !0,
@@ -1,5 +1,5 @@
1
1
  import { chunk as n } from "lodash";
2
- import { n as i } from "../../chunks/6499de3a.js";
2
+ import { n as i } from "../../chunks/5d4282fb.js";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, a = e._self._c || t;
5
5
  return a("div", {
@@ -10,7 +10,7 @@ var o = function() {
10
10
  data: e.records
11
11
  }
12
12
  }, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
13
- return [e._v("\u8BF7\u6DFB\u52A0\u8868\u683C\u5217")];
13
+ return [e._v("请添加表格列")];
14
14
  })], 2), a("ElPagination", {
15
15
  attrs: {
16
16
  "current-page": e.page.page,
@@ -1,5 +1,5 @@
1
1
  import { getEleWidth as a } from "@web-utils/core";
2
- import { n as o } from "../../chunks/6499de3a.js";
2
+ import { n as o } from "../../chunks/5d4282fb.js";
3
3
  var h = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;
5
5
  return s("div", {
@@ -1,5 +1,5 @@
1
- import { p as a } from "../../chunks/8bbde9bf.js";
2
- import { n as s } from "../../chunks/6499de3a.js";
1
+ import { p as a } from "../../chunks/8c0142e0.js";
2
+ import { n as s } from "../../chunks/5d4282fb.js";
3
3
  var o = function() {
4
4
  var t = this, r = t.$createElement, e = t._self._c || r;
5
5
  return e("div", {
@@ -1,5 +1,5 @@
1
- import { c as n } from "../../chunks/8bbde9bf.js";
2
- import { n as l } from "../../chunks/6499de3a.js";
1
+ import { c as n } from "../../chunks/8c0142e0.js";
2
+ import { n as l } from "../../chunks/5d4282fb.js";
3
3
  var o = function() {
4
4
  var e = this, t = e.$createElement, a = e._self._c || t;
5
5
  return a("div", {
@@ -1,4 +1,4 @@
1
- import { n as o } from "../../chunks/6499de3a.js";
1
+ import { n as o } from "../../chunks/5d4282fb.js";
2
2
  const i = {
3
3
  props: {
4
4
  type: {
@@ -1,6 +1,6 @@
1
1
  import { isString as o, isArray as d, trace as n, warning as f, merge as i, toStringArray as p, isFunction as u, hasOwn as c } from "@web-utils/core";
2
- import { k as b } from "../../chunks/2bd4e340.js";
3
- import { n as m } from "../../chunks/6499de3a.js";
2
+ import { k as b } from "../../chunks/f71045fc.js";
3
+ import { n as m } from "../../chunks/5d4282fb.js";
4
4
  var _ = function() {
5
5
  var e = this, r = e.$createElement, t = e._self._c || r;
6
6
  return t("div", {
@@ -44,7 +44,7 @@ var _ = function() {
44
44
  staticStyle: {
45
45
  "font-size": "16px"
46
46
  }
47
- }, [e._v(" \u89C6\u56FE\u5BFC\u822A ")]), t("EditableTree", e._g(e._b({
47
+ }, [e._v(" 视图导航 ")]), t("EditableTree", e._g(e._b({
48
48
  ref: "tree",
49
49
  attrs: {
50
50
  readonly: ""
@@ -117,7 +117,7 @@ var _ = function() {
117
117
  gutter: 0
118
118
  }
119
119
  }, [e._t("search-form", function() {
120
- return [t("p", [e._v("\u8BF7\u6DFB\u52A0\u641C\u7D22\u6761\u4EF6\uFF01")])];
120
+ return [t("p", [e._v("请添加搜索条件!")])];
121
121
  })], 2)], 1), t("ElFormItem", {
122
122
  attrs: {
123
123
  "label-width": "0"
@@ -130,14 +130,14 @@ var _ = function() {
130
130
  "native-type": "submit",
131
131
  size: "mini"
132
132
  }
133
- }, [e._v(" \u5F00\u59CB\u641C\u7D22 ")]), t("ElButton", {
133
+ }, [e._v(" 开始搜索 ")]), t("ElButton", {
134
134
  attrs: {
135
135
  size: "mini"
136
136
  },
137
137
  on: {
138
138
  click: e.onClearClick
139
139
  }
140
- }, [e._v(" \u6E05\u9664\u6761\u4EF6 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
140
+ }, [e._v(" 清除条件 ")])], 1)])], 1)], 1)]) : e._e()]), e._t("default")], 2);
141
141
  }, g = [function() {
142
142
  var e = this, r = e.$createElement, t = e._self._c || r;
143
143
  return t("div", {
@@ -150,12 +150,12 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
150
150
  name: "TableView",
151
151
  bus: {
152
152
  reloadTableView(e, r) {
153
- if (!!this._viewIds)
153
+ if (this._viewIds)
154
154
  if (o(e) || d(e)) {
155
155
  let t = e;
156
156
  o(t) && (t = t.split(",")), this._viewIds.some((s) => t.includes(s)) && (r ? this.$refs.tree && (n.call(this.$parent || {}, "reloadTree"), this.refreshTree()) : (n.call(this.$parent || {}, "reloadTable"), this.reloadTable()));
157
157
  } else
158
- f.call(this.$parent || {}, "`viewId`\u7684\u7C7B\u578B\u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u6216\u6570\u7EC4");
158
+ f.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
159
159
  }
160
160
  },
161
161
  props: {
@@ -302,12 +302,12 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
302
302
  const e = this.deleteApi || this.$parent.del;
303
303
  if (!((r = this.toolbarListeners) != null && r.del) && u(e)) {
304
304
  if (!this.selectedRows.length) {
305
- this.$message.warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u8BB0\u5F55\uFF01");
305
+ this.$message.warning("请选择要删除的记录!");
306
306
  return;
307
307
  }
308
308
  await this.$confirm(
309
- `\u60A8\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]\u884C\u8BB0\u5F55\u5417\uFF1F`,
310
- "\u7CFB\u7EDF\u63D0\u793A",
309
+ `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`,
310
+ "系统提示",
311
311
  {
312
312
  type: "warning",
313
313
  modal: !0,
@@ -316,7 +316,7 @@ const w = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
316
316
  beforeClose: async (t, s, l) => {
317
317
  if (t === "confirm")
318
318
  try {
319
- s.confirmButtonLoading = !0, s.confirmButtonText = "\u5220\u9664...", await e.call(this, this.selectedRows.map((a) => a.id).join(",")), this.$message.success("\u5220\u9664\u6210\u529F"), await this.reloadTable(), await this.refreshTree();
319
+ s.confirmButtonLoading = !0, s.confirmButtonText = "删除...", await e.call(this, this.selectedRows.map((a) => a.id).join(",")), this.$message.success("删除成功"), await this.reloadTable(), await this.refreshTree();
320
320
  } catch {
321
321
  }
322
322
  l();
@@ -1,5 +1,5 @@
1
1
  import { hasOwn as r } from "@web-utils/core";
2
- import { n as o } from "../../chunks/6499de3a.js";
2
+ import { n as o } from "../../chunks/5d4282fb.js";
3
3
  var i = function() {
4
4
  var t = this, e = t.$createElement, n = t._self._c || e;
5
5
  return n("div", {
@@ -21,7 +21,7 @@ var i = function() {
21
21
  staticStyle: {
22
22
  color: "#b5b5b5"
23
23
  }
24
- }, [t._v("\u65E0")])], t.enable ? n("ElButton", {
24
+ }, [t._v("")])], t.enable ? n("ElButton", {
25
25
  staticClass: "el-tag el-tag--medium el-tag--light button-new-tag",
26
26
  attrs: {
27
27
  size: "small"
@@ -31,7 +31,7 @@ var i = function() {
31
31
  return t.$emit("add");
32
32
  }
33
33
  }
34
- }, [t._v(" + \u6DFB\u52A0 ")]) : t._e(), t.count ? n("span", {
34
+ }, [t._v(" + 添加 ")]) : t._e(), t.count ? n("span", {
35
35
  staticClass: "tags-count"
36
36
  }, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
37
37
  }, u = [];
@@ -1,4 +1,4 @@
1
- import { n as o } from "../../chunks/6499de3a.js";
1
+ import { n as o } from "../../chunks/5d4282fb.js";
2
2
  var s = function() {
3
3
  var e = this, t = e.$createElement, r = e._self._c || t;
4
4
  return r("div", {
@@ -107,7 +107,7 @@ const l = {
107
107
  value: String,
108
108
  placeholder: {
109
109
  type: String,
110
- default: "\u8BF7\u8F93\u5165..."
110
+ default: "请输入..."
111
111
  },
112
112
  queryParams: Object
113
113
  },
@@ -132,7 +132,7 @@ const l = {
132
132
  },
133
133
  methods: {
134
134
  onEditorBlur() {
135
- this.inputDisabled || !this.hideOnBlur || (this.focus = !1);
135
+ this.inputDisabled || this.hideOnBlur && (this.focus = !1);
136
136
  },
137
137
  getEditor() {
138
138
  return this.$refs.editor.$refs.editor.editor;