@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
@@ -0,0 +1,248 @@
1
+ import { isObject, isString, hasOwn, isPlainObject, isArray, camelize, isFunction } from "@web-utils/core";
2
+ import Vue from "vue";
3
+ const util = "";
4
+ const getClass = (customClass, fixedClass) => {
5
+ if (isPlainObject(customClass) || isString(customClass)) {
6
+ return [fixedClass, customClass];
7
+ } else if (isArray(customClass)) {
8
+ return [fixedClass, ...customClass];
9
+ } else {
10
+ return [fixedClass];
11
+ }
12
+ };
13
+ function getInternetExplorerVersion() {
14
+ const ua = window.navigator.userAgent;
15
+ const msie = ua.indexOf("MSIE ");
16
+ if (msie > 0) {
17
+ return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie)), 10);
18
+ }
19
+ const trident = ua.indexOf("Trident/");
20
+ if (trident > 0) {
21
+ const rv = ua.indexOf("rv:");
22
+ return parseInt(ua.substring(rv + 3, ua.indexOf(".", rv)), 10);
23
+ }
24
+ const edge = ua.indexOf("Edge/");
25
+ if (edge > 0) {
26
+ return parseInt(ua.substring(edge + 5, ua.indexOf(".", edge)), 10);
27
+ }
28
+ return -1;
29
+ }
30
+ function assignReactiveProperties(raw, properties) {
31
+ for (const propertiesKey in properties) {
32
+ Vue.set(raw, propertiesKey, properties[propertiesKey]);
33
+ }
34
+ return raw;
35
+ }
36
+ const findParent = (vm, predicate) => {
37
+ if (!vm || !predicate) {
38
+ return null;
39
+ }
40
+ let parent = vm;
41
+ while (parent && predicate(parent)) {
42
+ parent = parent.$parent;
43
+ }
44
+ return parent;
45
+ };
46
+ const elTableProperties = [
47
+ "data",
48
+ "height",
49
+ "max-height",
50
+ "stripe",
51
+ "border",
52
+ "size",
53
+ "fit",
54
+ "show-header",
55
+ "highlight-current-row",
56
+ "current-row-key",
57
+ "row-class-name",
58
+ "row-style",
59
+ "cell-class-name",
60
+ "cell-style",
61
+ "header-row-class-name",
62
+ "header-row-style",
63
+ "header-cell-class-name",
64
+ "header-cell-style",
65
+ "row-key",
66
+ "empty-text",
67
+ "default-expand-all",
68
+ "expand-row-keys",
69
+ "default-sort",
70
+ "tooltip-effect",
71
+ "show-summary",
72
+ "sum-text",
73
+ "summary-method",
74
+ "span-method",
75
+ "select-on-indeterminate ",
76
+ "indent",
77
+ "lazy",
78
+ "load",
79
+ "tree-props"
80
+ ];
81
+ const elTableEvents = [
82
+ "select",
83
+ "select-all",
84
+ "selection-change",
85
+ "cell-mouse-enter",
86
+ "cell-mouse-leave",
87
+ "cell-click",
88
+ "cell-dblclick",
89
+ "row-click",
90
+ "row-contextmenu",
91
+ "header-click",
92
+ "header-contextmenu",
93
+ "sort-change",
94
+ "filter-change",
95
+ "current-change",
96
+ "header-dragend",
97
+ "expand-change"
98
+ ];
99
+ const elTableColumnProperties = [
100
+ "type",
101
+ "index",
102
+ "column-key",
103
+ "label",
104
+ "prop",
105
+ "width",
106
+ "min-width",
107
+ "fixed",
108
+ "render-header",
109
+ "sortable",
110
+ "sort-method",
111
+ "sort-by",
112
+ "sort-orders",
113
+ "resizable",
114
+ "formatter",
115
+ "show-overflow-tooltip",
116
+ "align",
117
+ "header-align",
118
+ "class-name",
119
+ "label-class-name",
120
+ "selectable",
121
+ "reserve-selection",
122
+ "filters",
123
+ "filter-placement",
124
+ "filter-multiple",
125
+ "filter-method",
126
+ "filtered-value"
127
+ ];
128
+ const elTreeProperties = [
129
+ "data",
130
+ "empty-text",
131
+ "node-key",
132
+ "props",
133
+ "render-after-expand",
134
+ "load",
135
+ "render-content",
136
+ "highlight-current",
137
+ "default-expand-all",
138
+ "expand-on-click-node",
139
+ "check-on-click-node",
140
+ "auto-expand-parent",
141
+ "default-expanded-keys",
142
+ "show-checkbox",
143
+ "check-strictly",
144
+ "default-checked-keys",
145
+ "current-node-key",
146
+ "filter-node-method",
147
+ "accordion",
148
+ "indent",
149
+ "icon-class",
150
+ "lazy",
151
+ "draggable",
152
+ "allow-drag",
153
+ "allow-drop"
154
+ ];
155
+ const elTreeEvents = [
156
+ "node-click",
157
+ "node-contextmenu",
158
+ "check-change",
159
+ "check",
160
+ "current-change",
161
+ "node-expand",
162
+ "node-collapse",
163
+ "node-drag-start",
164
+ "node-drag-enter",
165
+ "node-drag-leave",
166
+ "node-drag-over",
167
+ "node-drag-end",
168
+ "node-drop"
169
+ ];
170
+ const filterProperties = (obj, allowProperties, allow = true) => {
171
+ if (isObject(obj)) {
172
+ let arr = allowProperties;
173
+ if (isString(allowProperties)) {
174
+ arr = arr.split(",");
175
+ }
176
+ const temp = {};
177
+ arr.forEach((key) => {
178
+ if (hasOwn(obj, key)) {
179
+ if (allow) {
180
+ temp[key] = obj[key];
181
+ } else {
182
+ if (!arr.includes(key)) {
183
+ temp[key] = obj[key];
184
+ }
185
+ }
186
+ }
187
+ });
188
+ return temp;
189
+ }
190
+ return obj;
191
+ };
192
+ const normalizeProps = (attrs) => {
193
+ const props = {};
194
+ for (const attrsKey in attrs) {
195
+ props[camelize(attrsKey)] = attrs[attrsKey];
196
+ }
197
+ return props;
198
+ };
199
+ const filterTableProperties = (obj) => {
200
+ return filterProperties(obj, elTableProperties);
201
+ };
202
+ const filterTableColumnProperties = (obj) => {
203
+ return filterProperties(obj, elTableColumnProperties);
204
+ };
205
+ const filterTableEvents = (obj) => {
206
+ return filterProperties(obj, elTableEvents);
207
+ };
208
+ const filterTreeProperties = (obj) => {
209
+ return filterProperties(obj, elTreeProperties);
210
+ };
211
+ const filterTreeEvents = (obj) => {
212
+ return filterProperties(obj, elTreeEvents);
213
+ };
214
+ const pathArgReplacer = (path = "", row) => {
215
+ const rw = row || {};
216
+ const p = path || "";
217
+ return p.replace(/{(.*?)}/g, (_, key) => {
218
+ if (key.indexOf(":")) {
219
+ const [k, defaultVal] = key.split(":");
220
+ return rw[k] ? rw[k] : defaultVal;
221
+ } else {
222
+ return rw[key] || "";
223
+ }
224
+ });
225
+ };
226
+ const fillPath = (path, args) => {
227
+ if (isFunction(path)) {
228
+ return pathArgReplacer(path(args), args);
229
+ } else if (isString(path)) {
230
+ return pathArgReplacer(path, args);
231
+ } else {
232
+ return null;
233
+ }
234
+ };
235
+ export {
236
+ filterTreeProperties as a,
237
+ filterTreeEvents as b,
238
+ assignReactiveProperties as c,
239
+ filterTableProperties as d,
240
+ filterTableEvents as e,
241
+ filterTableColumnProperties as f,
242
+ getInternetExplorerVersion as g,
243
+ getClass as h,
244
+ filterProperties as i,
245
+ findParent as j,
246
+ fillPath as k,
247
+ normalizeProps as n
248
+ };
@@ -0,0 +1,24 @@
1
+ import { f as formItemMixin } from "./5d33812d.js";
2
+ import { i as filterProperties } from "./c69d5628.js";
3
+ const formInputMixin = {
4
+ mixins: [formItemMixin],
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 === true ? this.message : this.placeholder;
13
+ },
14
+ listeners() {
15
+ return filterProperties(this.$listeners, "input", false);
16
+ },
17
+ inputDisabled() {
18
+ return this.disabled;
19
+ }
20
+ }
21
+ };
22
+ export {
23
+ formInputMixin as f
24
+ };
@@ -1,9 +1,10 @@
1
- const t = {
1
+ const uploaderMixin = {
2
2
  inject: ["uploader"]
3
- }, p = {
3
+ };
4
+ const supportMixin = {
4
5
  data() {
5
6
  return {
6
- support: !0
7
+ support: true
7
8
  };
8
9
  },
9
10
  mounted() {
@@ -11,6 +12,6 @@ const t = {
11
12
  }
12
13
  };
13
14
  export {
14
- p as s,
15
- t as u
15
+ supportMixin as s,
16
+ uploaderMixin as u
16
17
  };
@@ -1,43 +1,47 @@
1
- import { n as l } from "../../chunks/5d4282fb.js";
2
- var r = function() {
3
- var e = this, a = e.$createElement, t = e._self._c || a;
4
- return t("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: "address-input-wrapper flex-row"
6
- }, [t("div", {
8
+ }, [_c("div", {
7
9
  staticClass: "address-input-item-wrapper"
8
- }, [t("ElCascader", {
10
+ }, [_c("ElCascader", {
9
11
  attrs: {
10
- options: e.options,
11
- disabled: e.inputDisabled,
12
- props: {
12
+ "options": _vm.options,
13
+ "disabled": _vm.inputDisabled,
14
+ "props": {
13
15
  label: "name",
14
- value: e.labelAsValue ? "name" : "id"
16
+ value: _vm.labelAsValue ? "name" : "id"
15
17
  }
16
18
  },
17
19
  model: {
18
- value: e.internalVal.address,
19
- callback: function(s) {
20
- e.$set(e.internalVal, "address", s);
20
+ value: _vm.internalVal.address,
21
+ callback: function($$v) {
22
+ _vm.$set(_vm.internalVal, "address", $$v);
21
23
  },
22
24
  expression: "internalVal.address"
23
25
  }
24
- })], 1), t("div", {
26
+ })], 1), _c("div", {
25
27
  staticClass: "address-input-item-wrapper flex-item"
26
- }, [t("ElInput", {
28
+ }, [_c("ElInput", {
27
29
  attrs: {
28
- placeholder: "请输入详细地址!",
29
- disabled: e.inputDisabled
30
+ "placeholder": "请输入详细地址!",
31
+ "disabled": _vm.inputDisabled
30
32
  },
31
33
  model: {
32
- value: e.internalVal.detailAddress,
33
- callback: function(s) {
34
- e.$set(e.internalVal, "detailAddress", s);
34
+ value: _vm.internalVal.detailAddress,
35
+ callback: function($$v) {
36
+ _vm.$set(_vm.internalVal, "detailAddress", $$v);
35
37
  },
36
38
  expression: "internalVal.detailAddress"
37
39
  }
38
40
  })], 1)]);
39
- }, n = [];
40
- const i = {
41
+ };
42
+ var staticRenderFns = [];
43
+ const AddressInput_vue_vue_type_style_index_0_lang = "";
44
+ const __vue2_script = {
41
45
  name: "AddressInput",
42
46
  inject: {
43
47
  elForm: {
@@ -76,38 +80,47 @@ const i = {
76
80
  },
77
81
  watch: {
78
82
  value: {
79
- immediate: !0,
80
- deep: !0,
81
- handler(e) {
82
- e && (this.internalVal.address = e.address, this.internalVal.detailAddress = e.detailAddress);
83
+ immediate: true,
84
+ deep: true,
85
+ handler(newVal) {
86
+ if (newVal) {
87
+ this.internalVal.address = newVal.address;
88
+ this.internalVal.detailAddress = newVal.detailAddress;
89
+ }
83
90
  }
84
91
  },
85
92
  internalVal: {
86
- immediate: !0,
87
- deep: !0,
88
- handler(e) {
89
- !e.address && !e.detailAddress ? this.$emit("input", void 0) : this.$emit("input", e);
93
+ immediate: true,
94
+ deep: true,
95
+ handler(newVal) {
96
+ if (!newVal.address && !newVal.detailAddress) {
97
+ this.$emit("input", void 0);
98
+ } else {
99
+ this.$emit("input", newVal);
100
+ }
90
101
  }
91
102
  }
92
103
  }
93
- }, d = {};
94
- var u = /* @__PURE__ */ l(
95
- i,
96
- r,
97
- n,
98
- !1,
99
- o,
104
+ };
105
+ const __cssModules = {};
106
+ var __component__ = /* @__PURE__ */ normalizeComponent(
107
+ __vue2_script,
108
+ render,
109
+ staticRenderFns,
110
+ false,
111
+ __vue2_injectStyles,
100
112
  null,
101
113
  null,
102
114
  null
103
115
  );
104
- function o(e) {
105
- for (let a in d)
106
- this[a] = d[a];
116
+ function __vue2_injectStyles(context) {
117
+ for (let o in __cssModules) {
118
+ this[o] = __cssModules[o];
119
+ }
107
120
  }
108
- const c = /* @__PURE__ */ function() {
109
- return u.exports;
121
+ const AddressInput = /* @__PURE__ */ function() {
122
+ return __component__.exports;
110
123
  }();
111
124
  export {
112
- c as default
125
+ AddressInput as default
113
126
  };
@@ -1 +1,15 @@
1
- .address-input-wrapper{width:100%}.address-input-item-wrapper{padding-right:5px}.address-input-item-wrapper .el-cascader,.address-input-item-wrapper .el-input{width:100%}
1
+ /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
+ /* 应用头部高度 */
3
+ /* 页面宽度 */
4
+ /* 侧栏宽度 */
5
+ /* 标签高度 */
6
+ /* 页面头部工具条高度 */
7
+ .address-input-wrapper {
8
+ width: 100%;
9
+ }
10
+ .address-input-item-wrapper {
11
+ padding-right: 5px;
12
+ }
13
+ .address-input-item-wrapper .el-cascader, .address-input-item-wrapper .el-input {
14
+ width: 100%;
15
+ }
@@ -1,33 +1,37 @@
1
- import { n as a } from "../../chunks/5d4282fb.js";
2
- var o = function() {
3
- var e = this, t = e.$createElement, s = e._self._c || t;
4
- return s("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
  staticStyle: {
6
8
  "padding-top": "4px"
7
9
  }
8
- }, e._l(e.menu, function(n) {
9
- return s("div", {
10
- key: n.key,
10
+ }, _vm._l(_vm.menu, function(item) {
11
+ return _c("div", {
12
+ key: item.key,
11
13
  staticClass: "aside-menu-item hover-active",
12
14
  class: {
13
- active: e.$route.path === n.path
15
+ active: _vm.$route.path === item.path
14
16
  },
15
17
  on: {
16
- click: function(l) {
17
- return e.$router.push(n.path);
18
+ "click": function($event) {
19
+ return _vm.$router.push(item.path);
18
20
  }
19
21
  }
20
- }, [e._t("default", function() {
21
- return [s("i", {
22
+ }, [_vm._t("default", function() {
23
+ return [_c("i", {
22
24
  staticClass: "egd-icon-common",
23
- class: n.icon
24
- }), e._v(" " + e._s(n.label) + " ")];
25
+ class: item.icon
26
+ }), _vm._v(" " + _vm._s(item.label) + " ")];
25
27
  }, {
26
- item: n
28
+ "item": item
27
29
  })], 2);
28
30
  }), 0);
29
- }, c = [];
30
- const u = {
31
+ };
32
+ var staticRenderFns = [];
33
+ const AsideMenu_vue_vue_type_style_index_0_lang = "";
34
+ const __vue2_script = {
31
35
  name: "AsideMenu",
32
36
  props: {
33
37
  menu: {
@@ -35,24 +39,26 @@ const u = {
35
39
  default: () => []
36
40
  }
37
41
  }
38
- }, r = {};
39
- var i = /* @__PURE__ */ a(
40
- u,
41
- o,
42
- c,
43
- !1,
44
- _,
42
+ };
43
+ const __cssModules = {};
44
+ var __component__ = /* @__PURE__ */ normalizeComponent(
45
+ __vue2_script,
46
+ render,
47
+ staticRenderFns,
48
+ false,
49
+ __vue2_injectStyles,
45
50
  null,
46
51
  null,
47
52
  null
48
53
  );
49
- function _(e) {
50
- for (let t in r)
51
- this[t] = r[t];
54
+ function __vue2_injectStyles(context) {
55
+ for (let o in __cssModules) {
56
+ this[o] = __cssModules[o];
57
+ }
52
58
  }
53
- const p = /* @__PURE__ */ function() {
54
- return i.exports;
59
+ const AsideMenu = /* @__PURE__ */ function() {
60
+ return __component__.exports;
55
61
  }();
56
62
  export {
57
- p as default
63
+ AsideMenu as default
58
64
  };
@@ -1 +1,9 @@
1
- .aside-menu-item{padding:8px 10px}
1
+ /* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
2
+ /* 应用头部高度 */
3
+ /* 页面宽度 */
4
+ /* 侧栏宽度 */
5
+ /* 标签高度 */
6
+ /* 页面头部工具条高度 */
7
+ .aside-menu-item {
8
+ padding: 8px 10px;
9
+ }
@@ -1,6 +1,6 @@
1
- import { isFunction as i, error as r } from "@web-utils/core";
2
- import { n as a } from "../../chunks/5d4282fb.js";
3
- const l = {
1
+ import { isFunction, error } from "@web-utils/core";
2
+ import { n as normalizeComponent } from "../../chunks/3d28cc08.js";
3
+ const props = {
4
4
  props: {
5
5
  type: {
6
6
  type: String,
@@ -21,9 +21,10 @@ const l = {
21
21
  autofocus: Boolean,
22
22
  round: Boolean
23
23
  }
24
- }, c = {
24
+ };
25
+ const __vue2_script = {
25
26
  name: "AwesomeButton",
26
- mixins: [l],
27
+ mixins: [props],
27
28
  props: {
28
29
  text: {
29
30
  type: String,
@@ -32,51 +33,53 @@ const l = {
32
33
  },
33
34
  data() {
34
35
  return {
35
- isLoading: !1
36
+ isLoading: false
36
37
  };
37
38
  },
38
39
  methods: {
39
40
  async onClick(e) {
40
- this.isLoading = !0;
41
- const { click: t } = this.$listeners;
42
- if (i(t))
41
+ this.isLoading = true;
42
+ const { click } = this.$listeners;
43
+ if (isFunction(click)) {
43
44
  try {
44
- await t(e);
45
- } catch (o) {
46
- r.call(this, o);
45
+ await click(e);
46
+ } catch (e2) {
47
+ error.call(this, e2);
47
48
  }
48
- this.isLoading = !1;
49
+ }
50
+ this.isLoading = false;
49
51
  }
50
52
  },
51
- render(e) {
52
- var o, n;
53
- const t = (n = (o = this.$scopedSlots).default) == null ? void 0 : n.call(o);
54
- return e(
53
+ render(createElement) {
54
+ var _a, _b;
55
+ const vNode = (_b = (_a = this.$scopedSlots).default) == null ? void 0 : _b.call(_a);
56
+ return createElement(
55
57
  "ElButton",
56
58
  { on: { click: this.onClick }, props: { ...this.$props, disabled: this.isLoading } },
57
- t && (t[0].tag || t[0].text) ? t : this.text
59
+ vNode && (vNode[0].tag || vNode[0].text) ? vNode : this.text
58
60
  );
59
61
  }
60
62
  };
61
- let u, p;
62
- const s = {};
63
- var d = /* @__PURE__ */ a(
64
- c,
65
- u,
66
- p,
67
- !1,
68
- _,
63
+ let __vue2_render, __vue2_staticRenderFns;
64
+ const __cssModules = {};
65
+ var __component__ = /* @__PURE__ */ normalizeComponent(
66
+ __vue2_script,
67
+ __vue2_render,
68
+ __vue2_staticRenderFns,
69
+ false,
70
+ __vue2_injectStyles,
69
71
  null,
70
72
  null,
71
73
  null
72
74
  );
73
- function _(e) {
74
- for (let t in s)
75
- this[t] = s[t];
75
+ function __vue2_injectStyles(context) {
76
+ for (let o in __cssModules) {
77
+ this[o] = __cssModules[o];
78
+ }
76
79
  }
77
- const h = /* @__PURE__ */ function() {
78
- return d.exports;
80
+ const AwesomeButton = /* @__PURE__ */ function() {
81
+ return __component__.exports;
79
82
  }();
80
83
  export {
81
- h as default
84
+ AwesomeButton as default
82
85
  };