@web-utils/component 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address-input/index.mjs +14 -14
- package/chat/index.mjs +39 -40
- package/chunk-file-uploader/index.mjs +35 -594
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/FormTemp.d079292b.mjs +139 -0
- package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
- package/chunks/detail.d6f8e347.mjs +29 -0
- package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
- package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
- package/chunks/form-input-mixin.78a567bc.mjs +24 -0
- package/chunks/form-item-mixin.57cb2019.mjs +140 -0
- package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
- package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
- package/chunks/input-number-mixin.41a066be.mjs +60 -0
- package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
- package/count-up/index.mjs +17 -14
- package/data-box/index.mjs +18 -19
- package/data-display/index.mjs +17 -18
- package/data-icons/index.mjs +16 -17
- package/data-panel/index.mjs +20 -21
- package/data-pay/index.mjs +15 -16
- package/data-progress/index.mjs +19 -20
- package/data-rotate/index.mjs +35 -36
- package/data-table-picker/index.mjs +23 -25
- package/data-tabs/index.mjs +15 -16
- package/dialog-form/index.mjs +11 -12
- package/dynamic-table/index.mjs +34 -35
- package/easy-popup/index.mjs +56 -29
- package/editable-tree/index.mjs +485 -134
- package/element-dialog/index.mjs +127 -37
- package/empty-view/index.mjs +31 -13
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +40 -105
- package/flow-designer/index.mjs +555 -615
- package/flow-node/index.mjs +47 -15
- package/flow-viewer/index.mjs +78 -167
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox-group/index.mjs +35 -79
- package/form-date-picker/index.mjs +22 -22
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +86 -28
- package/form-input-email/index.mjs +18 -18
- package/form-input-id-card/index.mjs +27 -27
- package/form-input-number/index.mjs +59 -219
- package/form-input-phone-number/index.mjs +27 -27
- package/form-input-tag/index.mjs +38 -160
- package/form-input-time/index.mjs +16 -16
- package/form-item/index.mjs +146 -15
- package/form-item-group/index.mjs +164 -14
- package/form-radio-group/index.mjs +41 -41
- package/form-select/index.mjs +20 -20
- package/form-switch/index.mjs +19 -19
- package/form-textarea/index.mjs +29 -29
- package/form-view/index.mjs +42 -46
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +15 -15
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2824 -210
- package/fy-date/index.mjs +59 -17
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +208 -64
- package/fy-empty/index.mjs +29 -12
- package/fy-form/index.mjs +743 -178
- package/fy-form-design/index.mjs +1013 -1540
- package/fy-input/index.mjs +105 -17
- package/fy-input-color/index.mjs +67 -16
- package/fy-input-icon/index.mjs +119 -23
- package/fy-input-map/index.mjs +14 -15
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +19 -21
- package/fy-input-tree/index.mjs +3 -3
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +50 -16
- package/fy-select/index.mjs +126 -29
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +51 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +23 -25
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/highlight-j-s/index.mjs +29 -19
- package/icon-temp/index.mjs +30 -12
- package/iframe-window/index.mjs +18 -19
- package/image-cropper/index.mjs +22 -23
- package/image-preview/index.mjs +1 -1
- package/input-number/index.mjs +173 -63
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +33 -15
- package/login/index.mjs +1 -1
- package/nav-bar/index.mjs +31 -15
- package/package.json +1 -1
- package/page/index.mjs +20 -12
- package/page-header/index.mjs +34 -13
- package/page-index-top/index.mjs +53 -100
- package/page-skeleton/index.mjs +35 -18
- package/page-skeleton-new/index.mjs +15 -16
- package/pageable-table/index.mjs +228 -86
- package/pageable-view/index.mjs +1 -1
- package/present-view/index.mjs +71 -75
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +29 -21
- package/search/index.mjs +9 -9
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +45 -40
- package/swiper/index.mjs +13 -14
- package/table-view/index.mjs +97 -631
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +63 -63
- package/toolbar/index.mjs +208 -15
- package/toolbar-button/index.mjs +56 -30
- package/verify/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +118 -49
- package/chunks/CountUp.f1a19f35.mjs +0 -124
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
- package/chunks/ElementDialog.d8f3105c.mjs +0 -211
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
- package/chunks/EmptyView.e2430422.mjs +0 -51
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
- package/chunks/FormItem.2920ac0c.mjs +0 -45
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
- package/chunks/FormItemGroup.41daddb6.mjs +0 -64
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
- package/chunks/FyCurd.8acd2983.mjs +0 -548
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
- package/chunks/FyForm.0294e494.mjs +0 -439
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
- package/chunks/IconTemp.42c48e1f.mjs +0 -32
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
- package/chunks/Page.81f4b8d9.mjs +0 -32
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
- package/chunks/PageableTable.333cbdc1.mjs +0 -335
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
- package/chunks/ResizeObserver.60f728f0.mjs +0 -54
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
- package/chunks/TableColumn.8503272e.mjs +0 -106
- package/chunks/Toolbar.5c539dbb.mjs +0 -24
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var n = function() {
|
|
2
|
-
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
3
|
-
return t("div", {
|
|
4
|
-
staticClass: "empty-view",
|
|
5
|
-
style: {
|
|
6
|
-
fontSize: e.fontSize,
|
|
7
|
-
height: e.height
|
|
8
|
-
}
|
|
9
|
-
}, [e._t("default", function() {
|
|
10
|
-
return [t("div", {
|
|
11
|
-
staticClass: "flex-column horizon-center"
|
|
12
|
-
}, [e.showIcon ? t("i", {
|
|
13
|
-
class: e.icon,
|
|
14
|
-
style: {
|
|
15
|
-
fontSize: e.iconSize
|
|
16
|
-
}
|
|
17
|
-
}) : e._e(), t("p", [e._v(e._s(e.emptyTips))])])];
|
|
18
|
-
})], 2);
|
|
19
|
-
}, s = [];
|
|
20
|
-
export {
|
|
21
|
-
n as r,
|
|
22
|
-
s
|
|
23
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var o = function() {
|
|
2
|
-
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
3
|
-
return a("div", {
|
|
4
|
-
ref: "node",
|
|
5
|
-
style: e.flowNodeContainer,
|
|
6
|
-
attrs: {
|
|
7
|
-
left: e.node.left,
|
|
8
|
-
top: e.node.top,
|
|
9
|
-
disabled: "",
|
|
10
|
-
mask: !1
|
|
11
|
-
},
|
|
12
|
-
on: {
|
|
13
|
-
mouseenter: e.showDelete,
|
|
14
|
-
mouseleave: e.hideDelete,
|
|
15
|
-
mouseup: e.changeNodeSite
|
|
16
|
-
}
|
|
17
|
-
}, [a("div", {
|
|
18
|
-
class: ["avue-flow__node", {
|
|
19
|
-
active: e.active === e.node.id
|
|
20
|
-
}]
|
|
21
|
-
}, [a("div", {
|
|
22
|
-
staticClass: "avue-flow__node-header"
|
|
23
|
-
}, [a("i", {
|
|
24
|
-
staticClass: "el-icon-rank",
|
|
25
|
-
class: e.b("node-drag")
|
|
26
|
-
}), e._t("header", null, {
|
|
27
|
-
node: e.node
|
|
28
|
-
})], 2), a("div", {
|
|
29
|
-
staticClass: "avue-flow__node-body"
|
|
30
|
-
}, [e._t("default", null, {
|
|
31
|
-
node: e.node
|
|
32
|
-
})], 2)])]);
|
|
33
|
-
}, d = [];
|
|
34
|
-
export {
|
|
35
|
-
o as r,
|
|
36
|
-
d as s
|
|
37
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import l from "element-ui/lib/input";
|
|
2
|
-
import { _ as s } from "./FormItem.2920ac0c.mjs";
|
|
3
|
-
var _ = function() {
|
|
4
|
-
var r = this, n = r.$createElement, e = r._self._c || n;
|
|
5
|
-
return e(s, r._b({
|
|
6
|
-
attrs: {
|
|
7
|
-
rules: r.computeRules,
|
|
8
|
-
disabled: r.inputDisabled
|
|
9
|
-
},
|
|
10
|
-
scopedSlots: r._u([{
|
|
11
|
-
key: "default",
|
|
12
|
-
fn: function() {
|
|
13
|
-
return [r._t("default", function() {
|
|
14
|
-
return [e(l, r._g(r._b({
|
|
15
|
-
class: {
|
|
16
|
-
"is-readonly": r.readonly
|
|
17
|
-
},
|
|
18
|
-
attrs: {
|
|
19
|
-
value: r.value,
|
|
20
|
-
readonly: r.readonly,
|
|
21
|
-
maxlength: r.maxLength,
|
|
22
|
-
disabled: r.inputDisabled,
|
|
23
|
-
placeholder: r.computePlaceholder
|
|
24
|
-
},
|
|
25
|
-
on: {
|
|
26
|
-
input: r.emitInput
|
|
27
|
-
},
|
|
28
|
-
scopedSlots: r._u([{
|
|
29
|
-
key: "append",
|
|
30
|
-
fn: function() {
|
|
31
|
-
return [r._t("append")];
|
|
32
|
-
},
|
|
33
|
-
proxy: !0
|
|
34
|
-
}], null, !0)
|
|
35
|
-
}, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? e("div", {
|
|
36
|
-
staticClass: "el-form-item__warn"
|
|
37
|
-
}, [r._t("warn")], 2) : r._e()];
|
|
38
|
-
})];
|
|
39
|
-
},
|
|
40
|
-
proxy: !0
|
|
41
|
-
}, {
|
|
42
|
-
key: "error",
|
|
43
|
-
fn: function(o) {
|
|
44
|
-
var t = o.error;
|
|
45
|
-
return [r.$scopedSlots.error && r.$scopedSlots.error(t) ? e("div", {
|
|
46
|
-
staticClass: "el-form-item__error"
|
|
47
|
-
}, [r._t("error", function() {
|
|
48
|
-
return [r._v(" " + r._s(t) + " ")];
|
|
49
|
-
}, {
|
|
50
|
-
error: t
|
|
51
|
-
})], 2) : r._e()];
|
|
52
|
-
}
|
|
53
|
-
}, {
|
|
54
|
-
key: "label",
|
|
55
|
-
fn: function() {
|
|
56
|
-
return [r._t("label")];
|
|
57
|
-
},
|
|
58
|
-
proxy: !0
|
|
59
|
-
}], null, !0)
|
|
60
|
-
}, "FormItem", r.formItemProps, !1));
|
|
61
|
-
}, i = [];
|
|
62
|
-
export {
|
|
63
|
-
_ as r,
|
|
64
|
-
i as s
|
|
65
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { f as n, _ as o } from "./FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs";
|
|
2
|
-
import { h as r } from "./index.d91bd77a.mjs";
|
|
3
|
-
import { n as s } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
-
const d = {
|
|
5
|
-
mixins: [n],
|
|
6
|
-
props: {
|
|
7
|
-
value: [Boolean, String, Array, Number, Object, Date],
|
|
8
|
-
readonly: Boolean,
|
|
9
|
-
disabled: Boolean
|
|
10
|
-
},
|
|
11
|
-
computed: {
|
|
12
|
-
computePlaceholder() {
|
|
13
|
-
return this.placeholder === !0 ? this.message : this.placeholder;
|
|
14
|
-
},
|
|
15
|
-
listeners() {
|
|
16
|
-
return r(this.$listeners, "input", !1);
|
|
17
|
-
},
|
|
18
|
-
inputDisabled() {
|
|
19
|
-
return this.disabled;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
let i, l;
|
|
24
|
-
const t = {};
|
|
25
|
-
var a = /* @__PURE__ */ s(
|
|
26
|
-
o,
|
|
27
|
-
i,
|
|
28
|
-
l,
|
|
29
|
-
!1,
|
|
30
|
-
u,
|
|
31
|
-
null,
|
|
32
|
-
null,
|
|
33
|
-
null
|
|
34
|
-
);
|
|
35
|
-
function u(_) {
|
|
36
|
-
for (let e in t)
|
|
37
|
-
this[e] = t[e];
|
|
38
|
-
}
|
|
39
|
-
const f = /* @__PURE__ */ function() {
|
|
40
|
-
return a.exports;
|
|
41
|
-
}();
|
|
42
|
-
export {
|
|
43
|
-
f as _,
|
|
44
|
-
d as f
|
|
45
|
-
};
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
var W = Object.defineProperty;
|
|
2
|
-
var k = Object.getOwnPropertySymbols;
|
|
3
|
-
var A = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var F = (e, r, t) => r in e ? W(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, u = (e, r) => {
|
|
5
|
-
for (var t in r || (r = {}))
|
|
6
|
-
A.call(r, t) && F(e, t, r[t]);
|
|
7
|
-
if (k)
|
|
8
|
-
for (var t of k(r))
|
|
9
|
-
V.call(r, t) && F(e, t, r[t]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
var g = (e, r, t) => new Promise((i, p) => {
|
|
13
|
-
var m = (l) => {
|
|
14
|
-
try {
|
|
15
|
-
s(t.next(l));
|
|
16
|
-
} catch (a) {
|
|
17
|
-
p(a);
|
|
18
|
-
}
|
|
19
|
-
}, o = (l) => {
|
|
20
|
-
try {
|
|
21
|
-
s(t.throw(l));
|
|
22
|
-
} catch (a) {
|
|
23
|
-
p(a);
|
|
24
|
-
}
|
|
25
|
-
}, s = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(m, o);
|
|
26
|
-
s((t = t.apply(e, r)).next());
|
|
27
|
-
});
|
|
28
|
-
import I from "element-ui/lib/col";
|
|
29
|
-
import y from "element-ui/lib/form-item";
|
|
30
|
-
import { h as b } from "./index.d91bd77a.mjs";
|
|
31
|
-
import { hasOwn as w } from "@web-utils/core";
|
|
32
|
-
const E = ["span"], $ = [...Object.keys(I.props || I.default.props)], H = $.filter((e) => !E.includes(e)), T = ["label", "prop", "rules", "labelWidth", "required"], R = [...Object.keys(y.props || y.default.props)], z = R.filter((e) => !T.includes(e)), G = [
|
|
33
|
-
"wrapCol",
|
|
34
|
-
"wrapFormItem",
|
|
35
|
-
"unwrap",
|
|
36
|
-
"prefixConfig",
|
|
37
|
-
"block",
|
|
38
|
-
"placeholder",
|
|
39
|
-
"prefixPick",
|
|
40
|
-
"half",
|
|
41
|
-
...$,
|
|
42
|
-
...R
|
|
43
|
-
], D = {
|
|
44
|
-
inject: {
|
|
45
|
-
elForm: {
|
|
46
|
-
default: {}
|
|
47
|
-
},
|
|
48
|
-
formItemGroup: {
|
|
49
|
-
default: {}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
props: {
|
|
53
|
-
disabled: Boolean,
|
|
54
|
-
wrapCol: {
|
|
55
|
-
type: Boolean,
|
|
56
|
-
default: !0
|
|
57
|
-
},
|
|
58
|
-
wrapFormItem: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !0
|
|
61
|
-
},
|
|
62
|
-
unwrap: Boolean,
|
|
63
|
-
half: Boolean,
|
|
64
|
-
prefixConfig: Boolean,
|
|
65
|
-
block: Boolean,
|
|
66
|
-
placeholder: {
|
|
67
|
-
type: [Boolean, String],
|
|
68
|
-
default: !0
|
|
69
|
-
},
|
|
70
|
-
formItemClass: String,
|
|
71
|
-
prefixPick: Boolean,
|
|
72
|
-
// el-form-item
|
|
73
|
-
label: String,
|
|
74
|
-
labelWidth: String,
|
|
75
|
-
prop: String,
|
|
76
|
-
required: Boolean,
|
|
77
|
-
rules: [Object, Array],
|
|
78
|
-
error: String,
|
|
79
|
-
validateStatus: String,
|
|
80
|
-
for: String,
|
|
81
|
-
inlineMessage: {
|
|
82
|
-
type: [String, Boolean],
|
|
83
|
-
default: ""
|
|
84
|
-
},
|
|
85
|
-
showMessage: {
|
|
86
|
-
type: Boolean,
|
|
87
|
-
default: !0
|
|
88
|
-
},
|
|
89
|
-
size: String,
|
|
90
|
-
// el-col
|
|
91
|
-
span: {
|
|
92
|
-
type: Number,
|
|
93
|
-
default: 12
|
|
94
|
-
},
|
|
95
|
-
tag: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: "div"
|
|
98
|
-
},
|
|
99
|
-
offset: Number,
|
|
100
|
-
pull: Number,
|
|
101
|
-
push: Number,
|
|
102
|
-
xs: [Number, Object],
|
|
103
|
-
sm: [Number, Object],
|
|
104
|
-
md: [Number, Object],
|
|
105
|
-
lg: [Number, Object],
|
|
106
|
-
xl: [Number, Object]
|
|
107
|
-
},
|
|
108
|
-
computed: {
|
|
109
|
-
prefix() {
|
|
110
|
-
return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
|
|
111
|
-
},
|
|
112
|
-
message() {
|
|
113
|
-
var e;
|
|
114
|
-
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
115
|
-
},
|
|
116
|
-
computeRules() {
|
|
117
|
-
const e = [...this.rules || []];
|
|
118
|
-
if (this.required) {
|
|
119
|
-
const r = e.find((t) => t.required);
|
|
120
|
-
r ? r.ref ? r.label = r.label || this.label : r.message = e.message || this.message : e.unshift(this.getRequireRule());
|
|
121
|
-
}
|
|
122
|
-
return e.concat(this.getRules());
|
|
123
|
-
},
|
|
124
|
-
computeSpan() {
|
|
125
|
-
return this.block ? 24 : this.span;
|
|
126
|
-
},
|
|
127
|
-
formItemProps() {
|
|
128
|
-
return b(u(u({}, this.$props), this.$attrs), G);
|
|
129
|
-
},
|
|
130
|
-
elFormItemProps() {
|
|
131
|
-
return b(u(u({}, this.$props), this.$attrs), z);
|
|
132
|
-
},
|
|
133
|
-
elColProps() {
|
|
134
|
-
return b(u(u({}, this.$props), this.$attrs), H);
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
watch: {
|
|
138
|
-
computeRules() {
|
|
139
|
-
var e, r;
|
|
140
|
-
(r = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || r.call(e, this.prop);
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
methods: {
|
|
144
|
-
getRules() {
|
|
145
|
-
return [];
|
|
146
|
-
},
|
|
147
|
-
getRequireRule() {
|
|
148
|
-
return {
|
|
149
|
-
required: !0,
|
|
150
|
-
message: this.message
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}, Y = {
|
|
155
|
-
name: "FormItem",
|
|
156
|
-
mixins: [D],
|
|
157
|
-
inject: {
|
|
158
|
-
formHolder: {
|
|
159
|
-
default: ""
|
|
160
|
-
},
|
|
161
|
-
formItemConfig: {
|
|
162
|
-
default: null
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
computed: {
|
|
166
|
-
gutter() {
|
|
167
|
-
var r;
|
|
168
|
-
let e = this.$parent;
|
|
169
|
-
for (; e && e.$options.componentName !== "ElRow"; )
|
|
170
|
-
e = e.$parent;
|
|
171
|
-
return (r = e == null ? void 0 : e.gutter) != null ? r : 0;
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
methods: {
|
|
175
|
-
renderFormItem() {
|
|
176
|
-
var q, B, x;
|
|
177
|
-
const e = this.$createElement, {
|
|
178
|
-
label: r,
|
|
179
|
-
labelWidth: t,
|
|
180
|
-
prop: i,
|
|
181
|
-
rules: p,
|
|
182
|
-
$scopedSlots: m,
|
|
183
|
-
elFormItemProps: o,
|
|
184
|
-
elForm: s,
|
|
185
|
-
formHolder: l,
|
|
186
|
-
formItemClass: a,
|
|
187
|
-
required: f,
|
|
188
|
-
block: j,
|
|
189
|
-
half: N,
|
|
190
|
-
wrapCol: v,
|
|
191
|
-
wrapFormItem: O,
|
|
192
|
-
disabled: P,
|
|
193
|
-
formItemConfig: d,
|
|
194
|
-
getRequireRule: S
|
|
195
|
-
} = this;
|
|
196
|
-
let n = p, c = f, h = f, C = j, _ = v;
|
|
197
|
-
d && (w(d, "block") && (C = d.block), w(d, "wrapCol") && (_ = d.wrapCol));
|
|
198
|
-
const K = C && N && _ ? `calc( 50% - ${this.gutter / 2}px)` : "";
|
|
199
|
-
return P || s != null && s.disabled ? (n = [], l && !l.required && !((q = l.requiredFields) != null && q.includes(i)) && (h = !1)) : (l && !l.required && !((B = l.requiredFields) != null && B.includes(i)) && (c = !1), c && !(n != null && n.length) && i ? n = [S()] : c || (h = !1, n && (n = n.filter((M) => !M.required)))), O ? (
|
|
200
|
-
// eslint-disable-next-line no-undef
|
|
201
|
-
e(y, {
|
|
202
|
-
style: {
|
|
203
|
-
width: K
|
|
204
|
-
},
|
|
205
|
-
key: `${i}-${c}`,
|
|
206
|
-
class: h ? `form-item required ${a || ""}` : `${a || ""}`,
|
|
207
|
-
scopedSlots: m,
|
|
208
|
-
props: u({}, o),
|
|
209
|
-
attrs: {
|
|
210
|
-
label: r,
|
|
211
|
-
"label-width": t,
|
|
212
|
-
prop: i,
|
|
213
|
-
rules: n
|
|
214
|
-
},
|
|
215
|
-
ref: "formItem"
|
|
216
|
-
})
|
|
217
|
-
) : e("div", [(x = m.default) == null ? void 0 : x.call(m)]);
|
|
218
|
-
},
|
|
219
|
-
clearValidate() {
|
|
220
|
-
return g(this, null, function* () {
|
|
221
|
-
var e, r;
|
|
222
|
-
yield this.$nextTick(), (r = (e = this.$refs.formItem).clearValidate) == null || r.call(e);
|
|
223
|
-
});
|
|
224
|
-
},
|
|
225
|
-
validate() {
|
|
226
|
-
return g(this, null, function* () {
|
|
227
|
-
var e, r;
|
|
228
|
-
yield this.$nextTick(), (r = (e = this.$refs.formItem).validate) == null || r.call(e);
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
render() {
|
|
233
|
-
var a, f;
|
|
234
|
-
const e = arguments[0], {
|
|
235
|
-
computeSpan: r,
|
|
236
|
-
wrapCol: t,
|
|
237
|
-
formItemConfig: i,
|
|
238
|
-
renderFormItem: p,
|
|
239
|
-
elColProps: m,
|
|
240
|
-
$scopedSlots: o,
|
|
241
|
-
unwrap: s
|
|
242
|
-
} = this;
|
|
243
|
-
let l = t;
|
|
244
|
-
return i && w(i, "wrapCol") && (l = i.wrapCol), s ? e("div", [(a = o.default) == null ? void 0 : a.call(o)]) : l ? (
|
|
245
|
-
// eslint-disable-next-line no-undef
|
|
246
|
-
e(I, {
|
|
247
|
-
props: u({}, m),
|
|
248
|
-
attrs: {
|
|
249
|
-
span: r
|
|
250
|
-
}
|
|
251
|
-
}, [p(), (f = o == null ? void 0 : o.below) == null ? void 0 : f.call(o)])
|
|
252
|
-
) : p();
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
export {
|
|
256
|
-
Y as _,
|
|
257
|
-
D as f
|
|
258
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { s, r as i } from "./LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs";
|
|
2
|
-
import { n as o } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
import { _ as r } from "./FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs";
|
|
4
|
-
const l = {
|
|
5
|
-
name: "LoadingView",
|
|
6
|
-
props: {
|
|
7
|
-
loadingTips: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "加载中..."
|
|
10
|
-
},
|
|
11
|
-
fontSize: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "20px"
|
|
14
|
-
},
|
|
15
|
-
iconSize: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "20px"
|
|
18
|
-
},
|
|
19
|
-
height: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "100%"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}, t = {};
|
|
25
|
-
var u = /* @__PURE__ */ o(
|
|
26
|
-
l,
|
|
27
|
-
i,
|
|
28
|
-
s,
|
|
29
|
-
!1,
|
|
30
|
-
c,
|
|
31
|
-
null,
|
|
32
|
-
null,
|
|
33
|
-
null
|
|
34
|
-
);
|
|
35
|
-
function c(_) {
|
|
36
|
-
for (let n in t)
|
|
37
|
-
this[n] = t[n];
|
|
38
|
-
}
|
|
39
|
-
const S = /* @__PURE__ */ function() {
|
|
40
|
-
return u.exports;
|
|
41
|
-
}();
|
|
42
|
-
let p, a;
|
|
43
|
-
const e = {};
|
|
44
|
-
var f = /* @__PURE__ */ o(
|
|
45
|
-
r,
|
|
46
|
-
p,
|
|
47
|
-
a,
|
|
48
|
-
!1,
|
|
49
|
-
m,
|
|
50
|
-
null,
|
|
51
|
-
null,
|
|
52
|
-
null
|
|
53
|
-
);
|
|
54
|
-
function m(_) {
|
|
55
|
-
for (let n in e)
|
|
56
|
-
this[n] = e[n];
|
|
57
|
-
}
|
|
58
|
-
const x = /* @__PURE__ */ function() {
|
|
59
|
-
return f.exports;
|
|
60
|
-
}();
|
|
61
|
-
export {
|
|
62
|
-
x as _,
|
|
63
|
-
S as a
|
|
64
|
-
};
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import d from "element-ui/lib/transitions/collapse-transition";
|
|
2
|
-
import { _ as m } from "./EmptyView.e2430422.mjs";
|
|
3
|
-
import p from "element-ui/lib/row";
|
|
4
|
-
import { isFunction as u } from "@web-utils/core";
|
|
5
|
-
const s = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], c = ["$emit", "validate", "clearValidate"], _ = {
|
|
6
|
-
name: "FormItemGroup",
|
|
7
|
-
inject: {
|
|
8
|
-
elForm: {
|
|
9
|
-
default: {}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
provide() {
|
|
13
|
-
return {
|
|
14
|
-
elForm: this.formConfig,
|
|
15
|
-
formItemGroup: this
|
|
16
|
-
};
|
|
17
|
-
},
|
|
18
|
-
props: {
|
|
19
|
-
blockTitle: {
|
|
20
|
-
type: String
|
|
21
|
-
},
|
|
22
|
-
active: Boolean,
|
|
23
|
-
enabled: Boolean,
|
|
24
|
-
disabled: Boolean,
|
|
25
|
-
wrapRow: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !0
|
|
28
|
-
},
|
|
29
|
-
gutter: {
|
|
30
|
-
type: Number,
|
|
31
|
-
default: 20
|
|
32
|
-
},
|
|
33
|
-
collapse: Boolean
|
|
34
|
-
},
|
|
35
|
-
data() {
|
|
36
|
-
const e = {};
|
|
37
|
-
return s.forEach((i) => {
|
|
38
|
-
e[i] = null;
|
|
39
|
-
}), {
|
|
40
|
-
expand: !0,
|
|
41
|
-
formConfig: e
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
computed: {
|
|
45
|
-
formCfg() {
|
|
46
|
-
const e = {
|
|
47
|
-
enabled: this.enabled,
|
|
48
|
-
forbidden: this.disabled
|
|
49
|
-
};
|
|
50
|
-
return s.forEach((i) => {
|
|
51
|
-
e[i] = this.elForm[i];
|
|
52
|
-
}), e;
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
watch: {
|
|
56
|
-
collapse: {
|
|
57
|
-
immediate: !0,
|
|
58
|
-
handler(e) {
|
|
59
|
-
this.expand = !e;
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
formCfg: {
|
|
63
|
-
immediate: !0,
|
|
64
|
-
handler() {
|
|
65
|
-
this.formConfig.disabled = this.isDisabled(), s.forEach((e) => {
|
|
66
|
-
var i;
|
|
67
|
-
e !== "disabled" && (c.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
mounted() {
|
|
73
|
-
this.dispatch("FormView", "FormView.addGroup", [this]);
|
|
74
|
-
},
|
|
75
|
-
beforeDestroy() {
|
|
76
|
-
this.dispatch("FormView", "FormView.removeGroup", [this]);
|
|
77
|
-
},
|
|
78
|
-
methods: {
|
|
79
|
-
isDisabled() {
|
|
80
|
-
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
81
|
-
},
|
|
82
|
-
dispatch(e, i, r) {
|
|
83
|
-
let t = this.$parent || this.$root, o = t.$options.name;
|
|
84
|
-
for (; t && (!o || o !== e); )
|
|
85
|
-
t = t.$parent, t && (o = t.$options.name);
|
|
86
|
-
t && t.$emit.apply(t, [i].concat(r));
|
|
87
|
-
},
|
|
88
|
-
renderDefault() {
|
|
89
|
-
const e = this.$createElement, {
|
|
90
|
-
wrapRow: i,
|
|
91
|
-
gutter: r,
|
|
92
|
-
formConfig: t,
|
|
93
|
-
$scopedSlots: o
|
|
94
|
-
} = this;
|
|
95
|
-
return u(o.default) ? i ? (
|
|
96
|
-
// eslint-disable-next-line no-undef
|
|
97
|
-
e(p, {
|
|
98
|
-
attrs: {
|
|
99
|
-
gutter: r
|
|
100
|
-
},
|
|
101
|
-
class: "form-item-group-row"
|
|
102
|
-
}, [o.default({
|
|
103
|
-
disabled: t.disabled
|
|
104
|
-
})])
|
|
105
|
-
) : o.default({
|
|
106
|
-
disabled: t.disabled
|
|
107
|
-
}) : e(m, {
|
|
108
|
-
attrs: {
|
|
109
|
-
"font-size": "14px",
|
|
110
|
-
"empty-tips": "暂无信息"
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
},
|
|
114
|
-
toggle() {
|
|
115
|
-
this.expand = !this.expand;
|
|
116
|
-
},
|
|
117
|
-
open() {
|
|
118
|
-
this.expand = !0;
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
render() {
|
|
122
|
-
const e = arguments[0], {
|
|
123
|
-
renderDefault: i,
|
|
124
|
-
blockTitle: r,
|
|
125
|
-
active: t,
|
|
126
|
-
expand: o,
|
|
127
|
-
toggle: l,
|
|
128
|
-
$scopedSlots: a,
|
|
129
|
-
isDisabled: n
|
|
130
|
-
} = this;
|
|
131
|
-
return e("div", {
|
|
132
|
-
class: ["form-item-group", {
|
|
133
|
-
"default-active": t,
|
|
134
|
-
"is-disabled": n()
|
|
135
|
-
}]
|
|
136
|
-
}, [e("div", {
|
|
137
|
-
class: "form-item-group-title",
|
|
138
|
-
on: {
|
|
139
|
-
click: l
|
|
140
|
-
}
|
|
141
|
-
}, [e("span", {
|
|
142
|
-
class: "flex-item"
|
|
143
|
-
}, [r, a["title-right"] ? a["title-right"]() : null]), " ", e("i", {
|
|
144
|
-
class: o ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
145
|
-
})]), e(d, [e("div", {
|
|
146
|
-
directives: [{
|
|
147
|
-
name: "show",
|
|
148
|
-
value: o
|
|
149
|
-
}]
|
|
150
|
-
}, [i()])])]);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
export {
|
|
154
|
-
_
|
|
155
|
-
};
|