@web-utils/component 4.0.9 → 4.0.11
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 +2 -2
- 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 +2 -2
- package/flow-node/index.mjs +3 -4
- package/flow-viewer/index.mjs +2 -2
- 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 +2 -2
- 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 +2 -5
- package/fy-form-design/index.mjs +4 -4
- package/fy-input/index.mjs +10 -14
- package/fy-input-color/index.mjs +11 -15
- package/fy-input-icon/index.mjs +6 -10
- 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/license/index.mjs +2 -3
- package/package.json +1 -1
- package/page-skeleton/index.mjs +6 -6
- package/pageable-table/index.mjs +2 -5
- package/pageable-view/index.mjs +6 -7
- package/photo-swipe/index.mjs +5 -7
- package/picker-table-view/index.mjs +23 -24
- package/present-view/index.mjs +2 -2
- 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 +2 -2
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +2 -5
- package/table-view/index.mjs +2 -3
- package/text-ellipsis/index.mjs +2 -3
- package/toolbar/index.mjs +2 -3
- package/toolbar-button/index.mjs +2 -3
- package/verify/index.mjs +7 -8
- package/watermark/index.mjs +14 -15
- package/web-types.json +1 -1
package/chat/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { formatDate as r } from "@web-utils/integrations/dayjs";
|
|
2
2
|
import { s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
3
3
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
-
import "@web-utils/core";
|
|
5
4
|
const d = {
|
|
6
5
|
name: "Chat",
|
|
7
6
|
props: {
|
|
@@ -261,7 +260,7 @@ var u = function() {
|
|
|
261
260
|
null,
|
|
262
261
|
null
|
|
263
262
|
);
|
|
264
|
-
const
|
|
263
|
+
const y = m.exports;
|
|
265
264
|
export {
|
|
266
|
-
|
|
265
|
+
y as default
|
|
267
266
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isBlank as _ } from "@web-utils/core";
|
|
2
2
|
import { formatDate as i } from "@web-utils/integrations/dayjs";
|
|
3
3
|
import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.DqFv_pWg.mjs";
|
|
4
|
-
import "
|
|
4
|
+
import "../fy-u-editor/style.css";
|
|
5
5
|
import { a as D, b as O } from "./dataformat.CpqOeGBl.mjs";
|
|
6
6
|
import { s as j } from "./slot.DXIbhGat.mjs";
|
|
7
7
|
import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
@@ -29,7 +29,7 @@ const R = (n = {}, e = {}, s = {}, r = []) => {
|
|
|
29
29
|
return e.formatter && typeof e.formatter == "function" && (t = e.formatter(n, n[e.prop], t, e)), t;
|
|
30
30
|
}, Y = {
|
|
31
31
|
name: "FormTemp",
|
|
32
|
-
components: { FyUEditor: () => import("
|
|
32
|
+
components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
|
|
33
33
|
mixins: [j],
|
|
34
34
|
props: {
|
|
35
35
|
value: [String, Object, Number, Boolean, Array],
|
package/confirm-button/index.mjs
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "element-ui/lib/loading";
|
|
4
|
-
import "element-ui/lib/message-box";
|
|
5
|
-
import "@web-utils/core";
|
|
6
|
-
import "../chunks/index.B2TRddqf.mjs";
|
|
7
|
-
import "async-validator";
|
|
1
|
+
import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
|
|
2
|
+
import { n as t } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
3
|
const o = {
|
|
9
4
|
props: {
|
|
10
5
|
type: {
|
|
@@ -36,17 +31,17 @@ const o = {
|
|
|
36
31
|
}
|
|
37
32
|
}, e = {
|
|
38
33
|
name: "ConfirmButton",
|
|
39
|
-
mixins: [
|
|
40
|
-
},
|
|
41
|
-
var
|
|
34
|
+
mixins: [n, o]
|
|
35
|
+
}, a = null, l = null;
|
|
36
|
+
var i = /* @__PURE__ */ t(
|
|
42
37
|
e,
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
a,
|
|
39
|
+
l,
|
|
45
40
|
!1,
|
|
46
41
|
null,
|
|
47
42
|
null
|
|
48
43
|
);
|
|
49
|
-
const
|
|
44
|
+
const p = i.exports;
|
|
50
45
|
export {
|
|
51
|
-
|
|
46
|
+
p as default
|
|
52
47
|
};
|
package/confirmable/index.mjs
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
import { c as n } from "../chunks/confirmable-mixin.B2TtLAdk.mjs";
|
|
2
2
|
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
|
|
4
|
-
import "element-ui/lib/message-box";
|
|
5
|
-
import "@web-utils/core";
|
|
6
|
-
import "../chunks/index.B2TRddqf.mjs";
|
|
7
|
-
import "async-validator";
|
|
8
|
-
const r = {
|
|
3
|
+
const e = {
|
|
9
4
|
name: "Confirmable",
|
|
10
5
|
mixins: [n]
|
|
11
|
-
},
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
}, s = null, l = null;
|
|
7
|
+
var r = /* @__PURE__ */ o(
|
|
8
|
+
e,
|
|
9
|
+
s,
|
|
10
|
+
l,
|
|
16
11
|
!1,
|
|
17
12
|
null,
|
|
18
13
|
null
|
|
19
14
|
);
|
|
20
|
-
const
|
|
15
|
+
const t = r.exports;
|
|
21
16
|
export {
|
|
22
|
-
|
|
17
|
+
t as default
|
|
23
18
|
};
|
package/data-display/index.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as i } from "../chunks/index.B2TRddqf.mjs";
|
|
2
2
|
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
-
import "@web-utils/core";
|
|
4
|
-
import "async-validator";
|
|
5
3
|
const o = {
|
|
6
4
|
name: "DataTablePicker",
|
|
7
5
|
props: {
|
|
@@ -34,7 +32,7 @@ const o = {
|
|
|
34
32
|
};
|
|
35
33
|
},
|
|
36
34
|
methods: {
|
|
37
|
-
filterTableColumnProperties:
|
|
35
|
+
filterTableColumnProperties: i,
|
|
38
36
|
selectionChange(t) {
|
|
39
37
|
this.selectedRows = t;
|
|
40
38
|
},
|
|
@@ -54,11 +52,11 @@ const o = {
|
|
|
54
52
|
}
|
|
55
53
|
};
|
|
56
54
|
var r = function() {
|
|
57
|
-
var e = this,
|
|
58
|
-
return
|
|
59
|
-
return [e._t("search-form"),
|
|
55
|
+
var e = this, l = e._self._c;
|
|
56
|
+
return l("ElementDialog", { ref: "dialog", attrs: { visible: e.visible, title: e.title, width: e.width, height: e.height, embed: "", "flex-column": "" }, on: { close: e.close }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
57
|
+
return [e._t("search-form"), l("PageableTable", { ref: "pageableTable", staticStyle: { height: "60vh" }, attrs: { "highlight-current-row": "", "hide-on-single-page": "", model: e.model, columns: e.columns, api: e.api, "row-class-name": "pointer", multiple: e.multiple }, on: { "selection-change": e.selectionChange, "row-click": e.toggleRowSelection, "current-change": e.currentChange } }, [e._t("default")], 2)];
|
|
60
58
|
}, proxy: !0 }, { key: "footer", fn: function() {
|
|
61
|
-
return [
|
|
59
|
+
return [l("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.confirm } }, [e._v(" 确 定 ")]), l("ElButton", { attrs: { size: "mini" }, on: { click: e.close } }, [e._v(" 关 闭 ")])];
|
|
62
60
|
}, proxy: !0 }], null, !0) });
|
|
63
61
|
}, s = [], a = /* @__PURE__ */ n(
|
|
64
62
|
o,
|
|
@@ -68,7 +66,7 @@ var r = function() {
|
|
|
68
66
|
null,
|
|
69
67
|
null
|
|
70
68
|
);
|
|
71
|
-
const
|
|
69
|
+
const h = a.exports;
|
|
72
70
|
export {
|
|
73
|
-
|
|
71
|
+
h as default
|
|
74
72
|
};
|
package/editable-tree/index.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { cloneDeep as f } from "@web-utils/integrations/lodash";
|
|
|
4
4
|
import { a as v, b as $ } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import b from "vue";
|
|
6
6
|
import { n as k } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
-
import "async-validator";
|
|
8
7
|
function c(t, e) {
|
|
9
8
|
for (const i in e)
|
|
10
9
|
b.set(t, i, e[i]);
|
|
@@ -476,7 +475,7 @@ var _ = function() {
|
|
|
476
475
|
null,
|
|
477
476
|
null
|
|
478
477
|
);
|
|
479
|
-
const
|
|
478
|
+
const z = K.exports;
|
|
480
479
|
export {
|
|
481
|
-
|
|
480
|
+
z as default
|
|
482
481
|
};
|
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,8 +21,8 @@ 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 "
|
|
25
|
-
import "
|
|
24
|
+
import Ce from "../highlight-j-s/index.mjs";
|
|
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) {
|
|
28
28
|
const A = g.context.shape;
|
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,8 +2,8 @@ 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 "
|
|
6
|
-
import "
|
|
5
|
+
import y from "../easy-popup/index.mjs";
|
|
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 = {
|
|
9
9
|
__init__: ["zoomScroll"],
|
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
|
};
|