@web-utils/component 2.0.2 → 2.0.3

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 (102) 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 +4 -4
  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 +3 -3
  64. package/dist/components/input-number/index.js +2 -2
  65. package/dist/components/input-number-range/index.js +2 -2
  66. package/dist/components/keep-view-alive/index.js +1 -1
  67. package/dist/components/loading-view/index.js +2 -2
  68. package/dist/components/nav-bar/index.js +2 -2
  69. package/dist/components/not-implement/index.js +2 -2
  70. package/dist/components/page/index.js +1 -1
  71. package/dist/components/page-header/index.js +2 -2
  72. package/dist/components/page-index/index.js +4 -4
  73. package/dist/components/page-index-top/index.js +3 -3
  74. package/dist/components/page-skeleton/index.js +1 -1
  75. package/dist/components/page-skeleton-new/index.js +4 -4
  76. package/dist/components/pageable-table/index.js +8 -8
  77. package/dist/components/pageable-view/index.js +5 -5
  78. package/dist/components/photo-swipe/index.js +5 -5
  79. package/dist/components/resize-observer/index.js +2 -2
  80. package/dist/components/search-popover/index.js +6 -6
  81. package/dist/components/sign-panel/index.js +11 -11
  82. package/dist/components/split-pane/index.js +1 -1
  83. package/dist/components/stateful/index.js +1 -1
  84. package/dist/components/static-pageable-table/index.js +2 -2
  85. package/dist/components/swiper/index.js +1 -1
  86. package/dist/components/tab/index.js +2 -2
  87. package/dist/components/tab-item/index.js +2 -2
  88. package/dist/components/table-column/index.js +1 -1
  89. package/dist/components/table-view/index.js +12 -12
  90. package/dist/components/tag-render/index.js +3 -3
  91. package/dist/components/tinymce-editor/index.js +3 -3
  92. package/dist/components/tinymce-wrapper/index.js +393 -393
  93. package/dist/components/toolbar/index.js +40 -40
  94. package/dist/components/toolbar-button/index.js +1 -1
  95. package/dist/components/trigger/index.js +1 -1
  96. package/dist/components/vue-tags-input/index.js +3 -3
  97. package/dist/components/watermark/index.js +2 -2
  98. package/dist/components/x-dialog/index.js +6 -6
  99. package/dist/index.css +0 -63
  100. package/dist/index.es.js +606 -608
  101. package/package.json +22 -22
  102. package/web-types.json +1 -1
@@ -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;