@web-utils/component 3.0.3 → 3.0.5
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 +22 -24
- package/awesome-button/index.mjs +29 -30
- package/card/index.mjs +40 -42
- package/carousel/index.mjs +25 -27
- package/chat/index.mjs +57 -67
- package/chunks/FormTemp.7f91629d.mjs +165 -0
- package/chunks/confirmable-mixin.817b542f.mjs +116 -0
- package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
- package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
- package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
- package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
- package/color-picker/index.mjs +128 -0
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +32 -34
- package/data-card/index.mjs +33 -35
- package/data-cardtext/index.mjs +27 -29
- package/data-display/index.mjs +33 -35
- package/data-icons/index.mjs +28 -30
- package/data-imgtext/index.mjs +27 -30
- package/data-operatext/index.mjs +39 -41
- package/data-panel/index.mjs +36 -38
- package/data-pay/index.mjs +20 -23
- package/data-price/index.mjs +32 -34
- package/data-progress/index.mjs +27 -30
- package/data-rotate/index.mjs +17 -19
- package/data-table-picker/index.mjs +22 -23
- package/data-tabs/index.mjs +31 -33
- package/dialog-form/index.mjs +31 -39
- package/dynamic-table/index.mjs +36 -40
- package/editable-progress/index.mjs +14 -16
- package/editable-tree/index.mjs +139 -143
- package/egd-collapse-item/index.mjs +2 -1
- package/element-dialog/index.mjs +24 -25
- package/flow-designer/index.mjs +1095 -1111
- package/form-block/index.mjs +22 -24
- package/form-cascader/index.mjs +20 -20
- package/form-checkbox-group/index.mjs +24 -25
- package/form-date-picker/index.mjs +18 -19
- package/form-holder/index.mjs +14 -15
- package/form-input/index.mjs +23 -23
- package/form-input-email/index.mjs +17 -17
- package/form-input-id-card/index.mjs +24 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +26 -26
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +17 -17
- package/form-item/index.mjs +54 -56
- package/form-item-group/index.mjs +31 -33
- package/form-radio-group/index.mjs +51 -52
- package/form-select/index.mjs +31 -32
- package/form-switch/index.mjs +22 -22
- package/form-textarea/index.mjs +20 -20
- package/fy-array/index.mjs +61 -65
- package/fy-cascader/index.mjs +19 -20
- package/fy-checkbox/index.mjs +32 -37
- package/fy-code/index.mjs +13 -10
- package/fy-curd/index.mjs +638 -663
- package/fy-date/index.mjs +20 -21
- package/fy-draggable/index.mjs +19 -20
- package/fy-dynamic/index.mjs +26 -27
- package/fy-form/index.mjs +111 -122
- package/fy-form-design/index.mjs +1238 -1270
- package/fy-input/index.mjs +15 -17
- package/fy-input-color/index.mjs +25 -27
- package/fy-input-icon/index.mjs +20 -21
- package/fy-input-map/index.mjs +22 -24
- package/fy-input-number/index.mjs +22 -23
- package/fy-input-table/index.mjs +15 -17
- package/fy-input-tree/index.mjs +28 -32
- package/fy-progress/index.mjs +23 -24
- package/fy-radio/index.mjs +18 -23
- package/fy-rate/index.mjs +12 -13
- package/fy-select/index.mjs +40 -44
- package/fy-slider/index.mjs +17 -18
- package/fy-switch/index.mjs +20 -21
- package/fy-tabs/index.mjs +19 -21
- package/fy-time/index.mjs +14 -20
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +17 -21
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +22 -24
- package/image-cropper/index.mjs +50 -51
- package/image-preview/index.mjs +24 -26
- package/index.mjs +480 -477
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +23 -24
- package/login/index.mjs +35 -40
- package/nav-bar/index.mjs +13 -14
- package/notice/index.mjs +18 -19
- package/package.json +3 -3
- package/page-index/index.mjs +33 -34
- package/page-index-top/index.mjs +22 -24
- package/pageable-table/index.mjs +92 -96
- package/pageable-view/index.mjs +33 -34
- package/search/index.mjs +21 -23
- package/static-pageable-table/index.mjs +18 -20
- package/swiper/index.mjs +22 -23
- package/table-view/index.mjs +49 -53
- package/tag-render/index.mjs +19 -21
- package/text-ellipsis/index.mjs +11 -12
- package/tinymce-editor/index.mjs +50 -51
- package/toolbar-button/index.mjs +18 -19
- package/vue-cron/index.mjs +104 -112
- package/web-types.json +85 -1
- package/x-input-tag/index.mjs +47 -50
- package/chunks/FormTemp.d079292b.mjs +0 -139
- package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
- package/chunks/detail.d6f8e347.mjs +0 -29
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@web-utils/component",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.5",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -497,6 +497,90 @@
|
|
|
497
497
|
}
|
|
498
498
|
]
|
|
499
499
|
},
|
|
500
|
+
{
|
|
501
|
+
"name": "ColorPicker",
|
|
502
|
+
"description": "",
|
|
503
|
+
"attributes": [
|
|
504
|
+
{
|
|
505
|
+
"name": "popperClass",
|
|
506
|
+
"value": {
|
|
507
|
+
"kind": "expression",
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
"default": ""
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "predefine",
|
|
514
|
+
"value": {
|
|
515
|
+
"kind": "expression",
|
|
516
|
+
"type": "array"
|
|
517
|
+
},
|
|
518
|
+
"default": ""
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "visible",
|
|
522
|
+
"value": {
|
|
523
|
+
"kind": "expression",
|
|
524
|
+
"type": "boolean"
|
|
525
|
+
},
|
|
526
|
+
"default": ""
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "hideOnClickOutside",
|
|
530
|
+
"value": {
|
|
531
|
+
"kind": "expression",
|
|
532
|
+
"type": "boolean"
|
|
533
|
+
},
|
|
534
|
+
"default": "true"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "value",
|
|
538
|
+
"value": {
|
|
539
|
+
"kind": "expression",
|
|
540
|
+
"type": "string"
|
|
541
|
+
},
|
|
542
|
+
"default": ""
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "offset",
|
|
546
|
+
"value": {
|
|
547
|
+
"kind": "expression",
|
|
548
|
+
"type": "number"
|
|
549
|
+
},
|
|
550
|
+
"default": ""
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "anchor",
|
|
554
|
+
"value": {
|
|
555
|
+
"kind": "expression",
|
|
556
|
+
"type": "HTMLElement"
|
|
557
|
+
},
|
|
558
|
+
"default": ""
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "appendToBody",
|
|
562
|
+
"value": {
|
|
563
|
+
"kind": "expression",
|
|
564
|
+
"type": "boolean"
|
|
565
|
+
},
|
|
566
|
+
"default": "true"
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"events": [
|
|
570
|
+
{
|
|
571
|
+
"name": "pick"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "clear"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "input"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "update:visible"
|
|
581
|
+
}
|
|
582
|
+
]
|
|
583
|
+
},
|
|
500
584
|
{
|
|
501
585
|
"name": "Comment",
|
|
502
586
|
"description": "",
|
package/x-input-tag/index.mjs
CHANGED
|
@@ -1,42 +1,39 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f = Object.defineProperty, _ = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var p = Object.getOwnPropertySymbols;
|
|
4
4
|
var v = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var h = (t, s, e) => s in t ?
|
|
5
|
+
var h = (t, s, e) => s in t ? f(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, d = (t, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
7
|
v.call(s, e) && h(t, e, s[e]);
|
|
8
8
|
if (p)
|
|
9
9
|
for (var e of p(s))
|
|
10
10
|
y.call(s, e) && h(t, e, s[e]);
|
|
11
11
|
return t;
|
|
12
|
-
}, c = (t, s) =>
|
|
13
|
-
var
|
|
14
|
-
var o = (
|
|
12
|
+
}, c = (t, s) => _(t, b(s));
|
|
13
|
+
var r = (t, s, e) => new Promise((a, i) => {
|
|
14
|
+
var o = (n) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
l(e.next(n));
|
|
17
|
+
} catch (u) {
|
|
18
|
+
i(u);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, g = (n) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
l(e.throw(n));
|
|
23
|
+
} catch (u) {
|
|
24
|
+
i(u);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(o, g);
|
|
27
|
+
l((e = e.apply(t, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import V from "
|
|
30
|
-
|
|
31
|
-
import x from "element-ui/lib/tag";
|
|
32
|
-
import { n as C } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
33
|
-
var I = function() {
|
|
29
|
+
import { n as V } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
30
|
+
var w = function() {
|
|
34
31
|
var t = this, s = t.$createElement, e = t._self._c || s;
|
|
35
32
|
return e("div", {
|
|
36
33
|
staticClass: "x-input-tag"
|
|
37
|
-
}, [t.tags && t.tags.length && t.tags[0] ? t._l(t.tags, function(
|
|
38
|
-
return e(
|
|
39
|
-
key:
|
|
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,
|
|
40
37
|
attrs: {
|
|
41
38
|
size: "medium",
|
|
42
39
|
"disable-transitions": "",
|
|
@@ -44,15 +41,15 @@ var I = function() {
|
|
|
44
41
|
},
|
|
45
42
|
on: {
|
|
46
43
|
close: function(o) {
|
|
47
|
-
return t.handleClose(
|
|
44
|
+
return t.handleClose(a, i);
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
|
-
}, [t._v(" " + t._s(
|
|
47
|
+
}, [t._v(" " + t._s(a.name || a) + " ")]);
|
|
51
48
|
}) : t.inputDisabled ? [e("span", {
|
|
52
49
|
staticStyle: {
|
|
53
50
|
color: "#b5b5b5"
|
|
54
51
|
}
|
|
55
|
-
}, [t._v("无")])] : t._e(), t.inputDisabled ? t._e() : e(
|
|
52
|
+
}, [t._v("无")])] : t._e(), t.inputDisabled ? t._e() : e("ElInput", {
|
|
56
53
|
directives: [{
|
|
57
54
|
name: "show",
|
|
58
55
|
rawName: "v-show",
|
|
@@ -68,18 +65,18 @@ var I = function() {
|
|
|
68
65
|
blur: t.handleInputConfirm
|
|
69
66
|
},
|
|
70
67
|
nativeOn: {
|
|
71
|
-
keyup: function(
|
|
72
|
-
return !
|
|
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);
|
|
73
70
|
}
|
|
74
71
|
},
|
|
75
72
|
model: {
|
|
76
73
|
value: t.inputValue,
|
|
77
|
-
callback: function(
|
|
78
|
-
t.inputValue =
|
|
74
|
+
callback: function(a) {
|
|
75
|
+
t.inputValue = a;
|
|
79
76
|
},
|
|
80
77
|
expression: "inputValue"
|
|
81
78
|
}
|
|
82
|
-
}), !t.inputDisabled && !t.inputVisible ? e(
|
|
79
|
+
}), !t.inputDisabled && !t.inputVisible ? e("ElButton", {
|
|
83
80
|
directives: [{
|
|
84
81
|
name: "show",
|
|
85
82
|
rawName: "v-show",
|
|
@@ -96,8 +93,8 @@ var I = function() {
|
|
|
96
93
|
}, [t._v(" + 添加 ")]) : t._e(), t.count ? e("span", {
|
|
97
94
|
staticClass: "tags-count"
|
|
98
95
|
}, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
|
|
99
|
-
},
|
|
100
|
-
const
|
|
96
|
+
}, x = [];
|
|
97
|
+
const C = {
|
|
101
98
|
name: "XInputTag",
|
|
102
99
|
inject: {
|
|
103
100
|
elForm: {
|
|
@@ -145,17 +142,17 @@ const T = {
|
|
|
145
142
|
get() {
|
|
146
143
|
var t, s;
|
|
147
144
|
if (this.arrayMode)
|
|
148
|
-
return (t = this.value) != null && t.length ? this.objectMode ? this.value.map((e) => e.id > 0 ? e : c(
|
|
145
|
+
return (t = this.value) != null && t.length ? this.objectMode ? this.value.map((e) => e.id > 0 ? e : c(d({}, e), { id: Math.random() })) : this.value : [];
|
|
149
146
|
{
|
|
150
147
|
const e = ((s = this.value) == null ? void 0 : s.split(this.separator)) || [];
|
|
151
|
-
return e.length && e[0] ? e.map((
|
|
148
|
+
return e.length && e[0] ? e.map((a) => this.objectMode ? { name: a, id: Math.random() } : a) : [];
|
|
152
149
|
}
|
|
153
150
|
}
|
|
154
151
|
}
|
|
155
152
|
},
|
|
156
153
|
methods: {
|
|
157
154
|
showInput() {
|
|
158
|
-
return
|
|
155
|
+
return r(this, null, function* () {
|
|
159
156
|
this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
|
|
160
157
|
});
|
|
161
158
|
},
|
|
@@ -164,7 +161,7 @@ const T = {
|
|
|
164
161
|
this.$emit("input", this.arrayMode ? s : s.map((e) => e.name || e).join(this.separator));
|
|
165
162
|
},
|
|
166
163
|
handleInputConfirm() {
|
|
167
|
-
return
|
|
164
|
+
return r(this, null, function* () {
|
|
168
165
|
var s;
|
|
169
166
|
if (this.tags.length >= this.maxTag) {
|
|
170
167
|
this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
|
|
@@ -172,35 +169,35 @@ const T = {
|
|
|
172
169
|
}
|
|
173
170
|
const t = this.inputValue;
|
|
174
171
|
if (t) {
|
|
175
|
-
if (this.tags.some((
|
|
172
|
+
if (this.tags.some((a) => (a.name || a) === t)) {
|
|
176
173
|
this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
|
|
177
174
|
return;
|
|
178
175
|
}
|
|
179
176
|
const e = [...this.tags];
|
|
180
|
-
e.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? e : e.map((
|
|
177
|
+
e.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? e : e.map((a) => a.name || a).join(this.separator)), yield this.$nextTick(), (s = this.elFormItem) == null || s.clearValidate();
|
|
181
178
|
}
|
|
182
179
|
this.inputVisible = !1, this.inputValue = "";
|
|
183
180
|
});
|
|
184
181
|
}
|
|
185
182
|
}
|
|
186
|
-
},
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
}, m = {};
|
|
184
|
+
var I = /* @__PURE__ */ V(
|
|
185
|
+
C,
|
|
186
|
+
w,
|
|
187
|
+
x,
|
|
191
188
|
!1,
|
|
192
|
-
|
|
189
|
+
T,
|
|
193
190
|
null,
|
|
194
191
|
null,
|
|
195
192
|
null
|
|
196
193
|
);
|
|
197
|
-
function
|
|
198
|
-
for (let s in
|
|
199
|
-
this[s] =
|
|
194
|
+
function T(t) {
|
|
195
|
+
for (let s in m)
|
|
196
|
+
this[s] = m[s];
|
|
200
197
|
}
|
|
201
|
-
const
|
|
202
|
-
return
|
|
198
|
+
const j = /* @__PURE__ */ function() {
|
|
199
|
+
return I.exports;
|
|
203
200
|
}();
|
|
204
201
|
export {
|
|
205
|
-
|
|
202
|
+
j as default
|
|
206
203
|
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import "@web-utils/component/fy-u-editor/style.css";
|
|
2
|
-
import { b as a, d as u } from "./dataformat.e655611c.mjs";
|
|
3
|
-
import { s as p } from "./slot.4b391395.mjs";
|
|
4
|
-
import { u as s } from "./util.ae730cde.mjs";
|
|
5
|
-
import { n as m } from "./vueComponentNormalizer.446f5dc4.mjs";
|
|
6
|
-
var c = function() {
|
|
7
|
-
var e = this, n = e.$createElement, o = e._self._c || n;
|
|
8
|
-
return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
|
|
9
|
-
ref: "temp",
|
|
10
|
-
tag: "Component",
|
|
11
|
-
attrs: {
|
|
12
|
-
column: Object.assign(e.column, e.params),
|
|
13
|
-
dic: e.dic,
|
|
14
|
-
disabled: e.column.disabled || e.disabled,
|
|
15
|
-
readonly: e.column.readonly || e.readonly,
|
|
16
|
-
placeholder: e.getPlaceholder(e.column),
|
|
17
|
-
props: e.column.props || e.props,
|
|
18
|
-
"props-http": e.column.propsHttp || e.propsHttp,
|
|
19
|
-
size: e.column.size || e.size,
|
|
20
|
-
"table-data": e.tableData,
|
|
21
|
-
type: e.type || e.column.type,
|
|
22
|
-
"column-slot": e.columnSlot
|
|
23
|
-
},
|
|
24
|
-
nativeOn: {
|
|
25
|
-
keyup: function(t) {
|
|
26
|
-
return !t.type.indexOf("key") && e._k(t.keyCode, "enter", 13, t.key, "Enter") ? null : e.enterChange.apply(null, arguments);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
scopedSlots: e._u([e._l(e.columnSlot, function(t) {
|
|
30
|
-
return {
|
|
31
|
-
key: t,
|
|
32
|
-
fn: function(l) {
|
|
33
|
-
return [e._t(t, null, null, l)];
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
})], null, !0),
|
|
37
|
-
model: {
|
|
38
|
-
value: e.text,
|
|
39
|
-
callback: function(t) {
|
|
40
|
-
e.text = t;
|
|
41
|
-
},
|
|
42
|
-
expression: "text"
|
|
43
|
-
}
|
|
44
|
-
}, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? o("span", {
|
|
45
|
-
domProps: {
|
|
46
|
-
innerHTML: e._s(e.params.html)
|
|
47
|
-
}
|
|
48
|
-
}) : e._e()]);
|
|
49
|
-
}, i = [];
|
|
50
|
-
const d = {
|
|
51
|
-
name: "FormTemp",
|
|
52
|
-
components: { FyUEditor: () => import("@web-utils/component/fy-u-editor") },
|
|
53
|
-
mixins: [p],
|
|
54
|
-
props: {
|
|
55
|
-
value: [String, Object, Number, Boolean, Array],
|
|
56
|
-
columnSlot: {
|
|
57
|
-
type: Array,
|
|
58
|
-
default: () => []
|
|
59
|
-
},
|
|
60
|
-
tableData: {
|
|
61
|
-
type: Object,
|
|
62
|
-
default: () => ({})
|
|
63
|
-
},
|
|
64
|
-
enter: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: !1
|
|
67
|
-
},
|
|
68
|
-
type: {
|
|
69
|
-
type: String
|
|
70
|
-
},
|
|
71
|
-
propsHttp: {
|
|
72
|
-
type: Object,
|
|
73
|
-
default: () => ({})
|
|
74
|
-
},
|
|
75
|
-
props: {
|
|
76
|
-
type: Object
|
|
77
|
-
},
|
|
78
|
-
dic: {
|
|
79
|
-
type: Array
|
|
80
|
-
},
|
|
81
|
-
size: {
|
|
82
|
-
type: String
|
|
83
|
-
},
|
|
84
|
-
disabled: {
|
|
85
|
-
type: Boolean
|
|
86
|
-
},
|
|
87
|
-
readonly: {
|
|
88
|
-
type: Boolean
|
|
89
|
-
},
|
|
90
|
-
column: {
|
|
91
|
-
type: Object,
|
|
92
|
-
default: () => ({})
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
computed: {
|
|
96
|
-
params() {
|
|
97
|
-
return this.column.params || {};
|
|
98
|
-
},
|
|
99
|
-
event() {
|
|
100
|
-
return this.column.event || {};
|
|
101
|
-
},
|
|
102
|
-
text: {
|
|
103
|
-
get() {
|
|
104
|
-
return this.value;
|
|
105
|
-
},
|
|
106
|
-
set(e) {
|
|
107
|
-
this.$emit("input", e), this.$emit("change", e);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
methods: {
|
|
112
|
-
uploadFun: s,
|
|
113
|
-
getComponent: a,
|
|
114
|
-
getPlaceholder: u,
|
|
115
|
-
enterChange() {
|
|
116
|
-
typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}, r = {};
|
|
120
|
-
var y = /* @__PURE__ */ m(
|
|
121
|
-
d,
|
|
122
|
-
c,
|
|
123
|
-
i,
|
|
124
|
-
!1,
|
|
125
|
-
f,
|
|
126
|
-
null,
|
|
127
|
-
null,
|
|
128
|
-
null
|
|
129
|
-
);
|
|
130
|
-
function f(e) {
|
|
131
|
-
for (let n in r)
|
|
132
|
-
this[n] = r[n];
|
|
133
|
-
}
|
|
134
|
-
const x = /* @__PURE__ */ function() {
|
|
135
|
-
return y.exports;
|
|
136
|
-
}();
|
|
137
|
-
export {
|
|
138
|
-
x as default
|
|
139
|
-
};
|
|
@@ -1,197 +0,0 @@
|
|
|
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,29 +0,0 @@
|
|
|
1
|
-
import { isBlank as Y } from "@web-utils/core";
|
|
2
|
-
import { formatDate as f } from "@web-utils/integrations/dayjs";
|
|
3
|
-
import { p as D, M as I, A as L, b as y, q as _, e as S, k as n, t as $, h as b, v as h } from "./util.ae730cde.mjs";
|
|
4
|
-
const R = (r = {}, t = {}, l = {}, A = []) => {
|
|
5
|
-
let e = r[t.prop];
|
|
6
|
-
const a = t.type, s = t.separator;
|
|
7
|
-
if (t.bind && (e = D(r, t.bind)), Y(e))
|
|
8
|
-
e = "";
|
|
9
|
-
else {
|
|
10
|
-
const g = I.includes(t.type) && t.multiple, T = L.includes(t.type);
|
|
11
|
-
if ((["string", "number"].includes(t.dataType) || g || T) && !Array.isArray(e) && (e = `${e}`.split(s || y), t.dataType === "number" && (e = _(e))), S.includes(a))
|
|
12
|
-
Array.isArray(e) ? e = e.join(s || n) : e = e.split(s || y).join(s || n);
|
|
13
|
-
else if (a === "password")
|
|
14
|
-
e = $(e, "*");
|
|
15
|
-
else if (b.includes(a) && t.format) {
|
|
16
|
-
const d = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), o = f(Date.now(), "YYYY-MM-DD");
|
|
17
|
-
if (a.indexOf("range") !== -1) {
|
|
18
|
-
let i = e[0] || "", p = e[1] || "";
|
|
19
|
-
a === "timerange" && i.length <= 8 && p.length < 8 && (i = `${o} ${i}`, p = `${o} ${p}`), e = [f(i, d), f(p, d)].join(t.separator || "~");
|
|
20
|
-
} else
|
|
21
|
-
a === "time" && e.length <= 8 && (e = `${o} ${e}`), e = f(e, d);
|
|
22
|
-
}
|
|
23
|
-
e = h(A, e, t.props || l.props);
|
|
24
|
-
}
|
|
25
|
-
return t.formatter && typeof t.formatter == "function" && (e = t.formatter(r, r[t.prop], e, t)), e;
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
R as d
|
|
29
|
-
};
|