@web-utils/component 1.2.5 → 1.2.6
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/README.md +27 -27
- package/dist/chunks/163eed3b.js +16 -1
- package/dist/chunks/2bd4e340.js +184 -0
- package/dist/chunks/6499de3a.js +30 -1
- package/dist/chunks/7af3ceb1.js +75 -0
- package/dist/chunks/86bcadec.js +24 -0
- package/dist/chunks/8bbde9bf.js +81 -1
- package/dist/chunks/90bd3d52.js +26 -1
- package/dist/chunks/92404ceb.js +126 -0
- package/dist/chunks/a73fe8ee.js +11 -0
- package/dist/chunks/df803484.js +60 -0
- package/dist/components/address-input/index.js +113 -1
- package/dist/components/aside-menu/index.js +58 -1
- package/dist/components/awesome-button/index.js +82 -1
- package/dist/components/capsule-tab/index.js +52 -1
- package/dist/components/chunk-file-uploader/index.js +119 -1
- package/dist/components/chunk-file-uploader-button/index.js +60 -1
- package/dist/components/chunk-file-uploader-drop/index.js +65 -1
- package/dist/components/chunk-file-uploader-file/index.js +311 -1
- package/dist/components/chunk-file-uploader-files/index.js +49 -1
- package/dist/components/chunk-file-uploader-list/index.js +50 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +51 -1
- package/dist/components/code-mirror-editor/index.js +310 -6
- package/dist/components/color-picker/index.js +110 -1
- package/dist/components/confirm-button/index.js +57 -1
- package/dist/components/confirmable/index.js +28 -1
- package/dist/components/context-menu/index.js +236 -1
- package/dist/components/custom-scrollbar/index.js +150 -1
- package/dist/components/data-table-picker/index.js +137 -1
- package/dist/components/dynamic-table/index.js +195 -1
- package/dist/components/e-charts/index.js +229 -1
- package/dist/components/editable-progress/index.js +141 -1
- package/dist/components/editable-tree/index.js +789 -1
- package/dist/components/egd-collapse/index.js +79 -1
- package/dist/components/egd-collapse-item/index.js +132 -1
- package/dist/components/el-color-picker-dropdown/index.js +170 -1
- package/dist/components/element-dialog/index.js +242 -1
- package/dist/components/empty-view/index.js +69 -1
- package/dist/components/error-view/index.js +61 -1
- package/dist/components/flex-column/index.js +50 -1
- package/dist/components/flex-item/index.js +66 -1
- package/dist/components/flex-row/index.js +50 -1
- package/dist/components/flex-scroller/index.js +47 -1
- package/dist/components/form-button/index.js +80 -1
- package/dist/components/form-cascader/index.js +151 -1
- package/dist/components/form-checkbox-group/index.js +192 -1
- package/dist/components/form-date-picker/index.js +182 -1
- package/dist/components/form-holder/index.js +90 -1
- package/dist/components/form-input/index.js +106 -1
- package/dist/components/form-input-email/index.js +97 -1
- package/dist/components/form-input-id-card/index.js +104 -1
- package/dist/components/form-input-number/index.js +123 -1
- package/dist/components/form-input-phone-number/index.js +98 -1
- package/dist/components/form-input-time/index.js +124 -1
- package/dist/components/form-item/index.js +120 -1
- package/dist/components/form-item-config-provider/index.js +63 -1
- package/dist/components/form-item-group/index.js +169 -1
- package/dist/components/form-radio-group/index.js +170 -1
- package/dist/components/form-select/index.js +154 -1
- package/dist/components/form-switch/index.js +97 -1
- package/dist/components/form-textarea/index.js +102 -1
- package/dist/components/form-view/index.js +343 -1
- package/dist/components/guide-steps/index.js +94 -1
- package/dist/components/icon-card/index.js +62 -1
- package/dist/components/iframe-window/index.js +99 -1
- package/dist/components/input-number/index.js +274 -1
- package/dist/components/input-number-range/index.js +110 -1
- package/dist/components/j-s-x-component/index.js +16 -1
- package/dist/components/keep-view-alive/index.js +119 -1
- package/dist/components/loading-view/index.js +61 -1
- package/dist/components/nav-bar/index.js +52 -1
- package/dist/components/not-implement/index.js +35 -1
- package/dist/components/page/index.js +40 -1
- package/dist/components/page-header/index.js +56 -1
- package/dist/components/page-index/index.js +151 -1
- package/dist/components/page-index-top/index.js +119 -1
- package/dist/components/page-skeleton/index.js +56 -1
- package/dist/components/page-skeleton-new/index.js +98 -1
- package/dist/components/pageable-table/index.js +429 -1
- package/dist/components/pageable-view/index.js +328 -2
- package/dist/components/photo-swipe/index.js +187 -1
- package/dist/components/resize-observer/index.js +62 -1
- package/dist/components/search-popover/index.js +391 -2
- package/dist/components/sign-panel/index.js +242 -1
- package/dist/components/split-pane/index.js +209 -1
- package/dist/components/stateful/index.js +84 -1
- package/dist/components/static-pageable-table/index.js +92 -1
- package/dist/components/swiper/index.js +158 -1
- package/dist/components/tab/index.js +145 -1
- package/dist/components/tab-item/index.js +73 -1
- package/dist/components/table-column/index.js +89 -1
- package/dist/components/table-view/index.js +363 -1
- package/dist/components/tag-render/index.js +97 -1
- package/dist/components/tinymce-editor/index.js +173 -1
- package/dist/components/tinymce-wrapper/index.js +618 -1
- package/dist/components/toolbar/index.js +217 -1
- package/dist/components/toolbar-button/index.js +90 -1
- package/dist/components/trigger/index.js +71 -1
- package/dist/components/vue-tags-input/index.js +439 -1
- package/dist/components/watermark/index.js +63 -1
- package/dist/components/x-dialog/index.js +173 -1
- package/dist/index.css +2102 -1
- package/dist/index.es.js +2992 -2075
- package/package.json +29 -29
- package/web-types.json +22 -16
- package/dist/chunks/23bd3525.js +0 -1
- package/dist/chunks/65f4f4f2.js +0 -1
- package/dist/chunks/8473fc69.js +0 -1
- package/dist/chunks/a125d16c.js +0 -1
- package/dist/chunks/addb6ed5.js +0 -1
- package/dist/chunks/f15477c7.js +0 -1
|
@@ -1 +1,217 @@
|
|
|
1
|
-
import{NOOP as
|
|
1
|
+
import { NOOP as b } from "@web-utils/core";
|
|
2
|
+
import { n as f } from "../../chunks/6499de3a.js";
|
|
3
|
+
const u = {
|
|
4
|
+
back: {
|
|
5
|
+
label: "\u8FD4\u56DE",
|
|
6
|
+
type: "primary",
|
|
7
|
+
icon: "el-icon-d-arrow-left"
|
|
8
|
+
},
|
|
9
|
+
cancel: {
|
|
10
|
+
label: "\u53D6\u6D88",
|
|
11
|
+
icon: "fa fa-undo"
|
|
12
|
+
},
|
|
13
|
+
create: {
|
|
14
|
+
label: "\u65B0\u589E",
|
|
15
|
+
type: "primary",
|
|
16
|
+
icon: "el-icon-plus"
|
|
17
|
+
},
|
|
18
|
+
save: {
|
|
19
|
+
label: "\u4FDD\u5B58",
|
|
20
|
+
type: "primary",
|
|
21
|
+
icon: "fa fa-save"
|
|
22
|
+
},
|
|
23
|
+
withdraw: {
|
|
24
|
+
label: "\u64A4\u56DE",
|
|
25
|
+
type: "primary",
|
|
26
|
+
icon: "fa fa-undo"
|
|
27
|
+
},
|
|
28
|
+
edit: {
|
|
29
|
+
label: "\u7F16\u8F91",
|
|
30
|
+
type: "primary",
|
|
31
|
+
icon: "el-icon-edit-outline"
|
|
32
|
+
},
|
|
33
|
+
submit: {
|
|
34
|
+
label: "\u63D0\u4EA4\u5BA1\u6279",
|
|
35
|
+
type: "primary",
|
|
36
|
+
icon: "fa fa-check"
|
|
37
|
+
},
|
|
38
|
+
publish: {
|
|
39
|
+
label: "\u53D1\u5E03",
|
|
40
|
+
type: "primary",
|
|
41
|
+
icon: "fa fa-send"
|
|
42
|
+
},
|
|
43
|
+
agree: {
|
|
44
|
+
label: "\u540C\u610F",
|
|
45
|
+
type: "primary",
|
|
46
|
+
icon: "fa fa-check-square-o"
|
|
47
|
+
},
|
|
48
|
+
disagree: {
|
|
49
|
+
label: "\u4E0D\u540C\u610F",
|
|
50
|
+
type: "primary",
|
|
51
|
+
icon: "fa fa-mail-reply"
|
|
52
|
+
},
|
|
53
|
+
reject: {
|
|
54
|
+
label: "\u9000\u56DE",
|
|
55
|
+
type: "primary",
|
|
56
|
+
icon: "fa fa-reply"
|
|
57
|
+
},
|
|
58
|
+
finish: {
|
|
59
|
+
label: "\u5B8C\u6210",
|
|
60
|
+
type: "primary",
|
|
61
|
+
icon: "fa fa-check-square"
|
|
62
|
+
},
|
|
63
|
+
enable: {
|
|
64
|
+
label: "\u542F\u7528",
|
|
65
|
+
type: "primary",
|
|
66
|
+
icon: "el-icon-circle-check"
|
|
67
|
+
},
|
|
68
|
+
exp: {
|
|
69
|
+
label: "\u5BFC\u51FA",
|
|
70
|
+
type: "primary",
|
|
71
|
+
icon: "el-icon-download"
|
|
72
|
+
},
|
|
73
|
+
imp: {
|
|
74
|
+
label: "\u5BFC\u5165",
|
|
75
|
+
type: "primary",
|
|
76
|
+
icon: "el-icon-upload"
|
|
77
|
+
},
|
|
78
|
+
del: {
|
|
79
|
+
label: "\u5220\u9664",
|
|
80
|
+
type: "primary",
|
|
81
|
+
icon: "el-icon-delete"
|
|
82
|
+
},
|
|
83
|
+
disabled: {
|
|
84
|
+
label: "\u7981\u7528",
|
|
85
|
+
type: "primary",
|
|
86
|
+
icon: "el-icon-remove-outline"
|
|
87
|
+
},
|
|
88
|
+
reload: {
|
|
89
|
+
label: "\u5237\u65B0",
|
|
90
|
+
type: "primary",
|
|
91
|
+
icon: "el-icon-refresh"
|
|
92
|
+
},
|
|
93
|
+
search: {
|
|
94
|
+
label: "\u641C\u7D22",
|
|
95
|
+
icon: "el-icon-search",
|
|
96
|
+
separateLine: !1
|
|
97
|
+
}
|
|
98
|
+
}, d = {
|
|
99
|
+
name: "Toolbar",
|
|
100
|
+
provide() {
|
|
101
|
+
return {
|
|
102
|
+
toolbar: this
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
props: {
|
|
106
|
+
searchable: Boolean,
|
|
107
|
+
buttons: {
|
|
108
|
+
type: Array,
|
|
109
|
+
default: () => ["back"]
|
|
110
|
+
},
|
|
111
|
+
back: {
|
|
112
|
+
type: Function
|
|
113
|
+
},
|
|
114
|
+
cancel: {
|
|
115
|
+
type: Function
|
|
116
|
+
},
|
|
117
|
+
emitter: {
|
|
118
|
+
type: String,
|
|
119
|
+
default: "self"
|
|
120
|
+
},
|
|
121
|
+
footer: Boolean,
|
|
122
|
+
label: {
|
|
123
|
+
type: Object,
|
|
124
|
+
default: () => ({})
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
methods: {
|
|
128
|
+
goBack() {
|
|
129
|
+
const e = this.$route.path;
|
|
130
|
+
this.$bus("closeTab", e, this);
|
|
131
|
+
},
|
|
132
|
+
fire(e, t) {
|
|
133
|
+
this.emitter === "parent" ? this.$parent && this.$parent.$emit(e, t, this) : this.$emit(e, t, this);
|
|
134
|
+
},
|
|
135
|
+
createButton(e, {
|
|
136
|
+
label: t,
|
|
137
|
+
icon: o,
|
|
138
|
+
type: i,
|
|
139
|
+
separateLine: a = !0
|
|
140
|
+
}) {
|
|
141
|
+
var r;
|
|
142
|
+
const n = this.$createElement;
|
|
143
|
+
let l;
|
|
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", {
|
|
146
|
+
attrs: {
|
|
147
|
+
"separate-line": a,
|
|
148
|
+
icon: o,
|
|
149
|
+
label: s,
|
|
150
|
+
footer: this.footer,
|
|
151
|
+
type: i
|
|
152
|
+
},
|
|
153
|
+
on: {
|
|
154
|
+
click: l
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
getLeftButtons() {
|
|
159
|
+
var o, i;
|
|
160
|
+
const {
|
|
161
|
+
createButton: e
|
|
162
|
+
} = this;
|
|
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, {
|
|
167
|
+
buttons: this.buttons,
|
|
168
|
+
footer: this.footer
|
|
169
|
+
})) != null ? p : null;
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
getRightButtons() {
|
|
173
|
+
var t, o;
|
|
174
|
+
return ((o = (t = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : o.call(t)) || this.getSearchButton();
|
|
175
|
+
},
|
|
176
|
+
getSearchButton() {
|
|
177
|
+
const {
|
|
178
|
+
createButton: e
|
|
179
|
+
} = this;
|
|
180
|
+
return this.searchable ? e("search", u.search) : null;
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
render() {
|
|
184
|
+
const e = arguments[0];
|
|
185
|
+
return this.footer ? e("div", {
|
|
186
|
+
class: "footer-bar"
|
|
187
|
+
}, [this.getLeftButtons()]) : e("div", {
|
|
188
|
+
class: "toolbar"
|
|
189
|
+
}, [e("div", {
|
|
190
|
+
class: "toolbar-left"
|
|
191
|
+
}, [this.getLeftButtons()]), e("div", {
|
|
192
|
+
class: "toolbar-right"
|
|
193
|
+
}, [this.getRightButtons()])]);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
let y, m;
|
|
197
|
+
const h = {};
|
|
198
|
+
var _ = /* @__PURE__ */ f(
|
|
199
|
+
d,
|
|
200
|
+
y,
|
|
201
|
+
m,
|
|
202
|
+
!1,
|
|
203
|
+
g,
|
|
204
|
+
null,
|
|
205
|
+
null,
|
|
206
|
+
null
|
|
207
|
+
);
|
|
208
|
+
function g(e) {
|
|
209
|
+
for (let t in h)
|
|
210
|
+
this[t] = h[t];
|
|
211
|
+
}
|
|
212
|
+
const S = /* @__PURE__ */ function() {
|
|
213
|
+
return _.exports;
|
|
214
|
+
}();
|
|
215
|
+
export {
|
|
216
|
+
S as default
|
|
217
|
+
};
|
|
@@ -1 +1,90 @@
|
|
|
1
|
-
import{isFunction as a}from"@web-utils/core";
|
|
1
|
+
import { isFunction as a } from "@web-utils/core";
|
|
2
|
+
import { n as l } from "../../chunks/6499de3a.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
5
|
+
return t.footer || t.toolbar.footer ? o("ElButton", {
|
|
6
|
+
attrs: {
|
|
7
|
+
disabled: t.disabled || t.loading,
|
|
8
|
+
type: t.type
|
|
9
|
+
},
|
|
10
|
+
on: {
|
|
11
|
+
click: t.onClick
|
|
12
|
+
}
|
|
13
|
+
}, [t._v(" " + t._s(t.label) + " ")]) : o("span", {
|
|
14
|
+
staticClass: "form-toolbar-button"
|
|
15
|
+
}, [o("ElButton", {
|
|
16
|
+
attrs: {
|
|
17
|
+
icon: t.icon,
|
|
18
|
+
type: "text",
|
|
19
|
+
disabled: t.disabled || t.loading,
|
|
20
|
+
size: "mini"
|
|
21
|
+
},
|
|
22
|
+
on: {
|
|
23
|
+
click: t.onClick
|
|
24
|
+
}
|
|
25
|
+
}, [t._v(" " + t._s(t.label) + " ")]), t.separateLine ? o("span", {
|
|
26
|
+
staticClass: "separate-line"
|
|
27
|
+
}) : t._e()], 1);
|
|
28
|
+
}, s = [];
|
|
29
|
+
const r = {
|
|
30
|
+
name: "ToolbarButton",
|
|
31
|
+
inject: {
|
|
32
|
+
toolbar: {
|
|
33
|
+
default: ""
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
props: {
|
|
37
|
+
label: {
|
|
38
|
+
type: String
|
|
39
|
+
},
|
|
40
|
+
icon: {
|
|
41
|
+
type: String
|
|
42
|
+
},
|
|
43
|
+
type: {
|
|
44
|
+
type: String
|
|
45
|
+
},
|
|
46
|
+
disabled: Boolean,
|
|
47
|
+
separateLine: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
footer: Boolean
|
|
52
|
+
},
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
loading: !1
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
async onClick(t) {
|
|
60
|
+
this.loading = !0;
|
|
61
|
+
const { click: e } = this.$listeners;
|
|
62
|
+
if (a(e))
|
|
63
|
+
try {
|
|
64
|
+
await e(t);
|
|
65
|
+
} catch {
|
|
66
|
+
}
|
|
67
|
+
this.loading = !1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}, n = {};
|
|
71
|
+
var c = /* @__PURE__ */ l(
|
|
72
|
+
r,
|
|
73
|
+
i,
|
|
74
|
+
s,
|
|
75
|
+
!1,
|
|
76
|
+
_,
|
|
77
|
+
null,
|
|
78
|
+
null,
|
|
79
|
+
null
|
|
80
|
+
);
|
|
81
|
+
function _(t) {
|
|
82
|
+
for (let e in n)
|
|
83
|
+
this[e] = n[e];
|
|
84
|
+
}
|
|
85
|
+
const p = /* @__PURE__ */ function() {
|
|
86
|
+
return c.exports;
|
|
87
|
+
}();
|
|
88
|
+
export {
|
|
89
|
+
p as default
|
|
90
|
+
};
|
|
@@ -1 +1,71 @@
|
|
|
1
|
-
import{n}from"../../chunks/6499de3a.js";
|
|
1
|
+
import { n } from "../../chunks/6499de3a.js";
|
|
2
|
+
var a = function() {
|
|
3
|
+
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
4
|
+
return t("div", {
|
|
5
|
+
class: e.classes
|
|
6
|
+
}, [e.showIcon ? t("div", {
|
|
7
|
+
class: e.barConClasses
|
|
8
|
+
}, e._m(0), 0) : e._e()]);
|
|
9
|
+
}, l = [function() {
|
|
10
|
+
var e = this, r = e.$createElement, t = e._self._c || r;
|
|
11
|
+
return e._l(8, function(s) {
|
|
12
|
+
return t("i", {
|
|
13
|
+
key: `trigger-${s}`,
|
|
14
|
+
class: `${e.prefix}-bar`
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}];
|
|
18
|
+
const o = {
|
|
19
|
+
name: "Trigger",
|
|
20
|
+
props: {
|
|
21
|
+
mode: String,
|
|
22
|
+
showIcon: Boolean,
|
|
23
|
+
line: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
prefix: "egd-split-trigger"
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
computed: {
|
|
34
|
+
isVertical() {
|
|
35
|
+
return this.mode === "vertical";
|
|
36
|
+
},
|
|
37
|
+
classes() {
|
|
38
|
+
return [
|
|
39
|
+
this.prefix,
|
|
40
|
+
this.line ? this.isVertical ? ` ${this.prefix}-vertical-line` : `${this.prefix}-horizontal-line` : "",
|
|
41
|
+
this.isVertical ? `${this.prefix}-vertical` : `${this.prefix}-horizontal`
|
|
42
|
+
];
|
|
43
|
+
},
|
|
44
|
+
barConClasses() {
|
|
45
|
+
return [
|
|
46
|
+
`${this.prefix}-bar-con`,
|
|
47
|
+
this.isVertical ? "vertical" : "horizontal"
|
|
48
|
+
];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, i = {};
|
|
52
|
+
var c = /* @__PURE__ */ n(
|
|
53
|
+
o,
|
|
54
|
+
a,
|
|
55
|
+
l,
|
|
56
|
+
!1,
|
|
57
|
+
_,
|
|
58
|
+
null,
|
|
59
|
+
null,
|
|
60
|
+
null
|
|
61
|
+
);
|
|
62
|
+
function _(e) {
|
|
63
|
+
for (let r in i)
|
|
64
|
+
this[r] = i[r];
|
|
65
|
+
}
|
|
66
|
+
const h = /* @__PURE__ */ function() {
|
|
67
|
+
return c.exports;
|
|
68
|
+
}();
|
|
69
|
+
export {
|
|
70
|
+
h as default
|
|
71
|
+
};
|