@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.
- package/dist/chunks/{7af3ceb1.js → 3a79781b.js} +3 -3
- package/dist/chunks/{df803484.js → 41a066be.js} +0 -0
- package/dist/chunks/{163eed3b.js → 5a78e0db.js} +0 -0
- package/dist/chunks/{6499de3a.js → 5d4282fb.js} +0 -0
- package/dist/chunks/{a73fe8ee.js → 61ad06b2.js} +0 -0
- package/dist/chunks/{86bcadec.js → 76680a03.js} +2 -2
- package/dist/chunks/{8bbde9bf.js → 8c0142e0.js} +0 -0
- package/dist/chunks/{90bd3d52.js → 97652d86.js} +5 -5
- package/dist/chunks/{92404ceb.js → b4acd3a6.js} +3 -3
- package/dist/chunks/{2bd4e340.js → f71045fc.js} +0 -0
- package/dist/components/address-input/index.js +2 -2
- package/dist/components/aside-menu/index.js +1 -1
- package/dist/components/awesome-button/index.js +1 -1
- package/dist/components/capsule-tab/index.js +1 -1
- package/dist/components/chunk-file-uploader/index.js +2 -2
- package/dist/components/chunk-file-uploader-button/index.js +2 -2
- package/dist/components/chunk-file-uploader-drop/index.js +2 -2
- package/dist/components/chunk-file-uploader-file/index.js +3 -3
- package/dist/components/chunk-file-uploader-files/index.js +2 -2
- package/dist/components/chunk-file-uploader-list/index.js +2 -2
- package/dist/components/chunk-file-uploader-un-support/index.js +2 -2
- package/dist/components/code-mirror-editor/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/confirm-button/index.js +3 -3
- package/dist/components/confirmable/index.js +2 -2
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/custom-scrollbar/index.js +2 -3
- package/dist/components/data-table-picker/index.js +5 -5
- package/dist/components/dynamic-table/index.js +6 -6
- package/dist/components/e-charts/index.js +1 -1
- package/dist/components/editable-progress/index.js +1 -1
- package/dist/components/editable-tree/index.js +192 -192
- package/dist/components/egd-collapse/index.js +1 -1
- package/dist/components/egd-collapse-item/index.js +1 -1
- package/dist/components/element-dialog/index.js +4 -4
- package/dist/components/empty-view/index.js +2 -2
- package/dist/components/error-view/index.js +2 -2
- package/dist/components/flex-column/index.js +2 -2
- package/dist/components/flex-item/index.js +2 -2
- package/dist/components/flex-row/index.js +2 -2
- package/dist/components/flex-scroller/index.js +1 -1
- package/dist/components/form-button/index.js +2 -2
- package/dist/components/form-cascader/index.js +4 -4
- package/dist/components/form-checkbox-group/index.js +13 -13
- package/dist/components/form-date-picker/index.js +9 -9
- package/dist/components/form-holder/index.js +3 -3
- package/dist/components/form-input/index.js +3 -3
- package/dist/components/form-input-email/index.js +4 -4
- package/dist/components/form-input-id-card/index.js +4 -4
- package/dist/components/form-input-number/index.js +4 -4
- package/dist/components/form-input-phone-number/index.js +4 -4
- package/dist/components/form-input-time/index.js +6 -6
- package/dist/components/form-item/index.js +4 -5
- package/dist/components/form-item-config-provider/index.js +1 -1
- package/dist/components/form-item-group/index.js +2 -2
- package/dist/components/form-radio-group/index.js +13 -13
- package/dist/components/form-select/index.js +14 -14
- package/dist/components/form-switch/index.js +3 -3
- package/dist/components/form-textarea/index.js +3 -3
- package/dist/components/form-view/index.js +7 -7
- package/dist/components/guide-steps/index.js +1 -1
- package/dist/components/icon-card/index.js +1 -1
- package/dist/components/iframe-window/index.js +3 -3
- package/dist/components/input-number/index.js +2 -2
- package/dist/components/input-number-range/index.js +2 -2
- package/dist/components/keep-view-alive/index.js +1 -1
- package/dist/components/loading-view/index.js +2 -2
- package/dist/components/nav-bar/index.js +2 -2
- package/dist/components/not-implement/index.js +2 -2
- package/dist/components/page/index.js +1 -1
- package/dist/components/page-header/index.js +2 -2
- package/dist/components/page-index/index.js +4 -4
- package/dist/components/page-index-top/index.js +3 -3
- package/dist/components/page-skeleton/index.js +1 -1
- package/dist/components/page-skeleton-new/index.js +4 -4
- package/dist/components/pageable-table/index.js +8 -8
- package/dist/components/pageable-view/index.js +5 -5
- package/dist/components/photo-swipe/index.js +5 -5
- package/dist/components/resize-observer/index.js +2 -2
- package/dist/components/search-popover/index.js +6 -6
- package/dist/components/sign-panel/index.js +11 -11
- package/dist/components/split-pane/index.js +1 -1
- package/dist/components/stateful/index.js +1 -1
- package/dist/components/static-pageable-table/index.js +2 -2
- package/dist/components/swiper/index.js +1 -1
- package/dist/components/tab/index.js +2 -2
- package/dist/components/tab-item/index.js +2 -2
- package/dist/components/table-column/index.js +1 -1
- package/dist/components/table-view/index.js +12 -12
- package/dist/components/tag-render/index.js +3 -3
- package/dist/components/tinymce-editor/index.js +3 -3
- package/dist/components/tinymce-wrapper/index.js +393 -393
- package/dist/components/toolbar/index.js +40 -40
- package/dist/components/toolbar-button/index.js +1 -1
- package/dist/components/trigger/index.js +1 -1
- package/dist/components/vue-tags-input/index.js +3 -3
- package/dist/components/watermark/index.js +2 -2
- package/dist/components/x-dialog/index.js +6 -6
- package/dist/index.css +0 -63
- package/dist/index.es.js +606 -608
- package/package.json +22 -22
- package/web-types.json +1 -1
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { NOOP as
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
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: "
|
|
5
|
+
label: "返回",
|
|
6
6
|
type: "primary",
|
|
7
7
|
icon: "el-icon-d-arrow-left"
|
|
8
8
|
},
|
|
9
9
|
cancel: {
|
|
10
|
-
label: "
|
|
10
|
+
label: "取消",
|
|
11
11
|
icon: "fa fa-undo"
|
|
12
12
|
},
|
|
13
13
|
create: {
|
|
14
|
-
label: "
|
|
14
|
+
label: "新增",
|
|
15
15
|
type: "primary",
|
|
16
16
|
icon: "el-icon-plus"
|
|
17
17
|
},
|
|
18
18
|
save: {
|
|
19
|
-
label: "
|
|
19
|
+
label: "保存",
|
|
20
20
|
type: "primary",
|
|
21
21
|
icon: "fa fa-save"
|
|
22
22
|
},
|
|
23
23
|
withdraw: {
|
|
24
|
-
label: "
|
|
24
|
+
label: "撤回",
|
|
25
25
|
type: "primary",
|
|
26
26
|
icon: "fa fa-undo"
|
|
27
27
|
},
|
|
28
28
|
edit: {
|
|
29
|
-
label: "
|
|
29
|
+
label: "编辑",
|
|
30
30
|
type: "primary",
|
|
31
31
|
icon: "el-icon-edit-outline"
|
|
32
32
|
},
|
|
33
33
|
submit: {
|
|
34
|
-
label: "
|
|
34
|
+
label: "提交审批",
|
|
35
35
|
type: "primary",
|
|
36
36
|
icon: "fa fa-check"
|
|
37
37
|
},
|
|
38
38
|
publish: {
|
|
39
|
-
label: "
|
|
39
|
+
label: "发布",
|
|
40
40
|
type: "primary",
|
|
41
41
|
icon: "fa fa-send"
|
|
42
42
|
},
|
|
43
43
|
agree: {
|
|
44
|
-
label: "
|
|
44
|
+
label: "同意",
|
|
45
45
|
type: "primary",
|
|
46
46
|
icon: "fa fa-check-square-o"
|
|
47
47
|
},
|
|
48
48
|
disagree: {
|
|
49
|
-
label: "
|
|
49
|
+
label: "不同意",
|
|
50
50
|
type: "primary",
|
|
51
51
|
icon: "fa fa-mail-reply"
|
|
52
52
|
},
|
|
53
53
|
reject: {
|
|
54
|
-
label: "
|
|
54
|
+
label: "退回",
|
|
55
55
|
type: "primary",
|
|
56
56
|
icon: "fa fa-reply"
|
|
57
57
|
},
|
|
58
58
|
finish: {
|
|
59
|
-
label: "
|
|
59
|
+
label: "完成",
|
|
60
60
|
type: "primary",
|
|
61
61
|
icon: "fa fa-check-square"
|
|
62
62
|
},
|
|
63
63
|
enable: {
|
|
64
|
-
label: "
|
|
64
|
+
label: "启用",
|
|
65
65
|
type: "primary",
|
|
66
66
|
icon: "el-icon-circle-check"
|
|
67
67
|
},
|
|
68
68
|
exp: {
|
|
69
|
-
label: "
|
|
69
|
+
label: "导出",
|
|
70
70
|
type: "primary",
|
|
71
71
|
icon: "el-icon-download"
|
|
72
72
|
},
|
|
73
73
|
imp: {
|
|
74
|
-
label: "
|
|
74
|
+
label: "导入",
|
|
75
75
|
type: "primary",
|
|
76
76
|
icon: "el-icon-upload"
|
|
77
77
|
},
|
|
78
78
|
del: {
|
|
79
|
-
label: "
|
|
79
|
+
label: "删除",
|
|
80
80
|
type: "primary",
|
|
81
81
|
icon: "el-icon-delete"
|
|
82
82
|
},
|
|
83
83
|
disabled: {
|
|
84
|
-
label: "
|
|
84
|
+
label: "禁用",
|
|
85
85
|
type: "primary",
|
|
86
86
|
icon: "el-icon-remove-outline"
|
|
87
87
|
},
|
|
88
88
|
reload: {
|
|
89
|
-
label: "
|
|
89
|
+
label: "刷新",
|
|
90
90
|
type: "primary",
|
|
91
91
|
icon: "el-icon-refresh"
|
|
92
92
|
},
|
|
93
93
|
search: {
|
|
94
|
-
label: "
|
|
94
|
+
label: "搜索",
|
|
95
95
|
icon: "el-icon-search",
|
|
96
96
|
separateLine: !1
|
|
97
97
|
}
|
|
98
|
-
},
|
|
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] ||
|
|
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
|
|
165
|
-
const n =
|
|
166
|
-
return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot"
|
|
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
|
-
}))
|
|
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",
|
|
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
|
|
197
|
-
const
|
|
198
|
-
var
|
|
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
|
-
|
|
203
|
+
_,
|
|
204
204
|
null,
|
|
205
205
|
null,
|
|
206
206
|
null
|
|
207
207
|
);
|
|
208
|
-
function
|
|
209
|
-
for (let t in
|
|
210
|
-
this[t] =
|
|
208
|
+
function _(e) {
|
|
209
|
+
for (let t in u)
|
|
210
|
+
this[t] = u[t];
|
|
211
211
|
}
|
|
212
|
-
const
|
|
213
|
-
return
|
|
212
|
+
const $ = /* @__PURE__ */ function() {
|
|
213
|
+
return m.exports;
|
|
214
214
|
}();
|
|
215
215
|
export {
|
|
216
|
-
|
|
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/
|
|
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 as l } from "../../chunks/
|
|
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: "
|
|
199
|
+
default: "请输入..."
|
|
200
200
|
},
|
|
201
201
|
discardSearchText: {
|
|
202
202
|
type: String,
|
|
203
|
-
default: "
|
|
203
|
+
default: "取消"
|
|
204
204
|
},
|
|
205
205
|
limit: {
|
|
206
206
|
type: Number,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isPromise as n, isFunction as l } from "@web-utils/core";
|
|
2
|
-
import { n as r } from "../../chunks/
|
|
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("
|
|
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("
|
|
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: "
|
|
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: "
|
|
149
|
-
message: "
|
|
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;
|