@web-utils/component 2.30.1 → 2.40.0
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 +9 -9
- package/address-input/style.css +1 -1
- package/affix/index.mjs +1 -1
- package/affix/style.css +1 -1
- package/aside-menu/index.mjs +20 -20
- package/aside-menu/style.css +1 -1
- package/avatar/index.mjs +1 -1
- package/avatar/style.css +1 -1
- package/awesome-button/index.mjs +1 -1
- package/base.css +1 -1
- package/capsule-tab/index.mjs +10 -10
- package/capsule-tab/style.css +1 -1
- package/card/index.mjs +23 -23
- package/card/style.css +1 -1
- package/carousel/index.mjs +5 -5
- package/carousel/style.css +1 -1
- package/chat/index.mjs +5 -3
- package/chat/style.css +1 -1
- package/chunk-file-uploader/index.mjs +3 -3
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.7f91629d.mjs} +4 -4
- package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.817b542f.mjs} +16 -6
- package/chunks/{dataformat.X_61lMA7.mjs → dataformat.f995e2f9.mjs} +1 -1
- package/chunks/{dic.6tk91Dmq.mjs → dic.eaac0823.mjs} +8 -10
- package/chunks/{event.NHA7rYFE.mjs → event.b5d855dd.mjs} +3 -3
- package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.4632ad36.mjs} +2 -2
- package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.ad148e7b.mjs} +1 -1
- package/chunks/{init.Ac4dKUJB.mjs → init.47f219b4.mjs} +3 -3
- package/chunks/{util.C2Bhx22L.mjs → util.ae730cde.mjs} +24 -18
- package/code-mirror-editor/index.mjs +404 -175
- package/code-mirror-editor/style.css +1 -1
- package/color-picker/index.mjs +1 -1
- package/comment/index.mjs +18 -18
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +2 -2
- package/confirmable/index.mjs +2 -2
- package/context-menu/index.mjs +9 -9
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +6 -10
- package/custom-scrollbar/index.mjs +5 -9
- package/data-box/index.mjs +8 -8
- package/data-box/style.css +1 -1
- package/data-card/index.mjs +19 -19
- package/data-card/style.css +1 -1
- package/data-cardtext/index.mjs +22 -22
- package/data-cardtext/style.css +1 -1
- package/data-display/index.mjs +24 -24
- package/data-display/style.css +1 -1
- package/data-icons/index.mjs +13 -13
- package/data-icons/style.css +1 -1
- package/data-imgtext/index.mjs +18 -18
- package/data-imgtext/style.css +1 -1
- package/data-operatext/index.mjs +28 -28
- package/data-operatext/style.css +1 -1
- package/data-panel/index.mjs +15 -15
- package/data-panel/style.css +1 -1
- package/data-pay/index.mjs +7 -7
- package/data-pay/style.css +1 -1
- package/data-price/index.mjs +5 -5
- package/data-price/style.css +1 -1
- package/data-progress/index.mjs +16 -16
- package/data-progress/style.css +1 -1
- package/data-rotate/index.mjs +7 -7
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -2
- package/data-tabs/index.mjs +6 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +47 -47
- package/dialog-form/style.css +1 -1
- package/dynamic-table/index.mjs +15 -15
- package/dynamic-table/style.css +1 -1
- package/e-charts/index.mjs +7 -7
- package/e-charts/style.css +1 -1
- package/easy-popup/index.mjs +15 -15
- package/easy-popup/style.css +1 -1
- package/editable-progress/index.mjs +1 -1
- package/editable-progress/style.css +1 -1
- package/editable-tree/index.mjs +5 -5
- package/editable-tree/style.css +1 -1
- package/egd-collapse/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +1 -1
- package/element-dialog/index.mjs +13 -9
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +9 -9
- package/empty-view/style.css +1 -1
- package/error-view/index.mjs +13 -13
- package/error-view/style.css +1 -1
- package/flex-column/index.mjs +2 -2
- package/flex-item/index.mjs +12 -6
- package/flex-row/index.mjs +2 -2
- package/flex-scroller/index.mjs +5 -5
- package/flex-scroller/style.css +1 -1
- package/flow/index.mjs +23 -9
- package/flow/style.css +1 -1
- package/flow-designer/index.mjs +156 -63
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/flow-viewer/index.mjs +20 -11
- package/flow-viewer/style.css +1 -1
- package/form-block/index.mjs +23 -20
- package/form-block/style.css +1 -1
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +7 -5
- package/form-checkbox-group/index.mjs +9 -7
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +41 -12
- package/form-holder/index.mjs +6 -3
- package/form-input/index.mjs +6 -4
- package/form-input-email/index.mjs +12 -8
- package/form-input-id-card/index.mjs +12 -8
- package/form-input-number/index.mjs +10 -8
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +12 -8
- package/form-input-tag/index.mjs +3 -3
- package/form-input-time/index.mjs +6 -4
- package/form-item/index.mjs +43 -37
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-group/index.mjs +15 -12
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +40 -38
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +7 -5
- package/form-switch/index.mjs +6 -4
- package/form-textarea/index.mjs +6 -4
- package/form-view/index.mjs +32 -10
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +9 -9
- package/fy-array/style.css +1 -1
- package/fy-article/index.mjs +7 -7
- package/fy-article/style.css +1 -1
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +6 -6
- package/fy-checkbox/style.css +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +117 -99
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +8 -8
- package/fy-date/style.css +1 -1
- package/fy-draggable/index.mjs +3 -3
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +51 -43
- package/fy-dynamic/style.css +1 -1
- package/fy-empty/index.mjs +10 -10
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +42 -42
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +539 -421
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-icon/index.mjs +5 -5
- package/fy-input-icon/style.css +1 -1
- package/fy-input-map/index.mjs +21 -15
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +13 -10
- package/fy-input-table/style.css +1 -1
- package/fy-input-tree/index.mjs +6 -6
- package/fy-input-tree/style.css +1 -1
- package/fy-progress/index.mjs +1 -1
- package/fy-radio/index.mjs +6 -6
- package/fy-radio/style.css +1 -1
- package/fy-rate/index.mjs +4 -4
- package/fy-rate/style.css +1 -1
- package/fy-select/index.mjs +27 -27
- package/fy-select/style.css +1 -1
- package/fy-slider/index.mjs +3 -3
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +2 -2
- package/fy-title/index.mjs +14 -14
- package/fy-title/style.css +1 -1
- package/fy-tree/index.mjs +6 -9
- package/fy-tree/style.css +1 -1
- package/fy-u-editor/index.mjs +34 -32
- package/fy-u-editor/style.css +1 -1
- package/fy-upload/index.mjs +27 -27
- package/fy-upload/style.css +1 -1
- package/guide-steps/index.mjs +12 -12
- package/guide-steps/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/icon-card/index.mjs +9 -9
- package/icon-card/style.css +1 -1
- package/icon-temp/index.mjs +16 -16
- package/icon-temp/style.css +1 -1
- package/iframe-window/index.mjs +5 -5
- package/iframe-window/style.css +1 -1
- package/image-cropper/index.mjs +10 -10
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +7 -7
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +5 -5
- package/image-viewer/style.css +1 -1
- package/input-number/index.mjs +2 -2
- package/input-number/style.css +1 -1
- package/input-number-range/index.mjs +7 -7
- package/input-number-range/style.css +1 -1
- package/keep-view-alive/index.mjs +6 -2
- package/keyboard/index.mjs +21 -20
- package/keyboard/style.css +1 -1
- package/license/index.mjs +2 -2
- package/loading-view/index.mjs +5 -5
- package/loading-view/style.css +1 -1
- package/login/index.mjs +4 -4
- package/login/style.css +1 -1
- package/monaco-editor/index.mjs +2 -2
- package/name-avatar/index.mjs +6 -6
- package/name-avatar/style.css +1 -1
- package/nav-bar/index.mjs +8 -8
- package/nav-bar/style.css +1 -1
- package/not-implement/index.mjs +15 -15
- package/not-implement/style.css +1 -1
- package/notice/index.mjs +5 -5
- package/notice/style.css +1 -1
- package/package.json +1 -1
- package/page/index.mjs +8 -8
- package/page/style.css +1 -1
- package/page-header/index.mjs +6 -6
- package/page-header/style.css +1 -1
- package/page-index/index.mjs +19 -19
- package/page-index/style.css +1 -1
- package/page-index-top/index.mjs +1 -1
- package/page-skeleton/index.mjs +21 -21
- package/page-skeleton/style.css +1 -1
- package/page-skeleton-new/index.mjs +3 -3
- package/page-skeleton-new/style.css +1 -1
- package/pageable-table/index.mjs +21 -26
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +37 -42
- package/pageable-view/style.css +1 -1
- package/photo-swipe/index.mjs +4 -2
- package/present-view/index.mjs +31 -9
- package/present-view/style.css +1 -1
- package/queue/index.mjs +4 -4
- package/queue/style.css +1 -1
- package/record-video/index.mjs +14 -14
- package/record-video/style.css +1 -1
- package/resize-observer/index.mjs +6 -6
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +7 -7
- package/search/style.css +1 -1
- package/search-popover/index.mjs +6 -6
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +31 -31
- package/sign/style.css +1 -1
- package/sign-panel/index.mjs +8 -8
- package/sign-panel/style.css +1 -1
- package/skeleton/index.mjs +10 -10
- package/skeleton/style.css +1 -1
- package/split-pane/index.mjs +19 -22
- package/split-pane/style.css +1 -1
- package/stateful/index.mjs +12 -12
- package/stateful/style.css +1 -1
- package/static-pageable-table/index.mjs +9 -9
- package/static-pageable-table/style.css +1 -1
- package/swiper/index.mjs +7 -7
- package/swiper/style.css +1 -1
- package/tab/index.mjs +2 -2
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +10 -6
- package/table-view/index.mjs +28 -8
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +29 -29
- package/tag-render/style.css +1 -1
- package/text-ellipsis/index.mjs +9 -12
- package/text-ellipsis/style.css +1 -1
- package/tinymce-editor/index.mjs +77 -77
- package/tinymce-editor/style.css +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +6 -6
- package/toolbar-button/style.css +1 -1
- package/verify/index.mjs +10 -10
- package/verify/style.css +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-cron/style.css +1 -1
- package/vue-qr-code/index.mjs +1 -1
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-quill-editor/style.css +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tags-input/style.css +1 -1
- package/vue-tree-select/index.mjs +25 -22
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +32 -29
- package/vue-video-player/style.css +1 -1
- package/watermark/index.mjs +11 -11
- package/watermark/style.css +1 -1
- package/web-types.json +31 -31
- package/x-input-tag/index.mjs +13 -13
- package/x-input-tag/style.css +1 -1
- /package/chunks/{form-pick-mixin.y-qhZJi6.mjs → form-pick-mixin.61ad06b2.mjs} +0 -0
- /package/chunks/{index.LGsb2aDq.mjs → index.57f871af.mjs} +0 -0
- /package/chunks/{input-number-mixin.GE2zr_3s.mjs → input-number-mixin.41a066be.mjs} +0 -0
- /package/chunks/{json-beautifier.fUZFSW5j.mjs → json-beautifier.21cfffea.mjs} +0 -0
- /package/chunks/{packages.v6r2Hr7E.mjs → packages.1fc9ccba.mjs} +0 -0
- /package/chunks/{permission.E9kZbW48.mjs → permission.ce5d2121.mjs} +0 -0
- /package/chunks/{slot.j1uMmBnG.mjs → slot.4b391395.mjs} +0 -0
- /package/chunks/{tab-mixin.tM9jcRT8.mjs → tab-mixin.e2b9c6a4.mjs} +0 -0
- /package/chunks/{vueComponentNormalizer.JwmUNtgn.mjs → vueComponentNormalizer.446f5dc4.mjs} +0 -0
package/fy-form/index.mjs
CHANGED
|
@@ -14,14 +14,14 @@ var D = (e, i, r) => new Promise((s, p) => {
|
|
|
14
14
|
}, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(t, l);
|
|
15
15
|
a((r = r.apply(e, i)).next());
|
|
16
16
|
});
|
|
17
|
-
import { F as B, d as I } from "../chunks/FormTemp.
|
|
18
|
-
import { i as M } from "../chunks/init.
|
|
19
|
-
import { s as y, d as x, u as L, x as V, p as A, j as S, a as W, o as
|
|
20
|
-
import { d as H, c as U, a as q, b as K, f as J } from "../chunks/dataformat.
|
|
21
|
-
import { s as Q } from "../chunks/dic.
|
|
22
|
-
import { p as X } from "../chunks/packages.
|
|
23
|
-
import { isBlank as
|
|
24
|
-
import { n as $ } from "../chunks/vueComponentNormalizer.
|
|
17
|
+
import { F as B, d as I } from "../chunks/FormTemp.7f91629d.mjs";
|
|
18
|
+
import { i as M } from "../chunks/init.47f219b4.mjs";
|
|
19
|
+
import { s as y, d as x, u as L, x as V, p as A, j as S, a as W, o as G, y as R } from "../chunks/util.ae730cde.mjs";
|
|
20
|
+
import { d as H, c as U, a as q, b as K, f as J } from "../chunks/dataformat.f995e2f9.mjs";
|
|
21
|
+
import { s as Q } from "../chunks/dic.eaac0823.mjs";
|
|
22
|
+
import { p as X } from "../chunks/packages.1fc9ccba.mjs";
|
|
23
|
+
import { isBlank as f } from "@web-utils/core";
|
|
24
|
+
import { n as $ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
25
25
|
const Y = (e, i, r, s) => {
|
|
26
26
|
if (!s)
|
|
27
27
|
return;
|
|
@@ -33,17 +33,17 @@ const Y = (e, i, r, s) => {
|
|
|
33
33
|
function a({ en: c }) {
|
|
34
34
|
return c ? t.name(!0) : t.cname();
|
|
35
35
|
}
|
|
36
|
-
function o({ max: c, min: n, precision:
|
|
37
|
-
if (
|
|
38
|
-
const h = `${t.float(n, c,
|
|
39
|
-
return Number(h.substring(0, m +
|
|
36
|
+
function o({ max: c, min: n, precision: u }) {
|
|
37
|
+
if (u) {
|
|
38
|
+
const h = `${t.float(n, c, u)}`, m = h.indexOf(".") + 1;
|
|
39
|
+
return Number(h.substring(0, m + u));
|
|
40
40
|
} else
|
|
41
41
|
return t.integer(n, c);
|
|
42
42
|
}
|
|
43
43
|
function d({ header: c }) {
|
|
44
44
|
let n = t.url();
|
|
45
|
-
const
|
|
46
|
-
return c === !1 ? n = n.substring(
|
|
45
|
+
const u = n.indexOf("://");
|
|
46
|
+
return c === !1 ? n = n.substring(u + 3) : n = `http://${n.substring(u + 3)}`, n;
|
|
47
47
|
}
|
|
48
48
|
function w({ format: c, now: n }) {
|
|
49
49
|
return n ? t.now(c) : t.datetime(c);
|
|
@@ -54,9 +54,9 @@ const Y = (e, i, r, s) => {
|
|
|
54
54
|
function N() {
|
|
55
55
|
return t.county(!0);
|
|
56
56
|
}
|
|
57
|
-
function P({ dic: c, props: n, columnType:
|
|
57
|
+
function P({ dic: c, props: n, columnType: u, multiple: h }) {
|
|
58
58
|
const m = n.value || "value", b = c.length;
|
|
59
|
-
if (["checkbox"].includes(
|
|
59
|
+
if (["checkbox"].includes(u) || h) {
|
|
60
60
|
const _ = o({ min: 1, max: b }), v = [];
|
|
61
61
|
for (let g = 0; g < _; g++) {
|
|
62
62
|
let O = !0;
|
|
@@ -75,28 +75,28 @@ const Y = (e, i, r, s) => {
|
|
|
75
75
|
Object.keys(e).forEach((c) => {
|
|
76
76
|
const n = e[c];
|
|
77
77
|
if (n.mock && typeof n.mock == "object") {
|
|
78
|
-
const
|
|
79
|
-
switch (
|
|
78
|
+
const u = n.mock;
|
|
79
|
+
switch (u.dic = typeof n.dicData == "string" ? i[n.dicData] : n.dicData || [], u.props = n.props || {}, u.columnType = n.type, u.multiple = n.multiple, u.type) {
|
|
80
80
|
case "name":
|
|
81
|
-
l[n.prop] = a(
|
|
81
|
+
l[n.prop] = a(u);
|
|
82
82
|
break;
|
|
83
83
|
case "number":
|
|
84
|
-
l[n.prop] = o(
|
|
84
|
+
l[n.prop] = o(u);
|
|
85
85
|
break;
|
|
86
86
|
case "datetime":
|
|
87
|
-
l[n.prop] = w(
|
|
87
|
+
l[n.prop] = w(u);
|
|
88
88
|
break;
|
|
89
89
|
case "word":
|
|
90
|
-
l[n.prop] = T(
|
|
90
|
+
l[n.prop] = T(u);
|
|
91
91
|
break;
|
|
92
92
|
case "url":
|
|
93
|
-
l[n.prop] = d(
|
|
93
|
+
l[n.prop] = d(u);
|
|
94
94
|
break;
|
|
95
95
|
case "county":
|
|
96
96
|
l[n.prop] = N();
|
|
97
97
|
break;
|
|
98
98
|
case "dic":
|
|
99
|
-
l[n.prop] = P(
|
|
99
|
+
l[n.prop] = P(u);
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
} else
|
|
@@ -306,10 +306,10 @@ function pe(e) {
|
|
|
306
306
|
for (let i in C)
|
|
307
307
|
this[i] = C[i];
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const ue = /* @__PURE__ */ function() {
|
|
310
310
|
return le.exports;
|
|
311
311
|
}();
|
|
312
|
-
var
|
|
312
|
+
var fe = function() {
|
|
313
313
|
var e = this, i = e.$createElement, r = e._self._c || i;
|
|
314
314
|
return r("div", {
|
|
315
315
|
class: ["avue-form", {
|
|
@@ -577,7 +577,7 @@ var ue = function() {
|
|
|
577
577
|
}, ce = [];
|
|
578
578
|
const de = {
|
|
579
579
|
name: "FyForm",
|
|
580
|
-
components: { FormTemp: B, FyFormMenu:
|
|
580
|
+
components: { FormTemp: B, FyFormMenu: ue, FormGroup: se },
|
|
581
581
|
mixins: [M],
|
|
582
582
|
provide() {
|
|
583
583
|
return {
|
|
@@ -776,7 +776,7 @@ const de = {
|
|
|
776
776
|
const e = J(this.propOption).tableForm, i = this.value, r = {};
|
|
777
777
|
Object.entries(Object.assign(e, i)).forEach((s) => {
|
|
778
778
|
const p = s[0], t = s[1];
|
|
779
|
-
|
|
779
|
+
f(i[p]) ? r[p] = t : r[p] = i[p];
|
|
780
780
|
}), this.$set(this, "form", r), this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
|
|
781
781
|
this.formCreate = !0, this.clearValidate();
|
|
782
782
|
});
|
|
@@ -821,7 +821,7 @@ const de = {
|
|
|
821
821
|
setLabel() {
|
|
822
822
|
this.tableOption.filterNull === !0 && (this.form = S(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = S(this.form, ["$"], !1) : this.propOption.forEach((e) => {
|
|
823
823
|
const i = this.DIC[e.prop];
|
|
824
|
-
if (
|
|
824
|
+
if (f(i))
|
|
825
825
|
return;
|
|
826
826
|
const r = I(this.form, e, this.tableOption, i);
|
|
827
827
|
r ? this.$set(this.form, `$${e.prop}`, r) : this.$delete(this.form, `$${e.prop}`);
|
|
@@ -835,7 +835,7 @@ const de = {
|
|
|
835
835
|
},
|
|
836
836
|
getLabelWidth(e, i) {
|
|
837
837
|
let r;
|
|
838
|
-
return
|
|
838
|
+
return f(e.labelWidth) ? f(i.labelWidth) ? r = this.parentOption.labelWidth : r = i.labelWidth : r = e.labelWidth, y(r, this.labelWidth);
|
|
839
839
|
},
|
|
840
840
|
// 对部分表单字段进行校验的方法
|
|
841
841
|
validateField(e) {
|
|
@@ -852,16 +852,16 @@ const de = {
|
|
|
852
852
|
const r = i.cascader, s = r.join(",");
|
|
853
853
|
r.forEach((p) => {
|
|
854
854
|
const t = p, l = this.form[i.prop], a = this.findObject(e, t);
|
|
855
|
-
|
|
855
|
+
f(a) || (this.formList.includes(s) && r.forEach((o) => {
|
|
856
856
|
this.form[o] = "", this.$set(this.DIC, o, []);
|
|
857
|
-
}), !(
|
|
857
|
+
}), !(f(r) || f(l) || f(a)) && Q({
|
|
858
858
|
column: a,
|
|
859
859
|
value: l,
|
|
860
860
|
form: this.form
|
|
861
861
|
}).then((o) => {
|
|
862
862
|
this.formList.includes(s) || this.formList.push(s);
|
|
863
863
|
const d = o || [];
|
|
864
|
-
this.$set(this.DIC, t, d), !
|
|
864
|
+
this.$set(this.DIC, t, d), !f(d) && !f(d) && !f(a.cascaderIndex) && f(this.form[t]) && (this.form[t] = d[a.cascaderIndex][(a.props || {}).value || W.value]);
|
|
865
865
|
}));
|
|
866
866
|
});
|
|
867
867
|
});
|
|
@@ -875,7 +875,7 @@ const de = {
|
|
|
875
875
|
handleMock() {
|
|
876
876
|
this.isMock && (this.columnOption.forEach((e) => {
|
|
877
877
|
const i = Y(e.column, this.DIC, this.form, this.isMock);
|
|
878
|
-
|
|
878
|
+
f(i) || Object.keys(i).forEach((r) => {
|
|
879
879
|
this.form[r] = i[r];
|
|
880
880
|
});
|
|
881
881
|
}), this.$nextTick(() => {
|
|
@@ -886,7 +886,7 @@ const de = {
|
|
|
886
886
|
let i;
|
|
887
887
|
if (this.detail)
|
|
888
888
|
return !1;
|
|
889
|
-
if (!
|
|
889
|
+
if (!f(e.detail))
|
|
890
890
|
i = "detail";
|
|
891
891
|
else if (this.isAdd)
|
|
892
892
|
i = "addDetail";
|
|
@@ -901,7 +901,7 @@ const de = {
|
|
|
901
901
|
let i;
|
|
902
902
|
if (this.disabled)
|
|
903
903
|
return !0;
|
|
904
|
-
if (!
|
|
904
|
+
if (!f(e.disabled))
|
|
905
905
|
i = "disabled";
|
|
906
906
|
else if (this.isAdd)
|
|
907
907
|
i = "addDisabled";
|
|
@@ -914,7 +914,7 @@ const de = {
|
|
|
914
914
|
// 验证表单是否显隐
|
|
915
915
|
vaildDisplay(e) {
|
|
916
916
|
let i;
|
|
917
|
-
return
|
|
917
|
+
return f(e.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? G(e[i], !0) : !0;
|
|
918
918
|
},
|
|
919
919
|
clearValidate(e) {
|
|
920
920
|
return D(this, null, function* () {
|
|
@@ -934,22 +934,22 @@ const de = {
|
|
|
934
934
|
const s = [], p = [], t = {};
|
|
935
935
|
this.dynamicOption.forEach((l) => {
|
|
936
936
|
const a = l.children.type === "form";
|
|
937
|
-
p.push(l.prop), a ?
|
|
937
|
+
p.push(l.prop), a ? f(this.$refs[l.prop][0].$refs.temp.$refs.main) || this.$refs[l.prop][0].$refs.temp.$refs.main.forEach((o) => {
|
|
938
938
|
s.push(o.validateCellForm());
|
|
939
939
|
}) : s.push(this.$refs[l.prop][0].$refs.temp.$refs.main.validateCellForm());
|
|
940
940
|
}), Promise.all(s).then((l) => {
|
|
941
941
|
l.forEach((o, d) => {
|
|
942
|
-
|
|
942
|
+
f(o) || (t[p[d]] = o);
|
|
943
943
|
});
|
|
944
944
|
const a = Object.assign(t, r);
|
|
945
|
-
|
|
945
|
+
f(a) ? (this.show(), e(!0, this.hide)) : e(!1, this.hide, a);
|
|
946
946
|
});
|
|
947
947
|
});
|
|
948
948
|
},
|
|
949
949
|
resetForm(e = !0) {
|
|
950
950
|
if (e) {
|
|
951
951
|
const i = this.propOption.map((r) => r.prop);
|
|
952
|
-
this.form =
|
|
952
|
+
this.form = R(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
|
|
953
953
|
}
|
|
954
954
|
this.$nextTick(() => {
|
|
955
955
|
this.clearValidate(), this.$emit("reset-change");
|
|
@@ -973,7 +973,7 @@ const de = {
|
|
|
973
973
|
}, E = {};
|
|
974
974
|
var he = /* @__PURE__ */ $(
|
|
975
975
|
de,
|
|
976
|
-
|
|
976
|
+
fe,
|
|
977
977
|
ce,
|
|
978
978
|
!1,
|
|
979
979
|
me,
|
package/fy-form/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.avue-group{width:100%}.avue-group .el-collapse,.avue-group .el-collapse-item__wrap{border-color:#fff}.avue-group .el-collapse-item__header{height:inherit;border:none;border-bottom:1px solid #eee;margin-bottom:20px}.avue-group .el-collapse-item__content,.avue-group .van-collapse-item__content{padding-bottom:0}.avue-group .van-collapse-item__content{padding:0 2px}.avue-group--arrow .el-collapse-item__arrow,.avue-group--arrow .van-icon-arrow,.avue-group .van-hairline--top-bottom:after,.avue-group .van-hairline-unset--top-bottom:after{display:none}.avue-group .van-collapse-item__title{align-items:center;padding:0 10px;display:flex}.avue-group .van-collapse-item__title:after{left:0!important}.avue-group--none{border:none!important;margin:0!important}.avue-group--header .el-collapse-item__header,.avue-group--header .van-collapse-item__title{display:none}.avue-group--collapse .el-collapse-item__arrow,.avue-group--collapse .el-collapse-item__header{display:flex!important}.avue-group__item{box-sizing:border-box;background-color:#fff;border-bottom:1px solid #eee;border-radius:5px;margin-bottom:10px}.avue-group__item:last-child{border-bottom:none}.avue-group__header{box-sizing:border-box;align-items:center;width:100%;height:50px;line-height:50px;display:flex}.avue-group__icon{color:rgba(0,0,0,.85);margin-right:8px;font-size:20px}.avue-group__title{color:rgba(0,0,0,.85);font-size:16px;font-weight:500}.avue-form{box-sizing:border-box;margin:0 auto;padding:10px;position:relative;overflow:auto}.avue-form__item--top{flex-direction:column;display:flex}.avue-form__item--top .el-form-item__label{text-align:left!important;width:100%!important}.avue-form__item--top .el-form-item__content{margin-left:0!important}.avue-form__item--left .el-form-item__label{text-align:left!important}.avue-form__menu{box-sizing:border-box;padding:5px 10px 0}.avue-form__menu--center{text-align:center}.avue-form__menu--center .el-button{margin:0 5px}.avue-form__menu--left{text-align:left}.avue-form__menu--right{text-align:right}.avue-form__tabs{box-sizing:border-box;padding:0 10px}.avue-form__group{flex-wrap:wrap;align-items:flex-start;height:auto}.avue-form__group--flex{display:flex}.avue-form__group .el-col{position:relative}.avue-form__line{height:100%;display:inline-block}.avue-form__row--block{width:100%;display:block}.avue-form__row--cursor{cursor:pointer}.avue-form__option{z-index:999;position:absolute;top:-10px;right:0}.avue-form__option i{color:#666}.avue-form__option i+i{margin-left:10px}
|
|
1
|
+
.avue-group{width:100%}.avue-group .el-collapse,.avue-group .el-collapse-item__wrap{border-color:#fff}.avue-group .el-collapse-item__header{height:inherit;border:none;border-bottom:1px solid #eee;margin-bottom:20px}.avue-group .el-collapse-item__content,.avue-group .van-collapse-item__content{padding-bottom:0}.avue-group .van-collapse-item__content{padding:0 2px}.avue-group--arrow .el-collapse-item__arrow,.avue-group--arrow .van-icon-arrow,.avue-group .van-hairline--top-bottom:after,.avue-group .van-hairline-unset--top-bottom:after{display:none}.avue-group .van-collapse-item__title{align-items:center;padding:0 10px;display:flex}.avue-group .van-collapse-item__title:after{left:0!important}.avue-group--none{border:none!important;margin:0!important}.avue-group--header .el-collapse-item__header,.avue-group--header .van-collapse-item__title{display:none}.avue-group--collapse .el-collapse-item__arrow,.avue-group--collapse .el-collapse-item__header{display:flex!important}.avue-group__item{box-sizing:border-box;background-color:#fff;border-bottom:1px solid #eee;border-radius:5px;margin-bottom:10px}.avue-group__item:last-child{border-bottom:none}.avue-group__header{box-sizing:border-box;align-items:center;width:100%;height:50px;line-height:50px;display:flex}.avue-group__icon{color:rgba(0,0,0,.85);margin-right:8px;font-size:20px}.avue-group__title{color:rgba(0,0,0,.85);font-size:16px;font-weight:500}.avue-form{box-sizing:border-box;margin:0 auto;padding:10px;position:relative;overflow:auto}.avue-form__item--top{flex-direction:column;display:flex}.avue-form__item--top .el-form-item__label{text-align:left!important;width:100%!important}.avue-form__item--top .el-form-item__content{margin-left:0!important}.avue-form__item--left .el-form-item__label{text-align:left!important}.avue-form__menu{box-sizing:border-box;padding:5px 10px 0}.avue-form__menu--center{text-align:center}.avue-form__menu--center .el-button{margin:0 5px}.avue-form__menu--left{text-align:left}.avue-form__menu--right{text-align:right}.avue-form__tabs{box-sizing:border-box;padding:0 10px}.avue-form__group{flex-wrap:wrap;align-items:flex-start;height:auto}.avue-form__group--flex{display:flex}.avue-form__group .el-col{position:relative}.avue-form__line{height:100%;display:inline-block}.avue-form__row--block{width:100%;display:block}.avue-form__row--cursor{cursor:pointer}.avue-form__option{z-index:999;position:absolute;top:-10px;right:0}.avue-form__option i{color:#666}.avue-form__option i+i{margin-left:10px}
|