@web-utils/component 3.4.6 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chat/index.mjs +1 -1
- package/chunks/{FormTemp.CJOJOy8K.mjs → FormTemp.BSpnNput.mjs} +4 -4
- package/chunks/confirmable-mixin.D4LAArE5.mjs +114 -0
- package/chunks/{dataformat.ARPY2U57.mjs → dataformat.B9UvztrQ.mjs} +7 -7
- package/chunks/{dic.DBmh9yzU.mjs → dic.CET0XdKP.mjs} +3 -3
- package/chunks/{event.mRPNW7Cx.mjs → event.BT1F_1vF.mjs} +6 -6
- package/chunks/{form-input-mixin.DMuQta5I.mjs → form-input-mixin.BkKiqJhi.mjs} +2 -2
- package/chunks/{form-item-mixin.CdcqXa2h.mjs → form-item-mixin.CG4ZwzMC.mjs} +1 -1
- package/chunks/{index.DwCBGcYk.mjs → index.MAFc4eFi.mjs} +4 -4
- package/chunks/{init.CauLYxJq.mjs → init.ofpxEyAI.mjs} +8 -8
- package/chunks/{util.BaRFvfAi.mjs → util.CoahLDYn.mjs} +7 -7
- package/code-mirror-editor/index.mjs +45 -45
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/dialog-form/index.mjs +1 -1
- package/e-charts/index.mjs +3 -3
- package/editable-tree/index.mjs +13 -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 +1 -1
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/form-cascader/index.mjs +5 -5
- package/form-checkbox-group/index.mjs +2 -2
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +2 -2
- package/form-input-email/index.mjs +2 -2
- package/form-input-id-card/index.mjs +2 -2
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +2 -2
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +2 -2
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +2 -2
- package/form-select/index.mjs +2 -2
- package/form-switch/index.mjs +2 -2
- package/form-textarea/index.mjs +2 -2
- package/form-view/index.mjs +3 -3
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +9 -9
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +14 -14
- package/fy-form-design/index.mjs +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +1 -1
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/package.json +15 -15
- package/page-index/index.mjs +1 -1
- package/page-index-top/index.mjs +1 -1
- package/pageable-table/index.mjs +3 -3
- package/pageable-view/index.mjs +3 -3
- package/present-view/index.mjs +3 -3
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +4 -4
- package/sign/index.mjs +1 -1
- package/table-view/index.mjs +6 -6
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/vue-tree-select/style.css +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +4 -4
- package/chunks/confirmable-mixin.D2KW-Qlc.mjs +0 -116
|
@@ -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
|
-
};
|