@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/x-input-tag/index.mjs
CHANGED
|
@@ -1,33 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var p = Object.getOwnPropertySymbols;
|
|
4
|
-
var _ = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var h = (a, t, e) => t in a ? g(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, d = (a, t) => {
|
|
6
|
-
for (var e in t || (t = {}))
|
|
7
|
-
_.call(t, e) && h(a, e, t[e]);
|
|
8
|
-
if (p)
|
|
9
|
-
for (var e of p(t))
|
|
10
|
-
v.call(t, e) && h(a, e, t[e]);
|
|
11
|
-
return a;
|
|
12
|
-
}, m = (a, t) => f(a, b(t));
|
|
13
|
-
var u = (a, t, e) => new Promise((s, n) => {
|
|
14
|
-
var o = (i) => {
|
|
15
|
-
try {
|
|
16
|
-
l(e.next(i));
|
|
17
|
-
} catch (r) {
|
|
18
|
-
n(r);
|
|
19
|
-
}
|
|
20
|
-
}, c = (i) => {
|
|
21
|
-
try {
|
|
22
|
-
l(e.throw(i));
|
|
23
|
-
} catch (r) {
|
|
24
|
-
n(r);
|
|
25
|
-
}
|
|
26
|
-
}, l = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, c);
|
|
27
|
-
l((e = e.apply(a, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
30
|
-
const V = {
|
|
1
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const l = {
|
|
31
3
|
name: "XInputTag",
|
|
32
4
|
inject: {
|
|
33
5
|
elForm: {
|
|
@@ -75,7 +47,7 @@ const V = {
|
|
|
75
47
|
get() {
|
|
76
48
|
var a, t;
|
|
77
49
|
if (this.arrayMode)
|
|
78
|
-
return (a = this.value) != null && a.length ? this.objectMode ? this.value.map((e) => e.id > 0 ? e :
|
|
50
|
+
return (a = this.value) != null && a.length ? this.objectMode ? this.value.map((e) => e.id > 0 ? e : { ...e, id: Math.random() }) : this.value : [];
|
|
79
51
|
{
|
|
80
52
|
const e = ((t = this.value) == null ? void 0 : t.split(this.separator)) || [];
|
|
81
53
|
return e.length && e[0] ? e.map((s) => this.objectMode ? { name: s, id: Math.random() } : s) : [];
|
|
@@ -84,56 +56,52 @@ const V = {
|
|
|
84
56
|
}
|
|
85
57
|
},
|
|
86
58
|
methods: {
|
|
87
|
-
showInput() {
|
|
88
|
-
|
|
89
|
-
this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
|
|
90
|
-
});
|
|
59
|
+
async showInput() {
|
|
60
|
+
this.inputVisible = !0, await this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
|
|
91
61
|
},
|
|
92
62
|
handleClose(a) {
|
|
93
63
|
const t = this.tags.filter((e) => e !== a);
|
|
94
64
|
this.$emit("input", this.arrayMode ? t : t.map((e) => e.name || e).join(this.separator));
|
|
95
65
|
},
|
|
96
|
-
handleInputConfirm() {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
66
|
+
async handleInputConfirm() {
|
|
67
|
+
var t;
|
|
68
|
+
if (this.tags.length >= this.maxTag) {
|
|
69
|
+
this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const a = this.inputValue;
|
|
73
|
+
if (a) {
|
|
74
|
+
if (this.tags.some((s) => (s.name || s) === a)) {
|
|
75
|
+
this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
|
|
101
76
|
return;
|
|
102
77
|
}
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
const e = [...this.tags];
|
|
110
|
-
e.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? e : e.map((s) => s.name || s).join(this.separator)), yield this.$nextTick(), (t = this.elFormItem) == null || t.clearValidate();
|
|
111
|
-
}
|
|
112
|
-
this.inputVisible = !1, this.inputValue = "";
|
|
113
|
-
});
|
|
78
|
+
const e = [...this.tags];
|
|
79
|
+
e.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? e : e.map((s) => s.name || s).join(this.separator)), await this.$nextTick(), (t = this.elFormItem) == null || t.clearValidate();
|
|
80
|
+
}
|
|
81
|
+
this.inputVisible = !1, this.inputValue = "";
|
|
114
82
|
}
|
|
115
83
|
}
|
|
116
84
|
};
|
|
117
|
-
var
|
|
85
|
+
var r = function() {
|
|
118
86
|
var t = this, e = t._self._c;
|
|
119
|
-
return e("div", { staticClass: "x-input-tag" }, [t.tags && t.tags.length && t.tags[0] ? t._l(t.tags, function(s,
|
|
120
|
-
return e("ElTag", { key: s.id || s, attrs: { size: "medium", "disable-transitions": "", closable: !t.inputDisabled }, on: { close: function(
|
|
121
|
-
return t.handleClose(s,
|
|
87
|
+
return e("div", { staticClass: "x-input-tag" }, [t.tags && t.tags.length && t.tags[0] ? t._l(t.tags, function(s, i) {
|
|
88
|
+
return e("ElTag", { key: s.id || s, attrs: { size: "medium", "disable-transitions": "", closable: !t.inputDisabled }, on: { close: function(p) {
|
|
89
|
+
return t.handleClose(s, i);
|
|
122
90
|
} } }, [t._v(" " + t._s(s.name || s) + " ")]);
|
|
123
91
|
}) : t.inputDisabled ? [e("span", { staticStyle: { color: "#b5b5b5" } }, [t._v("无")])] : t._e(), t.inputDisabled ? t._e() : e("ElInput", { directives: [{ name: "show", rawName: "v-show", value: t.inputVisible, expression: "inputVisible" }], ref: "saveTagInput", staticClass: "input-new-tag", attrs: { size: "mini" }, on: { blur: t.handleInputConfirm }, nativeOn: { keyup: function(s) {
|
|
124
92
|
return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : t.handleInputConfirm.apply(null, arguments);
|
|
125
93
|
} }, model: { value: t.inputValue, callback: function(s) {
|
|
126
94
|
t.inputValue = s;
|
|
127
95
|
}, expression: "inputValue" } }), !t.inputDisabled && !t.inputVisible ? e("ElButton", { directives: [{ name: "show", rawName: "v-show", value: t.tags.length < t.maxTag, expression: "tags.length < maxTag" }], staticClass: "button-new-tag", attrs: { size: "mini" }, on: { click: t.showInput } }, [t._v(" + 添加 ")]) : t._e(), t.count ? e("span", { staticClass: "tags-count" }, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
96
|
+
}, u = [], o = /* @__PURE__ */ n(
|
|
97
|
+
l,
|
|
98
|
+
r,
|
|
99
|
+
u,
|
|
132
100
|
!1,
|
|
133
101
|
null,
|
|
134
102
|
null
|
|
135
103
|
);
|
|
136
|
-
const
|
|
104
|
+
const d = o.exports;
|
|
137
105
|
export {
|
|
138
|
-
|
|
106
|
+
d as default
|
|
139
107
|
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
var C = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
-
var F = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var b = Object.getOwnPropertySymbols;
|
|
4
|
-
var I = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var T = (e, t, i) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, S = (e, t) => {
|
|
6
|
-
for (var i in t || (t = {}))
|
|
7
|
-
I.call(t, i) && T(e, i, t[i]);
|
|
8
|
-
if (b)
|
|
9
|
-
for (var i of b(t))
|
|
10
|
-
L.call(t, i) && T(e, i, t[i]);
|
|
11
|
-
return e;
|
|
12
|
-
}, w = (e, t) => D(e, F(t));
|
|
13
|
-
var v = (e, t, i) => new Promise((r, n) => {
|
|
14
|
-
var o = (a) => {
|
|
15
|
-
try {
|
|
16
|
-
f(i.next(a));
|
|
17
|
-
} catch (l) {
|
|
18
|
-
n(l);
|
|
19
|
-
}
|
|
20
|
-
}, c = (a) => {
|
|
21
|
-
try {
|
|
22
|
-
f(i.throw(a));
|
|
23
|
-
} catch (l) {
|
|
24
|
-
n(l);
|
|
25
|
-
}
|
|
26
|
-
}, f = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(o, c);
|
|
27
|
-
f((i = i.apply(e, t)).next());
|
|
28
|
-
});
|
|
29
|
-
import B from "element-ui/lib/loading";
|
|
30
|
-
import k from "element-ui/lib/message-box";
|
|
31
|
-
import { isFunction as s } from "@web-utils/core";
|
|
32
|
-
function P(e, t, i) {
|
|
33
|
-
return v(this, null, function* () {
|
|
34
|
-
const { stop: r, prevent: n, message: o, loadable: c, loadingText: f, confirmable: a, confirmType: l, confirmText: h, confirmTitle: M } = t;
|
|
35
|
-
r && e.stopPropagation(), n && e.preventDefault();
|
|
36
|
-
const { before: g, click: m, cancel: p, after: d } = i;
|
|
37
|
-
if (s(m))
|
|
38
|
-
try {
|
|
39
|
-
let u = !0;
|
|
40
|
-
if (s(g) && (u = yield g(e)), u === !1)
|
|
41
|
-
return;
|
|
42
|
-
a && (yield (k.confirm || k.default.confirm)(o || h, {
|
|
43
|
-
type: l,
|
|
44
|
-
title: M
|
|
45
|
-
}));
|
|
46
|
-
let y;
|
|
47
|
-
c && (y = (B.service || B.default.service)({
|
|
48
|
-
background: "rgba(0,0,0,0.3)",
|
|
49
|
-
text: f
|
|
50
|
-
}));
|
|
51
|
-
let x;
|
|
52
|
-
try {
|
|
53
|
-
x = yield m(e);
|
|
54
|
-
} catch (j) {
|
|
55
|
-
}
|
|
56
|
-
c && y.close(), s(d) && (yield d(e, x));
|
|
57
|
-
} catch (u) {
|
|
58
|
-
s(p) && (yield p(u));
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
const G = {
|
|
63
|
-
functional: !0,
|
|
64
|
-
props: {
|
|
65
|
-
stop: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: !0
|
|
68
|
-
},
|
|
69
|
-
prevent: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: !0
|
|
72
|
-
},
|
|
73
|
-
text: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: ""
|
|
76
|
-
},
|
|
77
|
-
message: String,
|
|
78
|
-
confirmable: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !0
|
|
81
|
-
},
|
|
82
|
-
confirmText: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: "你确定要删除该记录吗?"
|
|
85
|
-
},
|
|
86
|
-
confirmType: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: "warning"
|
|
89
|
-
},
|
|
90
|
-
confirmTitle: String,
|
|
91
|
-
loadable: Boolean,
|
|
92
|
-
loadingText: {
|
|
93
|
-
type: String,
|
|
94
|
-
default: "正在处理中请稍候..."
|
|
95
|
-
},
|
|
96
|
-
tag: {
|
|
97
|
-
type: String,
|
|
98
|
-
default: "i"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
render(e, { props: t, data: i, children: r, listeners: n }) {
|
|
102
|
-
return e(
|
|
103
|
-
t.tag,
|
|
104
|
-
w(S({}, i), {
|
|
105
|
-
on: { click: (o) => P(o, t, n) },
|
|
106
|
-
props: t
|
|
107
|
-
}),
|
|
108
|
-
r || t.text
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
export {
|
|
113
|
-
G as c
|
|
114
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { f as e } from "./form-item-mixin.CG4ZwzMC.mjs";
|
|
2
|
-
import { d as r } from "./index.MAFc4eFi.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.MAFc4eFi.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
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
const t = {
|
|
2
|
-
props: {
|
|
3
|
-
suffixIcon: {
|
|
4
|
-
type: String
|
|
5
|
-
},
|
|
6
|
-
prefixIcon: {
|
|
7
|
-
type: String
|
|
8
|
-
},
|
|
9
|
-
step: {
|
|
10
|
-
type: Number,
|
|
11
|
-
default: 1
|
|
12
|
-
},
|
|
13
|
-
stepStrictly: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !1
|
|
16
|
-
},
|
|
17
|
-
max: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: 1 / 0
|
|
20
|
-
},
|
|
21
|
-
min: {
|
|
22
|
-
type: Number,
|
|
23
|
-
default: -1 / 0
|
|
24
|
-
},
|
|
25
|
-
value: {
|
|
26
|
-
type: [Number, String]
|
|
27
|
-
},
|
|
28
|
-
disabled: Boolean,
|
|
29
|
-
size: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
controls: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !0
|
|
35
|
-
},
|
|
36
|
-
controlsPosition: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: ""
|
|
39
|
-
},
|
|
40
|
-
name: {
|
|
41
|
-
type: String
|
|
42
|
-
},
|
|
43
|
-
label: {
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
placeholder: {
|
|
47
|
-
type: String
|
|
48
|
-
},
|
|
49
|
-
precision: {
|
|
50
|
-
type: Number,
|
|
51
|
-
default: void 0,
|
|
52
|
-
validator(e) {
|
|
53
|
-
return e >= 0 && e === parseInt(e, 10);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
t as i
|
|
60
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty, a = Object.defineProperties;
|
|
2
|
-
var x = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var r = Object.getOwnPropertySymbols;
|
|
4
|
-
var d = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var f = (e, i, t) => i in e ? c(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, s = (e, i) => {
|
|
6
|
-
for (var t in i || (i = {}))
|
|
7
|
-
d.call(i, t) && f(e, t, i[t]);
|
|
8
|
-
if (r)
|
|
9
|
-
for (var t of r(i))
|
|
10
|
-
m.call(i, t) && f(e, t, i[t]);
|
|
11
|
-
return e;
|
|
12
|
-
}, o = (e, i) => a(e, x(i));
|
|
13
|
-
import { fastClone as L } from "@web-utils/core";
|
|
14
|
-
function l(e) {
|
|
15
|
-
let i = s({}, e);
|
|
16
|
-
if (e.script && (i = o(s(s({}, e), e.script), {
|
|
17
|
-
scriptType: e.script.resource ? "externalScript" : "inlineScript"
|
|
18
|
-
})), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
|
|
19
|
-
let t = "";
|
|
20
|
-
for (const n in e.eventDefinitions[0])
|
|
21
|
-
n.indexOf("time") !== -1 && (t = n, i.eventDefinitionType = n.replace("time", "").toLowerCase());
|
|
22
|
-
i.eventTimeDefinitions = e.eventDefinitions[0][t].body;
|
|
23
|
-
}
|
|
24
|
-
return i;
|
|
25
|
-
}
|
|
26
|
-
function v(e) {
|
|
27
|
-
var t, n;
|
|
28
|
-
let i;
|
|
29
|
-
return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), o(s(s({}, L(e)), (t = e.script) != null ? t : {}), {
|
|
30
|
-
fields: (n = e.fields) == null ? void 0 : n.map((p) => o(s({}, p), { fieldType: p.expression ? "expression" : "string" })),
|
|
31
|
-
listenerType: i
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
const g = {
|
|
35
|
-
classListener: "Java 类",
|
|
36
|
-
expressionListener: "表达式",
|
|
37
|
-
delegateExpressionListener: "代理表达式",
|
|
38
|
-
scriptListener: "脚本"
|
|
39
|
-
}, u = {
|
|
40
|
-
create: "创建",
|
|
41
|
-
assignment: "指派",
|
|
42
|
-
complete: "完成",
|
|
43
|
-
delete: "删除",
|
|
44
|
-
update: "更新",
|
|
45
|
-
timeout: "超时"
|
|
46
|
-
}, D = {
|
|
47
|
-
string: "字符串",
|
|
48
|
-
expression: "表达式"
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
v as a,
|
|
52
|
-
u as e,
|
|
53
|
-
D as f,
|
|
54
|
-
l as i,
|
|
55
|
-
g as l
|
|
56
|
-
};
|
package/toolbar-button/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.form-toolbar-button .separate-line{vertical-align:middle;background-color:#aaa;width:1px;height:18px;margin:0 10px;display:inline-block}.form-toolbar-button .form-toolbar-button .el-button{align-items:center;display:inline-flex}.form-toolbar-button .form-toolbar-button .el-button:hover{border-color:transparent}
|
|
File without changes
|