@web-utils/component 2.0.1 → 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,101 +1,101 @@
1
- import { NOOP as b } from "@web-utils/core";
2
- import { n as f } from "../../chunks/6499de3a.js";
3
- const u = {
1
+ import { NOOP as h } from "@web-utils/core";
2
+ import { n as b } from "../../chunks/5d4282fb.js";
3
+ const p = {
4
4
  back: {
5
- label: "\u8FD4\u56DE",
5
+ label: "返回",
6
6
  type: "primary",
7
7
  icon: "el-icon-d-arrow-left"
8
8
  },
9
9
  cancel: {
10
- label: "\u53D6\u6D88",
10
+ label: "取消",
11
11
  icon: "fa fa-undo"
12
12
  },
13
13
  create: {
14
- label: "\u65B0\u589E",
14
+ label: "新增",
15
15
  type: "primary",
16
16
  icon: "el-icon-plus"
17
17
  },
18
18
  save: {
19
- label: "\u4FDD\u5B58",
19
+ label: "保存",
20
20
  type: "primary",
21
21
  icon: "fa fa-save"
22
22
  },
23
23
  withdraw: {
24
- label: "\u64A4\u56DE",
24
+ label: "撤回",
25
25
  type: "primary",
26
26
  icon: "fa fa-undo"
27
27
  },
28
28
  edit: {
29
- label: "\u7F16\u8F91",
29
+ label: "编辑",
30
30
  type: "primary",
31
31
  icon: "el-icon-edit-outline"
32
32
  },
33
33
  submit: {
34
- label: "\u63D0\u4EA4\u5BA1\u6279",
34
+ label: "提交审批",
35
35
  type: "primary",
36
36
  icon: "fa fa-check"
37
37
  },
38
38
  publish: {
39
- label: "\u53D1\u5E03",
39
+ label: "发布",
40
40
  type: "primary",
41
41
  icon: "fa fa-send"
42
42
  },
43
43
  agree: {
44
- label: "\u540C\u610F",
44
+ label: "同意",
45
45
  type: "primary",
46
46
  icon: "fa fa-check-square-o"
47
47
  },
48
48
  disagree: {
49
- label: "\u4E0D\u540C\u610F",
49
+ label: "不同意",
50
50
  type: "primary",
51
51
  icon: "fa fa-mail-reply"
52
52
  },
53
53
  reject: {
54
- label: "\u9000\u56DE",
54
+ label: "退回",
55
55
  type: "primary",
56
56
  icon: "fa fa-reply"
57
57
  },
58
58
  finish: {
59
- label: "\u5B8C\u6210",
59
+ label: "完成",
60
60
  type: "primary",
61
61
  icon: "fa fa-check-square"
62
62
  },
63
63
  enable: {
64
- label: "\u542F\u7528",
64
+ label: "启用",
65
65
  type: "primary",
66
66
  icon: "el-icon-circle-check"
67
67
  },
68
68
  exp: {
69
- label: "\u5BFC\u51FA",
69
+ label: "导出",
70
70
  type: "primary",
71
71
  icon: "el-icon-download"
72
72
  },
73
73
  imp: {
74
- label: "\u5BFC\u5165",
74
+ label: "导入",
75
75
  type: "primary",
76
76
  icon: "el-icon-upload"
77
77
  },
78
78
  del: {
79
- label: "\u5220\u9664",
79
+ label: "删除",
80
80
  type: "primary",
81
81
  icon: "el-icon-delete"
82
82
  },
83
83
  disabled: {
84
- label: "\u7981\u7528",
84
+ label: "禁用",
85
85
  type: "primary",
86
86
  icon: "el-icon-remove-outline"
87
87
  },
88
88
  reload: {
89
- label: "\u5237\u65B0",
89
+ label: "刷新",
90
90
  type: "primary",
91
91
  icon: "el-icon-refresh"
92
92
  },
93
93
  search: {
94
- label: "\u641C\u7D22",
94
+ label: "搜索",
95
95
  icon: "el-icon-search",
96
96
  separateLine: !1
97
97
  }
98
- }, d = {
98
+ }, f = {
99
99
  name: "Toolbar",
100
100
  provide() {
101
101
  return {
@@ -142,7 +142,7 @@ const u = {
142
142
  const n = this.$createElement;
143
143
  let l;
144
144
  const s = ((r = this.label) == null ? void 0 : r[e]) || t;
145
- return ["back", "cancel"].includes(e) ? l = this.goBack : l = (c) => (this.$listeners[e] || b)(c), n("ToolbarButton", {
145
+ return ["back", "cancel"].includes(e) ? l = this.goBack : l = (c) => (this.$listeners[e] || h)(c), n("ToolbarButton", {
146
146
  attrs: {
147
147
  "separate-line": a,
148
148
  icon: o,
@@ -161,12 +161,12 @@ const u = {
161
161
  createButton: e
162
162
  } = this;
163
163
  return ((i = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : i.call(o)) || this.buttons.map((a) => {
164
- var l, s, r, c, p;
165
- const n = u[a];
166
- return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot" && (p = (c = (r = this.$scopedSlots).default) == null ? void 0 : c.call(r, {
164
+ var l, s, r, c;
165
+ const n = p[a];
166
+ return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot" ? ((c = (r = this.$scopedSlots).default) == null ? void 0 : c.call(r, {
167
167
  buttons: this.buttons,
168
168
  footer: this.footer
169
- })) != null ? p : null;
169
+ })) ?? null : null;
170
170
  });
171
171
  },
172
172
  getRightButtons() {
@@ -177,7 +177,7 @@ const u = {
177
177
  const {
178
178
  createButton: e
179
179
  } = this;
180
- return this.searchable ? e("search", u.search) : null;
180
+ return this.searchable ? e("search", p.search) : null;
181
181
  }
182
182
  },
183
183
  render() {
@@ -193,25 +193,25 @@ const u = {
193
193
  }, [this.getRightButtons()])]);
194
194
  }
195
195
  };
