@web-utils/component 3.3.1 → 3.3.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/chat/index.mjs +2 -2
- package/chunks/{packages.v6r2Hr7E.mjs → packages.2yUDw9GA.mjs} +2 -2
- package/chunks/{permission.E9kZbW48.mjs → permission.bUiJNk5J.mjs} +1 -1
- package/element-dialog/index.mjs +39 -51
- package/fy-curd/index.mjs +3 -3
- package/fy-draggable/index.mjs +2 -2
- package/fy-form/index.mjs +1 -1
- package/fy-form-design/index.mjs +3 -3
- package/fy-form-design/style.css +1 -1
- package/fy-select/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +3 -3
- package/package.json +11 -11
- package/toolbar/index.mjs +12 -10
- package/web-types.json +1 -1
package/chat/index.mjs
CHANGED
|
@@ -142,9 +142,9 @@ const d = {
|
|
|
142
142
|
pushMsg(s = {}) {
|
|
143
143
|
const t = s.mine === !0, e = s.text || {}, a = {
|
|
144
144
|
date: s.date || r(Date.now(), "YYYY-MM-DD HH:mm:ss"),
|
|
145
|
-
text:
|
|
145
|
+
text: typeof e != "object" ? {
|
|
146
146
|
text: e
|
|
147
|
-
} : e
|
|
147
|
+
} : e,
|
|
148
148
|
mine: t,
|
|
149
149
|
img: t ? this.config.myImg : this.config.img,
|
|
150
150
|
name: t ? this.config.myName : this.config.name
|
|
@@ -47,12 +47,12 @@ const a = {
|
|
|
47
47
|
title: "需要引入mock模拟数据包",
|
|
48
48
|
github: "https://github.com/Colingo/mock"
|
|
49
49
|
}
|
|
50
|
-
}, o =
|
|
50
|
+
}, o = {
|
|
51
51
|
logs: function(s) {
|
|
52
52
|
const t = a[s], i = l(s);
|
|
53
53
|
i.warning(t.title), i.warning(`CDN:${t.url || "-"}`), i.warning(`GITHUB:${t.github || "-"}`);
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
};
|
|
56
56
|
export {
|
|
57
57
|
o as p
|
|
58
58
|
};
|
package/element-dialog/index.mjs
CHANGED
|
@@ -1,36 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var d = Object.getOwnPropertySymbols;
|
|
4
|
-
var C = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var p = (l, e, t) => e in l ? g(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, u = (l, e) => {
|
|
6
|
-
for (var t in e || (e = {}))
|
|
7
|
-
C.call(e, t) && p(l, t, e[t]);
|
|
8
|
-
if (d)
|
|
9
|
-
for (var t of d(e))
|
|
10
|
-
_.call(e, t) && p(l, t, e[t]);
|
|
11
|
-
return l;
|
|
12
|
-
}, c = (l, e) => y(l, v(e));
|
|
13
|
-
var a = (l, e, t) => new Promise((i, n) => {
|
|
14
|
-
var f = (o) => {
|
|
1
|
+
var a = (t, e, l) => new Promise((i, n) => {
|
|
2
|
+
var p = (o) => {
|
|
15
3
|
try {
|
|
16
|
-
s(
|
|
4
|
+
s(l.next(o));
|
|
17
5
|
} catch (r) {
|
|
18
6
|
n(r);
|
|
19
7
|
}
|
|
20
|
-
},
|
|
8
|
+
}, u = (o) => {
|
|
21
9
|
try {
|
|
22
|
-
s(
|
|
10
|
+
s(l.throw(o));
|
|
23
11
|
} catch (r) {
|
|
24
12
|
n(r);
|
|
25
13
|
}
|
|
26
|
-
}, s = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(
|
|
27
|
-
s((
|
|
14
|
+
}, s = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(p, u);
|
|
15
|
+
s((l = l.apply(t, e)).next());
|
|
28
16
|
});
|
|
29
|
-
import
|
|
30
|
-
import { dialogDrag as
|
|
31
|
-
import { getComputedHeight as
|
|
32
|
-
import { n as
|
|
33
|
-
const
|
|
17
|
+
import d from "element-ui/lib/dialog";
|
|
18
|
+
import { dialogDrag as c } from "@web-utils/vue/directives/dialog-drag";
|
|
19
|
+
import { getComputedHeight as h, isDef as f } from "@web-utils/core";
|
|
20
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
21
|
+
const g = {
|
|
34
22
|
props: {
|
|
35
23
|
visible: {
|
|
36
24
|
type: Boolean,
|
|
@@ -65,12 +53,12 @@ const B = {
|
|
|
65
53
|
default: "76vh"
|
|
66
54
|
}
|
|
67
55
|
}
|
|
68
|
-
},
|
|
56
|
+
}, y = {
|
|
69
57
|
name: "ElementDialog",
|
|
70
58
|
directives: {
|
|
71
|
-
dialogDrag:
|
|
59
|
+
dialogDrag: c
|
|
72
60
|
},
|
|
73
|
-
mixins: [...
|
|
61
|
+
mixins: [...d.mixins || d.default.mixins, g],
|
|
74
62
|
props: {
|
|
75
63
|
title: {
|
|
76
64
|
type: String,
|
|
@@ -130,20 +118,20 @@ const B = {
|
|
|
130
118
|
},
|
|
131
119
|
computed: {
|
|
132
120
|
style() {
|
|
133
|
-
const
|
|
121
|
+
const t = {
|
|
134
122
|
maxHeight: "100%"
|
|
135
123
|
};
|
|
136
|
-
return this.fullScreen || (this.width && (
|
|
124
|
+
return this.fullScreen || (this.width && (t.width = this.width), t.maxHeight = this.maxHeight), t["margin-top"] = this.marginTop, t;
|
|
137
125
|
}
|
|
138
126
|
},
|
|
139
127
|
watch: {
|
|
140
|
-
visible(
|
|
128
|
+
visible(t) {
|
|
141
129
|
return a(this, null, function* () {
|
|
142
|
-
|
|
130
|
+
t ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), yield this.$nextTick(), this.$refs.dialog.scrollTop = 0, yield this.computeTop(), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
|
|
143
131
|
});
|
|
144
132
|
},
|
|
145
|
-
fullScreen(
|
|
146
|
-
this.$emit("toggle-fullscreen",
|
|
133
|
+
fullScreen(t) {
|
|
134
|
+
this.$emit("toggle-fullscreen", t);
|
|
147
135
|
}
|
|
148
136
|
},
|
|
149
137
|
created() {
|
|
@@ -164,7 +152,7 @@ const B = {
|
|
|
164
152
|
methods: {
|
|
165
153
|
computeTop() {
|
|
166
154
|
return a(this, null, function* () {
|
|
167
|
-
yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight -
|
|
155
|
+
yield this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - h(this.$refs.dialog)) / 2 + (f(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
|
|
168
156
|
});
|
|
169
157
|
},
|
|
170
158
|
toggleFullScreen() {
|
|
@@ -177,8 +165,8 @@ const B = {
|
|
|
177
165
|
this.fullScreen = !1;
|
|
178
166
|
},
|
|
179
167
|
shouldShowFooter() {
|
|
180
|
-
var
|
|
181
|
-
return !!((e = (
|
|
168
|
+
var t, e;
|
|
169
|
+
return !!((e = (t = this.$scopedSlots).footer) != null && e.call(t));
|
|
182
170
|
},
|
|
183
171
|
handleWrapperClick() {
|
|
184
172
|
this.closeOnClickModal && this.handleClose();
|
|
@@ -186,8 +174,8 @@ const B = {
|
|
|
186
174
|
handleClose() {
|
|
187
175
|
typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
|
|
188
176
|
},
|
|
189
|
-
hide(
|
|
190
|
-
|
|
177
|
+
hide(t) {
|
|
178
|
+
t !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
|
|
191
179
|
},
|
|
192
180
|
updatePopper() {
|
|
193
181
|
this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
|
|
@@ -200,11 +188,11 @@ const B = {
|
|
|
200
188
|
}
|
|
201
189
|
}
|
|
202
190
|
};
|
|
203
|
-
var
|
|
204
|
-
var e = this,
|
|
205
|
-
return
|
|
191
|
+
var v = function() {
|
|
192
|
+
var e = this, l = e._self._c;
|
|
193
|
+
return l("Transition", { attrs: { name: "dialog-fade" }, on: { "after-enter": e.afterEnter, "after-leave": e.afterLeave } }, [l("div", { directives: [{ name: "show", rawName: "v-show", value: e.visible, expression: "visible" }, { name: "dialog-drag", rawName: "v-dialog-drag:[fullScreen]", value: { onMove: e.updatePopper }, expression: "{ onMove: updatePopper }", arg: e.fullScreen }], staticClass: "el-dialog__wrapper", on: { click: function(i) {
|
|
206
194
|
return i.target !== i.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
|
|
207
|
-
} } }, [
|
|
195
|
+
} } }, [l("div", { ref: "dialog", class: [
|
|
208
196
|
"el-dialog",
|
|
209
197
|
"element-dialog",
|
|
210
198
|
"el-dialog-resizeable",
|
|
@@ -217,20 +205,20 @@ var $ = function() {
|
|
|
217
205
|
"el-dialog--flex-column": e.flexColumn
|
|
218
206
|
},
|
|
219
207
|
e.customClass
|
|
220
|
-
], style:
|
|
221
|
-
return [
|
|
222
|
-
}),
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
208
|
+
], style: e.style, attrs: { role: "dialog", "aria-modal": "true", "aria-label": e.title || "dialog" } }, [l("div", { staticClass: "el-dialog__header" }, [e._t("title", function() {
|
|
209
|
+
return [l("span", { staticClass: "el-dialog__title" }, [e._v(e._s(e.title))])];
|
|
210
|
+
}), l("div", { staticClass: "header-button-wrapper" }, [e._t("header-button"), e.showFullScreen ? l("ElButton", { staticClass: "header-button", attrs: { type: "text", icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen", size: "medium", title: e.fullScreen ? "还原" : "最大化" }, on: { click: e.toggleFullScreen } }) : e._e(), e.showClose ? l("ElButton", { staticClass: "header-button header-dialog-close", attrs: { "aria-label": "Close", type: "text", title: "关闭", icon: "el-icon-close", size: "medium" }, on: { click: e.handleClose } }) : e._e()], 2)], 2), e.rendered ? l("div", { staticClass: "el-dialog__body", style: { height: e.fullScreen ? "100%" : e.height } }, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? l("div", { staticClass: "el-dialog__footer" }, [e._t("footer", null, { handleClose: e.handleClose })], 2) : e._e()])])]);
|
|
211
|
+
}, C = [], _ = /* @__PURE__ */ m(
|
|
212
|
+
y,
|
|
213
|
+
v,
|
|
214
|
+
C,
|
|
227
215
|
!1,
|
|
228
216
|
null,
|
|
229
217
|
null,
|
|
230
218
|
null,
|
|
231
219
|
null
|
|
232
220
|
);
|
|
233
|
-
const
|
|
221
|
+
const T = _.exports;
|
|
234
222
|
export {
|
|
235
|
-
|
|
223
|
+
T as default
|
|
236
224
|
};
|
package/fy-curd/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as $ } from "../chunks/packages.
|
|
2
|
-
import { p as x } from "../chunks/permission.
|
|
1
|
+
import { p as $ } from "../chunks/packages.2yUDw9GA.mjs";
|
|
2
|
+
import { p as x } from "../chunks/permission.bUiJNk5J.mjs";
|
|
3
3
|
import { i as O } from "../chunks/init.6oF7OO2W.mjs";
|
|
4
4
|
import { g as F, c as k, t as I, f as E } from "../chunks/dataformat.Ab9PZnVk.mjs";
|
|
5
5
|
import { o as h, j as C, d as a, u as B, i as P, a as b, k as D, l as T, s as z } from "../chunks/util.y1gUGRqi.mjs";
|
|
@@ -158,7 +158,7 @@ const p = {
|
|
|
158
158
|
emptyText: t.emptyBtnText || "清 空",
|
|
159
159
|
emptyBtn: h(t.emptyBtn, p.emptyBtn),
|
|
160
160
|
emptyIcon: this.crud.getBtnIcon("emptyBtn"),
|
|
161
|
-
menuSpan:
|
|
161
|
+
menuSpan: this.show || !this.isSearchIcon || t.searchMenuSpan < 6 ? t.searchMenuSpan : 6,
|
|
162
162
|
menuPosition: t.searchMenuPosition || "center",
|
|
163
163
|
dicFlag: !1,
|
|
164
164
|
dicData: this.crud.DIC
|
package/fy-draggable/index.mjs
CHANGED
|
@@ -124,12 +124,12 @@ const v = {
|
|
|
124
124
|
},
|
|
125
125
|
styleName() {
|
|
126
126
|
return Object.assign(
|
|
127
|
-
|
|
127
|
+
this.active ? Object.assign(
|
|
128
128
|
{
|
|
129
129
|
zIndex: 9999
|
|
130
130
|
},
|
|
131
131
|
this.styleLineName
|
|
132
|
-
) : { zIndex: this.zIndex }
|
|
132
|
+
) : { zIndex: this.zIndex },
|
|
133
133
|
{
|
|
134
134
|
top: l(this.baseTop),
|
|
135
135
|
left: l(this.baseLeft),
|
package/fy-form/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import { i as B } from "../chunks/init.6oF7OO2W.mjs";
|
|
|
19
19
|
import { s as v, d as x, u as j, x as I, p as L, j as S, a as V, o as M, y as A } from "../chunks/util.y1gUGRqi.mjs";
|
|
20
20
|
import { d as W, c as R, a as G, b as H, f as U } from "../chunks/dataformat.Ab9PZnVk.mjs";
|
|
21
21
|
import { s as q } from "../chunks/dic.7JBaVHv6.mjs";
|
|
22
|
-
import { p as K } from "../chunks/packages.
|
|
22
|
+
import { p as K } from "../chunks/packages.2yUDw9GA.mjs";
|
|
23
23
|
import { isBlank as u } from "@web-utils/core";
|
|
24
24
|
import { n as $ } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
25
25
|
const J = (i, e, r, s) => {
|
package/fy-form-design/index.mjs
CHANGED
|
@@ -1174,7 +1174,7 @@ var Se = function() {
|
|
|
1174
1174
|
Ae,
|
|
1175
1175
|
!1,
|
|
1176
1176
|
null,
|
|
1177
|
-
"
|
|
1177
|
+
"31aa4f25",
|
|
1178
1178
|
null,
|
|
1179
1179
|
null
|
|
1180
1180
|
);
|
|
@@ -1251,7 +1251,7 @@ var Te = function() {
|
|
|
1251
1251
|
ze,
|
|
1252
1252
|
!1,
|
|
1253
1253
|
null,
|
|
1254
|
-
"
|
|
1254
|
+
"a7db64bd",
|
|
1255
1255
|
null,
|
|
1256
1256
|
null
|
|
1257
1257
|
);
|
|
@@ -1613,7 +1613,7 @@ var et = function() {
|
|
|
1613
1613
|
tt,
|
|
1614
1614
|
!1,
|
|
1615
1615
|
null,
|
|
1616
|
-
"
|
|
1616
|
+
"d0068d2b",
|
|
1617
1617
|
null,
|
|
1618
1618
|
null
|
|
1619
1619
|
);
|
package/fy-form-design/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dic[data-v-c46fca4d]{margin-bottom:5px;display:flex}.el-tag[data-v-49f19745]{vertical-align:top}.el-tag+.el-tag[data-v-49f19745]{margin-left:5px}.input-new-tag[data-v-49f19745]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-49f19745]{vertical-align:top;left:10px}.custom-tree-node[data-v-806989ec]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
|
1
|
+
.dic[data-v-31aa4f25]{margin-bottom:5px;display:flex}.el-tag[data-v-a7db64bd]{vertical-align:top}.el-tag+.el-tag[data-v-a7db64bd]{margin-left:5px}.input-new-tag[data-v-a7db64bd]{vertical-align:bottom;width:90px;margin-left:5px}.color-picker[data-v-a7db64bd]{vertical-align:top;left:10px}.custom-tree-node[data-v-d0068d2b]{flex:1;justify-content:space-between;align-items:center;padding-right:8px;font-size:14px;display:flex}.form-designer{background:#fff;outline:1px solid #e4e7ed;height:100%}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important;border-radius:10px!important;box-shadow:inset 0 0 6px transparent!important}.form-designer .fields-list{width:100%;height:100%;padding:10px 0}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{margin:0;padding:0 10px 10px;position:relative;overflow:hidden}.form-designer .fields-list .field-label{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:47%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{color:#333;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label>a span{vertical-align:middle;display:inline-block}.form-designer .fields-list .field-label-disabled{float:left;color:#333;white-space:nowrap;text-overflow:ellipsis;border:1px solid #f4f6fc;width:48%;margin:1%;font-size:12px;line-height:26px;display:block;position:relative;left:0;overflow:hidden}.form-designer .fields-list .field-label-disabled:hover{color:gray;border:1px dashed gray}.form-designer .fields-list .field-label-disabled>a{cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc;display:block}.form-designer .fields-list .field-label-disabled>a .icon{vertical-align:middle;margin-left:8px;margin-right:6px;font-size:14px;display:inline-block}.form-designer .fields-list .field-label-disabled>a span{vertical-align:middle;display:inline-block}.form-designer .widget-container{border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;flex:1}.form-designer .widget-container .widget-container-header{border-bottom:2px solid #e4e7ed;justify-content:space-between;align-items:center;display:flex;height:45px!important}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow-x:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{border-left:5px solid transparent;min-height:30px;margin:0;padding:5px 10px 18px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{z-index:1001;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{z-index:1002;position:absolute;bottom:-32px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{z-index:1002;position:absolute;bottom:-32px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{outline-offset:-1px;outline:1px dashed #ccc;width:100%;height:100%;min-height:103px;padding:10px 5px;display:flex;overflow-y:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar{width:6px!important;height:6px!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content::-webkit-scrollbar-thumb{background-color:#e5e7eb!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:90px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{width:33.3%;min-width:33.3%;height:100%;padding:1px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{z-index:1002;position:absolute;bottom:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{z-index:1002;position:absolute;bottom:0;right:30px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .widget-form-group{float:left;width:100%;padding:2px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{outline-offset:-1px;outline:1px dashed #ccc;height:100%;min-height:150px;padding-bottom:15px;overflow:hidden}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{box-sizing:border-box;content:"";background:#fff;border-left:5px solid #409eff;outline:0;height:100%;min-height:57px;margin:1px 2px 0;font-size:0;position:relative;overflow:hidden;width:0!important;min-width:0!important;padding:0!important}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{background:#fff;border-left:5px solid transparent;margin:3px;padding:10px;position:relative}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{color:#f56c6c;content:"*";margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline-offset:-1px;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline-offset:-1px;cursor:move;outline:1px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{z-index:1001;content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{z-index:1002;position:absolute;bottom:-24px;right:0}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{z-index:1002;position:absolute;bottom:-24px;right:34px}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{background:#ecf5ff;border-left:3px solid #409eff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{cursor:move;background:#ecf8ff}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{z-index:1001;position:absolute;bottom:-12px;right:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{z-index:1001;position:absolute;bottom:-12px;right:50px}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{z-index:1001;position:absolute;bottom:-12px;right:90px}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{box-sizing:border-box;content:"";background:#fff;border-top:5px solid #409eff;outline:0;width:100%;margin:2px 0;font-size:0;position:relative;overflow:hidden;height:0!important;padding:0!important}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{z-index:1000;background:#fff;height:45px;margin:0}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{margin:0;display:block;position:relative;top:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{align-items:center;width:100%;display:flex}.form-designer .widget-config-container .widget-config ul li .ghost{height:35px;font-size:0;list-style:none}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.form-designer .el-input-number.is-controls-right .el-input-number__decrease{border-left:none}.form-designer .el-input-number.is-controls-right .el-input-number__increase{border-bottom:none;border-left:none}.form-designer .el-date-editor,.form-designer .el-cascader,.form-designer .el-select,.form-designer .el-input-number{width:100%}.form-designer .editor-fullscreen{z-index:1003;box-sizing:border-box;background:#fff;width:100%;padding:20px;top:0;bottom:0;left:0;right:0;height:100%!important;position:fixed!important}.form-designer .editor-fullscreen i{top:20px!important;left:25px!important}.afd-drawer-foot{padding:20px;display:flex;position:absolute;bottom:0;left:0;right:0}.afd-drawer-foot button{width:50%}.afd-drawer-foot>span{width:50%;display:inline-block}.afd-drawer-foot>span button{width:100%}.afd-preview-form{height:83vh;overflow-y:auto}
|
package/fy-select/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { p as i, e as r } from "../chunks/event.lbJYeMJp.mjs";
|
|
|
2
2
|
import { s as c } from "../chunks/dic.7JBaVHv6.mjs";
|
|
3
3
|
import { b as d } from "../chunks/util.y1gUGRqi.mjs";
|
|
4
4
|
import { isBlank as p } from "@web-utils/core";
|
|
5
|
-
import { p as u } from "../chunks/packages.
|
|
5
|
+
import { p as u } from "../chunks/packages.2yUDw9GA.mjs";
|
|
6
6
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
7
7
|
const h = {
|
|
8
8
|
name: "FySelect",
|
package/fy-tree/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as d, o as l, a as r } from "../chunks/util.y1gUGRqi.mjs";
|
|
2
|
-
import { p as h } from "../chunks/permission.
|
|
2
|
+
import { p as h } from "../chunks/permission.bUiJNk5J.mjs";
|
|
3
3
|
import { isBlank as u } from "@web-utils/core";
|
|
4
4
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
5
5
|
const f = {
|
package/fy-u-editor/index.mjs
CHANGED
|
@@ -352,7 +352,7 @@ const E = {
|
|
|
352
352
|
accessKeySecret: i.accessKeySecret,
|
|
353
353
|
bucket: i.bucket
|
|
354
354
|
}));
|
|
355
|
-
(
|
|
355
|
+
(this.isAliOSS ? n.put(e.name, e) : this.$axios.post(d, l, { headers: o })).then((s) => {
|
|
356
356
|
let a;
|
|
357
357
|
this.isAliOSS ? a = s : this.isQiniuOSS ? (a = s.data, a.key = i.url + a.key) : typeof this.resKey == "function" ? a = this.resKey(s.data) : (a = O(s.data, this.resKey), a = a[this.urlKey]);
|
|
358
358
|
const y = this.homeUrl + a;
|
package/fy-upload/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as R, e as I } from "../chunks/event.lbJYeMJp.mjs";
|
|
2
2
|
import { B, i as F, p as N } from "../chunks/util.y1gUGRqi.mjs";
|
|
3
|
-
import { p as A } from "../chunks/packages.
|
|
3
|
+
import { p as A } from "../chunks/packages.2yUDw9GA.mjs";
|
|
4
4
|
import { isBlank as b } from "@web-utils/core";
|
|
5
5
|
import { n as K } from "../chunks/_plugin-vue2_normalizer.JwmUNtgn.mjs";
|
|
6
6
|
let d, g;
|
|
@@ -317,9 +317,9 @@ const H = {
|
|
|
317
317
|
}
|
|
318
318
|
s = this.ali || this.$AVUE.ali, u = J(s);
|
|
319
319
|
}
|
|
320
|
-
(
|
|
320
|
+
(this.isAliOss ? u.put(C.name, C, {
|
|
321
321
|
headers: this.headers
|
|
322
|
-
}) : this.$axios.post(_, l, { headers: o }))
|
|
322
|
+
}) : this.$axios.post(_, l, { headers: o })).then((r) => {
|
|
323
323
|
this.res = {}, this.isQiniuOss && (r.data.key = s.url + r.data.key), this.res = N(this.isAliOss ? r : r.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
|
|
324
324
|
}).catch((r) => {
|
|
325
325
|
this.hide(r);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/component",
|
|
3
3
|
"description": "Web Components",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.3",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -17,30 +17,30 @@
|
|
|
17
17
|
"@tinymce/tinymce-vue": "3.2.8",
|
|
18
18
|
"@wangeditor/editor": "^5.1.23",
|
|
19
19
|
"@wangeditor/editor-for-vue": "^1.0.2",
|
|
20
|
-
"@web-utils/core": "^3.0.
|
|
21
|
-
"@web-utils/integrations": "^3.0.
|
|
22
|
-
"@web-utils/vue": "^3.0.
|
|
23
|
-
"bpmn-js": "^
|
|
24
|
-
"bpmn-js-token-simulation": "^0.
|
|
20
|
+
"@web-utils/core": "^3.0.7",
|
|
21
|
+
"@web-utils/integrations": "^3.0.7",
|
|
22
|
+
"@web-utils/vue": "^3.0.7",
|
|
23
|
+
"bpmn-js": "^16.3.1",
|
|
24
|
+
"bpmn-js-token-simulation": "^0.33.0",
|
|
25
25
|
"codemirror": "^5.65.15",
|
|
26
26
|
"countup.js": "^2.8.0",
|
|
27
27
|
"dayjs": "^1.11.10",
|
|
28
|
-
"diagram-js": "
|
|
28
|
+
"diagram-js": "13.4.0",
|
|
29
29
|
"echarts": "^5.4.3",
|
|
30
30
|
"highlight.js": "^11.9.0",
|
|
31
31
|
"lodash-es": "^4.17.21",
|
|
32
32
|
"min-dash": "^4.1.1",
|
|
33
33
|
"min-dom": "^4.1.0",
|
|
34
|
-
"monaco-editor": "^0.
|
|
35
|
-
"overlayscrollbars": "^2.4.
|
|
36
|
-
"photoswipe": "^5.4.
|
|
34
|
+
"monaco-editor": "^0.45.0",
|
|
35
|
+
"overlayscrollbars": "^2.4.6",
|
|
36
|
+
"photoswipe": "^5.4.3",
|
|
37
37
|
"qrcode": "^1.5.3",
|
|
38
38
|
"quill": "^1.3.7",
|
|
39
39
|
"resize-detector": "^0.3.0",
|
|
40
40
|
"simple-uploader.js": "^0.6.0",
|
|
41
41
|
"tiny-svg": "^3.0.1",
|
|
42
42
|
"tinymce": "4.9.11",
|
|
43
|
-
"video.js": "^8.
|
|
43
|
+
"video.js": "^8.9.0",
|
|
44
44
|
"viewerjs": "^1.11.6",
|
|
45
45
|
"vue-cropper": "^0.6.4",
|
|
46
46
|
"vuedraggable": "^2.24.3",
|
package/toolbar/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { h as i } from "vue";
|
|
2
2
|
import { NOOP as u } from "@web-utils/core";
|
|
3
|
+
import f from "../toolbar-button/index.mjs";
|
|
4
|
+
import "../toolbar-button/style.css";
|
|
3
5
|
const h = {
|
|
4
6
|
back: {
|
|
5
7
|
label: "返回",
|
|
@@ -95,7 +97,7 @@ const h = {
|
|
|
95
97
|
icon: "el-icon-search",
|
|
96
98
|
separateLine: !1
|
|
97
99
|
}
|
|
98
|
-
},
|
|
100
|
+
}, v = {
|
|
99
101
|
name: "Toolbar",
|
|
100
102
|
provide() {
|
|
101
103
|
return {
|
|
@@ -138,10 +140,10 @@ const h = {
|
|
|
138
140
|
type: s,
|
|
139
141
|
separateLine: a = !0
|
|
140
142
|
}) {
|
|
141
|
-
var
|
|
142
|
-
let
|
|
143
|
-
const n = ((
|
|
144
|
-
return ["back", "cancel"].includes(e) ?
|
|
143
|
+
var l;
|
|
144
|
+
let r;
|
|
145
|
+
const n = ((l = this.label) == null ? void 0 : l[e]) || t;
|
|
146
|
+
return ["back", "cancel"].includes(e) ? r = this.goBack : r = (c) => (this.$listeners[e] || u)(c), i(f, {
|
|
145
147
|
attrs: {
|
|
146
148
|
"separate-line": a,
|
|
147
149
|
icon: o,
|
|
@@ -150,7 +152,7 @@ const h = {
|
|
|
150
152
|
type: s
|
|
151
153
|
},
|
|
152
154
|
on: {
|
|
153
|
-
click:
|
|
155
|
+
click: r
|
|
154
156
|
}
|
|
155
157
|
});
|
|
156
158
|
},
|
|
@@ -160,9 +162,9 @@ const h = {
|
|
|
160
162
|
createButton: e
|
|
161
163
|
} = this;
|
|
162
164
|
return ((s = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : s.call(o)) || this.buttons.map((a) => {
|
|
163
|
-
var n,
|
|
164
|
-
const
|
|
165
|
-
return
|
|
165
|
+
var n, l, c, p, b;
|
|
166
|
+
const r = h[a];
|
|
167
|
+
return r ? ((l = (n = this.$scopedSlots)[a]) == null ? void 0 : l.call(n)) || e(a, r) : a === "slot" && (b = (p = (c = this.$scopedSlots).default) == null ? void 0 : p.call(c, {
|
|
166
168
|
buttons: this.buttons,
|
|
167
169
|
footer: this.footer
|
|
168
170
|
})) != null ? b : null;
|
|
@@ -192,5 +194,5 @@ const h = {
|
|
|
192
194
|
}
|
|
193
195
|
};
|
|
194
196
|
export {
|
|
195
|
-
|
|
197
|
+
v as default
|
|
196
198
|
};
|