@web-utils/component 2.70.0 → 3.0.1
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 +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- 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 +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import i from "element-ui/lib/button";
|
|
2
|
+
import l from "element-ui/lib/input";
|
|
3
|
+
import u from "element-ui/lib/tag";
|
|
4
|
+
var c = function() {
|
|
5
|
+
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
6
|
+
return t("div", {
|
|
7
|
+
staticClass: "x-input-tag"
|
|
8
|
+
}, [e.tags && e.tags.length && e.tags[0] ? e._l(e.tags, function(n, a) {
|
|
9
|
+
return t(u, {
|
|
10
|
+
key: n.id || n,
|
|
11
|
+
attrs: {
|
|
12
|
+
size: "medium",
|
|
13
|
+
"disable-transitions": "",
|
|
14
|
+
closable: !e.inputDisabled
|
|
15
|
+
},
|
|
16
|
+
on: {
|
|
17
|
+
close: function(r) {
|
|
18
|
+
return e.handleClose(n, a);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}, [e._v(" " + e._s(n.name || n) + " ")]);
|
|
22
|
+
}) : e.inputDisabled ? [t("span", {
|
|
23
|
+
staticStyle: {
|
|
24
|
+
color: "#b5b5b5"
|
|
25
|
+
}
|
|
26
|
+
}, [e._v("无")])] : e._e(), e.inputDisabled ? e._e() : t(l, {
|
|
27
|
+
directives: [{
|
|
28
|
+
name: "show",
|
|
29
|
+
rawName: "v-show",
|
|
30
|
+
value: e.inputVisible,
|
|
31
|
+
expression: "inputVisible"
|
|
32
|
+
}],
|
|
33
|
+
ref: "saveTagInput",
|
|
34
|
+
staticClass: "input-new-tag",
|
|
35
|
+
attrs: {
|
|
36
|
+
size: "mini"
|
|
37
|
+
},
|
|
38
|
+
on: {
|
|
39
|
+
blur: e.handleInputConfirm
|
|
40
|
+
},
|
|
41
|
+
nativeOn: {
|
|
42
|
+
keyup: function(n) {
|
|
43
|
+
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.handleInputConfirm.apply(null, arguments);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
model: {
|
|
47
|
+
value: e.inputValue,
|
|
48
|
+
callback: function(n) {
|
|
49
|
+
e.inputValue = n;
|
|
50
|
+
},
|
|
51
|
+
expression: "inputValue"
|
|
52
|
+
}
|
|
53
|
+
}), !e.inputDisabled && !e.inputVisible ? t(i, {
|
|
54
|
+
directives: [{
|
|
55
|
+
name: "show",
|
|
56
|
+
rawName: "v-show",
|
|
57
|
+
value: e.tags.length < e.maxTag,
|
|
58
|
+
expression: "tags.length < maxTag"
|
|
59
|
+
}],
|
|
60
|
+
staticClass: "button-new-tag",
|
|
61
|
+
attrs: {
|
|
62
|
+
size: "mini"
|
|
63
|
+
},
|
|
64
|
+
on: {
|
|
65
|
+
click: e.showInput
|
|
66
|
+
}
|
|
67
|
+
}, [e._v(" + 添加 ")]) : e._e(), e.count ? t("span", {
|
|
68
|
+
staticClass: "tags-count"
|
|
69
|
+
}, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
|
|
70
|
+
}, m = [];
|
|
71
|
+
export {
|
|
72
|
+
c as r,
|
|
73
|
+
m as s
|
|
74
|
+
};
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
var C = Object.defineProperty, A = Object.defineProperties;
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var B = Object.getOwnPropertySymbols;
|
|
4
|
+
var $ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var S = (e, t, n) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
$.call(t, n) && S(e, n, t[n]);
|
|
8
|
+
if (B)
|
|
9
|
+
for (var n of B(t))
|
|
10
|
+
z.call(t, n) && S(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, d = (e, t) => A(e, M(t));
|
|
13
|
+
var g = (e, t, n) => new Promise((i, a) => {
|
|
14
|
+
var r = (o) => {
|
|
15
|
+
try {
|
|
16
|
+
l(n.next(o));
|
|
17
|
+
} catch (s) {
|
|
18
|
+
a(s);
|
|
19
|
+
}
|
|
20
|
+
}, f = (o) => {
|
|
21
|
+
try {
|
|
22
|
+
l(n.throw(o));
|
|
23
|
+
} catch (s) {
|
|
24
|
+
a(s);
|
|
25
|
+
}
|
|
26
|
+
}, l = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(r, f);
|
|
27
|
+
l((n = n.apply(e, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import v from "element-ui/lib/loading";
|
|
30
|
+
import b from "element-ui/lib/message-box";
|
|
31
|
+
import { isFunction as c, error as F } from "@web-utils/core";
|
|
32
|
+
import T from "element-ui/lib/button";
|
|
33
|
+
import { n as j } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
34
|
+
const D = {
|
|
35
|
+
props: {
|
|
36
|
+
type: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "primary"
|
|
39
|
+
},
|
|
40
|
+
size: String,
|
|
41
|
+
icon: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
nativeType: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "button"
|
|
48
|
+
},
|
|
49
|
+
loading: Boolean,
|
|
50
|
+
disabled: Boolean,
|
|
51
|
+
plain: Boolean,
|
|
52
|
+
autofocus: Boolean,
|
|
53
|
+
round: Boolean
|
|
54
|
+
}
|
|
55
|
+
}, E = {
|
|
56
|
+
name: "AwesomeButton",
|
|
57
|
+
mixins: [D],
|
|
58
|
+
props: {
|
|
59
|
+
text: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: ""
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
data() {
|
|
65
|
+
return {
|
|
66
|
+
isLoading: !1
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
methods: {
|
|
70
|
+
onClick(e) {
|
|
71
|
+
return g(this, null, function* () {
|
|
72
|
+
this.isLoading = !0;
|
|
73
|
+
const { click: t } = this.$listeners;
|
|
74
|
+
if (c(t))
|
|
75
|
+
try {
|
|
76
|
+
yield t(e);
|
|
77
|
+
} catch (n) {
|
|
78
|
+
F.call(this, n);
|
|
79
|
+
}
|
|
80
|
+
this.isLoading = !1;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
render(e) {
|
|
85
|
+
var n, i;
|
|
86
|
+
const t = (i = (n = this.$scopedSlots).default) == null ? void 0 : i.call(n);
|
|
87
|
+
return e(
|
|
88
|
+
T,
|
|
89
|
+
{ on: { click: this.onClick }, props: d(p({}, this.$props), { disabled: this.isLoading }) },
|
|
90
|
+
t && (t[0].tag || t[0].text) ? t : this.text
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
let I, N;
|
|
95
|
+
const w = {};
|
|
96
|
+
var P = /* @__PURE__ */ j(
|
|
97
|
+
E,
|
|
98
|
+
I,
|
|
99
|
+
N,
|
|
100
|
+
!1,
|
|
101
|
+
R,
|
|
102
|
+
null,
|
|
103
|
+
null,
|
|
104
|
+
null
|
|
105
|
+
);
|
|
106
|
+
function R(e) {
|
|
107
|
+
for (let t in w)
|
|
108
|
+
this[t] = w[t];
|
|
109
|
+
}
|
|
110
|
+
const q = /* @__PURE__ */ function() {
|
|
111
|
+
return P.exports;
|
|
112
|
+
}();
|
|
113
|
+
function G(e, t, n) {
|
|
114
|
+
return g(this, null, function* () {
|
|
115
|
+
const { stop: i, prevent: a, message: r, loadable: f, loadingText: l, confirmable: o, confirmType: s, confirmText: k, confirmTitle: L } = t;
|
|
116
|
+
i && e.stopPropagation(), a && e.preventDefault();
|
|
117
|
+
const { before: m, click: y, cancel: _, after: x } = n;
|
|
118
|
+
if (c(y))
|
|
119
|
+
try {
|
|
120
|
+
let u = !0;
|
|
121
|
+
if (c(m) && (u = yield m(e)), u === !1)
|
|
122
|
+
return;
|
|
123
|
+
o && (yield (b.confirm || b.default.confirm)(r || k, {
|
|
124
|
+
type: s,
|
|
125
|
+
title: L
|
|
126
|
+
}));
|
|
127
|
+
let h;
|
|
128
|
+
f && (h = (v.service || v.default.service)({
|
|
129
|
+
background: "rgba(0,0,0,0.3)",
|
|
130
|
+
text: l
|
|
131
|
+
}));
|
|
132
|
+
try {
|
|
133
|
+
yield y(e);
|
|
134
|
+
} catch (H) {
|
|
135
|
+
}
|
|
136
|
+
f && h.close(), c(x) && (yield x(e));
|
|
137
|
+
} catch (u) {
|
|
138
|
+
c(_) && (yield _(u));
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
const W = {
|
|
143
|
+
functional: !0,
|
|
144
|
+
props: {
|
|
145
|
+
stop: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: !0
|
|
148
|
+
},
|
|
149
|
+
prevent: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !0
|
|
152
|
+
},
|
|
153
|
+
text: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: ""
|
|
156
|
+
},
|
|
157
|
+
message: {
|
|
158
|
+
type: String,
|
|
159
|
+
default: "你确定要删除该记录吗?"
|
|
160
|
+
},
|
|
161
|
+
confirmable: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: !0
|
|
164
|
+
},
|
|
165
|
+
confirmText: {
|
|
166
|
+
type: String,
|
|
167
|
+
default: "你确定要删除该记录吗?"
|
|
168
|
+
},
|
|
169
|
+
confirmType: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: "warning"
|
|
172
|
+
},
|
|
173
|
+
confirmTitle: String,
|
|
174
|
+
loadable: Boolean,
|
|
175
|
+
loadingText: {
|
|
176
|
+
type: String,
|
|
177
|
+
default: "正在处理中请稍候..."
|
|
178
|
+
},
|
|
179
|
+
tag: {
|
|
180
|
+
type: String,
|
|
181
|
+
default: "i"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
render(e, { props: t, data: n, children: i, listeners: a }) {
|
|
185
|
+
return e(
|
|
186
|
+
t.tag === "ElButton" ? T : t.tag === "AwesomeButton" ? q : t.tag,
|
|
187
|
+
d(p({}, n), {
|
|
188
|
+
on: { click: (r) => G(r, t, a) },
|
|
189
|
+
props: t
|
|
190
|
+
}),
|
|
191
|
+
i || t.text
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
export {
|
|
196
|
+
W as c
|
|
197
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isBlank as l } from "@web-utils/core";
|
|
2
|
-
import {
|
|
2
|
+
import { m as E, M as f, A as h, R as T, n as p, h as m, K as A, p as I, S as L, b as S, k as B, I as _ } from "./util.7844e2c2.mjs";
|
|
3
3
|
const P = {
|
|
4
4
|
common: {
|
|
5
5
|
condition: "条件",
|
|
@@ -147,12 +147,12 @@ const v = (e, n = 12, t = !1) => {
|
|
|
147
147
|
return l(n) ? L.includes(e.type) ? `${u("tip.select")} ${t}` : `${u("tip.input")} ${t}` : n;
|
|
148
148
|
};
|
|
149
149
|
export {
|
|
150
|
-
|
|
150
|
+
R as a,
|
|
151
151
|
O as b,
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
v as c,
|
|
153
|
+
$ as d,
|
|
154
154
|
M as f,
|
|
155
|
-
|
|
155
|
+
N as g,
|
|
156
156
|
C as i,
|
|
157
157
|
u as t
|
|
158
158
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { isBlank as P } from "@web-utils/core";
|
|
2
|
-
import {
|
|
3
|
-
const F = (n,
|
|
2
|
+
import { q as w, r as E } from "./util.7844e2c2.mjs";
|
|
3
|
+
const F = (n, r = []) => new Promise((i) => {
|
|
4
4
|
const c = [], s = [], a = {};
|
|
5
|
-
n.forEach((
|
|
6
|
-
|
|
7
|
-
}),
|
|
5
|
+
n.forEach((t) => {
|
|
6
|
+
t.parentProp && c.push(t);
|
|
7
|
+
}), r.forEach((t, e) => {
|
|
8
8
|
c.forEach((o) => {
|
|
9
9
|
o.hide !== !0 && o.dicFlag !== !1 && s.push(
|
|
10
10
|
new Promise((d) => {
|
|
11
|
-
P(
|
|
11
|
+
P(t[o.parentProp]) ? d({
|
|
12
12
|
prop: o.prop,
|
|
13
13
|
data: [],
|
|
14
14
|
index: e
|
|
15
15
|
}) : o.dicUrl && D({
|
|
16
|
-
url: `${o.dicUrl.replace("{{key}}",
|
|
16
|
+
url: `${o.dicUrl.replace("{{key}}", t[o.parentProp])}`,
|
|
17
17
|
props: o.props,
|
|
18
18
|
method: o.dicMethod,
|
|
19
19
|
headers: o.dicHeaders,
|
|
20
20
|
formatter: o.dicFormatter,
|
|
21
21
|
query: o.dicQuery,
|
|
22
|
-
form:
|
|
22
|
+
form: t
|
|
23
23
|
}).then((u) => {
|
|
24
24
|
d({
|
|
25
25
|
prop: o.prop,
|
|
@@ -30,36 +30,36 @@ const F = (n, t = []) => new Promise((i) => {
|
|
|
30
30
|
})
|
|
31
31
|
);
|
|
32
32
|
});
|
|
33
|
-
}), Promise.all(s).then((
|
|
34
|
-
|
|
33
|
+
}), Promise.all(s).then((t) => {
|
|
34
|
+
t.forEach((e) => {
|
|
35
35
|
P(a[e.index]) && (a[e.index] = {}), a[e.index][e.prop] = e.data;
|
|
36
36
|
}), i(a);
|
|
37
37
|
});
|
|
38
38
|
}), U = (n) => {
|
|
39
|
-
let
|
|
39
|
+
let r = [];
|
|
40
40
|
return new Promise((i, c) => {
|
|
41
|
-
|
|
41
|
+
r = k(n).ajaxdic, x(r).then((a) => {
|
|
42
42
|
i(a);
|
|
43
43
|
}).catch((a) => {
|
|
44
44
|
c(a);
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
},
|
|
48
|
-
const
|
|
47
|
+
}, q = (n) => {
|
|
48
|
+
const r = {}, i = n.dicData || {};
|
|
49
49
|
return n.column.forEach((c) => {
|
|
50
|
-
c.dicData && (
|
|
51
|
-
}), Object.assign(i,
|
|
50
|
+
c.dicData && (r[c.prop] = w(c.dicData, c.props, c.dataType));
|
|
51
|
+
}), Object.assign(i, r);
|
|
52
52
|
};
|
|
53
53
|
function k(n) {
|
|
54
|
-
const
|
|
54
|
+
const r = n.column || [], i = [], c = {};
|
|
55
55
|
let s = [];
|
|
56
|
-
return
|
|
57
|
-
const
|
|
58
|
-
s = s.concat(a.cascader || []), Array.isArray(
|
|
56
|
+
return r.forEach((a) => {
|
|
57
|
+
const t = a.dicData, e = a.dicUrl, o = a.prop, d = a.parentProp;
|
|
58
|
+
s = s.concat(a.cascader || []), Array.isArray(t) && (c[o] = t), !(a.dicFlag === !1 || a.lazy === !0 || s.includes(o)) && e && !d && i.push({
|
|
59
59
|
url: e,
|
|
60
60
|
name: o,
|
|
61
61
|
method: a.dicMethod,
|
|
62
|
-
headers:
|
|
62
|
+
headers: r.dicHeaders,
|
|
63
63
|
formatter: a.dicFormatter,
|
|
64
64
|
props: a.props,
|
|
65
65
|
dataType: a.dataType,
|
|
@@ -72,7 +72,7 @@ function k(n) {
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
function x(n) {
|
|
75
|
-
const
|
|
75
|
+
const r = {}, i = [];
|
|
76
76
|
return new Promise((c) => {
|
|
77
77
|
n.forEach((s) => {
|
|
78
78
|
i.push(
|
|
@@ -81,41 +81,41 @@ function x(n) {
|
|
|
81
81
|
Object.assign(s, {
|
|
82
82
|
url: `${s.url.replace("{{key}}", "")}`
|
|
83
83
|
})
|
|
84
|
-
).then((
|
|
85
|
-
|
|
84
|
+
).then((t) => {
|
|
85
|
+
t = w(t, s.props, s.dataType), a(t);
|
|
86
86
|
}).catch(() => {
|
|
87
87
|
a([]);
|
|
88
88
|
});
|
|
89
89
|
})
|
|
90
90
|
);
|
|
91
91
|
}), Promise.all(i).then((s) => {
|
|
92
|
-
n.forEach((a,
|
|
93
|
-
|
|
94
|
-
}), c(
|
|
92
|
+
n.forEach((a, t) => {
|
|
93
|
+
r[a.name] = s[t];
|
|
94
|
+
}), c(r);
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
const D = (n) => {
|
|
99
|
-
let { url:
|
|
100
|
-
d && (
|
|
99
|
+
let { url: r, query: i, method: c, resKey: s, props: a, formatter: t, headers: e = {}, value: o = "", column: d, form: u = {} } = n;
|
|
100
|
+
d && (r = d.dicUrl, c = d.dicMethod, e = d.headers || {}, i = d.dicQuery || {}, t = d.dicFormatter, a = d.props);
|
|
101
101
|
const g = "key";
|
|
102
|
-
|
|
103
|
-
let
|
|
104
|
-
const
|
|
105
|
-
return
|
|
102
|
+
r = r || "";
|
|
103
|
+
let y;
|
|
104
|
+
const m = {};
|
|
105
|
+
return y = r.match(/[^{}]+(?=})/g) || [], y.forEach((p) => {
|
|
106
106
|
const f = `{{${p}}}`, h = u[p];
|
|
107
|
-
p === g ?
|
|
108
|
-
}), c === "post" && (
|
|
107
|
+
p === g ? r = r.replace(f, o) : r = r.replace(f, h);
|
|
108
|
+
}), c === "post" && (y = Object.keys(i), y.forEach((p) => {
|
|
109
109
|
const f = i[p];
|
|
110
|
-
typeof f == "string" && f.match(/\{{|}}/g) ?
|
|
110
|
+
typeof f == "string" && f.match(/\{{|}}/g) ? m[p] = u[f.replace(/\{{|}}/g, "")] : m[p] = f;
|
|
111
111
|
})), a && (s = (a || {}).res || s), new Promise((p) => {
|
|
112
112
|
const f = (h) => {
|
|
113
113
|
let l = [];
|
|
114
|
-
typeof
|
|
114
|
+
typeof t == "function" ? l = t(h.data) : l = E(h.data, s), p(l);
|
|
115
115
|
};
|
|
116
|
-
c === "post" ? window.axios.post(
|
|
116
|
+
c === "post" ? window.axios.post(r, m, { headers: e }).then(function(h) {
|
|
117
117
|
f(h);
|
|
118
|
-
}).catch(() => [p([])]) : window.axios.get(
|
|
118
|
+
}).catch(() => [p([])]) : window.axios.get(r, { params: i, headers: e }).then(function(h) {
|
|
119
119
|
f(h);
|
|
120
120
|
}).catch(() => [p([])]);
|
|
121
121
|
});
|
|
@@ -123,6 +123,6 @@ const D = (n) => {
|
|
|
123
123
|
export {
|
|
124
124
|
U as a,
|
|
125
125
|
F as b,
|
|
126
|
-
|
|
126
|
+
q as l,
|
|
127
127
|
D as s
|
|
128
128
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as r, D as i, b as a } from "./util.7844e2c2.mjs";
|
|
2
2
|
import { s as l } from "./slot.4b391395.mjs";
|
|
3
3
|
import { isBlank as s } from "@web-utils/core";
|
|
4
|
-
import { i as p } from "./dataformat.
|
|
4
|
+
import { i as p } from "./dataformat.816df805.mjs";
|
|
5
5
|
const f = {
|
|
6
6
|
mixins: [l],
|
|
7
7
|
data() {
|
|
@@ -170,15 +170,15 @@ const I = (e, r) => {
|
|
|
170
170
|
});
|
|
171
171
|
}, M = (e, r) => m(e) ? c(e(r), r) : a(e) ? c(e, r) : null;
|
|
172
172
|
export {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
173
|
+
V as a,
|
|
174
|
+
R as b,
|
|
175
|
+
S as c,
|
|
176
|
+
F as d,
|
|
177
|
+
z as e,
|
|
178
178
|
K as f,
|
|
179
179
|
T as g,
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
s as h,
|
|
181
|
+
I as i,
|
|
182
182
|
E as j,
|
|
183
183
|
M as k,
|
|
184
184
|
A as n
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as a, l as n, a as h, b as r } from "./dic.
|
|
2
|
-
import { d,
|
|
1
|
+
import { s as a, l as n, a as h, b as r } from "./dic.3b4ba802.mjs";
|
|
2
|
+
import { d, D as c } from "./util.7844e2c2.mjs";
|
|
3
3
|
import { s as l } from "./slot.4b391395.mjs";
|
|
4
4
|
import { isBlank as s } from "@web-utils/core";
|
|
5
5
|
const f = {
|
|
@@ -230,36 +230,36 @@ export {
|
|
|
230
230
|
V as A,
|
|
231
231
|
q as B,
|
|
232
232
|
W as C,
|
|
233
|
-
|
|
233
|
+
f as D,
|
|
234
234
|
R as I,
|
|
235
235
|
D as K,
|
|
236
236
|
k as M,
|
|
237
237
|
K as R,
|
|
238
238
|
F as S,
|
|
239
|
-
|
|
239
|
+
J as a,
|
|
240
240
|
B as b,
|
|
241
|
-
|
|
241
|
+
se as c,
|
|
242
242
|
u as d,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
243
|
+
Y as e,
|
|
244
|
+
ee as f,
|
|
245
|
+
v as g,
|
|
246
|
+
L as h,
|
|
247
|
+
T as i,
|
|
248
|
+
ne as j,
|
|
249
|
+
I as k,
|
|
250
|
+
Z as l,
|
|
251
|
+
z as m,
|
|
252
|
+
O as n,
|
|
253
253
|
oe as o,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
H as p,
|
|
255
|
+
_ as q,
|
|
256
|
+
te as r,
|
|
257
257
|
X as s,
|
|
258
|
-
|
|
258
|
+
Q as t,
|
|
259
259
|
ie as u,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
260
|
+
G as v,
|
|
261
|
+
M as w,
|
|
262
|
+
re as x,
|
|
263
|
+
U as y,
|
|
264
264
|
x as z
|
|
265
265
|
};
|