@web-utils/component 1.2.5 → 1.2.7
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/README.md +27 -27
- package/dist/chunks/163eed3b.js +16 -1
- package/dist/chunks/2bd4e340.js +184 -0
- package/dist/chunks/6499de3a.js +30 -1
- package/dist/chunks/7af3ceb1.js +75 -0
- package/dist/chunks/86bcadec.js +24 -0
- package/dist/chunks/8bbde9bf.js +81 -1
- package/dist/chunks/90bd3d52.js +26 -1
- package/dist/chunks/92404ceb.js +126 -0
- package/dist/chunks/a73fe8ee.js +11 -0
- package/dist/chunks/df803484.js +60 -0
- package/dist/components/address-input/index.js +113 -1
- package/dist/components/aside-menu/index.js +58 -1
- package/dist/components/awesome-button/index.js +82 -1
- package/dist/components/capsule-tab/index.js +52 -1
- package/dist/components/chunk-file-uploader/index.js +119 -1
- package/dist/components/chunk-file-uploader-button/index.js +60 -1
- package/dist/components/chunk-file-uploader-drop/index.js +65 -1
- package/dist/components/chunk-file-uploader-file/index.js +311 -1
- package/dist/components/chunk-file-uploader-files/index.js +49 -1
- package/dist/components/chunk-file-uploader-list/index.js +50 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +51 -1
- package/dist/components/code-mirror-editor/index.js +310 -6
- package/dist/components/color-picker/index.js +110 -1
- package/dist/components/confirm-button/index.js +57 -1
- package/dist/components/confirmable/index.js +28 -1
- package/dist/components/context-menu/index.js +236 -1
- package/dist/components/custom-scrollbar/index.js +150 -1
- package/dist/components/data-table-picker/index.js +137 -1
- package/dist/components/dynamic-table/index.js +195 -1
- package/dist/components/e-charts/index.js +229 -1
- package/dist/components/editable-progress/index.js +141 -1
- package/dist/components/editable-tree/index.js +789 -1
- package/dist/components/egd-collapse/index.js +79 -1
- package/dist/components/egd-collapse-item/index.js +132 -1
- package/dist/components/element-dialog/index.js +242 -1
- package/dist/components/empty-view/index.js +69 -1
- package/dist/components/error-view/index.js +61 -1
- package/dist/components/flex-column/index.js +50 -1
- package/dist/components/flex-item/index.js +66 -1
- package/dist/components/flex-row/index.js +50 -1
- package/dist/components/flex-scroller/index.js +47 -1
- package/dist/components/form-button/index.js +80 -1
- package/dist/components/form-cascader/index.js +151 -1
- package/dist/components/form-checkbox-group/index.js +192 -1
- package/dist/components/form-date-picker/index.js +182 -1
- package/dist/components/form-holder/index.js +90 -1
- package/dist/components/form-input/index.js +106 -1
- package/dist/components/form-input-email/index.js +97 -1
- package/dist/components/form-input-id-card/index.js +104 -1
- package/dist/components/form-input-number/index.js +123 -1
- package/dist/components/form-input-phone-number/index.js +98 -1
- package/dist/components/form-input-time/index.js +124 -1
- package/dist/components/form-item/index.js +120 -1
- package/dist/components/form-item-config-provider/index.js +63 -1
- package/dist/components/form-item-group/index.js +169 -1
- package/dist/components/form-radio-group/index.js +170 -1
- package/dist/components/form-select/index.js +154 -1
- package/dist/components/form-switch/index.js +97 -1
- package/dist/components/form-textarea/index.js +102 -1
- package/dist/components/form-view/index.js +343 -1
- package/dist/components/guide-steps/index.js +94 -1
- package/dist/components/icon-card/index.js +62 -1
- package/dist/components/iframe-window/index.js +99 -1
- package/dist/components/input-number/index.js +274 -1
- package/dist/components/input-number-range/index.js +110 -1
- package/dist/components/j-s-x-component/index.js +16 -1
- package/dist/components/keep-view-alive/index.js +119 -1
- package/dist/components/loading-view/index.js +61 -1
- package/dist/components/nav-bar/index.js +52 -1
- package/dist/components/not-implement/index.js +35 -1
- package/dist/components/page/index.js +40 -1
- package/dist/components/page-header/index.js +56 -1
- package/dist/components/page-index/index.js +151 -1
- package/dist/components/page-index-top/index.js +119 -1
- package/dist/components/page-skeleton/index.js +56 -1
- package/dist/components/page-skeleton-new/index.js +98 -1
- package/dist/components/pageable-table/index.js +429 -1
- package/dist/components/pageable-view/index.js +328 -2
- package/dist/components/photo-swipe/index.js +187 -1
- package/dist/components/resize-observer/index.js +62 -1
- package/dist/components/search-popover/index.js +391 -2
- package/dist/components/sign-panel/index.js +242 -1
- package/dist/components/split-pane/index.js +209 -1
- package/dist/components/stateful/index.js +84 -1
- package/dist/components/static-pageable-table/index.js +92 -1
- package/dist/components/swiper/index.js +158 -1
- package/dist/components/tab/index.js +145 -1
- package/dist/components/tab-item/index.js +73 -1
- package/dist/components/table-column/index.js +89 -1
- package/dist/components/table-view/index.js +363 -1
- package/dist/components/tag-render/index.js +97 -1
- package/dist/components/tinymce-editor/index.js +173 -1
- package/dist/components/tinymce-wrapper/index.js +618 -1
- package/dist/components/toolbar/index.js +217 -1
- package/dist/components/toolbar-button/index.js +90 -1
- package/dist/components/trigger/index.js +71 -1
- package/dist/components/vue-tags-input/index.js +439 -1
- package/dist/components/watermark/index.js +63 -1
- package/dist/components/x-dialog/index.js +173 -1
- package/dist/index.css +2102 -1
- package/dist/index.es.js +3097 -2347
- package/package.json +29 -29
- package/web-types.json +22 -55
- package/dist/chunks/23bd3525.js +0 -1
- package/dist/chunks/65f4f4f2.js +0 -1
- package/dist/chunks/8473fc69.js +0 -1
- package/dist/chunks/a125d16c.js +0 -1
- package/dist/chunks/addb6ed5.js +0 -1
- package/dist/chunks/f15477c7.js +0 -1
- package/dist/components/el-color-picker-dropdown/index.js +0 -1
|
@@ -1 +1,79 @@
|
|
|
1
|
-
import{n
|
|
1
|
+
import { n } from "../../chunks/6499de3a.js";
|
|
2
|
+
var i = function() {
|
|
3
|
+
var e = this, t = e.$createElement, s = e._self._c || t;
|
|
4
|
+
return s("div", {
|
|
5
|
+
staticClass: "el-collapse",
|
|
6
|
+
attrs: {
|
|
7
|
+
role: "tablist",
|
|
8
|
+
"aria-multiselectable": "true"
|
|
9
|
+
}
|
|
10
|
+
}, [e._t("default")], 2);
|
|
11
|
+
}, c = [];
|
|
12
|
+
const l = {
|
|
13
|
+
name: "EgdCollapse",
|
|
14
|
+
componentName: "EgdCollapse",
|
|
15
|
+
provide() {
|
|
16
|
+
return {
|
|
17
|
+
collapse: this
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
accordion: Boolean,
|
|
22
|
+
value: {
|
|
23
|
+
type: [Array, String, Number],
|
|
24
|
+
default() {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
activeNames: [].concat(this.value)
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
watch: {
|
|
35
|
+
value(e) {
|
|
36
|
+
this.activeNames = [].concat(e);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
created() {
|
|
40
|
+
this.$on("item-click", this.handleItemClick);
|
|
41
|
+
},
|
|
42
|
+
methods: {
|
|
43
|
+
setActiveNames(e) {
|
|
44
|
+
e = [].concat(e);
|
|
45
|
+
const t = this.accordion ? e[0] : e;
|
|
46
|
+
this.activeNames = e, this.$emit("input", t), this.$emit("change", t);
|
|
47
|
+
},
|
|
48
|
+
handleItemClick(e) {
|
|
49
|
+
if (this.accordion)
|
|
50
|
+
this.setActiveNames(
|
|
51
|
+
(this.activeNames[0] || this.activeNames[0] === 0) && this.activeNames[0] === e.name ? "" : e.name
|
|
52
|
+
);
|
|
53
|
+
else {
|
|
54
|
+
const t = this.activeNames.slice(0), s = t.indexOf(e.name);
|
|
55
|
+
s > -1 ? t.splice(s, 1) : t.push(e.name), this.setActiveNames(t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}, a = {};
|
|
60
|
+
var o = /* @__PURE__ */ n(
|
|
61
|
+
l,
|
|
62
|
+
i,
|
|
63
|
+
c,
|
|
64
|
+
!1,
|
|
65
|
+
r,
|
|
66
|
+
null,
|
|
67
|
+
null,
|
|
68
|
+
null
|
|
69
|
+
);
|
|
70
|
+
function r(e) {
|
|
71
|
+
for (let t in a)
|
|
72
|
+
this[t] = a[t];
|
|
73
|
+
}
|
|
74
|
+
const u = /* @__PURE__ */ function() {
|
|
75
|
+
return o.exports;
|
|
76
|
+
}();
|
|
77
|
+
export {
|
|
78
|
+
u as default
|
|
79
|
+
};
|
|
@@ -1 +1,132 @@
|
|
|
1
|
-
import a from"element-ui/src/mixins/emitter";
|
|
1
|
+
import a from "element-ui/src/mixins/emitter";
|
|
2
|
+
import { generateId as n } from "element-ui/src/utils/util";
|
|
3
|
+
import { n as c } from "../../chunks/6499de3a.js";
|
|
4
|
+
var o = function() {
|
|
5
|
+
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
6
|
+
return t("div", {
|
|
7
|
+
staticClass: "el-collapse-item",
|
|
8
|
+
class: {
|
|
9
|
+
"is-active": e.isActive,
|
|
10
|
+
"is-disabled": e.disabled
|
|
11
|
+
}
|
|
12
|
+
}, [t("div", {
|
|
13
|
+
attrs: {
|
|
14
|
+
role: "tab",
|
|
15
|
+
"aria-expanded": e.isActive,
|
|
16
|
+
"aria-controls": `el-collapse-content-${e.id}`,
|
|
17
|
+
"aria-describedby": `el-collapse-content-${e.id}`
|
|
18
|
+
}
|
|
19
|
+
}, [t("div", {
|
|
20
|
+
staticClass: "el-collapse-item__header",
|
|
21
|
+
class: {
|
|
22
|
+
focusing: e.focusing,
|
|
23
|
+
"is-active": e.isActive
|
|
24
|
+
},
|
|
25
|
+
attrs: {
|
|
26
|
+
id: `el-collapse-head-${e.id}`,
|
|
27
|
+
role: "button",
|
|
28
|
+
tabindex: e.disabled ? void 0 : 0
|
|
29
|
+
},
|
|
30
|
+
on: {
|
|
31
|
+
click: e.handleHeaderClick,
|
|
32
|
+
keyup: function(i) {
|
|
33
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "space", 32, i.key, [" ", "Spacebar"]) && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : (i.stopPropagation(), e.handleEnterClick.apply(null, arguments));
|
|
34
|
+
},
|
|
35
|
+
focus: e.handleFocus,
|
|
36
|
+
blur: function(i) {
|
|
37
|
+
e.focusing = !1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, [t("i", {
|
|
41
|
+
staticClass: "el-collapse-item__arrow el-icon-arrow-right",
|
|
42
|
+
class: {
|
|
43
|
+
"is-active": e.isActive
|
|
44
|
+
},
|
|
45
|
+
staticStyle: {
|
|
46
|
+
margin: "0 4px 0 0"
|
|
47
|
+
}
|
|
48
|
+
}), e._t("title", function() {
|
|
49
|
+
return [e._v(" " + e._s(e.title) + " ")];
|
|
50
|
+
}, {
|
|
51
|
+
title: e.title
|
|
52
|
+
})], 2)]), t("ElCollapseTransition", [t("div", {
|
|
53
|
+
directives: [{
|
|
54
|
+
name: "show",
|
|
55
|
+
rawName: "v-show",
|
|
56
|
+
value: e.isActive,
|
|
57
|
+
expression: "isActive"
|
|
58
|
+
}],
|
|
59
|
+
staticClass: "el-collapse-item__wrap",
|
|
60
|
+
attrs: {
|
|
61
|
+
id: `el-collapse-content-${e.id}`,
|
|
62
|
+
role: "tabpanel",
|
|
63
|
+
"aria-hidden": !e.isActive,
|
|
64
|
+
"aria-labelledby": `el-collapse-head-${e.id}`
|
|
65
|
+
}
|
|
66
|
+
}, [t("div", {
|
|
67
|
+
staticClass: "el-collapse-item__content"
|
|
68
|
+
}, [e._t("default")], 2)])])], 1);
|
|
69
|
+
}, r = [];
|
|
70
|
+
const d = {
|
|
71
|
+
name: "EgdCollapseItem",
|
|
72
|
+
componentName: "EgdCollapseItem",
|
|
73
|
+
mixins: [a],
|
|
74
|
+
inject: ["collapse"],
|
|
75
|
+
props: {
|
|
76
|
+
title: {
|
|
77
|
+
type: String
|
|
78
|
+
},
|
|
79
|
+
name: {
|
|
80
|
+
type: [String, Number],
|
|
81
|
+
default() {
|
|
82
|
+
return this._uid;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
disabled: Boolean
|
|
86
|
+
},
|
|
87
|
+
data() {
|
|
88
|
+
return {
|
|
89
|
+
focusing: !1,
|
|
90
|
+
isClick: !1,
|
|
91
|
+
id: n()
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
computed: {
|
|
95
|
+
isActive() {
|
|
96
|
+
return this.collapse.activeNames.indexOf(this.name) > -1;
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
methods: {
|
|
100
|
+
handleFocus() {
|
|
101
|
+
setTimeout(() => {
|
|
102
|
+
this.isClick ? this.isClick = !1 : this.focusing = !0;
|
|
103
|
+
}, 50);
|
|
104
|
+
},
|
|
105
|
+
handleHeaderClick() {
|
|
106
|
+
this.disabled || (this.dispatch("EgdCollapse", "item-click", this), this.focusing = !1, this.isClick = !0);
|
|
107
|
+
},
|
|
108
|
+
handleEnterClick() {
|
|
109
|
+
this.dispatch("EgdCollapse", "item-click", this);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}, l = {};
|
|
113
|
+
var p = /* @__PURE__ */ c(
|
|
114
|
+
d,
|
|
115
|
+
o,
|
|
116
|
+
r,
|
|
117
|
+
!1,
|
|
118
|
+
u,
|
|
119
|
+
null,
|
|
120
|
+
null,
|
|
121
|
+
null
|
|
122
|
+
);
|
|
123
|
+
function u(e) {
|
|
124
|
+
for (let s in l)
|
|
125
|
+
this[s] = l[s];
|
|
126
|
+
}
|
|
127
|
+
const _ = /* @__PURE__ */ function() {
|
|
128
|
+
return p.exports;
|
|
129
|
+
}();
|
|
130
|
+
export {
|
|
131
|
+
_ as default
|
|
132
|
+
};
|
|
@@ -1 +1,242 @@
|
|
|
1
|
-
import{Dialog as
|
|
1
|
+
import { Dialog as s } from "element-ui";
|
|
2
|
+
import { dialogDrag as a } from "@web-utils/core/dist/directives/index";
|
|
3
|
+
import { n } from "../../chunks/6499de3a.js";
|
|
4
|
+
var r = function() {
|
|
5
|
+
var e = this, l = e.$createElement, t = e._self._c || l;
|
|
6
|
+
return t("Transition", {
|
|
7
|
+
attrs: {
|
|
8
|
+
name: "dialog-fade"
|
|
9
|
+
},
|
|
10
|
+
on: {
|
|
11
|
+
"after-enter": e.afterEnter,
|
|
12
|
+
"after-leave": e.afterLeave
|
|
13
|
+
}
|
|
14
|
+
}, [t("div", {
|
|
15
|
+
directives: [{
|
|
16
|
+
name: "show",
|
|
17
|
+
rawName: "v-show",
|
|
18
|
+
value: e.visible,
|
|
19
|
+
expression: "visible"
|
|
20
|
+
}, {
|
|
21
|
+
name: "dialog-drag",
|
|
22
|
+
rawName: "v-dialog-drag:[fullScreen]",
|
|
23
|
+
value: {
|
|
24
|
+
onMove: e.updatePopper
|
|
25
|
+
},
|
|
26
|
+
expression: "{onMove:updatePopper}",
|
|
27
|
+
arg: e.fullScreen
|
|
28
|
+
}],
|
|
29
|
+
staticClass: "el-dialog__wrapper",
|
|
30
|
+
on: {
|
|
31
|
+
click: function(o) {
|
|
32
|
+
return o.target !== o.currentTarget ? null : e.handleWrapperClick.apply(null, arguments);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}, [t("div", {
|
|
36
|
+
ref: "dialog",
|
|
37
|
+
class: ["el-dialog", "element-dialog", "el-dialog-resizeable", "normalize", {
|
|
38
|
+
"is-fullscreen": e.fullScreen,
|
|
39
|
+
"el-dialog__body-padding": e.bodyPadding,
|
|
40
|
+
"el-dialog--center": e.center,
|
|
41
|
+
"el-dialog--flex-row": e.flexRow,
|
|
42
|
+
"el-dialog--flex-column": e.flexColumn
|
|
43
|
+
}, e.customClass],
|
|
44
|
+
style: e.style,
|
|
45
|
+
attrs: {
|
|
46
|
+
role: "dialog",
|
|
47
|
+
"aria-modal": "true",
|
|
48
|
+
"aria-label": e.title || "dialog"
|
|
49
|
+
}
|
|
50
|
+
}, [t("div", {
|
|
51
|
+
staticClass: "el-dialog__header"
|
|
52
|
+
}, [e._t("title", function() {
|
|
53
|
+
return [t("span", {
|
|
54
|
+
staticClass: "el-dialog__title"
|
|
55
|
+
}, [e._v(e._s(e.title))])];
|
|
56
|
+
}), t("div", {
|
|
57
|
+
staticClass: "header-button-wrapper"
|
|
58
|
+
}, [e._t("header-button"), e.showFullScreen ? t("ElButton", {
|
|
59
|
+
staticClass: "header-button",
|
|
60
|
+
attrs: {
|
|
61
|
+
type: "text",
|
|
62
|
+
icon: e.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
|
|
63
|
+
size: "medium",
|
|
64
|
+
title: e.fullScreen ? "\u8FD8\u539F" : "\u6700\u5927\u5316"
|
|
65
|
+
},
|
|
66
|
+
on: {
|
|
67
|
+
click: e.toggleFullScreen
|
|
68
|
+
}
|
|
69
|
+
}) : e._e(), e.showClose ? t("ElButton", {
|
|
70
|
+
staticClass: "header-button",
|
|
71
|
+
attrs: {
|
|
72
|
+
"aria-label": "Close",
|
|
73
|
+
type: "text",
|
|
74
|
+
title: "\u5173\u95ED",
|
|
75
|
+
icon: "el-icon-close",
|
|
76
|
+
size: "medium"
|
|
77
|
+
},
|
|
78
|
+
on: {
|
|
79
|
+
click: e.handleClose
|
|
80
|
+
}
|
|
81
|
+
}) : e._e()], 2)], 2), e.rendered ? t("div", {
|
|
82
|
+
staticClass: "el-dialog__body",
|
|
83
|
+
style: {
|
|
84
|
+
height: e.fullScreen ? "100%" : e.height
|
|
85
|
+
}
|
|
86
|
+
}, [e.destroyOnClose ? [e.visible ? e._t("default") : e._e()] : e._t("default")], 2) : e._e(), e.shouldShowFooter() ? t("div", {
|
|
87
|
+
staticClass: "el-dialog__footer"
|
|
88
|
+
}, [e._t("footer", null, {
|
|
89
|
+
handleClose: e.handleClose
|
|
90
|
+
})], 2) : e._e()])])]);
|
|
91
|
+
}, d = [];
|
|
92
|
+
const u = {
|
|
93
|
+
props: {
|
|
94
|
+
modal: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: !0
|
|
97
|
+
},
|
|
98
|
+
modalAppendToBody: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: !0
|
|
101
|
+
},
|
|
102
|
+
lockScroll: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !0
|
|
105
|
+
},
|
|
106
|
+
closeOnPressEscape: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !0
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, c = {
|
|
112
|
+
name: "ElementDialog",
|
|
113
|
+
directives: {
|
|
114
|
+
dialogDrag: a
|
|
115
|
+
},
|
|
116
|
+
mixins: [...s.mixins, u],
|
|
117
|
+
props: {
|
|
118
|
+
title: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: ""
|
|
121
|
+
},
|
|
122
|
+
appendToBody: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: !0
|
|
125
|
+
},
|
|
126
|
+
closeOnClickModal: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: !1
|
|
129
|
+
},
|
|
130
|
+
showClose: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
default: !0
|
|
133
|
+
},
|
|
134
|
+
showFullScreen: Boolean,
|
|
135
|
+
width: {
|
|
136
|
+
type: String
|
|
137
|
+
},
|
|
138
|
+
height: {
|
|
139
|
+
type: String
|
|
140
|
+
},
|
|
141
|
+
customClass: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: ""
|
|
144
|
+
},
|
|
145
|
+
top: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: "15vh"
|
|
148
|
+
},
|
|
149
|
+
beforeClose: {
|
|
150
|
+
type: Function
|
|
151
|
+
},
|
|
152
|
+
center: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
default: !0
|
|
155
|
+
},
|
|
156
|
+
destroyOnClose: Boolean,
|
|
157
|
+
flexRow: Boolean,
|
|
158
|
+
flexColumn: Boolean,
|
|
159
|
+
bodyPadding: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: !0
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
data() {
|
|
165
|
+
return {
|
|
166
|
+
fullScreen: !1,
|
|
167
|
+
closed: !1
|
|
168
|
+
};
|
|
169
|
+
},
|
|
170
|
+
computed: {
|
|
171
|
+
style() {
|
|
172
|
+
const e = {};
|
|
173
|
+
return this.fullScreen || (e.marginTop = this.top, this.width && (e.width = this.width)), e;
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
watch: {
|
|
177
|
+
visible(e) {
|
|
178
|
+
e ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), this.$nextTick(() => {
|
|
179
|
+
this.$refs.dialog.scrollTop = 0;
|
|
180
|
+
}), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
mounted() {
|
|
184
|
+
this.visible && (this.rendered = !0, this.open(), this.appendToBody && document.body.appendChild(this.$el));
|
|
185
|
+
},
|
|
186
|
+
destroyed() {
|
|
187
|
+
this.appendToBody && this.$el && this.$el.parentNode && this.$el.parentNode.removeChild(this.$el);
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
toggleFullScreen() {
|
|
191
|
+
this.fullScreen = !this.fullScreen;
|
|
192
|
+
},
|
|
193
|
+
enterFullScreen() {
|
|
194
|
+
this.fullScreen = !0;
|
|
195
|
+
},
|
|
196
|
+
exitFullScreen() {
|
|
197
|
+
this.fullScreen = !1;
|
|
198
|
+
},
|
|
199
|
+
shouldShowFooter() {
|
|
200
|
+
var e, l;
|
|
201
|
+
return !!((l = (e = this.$scopedSlots).footer) != null && l.call(e));
|
|
202
|
+
},
|
|
203
|
+
handleWrapperClick() {
|
|
204
|
+
!this.closeOnClickModal || this.handleClose();
|
|
205
|
+
},
|
|
206
|
+
handleClose() {
|
|
207
|
+
typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
|
|
208
|
+
},
|
|
209
|
+
hide(e) {
|
|
210
|
+
e !== !1 && (this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
|
|
211
|
+
},
|
|
212
|
+
updatePopper() {
|
|
213
|
+
this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
|
|
214
|
+
},
|
|
215
|
+
afterEnter() {
|
|
216
|
+
this.$emit("opened");
|
|
217
|
+
},
|
|
218
|
+
afterLeave() {
|
|
219
|
+
this.exitFullScreen(), this.$emit("closed");
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}, i = {};
|
|
223
|
+
var p = /* @__PURE__ */ n(
|
|
224
|
+
c,
|
|
225
|
+
r,
|
|
226
|
+
d,
|
|
227
|
+
!1,
|
|
228
|
+
h,
|
|
229
|
+
null,
|
|
230
|
+
null,
|
|
231
|
+
null
|
|
232
|
+
);
|
|
233
|
+
function h(e) {
|
|
234
|
+
for (let l in i)
|
|
235
|
+
this[l] = i[l];
|
|
236
|
+
}
|
|
237
|
+
const _ = /* @__PURE__ */ function() {
|
|
238
|
+
return p.exports;
|
|
239
|
+
}();
|
|
240
|
+
export {
|
|
241
|
+
_ as default
|
|
242
|
+
};
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
import{n as o}from"../../chunks/6499de3a.js";
|
|
1
|
+
import { n as o } from "../../chunks/6499de3a.js";
|
|
2
|
+
var s = function() {
|
|
3
|
+
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
4
|
+
return n("div", {
|
|
5
|
+
staticClass: "empty-view",
|
|
6
|
+
style: {
|
|
7
|
+
fontSize: t.fontSize,
|
|
8
|
+
height: t.height
|
|
9
|
+
}
|
|
10
|
+
}, [t._t("default", function() {
|
|
11
|
+
return [n("div", {
|
|
12
|
+
staticClass: "flex-column horizon-center"
|
|
13
|
+
}, [t.showIcon ? n("i", {
|
|
14
|
+
class: t.icon,
|
|
15
|
+
style: {
|
|
16
|
+
fontSize: t.iconSize
|
|
17
|
+
}
|
|
18
|
+
}) : t._e(), n("p", [t._v(t._s(t.emptyTips))])])];
|
|
19
|
+
})], 2);
|
|
20
|
+
}, l = [];
|
|
21
|
+
const r = {
|
|
22
|
+
name: "EmptyView",
|
|
23
|
+
props: {
|
|
24
|
+
emptyTips: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "\u6682\u65E0\u6570\u636E"
|
|
27
|
+
},
|
|
28
|
+
fontSize: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "20px"
|
|
31
|
+
},
|
|
32
|
+
icon: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "fa fa-dropbox"
|
|
35
|
+
},
|
|
36
|
+
iconSize: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "20px"
|
|
39
|
+
},
|
|
40
|
+
showIcon: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !1
|
|
43
|
+
},
|
|
44
|
+
height: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "100%"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, i = {};
|
|
50
|
+
var a = /* @__PURE__ */ o(
|
|
51
|
+
r,
|
|
52
|
+
s,
|
|
53
|
+
l,
|
|
54
|
+
!1,
|
|
55
|
+
c,
|
|
56
|
+
null,
|
|
57
|
+
null,
|
|
58
|
+
null
|
|
59
|
+
);
|
|
60
|
+
function c(t) {
|
|
61
|
+
for (let e in i)
|
|
62
|
+
this[e] = i[e];
|
|
63
|
+
}
|
|
64
|
+
const p = /* @__PURE__ */ function() {
|
|
65
|
+
return a.exports;
|
|
66
|
+
}();
|
|
67
|
+
export {
|
|
68
|
+
p as default
|
|
69
|
+
};
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
import{n as i}from"../../chunks/6499de3a.js";
|
|
1
|
+
import { n as i } from "../../chunks/6499de3a.js";
|
|
2
|
+
var o = function() {
|
|
3
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
4
|
+
return r("div", {
|
|
5
|
+
staticClass: "error-view",
|
|
6
|
+
style: {
|
|
7
|
+
fontSize: e.fontSize,
|
|
8
|
+
height: e.height
|
|
9
|
+
}
|
|
10
|
+
}, [e._t("default", function() {
|
|
11
|
+
return [r("div", {
|
|
12
|
+
staticClass: "flex-column horizon-center"
|
|
13
|
+
}, [r("i", {
|
|
14
|
+
staticClass: "fa fa-frown-o",
|
|
15
|
+
style: {
|
|
16
|
+
fontSize: e.iconSize
|
|
17
|
+
}
|
|
18
|
+
}), r("p", [e._v(e._s(e.errorTips))])])];
|
|
19
|
+
})], 2);
|
|
20
|
+
}, s = [];
|
|
21
|
+
const a = {
|
|
22
|
+
name: "ErrorView",
|
|
23
|
+
props: {
|
|
24
|
+
errorTips: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"
|
|
27
|
+
},
|
|
28
|
+
fontSize: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "20px"
|
|
31
|
+
},
|
|
32
|
+
iconSize: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "20px"
|
|
35
|
+
},
|
|
36
|
+
height: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "100%"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, n = {};
|
|
42
|
+
var l = /* @__PURE__ */ i(
|
|
43
|
+
a,
|
|
44
|
+
o,
|
|
45
|
+
s,
|
|
46
|
+
!1,
|
|
47
|
+
_,
|
|
48
|
+
null,
|
|
49
|
+
null,
|
|
50
|
+
null
|
|
51
|
+
);
|
|
52
|
+
function _(e) {
|
|
53
|
+
for (let t in n)
|
|
54
|
+
this[t] = n[t];
|
|
55
|
+
}
|
|
56
|
+
const f = /* @__PURE__ */ function() {
|
|
57
|
+
return l.exports;
|
|
58
|
+
}();
|
|
59
|
+
export {
|
|
60
|
+
f as default
|
|
61
|
+
};
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
import { h as s } from "../../chunks/2bd4e340.js";
|
|
2
|
+
import { n as a } from "../../chunks/6499de3a.js";
|
|
3
|
+
const c = {
|
|
4
|
+
name: "FlexColumn",
|
|
5
|
+
functional: !0,
|
|
6
|
+
props: {
|
|
7
|
+
verticalCenter: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
},
|
|
11
|
+
horizonCenter: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
center: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
textCenter: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
render(l, { data: n, children: o, props: e }) {
|
|
25
|
+
const t = s(n.class, "flex-column");
|
|
26
|
+
return e.center || e.horizonCenter && e.verticalCenter ? (t.push("horizon-center"), t.push("vertical-center")) : (e.horizonCenter && t.push("horizon-center"), e.verticalCenter && t.push("vertical-center")), e.textCenter && t.push("text-center"), l("div", { ...n, class: t }, o);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
let i, u;
|
|
30
|
+
const r = {};
|
|
31
|
+
var f = /* @__PURE__ */ a(
|
|
32
|
+
c,
|
|
33
|
+
i,
|
|
34
|
+
u,
|
|
35
|
+
!1,
|
|
36
|
+
_,
|
|
37
|
+
null,
|
|
38
|
+
null,
|
|
39
|
+
null
|
|
40
|
+
);
|
|
41
|
+
function _(l) {
|
|
42
|
+
for (let n in r)
|
|
43
|
+
this[n] = r[n];
|
|
44
|
+
}
|
|
45
|
+
const v = /* @__PURE__ */ function() {
|
|
46
|
+
return f.exports;
|
|
47
|
+
}();
|
|
48
|
+
export {
|
|
49
|
+
v as default
|
|
50
|
+
};
|