@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
|
@@ -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
|
|
1
|
+
const uploaderMixin = {
|
|
2
2
|
inject: ["uploader"]
|
|
3
|
-
}
|
|
3
|
+
};
|
|
4
|
+
const supportMixin = {
|
|
4
5
|
data() {
|
|
5
6
|
return {
|
|
6
|
-
support:
|
|
7
|
+
support: true
|
|
7
8
|
};
|
|
8
9
|
},
|
|
9
10
|
mounted() {
|
|
@@ -11,6 +12,6 @@ const t = {
|
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
supportMixin as s,
|
|
16
|
+
uploaderMixin as u
|
|
16
17
|
};
|
|
@@ -1,43 +1,47 @@
|
|
|
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: "address-input-wrapper flex-row"
|
|
6
|
-
}, [
|
|
8
|
+
}, [_c("div", {
|
|
7
9
|
staticClass: "address-input-item-wrapper"
|
|
8
|
-
}, [
|
|
10
|
+
}, [_c("ElCascader", {
|
|
9
11
|
attrs: {
|
|
10
|
-
options:
|
|
11
|
-
disabled:
|
|
12
|
-
props: {
|
|
12
|
+
"options": _vm.options,
|
|
13
|
+
"disabled": _vm.inputDisabled,
|
|
14
|
+
"props": {
|
|
13
15
|
label: "name",
|
|
14
|
-
value:
|
|
16
|
+
value: _vm.labelAsValue ? "name" : "id"
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
model: {
|
|
18
|
-
value:
|
|
19
|
-
callback: function(
|
|
20
|
-
|
|
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),
|
|
26
|
+
})], 1), _c("div", {
|
|
25
27
|
staticClass: "address-input-item-wrapper flex-item"
|
|
26
|
-
}, [
|
|
28
|
+
}, [_c("ElInput", {
|
|
27
29
|
attrs: {
|
|
28
|
-
placeholder: "请输入详细地址!",
|
|
29
|
-
disabled:
|
|
30
|
+
"placeholder": "请输入详细地址!",
|
|
31
|
+
"disabled": _vm.inputDisabled
|
|
30
32
|
},
|
|
31
33
|
model: {
|
|
32
|
-
value:
|
|
33
|
-
callback: function(
|
|
34
|
-
|
|
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
|
-
}
|
|
40
|
-
|
|
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:
|
|
80
|
-
deep:
|
|
81
|
-
handler(
|
|
82
|
-
|
|
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:
|
|
87
|
-
deep:
|
|
88
|
-
handler(
|
|
89
|
-
!
|
|
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
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
|
105
|
-
for (let
|
|
106
|
-
this[
|
|
116
|
+
function __vue2_injectStyles(context) {
|
|
117
|
+
for (let o in __cssModules) {
|
|
118
|
+
this[o] = __cssModules[o];
|
|
119
|
+
}
|
|
107
120
|
}
|
|
108
|
-
const
|
|
109
|
-
return
|
|
121
|
+
const AddressInput = /* @__PURE__ */ function() {
|
|
122
|
+
return __component__.exports;
|
|
110
123
|
}();
|
|
111
124
|
export {
|
|
112
|
-
|
|
125
|
+
AddressInput as default
|
|
113
126
|
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
staticStyle: {
|
|
6
8
|
"padding-top": "4px"
|
|
7
9
|
}
|
|
8
|
-
},
|
|
9
|
-
return
|
|
10
|
-
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:
|
|
15
|
+
active: _vm.$route.path === item.path
|
|
14
16
|
},
|
|
15
17
|
on: {
|
|
16
|
-
click: function(
|
|
17
|
-
return
|
|
18
|
+
"click": function($event) {
|
|
19
|
+
return _vm.$router.push(item.path);
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
}, [
|
|
21
|
-
return [
|
|
22
|
+
}, [_vm._t("default", function() {
|
|
23
|
+
return [_c("i", {
|
|
22
24
|
staticClass: "egd-icon-common",
|
|
23
|
-
class:
|
|
24
|
-
}),
|
|
25
|
+
class: item.icon
|
|
26
|
+
}), _vm._v(" " + _vm._s(item.label) + " ")];
|
|
25
27
|
}, {
|
|
26
|
-
item:
|
|
28
|
+
"item": item
|
|
27
29
|
})], 2);
|
|
28
30
|
}), 0);
|
|
29
|
-
}
|
|
30
|
-
|
|
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
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
50
|
-
for (let
|
|
51
|
-
this[
|
|
54
|
+
function __vue2_injectStyles(context) {
|
|
55
|
+
for (let o in __cssModules) {
|
|
56
|
+
this[o] = __cssModules[o];
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
|
-
const
|
|
54
|
-
return
|
|
59
|
+
const AsideMenu = /* @__PURE__ */ function() {
|
|
60
|
+
return __component__.exports;
|
|
55
61
|
}();
|
|
56
62
|
export {
|
|
57
|
-
|
|
63
|
+
AsideMenu as default
|
|
58
64
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isFunction
|
|
2
|
-
import { n as
|
|
3
|
-
const
|
|
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
|
-
}
|
|
24
|
+
};
|
|
25
|
+
const __vue2_script = {
|
|
25
26
|
name: "AwesomeButton",
|
|
26
|
-
mixins: [
|
|
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:
|
|
36
|
+
isLoading: false
|
|
36
37
|
};
|
|
37
38
|
},
|
|
38
39
|
methods: {
|
|
39
40
|
async onClick(e) {
|
|
40
|
-
this.isLoading =
|
|
41
|
-
const { click
|
|
42
|
-
if (
|
|
41
|
+
this.isLoading = true;
|
|
42
|
+
const { click } = this.$listeners;
|
|
43
|
+
if (isFunction(click)) {
|
|
43
44
|
try {
|
|
44
|
-
await
|
|
45
|
-
} catch (
|
|
46
|
-
|
|
45
|
+
await click(e);
|
|
46
|
+
} catch (e2) {
|
|
47
|
+
error.call(this, e2);
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
+
}
|
|
50
|
+
this.isLoading = false;
|
|
49
51
|
}
|
|
50
52
|
},
|
|
51
|
-
render(
|
|
52
|
-
var
|
|
53
|
-
const
|
|
54
|
-
return
|
|
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
|
-
|
|
59
|
+
vNode && (vNode[0].tag || vNode[0].text) ? vNode : this.text
|
|
58
60
|
);
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
|
-
let
|
|
62
|
-
const
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
|
74
|
-
for (let
|
|
75
|
-
this[
|
|
75
|
+
function __vue2_injectStyles(context) {
|
|
76
|
+
for (let o in __cssModules) {
|
|
77
|
+
this[o] = __cssModules[o];
|
|
78
|
+
}
|
|
76
79
|
}
|
|
77
|
-
const
|
|
78
|
-
return
|
|
80
|
+
const AwesomeButton = /* @__PURE__ */ function() {
|
|
81
|
+
return __component__.exports;
|
|
79
82
|
}();
|
|
80
83
|
export {
|
|
81
|
-
|
|
84
|
+
AwesomeButton as default
|
|
82
85
|
};
|