@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/present-view/index.mjs
CHANGED
|
@@ -1,37 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var x = Object.prototype.hasOwnProperty, $ = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var b = (e, t, o) => t in e ? y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, c = (e, t) => {
|
|
6
|
-
for (var o in t || (t = {}))
|
|
7
|
-
x.call(t, o) && b(e, o, t[o]);
|
|
8
|
-
if (h)
|
|
9
|
-
for (var o of h(t))
|
|
10
|
-
$.call(t, o) && b(e, o, t[o]);
|
|
11
|
-
return e;
|
|
12
|
-
}, f = (e, t) => _(e, g(t));
|
|
13
|
-
var d = (e, t, o) => new Promise((r, s) => {
|
|
14
|
-
var i = (n) => {
|
|
15
|
-
try {
|
|
16
|
-
a(o.next(n));
|
|
17
|
-
} catch (u) {
|
|
18
|
-
s(u);
|
|
19
|
-
}
|
|
20
|
-
}, l = (n) => {
|
|
21
|
-
try {
|
|
22
|
-
a(o.throw(n));
|
|
23
|
-
} catch (u) {
|
|
24
|
-
s(u);
|
|
25
|
-
}
|
|
26
|
-
}, a = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(i, l);
|
|
27
|
-
a((o = o.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { isInContainer as S, delay as F, hasOwn as p, toStringArray as k } from "@web-utils/core";
|
|
30
|
-
import { merge as B } from "@web-utils/integrations/lodash";
|
|
31
|
-
import L from "../resize-observer/index.mjs";
|
|
1
|
+
import { isInContainer as u, delay as m, hasOwn as a, toStringArray as h } from "@web-utils/core";
|
|
2
|
+
import { merge as b } from "@web-utils/integrations/lodash";
|
|
3
|
+
import p from "../resize-observer/index.mjs";
|
|
32
4
|
import "../resize-observer/style.css";
|
|
33
|
-
import { n as
|
|
34
|
-
const
|
|
5
|
+
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const f = [
|
|
35
7
|
"back",
|
|
36
8
|
"create",
|
|
37
9
|
"save",
|
|
@@ -51,17 +23,17 @@ const w = [
|
|
|
51
23
|
"disabled",
|
|
52
24
|
"reload",
|
|
53
25
|
"slot"
|
|
54
|
-
],
|
|
26
|
+
], w = f.map((e) => `${e}-down`), y = ["back", "withdraw", "edit"], c = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], l = (e, t) => {
|
|
55
27
|
if (e.classList.contains(t))
|
|
56
28
|
return e;
|
|
57
29
|
let o = e.parentNode;
|
|
58
30
|
for (; o && !o.classList.contains(t); )
|
|
59
31
|
o = o.parentNode;
|
|
60
32
|
return o.classList.contains(t) ? o : null;
|
|
61
|
-
},
|
|
33
|
+
}, _ = {
|
|
62
34
|
name: "PresentView",
|
|
63
35
|
components: {
|
|
64
|
-
ResizeObserver:
|
|
36
|
+
ResizeObserver: p
|
|
65
37
|
},
|
|
66
38
|
inject: {
|
|
67
39
|
flowContext: {
|
|
@@ -104,24 +76,24 @@ const w = [
|
|
|
104
76
|
},
|
|
105
77
|
computed: {
|
|
106
78
|
isFormLoading() {
|
|
107
|
-
return this.loading ||
|
|
79
|
+
return this.loading || a(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
108
80
|
},
|
|
109
81
|
toolbarProps() {
|
|
110
82
|
var r;
|
|
111
|
-
const e = {}, t = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o =
|
|
112
|
-
return o.buttons = t || ["back"], o.buttons =
|
|
83
|
+
const e = {}, t = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = b({}, this.toolbarAttrs, e);
|
|
84
|
+
return o.buttons = t || ["back"], o.buttons = h(o.buttons), o;
|
|
113
85
|
}
|
|
114
86
|
},
|
|
115
87
|
created() {
|
|
116
88
|
this.$on("FormView.addTab", (e) => {
|
|
117
89
|
e && (this.activeIndex === -1 && (this.activeIndex = 0), this.tabs.push(e), this.tabs = this.tabs.sort((t, o) => {
|
|
118
|
-
const r =
|
|
90
|
+
const r = l(t.$el, "form-card"), s = l(o.$el, "form-card");
|
|
119
91
|
if (r === s) {
|
|
120
|
-
const i = [].indexOf.call(t.$el.parentNode.children, t.$el),
|
|
121
|
-
return i -
|
|
92
|
+
const i = [].indexOf.call(t.$el.parentNode.children, t.$el), n = [].indexOf.call(o.$el.parentNode.children, o.$el);
|
|
93
|
+
return i - n;
|
|
122
94
|
} else {
|
|
123
|
-
const i =
|
|
124
|
-
return
|
|
95
|
+
const i = l(r, "form-scroller"), n = [].indexOf.call(i.children, r), d = [].indexOf.call(i.children, s);
|
|
96
|
+
return n - d;
|
|
125
97
|
}
|
|
126
98
|
}), e.active && (this.activeIndex = this.tabs.indexOf(e), this.tabClick(e, this.activeIndex)));
|
|
127
99
|
}), this.$on("FormView.removeTab", (e) => {
|
|
@@ -131,17 +103,15 @@ const w = [
|
|
|
131
103
|
}
|
|
132
104
|
}), this.onFormResize({ width: window.document.body.clientWidth });
|
|
133
105
|
},
|
|
134
|
-
activated() {
|
|
135
|
-
|
|
136
|
-
this.$refs.formScroller && (yield this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
|
|
137
|
-
});
|
|
106
|
+
async activated() {
|
|
107
|
+
this.$refs.formScroller && (await this.$nextTick(), this.scrollTo(this.formScrollTop, this.formScrollLeft));
|
|
138
108
|
},
|
|
139
109
|
methods: {
|
|
140
110
|
getToolbarSlotKeys() {
|
|
141
|
-
return Object.keys(this.$scopedSlots).filter((e) =>
|
|
111
|
+
return Object.keys(this.$scopedSlots).filter((e) => f.includes(e));
|
|
142
112
|
},
|
|
143
113
|
getFooterSlotKeys() {
|
|
144
|
-
return Object.keys(this.$scopedSlots).filter((e) =>
|
|
114
|
+
return Object.keys(this.$scopedSlots).filter((e) => w.includes(e));
|
|
145
115
|
},
|
|
146
116
|
getFooterSlotKey(e) {
|
|
147
117
|
return e.replace("-down", "");
|
|
@@ -150,23 +120,19 @@ const w = [
|
|
|
150
120
|
this.showNav = e > 1500;
|
|
151
121
|
},
|
|
152
122
|
onEdit() {
|
|
153
|
-
!this.toolbarListeners.edit &&
|
|
123
|
+
!this.toolbarListeners.edit && a(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
154
124
|
},
|
|
155
|
-
tabClick(e, t) {
|
|
156
|
-
|
|
157
|
-
this.showNav && (yield this.$nextTick(), e.expand || (e.open(), yield F(200), yield this.$nextTick()), this.tryByClick = !0, this.activeIndex = t, this.$refs.formScroller.scrollTop = e.$el.offsetTop - 10);
|
|
158
|
-
});
|
|
125
|
+
async tabClick(e, t) {
|
|
126
|
+
this.showNav && (await this.$nextTick(), e.expand || (e.open(), await m(200), await this.$nextTick()), this.tryByClick = !0, this.activeIndex = t, this.$refs.formScroller.scrollTop = e.$el.offsetTop - 10);
|
|
159
127
|
},
|
|
160
|
-
tryActive() {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
});
|
|
128
|
+
async tryActive() {
|
|
129
|
+
if (this.showNav) {
|
|
130
|
+
for (let e = 0; e < this.tabs.length; e++)
|
|
131
|
+
if (u(this.tabs[e].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
132
|
+
this.activeIndex = e;
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
170
136
|
},
|
|
171
137
|
onFormScroll() {
|
|
172
138
|
this.formScrollTop = this.$refs.formScroller.scrollTop, this.formScrollLeft = this.$refs.formScroller.scrollLeft, !this.tryByClick && this.tabs.length && window.requestAnimationFrame(this.tryActive), this.tryByClick = !1;
|
|
@@ -175,15 +141,15 @@ const w = [
|
|
|
175
141
|
e && (this.$refs.formScroller.scrollTop = e), t && (this.$refs.formScroller.scrollLeft = t);
|
|
176
142
|
},
|
|
177
143
|
getToolbarButtons(e) {
|
|
178
|
-
return e.filter((t) => !
|
|
144
|
+
return e.filter((t) => !c.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
|
|
179
145
|
},
|
|
180
146
|
getFooterBarButtons(e) {
|
|
181
|
-
let t = e.filter((o) => !
|
|
147
|
+
let t = e.filter((o) => !y.includes(o) && (c.includes(o) || o.indexOf(":down") > -1)).map((o) => o.replace(":down", ""));
|
|
182
148
|
return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
|
|
183
149
|
}
|
|
184
150
|
}
|
|
185
151
|
};
|
|
186
|
-
var
|
|
152
|
+
var g = function() {
|
|
187
153
|
var t = this, o = t._self._c;
|
|
188
154
|
return o("div", { class: ["form-view", t.className] }, [o("div", { directives: [{ name: "show", rawName: "v-show", value: !t.isFormLoading, expression: "!isFormLoading" }], staticClass: "form-view-toolbar" }, [t._t("form-view-toolbar", function() {
|
|
189
155
|
return [o("Toolbar", t._g(t._b({ directives: [{ name: "show", rawName: "v-show", value: t.showToolbar, expression: "showToolbar" }], on: { edit: t.onEdit }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r }) {
|
|
@@ -194,7 +160,7 @@ var O = function() {
|
|
|
194
160
|
}, proxy: !0 };
|
|
195
161
|
}), { key: "toolbar-right", fn: function() {
|
|
196
162
|
return [t._t("toolbar-right")];
|
|
197
|
-
}, proxy: !0 }], null, !0) }, "Toolbar",
|
|
163
|
+
}, proxy: !0 }], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getToolbarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners))];
|
|
198
164
|
})], 2), o("div", { directives: [{ name: "show", rawName: "v-show", value: !t.isFormLoading, expression: "!isFormLoading" }], staticClass: "form-scroller-wrapper" }, [o("div", { ref: "formScroller", class: ["form-scroller", "absolute-box", t.contentClass], on: { scroll: t.onFormScroll } }, [t.notForm ? o("div", { staticClass: "not-form", style: { width: t.formWidth } }, [t.title ? o("div", { staticClass: "form-view-title" }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
199
165
|
return [o("EmptyView", { attrs: { "empty-tips": "请添加表单内容" } })];
|
|
200
166
|
}), o("Toolbar", t._g(t._b({ attrs: { footer: "" }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r, footer: s }) {
|
|
@@ -203,7 +169,7 @@ var O = function() {
|
|
|
203
169
|
return { key: t.getFooterSlotKey(r), fn: function() {
|
|
204
170
|
return [t._t(r)];
|
|
205
171
|
}, proxy: !0 };
|
|
206
|
-
})], null, !0) }, "Toolbar",
|
|
172
|
+
})], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getFooterBarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners)), t.$scopedSlots["form-bottom"] ? t._t("form-bottom") : t._e()], 2) : o("div", { class: ["form-card", { "un-limit": t.unLimit }], style: { width: `calc(${t.formWidth} + 40px)` } }, [o("div", { staticClass: "form-content" }, [t.title ? o("div", { staticClass: "form-view-title" }, [t._v(t._s(t.title))]) : t._e(), t._t("default", function() {
|
|
207
173
|
return [o("EmptyView", { attrs: { "empty-tips": "请添加表单内容" } })];
|
|
208
174
|
}), t.getFooterBarButtons(t.toolbarProps.buttons).length ? o("Toolbar", t._g(t._b({ attrs: { footer: "" }, scopedSlots: t._u([{ key: "default", fn: function({ buttons: r, footer: s }) {
|
|
209
175
|
return [t._t("footer-button", null, { buttons: r, footer: s })];
|
|
@@ -211,20 +177,20 @@ var O = function() {
|
|
|
211
177
|
return { key: t.getFooterSlotKey(r), fn: function() {
|
|
212
178
|
return [t._t(r)];
|
|
213
179
|
}, proxy: !0 };
|
|
214
|
-
})], null, !0) }, "Toolbar",
|
|
180
|
+
})], null, !0) }, "Toolbar", { ...t.toolbarProps, buttons: t.getFooterBarButtons(t.toolbarProps.buttons) }, !1), t.toolbarListeners)) : t._e()], 2)]), t.$scopedSlots["form-bottom"] || t.$parent.$options.flowForm && t.flowContext.logs.length ? o("div", { class: ["form-card", { "un-limit": t.unLimit }], staticStyle: { "min-height": "0" }, style: { width: `calc(${t.formWidth} + 40px)` } }, [o("div", { staticClass: "form-content" }, [o("FormItemGroup", { attrs: { "block-title": "流程日志" } }, [o("FlowLog", { attrs: { fetch: !1, "show-title": !1, "business-key": t.$parent.bizKey } })], 1), t._t("form-bottom")], 2)]) : t._e()]), o("ResizeObserver", { on: { notify: t.onFormResize } })], 1), t.formNav && !t.isFormLoading && t.showNav && t.tabs.length ? o("div", { staticClass: "form-nav" }, [o("div", { staticClass: "form-nav-header" }, [t._v("表单导航")]), o("ul", { staticClass: "form-nav-list" }, t._l(t.tabs, function(r, s) {
|
|
215
181
|
return o("li", { key: r.blockTitle, class: ["form-nav-item", { active: t.activeIndex === s }], on: { click: function(i) {
|
|
216
182
|
return t.tabClick(r, s);
|
|
217
183
|
} } }, [t._v(" " + t._s(r.blockTitle) + " ")]);
|
|
218
184
|
}), 0)]) : t._e(), t.isFormLoading ? o("LoadingView", { attrs: { "icon-size": "34px", "font-size": "16px" } }) : t._e()], 1);
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
185
|
+
}, x = [], $ = /* @__PURE__ */ v(
|
|
186
|
+
_,
|
|
187
|
+
g,
|
|
188
|
+
x,
|
|
223
189
|
!1,
|
|
224
190
|
null,
|
|
225
191
|
null
|
|
226
192
|
);
|
|
227
|
-
const
|
|
193
|
+
const C = $.exports;
|
|
228
194
|
export {
|
|
229
|
-
|
|
195
|
+
C as default
|
|
230
196
|
};
|
package/present-view/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-view{flex-direction:column;height:100%;display:flex}.form-view .form-scroller-wrapper{flex:1;position:relative}.form-view .not-form{margin:0 auto}.form-view .form-view-toolbar{overflow:hidden}.form-view .form-scroller{flex:1;overflow:auto}.form-view .form-scroller .el-row{position:static}.form-view .form-content .el-form .el-row{padding-right:2rem}.form-view .form-content .el-form .el-row .el-row{padding-right:0}.form-view .form-card{color:#303133;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;max-width:1000px;margin:14px auto;padding:20px;transition:all .3s;box-shadow:0 2px 12px
|
|
1
|
+
.form-view{flex-direction:column;height:100%;display:flex}.form-view .form-scroller-wrapper{flex:1;position:relative}.form-view .not-form{margin:0 auto}.form-view .form-view-toolbar{overflow:hidden}.form-view .form-scroller{flex:1;overflow:auto}.form-view .form-scroller .el-row{position:static}.form-view .form-content .el-form .el-row{padding-right:2rem}.form-view .form-content .el-form .el-row .el-row{padding-right:0}.form-view .form-card{color:#303133;background-color:#fff;border:1px solid #ebeef5;border-radius:4px;max-width:1000px;margin:14px auto;padding:20px;transition:all .3s;box-shadow:0 2px 12px #0000001a}.form-view .form-card.un-limit{max-width:100%}.form-view .form-nav{background-color:#fff;position:absolute;top:55px;left:20px;box-shadow:0 2px 12px #0000001a}.form-view .form-nav-list{min-width:180px;padding:10px 20px}.form-view .form-nav-header{color:#e34e55;background-color:#f3f5fb;padding:5px 20px;font-size:15px;font-weight:700;position:relative}.form-view .form-nav-item{cursor:pointer;padding:5px 0;position:relative;font-family:element-icons!important}.form-view .form-nav-item.active,.form-view .form-nav-item:hover{color:#e34e55;font-weight:700}.form-view .form-nav-item.active:before{content:"";position:absolute;left:-14px}.form-view .form-view-title{color:#333;text-align:center;background-color:#fff;width:100%;height:36px;margin-top:-10px;margin-bottom:10px;font-size:22px;line-height:36px}.form-view .tip{background-color:#ecf8ff;border-left:5px solid #50bfff;border-radius:4px;margin:20px 0;padding:8px 16px}.form-view .tip p{color:#5e6d82;font-size:14px;line-height:1.5em}.form-view .tip.danger{background-color:#fde2e2;border-left-color:#f56c6c}.form-view .tip.danger p{color:#564646}.form-view .tip.warning{background-color:#f7efe2;border-left-color:#e6a23c}.form-view .tip.warning p{color:#5d564b}.form-view .select-num{color:#898989;font-size:12px}.form-view .select-num .num{font-family:impact,Constantia,Georgia;font-size:19px}.form-view .el-table .el-table__header th{color:#595959;background:#fff;font-weight:400}.form-view .el-table td{padding:4px 0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.resize-observer{z-index:-1;opacity:0;pointer-events:none;background-color
|
|
1
|
+
.resize-observer{z-index:-1;opacity:0;pointer-events:none;background-color:#0000;border:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}.resize-observer>object{z-index:-1;pointer-events:none;width:100%;height:100%;display:block;position:absolute;top:0;left:0;overflow:hidden}
|
package/search/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-search{padding:0 20px}.avue-search__item{border-bottom:1px dashed #e8e8e8;align-items:flex-start;padding:20px 0 10px;display:flex}.avue-search__item:last-child{border-bottom:none}.avue-search__tags{color
|
|
1
|
+
.avue-search{padding:0 20px}.avue-search__item{border-bottom:1px dashed #e8e8e8;align-items:flex-start;padding:20px 0 10px;display:flex}.avue-search__item:last-child{border-bottom:none}.avue-search__tags{color:#000000a6;white-space:nowrap;cursor:pointer;margin-bottom:12px;margin-right:24px;padding:0 12px;font-size:14px;display:inline-block}.avue-search__tags:hover{color:#1890ff}.avue-search__tags--active{color:#fff;background-color:#1890ff;border-radius:5px}.avue-search__tags--active:hover{color:#fff;opacity:.85}.avue-search__title{box-sizing:border-box;text-align:right;width:120px;margin:0;padding:0 20px;font-size:14px;display:inline-block}.avue-search__content{width:calc(100% - 190px);display:inline-block}.avue-search__content .el-tag{margin-bottom:10px;margin-right:10px}
|
package/search-popover/index.mjs
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
i(l);
|
|
7
|
-
}
|
|
8
|
-
}, h = (o) => {
|
|
9
|
-
try {
|
|
10
|
-
a(t.throw(o));
|
|
11
|
-
} catch (l) {
|
|
12
|
-
i(l);
|
|
13
|
-
}
|
|
14
|
-
}, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(n, h);
|
|
15
|
-
a((t = t.apply(r, e)).next());
|
|
16
|
-
});
|
|
17
|
-
import { isInContainer as u, copy as d } from "@web-utils/core";
|
|
18
|
-
import p from "element-ui/lib/utils/clickoutside";
|
|
19
|
-
import { z as f } from "../chunks/util.DqFv_pWg.mjs";
|
|
20
|
-
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
21
|
-
const m = {
|
|
1
|
+
import { isInContainer as n, copy as a } from "@web-utils/core";
|
|
2
|
+
import l from "element-ui/lib/utils/clickoutside";
|
|
3
|
+
import { z as c } from "../chunks/util.DqFv_pWg.mjs";
|
|
4
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const u = {
|
|
22
6
|
name: "SearchPopover",
|
|
23
7
|
directives: {
|
|
24
|
-
ClickOutside:
|
|
8
|
+
ClickOutside: l
|
|
25
9
|
},
|
|
26
10
|
props: {
|
|
27
11
|
services: {
|
|
@@ -47,8 +31,8 @@ const m = {
|
|
|
47
31
|
},
|
|
48
32
|
evalResult() {
|
|
49
33
|
try {
|
|
50
|
-
return
|
|
51
|
-
} catch
|
|
34
|
+
return c(this.keyword);
|
|
35
|
+
} catch {
|
|
52
36
|
return "";
|
|
53
37
|
}
|
|
54
38
|
}
|
|
@@ -68,13 +52,11 @@ const m = {
|
|
|
68
52
|
window.removeEventListener("keydown", this.keydown);
|
|
69
53
|
},
|
|
70
54
|
methods: {
|
|
71
|
-
onItemClick(r) {
|
|
72
|
-
|
|
73
|
-
r.path && (this.hidePopover(), yield this.$router.push(r.path));
|
|
74
|
-
});
|
|
55
|
+
async onItemClick(r) {
|
|
56
|
+
r.path && (this.hidePopover(), await this.$router.push(r.path));
|
|
75
57
|
},
|
|
76
58
|
copyEvalResult() {
|
|
77
|
-
return
|
|
59
|
+
return a(this.evalResult);
|
|
78
60
|
},
|
|
79
61
|
hidePopover() {
|
|
80
62
|
this.showPopover = !1;
|
|
@@ -85,14 +67,12 @@ const m = {
|
|
|
85
67
|
mouseHoverItem(r, e) {
|
|
86
68
|
this.currentIndex = e;
|
|
87
69
|
},
|
|
88
|
-
keydown(r) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this.showPopover === !0 && (r.key === "Escape" && this.hidePopover(), r.key === "Enter" && (this.currentItem ? this.currentItem.url ? (window.open(this.currentItem.url, "_blank"), this.hidePopover()) : this.currentItem.path && (yield this.onItemClick(this.currentItem)) : this.copyEvalResult()), r.key === "ArrowUp" && (this.currentIndex--, this.currentIndex < 0 && (this.currentIndex = this.filterList.length - 1), this.scrollIntoView(this.currentIndex)), r.key === "ArrowDown" && (this.currentIndex++, this.currentIndex >= this.filterList.length && (this.currentIndex = 0), this.scrollIntoView(this.currentIndex)));
|
|
95
|
-
});
|
|
70
|
+
async keydown(r) {
|
|
71
|
+
if (r.key === "Shift") {
|
|
72
|
+
const e = Date.now() - this.last;
|
|
73
|
+
e > 0 && e < 500 ? (this.showPopover = !0, await this.$nextTick(), this.$refs.searchInput.focus()) : this.last = Date.now();
|
|
74
|
+
}
|
|
75
|
+
this.showPopover === !0 && (r.key === "Escape" && this.hidePopover(), r.key === "Enter" && (this.currentItem ? this.currentItem.url ? (window.open(this.currentItem.url, "_blank"), this.hidePopover()) : this.currentItem.path && await this.onItemClick(this.currentItem) : this.copyEvalResult()), r.key === "ArrowUp" && (this.currentIndex--, this.currentIndex < 0 && (this.currentIndex = this.filterList.length - 1), this.scrollIntoView(this.currentIndex)), r.key === "ArrowDown" && (this.currentIndex++, this.currentIndex >= this.filterList.length && (this.currentIndex = 0), this.scrollIntoView(this.currentIndex)));
|
|
96
76
|
},
|
|
97
77
|
scrollIntoView(r) {
|
|
98
78
|
if (r === 0) {
|
|
@@ -104,35 +84,35 @@ const m = {
|
|
|
104
84
|
return;
|
|
105
85
|
}
|
|
106
86
|
const e = this.$refs.ul.querySelector(`#item-${r}`);
|
|
107
|
-
|
|
87
|
+
n(e, this.$refs.ul, { topOffset: -78, bottomOffset: 78 }) || (this.$refs.ul.scrollTop = e.offsetTop - e.clientHeight + 20);
|
|
108
88
|
}
|
|
109
89
|
}
|
|
110
90
|
};
|
|
111
|
-
var
|
|
91
|
+
var d = function() {
|
|
112
92
|
var e = this, t = e._self._c;
|
|
113
93
|
return t("div", { directives: [{ name: "show", rawName: "v-show", value: e.showPopover, expression: "showPopover" }, { name: "click-outside", rawName: "v-click-outside", value: e.hidePopover, expression: "hidePopover" }], staticClass: "search-popover" }, [t("div", { staticStyle: { padding: "10px" } }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: e.keyword, expression: "keyword" }], ref: "searchInput", staticClass: "search-input", attrs: { placeholder: e.currentItem ? e.currentItem.name : "输入关键字搜索 ..." }, domProps: { value: e.keyword }, on: { input: function(s) {
|
|
114
94
|
s.target.composing || (e.keyword = s.target.value);
|
|
115
95
|
} } })]), t("ul", { ref: "ul", staticStyle: { flex: "1", overflow: "auto", "list-style-type": "none" } }, [e.filterList.length ? e._l(e.filterList, function(s, i) {
|
|
116
|
-
return t("li", { key: s.name + i, staticClass: "search-li", attrs: { id: `item-${i}` }, on: { mousemove: function(
|
|
96
|
+
return t("li", { key: s.name + i, staticClass: "search-li", attrs: { id: `item-${i}` }, on: { mousemove: function(o) {
|
|
117
97
|
return e.mouseHoverItem(s, i);
|
|
118
|
-
} } }, [t("a", { class: ["search-item", { active: e.currentIndex === i }], attrs: { target: s.url ? "_blank" : "", rel: "noopener noreferrer", href: s.url ? s.url : "javascript:void(0)" }, on: { click: function(
|
|
98
|
+
} } }, [t("a", { class: ["search-item", { active: e.currentIndex === i }], attrs: { target: s.url ? "_blank" : "", rel: "noopener noreferrer", href: s.url ? s.url : "javascript:void(0)" }, on: { click: function(o) {
|
|
119
99
|
return e.onItemClick(s);
|
|
120
100
|
} } }, [t("div", { staticClass: "search-icon" }, [t("i", { class: s.icon || "el-icon-menu" })]), t("div", { staticStyle: { flex: "1", "box-sizing": "border-box", padding: "0 10px", "overflow-x": "hidden", "text-align": "left" } }, [t("p", { staticStyle: { "margin-bottom": "4px", "font-size": "16px" } }, [e._v(e._s(s.name))]), t("p", { staticClass: "url" }, [e._v(e._s(s.url || s.path))])]), t("div", { staticClass: "search-icon search-action" }, [t("svg", { staticClass: "action", attrs: { width: "20", height: "20", viewBox: "0 0 20 20" } }, [t("g", { attrs: { stroke: "currentColor", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M18 3v4c0 2-2 4-4 4H2" } }), t("path", { attrs: { d: "M8 17l-6-6 6-6" } })])])])])]);
|
|
121
101
|
}) : e.evalResult !== "" ? t("li", { staticClass: "search-li", on: { click: e.copyEvalResult, mousemove: function(s) {
|
|
122
102
|
return e.mouseHoverItem({}, -1);
|
|
123
103
|
} } }, [t("a", { class: ["search-item", { active: e.currentIndex === -1 }], attrs: { rel: "noopener noreferrer", href: "javascript:void(0)" } }, [e._m(0), t("div", { staticStyle: { flex: "1", "box-sizing": "border-box", padding: "0 10px", "overflow-x": "hidden", "text-align": "left" } }, [t("p", { staticStyle: { "margin-bottom": "4px", "font-size": "16px" } }, [e._v("Result: " + e._s(e.evalResult))]), t("p", { staticClass: "url" }, [e._v("点击或这按 Enter 键复制")])]), t("div", { staticClass: "search-icon search-action" }, [t("svg", { staticClass: "action", attrs: { width: "20", height: "20", viewBox: "0 0 20 20" } }, [t("g", { attrs: { stroke: "currentColor", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [t("path", { attrs: { d: "M18 3v4c0 2-2 4-4 4H2" } }), t("path", { attrs: { d: "M8 17l-6-6 6-6" } })])])])])]) : t("li", { staticStyle: { display: "flex", "align-items": "center", "justify-content": "center", height: "100%", color: "#808080" } }, [e._v("Sorry,no result !")])], 2), t("div", { staticClass: "footer-tips" }, [t("span", { staticClass: "keyboard-key" }, [t("svg", { attrs: { width: "15", height: "15" } }, [t("g", { attrs: { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "1.2" } }, [t("path", { attrs: { d: "M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3" } })])])]), t("span", { staticStyle: { "margin-right": "20px", "font-size": "12px" } }, [e._v("选择")]), t("span", { staticClass: "keyboard-key" }, [t("svg", { attrs: { width: "15", height: "15" } }, [t("g", { attrs: { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "1.2" } }, [t("path", { attrs: { d: "M7.5 3.5v8M10.5 8.5l-3 3-3-3" } })])])]), t("span", { staticClass: "keyboard-key" }, [t("svg", { attrs: { width: "15", height: "15" } }, [t("g", { attrs: { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "1.2" } }, [t("path", { attrs: { d: "M7.5 11.5v-8M10.5 6.5l-3-3-3 3" } })])])]), t("span", { staticStyle: { "margin-right": "20px", "font-size": "12px" } }, [e._v("切换")]), t("span", { staticClass: "keyboard-key" }, [t("svg", { attrs: { width: "15", height: "15" } }, [t("g", { attrs: { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "1.2" } }, [t("path", { attrs: { d: "M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956" } })])])]), t("span", { staticStyle: { "font-size": "12px" } }, [e._v("关闭")])])]);
|
|
124
|
-
},
|
|
104
|
+
}, p = [function() {
|
|
125
105
|
var r = this, e = r._self._c;
|
|
126
106
|
return e("div", { staticClass: "search-icon" }, [e("i", { staticClass: "fa fa-table" })]);
|
|
127
|
-
}],
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
107
|
+
}], f = /* @__PURE__ */ h(
|
|
108
|
+
u,
|
|
109
|
+
d,
|
|
110
|
+
p,
|
|
131
111
|
!1,
|
|
132
112
|
null,
|
|
133
113
|
null
|
|
134
114
|
);
|
|
135
|
-
const
|
|
115
|
+
const y = f.exports;
|
|
136
116
|
export {
|
|
137
|
-
|
|
117
|
+
y as default
|
|
138
118
|
};
|
package/search-popover/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.search-popover{z-index:100;background-color:#f5f6f7;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACZJREFUeNpi/PTpEwMY8PLyMsFZnz9/ZoKzgAzG////Q1hAABBgAFeiDto+NxIZAAAAAElFTkSuQmCC);background-repeat:repeat;border:1px solid #1989fa;border-radius:4px;flex-direction:column;width:560px;height:500px;display:inline-flex;position:fixed;top:0;left:0;overflow:hidden;transform:translate(calc(50vw - 280px),15%)}.search-popover .footer-tips{text-align:left;border-top:1px solid #1989fa;padding:10px}.search-popover .keyboard-key{background:linear-gradient(-225deg,#d5dbe4,#f8f8f8);border-radius:2px;justify-content:center;align-items:center;width:20px;height:18px;margin-right:.4em;padding-bottom:2px;display:inline-flex;box-shadow:inset 0 -2px #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px
|
|
1
|
+
.search-popover{z-index:100;background-color:#f5f6f7;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACZJREFUeNpi/PTpEwMY8PLyMsFZnz9/ZoKzgAzG////Q1hAABBgAFeiDto+NxIZAAAAAElFTkSuQmCC);background-repeat:repeat;border:1px solid #1989fa;border-radius:4px;flex-direction:column;width:560px;height:500px;display:inline-flex;position:fixed;top:0;left:0;overflow:hidden;transform:translate(calc(50vw - 280px),15%)}.search-popover .footer-tips{text-align:left;border-top:1px solid #1989fa;padding:10px}.search-popover .keyboard-key{background:linear-gradient(-225deg,#d5dbe4,#f8f8f8);border-radius:2px;justify-content:center;align-items:center;width:20px;height:18px;margin-right:.4em;padding-bottom:2px;display:inline-flex;box-shadow:inset 0 -2px #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px #1e235a66}.search-popover .search-input{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #1989fa;border-radius:4px;outline:none;width:100%;height:46px;padding:10px}.search-popover .search-li{padding:10px}.search-popover .search-icon{color:#969faf;flex-shrink:0;font-size:24px}.search-popover .search-item{box-sizing:border-box;color:#000;background-color:#fff;border-radius:4px;align-items:center;padding:10px;text-decoration:none;display:flex;overflow-x:hidden;box-shadow:0 1px 3px #d4d9e1}.search-popover .search-item .search-action{display:none}.search-popover .search-item .url{color:#969faf;white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow-x:hidden}.search-popover .search-item.active{color:#fff;background-color:#1989fa}.search-popover .search-item.active .url{color:#fff}.search-popover .search-item.active .search-action{display:inline-block}.search-popover .search-item.active .search-icon{color:#fff}
|
package/sign/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ const x = {
|
|
|
60
60
|
init() {
|
|
61
61
|
this.canvas = this.$refs.canvas;
|
|
62
62
|
const e = this.canvas, s = this;
|
|
63
|
-
typeof document.ontouchstart
|
|
63
|
+
typeof document.ontouchstart < "u" ? (e.addEventListener("touchmove", d, !1), e.addEventListener("touchstart", u, !1), e.addEventListener("touchend", h, !1)) : (e.addEventListener("mousemove", d, !1), e.addEventListener("mousedown", u, !1), e.addEventListener("mouseup", h, !1), e.addEventListener("mouseleave", h, !1)), this.context = e.getContext("2d");
|
|
64
64
|
const n = this.context;
|
|
65
65
|
this.linex = [], this.liney = [], this.linen = [];
|
|
66
66
|
let r = 1, t = 30, o = 0;
|
package/sign-panel/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.sign-panel{-webkit-user-select:none
|
|
1
|
+
.sign-panel{-webkit-user-select:none;user-select:none;background:#fff;justify-content:center;align-items:flex-start;width:100%}.sign-panel .sign-canvas{background:#ffff9b00;border:1px solid #ccc;width:100%;max-width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}.sign-panel .sign-tool-bar{border:1px solid #ccc;border-top:none;width:100%;display:flex}.sign-panel .sign-tips{-webkit-user-select:none;user-select:none;pointer-events:none}.sign-panel .sign-button{text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:#ebeef5;padding:6px;line-height:1.6}.sign-panel .sign-button:hover{color:#1989fa;background-color:#d0d4de}.sign-panel .sign-button:nth-child(n){border-right:1px solid #ccc}.sign-panel .sign-button:last-child{border:none!important}.sign-panel .sign-watermark{color:#eee;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.sign-panel .sign-view{background-color:#fff;border:1px solid #eee;justify-content:center;align-items:center;min-width:212px;height:80px;display:flex;position:relative}.sign-panel .sign-edit-icon{position:absolute;bottom:4px;right:4px}.sign-panel .sign-image{min-width:160px;height:80px;display:inline-block}.sign-panel .sign-edit{background-color:#fff;flex-direction:column;align-items:center;max-width:100%;display:flex}.sign-panel .sign-draw-area{max-width:100%;position:relative}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const o = {
|
|
3
|
+
name: "SkeletonPanel"
|
|
4
|
+
}, s = /* @__PURE__ */ Object.assign(o, {
|
|
5
|
+
props: {
|
|
6
|
+
flexColumn: Boolean,
|
|
7
|
+
flexRow: Boolean,
|
|
8
|
+
hideLeft: Boolean,
|
|
9
|
+
useTab: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !0
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
return { __sfc: !0 };
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var a = function() {
|
|
19
|
+
var e = this, t = e._self._c;
|
|
20
|
+
return e._self._setupProxy, t("div", { staticClass: "skeleton-panel" }, [e.hideLeft ? e._e() : t("div", { staticClass: "skeleton-panel-left" }, [e.useTab ? t("ElTabs", { attrs: { "tab-position": "top", stretch: "" } }, [e._t("left", function() {
|
|
21
|
+
return [e._v("请添加内容")];
|
|
22
|
+
})], 2) : e._t("left", function() {
|
|
23
|
+
return [e._v("请添加内容")];
|
|
24
|
+
})], 2), t("div", { class: ["skeleton-panel-right", { "flex-column": e.flexColumn, "flex-row": e.flexRow }] }, [e._t("default", function() {
|
|
25
|
+
return [e._v("请添加内容")];
|
|
26
|
+
})], 2)]);
|
|
27
|
+
}, r = [], _ = /* @__PURE__ */ l(
|
|
28
|
+
s,
|
|
29
|
+
a,
|
|
30
|
+
r,
|
|
31
|
+
!1,
|
|
32
|
+
null,
|
|
33
|
+
null
|
|
34
|
+
);
|
|
35
|
+
const u = _.exports;
|
|
36
|
+
export {
|
|
37
|
+
u as default
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.skeleton-panel{background-color:#fff;flex-direction:row;height:100%;display:flex;overflow:auto}.skeleton-panel .skeleton-panel-right{flex:auto;height:100%;overflow:auto}.skeleton-panel .skeleton-panel-left{border-right:1px solid #ccc;flex-shrink:0;min-width:200px;height:100%;padding:0 10px;overflow:auto}
|
package/split-pane/index.mjs
CHANGED
|
@@ -1,41 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
a(s.next(r));
|
|
5
|
-
} catch (f) {
|
|
6
|
-
i(f);
|
|
7
|
-
}
|
|
8
|
-
}, c = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
a(s.throw(r));
|
|
11
|
-
} catch (f) {
|
|
12
|
-
i(f);
|
|
13
|
-
}
|
|
14
|
-
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(n, c);
|
|
15
|
-
a((s = s.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
18
|
-
import d from "../resize-observer/index.mjs";
|
|
1
|
+
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
import l from "../resize-observer/index.mjs";
|
|
19
3
|
import "../resize-observer/style.css";
|
|
20
|
-
function
|
|
4
|
+
function h(e, t) {
|
|
21
5
|
for (let s = 0; s < t.length; s++)
|
|
22
6
|
if (e === t[s])
|
|
23
7
|
return !0;
|
|
24
8
|
return !1;
|
|
25
9
|
}
|
|
26
|
-
const
|
|
10
|
+
const n = (function() {
|
|
27
11
|
return document.addEventListener ? function(e, t, s) {
|
|
28
12
|
e && t && s && e.addEventListener(t, s, !1);
|
|
29
13
|
} : function(e, t, s) {
|
|
30
14
|
e && t && s && e.attachEvent(`on${t}`, s);
|
|
31
15
|
};
|
|
32
|
-
})(),
|
|
16
|
+
})(), a = (function() {
|
|
33
17
|
return document.removeEventListener ? function(e, t, s) {
|
|
34
18
|
e && t && e.removeEventListener(t, s, !1);
|
|
35
19
|
} : function(e, t, s) {
|
|
36
20
|
e && t && e.detachEvent(`on${t}`, s);
|
|
37
21
|
};
|
|
38
|
-
})(),
|
|
22
|
+
})(), p = {
|
|
39
23
|
name: "Trigger",
|
|
40
24
|
props: {
|
|
41
25
|
mode: String,
|
|
@@ -66,27 +50,27 @@ const h = (function() {
|
|
|
66
50
|
}
|
|
67
51
|
}
|
|
68
52
|
};
|
|
69
|
-
var
|
|
53
|
+
var u = function() {
|
|
70
54
|
var t = this, s = t._self._c;
|
|
71
55
|
return s("div", { class: t.classes }, [t.showIcon ? s("div", { class: t.barConClasses }, t._m(0), 0) : t._e()]);
|
|
72
|
-
},
|
|
56
|
+
}, c = [function() {
|
|
73
57
|
var e = this, t = e._self._c;
|
|
74
58
|
return e._l(8, function(s) {
|
|
75
59
|
return t("i", { key: `trigger-${s}`, class: `${e.prefix}-bar` });
|
|
76
60
|
});
|
|
77
|
-
}],
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
61
|
+
}], d = /* @__PURE__ */ f(
|
|
62
|
+
p,
|
|
63
|
+
u,
|
|
64
|
+
c,
|
|
81
65
|
!1,
|
|
82
66
|
null,
|
|
83
67
|
null
|
|
84
68
|
);
|
|
85
|
-
const
|
|
69
|
+
const g = d.exports, m = {
|
|
86
70
|
name: "SplitPane",
|
|
87
71
|
components: {
|
|
88
|
-
Trigger:
|
|
89
|
-
ResizeObserver:
|
|
72
|
+
Trigger: g,
|
|
73
|
+
ResizeObserver: l
|
|
90
74
|
},
|
|
91
75
|
props: {
|
|
92
76
|
value: {
|
|
@@ -95,7 +79,7 @@ const _ = $.exports, z = {
|
|
|
95
79
|
},
|
|
96
80
|
mode: {
|
|
97
81
|
validator(e) {
|
|
98
|
-
return
|
|
82
|
+
return h(e, ["horizontal", "vertical"]);
|
|
99
83
|
},
|
|
100
84
|
default: "horizontal"
|
|
101
85
|
},
|
|
@@ -153,10 +137,8 @@ const _ = $.exports, z = {
|
|
|
153
137
|
watch: {
|
|
154
138
|
value: "resetOffset"
|
|
155
139
|
},
|
|
156
|
-
mounted() {
|
|
157
|
-
|
|
158
|
-
yield this.$nextTick(), this.resetOffset();
|
|
159
|
-
});
|
|
140
|
+
async mounted() {
|
|
141
|
+
await this.$nextTick(), this.resetOffset();
|
|
160
142
|
},
|
|
161
143
|
methods: {
|
|
162
144
|
resetOffset() {
|
|
@@ -180,35 +162,35 @@ const _ = $.exports, z = {
|
|
|
180
162
|
return this.valueIsPx ? t = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(e)}px` : t = 1 - e, t;
|
|
181
163
|
},
|
|
182
164
|
handleMove(e) {
|
|
183
|
-
const s = (this.isHorizontal ? e.pageX : e.pageY) - this.initOffset,
|
|
184
|
-
let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(
|
|
185
|
-
const
|
|
186
|
-
parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(
|
|
165
|
+
const s = (this.isHorizontal ? e.pageX : e.pageY) - this.initOffset, r = this.$refs.outerWrapper[this.offsetSize];
|
|
166
|
+
let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(r * this.oldOffset + s, r);
|
|
167
|
+
const o = this.getAnotherOffset(i);
|
|
168
|
+
parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(o) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(o, this.computedMax))), e.atMin = this.value === this.computedMin, e.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", e);
|
|
187
169
|
},
|
|
188
170
|
handleUp() {
|
|
189
|
-
this.isMoving = !1,
|
|
171
|
+
this.isMoving = !1, a(window, "mousemove", this.handleMove), a(window, "mouseup", this.handleUp), this.$emit("on-move-end");
|
|
190
172
|
},
|
|
191
173
|
handleMousedown(e) {
|
|
192
|
-
this.initOffset = this.isHorizontal ? e.pageX : e.pageY, this.oldOffset = this.value, this.isMoving = !0,
|
|
174
|
+
this.initOffset = this.isHorizontal ? e.pageX : e.pageY, this.oldOffset = this.value, this.isMoving = !0, n(window, "mousemove", this.handleMove), n(window, "mouseup", this.handleUp), this.$emit("on-move-start");
|
|
193
175
|
}
|
|
194
176
|
}
|
|
195
177
|
};
|
|
196
|
-
var
|
|
178
|
+
var v = function() {
|
|
197
179
|
var t = this, s = t._self._c;
|
|
198
180
|
return s("div", { ref: "outerWrapper", class: t.wrapperClasses }, [t.isHorizontal ? s("div", { class: `${t.prefix}-horizontal` }, [t.hideLeft ? s("div", { class: [`${t.prefix}-pane`, "right-pane"], staticStyle: { left: "0" } }, [t._t("right")], 2) : [s("div", { class: [`${t.prefix}-pane`, "left-pane"], style: { right: `${t.anotherOffset}%` } }, [t._t("left")], 2), s("div", { class: `${t.prefix}-trigger-con`, style: { left: `calc(${t.offset}% + ${t.triggerSize / 2}px)`, width: `${t.triggerSize}px` }, on: { mousedown: t.handleMousedown } }, [t._t("trigger", function() {
|
|
199
181
|
return [s("Trigger", { attrs: { mode: "vertical" } })];
|
|
200
182
|
})], 2), s("div", { class: [`${t.prefix}-pane`, "right-pane"], style: { left: `calc(${t.offset}% + ${t.triggerSize}px)` } }, [t._t("right")], 2)]], 2) : s("div", { class: `${t.prefix}-vertical` }, [s("div", { class: [`${t.prefix}-pane`, "top-pane"], style: { bottom: `${t.anotherOffset}%` } }, [t._t("top")], 2), s("div", { class: `${t.prefix}-trigger-con`, style: { top: `calc(${t.offset}% + ${t.triggerSize / 2}px)`, height: `${t.triggerSize}px` }, on: { mousedown: t.handleMousedown } }, [t._t("trigger", function() {
|
|
201
183
|
return [s("Trigger", { attrs: { mode: "horizontal" } })];
|
|
202
184
|
})], 2), s("div", { class: [`${t.prefix}-pane`, "bottom-pane"], style: { top: `calc(${t.offset}% + ${t.triggerSize}px)` } }, [t._t("bottom")], 2)]), s("ResizeObserver", { on: { notify: t.resetOffset } })], 1);
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
185
|
+
}, x = [], $ = /* @__PURE__ */ f(
|
|
186
|
+
m,
|
|
187
|
+
v,
|
|
188
|
+
x,
|
|
207
189
|
!1,
|
|
208
190
|
null,
|
|
209
191
|
null
|
|
210
192
|
);
|
|
211
|
-
const
|
|
193
|
+
const O = $.exports;
|
|
212
194
|
export {
|
|
213
|
-
|
|
195
|
+
O as default
|
|
214
196
|
};
|