196
- let y, m;
197
- const h = {};
198
- var _ = /* @__PURE__ */ f(
196
+ let d, y;
197
+ const u = {};
198
+ var m = /* @__PURE__ */ b(
199
+ f,
199
200
  d,
200
201
  y,
201
- m,
202
202
  !1,
203
- g,
203
+ _,
204
204
  null,
205
205
  null,
206
206
  null
207
207
  );
208
- function g(e) {
209
- for (let t in h)
210
- this[t] = h[t];
208
+ function _(e) {
209
+ for (let t in u)
210
+ this[t] = u[t];
211
211
  }
212
- const S = /* @__PURE__ */ function() {
213
- return _.exports;
212
+ const $ = /* @__PURE__ */ function() {
213
+ return m.exports;
214
214
  }();
215
215
  export {
216
- S as default
216
+ $ as default
217
217
  };
@@ -1,5 +1,5 @@
1
1
  import { isFunction as a } from "@web-utils/core";
2
- import { n as l } from "../../chunks/6499de3a.js";
2
+ import { n as l } from "../../chunks/5d4282fb.js";
3
3
  var i = function() {
4
4
  var t = this, e = t.$createElement, o = t._self._c || e;
5
5
  return t.footer || t.toolbar.footer ? o("ElButton", {
@@ -1,4 +1,4 @@
1
- import { n } from "../../chunks/6499de3a.js";
1
+ import { n } from "../../chunks/5d4282fb.js";
2
2
  var a = function() {
3
3
  var e = this, r = e.$createElement, t = e._self._c || r;
4
4
  return t("div", {
@@ -1,4 +1,4 @@
1
- import { n as l } from "../../chunks/6499de3a.js";
1
+ import { n as l } from "../../chunks/5d4282fb.js";
2
2
  var h = function() {
3
3
  var e = this, s = e.$createElement, a = e._self._c || s;
4
4
  return a("div", {
@@ -196,11 +196,11 @@ const o = {
196
196
  },
197
197
  placeholder: {
198
198
  type: String,
199
- default: "\u8BF7\u8F93\u5165..."
199
+ default: "请输入..."
200
200
  },
201
201
  discardSearchText: {
202
202
  type: String,
203
- default: "\u53D6\u6D88"
203
+ default: "取消"
204
204
  },
205
205
  limit: {
206
206
  type: Number,
@@ -1,5 +1,5 @@
1
- import { h as _ } from "../../chunks/2bd4e340.js";
2
- import { n as p } from "../../chunks/6499de3a.js";
1
+ import { h as _ } from "../../chunks/f71045fc.js";
2
+ import { n as p } from "../../chunks/5d4282fb.js";
3
3
  const f = {
4
4
  name: "Watermark",
5
5
  functional: !0,
@@ -1,5 +1,5 @@
1
1
  import { isPromise as n, isFunction as l } from "@web-utils/core";
2
- import { n as r } from "../../chunks/6499de3a.js";
2
+ import { n as r } from "../../chunks/5d4282fb.js";
3
3
  var a = function() {
4
4
  var e = this, o = e.$createElement, t = e._self._c || o;
5
5
  return t("ElDialog", {
@@ -57,14 +57,14 @@ var a = function() {
57
57
  on: {
58
58
  click: e.confirm
59
59
  }
60
- }, [e._v(" \u786E\u5B9A ")]), t("ElButton", {
60
+ }, [e._v(" 确定 ")]), t("ElButton", {
61
61
  attrs: {
62
62
  size: "small"
63
63
  },
64
64
  on: {
65
65
  click: e.close
66
66
  }
67
- }, [e._v(" \u53D6 \u6D88 ")])], 1)];
67
+ }, [e._v(" ")])], 1)];
68
68
  },
69
69
  proxy: !0
70
70
  } : null], null, !0)
@@ -94,7 +94,7 @@ const f = {
94
94
  },
95
95
  title: {
96
96
  type: String,
97
- default: "\u6807\u9898"
97
+ default: "标题"
98
98
  },
99
99
  cache: {
100
100
  type: Boolean,
@@ -145,8 +145,8 @@ const f = {
145
145
  confirm() {
146
146
  this.$refs.cpn && this.$refs.cpn.onConfirm ? this.$refs.cpn.onConfirm(this.close) : (this.showTips && this.$notify({
147
147
  type: "warning",
148
- title: "\u5F00\u53D1\u63D0\u793A",
149
- message: "\u5982\u9700\u5904\u7406\u786E\u5B9A\u4E8B\u4EF6\uFF0C\u8BF7\u5728\u7EC4\u4EF6\u5185\u90E8\u6DFB\u52A0 onConfirm(done) \u65B9\u6CD5,\u5E76\u8C03\u7528 done \u65B9\u6CD5\u6765\u5173\u95ED\u5BF9\u8BDD\u6846\uFF01"
148
+ title: "开发提示",
149
+ message: "如需处理确定事件,请在组件内部添加 onConfirm(done) 方法,并调用 done 方法来关闭对话框!"
150
150
  }), this.close());
151
151
  }
152
152
  }
package/dist/index.css CHANGED
@@ -1045,72 +1045,9 @@
1045
1045
  .page.vertical {
1046
1046
  flex-direction: column;
1047
1047
  }
1048
- .pageable-table {
1049
- flex: 1 1 auto;
1050
- position: relative;
1051
- height: 100%;
1052
- }
1053
1048
  .pageable-table .single-select-column .el-radio__label {
1054
1049
  padding: 0;
1055
1050
  }
1056
- .pageable-table.auto-height {
1057
- position: static;
1058
- height: auto;
1059
- }
1060
- .pageable-table.auto-height .el-table {
1061
- position: static;
1062
- min-height: 200px;
1063
- }
1064
- .pageable-table.auto-height .pageable-table-wrapper {
1065
- position: static;
1066
- }
1067
- .pageable-table .pageable-table-wrapper {
1068
- display: flex;
1069
- flex-direction: column;
1070
- position: absolute;
1071
- top: 0;
1072
- right: 0;
1073
- bottom: 0;
1074
- left: 0;
1075
- }
1076
- .pageable-table .el-pagination {
1077
- background-color: #fff;
1078
- }
1079
- .pageable-table .table-status-icon {
1080
- font-size: 20px;
1081
- }
1082
- .pageable-table .pageable-table-loading {
1083
- display: inline-flex;
1084
- align-items: center;
1085
- }
1086
- .pageable-table .pageable-table-error {
1087
- display: inline-flex;
1088
- align-items: center;
1089
- color: red;
1090
- border: 1px solid #fca4a4;
1091
- }
1092
- .pageable-table .pageable-table-error:hover {
1093
- background-color: #fff0f0;
1094
- }
1095
- .pageable-table .pageable-table-total {
1096
- padding: 0 10px 10px;
1097
- }
1098
- .pageable-table .underline {
1099
- position: relative;
1100
- }
1101
- .pageable-table .underline:after {
1102
- position: absolute;
1103
- bottom: 0;
1104
- left: 0;
1105
- z-index: 1;
1106
- width: 100%;
1107
- height: 1px;
1108
- background-color: #606266;
1109
- content: "";
1110
- }
1111
- .pageable-table .total {
1112
- padding: 10px;
1113
- }
1114
1051
  .pageable-table {
1115
1052
  flex: 1 1 auto;
1116
1053
  position: relative;