@web-utils/component 4.0.9 → 4.0.10
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 -3
- package/chunks/{FormTemp.Bu2VCxUh.mjs → FormTemp.BQxO5IQq.mjs} +1 -1
- package/chunks/MonacoEditor.D31t4FTy.mjs +327 -0
- package/chunks/PhotoSwipe.BunkqqPu.mjs +80 -0
- package/chunks/{configComponents.CpKi15WN.mjs → configComponents.DQaqUQFs.mjs} +4 -4
- package/chunks/{core.DJEgjQW6.mjs → core.0Exl13Mz.mjs} +3 -3
- package/chunks/{dictionary.3O-Io7Vh.mjs → dictionary.C6NmC-bT.mjs} +16 -16
- package/confirm-button/index.mjs +9 -14
- package/confirmable/index.mjs +8 -13
- package/data-display/index.mjs +1 -1
- package/data-table-picker/index.mjs +8 -10
- package/editable-tree/index.mjs +2 -3
- package/element-dialog/index.mjs +2 -3
- package/flex-column/index.mjs +5 -6
- package/flex-item/index.mjs +5 -6
- package/flex-row/index.mjs +2 -3
- package/flow/index.mjs +2 -3
- package/flow-designer/index.mjs +1 -1
- package/flow-node/index.mjs +3 -4
- package/flow-viewer/index.mjs +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +13 -17
- package/form-checkbox/index.mjs +7 -12
- package/form-checkbox-group/index.mjs +9 -14
- package/form-date-picker/index.mjs +5 -10
- package/form-holder/index.mjs +4 -5
- package/form-input/index.mjs +6 -11
- package/form-input-cron-expression/index.mjs +8 -13
- package/form-input-email/index.mjs +12 -17
- package/form-input-id-card/index.mjs +15 -19
- package/form-input-number/index.mjs +16 -23
- package/form-input-phone-number/index.mjs +8 -12
- package/form-input-tag/index.mjs +7 -12
- package/form-input-time/index.mjs +2 -7
- package/form-item/index.mjs +2 -6
- package/form-radio-group/index.mjs +7 -12
- package/form-select/index.mjs +2 -6
- package/form-switch/index.mjs +7 -12
- package/form-table/index.mjs +22 -28
- package/form-table-plus/index.mjs +10 -14
- package/form-textarea/index.mjs +6 -11
- package/form-tree-select/index.mjs +9 -17
- package/form-tree-select-multiple/index.mjs +11 -19
- package/form-view/index.mjs +1 -1
- package/fy-array/index.mjs +2 -5
- package/fy-cascader/index.mjs +13 -17
- package/fy-checkbox/index.mjs +19 -23
- package/fy-code/index.mjs +9 -10
- package/fy-curd/index.mjs +4 -6
- package/fy-date/index.mjs +5 -9
- package/fy-draggable/index.mjs +2 -3
- package/fy-dynamic/index.mjs +11 -14
- package/fy-empty/index.mjs +3 -4
- package/fy-form/index.mjs +3 -6
- package/fy-form-design/index.mjs +13 -14
- package/fy-input/index.mjs +10 -14
- package/fy-input-color/index.mjs +11 -15
- package/fy-input-icon/index.mjs +5 -9
- package/fy-input-map/index.mjs +5 -8
- package/fy-input-number/index.mjs +12 -16
- package/fy-input-table/index.mjs +2 -5
- package/fy-input-tree/index.mjs +2 -5
- package/fy-radio/index.mjs +9 -13
- package/fy-rate/index.mjs +7 -11
- package/fy-select/index.mjs +2 -4
- package/fy-slider/index.mjs +7 -10
- package/fy-switch/index.mjs +5 -9
- package/fy-time/index.mjs +3 -6
- package/fy-title/index.mjs +12 -16
- package/fy-u-editor/index.mjs +2 -3
- package/fy-upload/index.mjs +2 -4
- package/image-cropper/index.mjs +2 -3
- package/index.mjs +369 -545
- package/license/index.mjs +2 -3
- package/monaco-editor/index.mjs +5 -205
- package/package.json +1 -1
- package/page-skeleton/index.mjs +3 -3
- package/pageable-table/index.mjs +3 -6
- package/pageable-view/index.mjs +6 -7
- package/photo-swipe/index.mjs +3 -36
- package/picker-table-view/index.mjs +23 -24
- package/present-view/index.mjs +1 -1
- package/record-video/index.mjs +10 -11
- package/resize-observer/index.mjs +2 -3
- package/search/index.mjs +2 -4
- package/sign/index.mjs +2 -3
- package/split-pane/index.mjs +1 -1
- package/swiper/index.mjs +1 -1
- package/table-column/index.mjs +4 -7
- package/table-view/index.mjs +4 -5
- package/tabs-view/index.mjs +1 -1
- package/text-ellipsis/index.mjs +2 -3
- package/toolbar/index.mjs +3 -4
- package/toolbar-button/index.mjs +3 -4
- package/verify/index.mjs +7 -8
- package/watermark/index.mjs +14 -15
- package/web-types.json +1 -1
- package/chunks/index.BmYCjxZQ.mjs +0 -47
- package/chunks/json-beautifier.Bp3GslGm.mjs +0 -123
package/license/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { C as r } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as g } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
const l = {
|
|
5
4
|
name: "License",
|
|
6
5
|
props: {
|
|
@@ -110,7 +109,7 @@ var m = function() {
|
|
|
110
109
|
null,
|
|
111
110
|
null
|
|
112
111
|
);
|
|
113
|
-
const
|
|
112
|
+
const u = w.exports;
|
|
114
113
|
export {
|
|
115
|
-
|
|
114
|
+
u as default
|
|
116
115
|
};
|
package/monaco-editor/index.mjs
CHANGED
|
@@ -1,207 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const a = {
|
|
6
|
-
name: "MonacoEditor",
|
|
7
|
-
props: {
|
|
8
|
-
diffEditor: { type: Boolean, default: !1 },
|
|
9
|
-
// 是否使用 diff 模式
|
|
10
|
-
width: { type: [String, Number], default: "100%" },
|
|
11
|
-
height: { type: [String, Number], default: "100%" },
|
|
12
|
-
original: String,
|
|
13
|
-
// 只有在 diff 模式下有效
|
|
14
|
-
value: [String, Object],
|
|
15
|
-
language: { type: String, default: "javascript" },
|
|
16
|
-
theme: { type: String, default: "vs" },
|
|
17
|
-
readOnly: { type: Boolean, default: !1 },
|
|
18
|
-
options: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default() {
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
editorMounted: { type: Function, default: r },
|
|
25
|
-
editorBeforeMount: { type: Function, default: r },
|
|
26
|
-
keyIndex: { type: String }
|
|
27
|
-
},
|
|
28
|
-
data() {
|
|
29
|
-
return {
|
|
30
|
-
fullscreen: !1
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
style() {
|
|
35
|
-
return this.fullscreen ? {} : {
|
|
36
|
-
width: /^\d+$/.test(this.width) ? `${this.width}px` : this.width,
|
|
37
|
-
height: /^\d+$/.test(this.height) ? `${this.height}px` : this.height,
|
|
38
|
-
position: "relative"
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
watch: {
|
|
43
|
-
options: {
|
|
44
|
-
deep: !0,
|
|
45
|
-
handler(e) {
|
|
46
|
-
var t;
|
|
47
|
-
(t = this.editor) == null || t.updateOptions(e);
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
keyIndex() {
|
|
51
|
-
let e = this.value;
|
|
52
|
-
typeof e == "object" && (e = d(e)), this.editor && e !== this._getValue() && this._setValue(e);
|
|
53
|
-
},
|
|
54
|
-
language() {
|
|
55
|
-
if (this.editor)
|
|
56
|
-
if (this.diffEditor) {
|
|
57
|
-
const { original: e, modified: t } = this.editor.getModel();
|
|
58
|
-
i.editor.setModelLanguage(e, this.language), i.editor.setModelLanguage(t, this.language);
|
|
59
|
-
} else
|
|
60
|
-
i.editor.setModelLanguage(this.editor.getModel(), this.language);
|
|
61
|
-
},
|
|
62
|
-
theme() {
|
|
63
|
-
this.editor && i.editor.setTheme(this.theme);
|
|
64
|
-
},
|
|
65
|
-
style() {
|
|
66
|
-
this.$nextTick(() => {
|
|
67
|
-
var e;
|
|
68
|
-
(e = this.editor) == null || e.layout();
|
|
69
|
-
});
|
|
70
|
-
},
|
|
71
|
-
value(e) {
|
|
72
|
-
this.editor && e !== this._getValue() && this._setValue(e);
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
mounted() {
|
|
76
|
-
this.initMonaco(), window.addEventListener("resize", this.onResize);
|
|
77
|
-
},
|
|
78
|
-
beforeDestroy() {
|
|
79
|
-
var e;
|
|
80
|
-
window.removeEventListener("resize", this.onResize), (e = this.editor) == null || e.dispose();
|
|
81
|
-
},
|
|
82
|
-
methods: {
|
|
83
|
-
initMonaco() {
|
|
84
|
-
const { value: e, language: t, theme: o, readOnly: n, options: s } = this;
|
|
85
|
-
Object.assign(s, this._editorBeforeMount()), this.editor = i.editor[this.diffEditor ? "createDiffEditor" : "create"](this.$el, {
|
|
86
|
-
value: typeof e == "string" ? e : d(e),
|
|
87
|
-
language: t,
|
|
88
|
-
theme: o,
|
|
89
|
-
readOnly: n,
|
|
90
|
-
...s
|
|
91
|
-
}), this.diffEditor && this._setModel(this.value, this.original), this._editorMounted(this.editor), this.editor.addAction({
|
|
92
|
-
id: "f1",
|
|
93
|
-
label: "full screen",
|
|
94
|
-
keybindings: [i.KeyCode.F1],
|
|
95
|
-
run: (l) => {
|
|
96
|
-
this.toggleFullScreen();
|
|
97
|
-
}
|
|
98
|
-
}), this.editor.addAction({
|
|
99
|
-
id: "escape",
|
|
100
|
-
label: "exit full screen",
|
|
101
|
-
keybindings: [i.KeyCode.Escape],
|
|
102
|
-
run: (l) => {
|
|
103
|
-
this.fullscreen = !1;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
},
|
|
107
|
-
toggleFullScreen() {
|
|
108
|
-
this.fullscreen = !this.fullscreen;
|
|
109
|
-
},
|
|
110
|
-
async onResize() {
|
|
111
|
-
await this.$nextTick();
|
|
112
|
-
const e = this.$el;
|
|
113
|
-
this.editor.layout({
|
|
114
|
-
width: e.clientWidth,
|
|
115
|
-
height: e.clientHeight
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
|
-
_handleFullScreen() {
|
|
119
|
-
this.isMaximum ? this.minEditor() : this.maxEditor();
|
|
120
|
-
},
|
|
121
|
-
// 放大
|
|
122
|
-
maxEditor() {
|
|
123
|
-
this.isMaximum = !0;
|
|
124
|
-
const e = this.$el;
|
|
125
|
-
this.originSize = {
|
|
126
|
-
width: e.clientWidth,
|
|
127
|
-
height: e.clientHeight
|
|
128
|
-
}, e.classList.add("editor-fullscreen"), this.editor.layout({
|
|
129
|
-
height: document.body.clientHeight,
|
|
130
|
-
width: document.body.clientWidth
|
|
131
|
-
}), document.addEventListener("keyup", this.handleEsc);
|
|
132
|
-
},
|
|
133
|
-
handleEsc(e) {
|
|
134
|
-
e.keyCode === 27 && this.minEditor();
|
|
135
|
-
},
|
|
136
|
-
// 缩小
|
|
137
|
-
minEditor() {
|
|
138
|
-
this.isMaximum = !1, this.$el.classList.remove("editor-fullscreen"), this.editor.layout({
|
|
139
|
-
height: this.originSize.height,
|
|
140
|
-
width: this.originSize.width
|
|
141
|
-
}), document.removeEventListener("keyup", this.handleEsc);
|
|
142
|
-
},
|
|
143
|
-
_getEditor() {
|
|
144
|
-
return this.editor ? this.diffEditor ? this.editor.modifiedEditor : this.editor : null;
|
|
145
|
-
},
|
|
146
|
-
_setModel(e, t) {
|
|
147
|
-
const { language: o } = this, n = i.editor.createModel(t, o), s = i.editor.createModel(e, o);
|
|
148
|
-
this.editor.setModel({
|
|
149
|
-
original: n,
|
|
150
|
-
modified: s
|
|
151
|
-
});
|
|
152
|
-
},
|
|
153
|
-
_setValue(e) {
|
|
154
|
-
const t = this._getEditor();
|
|
155
|
-
if (t) return t.setValue(e);
|
|
156
|
-
},
|
|
157
|
-
_getValue() {
|
|
158
|
-
const e = this._getEditor();
|
|
159
|
-
return e ? e.getValue() : "";
|
|
160
|
-
},
|
|
161
|
-
_editorBeforeMount() {
|
|
162
|
-
return this.editorBeforeMount(i) || {};
|
|
163
|
-
},
|
|
164
|
-
_editorMounted(e) {
|
|
165
|
-
this.editorMounted(e, i), this.diffEditor ? e.onDidUpdateDiff((t) => {
|
|
166
|
-
const o = this._getValue();
|
|
167
|
-
this._emitChange(o, t);
|
|
168
|
-
}) : e.onDidChangeModelContent((t) => {
|
|
169
|
-
const o = this._getValue();
|
|
170
|
-
this._emitChange(o, t);
|
|
171
|
-
});
|
|
172
|
-
},
|
|
173
|
-
_emitChange(e, t) {
|
|
174
|
-
this.$emit("change", e, t), this.$emit("input", e);
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
render(e) {
|
|
178
|
-
const t = this.options.fullScreen;
|
|
179
|
-
return e("div", { class: ["monaco_editor_container", this.fullscreen ? "fullscreen" : ""], style: this.style }, [
|
|
180
|
-
t ? e("i", {
|
|
181
|
-
class: "el-icon-full-screen",
|
|
182
|
-
style: {
|
|
183
|
-
width: "1.2em",
|
|
184
|
-
height: "1.2em",
|
|
185
|
-
position: "absolute",
|
|
186
|
-
left: "0px",
|
|
187
|
-
top: "0px",
|
|
188
|
-
zIndex: "1",
|
|
189
|
-
cursor: "pointer"
|
|
190
|
-
},
|
|
191
|
-
on: { click: this._handleFullScreen }
|
|
192
|
-
}) : ""
|
|
193
|
-
]);
|
|
194
|
-
}
|
|
195
|
-
}, u = null, c = null;
|
|
196
|
-
var f = /* @__PURE__ */ h(
|
|
197
|
-
a,
|
|
198
|
-
u,
|
|
199
|
-
c,
|
|
200
|
-
!1,
|
|
201
|
-
null,
|
|
202
|
-
null
|
|
203
|
-
);
|
|
204
|
-
const y = f.exports;
|
|
1
|
+
import "monaco-editor/esm/vs/editor/editor.api";
|
|
2
|
+
import { M as i } from "../chunks/MonacoEditor.D31t4FTy.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
4
|
+
import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
205
5
|
export {
|
|
206
|
-
|
|
6
|
+
i as default
|
|
207
7
|
};
|
package/package.json
CHANGED
package/page-skeleton/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import o from "
|
|
1
|
+
import o from "../page/index.mjs";
|
|
2
2
|
import "./page/style.css";
|
|
3
|
-
import n from "
|
|
3
|
+
import n from "../nav-bar/index.mjs";
|
|
4
4
|
import "./nav-bar/style.css";
|
|
5
|
-
import r from "
|
|
5
|
+
import r from "../page-header/index.mjs";
|
|
6
6
|
import "./page-header/style.css";
|
|
7
7
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
8
|
const l = {
|
package/pageable-table/index.mjs
CHANGED
|
@@ -2,14 +2,11 @@ import { copy as v, hasOwn as P } from "@web-utils/core";
|
|
|
2
2
|
import S from "element-ui/lib/message";
|
|
3
3
|
import { g as _, f as C, i as B, j as A } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { merge as f } from "@web-utils/integrations/lodash";
|
|
5
|
-
import { g as K } from "../chunks/dictionary.
|
|
5
|
+
import { g as K } from "../chunks/dictionary.C6NmC-bT.mjs";
|
|
6
6
|
import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
|
|
7
7
|
import "vue";
|
|
8
8
|
import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
9
|
import { isEqual as L } from "lodash-es";
|
|
10
|
-
import "async-validator";
|
|
11
|
-
import "../chunks/core.DJEgjQW6.mjs";
|
|
12
|
-
import "../chunks/configComponents.CpKi15WN.mjs";
|
|
13
10
|
function F(t) {
|
|
14
11
|
v(
|
|
15
12
|
t,
|
|
@@ -509,7 +506,7 @@ var X = function() {
|
|
|
509
506
|
null,
|
|
510
507
|
null
|
|
511
508
|
);
|
|
512
|
-
const
|
|
509
|
+
const ne = Y.exports;
|
|
513
510
|
export {
|
|
514
|
-
|
|
511
|
+
ne as default
|
|
515
512
|
};
|
package/pageable-view/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { cloneDeep as n, merge as
|
|
2
|
-
import { hasOwn as
|
|
1
|
+
import { cloneDeep as n, merge as g } from "@web-utils/integrations/lodash";
|
|
2
|
+
import { hasOwn as p, copy as f } from "@web-utils/core";
|
|
3
3
|
import { f as h, i as u, j as m } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as b } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
import "async-validator";
|
|
6
5
|
function S(e) {
|
|
7
6
|
let t = "";
|
|
8
7
|
for (const s in e)
|
|
@@ -119,7 +118,7 @@ const i = {
|
|
|
119
118
|
return e.length > 3 ? 50 + (e.length - 3) * 10 : 50;
|
|
120
119
|
},
|
|
121
120
|
mergeAttrs() {
|
|
122
|
-
return
|
|
121
|
+
return g({}, this.$attrs, { height: this.autoHeight ? null : "auto" });
|
|
123
122
|
},
|
|
124
123
|
headers() {
|
|
125
124
|
var e;
|
|
@@ -216,7 +215,7 @@ const i = {
|
|
|
216
215
|
},
|
|
217
216
|
async getPage() {
|
|
218
217
|
var o;
|
|
219
|
-
if (
|
|
218
|
+
if (p(this.$attrs, "data")) {
|
|
220
219
|
this.records = this.$attrs.data, this.page.page = 1, this.page.total = this.records.length, this.page.limit = this.page.total;
|
|
221
220
|
return;
|
|
222
221
|
}
|
|
@@ -270,7 +269,7 @@ var v = function() {
|
|
|
270
269
|
null,
|
|
271
270
|
null
|
|
272
271
|
);
|
|
273
|
-
const
|
|
272
|
+
const x = T.exports;
|
|
274
273
|
export {
|
|
275
|
-
|
|
274
|
+
x as default
|
|
276
275
|
};
|
package/photo-swipe/index.mjs
CHANGED
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "photoswipe";
|
|
4
|
-
import "photoswipe/dist/photoswipe.css";
|
|
5
|
-
const i = {
|
|
6
|
-
name: "PhotoSwipe",
|
|
7
|
-
props: {
|
|
8
|
-
urls: Array,
|
|
9
|
-
selector: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "img"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
methods: {
|
|
15
|
-
async preview(e) {
|
|
16
|
-
await o(e, this.$refs.wrapper, { selector: this.selector });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
var p = function() {
|
|
21
|
-
var r = this, t = r._self._c;
|
|
22
|
-
return t("div", { ref: "wrapper" }, [r._t("default", function() {
|
|
23
|
-
return r._l(r.urls, function(s) {
|
|
24
|
-
return t("img", { key: s.src, staticStyle: { cursor: "pointer" }, attrs: { width: "100", src: s.src, alt: "" }, on: { click: r.preview } });
|
|
25
|
-
});
|
|
26
|
-
}, { urls: r.urls, preview: r.preview })], 2);
|
|
27
|
-
}, a = [], c = /* @__PURE__ */ n(
|
|
28
|
-
i,
|
|
29
|
-
p,
|
|
30
|
-
a,
|
|
31
|
-
!1,
|
|
32
|
-
null,
|
|
33
|
-
null
|
|
34
|
-
);
|
|
35
|
-
const m = c.exports;
|
|
1
|
+
import { P as a } from "../chunks/PhotoSwipe.BunkqqPu.mjs";
|
|
2
|
+
import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
36
3
|
export {
|
|
37
|
-
|
|
4
|
+
a as default
|
|
38
5
|
};
|
|
@@ -4,7 +4,6 @@ import { isPlainObject as y, isFunction as P } from "@web-utils/core";
|
|
|
4
4
|
import { cloneDeep as T } from "@web-utils/integrations/lodash";
|
|
5
5
|
import { g as B } from "../chunks/index.B2TRddqf.mjs";
|
|
6
6
|
import { n as O } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
-
import "async-validator";
|
|
8
7
|
const E = {
|
|
9
8
|
name: "PickerTableView"
|
|
10
9
|
}, R = /* @__PURE__ */ Object.assign(E, {
|
|
@@ -53,11 +52,11 @@ const E = {
|
|
|
53
52
|
}
|
|
54
53
|
},
|
|
55
54
|
emits: ["cancel", "confirm", "update:visible"],
|
|
56
|
-
setup(f, { expose: e, emit:
|
|
57
|
-
const t = f, a = l([]), s = l(null), i = l([]), m = l([]), g = l(null), h = l(null), v = l(null), _ = l(null), b = (
|
|
58
|
-
a.value =
|
|
59
|
-
}, x = (
|
|
60
|
-
s.value =
|
|
55
|
+
setup(f, { expose: e, emit: n }) {
|
|
56
|
+
const t = f, a = l([]), s = l(null), i = l([]), m = l([]), g = l(null), h = l(null), v = l(null), _ = l(null), b = (o) => {
|
|
57
|
+
a.value = o;
|
|
58
|
+
}, x = (o) => {
|
|
59
|
+
s.value = o;
|
|
61
60
|
}, d = () => {
|
|
62
61
|
g.value.reload();
|
|
63
62
|
}, k = () => {
|
|
@@ -65,20 +64,20 @@ const E = {
|
|
|
65
64
|
}, u = () => {
|
|
66
65
|
v.value.hide();
|
|
67
66
|
}, w = () => {
|
|
68
|
-
|
|
67
|
+
n("cancel"), u();
|
|
69
68
|
}, C = () => {
|
|
70
69
|
var p;
|
|
71
|
-
let
|
|
72
|
-
if (t.multiple ? (p = a.value) != null && p.length && (
|
|
70
|
+
let o;
|
|
71
|
+
if (t.multiple ? (p = a.value) != null && p.length && (o = a.value) : s.value && (o = [s.value]), !o.length) {
|
|
73
72
|
B(N).warning("请选择!");
|
|
74
73
|
return;
|
|
75
74
|
}
|
|
76
|
-
|
|
77
|
-
}, F = (
|
|
78
|
-
|
|
75
|
+
n("confirm", o), u();
|
|
76
|
+
}, F = (o) => {
|
|
77
|
+
n("update:visible", o);
|
|
79
78
|
};
|
|
80
79
|
return S(async () => {
|
|
81
|
-
var
|
|
80
|
+
var o;
|
|
82
81
|
if (t.useTree) {
|
|
83
82
|
const c = (await t.treeApi()).data.data;
|
|
84
83
|
if (y(t.customRootNode)) {
|
|
@@ -89,22 +88,22 @@ const E = {
|
|
|
89
88
|
r[t.treeProps.children || "children"] = c, i.value = y(r) ? [r] : r;
|
|
90
89
|
} else
|
|
91
90
|
i.value = c;
|
|
92
|
-
t.expandFirstNode && (m.value = [(
|
|
91
|
+
t.expandFirstNode && (m.value = [(o = i.value[0]) == null ? void 0 : o.id]);
|
|
93
92
|
}
|
|
94
93
|
}), e({
|
|
95
94
|
search: d
|
|
96
|
-
}), { __sfc: !0, props: t, emits:
|
|
95
|
+
}), { __sfc: !0, props: t, emits: n, rows: a, current: s, treeData: i, expandedKeys: m, table: g, form: h, dialog: v, tree: _, handleChange: b, handleCurrentChange: x, search: d, clear: k, closeDialog: u, onCancel: w, confirm: C, updateVisible: F };
|
|
97
96
|
}
|
|
98
97
|
});
|
|
99
98
|
var D = function() {
|
|
100
|
-
var e = this,
|
|
101
|
-
return
|
|
102
|
-
return [
|
|
103
|
-
}, proxy: !0 }]) }, [
|
|
104
|
-
return [
|
|
105
|
-
}, proxy: !0 } : null], null, !0) }, [
|
|
99
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
100
|
+
return n("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, height: e.height, width: e.width, "body-padding": !1, "show-full-screen": "", title: e.title }, on: { "update:visible": t.updateVisible }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
101
|
+
return [n("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.confirm } }, [e._v("确定")]), n("ElButton", { attrs: { size: "mini" }, on: { click: t.onCancel } }, [e._v("取消")])];
|
|
102
|
+
}, proxy: !0 }]) }, [n("SkeletonPanel", { attrs: { "flex-column": "", "use-tab": !1, "hide-left": !e.useTree }, scopedSlots: e._u([e.useTree ? { key: "left", fn: function() {
|
|
103
|
+
return [n("div", { staticStyle: { padding: "10px 0", "font-size": "16px", "border-bottom": "1px solid #eee" } }, [e._v(e._s(e.treeTitle))]), n("ElTree", { ref: "tree", attrs: { "node-key": e.nodeKey, data: t.treeData, "default-expanded-keys": t.expandedKeys, props: e.treeProps, "expand-on-click-node": e.expandOnClickNode }, on: { "node-click": e.onNodeClick } })];
|
|
104
|
+
}, proxy: !0 } : null], null, !0) }, [n("FormHolder", { ref: "form", staticStyle: { padding: "10px" }, attrs: { model: e.model, "not-table-form": "" }, nativeOn: { submit: function(a) {
|
|
106
105
|
return a.preventDefault(), t.search.apply(null, arguments);
|
|
107
|
-
} } }, [
|
|
106
|
+
} } }, [n("FormItemConfigProvider", { attrs: { reactive: "" } }, [n("ElRow", { attrs: { gutter: 0 } }, [e._t("search-form"), n("FormItem", { staticStyle: { "text-align": "right" }, attrs: { "hide-label": "", span: 24 } }, [n("ElButton", { attrs: { type: "primary", "native-type": "submit" } }, [e._v("搜索")]), n("ElButton", { on: { click: t.clear } }, [e._v("清空")])], 1)], 2)], 1)], 1), n("PageableTable", { ref: "table", attrs: { "highlight-current-row": "", "hide-on-single-page": "", "click-row-select": "", "row-key": e.rowKey, descs: e.descs, "payload-style": "body", api: e.tableApi, model: e.model, multiple: e.multiple }, on: { "current-change": t.handleCurrentChange, "selection-change": t.handleChange } }, [e._t("columns")], 2)], 1)], 1);
|
|
108
107
|
}, K = [], j = /* @__PURE__ */ O(
|
|
109
108
|
R,
|
|
110
109
|
D,
|
|
@@ -113,7 +112,7 @@ var D = function() {
|
|
|
113
112
|
null,
|
|
114
113
|
null
|
|
115
114
|
);
|
|
116
|
-
const
|
|
115
|
+
const q = j.exports;
|
|
117
116
|
export {
|
|
118
|
-
|
|
117
|
+
q as default
|
|
119
118
|
};
|
package/present-view/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isInContainer as u, delay as m, hasOwn as a, toStringArray as h } from "@web-utils/core";
|
|
2
2
|
import { merge as b } from "@web-utils/integrations/lodash";
|
|
3
|
-
import p from "
|
|
3
|
+
import p from "../resize-observer/index.mjs";
|
|
4
4
|
import "./resize-observer/style.css";
|
|
5
5
|
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
6
|
const f = [
|
package/record-video/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { s
|
|
1
|
+
import { s } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
let o = class {
|
|
5
4
|
/**
|
|
6
5
|
* 构造函数
|
|
@@ -76,19 +75,19 @@ const n = {
|
|
|
76
75
|
computed: {
|
|
77
76
|
styleName() {
|
|
78
77
|
return {
|
|
79
|
-
width:
|
|
78
|
+
width: s(this.width)
|
|
80
79
|
};
|
|
81
80
|
},
|
|
82
81
|
imgStyleName() {
|
|
83
82
|
return {
|
|
84
|
-
width:
|
|
83
|
+
width: s(this.width / 2)
|
|
85
84
|
};
|
|
86
85
|
},
|
|
87
86
|
borderStyleName() {
|
|
88
87
|
return {
|
|
89
|
-
width:
|
|
90
|
-
height:
|
|
91
|
-
borderWidth:
|
|
88
|
+
width: s(this.width / 15),
|
|
89
|
+
height: s(this.width / 15),
|
|
90
|
+
borderWidth: s(5)
|
|
92
91
|
};
|
|
93
92
|
}
|
|
94
93
|
},
|
|
@@ -108,10 +107,10 @@ const n = {
|
|
|
108
107
|
this.videoObj.stopRecord();
|
|
109
108
|
},
|
|
110
109
|
getData() {
|
|
111
|
-
const
|
|
110
|
+
const r = new Blob(this.videoObj.chunks, {
|
|
112
111
|
type: "video/mp4"
|
|
113
112
|
}), e = new FileReader();
|
|
114
|
-
e.readAsDataURL(
|
|
113
|
+
e.readAsDataURL(r), e.addEventListener("loadend", () => {
|
|
115
114
|
const t = e.result;
|
|
116
115
|
this.$emit("data-change", t);
|
|
117
116
|
});
|
|
@@ -129,7 +128,7 @@ var c = function() {
|
|
|
129
128
|
null,
|
|
130
129
|
null
|
|
131
130
|
);
|
|
132
|
-
const
|
|
131
|
+
const p = m.exports;
|
|
133
132
|
export {
|
|
134
|
-
|
|
133
|
+
p as default
|
|
135
134
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { a as r } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
let t;
|
|
5
4
|
function i() {
|
|
6
5
|
i.init || (i.init = !0, t = r() !== -1);
|
|
@@ -43,7 +42,7 @@ var a = function() {
|
|
|
43
42
|
null,
|
|
44
43
|
null
|
|
45
44
|
);
|
|
46
|
-
const
|
|
45
|
+
const _ = l.exports;
|
|
47
46
|
export {
|
|
48
|
-
|
|
47
|
+
_ as default
|
|
49
48
|
};
|
package/search/index.mjs
CHANGED
|
@@ -2,8 +2,6 @@ import { D as p } from "../chunks/util.DqFv_pWg.mjs";
|
|
|
2
2
|
import { i } from "../chunks/init.DAsXSoLW.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
4
|
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
import "../chunks/dic.Dkl-leRW.mjs";
|
|
6
|
-
import "../chunks/slot.DXIbhGat.mjs";
|
|
7
5
|
const l = {
|
|
8
6
|
name: "Search",
|
|
9
7
|
mixins: [i],
|
|
@@ -103,7 +101,7 @@ var h = function() {
|
|
|
103
101
|
null,
|
|
104
102
|
null
|
|
105
103
|
);
|
|
106
|
-
const
|
|
104
|
+
const O = u.exports;
|
|
107
105
|
export {
|
|
108
|
-
|
|
106
|
+
O as default
|
|
109
107
|
};
|
package/sign/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { s as v } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
function p(e, s, n, r, t, o) {
|
|
5
4
|
e.save(), e.fillStyle = t, e.translate(s, n), e.rotate(Math.PI + o), e.beginPath();
|
|
6
5
|
let a = Math.sin(0), d = Math.cos(0);
|
|
@@ -106,7 +105,7 @@ var y = function() {
|
|
|
106
105
|
null,
|
|
107
106
|
null
|
|
108
107
|
);
|
|
109
|
-
const
|
|
108
|
+
const P = w.exports;
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
P as default
|
|
112
111
|
};
|
package/split-pane/index.mjs
CHANGED
package/swiper/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getEleWidth as r } from "@web-utils/core";
|
|
2
|
-
import a from "
|
|
2
|
+
import a from "../resize-observer/index.mjs";
|
|
3
3
|
import "./resize-observer/style.css";
|
|
4
4
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
const h = {
|
package/table-column/index.mjs
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { _ as T } from "../chunks/helper.BiMLcEEk.mjs";
|
|
2
2
|
import { h as d } from "vue";
|
|
3
|
-
import { g as C } from "../chunks/dictionary.
|
|
3
|
+
import { g as C } from "../chunks/dictionary.C6NmC-bT.mjs";
|
|
4
4
|
import { n as B } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
import { f as V } from "../chunks/core.
|
|
6
|
-
import "../chunks/configComponents.CpKi15WN.mjs";
|
|
7
|
-
import "@web-utils/core";
|
|
8
|
-
import "@web-utils/integrations/lodash";
|
|
5
|
+
import { f as V } from "../chunks/core.0Exl13Mz.mjs";
|
|
9
6
|
const D = {
|
|
10
7
|
name: "DictRender",
|
|
11
8
|
inheritAttrs: !1,
|
|
@@ -222,7 +219,7 @@ var E = /* @__PURE__ */ B(
|
|
|
222
219
|
null,
|
|
223
220
|
null
|
|
224
221
|
);
|
|
225
|
-
const
|
|
222
|
+
const X = E.exports;
|
|
226
223
|
export {
|
|
227
|
-
|
|
224
|
+
X as default
|
|
228
225
|
};
|
package/table-view/index.mjs
CHANGED
|
@@ -2,11 +2,10 @@ import { isFunction as p, toStringArray as f, isString as o, isArray as c, trace
|
|
|
2
2
|
import { merge as i } from "@web-utils/integrations/lodash";
|
|
3
3
|
import { g as m, h as w } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import g from "../form-item-config-provider/index.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { r as v, p as _ } from "../chunks/configComponents.DQaqUQFs.mjs";
|
|
6
|
+
import { t as a } from "../chunks/core.0Exl13Mz.mjs";
|
|
7
7
|
import y from "element-ui/lib/transitions/collapse-transition";
|
|
8
8
|
import { n as S } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
|
-
import "async-validator";
|
|
10
9
|
const T = [
|
|
11
10
|
"back",
|
|
12
11
|
"create",
|
|
@@ -321,7 +320,7 @@ var C = function() {
|
|
|
321
320
|
null,
|
|
322
321
|
null
|
|
323
322
|
);
|
|
324
|
-
const
|
|
323
|
+
const V = k.exports;
|
|
325
324
|
export {
|
|
326
|
-
|
|
325
|
+
V as default
|
|
327
326
|
};
|
package/tabs-view/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toStringArray as a } from "@web-utils/core";
|
|
2
2
|
import { merge as n } from "@web-utils/integrations/lodash";
|
|
3
|
-
import { p as l } from "../chunks/configComponents.
|
|
3
|
+
import { p as l } from "../chunks/configComponents.DQaqUQFs.mjs";
|
|
4
4
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
const u = [
|
|
6
6
|
"back",
|
package/text-ellipsis/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
const h = {
|
|
5
4
|
name: "TextEllipsis",
|
|
6
5
|
props: {
|
|
@@ -73,7 +72,7 @@ var r = function() {
|
|
|
73
72
|
null,
|
|
74
73
|
null
|
|
75
74
|
);
|
|
76
|
-
const
|
|
75
|
+
const d = f.exports;
|
|
77
76
|
export {
|
|
78
|
-
|
|
77
|
+
d as default
|
|
79
78
|
};
|