@web-utils/component 2.0.9 → 2.0.11
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/dist/chunks/3d28cc08.js +57 -0
- package/dist/chunks/{41a066be.js → 44b78389.js} +8 -8
- package/dist/chunks/5d33812d.js +147 -0
- package/dist/chunks/{61ad06b2.js → 822300f3.js} +3 -3
- package/dist/chunks/9d848bf6.js +99 -0
- package/dist/chunks/a0bb327b.js +96 -0
- package/dist/chunks/a8891d2c.js +30 -0
- package/dist/chunks/c69d5628.js +248 -0
- package/dist/chunks/de9fe802.js +24 -0
- package/dist/chunks/{5a78e0db.js → e1939731.js} +6 -5
- package/dist/components/address-input/index.js +56 -43
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/aside-menu/index.js +36 -30
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/awesome-button/index.js +35 -32
- package/dist/components/base.css +66 -1
- package/dist/components/capsule-tab/index.js +33 -27
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/chunk-file-uploader/index.js +88 -54
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +31 -25
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +42 -28
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +212 -134
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +34 -28
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +35 -29
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +38 -30
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +181 -153
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +68 -49
- package/dist/components/confirm-button/index.js +21 -19
- package/dist/components/confirmable/index.js +19 -18
- package/dist/components/context-menu/index.js +130 -108
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/custom-scrollbar/index.js +67 -49
- package/dist/components/data-table-picker/index.js +81 -62
- package/dist/components/dynamic-table/index.js +113 -89
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +201 -120
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/editable-progress/index.js +93 -60
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +638 -423
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +46 -33
- package/dist/components/egd-collapse-item/index.js +76 -60
- package/dist/components/element-dialog/index.js +147 -95
- package/dist/components/element-dialog/style.css +102 -1
- package/dist/components/empty-view/index.js +34 -28
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +32 -26
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +40 -25
- package/dist/components/flex-item/index.js +57 -29
- package/dist/components/flex-row/index.js +40 -25
- package/dist/components/flex-scroller/index.js +32 -26
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/form-button/index.js +38 -34
- package/dist/components/form-cascader/index.js +81 -71
- package/dist/components/form-checkbox-group/index.js +113 -88
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +132 -70
- package/dist/components/form-holder/index.js +39 -32
- package/dist/components/form-input/index.js +62 -56
- package/dist/components/form-input-email/index.js +60 -48
- package/dist/components/form-input-id-card/index.js +59 -53
- package/dist/components/form-input-number/index.js +68 -61
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +55 -49
- package/dist/components/form-input-time/index.js +59 -53
- package/dist/components/form-item/index.js +123 -80
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +26 -25
- package/dist/components/form-item-group/index.js +111 -85
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +104 -85
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +91 -76
- package/dist/components/form-switch/index.js +57 -51
- package/dist/components/form-textarea/index.js +57 -51
- package/dist/components/form-view/index.js +232 -165
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/guide-steps/index.js +58 -44
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/icon-card/index.js +35 -29
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/iframe-window/index.js +35 -29
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-viewer/index.js +66 -48
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +193 -127
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +57 -45
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +120 -73
- package/dist/components/loading-view/index.js +32 -26
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/nav-bar/index.js +37 -27
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +31 -23
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/page/index.js +28 -22
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +36 -30
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +83 -62
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +68 -53
- package/dist/components/page-skeleton/index.js +37 -31
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +48 -42
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +253 -186
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +199 -129
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +151 -110
- package/dist/components/photo-swipe/style.css +20 -1
- package/dist/components/resize-observer/index.js +68 -34
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search-popover/index.js +211 -153
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign-panel/index.js +142 -92
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/split-pane/index.js +162 -101
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +34 -31
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +44 -37
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +150 -85
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +72 -54
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +35 -30
- package/dist/components/table-column/index.js +32 -30
- package/dist/components/table-view/index.js +227 -156
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +58 -44
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/tinymce-editor/index.js +95 -79
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +121 -92
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +84 -63
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +48 -41
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +36 -29
- package/dist/components/vue-tags-input/index.js +308 -188
- package/dist/components/vue-tags-input/style.css +682 -1
- package/dist/components/watermark/index.js +37 -25
- package/dist/components/watermark/style.css +11 -1
- package/dist/components/x-dialog/index.js +93 -67
- package/dist/components/x-dialog/style.css +15 -1
- package/dist/index.css +1105 -193
- package/dist/index.es.js +7242 -4789
- package/package.json +2 -1
- package/web-types.json +1 -1
- package/dist/chunks/3a79781b.js +0 -75
- package/dist/chunks/5d4282fb.js +0 -30
- package/dist/chunks/76680a03.js +0 -24
- package/dist/chunks/8c0142e0.js +0 -81
- package/dist/chunks/97652d86.js +0 -26
- package/dist/chunks/b4acd3a6.js +0 -126
- package/dist/chunks/f71045fc.js +0 -184
package/package.json
CHANGED
package/web-types.json
CHANGED
package/dist/chunks/3a79781b.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { MessageBox as b, Loading as w } from "element-ui";
|
|
2
|
-
import { isFunction as i } from "@web-utils/core";
|
|
3
|
-
async function S(t, e, n) {
|
|
4
|
-
const { stop: o, prevent: r, message: f, loadable: l, loadingText: d, confirmable: y, confirmType: m, confirmText: x } = e;
|
|
5
|
-
o && t.stopPropagation(), r && t.preventDefault();
|
|
6
|
-
const { before: c, click: u, cancel: g, after: p } = n;
|
|
7
|
-
if (i(u))
|
|
8
|
-
try {
|
|
9
|
-
let a = !0;
|
|
10
|
-
if (i(c) && (a = await c(t)), a === !1)
|
|
11
|
-
return;
|
|
12
|
-
y && await b.confirm(f || x, { type: m });
|
|
13
|
-
let s;
|
|
14
|
-
l && (s = w.service({ background: "rgba(0,0,0,0.3)", text: d }));
|
|
15
|
-
try {
|
|
16
|
-
await u(t);
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
19
|
-
l && s.close(), i(p) && await p(t);
|
|
20
|
-
} catch (a) {
|
|
21
|
-
i(g) && await g(a);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const v = {
|
|
25
|
-
functional: !0,
|
|
26
|
-
props: {
|
|
27
|
-
stop: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: !0
|
|
30
|
-
},
|
|
31
|
-
prevent: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
text: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ""
|
|
38
|
-
},
|
|
39
|
-
message: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "你确定要删除该记录吗?"
|
|
42
|
-
},
|
|
43
|
-
confirmable: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !0
|
|
46
|
-
},
|
|
47
|
-
confirmText: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "你确定要删除该记录吗?"
|
|
50
|
-
},
|
|
51
|
-
confirmType: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: "warning"
|
|
54
|
-
},
|
|
55
|
-
loadable: Boolean,
|
|
56
|
-
loadingText: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: "正在处理中请稍候..."
|
|
59
|
-
},
|
|
60
|
-
tag: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: "i"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
render(t, { props: e, data: n, children: o, listeners: r }) {
|
|
66
|
-
return t(e.tag, {
|
|
67
|
-
...n,
|
|
68
|
-
on: { click: (f) => S(f, e, r) },
|
|
69
|
-
props: e
|
|
70
|
-
}, o || e.text);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
v as c
|
|
75
|
-
};
|
package/dist/chunks/5d4282fb.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function v(r, a, d, h, i, t, f, u) {
|
|
2
|
-
var e = typeof r == "function" ? r.options : r;
|
|
3
|
-
a && (e.render = a, e.staticRenderFns = d, e._compiled = !0), h && (e.functional = !0), t && (e._scopeId = "data-v-" + t);
|
|
4
|
-
var o;
|
|
5
|
-
if (f ? (o = function(n) {
|
|
6
|
-
n = n || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
|
|
7
|
-
}, e._ssrRegister = o) : i && (o = u ? function() {
|
|
8
|
-
i.call(
|
|
9
|
-
this,
|
|
10
|
-
(e.functional ? this.parent : this).$root.$options.shadowRoot
|
|
11
|
-
);
|
|
12
|
-
} : i), o)
|
|
13
|
-
if (e.functional) {
|
|
14
|
-
e._injectStyles = o;
|
|
15
|
-
var l = e.render;
|
|
16
|
-
e.render = function(p, _) {
|
|
17
|
-
return o.call(_), l(p, _);
|
|
18
|
-
};
|
|
19
|
-
} else {
|
|
20
|
-
var s = e.beforeCreate;
|
|
21
|
-
e.beforeCreate = s ? [].concat(s, o) : [o];
|
|
22
|
-
}
|
|
23
|
-
return {
|
|
24
|
-
exports: r,
|
|
25
|
-
options: e
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
v as n
|
|
30
|
-
};
|
package/dist/chunks/76680a03.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { f as e } from "./b4acd3a6.js";
|
|
2
|
-
import { i as r } from "./f71045fc.js";
|
|
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
|
-
};
|
package/dist/chunks/8c0142e0.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
const n = {
|
|
2
|
-
mounted() {
|
|
3
|
-
this.value >= 0 && (this.currentIndex = this.value), this.updateIndex();
|
|
4
|
-
},
|
|
5
|
-
methods: {
|
|
6
|
-
updateIndex() {
|
|
7
|
-
if (!this.$children || !this.$children.length)
|
|
8
|
-
return;
|
|
9
|
-
this.number = this.$children.length;
|
|
10
|
-
const e = this.$children;
|
|
11
|
-
for (let t = 0; t < e.length; t++)
|
|
12
|
-
e[t].currentIndex = t, e[t].currentSelected && (this.index = t);
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
props: {
|
|
16
|
-
value: Number
|
|
17
|
-
},
|
|
18
|
-
watch: {
|
|
19
|
-
currentIndex(e, t) {
|
|
20
|
-
t > -1 && this.$children[t] && (this.$children[t].currentSelected = !1), e > -1 && this.$children[e] && (this.$children[e].currentSelected = !0), this.$emit("input", e), this.$emit("on-index-change", e, t);
|
|
21
|
-
},
|
|
22
|
-
index(e) {
|
|
23
|
-
this.currentIndex = e;
|
|
24
|
-
},
|
|
25
|
-
value(e) {
|
|
26
|
-
this.index = e;
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
data() {
|
|
30
|
-
return {
|
|
31
|
-
index: -1,
|
|
32
|
-
currentIndex: this.index,
|
|
33
|
-
number: this.$children.length
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}, i = {
|
|
37
|
-
props: {
|
|
38
|
-
selected: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: !1
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
mounted() {
|
|
44
|
-
this.$parent.updateIndex();
|
|
45
|
-
},
|
|
46
|
-
beforeDestroy() {
|
|
47
|
-
const e = this.$parent;
|
|
48
|
-
this.$nextTick(() => {
|
|
49
|
-
e.updateIndex();
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
onItemClick(e) {
|
|
54
|
-
if (this.$parent.preventDefault) {
|
|
55
|
-
this.$parent.$emit("on-before-index-change", this.currentIndex);
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
(typeof this.disabled > "u" || this.disabled === !1) && (this.currentSelected = !0, this.$parent.currentIndex = this.currentIndex, this.$nextTick(() => {
|
|
59
|
-
this.$emit("on-item-click", this.currentIndex);
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
watch: {
|
|
64
|
-
currentSelected(e) {
|
|
65
|
-
e && (this.$parent.index = this.currentIndex);
|
|
66
|
-
},
|
|
67
|
-
selected(e) {
|
|
68
|
-
this.currentSelected = e;
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
data() {
|
|
72
|
-
return {
|
|
73
|
-
currentIndex: -1,
|
|
74
|
-
currentSelected: this.selected
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
export {
|
|
79
|
-
i as c,
|
|
80
|
-
n as p
|
|
81
|
-
};
|
package/dist/chunks/97652d86.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
function c(r) {
|
|
2
|
-
const n = Math.floor(r / 31536e3);
|
|
3
|
-
if (n)
|
|
4
|
-
return `${n} 年${o(n)}`;
|
|
5
|
-
const t = Math.floor((r %= 31536e3) / 86400);
|
|
6
|
-
if (t)
|
|
7
|
-
return `${t} 天${o(t)}`;
|
|
8
|
-
const s = Math.floor((r %= 86400) / 3600);
|
|
9
|
-
if (s)
|
|
10
|
-
return `${s} 时${o(s)}`;
|
|
11
|
-
const e = Math.floor((r %= 3600) / 60);
|
|
12
|
-
if (e)
|
|
13
|
-
return `${e} 分${o(e)}`;
|
|
14
|
-
const u = r % 60;
|
|
15
|
-
return `${u} 秒${o(u)}`;
|
|
16
|
-
function o(a) {
|
|
17
|
-
return a > 1, "";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function f(r) {
|
|
21
|
-
return r.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
f as k,
|
|
25
|
-
c as s
|
|
26
|
-
};
|
package/dist/chunks/b4acd3a6.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { i as r } from "./f71045fc.js";
|
|
2
|
-
import { Col as i, FormItem as a } from "element-ui";
|
|
3
|
-
const u = ["span"], s = [...Object.keys(i.props)], n = s.filter((e) => !u.includes(e)), p = ["label", "prop", "rules", "labelWidth", "required"], l = [...Object.keys(a.props)], m = l.filter((e) => !p.includes(e)), f = [
|
|
4
|
-
"wrapCol",
|
|
5
|
-
"wrapFormItem",
|
|
6
|
-
"unwrap",
|
|
7
|
-
"prefixConfig",
|
|
8
|
-
"block",
|
|
9
|
-
"placeholder",
|
|
10
|
-
"prefixPick",
|
|
11
|
-
"half",
|
|
12
|
-
...s,
|
|
13
|
-
...l
|
|
14
|
-
], h = {
|
|
15
|
-
inject: {
|
|
16
|
-
elForm: {
|
|
17
|
-
default: {}
|
|
18
|
-
},
|
|
19
|
-
formItemGroup: {
|
|
20
|
-
default: {}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
disabled: Boolean,
|
|
25
|
-
wrapCol: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !0
|
|
28
|
-
},
|
|
29
|
-
wrapFormItem: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !0
|
|
32
|
-
},
|
|
33
|
-
unwrap: Boolean,
|
|
34
|
-
half: Boolean,
|
|
35
|
-
prefixConfig: Boolean,
|
|
36
|
-
block: Boolean,
|
|
37
|
-
placeholder: {
|
|
38
|
-
type: [Boolean, String],
|
|
39
|
-
default: !0
|
|
40
|
-
},
|
|
41
|
-
formItemClass: String,
|
|
42
|
-
prefixPick: Boolean,
|
|
43
|
-
label: String,
|
|
44
|
-
labelWidth: String,
|
|
45
|
-
prop: String,
|
|
46
|
-
required: Boolean,
|
|
47
|
-
rules: [Object, Array],
|
|
48
|
-
error: String,
|
|
49
|
-
validateStatus: String,
|
|
50
|
-
for: String,
|
|
51
|
-
inlineMessage: {
|
|
52
|
-
type: [String, Boolean],
|
|
53
|
-
default: ""
|
|
54
|
-
},
|
|
55
|
-
showMessage: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !0
|
|
58
|
-
},
|
|
59
|
-
size: String,
|
|
60
|
-
span: {
|
|
61
|
-
type: Number,
|
|
62
|
-
default: 12
|
|
63
|
-
},
|
|
64
|
-
tag: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: "div"
|
|
67
|
-
},
|
|
68
|
-
offset: Number,
|
|
69
|
-
pull: Number,
|
|
70
|
-
push: Number,
|
|
71
|
-
xs: [Number, Object],
|
|
72
|
-
sm: [Number, Object],
|
|
73
|
-
md: [Number, Object],
|
|
74
|
-
lg: [Number, Object],
|
|
75
|
-
xl: [Number, Object]
|
|
76
|
-
},
|
|
77
|
-
computed: {
|
|
78
|
-
prefix() {
|
|
79
|
-
return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
|
|
80
|
-
},
|
|
81
|
-
message() {
|
|
82
|
-
var e;
|
|
83
|
-
return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
|
|
84
|
-
},
|
|
85
|
-
computeRules() {
|
|
86
|
-
const e = [...this.rules || []];
|
|
87
|
-
if (this.required) {
|
|
88
|
-
const t = e.find((o) => o.required);
|
|
89
|
-
t ? t.ref ? t.label = t.label || this.label : t.message = e.message || this.message : e.unshift(this.getRequireRule());
|
|
90
|
-
}
|
|
91
|
-
return e.concat(this.getRules());
|
|
92
|
-
},
|
|
93
|
-
computeSpan() {
|
|
94
|
-
return this.block ? 24 : this.span;
|
|
95
|
-
},
|
|
96
|
-
formItemProps() {
|
|
97
|
-
return r({ ...this.$props, ...this.$attrs }, f);
|
|
98
|
-
},
|
|
99
|
-
elFormItemProps() {
|
|
100
|
-
return r({ ...this.$props, ...this.$attrs }, m);
|
|
101
|
-
},
|
|
102
|
-
elColProps() {
|
|
103
|
-
return r({ ...this.$props, ...this.$attrs }, n);
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
watch: {
|
|
107
|
-
computeRules() {
|
|
108
|
-
var e, t;
|
|
109
|
-
(t = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || t.call(e, this.prop);
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
methods: {
|
|
113
|
-
getRules() {
|
|
114
|
-
return [];
|
|
115
|
-
},
|
|
116
|
-
getRequireRule() {
|
|
117
|
-
return {
|
|
118
|
-
required: !0,
|
|
119
|
-
message: this.message
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
h as f
|
|
126
|
-
};
|
package/dist/chunks/f71045fc.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { isObject as u, isString as a, hasOwn as f, isPlainObject as p, isArray as h, camelize as g, isFunction as m } from "@web-utils/core";
|
|
2
|
-
import x from "vue";
|
|
3
|
-
const T = (e, r) => p(e) || a(e) ? [r, e] : h(e) ? [r, ...e] : [r];
|
|
4
|
-
function E() {
|
|
5
|
-
const e = window.navigator.userAgent, r = e.indexOf("MSIE ");
|
|
6
|
-
if (r > 0)
|
|
7
|
-
return parseInt(e.substring(r + 5, e.indexOf(".", r)), 10);
|
|
8
|
-
if (e.indexOf("Trident/") > 0) {
|
|
9
|
-
const o = e.indexOf("rv:");
|
|
10
|
-
return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
|
|
11
|
-
}
|
|
12
|
-
const l = e.indexOf("Edge/");
|
|
13
|
-
return l > 0 ? parseInt(e.substring(l + 5, e.indexOf(".", l)), 10) : -1;
|
|
14
|
-
}
|
|
15
|
-
function z(e, r) {
|
|
16
|
-
for (const t in r)
|
|
17
|
-
x.set(e, t, r[t]);
|
|
18
|
-
return e;
|
|
19
|
-
}
|
|
20
|
-
const I = (e, r) => {
|
|
21
|
-
if (!e || !r)
|
|
22
|
-
return null;
|
|
23
|
-
let t = e;
|
|
24
|
-
for (; t && r(t); )
|
|
25
|
-
t = t.$parent;
|
|
26
|
-
return t;
|
|
27
|
-
}, w = [
|
|
28
|
-
"data",
|
|
29
|
-
"height",
|
|
30
|
-
"max-height",
|
|
31
|
-
"stripe",
|
|
32
|
-
"border",
|
|
33
|
-
"size",
|
|
34
|
-
"fit",
|
|
35
|
-
"show-header",
|
|
36
|
-
"highlight-current-row",
|
|
37
|
-
"current-row-key",
|
|
38
|
-
"row-class-name",
|
|
39
|
-
"row-style",
|
|
40
|
-
"cell-class-name",
|
|
41
|
-
"cell-style",
|
|
42
|
-
"header-row-class-name",
|
|
43
|
-
"header-row-style",
|
|
44
|
-
"header-cell-class-name",
|
|
45
|
-
"header-cell-style",
|
|
46
|
-
"row-key",
|
|
47
|
-
"empty-text",
|
|
48
|
-
"default-expand-all",
|
|
49
|
-
"expand-row-keys",
|
|
50
|
-
"default-sort",
|
|
51
|
-
"tooltip-effect",
|
|
52
|
-
"show-summary",
|
|
53
|
-
"sum-text",
|
|
54
|
-
"summary-method",
|
|
55
|
-
"span-method",
|
|
56
|
-
"select-on-indeterminate ",
|
|
57
|
-
"indent",
|
|
58
|
-
"lazy",
|
|
59
|
-
"load",
|
|
60
|
-
"tree-props"
|
|
61
|
-
], b = [
|
|
62
|
-
"select",
|
|
63
|
-
"select-all",
|
|
64
|
-
"selection-change",
|
|
65
|
-
"cell-mouse-enter",
|
|
66
|
-
"cell-mouse-leave",
|
|
67
|
-
"cell-click",
|
|
68
|
-
"cell-dblclick",
|
|
69
|
-
"row-click",
|
|
70
|
-
"row-contextmenu",
|
|
71
|
-
"header-click",
|
|
72
|
-
"header-contextmenu",
|
|
73
|
-
"sort-change",
|
|
74
|
-
"filter-change",
|
|
75
|
-
"current-change",
|
|
76
|
-
"header-dragend",
|
|
77
|
-
"expand-change"
|
|
78
|
-
], y = [
|
|
79
|
-
"type",
|
|
80
|
-
"index",
|
|
81
|
-
"column-key",
|
|
82
|
-
"label",
|
|
83
|
-
"prop",
|
|
84
|
-
"width",
|
|
85
|
-
"min-width",
|
|
86
|
-
"fixed",
|
|
87
|
-
"render-header",
|
|
88
|
-
"sortable",
|
|
89
|
-
"sort-method",
|
|
90
|
-
"sort-by",
|
|
91
|
-
"sort-orders",
|
|
92
|
-
"resizable",
|
|
93
|
-
"formatter",
|
|
94
|
-
"show-overflow-tooltip",
|
|
95
|
-
"align",
|
|
96
|
-
"header-align",
|
|
97
|
-
"class-name",
|
|
98
|
-
"label-class-name",
|
|
99
|
-
"selectable",
|
|
100
|
-
"reserve-selection",
|
|
101
|
-
"filters",
|
|
102
|
-
"filter-placement",
|
|
103
|
-
"filter-multiple",
|
|
104
|
-
"filter-method",
|
|
105
|
-
"filtered-value"
|
|
106
|
-
], k = [
|
|
107
|
-
"data",
|
|
108
|
-
"empty-text",
|
|
109
|
-
"node-key",
|
|
110
|
-
"props",
|
|
111
|
-
"render-after-expand",
|
|
112
|
-
"load",
|
|
113
|
-
"render-content",
|
|
114
|
-
"highlight-current",
|
|
115
|
-
"default-expand-all",
|
|
116
|
-
"expand-on-click-node",
|
|
117
|
-
"check-on-click-node",
|
|
118
|
-
"auto-expand-parent",
|
|
119
|
-
"default-expanded-keys",
|
|
120
|
-
"show-checkbox",
|
|
121
|
-
"check-strictly",
|
|
122
|
-
"default-checked-keys",
|
|
123
|
-
"current-node-key",
|
|
124
|
-
"filter-node-method",
|
|
125
|
-
"accordion",
|
|
126
|
-
"indent",
|
|
127
|
-
"icon-class",
|
|
128
|
-
"lazy",
|
|
129
|
-
"draggable",
|
|
130
|
-
"allow-drag",
|
|
131
|
-
"allow-drop"
|
|
132
|
-
], v = [
|
|
133
|
-
"node-click",
|
|
134
|
-
"node-contextmenu",
|
|
135
|
-
"check-change",
|
|
136
|
-
"check",
|
|
137
|
-
"current-change",
|
|
138
|
-
"node-expand",
|
|
139
|
-
"node-collapse",
|
|
140
|
-
"node-drag-start",
|
|
141
|
-
"node-drag-enter",
|
|
142
|
-
"node-drag-leave",
|
|
143
|
-
"node-drag-over",
|
|
144
|
-
"node-drag-end",
|
|
145
|
-
"node-drop"
|
|
146
|
-
], s = (e, r, t = !0) => {
|
|
147
|
-
if (u(e)) {
|
|
148
|
-
let l = r;
|
|
149
|
-
a(r) && (l = l.split(","));
|
|
150
|
-
const o = {};
|
|
151
|
-
return l.forEach((n) => {
|
|
152
|
-
f(e, n) && (t ? o[n] = e[n] : l.includes(n) || (o[n] = e[n]));
|
|
153
|
-
}), o;
|
|
154
|
-
}
|
|
155
|
-
return e;
|
|
156
|
-
}, A = (e) => {
|
|
157
|
-
const r = {};
|
|
158
|
-
for (const t in e)
|
|
159
|
-
r[g(t)] = e[t];
|
|
160
|
-
return r;
|
|
161
|
-
}, V = (e) => s(e, w), K = (e) => s(e, y), R = (e) => s(e, b), S = (e) => s(e, k), F = (e) => s(e, v), c = (e = "", r) => {
|
|
162
|
-
const t = r || {};
|
|
163
|
-
return (e || "").replace(/{(.*?)}/g, (o, n) => {
|
|
164
|
-
if (n.indexOf(":")) {
|
|
165
|
-
const [i, d] = n.split(":");
|
|
166
|
-
return t[i] ? t[i] : d;
|
|
167
|
-
} else
|
|
168
|
-
return t[n] || "";
|
|
169
|
-
});
|
|
170
|
-
}, M = (e, r) => m(e) ? c(e(r), r) : a(e) ? c(e, r) : null;
|
|
171
|
-
export {
|
|
172
|
-
S as a,
|
|
173
|
-
F as b,
|
|
174
|
-
z as c,
|
|
175
|
-
V as d,
|
|
176
|
-
R as e,
|
|
177
|
-
K as f,
|
|
178
|
-
E as g,
|
|
179
|
-
T as h,
|
|
180
|
-
s as i,
|
|
181
|
-
I as j,
|
|
182
|
-
M as k,
|
|
183
|
-
A as n
|
|
184
|
-
};
|