@web-utils/component 4.0.7 → 4.0.9
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 +3 -2
- package/chunks/FormTemp.Bu2VCxUh.mjs +2 -2
- package/chunks/{configComponents.Bkix1pFY.mjs → configComponents.CpKi15WN.mjs} +16 -13
- package/chunks/{dictionary.Dq1KRI7k.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
- package/chunks/index.BmYCjxZQ.mjs +47 -0
- package/confirm-button/index.mjs +14 -9
- package/confirmable/index.mjs +13 -8
- package/data-display/index.mjs +1 -1
- package/data-table-picker/index.mjs +10 -8
- package/editable-tree/index.mjs +3 -2
- package/element-dialog/index.mjs +3 -2
- package/flex-column/index.mjs +6 -5
- package/flex-item/index.mjs +6 -5
- package/flex-row/index.mjs +3 -2
- package/flow/index.mjs +3 -2
- package/flow-designer/index.mjs +2 -2
- package/flow-node/index.mjs +4 -3
- package/flow-viewer/index.mjs +2 -2
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +17 -13
- package/form-checkbox/index.mjs +12 -7
- package/form-checkbox-group/index.mjs +14 -9
- package/form-date-picker/index.mjs +10 -5
- package/form-holder/index.mjs +5 -4
- package/form-input/index.mjs +11 -6
- package/form-input-cron-expression/index.mjs +13 -8
- package/form-input-email/index.mjs +17 -12
- package/form-input-id-card/index.mjs +19 -15
- package/form-input-number/index.mjs +23 -16
- package/form-input-phone-number/index.mjs +12 -8
- package/form-input-tag/index.mjs +12 -7
- package/form-input-time/index.mjs +7 -2
- package/form-item/index.mjs +6 -2
- package/form-radio-group/index.mjs +12 -7
- package/form-select/index.mjs +6 -2
- package/form-switch/index.mjs +12 -7
- package/form-table/index.mjs +28 -22
- package/form-table-plus/index.mjs +14 -10
- package/form-textarea/index.mjs +11 -6
- package/form-tree-select/index.mjs +17 -9
- package/form-tree-select-multiple/index.mjs +19 -11
- package/form-view/index.mjs +2 -2
- package/fy-array/index.mjs +5 -2
- package/fy-cascader/index.mjs +17 -13
- package/fy-checkbox/index.mjs +23 -19
- package/fy-code/index.mjs +10 -9
- package/fy-curd/index.mjs +6 -4
- package/fy-date/index.mjs +9 -5
- package/fy-draggable/index.mjs +3 -2
- package/fy-dynamic/index.mjs +14 -11
- package/fy-empty/index.mjs +4 -3
- package/fy-form/index.mjs +5 -2
- package/fy-form-design/index.mjs +4 -4
- package/fy-input/index.mjs +14 -10
- package/fy-input-color/index.mjs +15 -11
- package/fy-input-icon/index.mjs +10 -6
- package/fy-input-map/index.mjs +8 -5
- package/fy-input-number/index.mjs +16 -12
- package/fy-input-table/index.mjs +5 -2
- package/fy-input-tree/index.mjs +5 -2
- package/fy-radio/index.mjs +13 -9
- package/fy-rate/index.mjs +11 -7
- package/fy-select/index.mjs +4 -2
- package/fy-slider/index.mjs +10 -7
- package/fy-switch/index.mjs +9 -5
- package/fy-time/index.mjs +6 -3
- package/fy-title/index.mjs +16 -12
- package/fy-u-editor/index.mjs +3 -2
- package/fy-upload/index.mjs +4 -2
- package/image-cropper/index.mjs +3 -2
- package/index.mjs +555 -617
- package/license/index.mjs +3 -2
- package/package.json +1 -1
- package/page-skeleton/index.mjs +6 -6
- package/pageable-table/index.mjs +6 -3
- package/pageable-view/index.mjs +7 -6
- package/photo-swipe/index.mjs +15 -56
- package/picker-table-view/index.mjs +24 -23
- package/present-view/index.mjs +2 -2
- package/record-video/index.mjs +11 -10
- package/resize-observer/index.mjs +3 -2
- package/search/index.mjs +4 -2
- package/sign/index.mjs +3 -2
- package/split-pane/index.mjs +2 -2
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +6 -3
- package/table-view/index.mjs +4 -3
- package/tabs-view/index.mjs +1 -1
- package/text-ellipsis/index.mjs +3 -2
- package/toolbar/index.mjs +4 -3
- package/toolbar-button/index.mjs +4 -3
- package/verify/index.mjs +8 -7
- package/watermark/index.mjs +15 -14
- package/web-types.json +1 -1
package/form-table/index.mjs
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
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
|
-
|
|
4
|
+
import { n as i } 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
|
+
import "@web-utils/integrations/lodash";
|
|
11
|
+
const p = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled"].includes(l)), c = {
|
|
6
12
|
name: "FormTable",
|
|
7
13
|
mixins: [a],
|
|
8
14
|
emits: ["add-row"],
|
|
@@ -39,7 +45,7 @@ const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
|
|
|
39
45
|
},
|
|
40
46
|
computed: {
|
|
41
47
|
inputProps() {
|
|
42
|
-
return s({ ...d(this.$attrs), ...this.$props },
|
|
48
|
+
return s({ ...d(this.$attrs), ...this.$props }, p);
|
|
43
49
|
}
|
|
44
50
|
},
|
|
45
51
|
methods: {
|
|
@@ -51,35 +57,35 @@ const i = Object.keys(m.props).filter((l) => !["value", "placeholder", "disabled
|
|
|
51
57
|
var f = function() {
|
|
52
58
|
var e = this, r = e._self._c;
|
|
53
59
|
return r("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
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: (
|
|
55
|
-
return { key:
|
|
56
|
-
return [e._t(
|
|
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: (o) => e.$emit("input", o) }, scopedSlots: e._u([e._l(e.columns, function(o) {
|
|
61
|
+
return { key: o.prop, fn: function({ row: t, column: n, index: u }) {
|
|
62
|
+
return [e._t(o.prop, null, { row: t, column: n, index: u })];
|
|
57
63
|
} };
|
|
58
|
-
}), { key: "columns", fn: function({ columns:
|
|
59
|
-
return [e._t("columns", null, { columns:
|
|
60
|
-
} }, { key: "handle", fn: function({ add:
|
|
61
|
-
return [e._t("handle", null, { add:
|
|
62
|
-
} }, { key: "tag", fn: function({ column:
|
|
63
|
-
return [e._t("tag", null, { row:
|
|
64
|
-
} }, { key: "handle-column-header", fn: function({ column:
|
|
65
|
-
return [e._t("handle-column-header", null, { column:
|
|
66
|
-
} }, { key: "toolbar", fn: function({ addRow:
|
|
67
|
-
return [e._t("toolbar", null, { addRow:
|
|
64
|
+
}), { key: "columns", fn: function({ columns: o }) {
|
|
65
|
+
return [e._t("columns", null, { columns: o })];
|
|
66
|
+
} }, { key: "handle", fn: function({ add: o, remove: t }) {
|
|
67
|
+
return [e._t("handle", null, { add: o, remove: t })];
|
|
68
|
+
} }, { key: "tag", fn: function({ column: o, row: t, $index: n }) {
|
|
69
|
+
return [e._t("tag", null, { row: t, column: o, index: n })];
|
|
70
|
+
} }, { key: "handle-column-header", fn: function({ column: o, $index: t }) {
|
|
71
|
+
return [e._t("handle-column-header", null, { column: o, index: t })];
|
|
72
|
+
} }, { key: "toolbar", fn: function({ addRow: o, delRow: t, refresh: n }) {
|
|
73
|
+
return [e._t("toolbar", null, { addRow: o, delRow: t, refresh: n })];
|
|
68
74
|
} }], null, !0) }, "SubTable", e.inputProps, !1), e.listeners))];
|
|
69
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
70
|
-
return [e._t("error", null, { error:
|
|
75
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: o }) {
|
|
76
|
+
return [e._t("error", null, { error: o })];
|
|
71
77
|
} }, { key: "label", fn: function() {
|
|
72
78
|
return [e._t("label")];
|
|
73
79
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
74
|
-
}, y = [], b = /* @__PURE__ */
|
|
75
|
-
|
|
80
|
+
}, y = [], b = /* @__PURE__ */ i(
|
|
81
|
+
c,
|
|
76
82
|
f,
|
|
77
83
|
y,
|
|
78
84
|
!1,
|
|
79
85
|
null,
|
|
80
86
|
null
|
|
81
87
|
);
|
|
82
|
-
const
|
|
88
|
+
const A = b.exports;
|
|
83
89
|
export {
|
|
84
|
-
|
|
90
|
+
A as default
|
|
85
91
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { h as s, d as i, n as
|
|
1
|
+
import { f as c } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { h as s, d as i, n as m } 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 h, 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";
|
|
7
11
|
const k = Object.keys(u.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), v = {
|
|
8
12
|
name: "FormTablePlus",
|
|
9
|
-
mixins: [
|
|
13
|
+
mixins: [c, u],
|
|
10
14
|
bus: {
|
|
11
15
|
reloadTableView(r) {
|
|
12
16
|
if (this._viewIds)
|
|
13
|
-
if (a(r) ||
|
|
17
|
+
if (a(r) || h(r)) {
|
|
14
18
|
let e = r;
|
|
15
19
|
a(e) && (e = e.split(",")), this._viewIds.some((l) => e.includes(l)) && (b.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
16
20
|
} else
|
|
@@ -30,7 +34,7 @@ const k = Object.keys(u.props).filter((r) => !["value", "placeholder", "disabled
|
|
|
30
34
|
},
|
|
31
35
|
computed: {
|
|
32
36
|
inputProps() {
|
|
33
|
-
return i({ ...
|
|
37
|
+
return i({ ...m(this.$attrs), ...this.$props }, k);
|
|
34
38
|
},
|
|
35
39
|
listeners() {
|
|
36
40
|
const r = i(this.$listeners, "input", !1);
|
|
@@ -70,8 +74,8 @@ var P = function() {
|
|
|
70
74
|
var e = this, l = e._self._c;
|
|
71
75
|
return l("FormItem", e._b({ attrs: { block: e.block, rules: e.computeRules, "prefix-add": "", disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
72
76
|
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) {
|
|
73
|
-
return { key: t.prop, fn: function({ row: o, column: n, index: d, prop:
|
|
74
|
-
return [e._t(t.prop, null, { row: o, column: n, index: d, prop:
|
|
77
|
+
return { key: t.prop, fn: function({ row: o, column: n, index: d, prop: p, required: f }) {
|
|
78
|
+
return [e._t(t.prop, null, { row: o, column: n, index: d, prop: p, required: f })];
|
|
75
79
|
} };
|
|
76
80
|
}), { key: "columns", fn: function({ columns: t }) {
|
|
77
81
|
return [e._t("columns", null, { columns: t })];
|
|
@@ -103,7 +107,7 @@ var P = function() {
|
|
|
103
107
|
null,
|
|
104
108
|
null
|
|
105
109
|
);
|
|
106
|
-
const
|
|
110
|
+
const q = g.exports;
|
|
107
111
|
export {
|
|
108
|
-
|
|
112
|
+
q as default
|
|
109
113
|
};
|
package/form-textarea/index.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
2
|
+
import { c as i, d as a, n as s } from "../chunks/index.B2TRddqf.mjs";
|
|
3
|
+
import l from "element-ui/lib/input";
|
|
4
4
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
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
|
+
const p = i(l).filter(
|
|
6
11
|
(o) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(o)
|
|
7
12
|
), m = {
|
|
8
13
|
name: "FormTextarea",
|
|
@@ -30,7 +35,7 @@ const p = a(i).filter(
|
|
|
30
35
|
},
|
|
31
36
|
computed: {
|
|
32
37
|
inputProps() {
|
|
33
|
-
return
|
|
38
|
+
return a({ ...s(this.$attrs), ...this.$props }, p);
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
};
|
|
@@ -51,7 +56,7 @@ var f = function() {
|
|
|
51
56
|
null,
|
|
52
57
|
null
|
|
53
58
|
);
|
|
54
|
-
const
|
|
59
|
+
const I = d.exports;
|
|
55
60
|
export {
|
|
56
|
-
|
|
61
|
+
I as default
|
|
57
62
|
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { v as
|
|
3
|
-
import
|
|
1
|
+
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { v as n, d as s, n as o } from "../chunks/index.B2TRddqf.mjs";
|
|
3
|
+
import a from "../vue-tree-select/index.mjs";
|
|
4
4
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
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
|
+
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 = {
|
|
6
14
|
name: "FormTreeSelect",
|
|
7
|
-
mixins: [
|
|
15
|
+
mixins: [i],
|
|
8
16
|
props: {
|
|
9
17
|
value: [String, Number, Array],
|
|
10
18
|
multiple: Boolean,
|
|
@@ -17,12 +25,12 @@ const p = Object.keys(o.mixins[0].props).filter((r) => !["value", "placeholder",
|
|
|
17
25
|
},
|
|
18
26
|
computed: {
|
|
19
27
|
inputProps() {
|
|
20
|
-
return
|
|
28
|
+
return s({ ...o(this.$attrs), ...this.$props }, p);
|
|
21
29
|
}
|
|
22
30
|
},
|
|
23
31
|
watch: {
|
|
24
32
|
async value(r) {
|
|
25
|
-
this.isValidValue = await
|
|
33
|
+
this.isValidValue = await n(this.prop, r, this.computeRules);
|
|
26
34
|
}
|
|
27
35
|
},
|
|
28
36
|
methods: {
|
|
@@ -66,7 +74,7 @@ var c = function() {
|
|
|
66
74
|
null,
|
|
67
75
|
null
|
|
68
76
|
);
|
|
69
|
-
const
|
|
77
|
+
const $ = f.exports;
|
|
70
78
|
export {
|
|
71
|
-
|
|
79
|
+
$ as default
|
|
72
80
|
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { v as
|
|
3
|
-
import
|
|
1
|
+
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { v as n, d as s, n as o } from "../chunks/index.B2TRddqf.mjs";
|
|
3
|
+
import a from "../vue-tree-select/index.mjs";
|
|
4
4
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
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
|
+
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 = {
|
|
6
14
|
name: "FormTreeSelectMultiple",
|
|
7
|
-
mixins: [
|
|
15
|
+
mixins: [i],
|
|
8
16
|
props: {
|
|
9
17
|
value: Array
|
|
10
18
|
},
|
|
@@ -15,12 +23,12 @@ const c = Object.keys(o.mixins[0].props).filter((t) => !["value", "placeholder",
|
|
|
15
23
|
},
|
|
16
24
|
computed: {
|
|
17
25
|
inputProps() {
|
|
18
|
-
return
|
|
26
|
+
return s({ ...o(this.$attrs), ...this.$props }, p);
|
|
19
27
|
}
|
|
20
28
|
},
|
|
21
29
|
watch: {
|
|
22
30
|
async value(t) {
|
|
23
|
-
this.isValidValue = await
|
|
31
|
+
this.isValidValue = await n(this.prop, t, this.computeRules);
|
|
24
32
|
}
|
|
25
33
|
},
|
|
26
34
|
methods: {
|
|
@@ -45,7 +53,7 @@ const c = Object.keys(o.mixins[0].props).filter((t) => !["value", "placeholder",
|
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
};
|
|
48
|
-
var
|
|
56
|
+
var d = function() {
|
|
49
57
|
var e = this, l = e._self._c;
|
|
50
58
|
return l("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
51
59
|
return [e._t("default", function() {
|
|
@@ -65,14 +73,14 @@ var p = function() {
|
|
|
65
73
|
return [e._t("tips")];
|
|
66
74
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
67
75
|
}, m = [], f = /* @__PURE__ */ u(
|
|
76
|
+
c,
|
|
68
77
|
d,
|
|
69
|
-
p,
|
|
70
78
|
m,
|
|
71
79
|
!1,
|
|
72
80
|
null,
|
|
73
81
|
null
|
|
74
82
|
);
|
|
75
|
-
const
|
|
83
|
+
const $ = f.exports;
|
|
76
84
|
export {
|
|
77
|
-
|
|
85
|
+
$ as default
|
|
78
86
|
};
|
package/form-view/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 "
|
|
4
|
-
import "
|
|
3
|
+
import b from "./resize-observer/index.mjs";
|
|
4
|
+
import "./resize-observer/style.css";
|
|
5
5
|
import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
6
|
const f = [
|
|
7
7
|
"back",
|
package/fy-array/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
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";
|
|
4
7
|
const p = {
|
|
5
8
|
name: "FyArray",
|
|
6
9
|
mixins: [a, l],
|
|
@@ -64,7 +67,7 @@ var u = function() {
|
|
|
64
67
|
null,
|
|
65
68
|
null
|
|
66
69
|
);
|
|
67
|
-
const
|
|
70
|
+
const g = m.exports;
|
|
68
71
|
export {
|
|
69
|
-
|
|
72
|
+
g as default
|
|
70
73
|
};
|
package/fy-cascader/index.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { p, e as d } from "../chunks/event.9aDS6jcw.mjs";
|
|
2
2
|
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "../chunks/util.DqFv_pWg.mjs";
|
|
4
|
+
import "@web-utils/core";
|
|
5
|
+
import "../chunks/slot.DXIbhGat.mjs";
|
|
6
|
+
import "../chunks/dataformat.CpqOeGBl.mjs";
|
|
3
7
|
const h = {
|
|
4
8
|
name: "FyCascader",
|
|
5
9
|
mixins: [p, d],
|
|
@@ -50,17 +54,17 @@ const h = {
|
|
|
50
54
|
multiple: this.multiple,
|
|
51
55
|
emitPath: this.emitPath,
|
|
52
56
|
lazy: this.lazy,
|
|
53
|
-
lazyLoad: (
|
|
57
|
+
lazyLoad: (s, e) => {
|
|
54
58
|
var l;
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
const t = (a) => {
|
|
60
|
+
const o = (i, n, c) => {
|
|
61
|
+
i.forEach((r) => {
|
|
62
|
+
r[this.valueKey] === n ? r[this.childrenKey] = c : r[this.childrenKey] && o(r[this.childrenKey]);
|
|
59
63
|
});
|
|
60
64
|
};
|
|
61
|
-
|
|
65
|
+
o(this.dic, s[this.valueKey], a), e(a);
|
|
62
66
|
};
|
|
63
|
-
(l = this.lazyLoad) == null || l.call(this,
|
|
67
|
+
(l = this.lazyLoad) == null || l.call(this, s, t);
|
|
64
68
|
},
|
|
65
69
|
expandTrigger: this.expandTrigger
|
|
66
70
|
};
|
|
@@ -68,11 +72,11 @@ const h = {
|
|
|
68
72
|
}
|
|
69
73
|
};
|
|
70
74
|
var f = function() {
|
|
71
|
-
var e = this,
|
|
72
|
-
return
|
|
75
|
+
var e = this, t = e._self._c;
|
|
76
|
+
return t("ElCascader", { attrs: { options: e.dic, placeholder: e.placeholder, props: e.allProps, size: e.size, clearable: e.clearableVal, "show-all-levels": e.showAllLevels, filterable: e.filterable, "popper-class": e.popperClass, separator: e.separator, disabled: e.disabled, "collapse-tags": e.tags }, on: { focus: e.handleFocus, blur: e.handleBlur }, nativeOn: { click: function(l) {
|
|
73
77
|
return e.handleClick.apply(null, arguments);
|
|
74
|
-
} }, scopedSlots: e._u([{ key: "default", fn: function({ data: l, node:
|
|
75
|
-
return [e.$scopedSlots.default ? e._t("default", null, { data: l, node:
|
|
78
|
+
} }, scopedSlots: e._u([{ key: "default", fn: function({ data: l, node: a }) {
|
|
79
|
+
return [e.$scopedSlots.default ? e._t("default", null, { data: l, node: a }) : t("span", [e._v(e._s(l[e.labelKey]))])];
|
|
76
80
|
} }], null, !0), model: { value: e.text, callback: function(l) {
|
|
77
81
|
e.text = l;
|
|
78
82
|
}, expression: "text" } });
|
|
@@ -84,7 +88,7 @@ var f = function() {
|
|
|
84
88
|
null,
|
|
85
89
|
null
|
|
86
90
|
);
|
|
87
|
-
const
|
|
91
|
+
const K = m.exports;
|
|
88
92
|
export {
|
|
89
|
-
|
|
93
|
+
K as default
|
|
90
94
|
};
|
package/fy-checkbox/index.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { p as s, e as
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
1
|
+
import { p as s, e as i } from "../chunks/event.9aDS6jcw.mjs";
|
|
2
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "../chunks/util.DqFv_pWg.mjs";
|
|
4
|
+
import "@web-utils/core";
|
|
5
|
+
import "../chunks/slot.DXIbhGat.mjs";
|
|
6
|
+
import "../chunks/dataformat.CpqOeGBl.mjs";
|
|
7
|
+
const r = {
|
|
4
8
|
name: "FyCheckbox",
|
|
5
|
-
mixins: [s,
|
|
9
|
+
mixins: [s, i],
|
|
6
10
|
props: {
|
|
7
11
|
all: {
|
|
8
12
|
type: Boolean,
|
|
@@ -34,31 +38,31 @@ const h = {
|
|
|
34
38
|
handleCheckChange() {
|
|
35
39
|
const a = this.text;
|
|
36
40
|
if (!this.all) return;
|
|
37
|
-
const e = a.length,
|
|
38
|
-
this.checkAll = e ===
|
|
41
|
+
const e = a.length, n = this.dic.length;
|
|
42
|
+
this.checkAll = e === n, this.isIndeterminate = e > 0 && e < n;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
};
|
|
42
|
-
var
|
|
43
|
-
var e = this,
|
|
44
|
-
return
|
|
45
|
-
e.checkAll =
|
|
46
|
-
}, expression: "checkAll" } }, [e._v(" 全选 ")]) : e._e(),
|
|
46
|
+
var o = function() {
|
|
47
|
+
var e = this, n = e._self._c;
|
|
48
|
+
return n("div", { staticClass: "avue-checkbox" }, [e.all ? n("ElCheckbox", { attrs: { disabled: e.disabled, indeterminate: e.isIndeterminate }, on: { change: e.handleCheckAll }, model: { value: e.checkAll, callback: function(t) {
|
|
49
|
+
e.checkAll = t;
|
|
50
|
+
}, expression: "checkAll" } }, [e._v(" 全选 ")]) : e._e(), n("ElCheckboxGroup", { attrs: { disabled: e.disabled, size: e.size, min: e.min, max: e.max }, on: { change: e.handleCheckChange }, nativeOn: { click: function(t) {
|
|
47
51
|
return e.handleClick.apply(null, arguments);
|
|
48
|
-
} }, model: { value: e.text, callback: function(
|
|
49
|
-
e.text =
|
|
50
|
-
}, expression: "text" } }, e._l(e.dic, function(
|
|
51
|
-
return
|
|
52
|
+
} }, model: { value: e.text, callback: function(t) {
|
|
53
|
+
e.text = t;
|
|
54
|
+
}, expression: "text" } }, e._l(e.dic, function(t, l) {
|
|
55
|
+
return n(e.componentName, { key: l, tag: "Component", attrs: { label: t[e.valueKey], border: e.border, size: e.size, readonly: e.readonly, disabled: t[e.disabledKey] } }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
|
|
52
56
|
}), 1)], 1);
|
|
53
|
-
},
|
|
54
|
-
h,
|
|
57
|
+
}, h = [], d = /* @__PURE__ */ c(
|
|
55
58
|
r,
|
|
56
59
|
o,
|
|
60
|
+
h,
|
|
57
61
|
!1,
|
|
58
62
|
null,
|
|
59
63
|
null
|
|
60
64
|
);
|
|
61
|
-
const
|
|
65
|
+
const C = d.exports;
|
|
62
66
|
export {
|
|
63
|
-
|
|
67
|
+
C as default
|
|
64
68
|
};
|
package/fy-code/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import o from "element-ui/lib/scrollbar";
|
|
2
2
|
import { s as n } from "../chunks/util.DqFv_pWg.mjs";
|
|
3
3
|
import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
import "@web-utils/core";
|
|
4
5
|
const s = {
|
|
5
6
|
name: "FyCode",
|
|
6
7
|
components: {
|
|
@@ -30,21 +31,21 @@ const s = {
|
|
|
30
31
|
setPx: n
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
return
|
|
36
|
-
`),
|
|
37
|
-
`)], 2),
|
|
34
|
+
var i = function() {
|
|
35
|
+
var t = this, e = t._self._c;
|
|
36
|
+
return e("div", { staticClass: "avue-code" }, [e("ElScrollbar", { style: t.styleName }, [e("pre", [t._v(" "), e("code", { ref: "container", class: t.syntax }, [t._v(`
|
|
37
|
+
`), t._t("default"), t._v(`
|
|
38
|
+
`)], 2), t._v(`
|
|
38
39
|
`)])])], 1);
|
|
39
|
-
},
|
|
40
|
+
}, a = [], l = /* @__PURE__ */ r(
|
|
40
41
|
s,
|
|
41
|
-
a,
|
|
42
42
|
i,
|
|
43
|
+
a,
|
|
43
44
|
!1,
|
|
44
45
|
null,
|
|
45
46
|
null
|
|
46
47
|
);
|
|
47
|
-
const
|
|
48
|
+
const _ = l.exports;
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
_ as default
|
|
50
51
|
};
|
package/fy-curd/index.mjs
CHANGED
|
@@ -8,8 +8,10 @@ import { s as M } from "../chunks/slot.DXIbhGat.mjs";
|
|
|
8
8
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
9
9
|
import { F as L, d as w } from "../chunks/FormTemp.Bu2VCxUh.mjs";
|
|
10
10
|
import { s as V } from "../chunks/dic.Dkl-leRW.mjs";
|
|
11
|
-
import R from "
|
|
12
|
-
import "
|
|
11
|
+
import R from "./icon-temp/index.mjs";
|
|
12
|
+
import "./icon-temp/style.css";
|
|
13
|
+
import "@web-utils/integrations/dayjs";
|
|
14
|
+
import "./fy-u-editor/style.css";
|
|
13
15
|
const p = {
|
|
14
16
|
menuWidth: 220,
|
|
15
17
|
menuFixed: "right",
|
|
@@ -1873,7 +1875,7 @@ var Ue = function() {
|
|
|
1873
1875
|
null,
|
|
1874
1876
|
null
|
|
1875
1877
|
);
|
|
1876
|
-
const
|
|
1878
|
+
const ct = qe.exports;
|
|
1877
1879
|
export {
|
|
1878
|
-
|
|
1880
|
+
ct as default
|
|
1879
1881
|
};
|
package/fy-date/index.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { p as
|
|
1
|
+
import { p as r, e as l } from "../chunks/event.9aDS6jcw.mjs";
|
|
2
2
|
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "../chunks/util.DqFv_pWg.mjs";
|
|
4
|
+
import "@web-utils/core";
|
|
5
|
+
import "../chunks/slot.DXIbhGat.mjs";
|
|
6
|
+
import "../chunks/dataformat.CpqOeGBl.mjs";
|
|
3
7
|
const o = {
|
|
4
8
|
name: "FyDate",
|
|
5
|
-
mixins: [
|
|
9
|
+
mixins: [r, l],
|
|
6
10
|
props: {
|
|
7
11
|
editable: Boolean,
|
|
8
12
|
unlinkPanels: Boolean,
|
|
@@ -27,7 +31,7 @@ var i = function() {
|
|
|
27
31
|
} }, model: { value: e.text, callback: function(t) {
|
|
28
32
|
e.text = t;
|
|
29
33
|
}, expression: "text" } })], 1);
|
|
30
|
-
}, s = [],
|
|
34
|
+
}, s = [], p = /* @__PURE__ */ n(
|
|
31
35
|
o,
|
|
32
36
|
i,
|
|
33
37
|
s,
|
|
@@ -35,7 +39,7 @@ var i = function() {
|
|
|
35
39
|
null,
|
|
36
40
|
null
|
|
37
41
|
);
|
|
38
|
-
const
|
|
42
|
+
const g = p.exports;
|
|
39
43
|
export {
|
|
40
|
-
|
|
44
|
+
g as default
|
|
41
45
|
};
|
package/fy-draggable/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { w as a, s as l } from "../chunks/util.DqFv_pWg.mjs";
|
|
2
2
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
import "@web-utils/core";
|
|
3
4
|
const v = {
|
|
4
5
|
name: "FyDraggable",
|
|
5
6
|
props: {
|
|
@@ -312,7 +313,7 @@ var g = function() {
|
|
|
312
313
|
null,
|
|
313
314
|
null
|
|
314
315
|
);
|
|
315
|
-
const
|
|
316
|
+
const T = _.exports;
|
|
316
317
|
export {
|
|
317
|
-
|
|
318
|
+
T as default
|
|
318
319
|
};
|
package/fy-dynamic/index.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { p as d, e as u } from "../chunks/event.9aDS6jcw.mjs";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as o, o as l } 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";
|
|
4
7
|
const h = {
|
|
5
8
|
name: "FyDynamic",
|
|
6
9
|
mixins: [d, u],
|
|
@@ -29,7 +32,7 @@ const h = {
|
|
|
29
32
|
return this.max ? this.text.length !== this.max : !0;
|
|
30
33
|
},
|
|
31
34
|
showIndex() {
|
|
32
|
-
return
|
|
35
|
+
return l(this.children.index, !0);
|
|
33
36
|
},
|
|
34
37
|
showType() {
|
|
35
38
|
return this.children.type || "crud";
|
|
@@ -87,7 +90,7 @@ const h = {
|
|
|
87
90
|
emptyBtn: !1,
|
|
88
91
|
submitBtn: !1,
|
|
89
92
|
...(() => {
|
|
90
|
-
const t =
|
|
93
|
+
const t = o(this.children);
|
|
91
94
|
return delete t.column, t;
|
|
92
95
|
})(),
|
|
93
96
|
...(() => {
|
|
@@ -107,7 +110,7 @@ const h = {
|
|
|
107
110
|
return this.columnOption.forEach((e) => {
|
|
108
111
|
t.push(
|
|
109
112
|
Object.assign(e, {
|
|
110
|
-
cell:
|
|
113
|
+
cell: l(e.cell, this.isCrud)
|
|
111
114
|
})
|
|
112
115
|
);
|
|
113
116
|
}), {
|
|
@@ -126,7 +129,7 @@ const h = {
|
|
|
126
129
|
this.initData();
|
|
127
130
|
},
|
|
128
131
|
methods: {
|
|
129
|
-
deepClone:
|
|
132
|
+
deepClone: o,
|
|
130
133
|
handleSelectionChange(t) {
|
|
131
134
|
var e;
|
|
132
135
|
(e = this.selectionChange) == null || e.call(this, t);
|
|
@@ -164,7 +167,7 @@ const h = {
|
|
|
164
167
|
},
|
|
165
168
|
delRow(t) {
|
|
166
169
|
const e = () => {
|
|
167
|
-
const n =
|
|
170
|
+
const n = o(this.text);
|
|
168
171
|
n.splice(t, 1), this.text = n, this.reload = Math.random();
|
|
169
172
|
};
|
|
170
173
|
typeof this.rowDel == "function" ? this.rowDel(this.text[t], e) : e();
|
|
@@ -179,7 +182,7 @@ const h = {
|
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
184
|
};
|
|
182
|
-
var
|
|
185
|
+
var m = function() {
|
|
183
186
|
var e = this, n = e._self._c;
|
|
184
187
|
return n("div", { key: e.reload, staticClass: "avue-dynamic" }, [e.isForm ? [n("div", { staticClass: "avue-dynamic__header" }, [!e.readonly && !e.disabled && !e.addBtn ? n("ElButton", { attrs: { size: "mini", circle: "", disabled: e.disabled, type: "primary", icon: "el-icon-plus" }, on: { click: e.addRow } }) : e._e()], 1), n("div", e._l(e.text, function(r, i) {
|
|
185
188
|
return n("div", { key: i, staticClass: "avue-dynamic__row", on: { mouseenter: function(s) {
|
|
@@ -210,15 +213,15 @@ var f = function() {
|
|
|
210
213
|
return [e._t(r, null, null, i)];
|
|
211
214
|
} };
|
|
212
215
|
})], null, !0) }) : e._e()], 2);
|
|
213
|
-
},
|
|
216
|
+
}, f = [], p = /* @__PURE__ */ c(
|
|
214
217
|
h,
|
|
215
|
-
f,
|
|
216
218
|
m,
|
|
219
|
+
f,
|
|
217
220
|
!1,
|
|
218
221
|
null,
|
|
219
222
|
null
|
|
220
223
|
);
|
|
221
|
-
const
|
|
224
|
+
const g = p.exports;
|
|
222
225
|
export {
|
|
223
|
-
|
|
226
|
+
g as default
|
|
224
227
|
};
|