@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/element-dialog/index.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { dialogDrag as a } from "@web-utils/vue/directives/dialog-drag";
|
|
|
3
3
|
import { getComputedHeight as r, isDef as n } from "@web-utils/core";
|
|
4
4
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
import { g as d } from "../chunks/index.B2TRddqf.mjs";
|
|
6
|
-
import "async-validator";
|
|
7
6
|
const p = {
|
|
8
7
|
name: "EmulateForm",
|
|
9
8
|
provide() {
|
|
@@ -301,7 +300,7 @@ var y = function() {
|
|
|
301
300
|
null,
|
|
302
301
|
null
|
|
303
302
|
);
|
|
304
|
-
const
|
|
303
|
+
const x = v.exports;
|
|
305
304
|
export {
|
|
306
|
-
|
|
305
|
+
x as default
|
|
307
306
|
};
|
package/flex-column/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { g as o } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
const s = {
|
|
5
4
|
name: "FlexColumn",
|
|
6
5
|
functional: !0,
|
|
@@ -34,9 +33,9 @@ const s = {
|
|
|
34
33
|
default: !1
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
render(l, { data:
|
|
38
|
-
const
|
|
39
|
-
return e.center || e.horizonCenter && e.verticalCenter ? (
|
|
36
|
+
render(l, { data: t, children: r, props: e }) {
|
|
37
|
+
const n = o(t.class, "flex-column");
|
|
38
|
+
return e.center || e.horizonCenter && e.verticalCenter ? (n.push("horizon-center"), n.push("vertical-center")) : (e.horizonCenter && n.push("horizon-center"), e.verticalCenter && n.push("vertical-center")), e.textCenter && n.push("text-center"), l("div", { ...t, class: n }, r);
|
|
40
39
|
}
|
|
41
40
|
}, c = null, i = null;
|
|
42
41
|
var f = /* @__PURE__ */ a(
|
|
@@ -47,7 +46,7 @@ var f = /* @__PURE__ */ a(
|
|
|
47
46
|
null,
|
|
48
47
|
null
|
|
49
48
|
);
|
|
50
|
-
const
|
|
49
|
+
const m = f.exports;
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
m as default
|
|
53
52
|
};
|
package/flex-item/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { g as o } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
const s = {
|
|
5
4
|
name: "FlexItem",
|
|
6
5
|
functional: !0,
|
|
@@ -38,10 +37,10 @@ const s = {
|
|
|
38
37
|
default: !1
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
|
-
render(
|
|
42
|
-
const
|
|
43
|
-
return e.absolute && !e.relative &&
|
|
44
|
-
|
|
40
|
+
render(t, { children: a, data: n, props: e }) {
|
|
41
|
+
const l = o(n.class, e.relative ? "flex-item-relative" : "flex-item");
|
|
42
|
+
return e.absolute && !e.relative && l.push("flex-item-relative"), e.center || e.horizonCenter && e.verticalCenter ? (l.push("horizon-center"), l.push("vertical-center")) : (e.horizonCenter && l.push("horizon-center"), e.verticalCenter && l.push("vertical-center")), e.textCenter && l.push("text-center"), e.flexColumn && l.push("flex-column"), e.flexRow && l.push("flex-row"), e.absolute ? t("div", { ...n, class: l }, [
|
|
43
|
+
t(
|
|
45
44
|
"div",
|
|
46
45
|
{
|
|
47
46
|
class: "absolute",
|
|
@@ -49,7 +48,7 @@ const s = {
|
|
|
49
48
|
},
|
|
50
49
|
a
|
|
51
50
|
)
|
|
52
|
-
]) :
|
|
51
|
+
]) : t("div", { ...n, class: l }, a);
|
|
53
52
|
}
|
|
54
53
|
}, r = null, i = null;
|
|
55
54
|
var u = /* @__PURE__ */ f(
|
package/flex-row/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { g as o } from "../chunks/index.9OxHjTIE.mjs";
|
|
2
2
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
const s = {
|
|
5
4
|
name: "FlexRow",
|
|
6
5
|
functional: !0,
|
|
@@ -35,7 +34,7 @@ var f = /* @__PURE__ */ a(
|
|
|
35
34
|
null,
|
|
36
35
|
null
|
|
37
36
|
);
|
|
38
|
-
const
|
|
37
|
+
const h = f.exports;
|
|
39
38
|
export {
|
|
40
|
-
|
|
39
|
+
h as default
|
|
41
40
|
};
|
package/flow/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { r, s as l } 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
|
const c = {
|
|
5
4
|
name: "Flow",
|
|
6
5
|
props: {
|
|
@@ -242,7 +241,7 @@ var u = function() {
|
|
|
242
241
|
null,
|
|
243
242
|
null
|
|
244
243
|
);
|
|
245
|
-
const
|
|
244
|
+
const f = d.exports;
|
|
246
245
|
export {
|
|
247
|
-
|
|
246
|
+
f as default
|
|
248
247
|
};
|
package/flow-designer/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import re from "highlight.js/lib/core";
|
|
|
21
21
|
import Ee from "highlight.js/lib/languages/xml";
|
|
22
22
|
import Te from "highlight.js/lib/languages/json";
|
|
23
23
|
import { isArray as K } from "@web-utils/core";
|
|
24
|
-
import Ce from "
|
|
24
|
+
import Ce from "../highlight-j-s/index.mjs";
|
|
25
25
|
import "./highlight-j-s/style.css";
|
|
26
26
|
function G(n, e, t, i, r, a, p, o, y, S, l, s, m) {
|
|
27
27
|
n = n || {}, i.registerProvider(this), this._contextPad = i, this._modeling = r, this._elementFactory = a, this._connect = p, this._create = o, this._popupMenu = y, this._canvas = S, this._rules = l, this._translate = s, n.autoPlace !== !1 && (this._autoPlace = e.get("autoPlace", !1)), t.on("create.end", 250, function(g) {
|
package/flow-node/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { s as o } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
3
|
const n = {
|
|
5
4
|
name: "FlowNode",
|
|
6
5
|
props: {
|
|
@@ -48,13 +47,13 @@ const n = {
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
};
|
|
51
|
-
var
|
|
50
|
+
var d = function() {
|
|
52
51
|
var e = this, t = e._self._c;
|
|
53
52
|
return t("div", { ref: "node", style: e.flowNodeContainer, attrs: { left: e.node.left, top: e.node.top, disabled: "", mask: !1 }, on: { mouseenter: e.showDelete, mouseleave: e.hideDelete, mouseup: e.changeNodeSite } }, [t("div", { class: ["avue-flow__node", { active: e.active === e.node.id }] }, [t("div", { staticClass: "avue-flow__node-header" }, [t("i", { staticClass: "el-icon-rank", class: e.b("node-drag") }), e._t("header", null, { node: e.node })], 2), t("div", { staticClass: "avue-flow__node-body" }, [e._t("default", null, { node: e.node })], 2)])]);
|
|
54
|
-
},
|
|
53
|
+
}, r = [], a = /* @__PURE__ */ s(
|
|
55
54
|
n,
|
|
56
|
-
r,
|
|
57
55
|
d,
|
|
56
|
+
r,
|
|
58
57
|
!1,
|
|
59
58
|
null,
|
|
60
59
|
null
|
package/flow-viewer/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import u from "bpmn-js/lib/NavigatedViewer";
|
|
|
2
2
|
import c from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
|
|
3
3
|
import { create as l, attr as a, append as p } from "tiny-svg";
|
|
4
4
|
import { query as w } from "min-dom";
|
|
5
|
-
import y from "
|
|
5
|
+
import y from "../easy-popup/index.mjs";
|
|
6
6
|
import "./easy-popup/style.css";
|
|
7
7
|
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
8
|
const m = c.prototype._handleWheel, k = {
|
package/form-button/index.mjs
CHANGED
package/form-cascader/index.mjs
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { f as
|
|
3
|
-
import
|
|
1
|
+
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { f as o } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
|
+
import i from "element-ui/lib/cascader";
|
|
4
4
|
import { c as n, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
-
import { isArray as s, setParent as
|
|
6
|
-
import { cloneDeep as
|
|
5
|
+
import { isArray as s, setParent as f, isString as c, findTreeChildren as d } from "@web-utils/core";
|
|
6
|
+
import { cloneDeep as m } from "@web-utils/integrations/lodash";
|
|
7
7
|
import { d as h } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
8
8
|
import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
|
-
|
|
10
|
-
import "element-ui/lib/col";
|
|
11
|
-
import "element-ui/lib/form-item";
|
|
12
|
-
import "async-validator";
|
|
13
|
-
const v = n(a).filter(
|
|
9
|
+
const v = n(i).filter(
|
|
14
10
|
(t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
|
|
15
11
|
), _ = {
|
|
16
12
|
name: "FormCascader",
|
|
17
|
-
mixins: [
|
|
13
|
+
mixins: [a, o, h],
|
|
18
14
|
props: {
|
|
19
15
|
value: [String, Number, Array],
|
|
20
16
|
options: {
|
|
@@ -63,9 +59,9 @@ const v = n(a).filter(
|
|
|
63
59
|
},
|
|
64
60
|
inputVal() {
|
|
65
61
|
if (this.join)
|
|
66
|
-
return s(this.value) ? this.value :
|
|
62
|
+
return s(this.value) ? this.value : c(this.value) ? this.value.split(this.separator) : [];
|
|
67
63
|
if (this.last) {
|
|
68
|
-
let [t] =
|
|
64
|
+
let [t] = d(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
69
65
|
const e = [];
|
|
70
66
|
for (; t; )
|
|
71
67
|
e.push(t[this.valueKey]), t = t.parent;
|
|
@@ -77,8 +73,8 @@ const v = n(a).filter(
|
|
|
77
73
|
if (this.dictType)
|
|
78
74
|
return this.dictItems;
|
|
79
75
|
if (this.options) {
|
|
80
|
-
const t =
|
|
81
|
-
return this.last &&
|
|
76
|
+
const t = m(this.options);
|
|
77
|
+
return this.last && f(t), t;
|
|
82
78
|
} else
|
|
83
79
|
return [];
|
|
84
80
|
}
|
|
@@ -113,7 +109,7 @@ var b = function() {
|
|
|
113
109
|
null,
|
|
114
110
|
null
|
|
115
111
|
);
|
|
116
|
-
const
|
|
112
|
+
const x = g.exports;
|
|
117
113
|
export {
|
|
118
|
-
|
|
114
|
+
x as default
|
|
119
115
|
};
|
package/form-checkbox/index.mjs
CHANGED
|
@@ -2,12 +2,7 @@ import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
|
2
2
|
import l from "element-ui/lib/checkbox";
|
|
3
3
|
import { c as n, v as s, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as p } 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 m = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), c = {
|
|
5
|
+
const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), d = {
|
|
11
6
|
name: "FormCheckbox",
|
|
12
7
|
mixins: [a],
|
|
13
8
|
props: {
|
|
@@ -33,7 +28,7 @@ const m = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
33
28
|
},
|
|
34
29
|
computed: {
|
|
35
30
|
inputProps() {
|
|
36
|
-
return i({ ...u(this.$attrs), ...this.$props },
|
|
31
|
+
return i({ ...u(this.$attrs), ...this.$props }, c);
|
|
37
32
|
}
|
|
38
33
|
},
|
|
39
34
|
watch: {
|
|
@@ -47,7 +42,7 @@ const m = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
44
|
};
|
|
50
|
-
var
|
|
45
|
+
var f = function() {
|
|
51
46
|
var e = this, t = e._self._c;
|
|
52
47
|
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
53
48
|
return [e._t("default", function() {
|
|
@@ -62,15 +57,15 @@ var d = function() {
|
|
|
62
57
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
63
58
|
return [e._t("tips")];
|
|
64
59
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
65
|
-
},
|
|
66
|
-
c,
|
|
60
|
+
}, m = [], _ = /* @__PURE__ */ p(
|
|
67
61
|
d,
|
|
68
62
|
f,
|
|
63
|
+
m,
|
|
69
64
|
!1,
|
|
70
65
|
null,
|
|
71
66
|
null
|
|
72
67
|
);
|
|
73
|
-
const
|
|
68
|
+
const k = _.exports;
|
|
74
69
|
export {
|
|
75
|
-
|
|
70
|
+
k as default
|
|
76
71
|
};
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { f as
|
|
1
|
+
import { f as l } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import { d as s } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
4
|
-
import { c as n, d as a, n as
|
|
5
|
-
import
|
|
4
|
+
import { c as n, d as a, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import p from "element-ui/lib/checkbox-group";
|
|
6
6
|
import { n as h } 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 c = n(u).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
7
|
+
const c = n(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
13
8
|
name: "FormCheckboxGroup",
|
|
14
|
-
mixins: [
|
|
9
|
+
mixins: [l, i, s],
|
|
15
10
|
props: {
|
|
16
11
|
options: {
|
|
17
12
|
type: Array,
|
|
@@ -55,7 +50,7 @@ const c = n(u).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
55
50
|
return this.classic ? "value" : this.valueProp;
|
|
56
51
|
},
|
|
57
52
|
inputProps() {
|
|
58
|
-
return a({ ...
|
|
53
|
+
return a({ ...u(this.$attrs), ...this.$props }, c);
|
|
59
54
|
},
|
|
60
55
|
innerOptions() {
|
|
61
56
|
return this.dictType ? this.dictItems : this.gender ? [
|
|
@@ -113,7 +108,7 @@ var f = function() {
|
|
|
113
108
|
null,
|
|
114
109
|
null
|
|
115
110
|
);
|
|
116
|
-
const
|
|
111
|
+
const P = b.exports;
|
|
117
112
|
export {
|
|
118
|
-
|
|
113
|
+
P as default
|
|
119
114
|
};
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { f as s } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import { toDate as a } from "@web-utils/integrations/dayjs";
|
|
4
|
-
import { d as
|
|
4
|
+
import { d as l, n as o } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
-
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
-
import "element-ui/lib/col";
|
|
8
|
-
import "element-ui/lib/form-item";
|
|
9
|
-
import "@web-utils/core";
|
|
10
|
-
import "async-validator";
|
|
11
6
|
const u = [
|
|
12
7
|
"type",
|
|
13
8
|
"timeArrowControl",
|
|
@@ -97,9 +92,9 @@ const u = [
|
|
|
97
92
|
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd";
|
|
98
93
|
},
|
|
99
94
|
inputProps() {
|
|
100
|
-
return
|
|
95
|
+
return l(
|
|
101
96
|
{
|
|
102
|
-
...
|
|
97
|
+
...o(this.$attrs),
|
|
103
98
|
...this.$props,
|
|
104
99
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
105
100
|
format: this.format || this.fat,
|
|
@@ -142,7 +137,7 @@ var h = function() {
|
|
|
142
137
|
null,
|
|
143
138
|
null
|
|
144
139
|
);
|
|
145
|
-
const
|
|
140
|
+
const P = f.exports;
|
|
146
141
|
export {
|
|
147
|
-
|
|
142
|
+
P as default
|
|
148
143
|
};
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { animate as o, warning as l } from "@web-utils/core";
|
|
2
2
|
import { e as a } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
-
import "async-validator";
|
|
5
4
|
const s = {
|
|
6
5
|
name: "FormHolder",
|
|
7
6
|
inject: {
|
|
@@ -96,15 +95,15 @@ const s = {
|
|
|
96
95
|
var n = function() {
|
|
97
96
|
var e = this, t = e._self._c;
|
|
98
97
|
return t("ElForm", { ref: "form", class: ["clear-fix", { "red-form": e.tableForm }], attrs: { model: e.model, size: e.size, "show-message": e.showMessage, disabled: e.disabled, "label-width": e.tableForm ? "0px" : e.labelWidth, "label-position": e.labelPosition } }, [e.tableForm ? [e._t("top"), t("FormRedTable", { class: { "hide-error-message": e.tableForm }, attrs: { columns: e.columns, "col-count": e.colCount } }, [e._t("default"), e.showAdvice ? t("FormAdvice", { attrs: { "label-colspan": e.commentLabelColspan, "value-colspan": e.commentValueColspan } }) : e._e()], 2), e._t("bottom"), t("div", { staticClass: "red-form-footer" }, [e._t("footer")], 2)] : [e._t("default")]], 2);
|
|
99
|
-
},
|
|
98
|
+
}, d = [], m = /* @__PURE__ */ i(
|
|
100
99
|
s,
|
|
101
100
|
n,
|
|
102
|
-
|
|
101
|
+
d,
|
|
103
102
|
!1,
|
|
104
103
|
null,
|
|
105
104
|
null
|
|
106
105
|
);
|
|
107
|
-
const
|
|
106
|
+
const h = m.exports;
|
|
108
107
|
export {
|
|
109
|
-
|
|
108
|
+
h as default
|
|
110
109
|
};
|
package/form-input/index.mjs
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import o from "element-ui/lib/input";
|
|
3
|
-
import { c as a, v as s, d as
|
|
4
|
-
import { n as
|
|
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";
|
|
3
|
+
import { c as a, v as s, d as l, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
10
5
|
const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"].includes(t)), d = {
|
|
11
6
|
name: "FormInput",
|
|
12
7
|
mixins: [i],
|
|
@@ -33,7 +28,7 @@ const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
33
28
|
},
|
|
34
29
|
computed: {
|
|
35
30
|
inputProps() {
|
|
36
|
-
return
|
|
31
|
+
return l({ ...u(this.$attrs), ...this.$props }, c);
|
|
37
32
|
}
|
|
38
33
|
},
|
|
39
34
|
watch: {
|
|
@@ -78,7 +73,7 @@ var f = function() {
|
|
|
78
73
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
79
74
|
return [e._t("tips")];
|
|
80
75
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
81
|
-
}, m = [], _ = /* @__PURE__ */
|
|
76
|
+
}, m = [], _ = /* @__PURE__ */ p(
|
|
82
77
|
d,
|
|
83
78
|
f,
|
|
84
79
|
m,
|
|
@@ -86,7 +81,7 @@ var f = function() {
|
|
|
86
81
|
null,
|
|
87
82
|
null
|
|
88
83
|
);
|
|
89
|
-
const
|
|
84
|
+
const k = _.exports;
|
|
90
85
|
export {
|
|
91
|
-
|
|
86
|
+
k as default
|
|
92
87
|
};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import s from "element-ui/lib/input";
|
|
3
|
-
import { c as a, v as l, d as
|
|
4
|
-
import { n as
|
|
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";
|
|
3
|
+
import { c as a, v as l, d as u, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
10
5
|
const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)), d = {
|
|
11
6
|
name: "FormInputCronExpression",
|
|
12
7
|
mixins: [n],
|
|
@@ -29,7 +24,7 @@ const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
29
24
|
},
|
|
30
25
|
computed: {
|
|
31
26
|
inputProps() {
|
|
32
|
-
return
|
|
27
|
+
return u({ ...i(this.$attrs), ...this.$props }, c);
|
|
33
28
|
}
|
|
34
29
|
},
|
|
35
30
|
watch: {
|
|
@@ -43,7 +38,7 @@ const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
43
38
|
}
|
|
44
39
|
}
|
|
45
40
|
};
|
|
46
|
-
var
|
|
41
|
+
var f = function() {
|
|
47
42
|
var e = this, r = e._self._c;
|
|
48
43
|
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled, "validate-status": "" }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
49
44
|
return [e._t("default", function() {
|
|
@@ -68,15 +63,15 @@ var m = function() {
|
|
|
68
63
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
69
64
|
return [e._t("tips")];
|
|
70
65
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
71
|
-
},
|
|
66
|
+
}, m = [], _ = /* @__PURE__ */ p(
|
|
72
67
|
d,
|
|
73
|
-
m,
|
|
74
68
|
f,
|
|
69
|
+
m,
|
|
75
70
|
!1,
|
|
76
71
|
null,
|
|
77
72
|
null
|
|
78
73
|
);
|
|
79
|
-
const
|
|
74
|
+
const x = _.exports;
|
|
80
75
|
export {
|
|
81
|
-
|
|
76
|
+
x as default
|
|
82
77
|
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { v as l } from "../chunks/form-validate.CVarNHKX.mjs";
|
|
3
3
|
import a from "element-ui/lib/input";
|
|
4
|
-
import { c as s, d as
|
|
5
|
-
import { n as
|
|
6
|
-
|
|
7
|
-
import "element-ui/lib/col";
|
|
8
|
-
import "element-ui/lib/form-item";
|
|
9
|
-
import "@web-utils/core";
|
|
10
|
-
import "async-validator";
|
|
11
|
-
const u = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
4
|
+
import { c as s, d as u, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const m = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
12
7
|
name: "FormInputEmail",
|
|
13
|
-
mixins: [
|
|
8
|
+
mixins: [o],
|
|
14
9
|
props: {
|
|
15
10
|
value: String,
|
|
16
11
|
maxLength: {
|
|
@@ -20,7 +15,7 @@ const u = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
20
15
|
},
|
|
21
16
|
computed: {
|
|
22
17
|
inputProps() {
|
|
23
|
-
return
|
|
18
|
+
return u({ ...i(this.$attrs), ...this.$props }, m);
|
|
24
19
|
}
|
|
25
20
|
},
|
|
26
21
|
methods: {
|
|
@@ -35,15 +30,15 @@ const u = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
35
30
|
}
|
|
36
31
|
};
|
|
37
32
|
var f = function() {
|
|
38
|
-
var e = this,
|
|
39
|
-
return
|
|
40
|
-
return [
|
|
33
|
+
var e = this, n = e._self._c;
|
|
34
|
+
return n("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
35
|
+
return [n("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (r) => e.$emit("input", r) } }, "ElInput", e.inputProps, !1), e.listeners))];
|
|
41
36
|
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
42
37
|
return [e._t("error", null, { error: r })];
|
|
43
38
|
} }, { key: "label", fn: function() {
|
|
44
39
|
return [e._t("label")];
|
|
45
40
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
46
|
-
}, c = [], _ = /* @__PURE__ */
|
|
41
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
47
42
|
d,
|
|
48
43
|
f,
|
|
49
44
|
c,
|
|
@@ -51,7 +46,7 @@ var f = function() {
|
|
|
51
46
|
null,
|
|
52
47
|
null
|
|
53
48
|
);
|
|
54
|
-
const
|
|
49
|
+
const I = _.exports;
|
|
55
50
|
export {
|
|
56
|
-
|
|
51
|
+
I as default
|
|
57
52
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { f as s } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { validateIdCard as n } from "@web-utils/core";
|
|
3
3
|
import a from "element-ui/lib/input";
|
|
4
|
-
import { c as l, d as i, n as
|
|
5
|
-
import { n as
|
|
6
|
-
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
-
import "element-ui/lib/col";
|
|
8
|
-
import "element-ui/lib/form-item";
|
|
9
|
-
import "async-validator";
|
|
4
|
+
import { c as l, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
10
6
|
const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)), d = {
|
|
11
7
|
name: "FormInputIdCard",
|
|
12
8
|
mixins: [s],
|
|
@@ -19,7 +15,7 @@ const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
19
15
|
},
|
|
20
16
|
computed: {
|
|
21
17
|
inputProps() {
|
|
22
|
-
return i({ ...
|
|
18
|
+
return i({ ...u(this.$attrs), ...this.$props }, m);
|
|
23
19
|
}
|
|
24
20
|
},
|
|
25
21
|
methods: {
|
|
@@ -35,17 +31,17 @@ const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
35
31
|
}
|
|
36
32
|
};
|
|
37
33
|
var f = function() {
|
|
38
|
-
var
|
|
39
|
-
return t("FormItem",
|
|
40
|
-
return [t("ElInput",
|
|
41
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
42
|
-
return [
|
|
43
|
-
return [
|
|
44
|
-
}, { error:
|
|
34
|
+
var e = this, t = e._self._c;
|
|
35
|
+
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
36
|
+
return [t("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (r) => e.$emit("input", r) } }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? t("div", { staticClass: "el-form-item__error" }, [e._t("warn")], 2) : e._e()];
|
|
37
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
38
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(r) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
39
|
+
return [e._v(e._s(r))];
|
|
40
|
+
}, { error: r })], 2) : e._e()];
|
|
45
41
|
} }, { key: "label", fn: function() {
|
|
46
|
-
return [
|
|
47
|
-
}, proxy: !0 }], null, !0) }, "FormItem",
|
|
48
|
-
}, c = [], _ = /* @__PURE__ */
|
|
42
|
+
return [e._t("label")];
|
|
43
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
44
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
49
45
|
d,
|
|
50
46
|
f,
|
|
51
47
|
c,
|
|
@@ -53,7 +49,7 @@ var f = function() {
|
|
|
53
49
|
null,
|
|
54
50
|
null
|
|
55
51
|
);
|
|
56
|
-
const
|
|
52
|
+
const g = _.exports;
|
|
57
53
|
export {
|
|
58
|
-
|
|
54
|
+
g as default
|
|
59
55
|
};
|