@web-utils/component 2.0.10 → 2.0.12

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.
Files changed (172) hide show
  1. package/dist/chunks/3d28cc08.js +57 -0
  2. package/dist/chunks/{41a066be.js → 44b78389.js} +8 -8
  3. package/dist/chunks/5d33812d.js +147 -0
  4. package/dist/chunks/{61ad06b2.js → 822300f3.js} +3 -3
  5. package/dist/chunks/9d848bf6.js +99 -0
  6. package/dist/chunks/a0bb327b.js +96 -0
  7. package/dist/chunks/a8891d2c.js +30 -0
  8. package/dist/chunks/c69d5628.js +248 -0
  9. package/dist/chunks/de9fe802.js +24 -0
  10. package/dist/chunks/{5a78e0db.js → e1939731.js} +6 -5
  11. package/dist/components/address-input/index.js +56 -43
  12. package/dist/components/address-input/style.css +15 -1
  13. package/dist/components/aside-menu/index.js +36 -30
  14. package/dist/components/aside-menu/style.css +9 -1
  15. package/dist/components/awesome-button/index.js +35 -32
  16. package/dist/components/base.css +66 -1
  17. package/dist/components/capsule-tab/index.js +33 -27
  18. package/dist/components/capsule-tab/style.css +32 -1
  19. package/dist/components/chunk-file-uploader/index.js +88 -54
  20. package/dist/components/chunk-file-uploader/style.css +4 -1
  21. package/dist/components/chunk-file-uploader-button/index.js +31 -25
  22. package/dist/components/chunk-file-uploader-button/style.css +17 -1
  23. package/dist/components/chunk-file-uploader-drop/index.js +42 -28
  24. package/dist/components/chunk-file-uploader-drop/style.css +12 -1
  25. package/dist/components/chunk-file-uploader-file/index.js +212 -134
  26. package/dist/components/chunk-file-uploader-file/style.css +125 -1
  27. package/dist/components/chunk-file-uploader-files/index.js +34 -28
  28. package/dist/components/chunk-file-uploader-files/style.css +9 -1
  29. package/dist/components/chunk-file-uploader-list/index.js +35 -29
  30. package/dist/components/chunk-file-uploader-list/style.css +9 -1
  31. package/dist/components/chunk-file-uploader-un-support/index.js +38 -30
  32. package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
  33. package/dist/components/code-mirror-editor/index.js +181 -153
  34. package/dist/components/code-mirror-editor/style.css +17 -1
  35. package/dist/components/color-picker/index.js +68 -49
  36. package/dist/components/confirm-button/index.js +21 -19
  37. package/dist/components/confirmable/index.js +19 -18
  38. package/dist/components/context-menu/index.js +130 -108
  39. package/dist/components/context-menu/style.css +88 -1
  40. package/dist/components/custom-scrollbar/index.js +67 -49
  41. package/dist/components/data-table-picker/index.js +81 -62
  42. package/dist/components/dynamic-table/index.js +113 -89
  43. package/dist/components/dynamic-table/style.css +30 -1
  44. package/dist/components/e-charts/index.js +201 -120
  45. package/dist/components/e-charts/style.css +10 -1
  46. package/dist/components/editable-progress/index.js +93 -60
  47. package/dist/components/editable-progress/style.css +37 -1
  48. package/dist/components/editable-tree/index.js +638 -423
  49. package/dist/components/editable-tree/style.css +82 -1
  50. package/dist/components/egd-collapse/index.js +46 -33
  51. package/dist/components/egd-collapse-item/index.js +76 -60
  52. package/dist/components/element-dialog/index.js +147 -95
  53. package/dist/components/element-dialog/style.css +102 -1
  54. package/dist/components/empty-view/index.js +34 -28
  55. package/dist/components/empty-view/style.css +17 -1
  56. package/dist/components/error-view/index.js +32 -26
  57. package/dist/components/error-view/style.css +17 -1
  58. package/dist/components/flex-column/index.js +40 -25
  59. package/dist/components/flex-item/index.js +57 -29
  60. package/dist/components/flex-row/index.js +40 -25
  61. package/dist/components/flex-scroller/index.js +32 -26
  62. package/dist/components/flex-scroller/style.css +20 -1
  63. package/dist/components/form-button/index.js +38 -34
  64. package/dist/components/form-cascader/index.js +81 -71
  65. package/dist/components/form-checkbox-group/index.js +113 -88
  66. package/dist/components/form-checkbox-group/style.css +51 -1
  67. package/dist/components/form-date-picker/index.js +132 -70
  68. package/dist/components/form-holder/index.js +39 -32
  69. package/dist/components/form-input/index.js +62 -56
  70. package/dist/components/form-input-email/index.js +60 -48
  71. package/dist/components/form-input-id-card/index.js +59 -53
  72. package/dist/components/form-input-number/index.js +68 -61
  73. package/dist/components/form-input-number/style.css +12 -1
  74. package/dist/components/form-input-phone-number/index.js +55 -49
  75. package/dist/components/form-input-time/index.js +59 -53
  76. package/dist/components/form-item/index.js +123 -80
  77. package/dist/components/form-item/style.css +11 -1
  78. package/dist/components/form-item-config-provider/index.js +26 -25
  79. package/dist/components/form-item-group/index.js +111 -85
  80. package/dist/components/form-item-group/style.css +30 -1
  81. package/dist/components/form-radio-group/index.js +104 -85
  82. package/dist/components/form-radio-group/style.css +53 -1
  83. package/dist/components/form-select/index.js +91 -76
  84. package/dist/components/form-switch/index.js +57 -51
  85. package/dist/components/form-textarea/index.js +57 -51
  86. package/dist/components/form-view/index.js +232 -165
  87. package/dist/components/form-view/style.css +158 -1
  88. package/dist/components/guide-steps/index.js +58 -44
  89. package/dist/components/guide-steps/style.css +34 -1
  90. package/dist/components/icon-card/index.js +35 -29
  91. package/dist/components/icon-card/style.css +56 -1
  92. package/dist/components/iframe-window/index.js +35 -29
  93. package/dist/components/iframe-window/style.css +20 -1
  94. package/dist/components/image-viewer/index.js +66 -48
  95. package/dist/components/image-viewer/style.css +21 -1
  96. package/dist/components/input-number/index.js +193 -127
  97. package/dist/components/input-number/style.css +15 -1
  98. package/dist/components/input-number-range/index.js +57 -45
  99. package/dist/components/input-number-range/style.css +12 -1
  100. package/dist/components/j-s-x-component/index.js +4 -4
  101. package/dist/components/keep-view-alive/index.js +120 -73
  102. package/dist/components/loading-view/index.js +32 -26
  103. package/dist/components/loading-view/style.css +17 -1
  104. package/dist/components/nav-bar/index.js +37 -27
  105. package/dist/components/nav-bar/style.css +17 -1
  106. package/dist/components/not-implement/index.js +31 -23
  107. package/dist/components/not-implement/style.css +15 -1
  108. package/dist/components/page/index.js +28 -22
  109. package/dist/components/page/style.css +12 -1
  110. package/dist/components/page-header/index.js +36 -30
  111. package/dist/components/page-header/style.css +14 -1
  112. package/dist/components/page-index/index.js +83 -62
  113. package/dist/components/page-index/style.css +23 -1
  114. package/dist/components/page-index-top/index.js +68 -53
  115. package/dist/components/page-skeleton/index.js +37 -31
  116. package/dist/components/page-skeleton/style.css +23 -1
  117. package/dist/components/page-skeleton-new/index.js +48 -42
  118. package/dist/components/page-skeleton-new/style.css +42 -1
  119. package/dist/components/pageable-table/index.js +253 -186
  120. package/dist/components/pageable-table/style.css +72 -1
  121. package/dist/components/pageable-view/index.js +199 -129
  122. package/dist/components/pageable-view/style.css +69 -1
  123. package/dist/components/photo-swipe/index.js +151 -110
  124. package/dist/components/photo-swipe/style.css +20 -1
  125. package/dist/components/resize-observer/index.js +68 -34
  126. package/dist/components/resize-observer/style.css +31 -1
  127. package/dist/components/search-popover/index.js +211 -153
  128. package/dist/components/search-popover/style.css +93 -1
  129. package/dist/components/sign-panel/index.js +142 -92
  130. package/dist/components/sign-panel/style.css +97 -1
  131. package/dist/components/split-pane/index.js +162 -101
  132. package/dist/components/split-pane/style.css +100 -1
  133. package/dist/components/stateful/index.js +34 -31
  134. package/dist/components/stateful/style.css +33 -1
  135. package/dist/components/static-pageable-table/index.js +44 -37
  136. package/dist/components/static-pageable-table/style.css +9 -1
  137. package/dist/components/swiper/index.js +150 -85
  138. package/dist/components/swiper/style.css +43 -1
  139. package/dist/components/tab/index.js +72 -54
  140. package/dist/components/tab/style.css +122 -1
  141. package/dist/components/tab-item/index.js +35 -30
  142. package/dist/components/table-column/index.js +32 -30
  143. package/dist/components/table-view/index.js +227 -156
  144. package/dist/components/table-view/style.css +95 -1
  145. package/dist/components/tag-render/index.js +58 -44
  146. package/dist/components/tag-render/style.css +33 -1
  147. package/dist/components/tinymce-editor/index.js +95 -79
  148. package/dist/components/tinymce-editor/style.css +43 -1
  149. package/dist/components/tinymce-wrapper/index.js +121 -92
  150. package/dist/components/tinymce-wrapper/style.css +36 -1
  151. package/dist/components/toolbar/index.js +84 -63
  152. package/dist/components/toolbar/style.css +39 -1
  153. package/dist/components/toolbar-button/index.js +48 -41
  154. package/dist/components/toolbar-button/style.css +21 -1
  155. package/dist/components/trigger/index.js +36 -29
  156. package/dist/components/vue-tags-input/index.js +308 -188
  157. package/dist/components/vue-tags-input/style.css +682 -1
  158. package/dist/components/watermark/index.js +37 -25
  159. package/dist/components/watermark/style.css +11 -1
  160. package/dist/components/x-dialog/index.js +93 -67
  161. package/dist/components/x-dialog/style.css +15 -1
  162. package/dist/index.css +1105 -193
  163. package/dist/index.es.js +7242 -4789
  164. package/package.json +2 -2
  165. package/web-types.json +1 -1
  166. package/dist/chunks/3a79781b.js +0 -75
  167. package/dist/chunks/5d4282fb.js +0 -30
  168. package/dist/chunks/76680a03.js +0 -24
  169. package/dist/chunks/8c0142e0.js +0 -81
  170. package/dist/chunks/97652d86.js +0 -26
  171. package/dist/chunks/b4acd3a6.js +0 -126
  172. package/dist/chunks/f71045fc.js +0 -184
