@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
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
1
|
+
import { f as p } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import u from "../input-number/index.mjs";
|
|
3
3
|
import { d as s, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import "element-ui/src/directives/repeat-click";
|
|
10
|
-
import "@web-utils/core";
|
|
11
|
-
import "async-validator";
|
|
12
|
-
let n = {};
|
|
13
|
-
const i = p.mixins;
|
|
14
|
-
i && [...i, p].forEach((e) => {
|
|
15
|
-
e.props && (n = { ...n, ...e.props });
|
|
4
|
+
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
let t = {};
|
|
6
|
+
const i = u.mixins;
|
|
7
|
+
i && [...i, u].forEach((e) => {
|
|
8
|
+
e.props && (t = { ...t, ...e.props });
|
|
16
9
|
});
|
|
17
|
-
const
|
|
10
|
+
const m = Object.keys(t).filter((e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)), f = {
|
|
18
11
|
name: "FormInputNumber",
|
|
19
|
-
mixins: [
|
|
12
|
+
mixins: [p],
|
|
20
13
|
props: {
|
|
21
14
|
value: [Number, String],
|
|
22
15
|
max: {
|
|
@@ -39,14 +32,14 @@ const a = Object.keys(n).filter((e) => !["value", "placeholder", "disabled", "pr
|
|
|
39
32
|
},
|
|
40
33
|
computed: {
|
|
41
34
|
inputProps() {
|
|
42
|
-
return s({ ...l(this.$attrs), ...this.$props },
|
|
35
|
+
return s({ ...l(this.$attrs), ...this.$props }, m);
|
|
43
36
|
}
|
|
44
37
|
}
|
|
45
38
|
};
|
|
46
39
|
var c = function() {
|
|
47
40
|
var r = this, o = r._self._c;
|
|
48
41
|
return o("FormItem", r._b({ attrs: { rules: r.computeRules, disabled: r.inputDisabled }, scopedSlots: r._u([{ key: "default", fn: function() {
|
|
49
|
-
return [o("InputNumber", r._g(r._b({ staticClass: "form-input-number", attrs: { value: r.value !== null && r.value !== "" ? r.value : void 0, controls: r.controls, precision: r.precision, max: r.max, "controls-position": r.controlsPosition, min: r.min, placeholder: r.computePlaceholder, disabled: r.inputDisabled }, on: { input: (
|
|
42
|
+
return [o("InputNumber", r._g(r._b({ staticClass: "form-input-number", attrs: { value: r.value !== null && r.value !== "" ? r.value : void 0, controls: r.controls, precision: r.precision, max: r.max, "controls-position": r.controlsPosition, min: r.min, placeholder: r.computePlaceholder, disabled: r.inputDisabled }, on: { input: (n) => r.$emit("input", n) }, scopedSlots: r._u([{ key: "append", fn: function() {
|
|
50
43
|
return [r._t("append", function() {
|
|
51
44
|
return [r.append ? [r._v(" " + r._s(r.append) + " ")] : r._e()];
|
|
52
45
|
})];
|
|
@@ -57,12 +50,12 @@ var c = function() {
|
|
|
57
50
|
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
58
51
|
return [r._t("suffix")];
|
|
59
52
|
}, proxy: !0 }], null, !0) }, "InputNumber", r.inputProps, !1), r.listeners))];
|
|
60
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
61
|
-
return [r._t("error", null, { error:
|
|
53
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
54
|
+
return [r._t("error", null, { error: n })];
|
|
62
55
|
} }, { key: "label", fn: function() {
|
|
63
56
|
return [r._t("label")];
|
|
64
57
|
}, proxy: !0 }], null, !0) }, "FormItem", r.formItemProps, !1));
|
|
65
|
-
}, d = [], _ = /* @__PURE__ */
|
|
58
|
+
}, d = [], _ = /* @__PURE__ */ a(
|
|
66
59
|
f,
|
|
67
60
|
c,
|
|
68
61
|
d,
|
|
@@ -70,7 +63,7 @@ var c = function() {
|
|
|
70
63
|
null,
|
|
71
64
|
null
|
|
72
65
|
);
|
|
73
|
-
const
|
|
66
|
+
const v = _.exports;
|
|
74
67
|
export {
|
|
75
|
-
|
|
68
|
+
v as default
|
|
76
69
|
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { validatePhoneNum as s } from "@web-utils/core";
|
|
3
|
-
import { c as l, d as
|
|
4
|
-
import
|
|
5
|
-
import { n as
|
|
6
|
-
|
|
7
|
-
import "element-ui/lib/col";
|
|
8
|
-
import "element-ui/lib/form-item";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
const m = l(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
3
|
+
import { c as l, d as a, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import i from "element-ui/lib/input";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const m = l(i).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
11
7
|
name: "FormInputPhoneNumber",
|
|
12
8
|
mixins: [o],
|
|
13
9
|
props: {
|
|
@@ -19,7 +15,7 @@ const m = l(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
19
15
|
},
|
|
20
16
|
computed: {
|
|
21
17
|
inputProps() {
|
|
22
|
-
return
|
|
18
|
+
return a({ ...u(this.$attrs), ...this.$props }, m);
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
21
|
methods: {
|
|
@@ -47,7 +43,7 @@ var f = function() {
|
|
|
47
43
|
} }, { key: "label", fn: function() {
|
|
48
44
|
return [e._t("label")];
|
|
49
45
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
50
|
-
}, c = [], _ = /* @__PURE__ */
|
|
46
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
51
47
|
d,
|
|
52
48
|
f,
|
|
53
49
|
c,
|
|
@@ -55,7 +51,7 @@ var f = function() {
|
|
|
55
51
|
null,
|
|
56
52
|
null
|
|
57
53
|
);
|
|
58
|
-
const
|
|
54
|
+
const P = _.exports;
|
|
59
55
|
export {
|
|
60
|
-
|
|
56
|
+
P as default
|
|
61
57
|
};
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { d as n, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import u from "../x-input-tag/index.mjs";
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
const s = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), i = {
|
|
4
|
+
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const p = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), i = {
|
|
11
6
|
name: "FormInputTag",
|
|
12
7
|
mixins: [a],
|
|
13
8
|
props: {
|
|
@@ -40,7 +35,7 @@ const s = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled
|
|
|
40
35
|
},
|
|
41
36
|
computed: {
|
|
42
37
|
inputProps() {
|
|
43
|
-
return n({ ...l(this.$attrs), ...this.$props },
|
|
38
|
+
return n({ ...l(this.$attrs), ...this.$props }, p);
|
|
44
39
|
}
|
|
45
40
|
}
|
|
46
41
|
};
|
|
@@ -53,15 +48,15 @@ var d = function() {
|
|
|
53
48
|
} }, { key: "label", fn: function() {
|
|
54
49
|
return [e._t("label")];
|
|
55
50
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
56
|
-
},
|
|
51
|
+
}, c = [], f = /* @__PURE__ */ s(
|
|
57
52
|
i,
|
|
58
53
|
d,
|
|
59
|
-
|
|
54
|
+
c,
|
|
60
55
|
!1,
|
|
61
56
|
null,
|
|
62
57
|
null
|
|
63
58
|
);
|
|
64
|
-
const
|
|
59
|
+
const g = f.exports;
|
|
65
60
|
export {
|
|
66
|
-
|
|
61
|
+
g as default
|
|
67
62
|
};
|
|
@@ -2,11 +2,6 @@ import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
|
2
2
|
import o from "element-ui/lib/time-picker";
|
|
3
3
|
import { c as i, d as l, n as s } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
5
|
const p = i(o).filter((r) => !["value", "placeholder", "disabled"].includes(r)), u = {
|
|
11
6
|
name: "FormInputTime",
|
|
12
7
|
mixins: [a],
|
|
@@ -72,7 +67,7 @@ var f = function() {
|
|
|
72
67
|
null,
|
|
73
68
|
null
|
|
74
69
|
);
|
|
75
|
-
const
|
|
70
|
+
const v = d.exports;
|
|
76
71
|
export {
|
|
77
|
-
|
|
72
|
+
v as default
|
|
78
73
|
};
|
package/form-item/index.mjs
CHANGED
|
@@ -2,10 +2,6 @@ import { h as m } from "vue";
|
|
|
2
2
|
import { f as B } from "../chunks/form-item.LWjePsPa.mjs";
|
|
3
3
|
import { hasOwn as I, isDef as D } from "@web-utils/core";
|
|
4
4
|
import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
import "../chunks/index.B2TRddqf.mjs";
|
|
6
|
-
import "async-validator";
|
|
7
|
-
import "element-ui/lib/col";
|
|
8
|
-
import "element-ui/lib/form-item";
|
|
9
5
|
const N = {
|
|
10
6
|
name: "FormItem",
|
|
11
7
|
mixins: [B],
|
|
@@ -140,7 +136,7 @@ var G = /* @__PURE__ */ L(
|
|
|
140
136
|
null,
|
|
141
137
|
null
|
|
142
138
|
);
|
|
143
|
-
const
|
|
139
|
+
const U = G.exports;
|
|
144
140
|
export {
|
|
145
|
-
|
|
141
|
+
U as default
|
|
146
142
|
};
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import a from "element-ui/lib/radio-group";
|
|
4
|
-
import { c as s, d as
|
|
4
|
+
import { c as s, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import { d } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
6
6
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
-
|
|
8
|
-
import "element-ui/lib/col";
|
|
9
|
-
import "element-ui/lib/form-item";
|
|
10
|
-
import "@web-utils/core";
|
|
11
|
-
import "async-validator";
|
|
12
|
-
const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
7
|
+
const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), h = {
|
|
13
8
|
name: "FormRadioGroup",
|
|
14
9
|
mixins: [n, l, d],
|
|
15
10
|
props: {
|
|
@@ -57,7 +52,7 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
57
52
|
return "请选择";
|
|
58
53
|
},
|
|
59
54
|
inputProps() {
|
|
60
|
-
return
|
|
55
|
+
return u({ ...p(this.$attrs), ...this.$props }, f);
|
|
61
56
|
},
|
|
62
57
|
labelKey() {
|
|
63
58
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -96,7 +91,7 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
93
|
};
|
|
99
|
-
var
|
|
94
|
+
var m = function() {
|
|
100
95
|
var e = this, r = e._self._c;
|
|
101
96
|
return r("FormItem", e._b({ class: ["form-radio-group", { "form-radio-group-row": e.fillRow, inline: e.inline }, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
102
97
|
return [r("ElRadioGroup", e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (o) => e.$emit("input", o) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(o) {
|
|
@@ -114,14 +109,14 @@ var h = function() {
|
|
|
114
109
|
return [e._t("below")];
|
|
115
110
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
116
111
|
}, y = [], g = /* @__PURE__ */ c(
|
|
117
|
-
m,
|
|
118
112
|
h,
|
|
113
|
+
m,
|
|
119
114
|
y,
|
|
120
115
|
!1,
|
|
121
116
|
null,
|
|
122
117
|
null
|
|
123
118
|
);
|
|
124
|
-
const
|
|
119
|
+
const P = g.exports;
|
|
125
120
|
export {
|
|
126
|
-
|
|
121
|
+
P as default
|
|
127
122
|
};
|
package/form-select/index.mjs
CHANGED
|
@@ -5,10 +5,6 @@ import a from "element-ui/lib/select";
|
|
|
5
5
|
import { c as p, d as u, n as h } from "../chunks/index.B2TRddqf.mjs";
|
|
6
6
|
import { isString as m, isPlainObject as f, isNumber as c } from "@web-utils/core";
|
|
7
7
|
import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
-
import "../chunks/form-item.LWjePsPa.mjs";
|
|
9
|
-
import "element-ui/lib/col";
|
|
10
|
-
import "element-ui/lib/form-item";
|
|
11
|
-
import "async-validator";
|
|
12
8
|
const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)), y = {
|
|
13
9
|
name: "FormSelect",
|
|
14
10
|
mixins: [o, l, n],
|
|
@@ -177,7 +173,7 @@ var _ = function() {
|
|
|
177
173
|
null,
|
|
178
174
|
null
|
|
179
175
|
);
|
|
180
|
-
const
|
|
176
|
+
const k = v.exports;
|
|
181
177
|
export {
|
|
182
|
-
|
|
178
|
+
k as default
|
|
183
179
|
};
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import l from "element-ui/lib/switch";
|
|
3
|
-
import { c as a, d as
|
|
3
|
+
import { c as a, d as u, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
5
|
+
const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)), c = {
|
|
11
6
|
name: "FormSwitch",
|
|
12
7
|
mixins: [o],
|
|
13
8
|
props: {
|
|
@@ -23,7 +18,7 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
23
18
|
},
|
|
24
19
|
computed: {
|
|
25
20
|
inputProps() {
|
|
26
|
-
return
|
|
21
|
+
return u({ ...i(this.$attrs), ...this.$props }, p);
|
|
27
22
|
}
|
|
28
23
|
},
|
|
29
24
|
methods: {
|
|
@@ -32,7 +27,7 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
32
27
|
}
|
|
33
28
|
}
|
|
34
29
|
};
|
|
35
|
-
var
|
|
30
|
+
var m = function() {
|
|
36
31
|
var e = this, r = e._self._c;
|
|
37
32
|
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
38
33
|
return [e._t("default", function() {
|
|
@@ -46,14 +41,14 @@ var c = function() {
|
|
|
46
41
|
return [e._t("label")];
|
|
47
42
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
48
43
|
}, d = [], f = /* @__PURE__ */ s(
|
|
49
|
-
m,
|
|
50
44
|
c,
|
|
45
|
+
m,
|
|
51
46
|
d,
|
|
52
47
|
!1,
|
|
53
48
|
null,
|
|
54
49
|
null
|
|
55
50
|
);
|
|
56
|
-
const
|
|
51
|
+
const b = f.exports;
|
|
57
52
|
export {
|
|
58
|
-
|
|
53
|
+
b as default
|
|
59
54
|
};
|
package/form-table/index.mjs
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { d as s, n as d } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import m from "../sub-table/index.mjs";
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
import "@web-utils/integrations/lodash";
|
|
11
|
-
const p = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled"].includes(l)), c = {
|
|
4
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled"].includes(l)), p = {
|
|
12
6
|
name: "FormTable",
|
|
13
7
|
mixins: [a],
|
|
14
8
|
emits: ["add-row"],
|
|
@@ -45,7 +39,7 @@ const p = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
|
|
|
45
39
|
},
|
|
46
40
|
computed: {
|
|
47
41
|
inputProps() {
|
|
48
|
-
return s({ ...d(this.$attrs), ...this.$props },
|
|
42
|
+
return s({ ...d(this.$attrs), ...this.$props }, i);
|
|
49
43
|
}
|
|
50
44
|
},
|
|
51
45
|
methods: {
|
|
@@ -57,35 +51,35 @@ const p = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
|
|
|
57
51
|
var f = function() {
|
|
58
52
|
var e = this, r = e._self._c;
|
|
59
53
|
return r("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
60
|
-
return [r("SubTable", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { status: e.status, value: e.value, prop: e.prop, editable: e.editable, columns: e.columns, readonly: e.readonly, "allow-empty": e.allowEmpty, disabled: e.inputDisabled, "handle-column": e.handleColumn, "show-handle-column-add-button": e.showHandleColumnAddButton, "show-empty-add-button": e.showEmptyAddButton, placeholder: e.computePlaceholder }, on: { "selection-change": e.onSelectionChange, input: (
|
|
61
|
-
return { key:
|
|
62
|
-
return [e._t(
|
|
54
|
+
return [r("SubTable", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { status: e.status, value: e.value, prop: e.prop, editable: e.editable, columns: e.columns, readonly: e.readonly, "allow-empty": e.allowEmpty, disabled: e.inputDisabled, "handle-column": e.handleColumn, "show-handle-column-add-button": e.showHandleColumnAddButton, "show-empty-add-button": e.showEmptyAddButton, placeholder: e.computePlaceholder }, on: { "selection-change": e.onSelectionChange, input: (n) => e.$emit("input", n) }, scopedSlots: e._u([e._l(e.columns, function(n) {
|
|
55
|
+
return { key: n.prop, fn: function({ row: o, column: t, index: u }) {
|
|
56
|
+
return [e._t(n.prop, null, { row: o, column: t, index: u })];
|
|
63
57
|
} };
|
|
64
|
-
}), { key: "columns", fn: function({ columns:
|
|
65
|
-
return [e._t("columns", null, { columns:
|
|
66
|
-
} }, { key: "handle", fn: function({ add:
|
|
67
|
-
return [e._t("handle", null, { add:
|
|
68
|
-
} }, { key: "tag", fn: function({ column:
|
|
69
|
-
return [e._t("tag", null, { row:
|
|
70
|
-
} }, { key: "handle-column-header", fn: function({ column:
|
|
71
|
-
return [e._t("handle-column-header", null, { column:
|
|
72
|
-
} }, { key: "toolbar", fn: function({ addRow:
|
|
73
|
-
return [e._t("toolbar", null, { addRow:
|
|
58
|
+
}), { key: "columns", fn: function({ columns: n }) {
|
|
59
|
+
return [e._t("columns", null, { columns: n })];
|
|
60
|
+
} }, { key: "handle", fn: function({ add: n, remove: o }) {
|
|
61
|
+
return [e._t("handle", null, { add: n, remove: o })];
|
|
62
|
+
} }, { key: "tag", fn: function({ column: n, row: o, $index: t }) {
|
|
63
|
+
return [e._t("tag", null, { row: o, column: n, index: t })];
|
|
64
|
+
} }, { key: "handle-column-header", fn: function({ column: n, $index: o }) {
|
|
65
|
+
return [e._t("handle-column-header", null, { column: n, index: o })];
|
|
66
|
+
} }, { key: "toolbar", fn: function({ addRow: n, delRow: o, refresh: t }) {
|
|
67
|
+
return [e._t("toolbar", null, { addRow: n, delRow: o, refresh: t })];
|
|
74
68
|
} }], null, !0) }, "SubTable", e.inputProps, !1), e.listeners))];
|
|
75
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
76
|
-
return [e._t("error", null, { error:
|
|
69
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
70
|
+
return [e._t("error", null, { error: n })];
|
|
77
71
|
} }, { key: "label", fn: function() {
|
|
78
72
|
return [e._t("label")];
|
|
79
73
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
80
|
-
}, y = [], b = /* @__PURE__ */
|
|
81
|
-
|
|
74
|
+
}, y = [], b = /* @__PURE__ */ c(
|
|
75
|
+
p,
|
|
82
76
|
f,
|
|
83
77
|
y,
|
|
84
78
|
!1,
|
|
85
79
|
null,
|
|
86
80
|
null
|
|
87
81
|
);
|
|
88
|
-
const
|
|
82
|
+
const B = b.exports;
|
|
89
83
|
export {
|
|
90
|
-
|
|
84
|
+
B as default
|
|
91
85
|
};
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { h as s, d as i, n as
|
|
1
|
+
import { f as p } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { h as s, d as i, n as h } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import { S as u } from "../chunks/sub-table-plus-props.BVsD71hT.mjs";
|
|
4
|
-
import { isString as a, isArray as
|
|
4
|
+
import { isString as a, isArray as m, trace as b, warning as _ } from "@web-utils/core";
|
|
5
5
|
import { a as w } from "../chunks/form-validate.CVarNHKX.mjs";
|
|
6
6
|
import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
-
import "../chunks/form-item.LWjePsPa.mjs";
|
|
8
|
-
import "element-ui/lib/col";
|
|
9
|
-
import "element-ui/lib/form-item";
|
|
10
|
-
import "async-validator";
|
|
11
7
|
const k = Object.keys(u.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), v = {
|
|
12
8
|
name: "FormTablePlus",
|
|
13
|
-
mixins: [
|
|
9
|
+
mixins: [p, u],
|
|
14
10
|
bus: {
|
|
15
11
|
reloadTableView(r) {
|
|
16
12
|
if (this._viewIds)
|
|
17
|
-
if (a(r) ||
|
|
13
|
+
if (a(r) || m(r)) {
|
|
18
14
|
let e = r;
|
|
19
15
|
a(e) && (e = e.split(",")), this._viewIds.some((l) => e.includes(l)) && (b.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
20
16
|
} else
|
|
@@ -34,7 +30,7 @@ const k = Object.keys(u.props).filter((r) => !["value", "placeholder", "disabled
|
|
|
34
30
|
},
|
|
35
31
|
computed: {
|
|
36
32
|
inputProps() {
|
|
37
|
-
return i({ ...
|
|
33
|
+
return i({ ...h(this.$attrs), ...this.$props }, k);
|
|
38
34
|
},
|
|
39
35
|
listeners() {
|
|
40
36
|
const r = i(this.$listeners, "input", !1);
|
|
@@ -74,8 +70,8 @@ var P = function() {
|
|
|
74
70
|
var e = this, l = e._self._c;
|
|
75
71
|
return l("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, "prefix-add": "", disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
76
72
|
return [l("SubTablePlus", e._g(e._b({ ref: "table", class: { "is-readonly": e.readonly }, attrs: { value: e.value, prop: e.prop, "fetch-api": e.fetchApi, "on-row-db-click": e.onRowDbClick, columns: e.columns, "show-message": e.showMessage, readonly: e.readonly, disabled: e.inputDisabled, "toolbar-menus": e.toolbarMenus, "handle-menus": e.handleMenus, "bottom-add-button": e.bottomAddButton, placeholder: e.computePlaceholder, descs: e.descs, "page-size": e.pageSize }, on: { input: (t) => e.$emit("input", t) }, scopedSlots: e._u([e._l(e.columns, function(t) {
|
|
77
|
-
return { key: t.prop, fn: function({ row: o, column: n, index: d, prop:
|
|
78
|
-
return [e._t(t.prop, null, { row: o, column: n, index: d, prop:
|
|
73
|
+
return { key: t.prop, fn: function({ row: o, column: n, index: d, prop: f, required: c }) {
|
|
74
|
+
return [e._t(t.prop, null, { row: o, column: n, index: d, prop: f, required: c })];
|
|
79
75
|
} };
|
|
80
76
|
}), { key: "columns", fn: function({ columns: t }) {
|
|
81
77
|
return [e._t("columns", null, { columns: t })];
|
|
@@ -107,7 +103,7 @@ var P = function() {
|
|
|
107
103
|
null,
|
|
108
104
|
null
|
|
109
105
|
);
|
|
110
|
-
const
|
|
106
|
+
const F = g.exports;
|
|
111
107
|
export {
|
|
112
|
-
|
|
108
|
+
F as default
|
|
113
109
|
};
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
2
|
+
import { c as a, d as s, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
3
|
+
import i from "element-ui/lib/input";
|
|
4
4
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
const p = i(l).filter(
|
|
5
|
+
const p = a(i).filter(
|
|
11
6
|
(o) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(o)
|
|
12
7
|
), m = {
|
|
13
8
|
name: "FormTextarea",
|
|
@@ -35,7 +30,7 @@ const p = i(l).filter(
|
|
|
35
30
|
},
|
|
36
31
|
computed: {
|
|
37
32
|
inputProps() {
|
|
38
|
-
return
|
|
33
|
+
return s({ ...l(this.$attrs), ...this.$props }, p);
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
};
|
|
@@ -56,7 +51,7 @@ var f = function() {
|
|
|
56
51
|
null,
|
|
57
52
|
null
|
|
58
53
|
);
|
|
59
|
-
const
|
|
54
|
+
const b = d.exports;
|
|
60
55
|
export {
|
|
61
|
-
|
|
56
|
+
b as default
|
|
62
57
|
};
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { v as
|
|
3
|
-
import
|
|
1
|
+
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { v as s, d as a, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
3
|
+
import o from "../vue-tree-select/index.mjs";
|
|
4
4
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
import "vue";
|
|
11
|
-
import "lodash-es";
|
|
12
|
-
import "../chunks/helper.BiMLcEEk.mjs";
|
|
13
|
-
const p = Object.keys(a.mixins[0].props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), m = {
|
|
5
|
+
const p = Object.keys(o.mixins[0].props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), m = {
|
|
14
6
|
name: "FormTreeSelect",
|
|
15
|
-
mixins: [
|
|
7
|
+
mixins: [n],
|
|
16
8
|
props: {
|
|
17
9
|
value: [String, Number, Array],
|
|
18
10
|
multiple: Boolean,
|
|
@@ -25,12 +17,12 @@ const p = Object.keys(a.mixins[0].props).filter((r) => !["value", "placeholder",
|
|
|
25
17
|
},
|
|
26
18
|
computed: {
|
|
27
19
|
inputProps() {
|
|
28
|
-
return
|
|
20
|
+
return a({ ...i(this.$attrs), ...this.$props }, p);
|
|
29
21
|
}
|
|
30
22
|
},
|
|
31
23
|
watch: {
|
|
32
24
|
async value(r) {
|
|
33
|
-
this.isValidValue = await
|
|
25
|
+
this.isValidValue = await s(this.prop, r, this.computeRules);
|
|
34
26
|
}
|
|
35
27
|
},
|
|
36
28
|
methods: {
|
|
@@ -74,7 +66,7 @@ var c = function() {
|
|
|
74
66
|
null,
|
|
75
67
|
null
|
|
76
68
|
);
|
|
77
|
-
const
|
|
69
|
+
const y = f.exports;
|
|
78
70
|
export {
|
|
79
|
-
|
|
71
|
+
y as default
|
|
80
72
|
};
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { v as
|
|
3
|
-
import
|
|
1
|
+
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { v as s, d as a, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
3
|
+
import o from "../vue-tree-select/index.mjs";
|
|
4
4
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
6
|
-
import "element-ui/lib/col";
|
|
7
|
-
import "element-ui/lib/form-item";
|
|
8
|
-
import "@web-utils/core";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
import "vue";
|
|
11
|
-
import "lodash-es";
|
|
12
|
-
import "../chunks/helper.BiMLcEEk.mjs";
|
|
13
|
-
const p = Object.keys(a.mixins[0].props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), c = {
|
|
5
|
+
const c = Object.keys(o.mixins[0].props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
14
6
|
name: "FormTreeSelectMultiple",
|
|
15
|
-
mixins: [
|
|
7
|
+
mixins: [n],
|
|
16
8
|
props: {
|
|
17
9
|
value: Array
|
|
18
10
|
},
|
|
@@ -23,12 +15,12 @@ const p = Object.keys(a.mixins[0].props).filter((t) => !["value", "placeholder",
|
|
|
23
15
|
},
|
|
24
16
|
computed: {
|
|
25
17
|
inputProps() {
|
|
26
|
-
return
|
|
18
|
+
return a({ ...i(this.$attrs), ...this.$props }, c);
|
|
27
19
|
}
|
|
28
20
|
},
|
|
29
21
|
watch: {
|
|
30
22
|
async value(t) {
|
|
31
|
-
this.isValidValue = await
|
|
23
|
+
this.isValidValue = await s(this.prop, t, this.computeRules);
|
|
32
24
|
}
|
|
33
25
|
},
|
|
34
26
|
methods: {
|
|
@@ -53,7 +45,7 @@ const p = Object.keys(a.mixins[0].props).filter((t) => !["value", "placeholder",
|
|
|
53
45
|
}
|
|
54
46
|
}
|
|
55
47
|
};
|
|
56
|
-
var
|
|
48
|
+
var p = function() {
|
|
57
49
|
var e = this, l = e._self._c;
|
|
58
50
|
return l("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
59
51
|
return [e._t("default", function() {
|
|
@@ -73,14 +65,14 @@ var d = function() {
|
|
|
73
65
|
return [e._t("tips")];
|
|
74
66
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
75
67
|
}, m = [], f = /* @__PURE__ */ u(
|
|
76
|
-
c,
|
|
77
68
|
d,
|
|
69
|
+
p,
|
|
78
70
|
m,
|
|
79
71
|
!1,
|
|
80
72
|
null,
|
|
81
73
|
null
|
|
82
74
|
);
|
|
83
|
-
const
|
|
75
|
+
const y = f.exports;
|
|
84
76
|
export {
|
|
85
|
-
|
|
77
|
+
y as default
|
|
86
78
|
};
|
package/form-view/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isInContainer as d, animate as m, hasOwn as a, toStringArray as h } from "@web-utils/core";
|
|
2
2
|
import { merge as p } from "@web-utils/integrations/lodash";
|
|
3
|
-
import b from "
|
|
3
|
+
import b 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/fy-array/index.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { p as a, e as l } from "../chunks/event.9aDS6jcw.mjs";
|
|
2
2
|
import { i as o } from "../chunks/util.DqFv_pWg.mjs";
|
|
3
3
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
-
import "../chunks/slot.DXIbhGat.mjs";
|
|
5
|
-
import "@web-utils/core";
|
|
6
|
-
import "../chunks/dataformat.CpqOeGBl.mjs";
|
|
7
4
|
const p = {
|
|
8
5
|
name: "FyArray",
|
|
9
6
|
mixins: [a, l],
|
|
@@ -67,7 +64,7 @@ var u = function() {
|
|
|
67
64
|
null,
|
|
68
65
|
null
|
|
69
66
|
);
|
|
70
|
-
const
|
|
67
|
+
const v = m.exports;
|
|
71
68
|
export {
|
|
72
|
-
|
|
69
|
+
v as default
|
|
73
70
|
};
|