@web-utils/component 2.0.10 → 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 +1 -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
|
@@ -1,57 +1,61 @@
|
|
|
1
|
-
import { isNotEmpty
|
|
2
|
-
import { n as
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
1
|
+
import { isNotEmpty } from "@web-utils/core";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
3
|
+
var render = function() {
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
7
|
+
return _c("div", {
|
|
6
8
|
staticClass: "input-number-range"
|
|
7
|
-
}, [
|
|
9
|
+
}, [_c("ElInputNumber", {
|
|
8
10
|
staticClass: "flex-item",
|
|
9
11
|
staticStyle: {
|
|
10
|
-
width: "auto"
|
|
12
|
+
"width": "auto"
|
|
11
13
|
},
|
|
12
14
|
attrs: {
|
|
13
|
-
controls:
|
|
14
|
-
disabled:
|
|
15
|
-
size: "mini"
|
|
15
|
+
"controls": _vm.controls,
|
|
16
|
+
"disabled": _vm.disabled,
|
|
17
|
+
"size": "mini"
|
|
16
18
|
},
|
|
17
19
|
on: {
|
|
18
|
-
input:
|
|
20
|
+
"input": _vm.emitInput
|
|
19
21
|
},
|
|
20
22
|
model: {
|
|
21
|
-
value:
|
|
22
|
-
callback: function(
|
|
23
|
-
|
|
23
|
+
value: _vm.val[0],
|
|
24
|
+
callback: function($$v) {
|
|
25
|
+
_vm.$set(_vm.val, 0, $$v);
|
|
24
26
|
},
|
|
25
27
|
expression: "val[0]"
|
|
26
28
|
}
|
|
27
|
-
}),
|
|
29
|
+
}), _c("span", {
|
|
28
30
|
staticStyle: {
|
|
29
|
-
padding: "0 6px",
|
|
31
|
+
"padding": "0 6px",
|
|
30
32
|
"font-size": "12px"
|
|
31
33
|
}
|
|
32
|
-
}, [
|
|
34
|
+
}, [_vm._v(_vm._s(_vm.separator))]), _c("ElInputNumber", {
|
|
33
35
|
staticClass: "flex-item",
|
|
34
36
|
staticStyle: {
|
|
35
|
-
width: "auto"
|
|
37
|
+
"width": "auto"
|
|
36
38
|
},
|
|
37
39
|
attrs: {
|
|
38
|
-
controls:
|
|
39
|
-
disabled:
|
|
40
|
-
size: "mini"
|
|
40
|
+
"controls": _vm.controls,
|
|
41
|
+
"disabled": _vm.disabled,
|
|
42
|
+
"size": "mini"
|
|
41
43
|
},
|
|
42
44
|
on: {
|
|
43
|
-
input:
|
|
45
|
+
"input": _vm.emitInput
|
|
44
46
|
},
|
|
45
47
|
model: {
|
|
46
|
-
value:
|
|
47
|
-
callback: function(
|
|
48
|
-
|
|
48
|
+
value: _vm.val[1],
|
|
49
|
+
callback: function($$v) {
|
|
50
|
+
_vm.$set(_vm.val, 1, $$v);
|
|
49
51
|
},
|
|
50
52
|
expression: "val[1]"
|
|
51
53
|
}
|
|
52
54
|
})], 1);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
+
};
|
|
56
|
+
var staticRenderFns = [];
|
|
57
|
+
const InputNumberRange_vue_vue_type_style_index_0_lang = "";
|
|
58
|
+
const __vue2_script = {
|
|
55
59
|
name: "InputNumberRange",
|
|
56
60
|
props: {
|
|
57
61
|
value: {
|
|
@@ -65,7 +69,7 @@ const u = {
|
|
|
65
69
|
},
|
|
66
70
|
controls: {
|
|
67
71
|
type: Boolean,
|
|
68
|
-
default:
|
|
72
|
+
default: true
|
|
69
73
|
}
|
|
70
74
|
},
|
|
71
75
|
data() {
|
|
@@ -75,10 +79,16 @@ const u = {
|
|
|
75
79
|
},
|
|
76
80
|
watch: {
|
|
77
81
|
value: {
|
|
78
|
-
immediate:
|
|
79
|
-
handler(
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
+
immediate: true,
|
|
83
|
+
handler(newVal) {
|
|
84
|
+
const val = [void 0, void 0];
|
|
85
|
+
if (isNotEmpty(newVal == null ? void 0 : newVal[0])) {
|
|
86
|
+
val[0] = newVal[0];
|
|
87
|
+
}
|
|
88
|
+
if (isNotEmpty(newVal == null ? void 0 : newVal[1])) {
|
|
89
|
+
val[1] = newVal[1];
|
|
90
|
+
}
|
|
91
|
+
this.val = val;
|
|
82
92
|
}
|
|
83
93
|
}
|
|
84
94
|
},
|
|
@@ -87,24 +97,26 @@ const u = {
|
|
|
87
97
|
this.$emit("input", this.val);
|
|
88
98
|
}
|
|
89
99
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
};
|
|
101
|
+
const __cssModules = {};
|
|
102
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
103
|
+
__vue2_script,
|
|
104
|
+
render,
|
|
105
|
+
staticRenderFns,
|
|
106
|
+
false,
|
|
107
|
+
__vue2_injectStyles,
|
|
97
108
|
null,
|
|
98
109
|
null,
|
|
99
110
|
null
|
|
100
111
|
);
|
|
101
|
-
function
|
|
102
|
-
for (let
|
|
103
|
-
this[
|
|
112
|
+
function __vue2_injectStyles(context) {
|
|
113
|
+
for (let o in __cssModules) {
|
|
114
|
+
this[o] = __cssModules[o];
|
|
115
|
+
}
|
|
104
116
|
}
|
|
105
|
-
const
|
|
106
|
-
return
|
|
117
|
+
const InputNumberRange = /* @__PURE__ */ function() {
|
|
118
|
+
return __component__.exports;
|
|
107
119
|
}();
|
|
108
120
|
export {
|
|
109
|
-
|
|
121
|
+
InputNumberRange as default
|
|
110
122
|
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.input-number-range {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
align-items: center;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const JSXComponent = {
|
|
2
2
|
name: "JSXComponent",
|
|
3
3
|
props: {
|
|
4
4
|
msg: {
|
|
@@ -7,10 +7,10 @@ const e = {
|
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
render() {
|
|
10
|
-
const
|
|
11
|
-
return
|
|
10
|
+
const h = arguments[0];
|
|
11
|
+
return h("div", [this.msg]);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
JSXComponent as default
|
|
16
16
|
};
|
|
@@ -1,69 +1,89 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
2
|
+
const _toString = Object.prototype.toString;
|
|
3
|
+
function isDef(v) {
|
|
4
|
+
return v !== void 0 && v !== null;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
return
|
|
6
|
+
function isAsyncPlaceholder(node) {
|
|
7
|
+
return node.isComment && node.asyncFactory;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
if (Array.isArray(
|
|
11
|
-
for (let
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
9
|
+
function getFirstComponentChild(children) {
|
|
10
|
+
if (Array.isArray(children)) {
|
|
11
|
+
for (let i = 0; i < children.length; i++) {
|
|
12
|
+
const c = children[i];
|
|
13
|
+
if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
|
|
14
|
+
return c;
|
|
15
|
+
}
|
|
15
16
|
}
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
19
|
+
function isRegExp(v) {
|
|
20
|
+
return _toString.call(v) === "[object RegExp]";
|
|
19
21
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
22
|
+
function getComponentName(opts) {
|
|
23
|
+
return opts && (opts.Ctor.options.name || opts.tag);
|
|
22
24
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
+
function matches(pattern, name) {
|
|
26
|
+
if (Array.isArray(pattern)) {
|
|
27
|
+
return pattern.indexOf(name) > -1;
|
|
28
|
+
} else if (typeof pattern === "string") {
|
|
29
|
+
return pattern.split(",").indexOf(name) > -1;
|
|
30
|
+
} else if (isRegExp(pattern)) {
|
|
31
|
+
return pattern.test(name);
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
25
34
|
}
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
35
|
+
function remove(arr, item) {
|
|
36
|
+
if (arr.length) {
|
|
37
|
+
const index = arr.indexOf(item);
|
|
38
|
+
if (index > -1) {
|
|
39
|
+
return arr.splice(index, 1);
|
|
40
|
+
}
|
|
31
41
|
}
|
|
32
42
|
}
|
|
33
|
-
function
|
|
34
|
-
const { cache
|
|
35
|
-
for (const
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
|
|
43
|
+
function pruneCache(keepAliveInstance, filter) {
|
|
44
|
+
const { cache, keys, _vnode } = keepAliveInstance;
|
|
45
|
+
for (const key in cache) {
|
|
46
|
+
const entry = cache[key];
|
|
47
|
+
if (entry) {
|
|
48
|
+
const name = entry.name;
|
|
49
|
+
if (name && !filter(name)) {
|
|
50
|
+
pruneCacheEntry(cache, key, keys, _vnode);
|
|
51
|
+
}
|
|
40
52
|
}
|
|
41
53
|
}
|
|
42
54
|
}
|
|
43
|
-
function
|
|
44
|
-
const
|
|
45
|
-
|
|
55
|
+
function pruneCacheEntry(cache, key, keys, current) {
|
|
56
|
+
const entry = cache[key];
|
|
57
|
+
if (entry && (!current || entry.tag !== current.tag)) {
|
|
58
|
+
entry.componentInstance.$destroy();
|
|
59
|
+
}
|
|
60
|
+
cache[key] = null;
|
|
61
|
+
remove(keys, key);
|
|
46
62
|
}
|
|
47
|
-
const
|
|
63
|
+
const __vue2_script = {
|
|
48
64
|
name: "KeepViewAlive",
|
|
49
|
-
abstract:
|
|
65
|
+
abstract: true,
|
|
50
66
|
props: {
|
|
51
67
|
include: Array,
|
|
52
68
|
exclude: Array,
|
|
53
69
|
max: [String, Number]
|
|
54
70
|
},
|
|
55
71
|
created() {
|
|
56
|
-
this.cache = /* @__PURE__ */ Object.create(null)
|
|
72
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
73
|
+
this.keys = [];
|
|
57
74
|
},
|
|
58
75
|
destroyed() {
|
|
59
|
-
for (const
|
|
60
|
-
|
|
76
|
+
for (const key in this.cache) {
|
|
77
|
+
pruneCacheEntry(this.cache, key, this.keys);
|
|
78
|
+
}
|
|
61
79
|
},
|
|
62
80
|
mounted() {
|
|
63
|
-
this.cacheVNode()
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
81
|
+
this.cacheVNode();
|
|
82
|
+
this.$watch("include", (val) => {
|
|
83
|
+
pruneCache(this, (name) => matches(val, name));
|
|
84
|
+
});
|
|
85
|
+
this.$watch("exclude", (val) => {
|
|
86
|
+
pruneCache(this, (name) => !matches(val, name));
|
|
67
87
|
});
|
|
68
88
|
},
|
|
69
89
|
updated() {
|
|
@@ -71,49 +91,76 @@ const k = {
|
|
|
71
91
|
},
|
|
72
92
|
methods: {
|
|
73
93
|
cacheVNode() {
|
|
74
|
-
const { cache
|
|
75
|
-
if (
|
|
76
|
-
const { tag
|
|
77
|
-
|
|
78
|
-
name:
|
|
79
|
-
tag
|
|
80
|
-
cid:
|
|
81
|
-
componentInstance
|
|
82
|
-
}
|
|
94
|
+
const { cache, keys, vnodeToCache, keyToCache } = this;
|
|
95
|
+
if (vnodeToCache) {
|
|
96
|
+
const { tag, componentInstance, componentOptions } = vnodeToCache;
|
|
97
|
+
cache[keyToCache] = {
|
|
98
|
+
name: getComponentName(componentOptions),
|
|
99
|
+
tag,
|
|
100
|
+
cid: componentOptions.Ctor.cid,
|
|
101
|
+
componentInstance
|
|
102
|
+
};
|
|
103
|
+
keys.push(keyToCache);
|
|
104
|
+
if (this.max && keys.length > parseInt(this.max)) {
|
|
105
|
+
pruneCacheEntry(cache, keys[0], keys, this._vnode);
|
|
106
|
+
}
|
|
107
|
+
this.vnodeToCache = null;
|
|
83
108
|
}
|
|
84
109
|
}
|
|
85
110
|
},
|
|
86
111
|
render() {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const {
|
|
93
|
-
|
|
112
|
+
const slot = this.$slots.default;
|
|
113
|
+
const vnode = getFirstComponentChild(slot);
|
|
114
|
+
const componentOptions = vnode && vnode.componentOptions;
|
|
115
|
+
if (componentOptions) {
|
|
116
|
+
const name = getComponentName(componentOptions);
|
|
117
|
+
const { include, exclude } = this;
|
|
118
|
+
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
|
|
119
|
+
return vnode;
|
|
120
|
+
}
|
|
121
|
+
const { cache, keys } = this;
|
|
122
|
+
const key = vnode.key == null ? componentOptions.Ctor.cid + (componentOptions.tag ? `::${componentOptions.tag}` : "") : vnode.key;
|
|
123
|
+
const entry = cache[key];
|
|
124
|
+
if (entry) {
|
|
125
|
+
if (entry.cid === componentOptions.Ctor.cid) {
|
|
126
|
+
vnode.componentInstance = entry.componentInstance;
|
|
127
|
+
remove(keys, key);
|
|
128
|
+
keys.push(key);
|
|
129
|
+
} else {
|
|
130
|
+
entry.componentInstance.$destroy();
|
|
131
|
+
cache[key] = null;
|
|
132
|
+
this.vnodeToCache = vnode;
|
|
133
|
+
this.keyToCache = key;
|
|
134
|
+
}
|
|
135
|
+
} else {
|
|
136
|
+
this.vnodeToCache = vnode;
|
|
137
|
+
this.keyToCache = key;
|
|
138
|
+
}
|
|
139
|
+
vnode.data.keepAlive = true;
|
|
94
140
|
}
|
|
95
|
-
return
|
|
141
|
+
return vnode || slot && slot[0];
|
|
96
142
|
}
|
|
97
143
|
};
|
|
98
|
-
let
|
|
99
|
-
const
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
144
|
+
let __vue2_render, __vue2_staticRenderFns;
|
|
145
|
+
const __cssModules = {};
|
|
146
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
147
|
+
__vue2_script,
|
|
148
|
+
__vue2_render,
|
|
149
|
+
__vue2_staticRenderFns,
|
|
150
|
+
false,
|
|
151
|
+
__vue2_injectStyles,
|
|
106
152
|
null,
|
|
107
153
|
null,
|
|
108
154
|
null
|
|
109
155
|
);
|
|
110
|
-
function
|
|
111
|
-
for (let
|
|
112
|
-
this[
|
|
156
|
+
function __vue2_injectStyles(context) {
|
|
157
|
+
for (let o in __cssModules) {
|
|
158
|
+
this[o] = __cssModules[o];
|
|
159
|
+
}
|
|
113
160
|
}
|
|
114
|
-
const
|
|
115
|
-
return
|
|
161
|
+
const KeepViewAlive = /* @__PURE__ */ function() {
|
|
162
|
+
return __component__.exports;
|
|
116
163
|
}();
|
|
117
164
|
export {
|
|
118
|
-
|
|
165
|
+
KeepViewAlive as default
|
|
119
166
|
};
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
2
|
+
var render = function() {
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
6
|
+
return _c("div", {
|
|
5
7
|
staticClass: "loading-view",
|
|
6
8
|
style: {
|
|
7
|
-
fontSize:
|
|
8
|
-
height:
|
|
9
|
+
fontSize: _vm.fontSize,
|
|
10
|
+
height: _vm.height
|
|
9
11
|
}
|
|
10
|
-
}, [
|
|
11
|
-
return [
|
|
12
|
+
}, [_vm._t("default", function() {
|
|
13
|
+
return [_c("div", {
|
|
12
14
|
staticClass: "flex-column horizon-center"
|
|
13
|
-
}, [
|
|
15
|
+
}, [_c("i", {
|
|
14
16
|
staticClass: "el-icon-loading",
|
|
15
17
|
style: {
|
|
16
|
-
fontSize:
|
|
18
|
+
fontSize: _vm.iconSize
|
|
17
19
|
}
|
|
18
|
-
}),
|
|
20
|
+
}), _c("p", [_vm._v(_vm._s(_vm.loadingTips))])])];
|
|
19
21
|
})], 2);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
+
};
|
|
23
|
+
var staticRenderFns = [];
|
|
24
|
+
const LoadingView_vue_vue_type_style_index_0_lang = "";
|
|
25
|
+
const __vue2_script = {
|
|
22
26
|
name: "LoadingView",
|
|
23
27
|
props: {
|
|
24
28
|
loadingTips: {
|
|
@@ -38,24 +42,26 @@ const l = {
|
|
|
38
42
|
default: "100%"
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
};
|
|
46
|
+
const __cssModules = {};
|
|
47
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
48
|
+
__vue2_script,
|
|
49
|
+
render,
|
|
50
|
+
staticRenderFns,
|
|
51
|
+
false,
|
|
52
|
+
__vue2_injectStyles,
|
|
48
53
|
null,
|
|
49
54
|
null,
|
|
50
55
|
null
|
|
51
56
|
);
|
|
52
|
-
function
|
|
53
|
-
for (let
|
|
54
|
-
this[
|
|
57
|
+
function __vue2_injectStyles(context) {
|
|
58
|
+
for (let o in __cssModules) {
|
|
59
|
+
this[o] = __cssModules[o];
|
|
60
|
+
}
|
|
55
61
|
}
|
|
56
|
-
const
|
|
57
|
-
return
|
|
62
|
+
const LoadingView = /* @__PURE__ */ function() {
|
|
63
|
+
return __component__.exports;
|
|
58
64
|
}();
|
|
59
65
|
export {
|
|
60
|
-
|
|
66
|
+
LoadingView as default
|
|
61
67
|
};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.loading-view {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
color: #909399;
|
|
15
|
+
font-size: 20px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
}
|
|
@@ -1,52 +1,62 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
1
|
+
import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
|
|
2
|
+
var render = function() {
|
|
3
|
+
var _vm = this;
|
|
4
|
+
var _h = _vm.$createElement;
|
|
5
|
+
var _c = _vm._self._c || _h;
|
|
6
|
+
return _c("div", {
|
|
5
7
|
staticClass: "nav-bar"
|
|
6
|
-
}, [
|
|
8
|
+
}, [_vm.showBack ? _c("ElButton", {
|
|
7
9
|
attrs: {
|
|
8
|
-
type: "text",
|
|
9
|
-
icon: "el-icon-arrow-left"
|
|
10
|
+
"type": "text",
|
|
11
|
+
"icon": "el-icon-arrow-left"
|
|
10
12
|
},
|
|
11
13
|
on: {
|
|
12
|
-
click:
|
|
14
|
+
"click": _vm.goBack
|
|
13
15
|
}
|
|
14
|
-
}, [
|
|
16
|
+
}, [_vm._v(" 返回 ")]) : _vm._e(), _vm.$slots.right ? _c("div", {
|
|
15
17
|
staticClass: "flex-item flex-row-column vertical-center"
|
|
16
|
-
}, [
|
|
17
|
-
}
|
|
18
|
-
|
|
18
|
+
}, [_vm._t("right")], 2) : _vm._e()], 1);
|
|
19
|
+
};
|
|
20
|
+
var staticRenderFns = [];
|
|
21
|
+
const NavBar_vue_vue_type_style_index_0_lang = "";
|
|
22
|
+
const __vue2_script = {
|
|
19
23
|
name: "NavBar",
|
|
20
24
|
props: {
|
|
21
25
|
onGoBack: Function,
|
|
22
26
|
showBack: {
|
|
23
27
|
type: Boolean,
|
|
24
|
-
default:
|
|
28
|
+
default: true
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
methods: {
|
|
28
32
|
goBack() {
|
|
29
|
-
|
|
33
|
+
if (this.onGoBack) {
|
|
34
|
+
this.onGoBack();
|
|
35
|
+
} else {
|
|
36
|
+
this.$router.back();
|
|
37
|
+
}
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
};
|
|
41
|
+
const __cssModules = {};
|
|
42
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
43
|
+
__vue2_script,
|
|
44
|
+
render,
|
|
45
|
+
staticRenderFns,
|
|
46
|
+
false,
|
|
47
|
+
__vue2_injectStyles,
|
|
39
48
|
null,
|
|
40
49
|
null,
|
|
41
50
|
null
|
|
42
51
|
);
|
|
43
|
-
function
|
|
44
|
-
for (let
|
|
45
|
-
this[
|
|
52
|
+
function __vue2_injectStyles(context) {
|
|
53
|
+
for (let o in __cssModules) {
|
|
54
|
+
this[o] = __cssModules[o];
|
|
55
|
+
}
|
|
46
56
|
}
|
|
47
|
-
const
|
|
48
|
-
return
|
|
57
|
+
const NavBar = /* @__PURE__ */ function() {
|
|
58
|
+
return __component__.exports;
|
|
49
59
|
}();
|
|
50
60
|
export {
|
|
51
|
-
|
|
61
|
+
NavBar as default
|
|
52
62
|
};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.nav-bar {
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
display: flex;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 40px;
|
|
12
|
+
background-color: #fff;
|
|
13
|
+
border-bottom: 1px #eee solid;
|
|
14
|
+
}
|
|
15
|
+
.nav-bar .el-button--text {
|
|
16
|
+
margin-left: 12px;
|
|
17
|
+
}
|