@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
package/watermark/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var u = (n, t, e) => t in n ? d(n, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
v.call(t, e) && u(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, c = (n, t) => g(n, y(t));
|
|
13
|
-
import { g as b } from "../chunks/index.
|
|
13
|
+
import { g as b } from "../chunks/index.d91bd77a.mjs";
|
|
14
14
|
import { n as S } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
15
15
|
const k = {
|
|
16
16
|
name: "Watermark",
|
package/web-types.json
CHANGED
package/x-input-tag/index.mjs
CHANGED
|
@@ -1,100 +1,34 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty, V = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var h = (
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
3
|
+
var l = Object.getOwnPropertySymbols;
|
|
4
|
+
var y = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var h = (s, e, t) => e in s ? g(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, p = (s, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
y.call(e, t) && h(s, t, e[t]);
|
|
8
|
+
if (l)
|
|
9
|
+
for (var t of l(e))
|
|
10
|
+
_.call(e, t) && h(s, t, e[t]);
|
|
11
|
+
return s;
|
|
12
|
+
}, d = (s, e) => V(s, b(e));
|
|
13
|
+
var o = (s, e, t) => new Promise((i, u) => {
|
|
14
|
+
var f = (a) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
n(t.next(a));
|
|
17
|
+
} catch (r) {
|
|
18
|
+
u(r);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, c = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
n(t.throw(a));
|
|
23
|
+
} catch (r) {
|
|
24
|
+
u(r);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, n = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(f, c);
|
|
27
|
+
n((t = t.apply(s, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return e("div", {
|
|
33
|
-
staticClass: "x-input-tag"
|
|
34
|
-
}, [t.tags && t.tags.length && t.tags[0] ? t._l(t.tags, function(a, i) {
|
|
35
|
-
return e("ElTag", {
|
|
36
|
-
key: a.id || a,
|
|
37
|
-
attrs: {
|
|
38
|
-
size: "medium",
|
|
39
|
-
"disable-transitions": "",
|
|
40
|
-
closable: !t.inputDisabled
|
|
41
|
-
},
|
|
42
|
-
on: {
|
|
43
|
-
close: function(o) {
|
|
44
|
-
return t.handleClose(a, i);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [t._v(" " + t._s(a.name || a) + " ")]);
|
|
48
|
-
}) : t.inputDisabled ? [e("span", {
|
|
49
|
-
staticStyle: {
|
|
50
|
-
color: "#b5b5b5"
|
|
51
|
-
}
|
|
52
|
-
}, [t._v("无")])] : t._e(), t.inputDisabled ? t._e() : e("ElInput", {
|
|
53
|
-
directives: [{
|
|
54
|
-
name: "show",
|
|
55
|
-
rawName: "v-show",
|
|
56
|
-
value: t.inputVisible,
|
|
57
|
-
expression: "inputVisible"
|
|
58
|
-
}],
|
|
59
|
-
ref: "saveTagInput",
|
|
60
|
-
staticClass: "input-new-tag",
|
|
61
|
-
attrs: {
|
|
62
|
-
size: "mini"
|
|
63
|
-
},
|
|
64
|
-
on: {
|
|
65
|
-
blur: t.handleInputConfirm
|
|
66
|
-
},
|
|
67
|
-
nativeOn: {
|
|
68
|
-
keyup: function(a) {
|
|
69
|
-
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.handleInputConfirm.apply(null, arguments);
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
model: {
|
|
73
|
-
value: t.inputValue,
|
|
74
|
-
callback: function(a) {
|
|
75
|
-
t.inputValue = a;
|
|
76
|
-
},
|
|
77
|
-
expression: "inputValue"
|
|
78
|
-
}
|
|
79
|
-
}), !t.inputDisabled && !t.inputVisible ? e("ElButton", {
|
|
80
|
-
directives: [{
|
|
81
|
-
name: "show",
|
|
82
|
-
rawName: "v-show",
|
|
83
|
-
value: t.tags.length < t.maxTag,
|
|
84
|
-
expression: "tags.length < maxTag"
|
|
85
|
-
}],
|
|
86
|
-
staticClass: "button-new-tag",
|
|
87
|
-
attrs: {
|
|
88
|
-
size: "mini"
|
|
89
|
-
},
|
|
90
|
-
on: {
|
|
91
|
-
click: t.showInput
|
|
92
|
-
}
|
|
93
|
-
}, [t._v(" + 添加 ")]) : t._e(), t.count ? e("span", {
|
|
94
|
-
staticClass: "tags-count"
|
|
95
|
-
}, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
|
|
96
|
-
}, x = [];
|
|
97
|
-
const C = {
|
|
29
|
+
import { s as M, r as j } from "../chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs";
|
|
30
|
+
import { n as w } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
31
|
+
const $ = {
|
|
98
32
|
name: "XInputTag",
|
|
99
33
|
inject: {
|
|
100
34
|
elForm: {
|
|
@@ -140,64 +74,64 @@ const C = {
|
|
|
140
74
|
},
|
|
141
75
|
tags: {
|
|
142
76
|
get() {
|
|
143
|
-
var
|
|
77
|
+
var s, e;
|
|
144
78
|
if (this.arrayMode)
|
|
145
|
-
return (
|
|
79
|
+
return (s = this.value) != null && s.length ? this.objectMode ? this.value.map((t) => t.id > 0 ? t : d(p({}, t), { id: Math.random() })) : this.value : [];
|
|
146
80
|
{
|
|
147
|
-
const
|
|
148
|
-
return
|
|
81
|
+
const t = ((e = this.value) == null ? void 0 : e.split(this.separator)) || [];
|
|
82
|
+
return t.length && t[0] ? t.map((i) => this.objectMode ? { name: i, id: Math.random() } : i) : [];
|
|
149
83
|
}
|
|
150
84
|
}
|
|
151
85
|
}
|
|
152
86
|
},
|
|
153
87
|
methods: {
|
|
154
88
|
showInput() {
|
|
155
|
-
return
|
|
89
|
+
return o(this, null, function* () {
|
|
156
90
|
this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
|
|
157
91
|
});
|
|
158
92
|
},
|
|
159
|
-
handleClose(
|
|
160
|
-
const
|
|
161
|
-
this.$emit("input", this.arrayMode ?
|
|
93
|
+
handleClose(s) {
|
|
94
|
+
const e = this.tags.filter((t) => t !== s);
|
|
95
|
+
this.$emit("input", this.arrayMode ? e : e.map((t) => t.name || t).join(this.separator));
|
|
162
96
|
},
|
|
163
97
|
handleInputConfirm() {
|
|
164
|
-
return
|
|
165
|
-
var
|
|
98
|
+
return o(this, null, function* () {
|
|
99
|
+
var e;
|
|
166
100
|
if (this.tags.length >= this.maxTag) {
|
|
167
101
|
this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
|
|
168
102
|
return;
|
|
169
103
|
}
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
if (this.tags.some((
|
|
104
|
+
const s = this.inputValue;
|
|
105
|
+
if (s) {
|
|
106
|
+
if (this.tags.some((i) => (i.name || i) === s)) {
|
|
173
107
|
this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
|
|
174
108
|
return;
|
|
175
109
|
}
|
|
176
|
-
const
|
|
177
|
-
|
|
110
|
+
const t = [...this.tags];
|
|
111
|
+
t.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? t : t.map((i) => i.name || i).join(this.separator)), yield this.$nextTick(), (e = this.elFormItem) == null || e.clearValidate();
|
|
178
112
|
}
|
|
179
113
|
this.inputVisible = !1, this.inputValue = "";
|
|
180
114
|
});
|
|
181
115
|
}
|
|
182
116
|
}
|
|
183
117
|
}, m = {};
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
118
|
+
var x = /* @__PURE__ */ w(
|
|
119
|
+
$,
|
|
120
|
+
j,
|
|
121
|
+
M,
|
|
188
122
|
!1,
|
|
189
|
-
|
|
123
|
+
I,
|
|
190
124
|
null,
|
|
191
125
|
null,
|
|
192
126
|
null
|
|
193
127
|
);
|
|
194
|
-
function
|
|
195
|
-
for (let
|
|
196
|
-
this[
|
|
128
|
+
function I(s) {
|
|
129
|
+
for (let e in m)
|
|
130
|
+
this[e] = m[e];
|
|
197
131
|
}
|
|
198
|
-
const
|
|
199
|
-
return
|
|
132
|
+
const F = /* @__PURE__ */ function() {
|
|
133
|
+
return x.exports;
|
|
200
134
|
}();
|
|
201
135
|
export {
|
|
202
|
-
|
|
136
|
+
F as default
|
|
203
137
|
};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { isBlank as h } from "@web-utils/core";
|
|
2
|
-
import { formatDate as i } from "@web-utils/integrations/dayjs";
|
|
3
|
-
import { p as g, M as b, A as v, b as c, q as A, e as S, k as d, t as T, h as x, v as C, u as j } from "./util.ae730cde.mjs";
|
|
4
|
-
import "@web-utils/component/fy-u-editor/style.css";
|
|
5
|
-
import { a as D, b as O } from "./dataformat.f995e2f9.mjs";
|
|
6
|
-
import { s as L } from "./slot.4b391395.mjs";
|
|
7
|
-
import { n as Y } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
8
|
-
const U = (e = {}, r = {}, o = {}, n = []) => {
|
|
9
|
-
let t = e[r.prop];
|
|
10
|
-
const a = r.type, s = r.separator;
|
|
11
|
-
if (r.bind && (t = g(e, r.bind)), h(t))
|
|
12
|
-
t = "";
|
|
13
|
-
else {
|
|
14
|
-
const y = b.includes(r.type) && r.multiple, _ = v.includes(r.type);
|
|
15
|
-
if ((["string", "number"].includes(r.dataType) || y || _) && !Array.isArray(t) && (t = `${t}`.split(s || c), r.dataType === "number" && (t = A(t))), S.includes(a))
|
|
16
|
-
Array.isArray(t) ? t = t.join(s || d) : t = t.split(s || c).join(s || d);
|
|
17
|
-
else if (a === "password")
|
|
18
|
-
t = T(t, "*");
|
|
19
|
-
else if (x.includes(a) && r.format) {
|
|
20
|
-
const u = r.format.replace("dd", "DD").replace("yyyy", "YYYY"), m = i(Date.now(), "YYYY-MM-DD");
|
|
21
|
-
if (a.indexOf("range") !== -1) {
|
|
22
|
-
let l = t[0] || "", p = t[1] || "";
|
|
23
|
-
a === "timerange" && l.length <= 8 && p.length < 8 && (l = `${m} ${l}`, p = `${m} ${p}`), t = [i(l, u), i(p, u)].join(r.separator || "~");
|
|
24
|
-
} else
|
|
25
|
-
a === "time" && t.length <= 8 && (t = `${m} ${t}`), t = i(t, u);
|
|
26
|
-
}
|
|
27
|
-
t = C(n, t, r.props || o.props);
|
|
28
|
-
}
|
|
29
|
-
return r.formatter && typeof r.formatter == "function" && (t = r.formatter(e, e[r.prop], t, r)), t;
|
|
30
|
-
};
|
|
31
|
-
var k = function() {
|
|
32
|
-
var e = this, r = e.$createElement, o = e._self._c || r;
|
|
33
|
-
return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
|
|
34
|
-
ref: "temp",
|
|
35
|
-
tag: "Component",
|
|
36
|
-
attrs: {
|
|
37
|
-
column: Object.assign(e.column, e.params),
|
|
38
|
-
dic: e.dic,
|
|
39
|
-
disabled: e.column.disabled || e.disabled,
|
|
40
|
-
readonly: e.column.readonly || e.readonly,
|
|
41
|
-
placeholder: e.getPlaceholder(e.column),
|
|
42
|
-
props: e.column.props || e.props,
|
|
43
|
-
"props-http": e.column.propsHttp || e.propsHttp,
|
|
44
|
-
size: e.column.size || e.size,
|
|
45
|
-
"table-data": e.tableData,
|
|
46
|
-
type: e.type || e.column.type,
|
|
47
|
-
"column-slot": e.columnSlot
|
|
48
|
-
},
|
|
49
|
-
nativeOn: {
|
|
50
|
-
keyup: function(n) {
|
|
51
|
-
return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.enterChange.apply(null, arguments);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
scopedSlots: e._u([e._l(e.columnSlot, function(n) {
|
|
55
|
-
return {
|
|
56
|
-
key: n,
|
|
57
|
-
fn: function(t) {
|
|
58
|
-
return [e._t(n, null, null, t)];
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
})], null, !0),
|
|
62
|
-
model: {
|
|
63
|
-
value: e.text,
|
|
64
|
-
callback: function(n) {
|
|
65
|
-
e.text = n;
|
|
66
|
-
},
|
|
67
|
-
expression: "text"
|
|
68
|
-
}
|
|
69
|
-
}, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? o("span", {
|
|
70
|
-
domProps: {
|
|
71
|
-
innerHTML: e._s(e.params.html)
|
|
72
|
-
}
|
|
73
|
-
}) : e._e()]);
|
|
74
|
-
}, F = [];
|
|
75
|
-
const I = {
|
|
76
|
-
name: "FormTemp",
|
|
77
|
-
components: { FyUEditor: () => import("@web-utils/component/fy-u-editor") },
|
|
78
|
-
mixins: [L],
|
|
79
|
-
props: {
|
|
80
|
-
value: [String, Object, Number, Boolean, Array],
|
|
81
|
-
columnSlot: {
|
|
82
|
-
type: Array,
|
|
83
|
-
default: () => []
|
|
84
|
-
},
|
|
85
|
-
tableData: {
|
|
86
|
-
type: Object,
|
|
87
|
-
default: () => ({})
|
|
88
|
-
},
|
|
89
|
-
enter: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: !1
|
|
92
|
-
},
|
|
93
|
-
type: {
|
|
94
|
-
type: String
|
|
95
|
-
},
|
|
96
|
-
propsHttp: {
|
|
97
|
-
type: Object,
|
|
98
|
-
default: () => ({})
|
|
99
|
-
},
|
|
100
|
-
props: {
|
|
101
|
-
type: Object
|
|
102
|
-
},
|
|
103
|
-
dic: {
|
|
104
|
-
type: Array
|
|
105
|
-
},
|
|
106
|
-
size: {
|
|
107
|
-
type: String
|
|
108
|
-
},
|
|
109
|
-
disabled: {
|
|
110
|
-
type: Boolean
|
|
111
|
-
},
|
|
112
|
-
readonly: {
|
|
113
|
-
type: Boolean
|
|
114
|
-
},
|
|
115
|
-
column: {
|
|
116
|
-
type: Object,
|
|
117
|
-
default: () => ({})
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
computed: {
|
|
121
|
-
params() {
|
|
122
|
-
return this.column.params || {};
|
|
123
|
-
},
|
|
124
|
-
event() {
|
|
125
|
-
return this.column.event || {};
|
|
126
|
-
},
|
|
127
|
-
text: {
|
|
128
|
-
get() {
|
|
129
|
-
return this.value;
|
|
130
|
-
},
|
|
131
|
-
set(e) {
|
|
132
|
-
this.$emit("input", e), this.$emit("change", e);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
methods: {
|
|
137
|
-
uploadFun: j,
|
|
138
|
-
getComponent: D,
|
|
139
|
-
getPlaceholder: O,
|
|
140
|
-
enterChange() {
|
|
141
|
-
typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}, f = {};
|
|
145
|
-
var $ = /* @__PURE__ */ Y(
|
|
146
|
-
I,
|
|
147
|
-
k,
|
|
148
|
-
F,
|
|
149
|
-
!1,
|
|
150
|
-
P,
|
|
151
|
-
null,
|
|
152
|
-
null,
|
|
153
|
-
null
|
|
154
|
-
);
|
|
155
|
-
function P(e) {
|
|
156
|
-
for (let r in f)
|
|
157
|
-
this[r] = f[r];
|
|
158
|
-
}
|
|
159
|
-
const N = /* @__PURE__ */ function() {
|
|
160
|
-
return $.exports;
|
|
161
|
-
}();
|
|
162
|
-
export {
|
|
163
|
-
N as F,
|
|
164
|
-
U as d
|
|
165
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
var M = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
-
var D = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var x = Object.getOwnPropertySymbols;
|
|
4
|
-
var F = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var b = (e, t, a) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, T = (e, t) => {
|
|
6
|
-
for (var a in t || (t = {}))
|
|
7
|
-
F.call(t, a) && b(e, a, t[a]);
|
|
8
|
-
if (x)
|
|
9
|
-
for (var a of x(t))
|
|
10
|
-
I.call(t, a) && b(e, a, t[a]);
|
|
11
|
-
return e;
|
|
12
|
-
}, S = (e, t) => C(e, D(t));
|
|
13
|
-
var w = (e, t, a) => new Promise((o, n) => {
|
|
14
|
-
var r = (i) => {
|
|
15
|
-
try {
|
|
16
|
-
f(a.next(i));
|
|
17
|
-
} catch (l) {
|
|
18
|
-
n(l);
|
|
19
|
-
}
|
|
20
|
-
}, c = (i) => {
|
|
21
|
-
try {
|
|
22
|
-
f(a.throw(i));
|
|
23
|
-
} catch (l) {
|
|
24
|
-
n(l);
|
|
25
|
-
}
|
|
26
|
-
}, f = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(r, c);
|
|
27
|
-
f((a = a.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 g } from "@web-utils/core";
|
|
32
|
-
function L(e, t, a) {
|
|
33
|
-
return w(this, null, function* () {
|
|
34
|
-
const { stop: o, prevent: n, message: r, loadable: c, loadingText: f, confirmable: i, confirmType: l, confirmText: k, confirmTitle: h } = t;
|
|
35
|
-
o && e.stopPropagation(), n && e.preventDefault();
|
|
36
|
-
const { before: p, click: s, cancel: d, after: m } = a;
|
|
37
|
-
if (g(s))
|
|
38
|
-
try {
|
|
39
|
-
let u = !0;
|
|
40
|
-
if (g(p) && (u = yield p(e)), u === !1)
|
|
41
|
-
return;
|
|
42
|
-
i && (yield (B.confirm || B.default.confirm)(r || k, {
|
|
43
|
-
type: l,
|
|
44
|
-
title: h
|
|
45
|
-
}));
|
|
46
|
-
let y;
|
|
47
|
-
c && (y = (v.service || v.default.service)({
|
|
48
|
-
background: "rgba(0,0,0,0.3)",
|
|
49
|
-
text: f
|
|
50
|
-
}));
|
|
51
|
-
try {
|
|
52
|
-
yield s(e);
|
|
53
|
-
} catch (P) {
|
|
54
|
-
}
|
|
55
|
-
c && y.close(), g(m) && (yield m(e));
|
|
56
|
-
} catch (u) {
|
|
57
|
-
g(d) && (yield d(u));
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
const E = {
|
|
62
|
-
functional: !0,
|
|
63
|
-
props: {
|
|
64
|
-
stop: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: !0
|
|
67
|
-
},
|
|
68
|
-
prevent: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !0
|
|
71
|
-
},
|
|
72
|
-
text: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: ""
|
|
75
|
-
},
|
|
76
|
-
message: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: "你确定要删除该记录吗?"
|
|
79
|
-
},
|
|
80
|
-
confirmable: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
default: !0
|
|
83
|
-
},
|
|
84
|
-
confirmText: {
|
|
85
|
-
type: String,
|
|
86
|
-
default: "你确定要删除该记录吗?"
|
|
87
|
-
},
|
|
88
|
-
confirmType: {
|
|
89
|
-
type: String,
|
|
90
|
-
default: "warning"
|
|
91
|
-
},
|
|
92
|
-
confirmTitle: String,
|
|
93
|
-
loadable: Boolean,
|
|
94
|
-
loadingText: {
|
|
95
|
-
type: String,
|
|
96
|
-
default: "正在处理中请稍候..."
|
|
97
|
-
},
|
|
98
|
-
tag: {
|
|
99
|
-
type: String,
|
|
100
|
-
default: "i"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
render(e, { props: t, data: a, children: o, listeners: n }) {
|
|
104
|
-
return e(
|
|
105
|
-
t.tag,
|
|
106
|
-
S(T({}, a), {
|
|
107
|
-
on: { click: (r) => L(r, t, n) },
|
|
108
|
-
props: t
|
|
109
|
-
}),
|
|
110
|
-
o || t.text
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
export {
|
|
115
|
-
E as c
|
|
116
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { f as e } from "./form-item-mixin.ad148e7b.mjs";
|
|
2
|
-
import { d as r } from "./index.57f871af.mjs";
|
|
3
|
-
const o = {
|
|
4
|
-
mixins: [e],
|
|
5
|
-
props: {
|
|
6
|
-
value: [Boolean, String, Array, Number, Object, Date],
|
|
7
|
-
readonly: Boolean,
|
|
8
|
-
disabled: Boolean
|
|
9
|
-
},
|
|
10
|
-
computed: {
|
|
11
|
-
computePlaceholder() {
|
|
12
|
-
return this.placeholder === !0 ? this.message : this.placeholder;
|
|
13
|
-
},
|
|
14
|
-
listeners() {
|
|
15
|
-
return r(this.$listeners, "input", !1);
|
|
16
|
-
},
|
|
17
|
-
inputDisabled() {
|
|
18
|
-
return this.disabled;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
o as f
|
|
24
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
var m = Object.defineProperty;
|
|
2
|
-
var l = Object.getOwnPropertySymbols;
|
|
3
|
-
var f = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var i = (e, r, t) => r in e ? m(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, s = (e, r) => {
|
|
5
|
-
for (var t in r || (r = {}))
|
|
6
|
-
f.call(r, t) && i(e, t, r[t]);
|
|
7
|
-
if (l)
|
|
8
|
-
for (var t of l(r))
|
|
9
|
-
c.call(r, t) && i(e, t, r[t]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
import { d as o } from "./index.57f871af.mjs";
|
|
13
|
-
import a from "element-ui/lib/col";
|
|
14
|
-
import u from "element-ui/lib/form-item";
|
|
15
|
-
const d = ["span"], n = [...Object.keys(a.props || a.default.props)], h = n.filter((e) => !d.includes(e)), b = ["label", "prop", "rules", "labelWidth", "required"], p = [...Object.keys(u.props || u.default.props)], g = p.filter((e) => !b.includes(e)), y = [
|
|
16
|
-
"wrapCol",
|
|
17
|
-
"wrapFormItem",
|
|
18
|
-
"unwrap",
|
|
19
|
-
"prefixConfig",
|
|
20
|
-
"block",
|
|
21
|
-
"placeholder",
|
|
22
|
-
"prefixPick",
|
|
23
|
-
"half",
|
|
24
|
-
...n,
|
|
25
|
-
...p
|
|
26
|
-
], C = {
|
|
27
|
-
inject: {
|
|
28
|
-
elForm: {
|
|
29
|
-
default: {}
|
|
30
|
-
},
|
|
31
|
-
formItemGroup: {
|
|
32
|
-
default: {}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
props: {
|
|
36
|
-
disabled: Boolean,
|
|
37
|
-
wrapCol: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: !0
|
|
40
|
-
},
|
|
41
|
-
wrapFormItem: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: !0
|
|
44
|
-
},
|
|
45
|
-
unwrap: Boolean,
|
|
46
|
-
half: Boolean,
|
|
47
|
-
prefixConfig: Boolean,
|
|
48
|
-
block: Boolean,
|
|
49
|
-
placeholder: {
|
|
50
|
-
type: [Boolean, String],
|
|
51
|
-
default: !0
|
|
52
|
-
},
|
|
53
|
-
formItemClass: String,
|
|
54
|
-
prefixPick: Boolean,
|
|
55
|
-
// el-form-item
|
|
56
|
-
label: String,
|
|
57
|
-
labelWidth: String,
|
|
58
|
-
prop: String,
|
|
59
|
-
required: Boolean,
|
|
60
|
-
rules: [Object, Array],
|
|
61
|
-
error: String,
|
|
62
|
-
validateStatus: String,
|
|
63
|
-
for: String,
|
|
64
|
-
inlineMessage: {
|
|
65
|
-
type: [String, Boolean],
|
|
66
|
-
default: ""
|
|
67
|
-
},
|
|
68
|
-
showMessage: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !0
|
|
71
|
-
},
|
|
72
|
-
size: String,
|
|
73
|
-
// el-col
|
|
74
|
-
span: {
|
|
75
|
-
type: Number,
|
|
76
|
-
default: 12
|
|
77
|
-
},
|
|
78
|
-
tag: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: "div"
|
|
81
|
-
},
|
|
82
|
-
offset: Number,
|
|
83
|
-
pull: Number,
|
|
84
|
-
push: Number,
|
|
85
|
-
xs: [Number, Object],
|
|
86
|
-
sm: [Number, Object],
|
|
87
|
-
md: [Number, Object],
|
|
88
|
-
lg: [Number, Object],
|
|
89
|
-
xl: [Number, Object]
|
|
90
|
-
},
|
|
91
|
-
computed: {
|
|
92
|
-
prefix() {
|
|
93
|
-
return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
|
|
94
|
-
},
|
|
95
|
-
message() {
|
|
96
|
-
var e;
|
|
97
|
-
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
98
|
-
},
|
|
99
|
-
computeRules() {
|
|
100
|
-
const e = [...this.rules || []];
|
|
101
|
-
if (this.required) {
|
|
102
|
-
const r = e.find((t) => t.required);
|
|
103
|
-
r ? r.ref ? r.label = r.label || this.label : r.message = e.message || this.message : e.unshift(this.getRequireRule());
|
|
104
|
-
}
|
|
105
|
-
return e.concat(this.getRules());
|
|
106
|
-
},
|
|
107
|
-
computeSpan() {
|
|
108
|
-
return this.block ? 24 : this.span;
|
|
109
|
-
},
|
|
110
|
-
formItemProps() {
|
|
111
|
-
return o(s(s({}, this.$props), this.$attrs), y);
|
|
112
|
-
},
|
|
113
|
-
elFormItemProps() {
|
|
114
|
-
return o(s(s({}, this.$props), this.$attrs), g);
|
|
115
|
-
},
|
|
116
|
-
elColProps() {
|
|
117
|
-
return o(s(s({}, this.$props), this.$attrs), h);
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
watch: {
|
|
121
|
-
computeRules() {
|
|
122
|
-
var e, r;
|
|
123
|
-
(r = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || r.call(e, this.prop);
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
methods: {
|
|
127
|
-
getRules() {
|
|
128
|
-
return [];
|
|
129
|
-
},
|
|
130
|
-
getRequireRule() {
|
|
131
|
-
return {
|
|
132
|
-
required: !0,
|
|
133
|
-
message: this.message
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
export {
|
|
139
|
-
C as f
|
|
140
|
-
};
|