@@ -1,57 +1,61 @@
1
- import { isNotEmpty as i } from "@web-utils/core";
2
- import { n as o } from "../../chunks/5d4282fb.js";
3
- var r = function() {
4
- var t = this, e = t.$createElement, n = t._self._c || e;
5
- return n("div", {
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
- }, [n("ElInputNumber", {
9
+ }, [_c("ElInputNumber", {
8
10
  staticClass: "flex-item",
9
11
  staticStyle: {
10
- width: "auto"
12
+ "width": "auto"
11
13
  },
12
14
  attrs: {
13
- controls: t.controls,
14
- disabled: t.disabled,
15
- size: "mini"
15
+ "controls": _vm.controls,
16
+ "disabled": _vm.disabled,
17
+ "size": "mini"
16
18
  },
17
19
  on: {
18
- input: t.emitInput
20
+ "input": _vm.emitInput
19
21
  },
20
22
  model: {
21
- value: t.val[0],
22
- callback: function(s) {
23
- t.$set(t.val, 0, s);
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
- }), n("span", {
29
+ }), _c("span", {
28
30
  staticStyle: {
29
- padding: "0 6px",
31
+ "padding": "0 6px",
30
32
  "font-size": "12px"
31
33
  }
32
- }, [t._v(t._s(t.separator))]), n("ElInputNumber", {
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: t.controls,
39
- disabled: t.disabled,
40
- size: "mini"
40
+ "controls": _vm.controls,
41
+ "disabled": _vm.disabled,
42
+ "size": "mini"
41
43
  },
42
44
  on: {
43
- input: t.emitInput
45
+ "input": _vm.emitInput
44
46
  },
45
47
  model: {
46
- value: t.val[1],
47
- callback: function(s) {
48
- t.$set(t.val, 1, s);
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
- }, l = [];
54
- const u = {
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: !0
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: !0,
79
- handler(t) {
80
- const e = [void 0, void 0];
81
- i(t == null ? void 0 : t[0]) && (e[0] = t[0]), i(t == null ? void 0 : t[1]) && (e[1] = t[1]), this.val = e;
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
- }, a = {};
91
- var d = /* @__PURE__ */ o(
92
- u,
93
- r,
94
- l,
95
- !1,
96
- c,
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 c(t) {
102
- for (let e in a)
103
- this[e] = a[e];
112
+ function __vue2_injectStyles(context) {
113
+ for (let o in __cssModules) {
114
+ this[o] = __cssModules[o];
115
+ }
104
116
  }
105
- const v = /* @__PURE__ */ function() {
106
- return d.exports;
117
+ const InputNumberRange = /* @__PURE__ */ function() {
118
+ return __component__.exports;
107
119
  }();
108
120
  export {
109
- v as default
121
+ InputNumberRange as default
110
122
  };
@@ -1 +1,12 @@
1
- .input-number-range{display:flex;flex-direction:row;align-items:center;width:100%}
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 e = {
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 t = arguments[0];
11
- return t("div", [this.msg]);
10
+ const h = arguments[0];
11
+ return h("div", [this.msg]);
12
12
  }
13
13
  };
14
14
  export {
15
- e as default
15
+ JSXComponent as default
16
16
  };
@@ -1,69 +1,89 @@
1
- import { n as _ } from "../../chunks/5d4282fb.js";
2
- const C = Object.prototype.toString;
3
- function d(e) {
4
- return e != null;
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 g(e) {
7
- return e.isComment && e.asyncFactory;
6
+ function isAsyncPlaceholder(node) {
7
+ return node.isComment && node.asyncFactory;
8
8
  }
9
- function v(e) {
10
- if (Array.isArray(e))
11
- for (let t = 0; t < e.length; t++) {
12
- const n = e[t];
13
- if (d(n) && (d(n.componentOptions) || g(n)))
14
- return n;
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 x(e) {
18
- return C.call(e) === "[object RegExp]";
19
+ function isRegExp(v) {
20
+ return _toString.call(v) === "[object RegExp]";
19
21
  }
20
- function f(e) {
21
- return e && (e.Ctor.options.name || e.tag);
22
+ function getComponentName(opts) {
23
+ return opts && (opts.Ctor.options.name || opts.tag);
22
24
  }
23
- function l(e, t) {
24
- return Array.isArray(e) ? e.indexOf(t) > -1 : typeof e == "string" ? e.split(",").indexOf(t) > -1 : x(e) ? e.test(t) : !1;
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 y(e, t) {
27
- if (e.length) {
28
- const n = e.indexOf(t);
29
- if (n > -1)
30
- return e.splice(n, 1);
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 p(e, t) {
34
- const { cache: n, keys: o, _vnode: c } = e;
35
- for (const i in n) {
36
- const s = n[i];
37
- if (s) {
38
- const a = s.name;
39
- a && !t(a) && h(n, i, o, c);
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 h(e, t, n, o) {
44
- const c = e[t];
45
- c && (!o || c.tag !== o.tag) && c.componentInstance.$destroy(), e[t] = null, y(n, t);
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 k = {
63
+ const __vue2_script = {
48
64
  name: "KeepViewAlive",
49
- abstract: !0,
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), this.keys = [];
72
+ this.cache = /* @__PURE__ */ Object.create(null);
73
+ this.keys = [];
57
74
  },
58
75
  destroyed() {
59
- for (const e in this.cache)
60
- h(this.cache, e, this.keys);
76
+ for (const key in this.cache) {
77
+ pruneCacheEntry(this.cache, key, this.keys);
78
+ }
61
79
  },
62
80
  mounted() {
63
- this.cacheVNode(), this.$watch("include", (e) => {
64
- p(this, (t) => l(e, t));
65
- }), this.$watch("exclude", (e) => {
66
- p(this, (t) => !l(e, t));
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: e, keys: t, vnodeToCache: n, keyToCache: o } = this;
75
- if (n) {
76
- const { tag: c, componentInstance: i, componentOptions: s } = n;
77
- e[o] = {
78
- name: f(s),
79
- tag: c,
80
- cid: s.Ctor.cid,
81
- componentInstance: i
82
- }, t.push(o), this.max && t.length > parseInt(this.max) && h(e, t[0], t, this._vnode), this.vnodeToCache = null;
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 e = this.$slots.default, t = v(e), n = t && t.componentOptions;
88
- if (n) {
89
- const o = f(n), { include: c, exclude: i } = this;
90
- if (c && (!o || !l(c, o)) || i && o && l(i, o))
91
- return t;
92
- const { cache: s, keys: a } = this, r = t.key == null ? n.Ctor.cid + (n.tag ? `::${n.tag}` : "") : t.key, u = s[r];
93
- u ? u.cid === n.Ctor.cid ? (t.componentInstance = u.componentInstance, y(a, r), a.push(r)) : (u.componentInstance.$destroy(), s[r] = null, this.vnodeToCache = t, this.keyToCache = r) : (this.vnodeToCache = t, this.keyToCache = r), t.data.keepAlive = !0;
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 t || e && e[0];
141
+ return vnode || slot && slot[0];
96
142
  }
97
143
  };
98
- let A, O;
99
- const m = {};
100
- var T = /* @__PURE__ */ _(
101
- k,
102
- A,
103
- O,
104
- !1,
105
- I,
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 I(e) {
111
- for (let t in m)
112
- this[t] = m[t];
156
+ function __vue2_injectStyles(context) {
157
+ for (let o in __cssModules) {
158
+ this[o] = __cssModules[o];
159
+ }
113
160
  }
114
- const b = /* @__PURE__ */ function() {
115
- return T.exports;
161
+ const KeepViewAlive = /* @__PURE__ */ function() {
162
+ return __component__.exports;
116
163
  }();
117
164
  export {
118
- b as default
165
+ KeepViewAlive as default
119
166
  };
@@ -1,24 +1,28 @@
1
- import { n as o } from "../../chunks/5d4282fb.js";
2
- var s = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
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: t.fontSize,
8
- height: t.height
9
+ fontSize: _vm.fontSize,
10
+ height: _vm.height
9
11
  }
10
- }, [t._t("default", function() {
11
- return [n("div", {
12
+ }, [_vm._t("default", function() {
13
+ return [_c("div", {
12
14
  staticClass: "flex-column horizon-center"
13
- }, [n("i", {
15
+ }, [_c("i", {
14
16
  staticClass: "el-icon-loading",
15
17
  style: {
16
- fontSize: t.iconSize
18
+ fontSize: _vm.iconSize
17
19
  }
18
- }), n("p", [t._v(t._s(t.loadingTips))])])];
20
+ }), _c("p", [_vm._v(_vm._s(_vm.loadingTips))])])];
19
21
  })], 2);
20
- }, a = [];
21
- const l = {
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
- }, i = {};
42
- var r = /* @__PURE__ */ o(
43
- l,
44
- s,
45
- a,
46
- !1,
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 _(t) {
53
- for (let e in i)
54
- this[e] = i[e];
57
+ function __vue2_injectStyles(context) {
58
+ for (let o in __cssModules) {
59
+ this[o] = __cssModules[o];
60
+ }
55
61
  }
56
- const u = /* @__PURE__ */ function() {
57
- return r.exports;
62
+ const LoadingView = /* @__PURE__ */ function() {
63
+ return __component__.exports;
58
64
  }();
59
65
  export {
60
- u as default
66
+ LoadingView as default
61
67
  };
@@ -1 +1,17 @@
1
- .loading-view{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#909399;font-size:20px;background-color:#fff}
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 a } from "../../chunks/5d4282fb.js";
2
- var r = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
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
- }, [t.showBack ? n("ElButton", {
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: t.goBack
14
+ "click": _vm.goBack
13
15
  }
14
- }, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? n("div", {
16
+ }, [_vm._v(" 返回 ")]) : _vm._e(), _vm.$slots.right ? _c("div", {
15
17
  staticClass: "flex-item flex-row-column vertical-center"
16
- }, [t._t("right")], 2) : t._e()], 1);
17
- }, s = [];
18
- const c = {
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: !0
28
+ default: true
25
29
  }
26
30
  },
27
31
  methods: {
28
32
  goBack() {
29
- this.onGoBack ? this.onGoBack() : this.$router.back();
33
+ if (this.onGoBack) {
34
+ this.onGoBack();
35
+ } else {
36
+ this.$router.back();
37
+ }
30
38
  }
31
39
  }
32
- }, o = {};
33
- var l = /* @__PURE__ */ a(
34
- c,
35
- r,
36
- s,
37
- !1,
38
- i,
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 i(t) {
44
- for (let e in o)
45
- this[e] = o[e];
52
+ function __vue2_injectStyles(context) {
53
+ for (let o in __cssModules) {
54
+ this[o] = __cssModules[o];
55
+ }
46
56
  }
47
- const u = /* @__PURE__ */ function() {
48
- return l.exports;
57
+ const NavBar = /* @__PURE__ */ function() {
58
+ return __component__.exports;
49
59
  }();
50
60
  export {
51
- u as default
61
+ NavBar as default
52
62
  };
@@ -1 +1,17 @@
1
- .nav-bar{flex-shrink:0;display:flex;width:100%;height:40px;background-color:#fff;border-bottom:1px #eee solid}.nav-bar .el-button--text{margin-left:12px}
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
+ }