@web-utils/component 2.70.0 → 3.0.1
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/address-input/index.mjs +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/form-view/index.mjs
CHANGED
|
@@ -14,12 +14,16 @@ var c = (t, e, o) => new Promise((r, s) => {
|
|
|
14
14
|
}, a = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(n, l);
|
|
15
15
|
a((o = o.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { hasOwn as
|
|
18
|
-
import { merge as
|
|
19
|
-
import
|
|
17
|
+
import { hasOwn as m, toStringArray as v, animate as g, isInContainer as y } from "@web-utils/core";
|
|
18
|
+
import { merge as w } from "@web-utils/integrations/lodash";
|
|
19
|
+
import x from "@web-utils/component/resize-observer";
|
|
20
20
|
import "@web-utils/component/resize-observer/style.css";
|
|
21
|
-
import {
|
|
22
|
-
|
|
21
|
+
import { _ as $, a as S } from "../chunks/FormItemGroup.41daddb6.mjs";
|
|
22
|
+
import { _ as F } from "../chunks/ResizeObserver.60f728f0.mjs";
|
|
23
|
+
import { _ as u } from "../chunks/Toolbar.5c539dbb.mjs";
|
|
24
|
+
import { _ as p } from "../chunks/EmptyView.e2430422.mjs";
|
|
25
|
+
import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
26
|
+
var B = function() {
|
|
23
27
|
var t = this, e = t.$createElement, o = t._self._c || e;
|
|
24
28
|
return o("div", {
|
|
25
29
|
class: ["form-view", t.className]
|
|
@@ -32,7 +36,7 @@ var x = function() {
|
|
|
32
36
|
}],
|
|
33
37
|
staticClass: "form-view-toolbar"
|
|
34
38
|
}, [t._t("form-view-toolbar", function() {
|
|
35
|
-
return [o(
|
|
39
|
+
return [o(u, t._g(t._b({
|
|
36
40
|
on: {
|
|
37
41
|
edit: t.onEdit
|
|
38
42
|
},
|
|
@@ -84,12 +88,12 @@ var x = function() {
|
|
|
84
88
|
}, [t.title ? o("div", {
|
|
85
89
|
staticClass: "form-view-title"
|
|
86
90
|
}, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
|
|
87
|
-
return [o(
|
|
91
|
+
return [o(p, {
|
|
88
92
|
attrs: {
|
|
89
93
|
"empty-tips": "请添加表单内容"
|
|
90
94
|
}
|
|
91
95
|
})];
|
|
92
|
-
}), t.footerBarButtons.length ? o(
|
|
96
|
+
}), t.footerBarButtons.length ? o(u, t._g(t._b({
|
|
93
97
|
attrs: {
|
|
94
98
|
footer: ""
|
|
95
99
|
},
|
|
@@ -125,12 +129,12 @@ var x = function() {
|
|
|
125
129
|
}, [t.title ? o("div", {
|
|
126
130
|
staticClass: "form-view-title"
|
|
127
131
|
}, [t._v(" " + t._s(t.title) + " ")]) : t._e(), t._t("default", function() {
|
|
128
|
-
return [o(
|
|
132
|
+
return [o(p, {
|
|
129
133
|
attrs: {
|
|
130
134
|
"empty-tips": "请添加表单内容"
|
|
131
135
|
}
|
|
132
136
|
})];
|
|
133
|
-
}), t.footerBarButtons.length ? o(
|
|
137
|
+
}), t.footerBarButtons.length ? o(u, t._g(t._b({
|
|
134
138
|
attrs: {
|
|
135
139
|
footer: ""
|
|
136
140
|
},
|
|
@@ -166,7 +170,7 @@ var x = function() {
|
|
|
166
170
|
}
|
|
167
171
|
}, [o("div", {
|
|
168
172
|
staticClass: "form-content"
|
|
169
|
-
}, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o(
|
|
173
|
+
}, [t.$parent.$options.flowForm && t.flowContext.logs.length ? o($, {
|
|
170
174
|
attrs: {
|
|
171
175
|
"block-title": "流程日志"
|
|
172
176
|
}
|
|
@@ -177,7 +181,7 @@ var x = function() {
|
|
|
177
181
|
"show-title": !1,
|
|
178
182
|
"business-key": t.$parent.bizKey
|
|
179
183
|
}
|
|
180
|
-
})], 1) : t._e(), t._t("form-bottom")], 2)]) : t._e()]), o(
|
|
184
|
+
})], 1) : t._e(), t._t("form-bottom")], 2)]) : t._e()]), o(F, {
|
|
181
185
|
on: {
|
|
182
186
|
notify: t.onFormResize
|
|
183
187
|
}
|
|
@@ -199,14 +203,14 @@ var x = function() {
|
|
|
199
203
|
}
|
|
200
204
|
}
|
|
201
205
|
}, [t._v(" " + t._s(r.blockTitle) + " ")]);
|
|
202
|
-
}), 0)]) : t._e(), t.isFormLoading ? o(
|
|
206
|
+
}), 0)]) : t._e(), t.isFormLoading ? o(S, {
|
|
203
207
|
attrs: {
|
|
204
208
|
"icon-size": "34px",
|
|
205
209
|
"font-size": "16px"
|
|
206
210
|
}
|
|
207
211
|
}) : t._e()], 1);
|
|
208
|
-
},
|
|
209
|
-
const
|
|
212
|
+
}, C = [];
|
|
213
|
+
const b = [
|
|
210
214
|
"back",
|
|
211
215
|
"create",
|
|
212
216
|
"save",
|
|
@@ -226,17 +230,17 @@ const p = [
|
|
|
226
230
|
"disabled",
|
|
227
231
|
"reload",
|
|
228
232
|
"slot"
|
|
229
|
-
],
|
|
233
|
+
], L = b.map((t) => `${t}-down`), I = ["back", "withdraw", "edit"], h = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], d = (t, e) => {
|
|
230
234
|
if (t.classList.contains(e))
|
|
231
235
|
return t;
|
|
232
236
|
let o = t.parentNode;
|
|
233
237
|
for (; o && !o.classList.contains(e); )
|
|
234
238
|
o = o.parentNode;
|
|
235
239
|
return o.classList.contains(e) ? o : null;
|
|
236
|
-
},
|
|
240
|
+
}, O = {
|
|
237
241
|
name: "FormView",
|
|
238
242
|
components: {
|
|
239
|
-
ResizeObserver:
|
|
243
|
+
ResizeObserver: x
|
|
240
244
|
},
|
|
241
245
|
inject: {
|
|
242
246
|
flowContext: {
|
|
@@ -287,19 +291,19 @@ const p = [
|
|
|
287
291
|
},
|
|
288
292
|
computed: {
|
|
289
293
|
isFormLoading() {
|
|
290
|
-
return this.loading ||
|
|
294
|
+
return this.loading || m(this.$parent, "isFormLoaded") ? !this.$parent.isFormLoaded : !1;
|
|
291
295
|
},
|
|
292
296
|
toolbarProps() {
|
|
293
297
|
var r;
|
|
294
|
-
const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o =
|
|
295
|
-
return o.buttons = e || ["back"], o.buttons =
|
|
298
|
+
const t = {}, e = ((r = this.toolbarAttrs) == null ? void 0 : r.buttons) || this.$parent.buttons, o = w({}, this.toolbarAttrs, t);
|
|
299
|
+
return o.buttons = e || ["back"], o.buttons = v(o.buttons), o;
|
|
296
300
|
},
|
|
297
301
|
toolbarButtons() {
|
|
298
|
-
return this.toolbarProps.buttons.filter((t) => !
|
|
302
|
+
return this.toolbarProps.buttons.filter((t) => !h.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
|
|
299
303
|
},
|
|
300
304
|
footerBarButtons() {
|
|
301
305
|
let t = this.toolbarProps.buttons.filter(
|
|
302
|
-
(e) => !
|
|
306
|
+
(e) => !I.includes(e) && (h.includes(e) || e.indexOf(":down") > -1)
|
|
303
307
|
).map((e) => e.replace(":down", ""));
|
|
304
308
|
return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
|
|
305
309
|
}
|
|
@@ -307,12 +311,12 @@ const p = [
|
|
|
307
311
|
created() {
|
|
308
312
|
this.$on("FormView.addGroup", (t) => {
|
|
309
313
|
t && (this.activeIndex === -1 && (this.activeIndex = 0), this.groups.push(t), this.groups = this.groups.sort((e, o) => {
|
|
310
|
-
const r =
|
|
314
|
+
const r = d(e.$el, "form-card"), s = d(o.$el, "form-card");
|
|
311
315
|
if (r === s) {
|
|
312
316
|
const n = [].indexOf.call(e.$el.parentNode.children, e.$el), l = [].indexOf.call(o.$el.parentNode.children, o.$el);
|
|
313
317
|
return n - l;
|
|
314
318
|
} else {
|
|
315
|
-
const n =
|
|
319
|
+
const n = d(r, "form-scroller"), l = [].indexOf.call(n.children, r), a = [].indexOf.call(n.children, s);
|
|
316
320
|
return l - a;
|
|
317
321
|
}
|
|
318
322
|
}), t.active && (this.activeIndex = this.groups.indexOf(t), this.navItemClick(t, this.activeIndex)));
|
|
@@ -330,10 +334,10 @@ const p = [
|
|
|
330
334
|
},
|
|
331
335
|
methods: {
|
|
332
336
|
getToolbarSlotKeys() {
|
|
333
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
337
|
+
return Object.keys(this.$scopedSlots).filter((t) => b.includes(t));
|
|
334
338
|
},
|
|
335
339
|
getFooterSlotKeys() {
|
|
336
|
-
return Object.keys(this.$scopedSlots).filter((t) =>
|
|
340
|
+
return Object.keys(this.$scopedSlots).filter((t) => L.includes(t));
|
|
337
341
|
},
|
|
338
342
|
getFooterSlotKey(t) {
|
|
339
343
|
return t.replace("-down", "");
|
|
@@ -342,7 +346,7 @@ const p = [
|
|
|
342
346
|
this.showNav = t > 1500;
|
|
343
347
|
},
|
|
344
348
|
onEdit() {
|
|
345
|
-
!this.toolbarListeners.edit &&
|
|
349
|
+
!this.toolbarListeners.edit && m(this.$parent, "disabled") && (this.$parent.disabled = !1);
|
|
346
350
|
},
|
|
347
351
|
navItemClick(t, e) {
|
|
348
352
|
return c(this, null, function* () {
|
|
@@ -350,13 +354,13 @@ const p = [
|
|
|
350
354
|
});
|
|
351
355
|
},
|
|
352
356
|
activeFormItemGroup(t, e) {
|
|
353
|
-
this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10,
|
|
357
|
+
this.$refs.formScroller.scrollTop = t.$el.offsetTop - 10, g(t.$el, "breathe-indicator-animation"), this.tryByClick = !0, this.activeIndex = e;
|
|
354
358
|
},
|
|
355
359
|
tryActive() {
|
|
356
360
|
return c(this, null, function* () {
|
|
357
361
|
if (this.showNav) {
|
|
358
362
|
for (let t = 0; t < this.groups.length; t++)
|
|
359
|
-
if (
|
|
363
|
+
if (y(this.groups[t].$el, this.$refs.formScroller, { bottomOffset: 10 })) {
|
|
360
364
|
this.activeIndex = t;
|
|
361
365
|
break;
|
|
362
366
|
}
|
|
@@ -370,24 +374,24 @@ const p = [
|
|
|
370
374
|
t && (this.$refs.formScroller.scrollTop = t), e && (this.$refs.formScroller.scrollLeft = e);
|
|
371
375
|
}
|
|
372
376
|
}
|
|
373
|
-
},
|
|
374
|
-
var
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
$,
|
|
378
|
-
!1,
|
|
377
|
+
}, _ = {};
|
|
378
|
+
var N = /* @__PURE__ */ k(
|
|
379
|
+
O,
|
|
380
|
+
B,
|
|
379
381
|
C,
|
|
382
|
+
!1,
|
|
383
|
+
T,
|
|
380
384
|
null,
|
|
381
385
|
null,
|
|
382
386
|
null
|
|
383
387
|
);
|
|
384
|
-
function
|
|
385
|
-
for (let e in
|
|
386
|
-
this[e] =
|
|
388
|
+
function T(t) {
|
|
389
|
+
for (let e in _)
|
|
390
|
+
this[e] = _[e];
|
|
387
391
|
}
|
|
388
|
-
const
|
|
389
|
-
return
|
|
392
|
+
const q = /* @__PURE__ */ function() {
|
|
393
|
+
return N.exports;
|
|
390
394
|
}();
|
|
391
395
|
export {
|
|
392
|
-
|
|
396
|
+
q as default
|
|
393
397
|
};
|
package/fy-array/index.mjs
CHANGED
|
@@ -1,106 +1,110 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { p as l, e as c } from "../chunks/event.4377230d.mjs";
|
|
2
|
+
import { v as p } from "../chunks/util.7844e2c2.mjs";
|
|
3
|
+
import o from "element-ui/lib/button";
|
|
4
|
+
import u from "element-ui/lib/input";
|
|
5
|
+
import _ from "element-ui/lib/link";
|
|
6
|
+
import m from "element-ui/lib/tooltip";
|
|
7
|
+
import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
8
|
+
var y = function() {
|
|
9
|
+
var e = this, n = e.$createElement, t = e._self._c || n;
|
|
10
|
+
return t("div", {
|
|
7
11
|
staticClass: "avue-array"
|
|
8
|
-
}, [
|
|
12
|
+
}, [e.text ? t(o, {
|
|
9
13
|
attrs: {
|
|
10
14
|
type: "primary",
|
|
11
15
|
icon: "el-icon-plus",
|
|
12
16
|
circle: "",
|
|
13
|
-
size:
|
|
14
|
-
disabled:
|
|
17
|
+
size: e.size,
|
|
18
|
+
disabled: e.disabled
|
|
15
19
|
},
|
|
16
20
|
on: {
|
|
17
|
-
click: function(
|
|
18
|
-
return
|
|
21
|
+
click: function(r) {
|
|
22
|
+
return e.add();
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
|
-
}) :
|
|
22
|
-
return
|
|
23
|
-
key:
|
|
25
|
+
}) : e._e(), e._l(e.text, function(r, i) {
|
|
26
|
+
return t("div", {
|
|
27
|
+
key: i,
|
|
24
28
|
staticClass: "avue-array__item"
|
|
25
|
-
}, [
|
|
29
|
+
}, [t("div", {
|
|
26
30
|
staticClass: "avue-array__input"
|
|
27
|
-
}, [
|
|
31
|
+
}, [t(m, {
|
|
28
32
|
attrs: {
|
|
29
33
|
placement: "bottom",
|
|
30
|
-
disabled: !
|
|
34
|
+
disabled: !e.isImg && !e.isUrl || !!r
|
|
31
35
|
},
|
|
32
|
-
scopedSlots:
|
|
36
|
+
scopedSlots: e._u([{
|
|
33
37
|
key: "content",
|
|
34
38
|
fn: function() {
|
|
35
|
-
return [
|
|
39
|
+
return [t("div", [e.isImg ? t(e.isMediaType(r), {
|
|
36
40
|
tag: "Component",
|
|
37
41
|
staticStyle: {
|
|
38
42
|
width: "200px"
|
|
39
43
|
},
|
|
40
44
|
attrs: {
|
|
41
|
-
src:
|
|
45
|
+
src: r,
|
|
42
46
|
controls: "controls"
|
|
43
47
|
},
|
|
44
48
|
on: {
|
|
45
49
|
click: function(s) {
|
|
46
|
-
return
|
|
50
|
+
return e.openImg(i);
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
|
-
}) :
|
|
53
|
+
}) : e.isUrl ? t(_, {
|
|
50
54
|
attrs: {
|
|
51
55
|
type: "primary",
|
|
52
|
-
href:
|
|
53
|
-
target:
|
|
56
|
+
href: r,
|
|
57
|
+
target: e.target
|
|
54
58
|
}
|
|
55
|
-
}, [
|
|
59
|
+
}, [e._v(" " + e._s(r) + " ")]) : e._e()], 1)];
|
|
56
60
|
},
|
|
57
61
|
proxy: !0
|
|
58
62
|
}], null, !0)
|
|
59
|
-
}, [
|
|
63
|
+
}, [t(u, {
|
|
60
64
|
attrs: {
|
|
61
|
-
size:
|
|
62
|
-
placeholder:
|
|
63
|
-
disabled:
|
|
65
|
+
size: e.size,
|
|
66
|
+
placeholder: e.placeholder,
|
|
67
|
+
disabled: e.disabled
|
|
64
68
|
},
|
|
65
69
|
model: {
|
|
66
|
-
value:
|
|
70
|
+
value: e.text[i],
|
|
67
71
|
callback: function(s) {
|
|
68
|
-
|
|
72
|
+
e.$set(e.text, i, s);
|
|
69
73
|
},
|
|
70
74
|
expression: "text[index]"
|
|
71
75
|
}
|
|
72
|
-
})], 1),
|
|
76
|
+
})], 1), e.disabled || e.readonly || e.alone ? e._e() : [e.isLimit ? e._e() : t(o, {
|
|
73
77
|
attrs: {
|
|
74
78
|
type: "primary",
|
|
75
79
|
icon: "el-icon-plus",
|
|
76
80
|
circle: "",
|
|
77
|
-
size:
|
|
78
|
-
disabled:
|
|
81
|
+
size: e.size,
|
|
82
|
+
disabled: e.disabled
|
|
79
83
|
},
|
|
80
84
|
on: {
|
|
81
85
|
click: function(s) {
|
|
82
|
-
return
|
|
86
|
+
return e.add(i);
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
|
-
}),
|
|
89
|
+
}), t(o, {
|
|
86
90
|
attrs: {
|
|
87
91
|
type: "danger",
|
|
88
92
|
icon: "el-icon-minus",
|
|
89
93
|
circle: "",
|
|
90
|
-
size:
|
|
91
|
-
disabled:
|
|
94
|
+
size: e.size,
|
|
95
|
+
disabled: e.disabled
|
|
92
96
|
},
|
|
93
97
|
on: {
|
|
94
98
|
click: function(s) {
|
|
95
|
-
return
|
|
99
|
+
return e.remove(i);
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
})]], 2)]);
|
|
99
103
|
})], 2);
|
|
100
|
-
},
|
|
101
|
-
const
|
|
104
|
+
}, v = [];
|
|
105
|
+
const f = {
|
|
102
106
|
name: "FyArray",
|
|
103
|
-
mixins: [
|
|
107
|
+
mixins: [l, c],
|
|
104
108
|
props: {
|
|
105
109
|
fileType: String,
|
|
106
110
|
alone: Boolean,
|
|
@@ -122,37 +126,37 @@ const _ = {
|
|
|
122
126
|
}
|
|
123
127
|
},
|
|
124
128
|
methods: {
|
|
125
|
-
isMediaType(
|
|
126
|
-
return
|
|
129
|
+
isMediaType(e) {
|
|
130
|
+
return p(e, this.fileType);
|
|
127
131
|
},
|
|
128
|
-
add(
|
|
129
|
-
this.text.splice(
|
|
132
|
+
add(e) {
|
|
133
|
+
this.text.splice(e + 1, 0, "");
|
|
130
134
|
},
|
|
131
|
-
remove(
|
|
132
|
-
this.text.splice(
|
|
135
|
+
remove(e) {
|
|
136
|
+
this.text.splice(e, 1);
|
|
133
137
|
},
|
|
134
138
|
openImg() {
|
|
135
|
-
this.text.map((
|
|
139
|
+
this.text.map((e) => ({ thumbUrl: e, url: e, type: this.fileType }));
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
|
-
},
|
|
139
|
-
var
|
|
140
|
-
|
|
141
|
-
p,
|
|
142
|
-
d,
|
|
143
|
-
!1,
|
|
142
|
+
}, a = {};
|
|
143
|
+
var h = /* @__PURE__ */ d(
|
|
144
|
+
f,
|
|
144
145
|
y,
|
|
146
|
+
v,
|
|
147
|
+
!1,
|
|
148
|
+
g,
|
|
145
149
|
null,
|
|
146
150
|
null,
|
|
147
151
|
null
|
|
148
152
|
);
|
|
149
|
-
function
|
|
150
|
-
for (let n in
|
|
151
|
-
this[n] =
|
|
153
|
+
function g(e) {
|
|
154
|
+
for (let n in a)
|
|
155
|
+
this[n] = a[n];
|
|
152
156
|
}
|
|
153
|
-
const
|
|
154
|
-
return
|
|
157
|
+
const I = /* @__PURE__ */ function() {
|
|
158
|
+
return h.exports;
|
|
155
159
|
}();
|
|
156
160
|
export {
|
|
157
|
-
|
|
161
|
+
I as default
|
|
158
162
|
};
|
package/fy-cascader/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { p as d, e as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { p as d, e as p } from "../chunks/event.4377230d.mjs";
|
|
2
|
+
import u from "element-ui/lib/cascader";
|
|
3
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var f = function() {
|
|
4
5
|
var e = this, l = e.$createElement, s = e._self._c || l;
|
|
5
|
-
return s(
|
|
6
|
+
return s(u, {
|
|
6
7
|
attrs: {
|
|
7
8
|
options: e.dic,
|
|
8
9
|
placeholder: e.placeholder,
|
|
@@ -43,10 +44,10 @@ var h = function() {
|
|
|
43
44
|
expression: "text"
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
},
|
|
47
|
-
const
|
|
47
|
+
}, y = [];
|
|
48
|
+
const v = {
|
|
48
49
|
name: "FyCascader",
|
|
49
|
-
mixins: [d,
|
|
50
|
+
mixins: [d, p],
|
|
50
51
|
props: {
|
|
51
52
|
checkStrictly: {
|
|
52
53
|
type: Boolean,
|
|
@@ -110,10 +111,10 @@ const y = {
|
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
113
|
}, o = {};
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
h,
|
|
114
|
+
var m = /* @__PURE__ */ h(
|
|
115
|
+
v,
|
|
116
116
|
f,
|
|
117
|
+
y,
|
|
117
118
|
!1,
|
|
118
119
|
_,
|
|
119
120
|
null,
|
|
@@ -124,9 +125,9 @@ function _(e) {
|
|
|
124
125
|
for (let l in o)
|
|
125
126
|
this[l] = o[l];
|
|
126
127
|
}
|
|
127
|
-
const
|
|
128
|
-
return
|
|
128
|
+
const z = /* @__PURE__ */ function() {
|
|
129
|
+
return m.exports;
|
|
129
130
|
}();
|
|
130
131
|
export {
|
|
131
|
-
|
|
132
|
+
z as default
|
|
132
133
|
};
|
package/fy-checkbox/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { p as i, e as o } from "../chunks/event.4377230d.mjs";
|
|
2
|
+
import s from "element-ui/lib/checkbox";
|
|
3
|
+
import r from "element-ui/lib/checkbox-group";
|
|
4
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var d = function() {
|
|
6
|
+
var e = this, n = e.$createElement, l = e._self._c || n;
|
|
5
7
|
return l("div", {
|
|
6
8
|
staticClass: "avue-checkbox"
|
|
7
|
-
}, [e.all ? l(
|
|
9
|
+
}, [e.all ? l(s, {
|
|
8
10
|
attrs: {
|
|
9
11
|
disabled: e.disabled,
|
|
10
12
|
indeterminate: e.isIndeterminate
|
|
@@ -14,12 +16,12 @@ var r = function() {
|
|
|
14
16
|
},
|
|
15
17
|
model: {
|
|
16
18
|
value: e.checkAll,
|
|
17
|
-
callback: function(
|
|
18
|
-
e.checkAll =
|
|
19
|
+
callback: function(t) {
|
|
20
|
+
e.checkAll = t;
|
|
19
21
|
},
|
|
20
22
|
expression: "checkAll"
|
|
21
23
|
}
|
|
22
|
-
}, [e._v(" 全选 ")]) : e._e(), l(
|
|
24
|
+
}, [e._v(" 全选 ")]) : e._e(), l(r, {
|
|
23
25
|
attrs: {
|
|
24
26
|
disabled: e.disabled,
|
|
25
27
|
size: e.size,
|
|
@@ -30,34 +32,37 @@ var r = function() {
|
|
|
30
32
|
change: e.handleCheckChange
|
|
31
33
|
},
|
|
32
34
|
nativeOn: {
|
|
33
|
-
click: function(
|
|
35
|
+
click: function(t) {
|
|
34
36
|
return e.handleClick.apply(null, arguments);
|
|
35
37
|
}
|
|
36
38
|
},
|
|
37
39
|
model: {
|
|
38
40
|
value: e.text,
|
|
39
|
-
callback: function(
|
|
40
|
-
e.text =
|
|
41
|
+
callback: function(t) {
|
|
42
|
+
e.text = t;
|
|
41
43
|
},
|
|
42
44
|
expression: "text"
|
|
43
45
|
}
|
|
44
|
-
}, e._l(e.dic, function(
|
|
46
|
+
}, e._l(e.dic, function(t, c) {
|
|
45
47
|
return l(e.componentName, {
|
|
46
|
-
key:
|
|
48
|
+
key: c,
|
|
47
49
|
tag: "Component",
|
|
48
50
|
attrs: {
|
|
49
|
-
label:
|
|
51
|
+
label: t[e.valueKey],
|
|
50
52
|
border: e.border,
|
|
51
53
|
size: e.size,
|
|
52
54
|
readonly: e.readonly,
|
|
53
|
-
disabled:
|
|
55
|
+
disabled: t[e.disabledKey]
|
|
54
56
|
}
|
|
55
|
-
}, [e._v(" " + e._s(
|
|
57
|
+
}, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
|
|
56
58
|
}), 1)], 1);
|
|
57
|
-
},
|
|
58
|
-
const
|
|
59
|
+
}, u = [];
|
|
60
|
+
const m = {
|
|
59
61
|
name: "FyCheckbox",
|
|
60
|
-
|
|
62
|
+
components: {
|
|
63
|
+
ElCheckbox: s
|
|
64
|
+
},
|
|
65
|
+
mixins: [i, o],
|
|
61
66
|
props: {
|
|
62
67
|
all: {
|
|
63
68
|
type: Boolean,
|
|
@@ -84,34 +89,34 @@ const d = {
|
|
|
84
89
|
},
|
|
85
90
|
methods: {
|
|
86
91
|
handleCheckAll(e) {
|
|
87
|
-
this.all && (this.text = e ? this.dic.map((
|
|
92
|
+
this.all && (this.text = e ? this.dic.map((n) => n[this.valueKey]) : [], this.isIndeterminate = !1);
|
|
88
93
|
},
|
|
89
94
|
handleCheckChange() {
|
|
90
95
|
const e = this.text;
|
|
91
96
|
if (!this.all)
|
|
92
97
|
return;
|
|
93
|
-
const
|
|
94
|
-
this.checkAll =
|
|
98
|
+
const n = e.length, l = this.dic.length;
|
|
99
|
+
this.checkAll = n === l, this.isIndeterminate = n > 0 && n < l;
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
}, a = {};
|
|
98
|
-
var
|
|
103
|
+
var _ = /* @__PURE__ */ h(
|
|
104
|
+
m,
|
|
99
105
|
d,
|
|
100
|
-
|
|
101
|
-
h,
|
|
106
|
+
u,
|
|
102
107
|
!1,
|
|
103
|
-
|
|
108
|
+
p,
|
|
104
109
|
null,
|
|
105
110
|
null,
|
|
106
111
|
null
|
|
107
112
|
);
|
|
108
|
-
function
|
|
109
|
-
for (let
|
|
110
|
-
this[
|
|
113
|
+
function p(e) {
|
|
114
|
+
for (let n in a)
|
|
115
|
+
this[n] = a[n];
|
|
111
116
|
}
|
|
112
|
-
const
|
|
113
|
-
return
|
|
117
|
+
const C = /* @__PURE__ */ function() {
|
|
118
|
+
return _.exports;
|
|
114
119
|
}();
|
|
115
120
|
export {
|
|
116
|
-
|
|
121
|
+
C as default
|
|
117
122
|
};
|
package/fy-code/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import s from "
|
|
2
|
-
import
|
|
3
|
-
import { n as
|
|
4
|
-
var
|
|
1
|
+
import { s as o } from "../chunks/util.7844e2c2.mjs";
|
|
2
|
+
import r from "element-ui/lib/scrollbar";
|
|
3
|
+
import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var l = function() {
|
|
5
5
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
6
6
|
return n("div", {
|
|
7
7
|
staticClass: "avue-code"
|
|
8
|
-
}, [n(
|
|
8
|
+
}, [n(r, {
|
|
9
9
|
style: t.styleName
|
|
10
10
|
}, [n("pre", [t._v(" "), n("code", {
|
|
11
11
|
ref: "container",
|
|
@@ -17,9 +17,6 @@ var i = function() {
|
|
|
17
17
|
}, a = [];
|
|
18
18
|
const c = {
|
|
19
19
|
name: "FyCode",
|
|
20
|
-
components: {
|
|
21
|
-
ElScrollbar: s
|
|
22
|
-
},
|
|
23
20
|
props: {
|
|
24
21
|
height: {
|
|
25
22
|
type: Number,
|
|
@@ -43,10 +40,10 @@ const c = {
|
|
|
43
40
|
methods: {
|
|
44
41
|
setPx: o
|
|
45
42
|
}
|
|
46
|
-
},
|
|
47
|
-
var
|
|
43
|
+
}, s = {};
|
|
44
|
+
var _ = /* @__PURE__ */ i(
|
|
48
45
|
c,
|
|
49
|
-
|
|
46
|
+
l,
|
|
50
47
|
a,
|
|
51
48
|
!1,
|
|
52
49
|
u,
|
|
@@ -55,11 +52,11 @@ var h = /* @__PURE__ */ l(
|
|
|
55
52
|
null
|
|
56
53
|
);
|
|
57
54
|
function u(t) {
|
|
58
|
-
for (let e in
|
|
59
|
-
this[e] =
|
|
55
|
+
for (let e in s)
|
|
56
|
+
this[e] = s[e];
|
|
60
57
|
}
|
|
61
58
|
const m = /* @__PURE__ */ function() {
|
|
62
|
-
return
|
|
59
|
+
return _.exports;
|
|
63
60
|
}();
|
|
64
61
|
export {
|
|
65
62
|
m as default
|