@web-utils/component 2.0.13 → 2.7.0
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/config.46422d7f.js +73 -0
- package/dist/chunks/confirmable-mixin.3a79781b.js +75 -0
- package/dist/chunks/dataformat.fb35ee10.js +61 -0
- package/dist/chunks/detail.a3249549.js +28 -0
- package/dist/chunks/dic.5f7e3523.js +132 -0
- package/dist/chunks/event.50c365eb.js +235 -0
- package/dist/chunks/form-input-mixin.ff5b58f7.js +24 -0
- package/dist/chunks/form-item-mixin.79f6eaff.js +128 -0
- package/dist/chunks/{822300f3.js → form-pick-mixin.61ad06b2.js} +3 -3
- package/dist/chunks/init.352281f5.js +121 -0
- package/dist/chunks/{44b78389.js → input-number-mixin.41a066be.js} +8 -8
- package/dist/chunks/{e1939731.js → mixins.5a78e0db.js} +5 -6
- package/dist/chunks/packages.5d7a86c4.js +114 -0
- package/dist/chunks/permission.ce5d2121.js +16 -0
- package/dist/chunks/slot.1b8d2b1b.js +27 -0
- package/dist/chunks/tab-mixin.8c0142e0.js +81 -0
- package/dist/chunks/util.5053d54e.js +264 -0
- package/dist/chunks/utils.97652d86.js +26 -0
- package/dist/chunks/utils.fa73de78.js +185 -0
- package/dist/chunks/vueComponentNormalizer.71e2aa87.js +32 -0
- package/dist/components/address-input/index.js +43 -56
- package/dist/components/address-input/style.css +1 -15
- package/dist/components/affix/index.js +102 -0
- package/dist/components/affix/style.css +1 -0
- package/dist/components/array/index.js +156 -0
- package/dist/components/array/style.css +1 -0
- package/dist/components/article/index.js +93 -0
- package/dist/components/article/style.css +1 -0
- package/dist/components/aside-menu/index.js +30 -36
- package/dist/components/aside-menu/style.css +1 -9
- package/dist/components/avatar/index.js +106 -0
- package/dist/components/avatar/style.css +1 -0
- package/dist/components/awesome-button/index.js +32 -35
- package/dist/components/base.css +1 -66
- package/dist/components/capsule-tab/index.js +27 -33
- package/dist/components/capsule-tab/style.css +1 -32
- package/dist/components/card/index.js +130 -0
- package/dist/components/card/style.css +1 -0
- package/dist/components/carousel/index.js +70 -0
- package/dist/components/carousel/style.css +1 -0
- package/dist/components/chat/index.js +567 -0
- package/dist/components/chat/style.css +1 -0
- package/dist/components/chunk-file-uploader/index.js +54 -88
- package/dist/components/chunk-file-uploader/style.css +1 -4
- package/dist/components/chunk-file-uploader-button/index.js +25 -31
- package/dist/components/chunk-file-uploader-button/style.css +1 -17
- package/dist/components/chunk-file-uploader-drop/index.js +28 -42
- package/dist/components/chunk-file-uploader-drop/style.css +1 -12
- package/dist/components/chunk-file-uploader-file/index.js +134 -211
- package/dist/components/chunk-file-uploader-file/style.css +1 -125
- package/dist/components/chunk-file-uploader-files/index.js +28 -34
- package/dist/components/chunk-file-uploader-files/style.css +1 -9
- package/dist/components/chunk-file-uploader-list/index.js +29 -35
- package/dist/components/chunk-file-uploader-list/style.css +1 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +30 -38
- package/dist/components/chunk-file-uploader-un-support/style.css +1 -6
- package/dist/components/code/index.js +66 -0
- package/dist/components/code-mirror-editor/index.js +156 -181
- package/dist/components/code-mirror-editor/style.css +1 -17
- package/dist/components/color-picker/index.js +49 -68
- package/dist/components/column/index.js +114 -0
- package/dist/components/column-default/index.js +105 -0
- package/dist/components/column-dynamic/index.js +93 -0
- package/dist/components/column-menu/index.js +286 -0
- package/dist/components/column-slot/index.js +265 -0
- package/dist/components/comment/index.js +94 -0
- package/dist/components/comment/style.css +1 -0
- package/dist/components/confirm-button/index.js +19 -21
- package/dist/components/confirmable/index.js +18 -19
- package/dist/components/context-menu/index.js +118 -130
- package/dist/components/context-menu/style.css +1 -88
- package/dist/components/count-up/index.js +120 -0
- package/dist/components/custom-scrollbar/index.js +50 -68
- package/dist/components/data-box/index.js +97 -0
- package/dist/components/data-box/style.css +1 -0
- package/dist/components/data-card/index.js +98 -0
- package/dist/components/data-card/style.css +1 -0
- package/dist/components/data-cardtext/index.js +82 -0
- package/dist/components/data-cardtext/style.css +1 -0
- package/dist/components/data-display/index.js +93 -0
- package/dist/components/data-display/style.css +1 -0
- package/dist/components/data-icons/index.js +104 -0
- package/dist/components/data-icons/style.css +1 -0
- package/dist/components/data-imgtext/index.js +106 -0
- package/dist/components/data-imgtext/style.css +1 -0
- package/dist/components/data-operatext/index.js +99 -0
- package/dist/components/data-operatext/style.css +1 -0
- package/dist/components/data-panel/index.js +93 -0
- package/dist/components/data-panel/style.css +1 -0
- package/dist/components/data-pay/index.js +149 -0
- package/dist/components/data-pay/style.css +1 -0
- package/dist/components/data-price/index.js +84 -0
- package/dist/components/data-price/style.css +1 -0
- package/dist/components/data-progress/index.js +97 -0
- package/dist/components/data-progress/style.css +1 -0
- package/dist/components/data-rotate/index.js +96 -0
- package/dist/components/data-rotate/style.css +1 -0
- package/dist/components/data-table-picker/index.js +62 -81
- package/dist/components/data-tabs/index.js +94 -0
- package/dist/components/data-tabs/style.css +1 -0
- package/dist/components/dialog-column/index.js +138 -0
- package/dist/components/dialog-excel/index.js +214 -0
- package/dist/components/dialog-filter/index.js +245 -0
- package/dist/components/dialog-form/index.js +275 -0
- package/dist/components/draggable/index.js +384 -0
- package/dist/components/draggable/style.css +1 -0
- package/dist/components/dynamic-table/index.js +89 -113
- package/dist/components/dynamic-table/style.css +1 -30
- package/dist/components/e-charts/index.js +126 -201
- package/dist/components/e-charts/style.css +1 -10
- package/dist/components/editable-progress/index.js +60 -93
- package/dist/components/editable-progress/style.css +1 -37
- package/dist/components/editable-tree/index.js +423 -638
- package/dist/components/editable-tree/style.css +1 -82
- package/dist/components/egd-collapse/index.js +33 -46
- package/dist/components/egd-collapse-item/index.js +60 -76
- package/dist/components/element-dialog/index.js +95 -147
- package/dist/components/element-dialog/style.css +1 -102
- package/dist/components/empty/index.js +59 -0
- package/dist/components/empty/style.css +1 -0
- package/dist/components/empty-view/index.js +28 -34
- package/dist/components/empty-view/style.css +1 -17
- package/dist/components/error-view/index.js +26 -32
- package/dist/components/error-view/style.css +1 -17
- package/dist/components/flex-column/index.js +25 -40
- package/dist/components/flex-item/index.js +29 -57
- package/dist/components/flex-row/index.js +25 -40
- package/dist/components/flex-scroller/index.js +26 -32
- package/dist/components/flex-scroller/style.css +1 -20
- package/dist/components/flow/index.js +278 -0
- package/dist/components/flow/style.css +1 -0
- package/dist/components/flow-node/index.js +102 -0
- package/dist/components/form-button/index.js +34 -38
- package/dist/components/form-cascader/index.js +71 -81
- package/dist/components/form-checkbox-group/index.js +88 -113
- package/dist/components/form-checkbox-group/style.css +1 -51
- package/dist/components/form-date-picker/index.js +70 -132
- package/dist/components/form-group/index.js +122 -0
- package/dist/components/form-group/style.css +1 -0
- package/dist/components/form-holder/index.js +53 -39
- package/dist/components/form-input/index.js +56 -62
- package/dist/components/form-input-email/index.js +48 -60
- package/dist/components/form-input-id-card/index.js +53 -59
- package/dist/components/form-input-number/index.js +61 -68
- package/dist/components/form-input-number/style.css +1 -12
- package/dist/components/form-input-phone-number/index.js +49 -55
- package/dist/components/form-input-time/index.js +53 -59
- package/dist/components/form-item/index.js +80 -123
- package/dist/components/form-item/style.css +1 -11
- package/dist/components/form-item-config-provider/index.js +25 -26
- package/dist/components/form-item-group/index.js +85 -111
- package/dist/components/form-item-group/style.css +1 -30
- package/dist/components/form-radio-group/index.js +85 -104
- package/dist/components/form-radio-group/style.css +1 -53
- package/dist/components/form-select/index.js +76 -91
- package/dist/components/form-switch/index.js +51 -57
- package/dist/components/form-temp/index.js +149 -0
- package/dist/components/form-textarea/index.js +51 -57
- package/dist/components/form-view/index.js +165 -232
- package/dist/components/form-view/style.css +1 -158
- package/dist/components/fy-cascader/index.js +132 -0
- package/dist/components/fy-checkbox/index.js +116 -0
- package/dist/components/fy-checkbox/style.css +1 -0
- package/dist/components/fy-curd/index.js +846 -0
- package/dist/components/fy-curd/style.css +1 -0
- package/dist/components/fy-date/index.js +84 -0
- package/dist/components/fy-date/style.css +1 -0
- package/dist/components/fy-dialog-form/index.js +278 -0
- package/dist/components/fy-dialog-form/style.css +1 -0
- package/dist/components/fy-dynamic/index.js +335 -0
- package/dist/components/fy-dynamic/style.css +1 -0
- package/dist/components/fy-form/index.js +754 -0
- package/dist/components/fy-form/style.css +1 -0
- package/dist/components/fy-form-menu/index.js +95 -0
- package/dist/components/fy-input/index.js +162 -0
- package/dist/components/fy-input-color/index.js +96 -0
- package/dist/components/fy-input-icon/index.js +161 -0
- package/dist/components/fy-input-icon/style.css +1 -0
- package/dist/components/fy-input-map/index.js +275 -0
- package/dist/components/fy-input-map/style.css +1 -0
- package/dist/components/fy-input-number/index.js +87 -0
- package/dist/components/fy-input-table/index.js +172 -0
- package/dist/components/fy-input-table/style.css +1 -0
- package/dist/components/fy-input-tree/index.js +265 -0
- package/dist/components/fy-input-tree/style.css +1 -0
- package/dist/components/fy-radio/index.js +68 -0
- package/dist/components/fy-radio/style.css +1 -0
- package/dist/components/fy-rate/index.js +105 -0
- package/dist/components/fy-rate/style.css +1 -0
- package/dist/components/fy-select/index.js +223 -0
- package/dist/components/fy-select/style.css +1 -0
- package/dist/components/fy-slider/index.js +79 -0
- package/dist/components/fy-switch/index.js +73 -0
- package/dist/components/fy-time/index.js +95 -0
- package/dist/components/fy-title/index.js +40 -0
- package/dist/components/fy-title/style.css +1 -0
- package/dist/components/fy-upload/index.js +704 -0
- package/dist/components/fy-upload/style.css +1 -0
- package/dist/components/guide-steps/index.js +44 -58
- package/dist/components/guide-steps/style.css +1 -34
- package/dist/components/header-menu/index.js +238 -0
- package/dist/components/header-search/index.js +246 -0
- package/dist/components/icon-card/index.js +29 -35
- package/dist/components/icon-card/style.css +1 -56
- package/dist/components/icon-temp/index.js +50 -0
- package/dist/components/icon-temp/style.css +1 -0
- package/dist/components/iframe-window/index.js +29 -35
- package/dist/components/iframe-window/style.css +1 -20
- package/dist/components/image-viewer/index.js +48 -66
- package/dist/components/image-viewer/style.css +1 -21
- package/dist/components/input-number/index.js +127 -193
- package/dist/components/input-number/style.css +1 -15
- package/dist/components/input-number-range/index.js +45 -57
- package/dist/components/input-number-range/style.css +1 -12
- package/dist/components/j-s-x-component/index.js +4 -4
- package/dist/components/keep-view-alive/index.js +77 -120
- package/dist/components/keyboard/index.js +389 -0
- package/dist/components/keyboard/style.css +1 -0
- package/dist/components/license/index.js +134 -0
- package/dist/components/loading-view/index.js +26 -32
- package/dist/components/loading-view/style.css +1 -17
- package/dist/components/login/index.js +244 -0
- package/dist/components/login/style.css +1 -0
- package/dist/components/name-avatar/index.js +66 -0
- package/dist/components/name-avatar/style.css +1 -0
- package/dist/components/nav-bar/index.js +27 -37
- package/dist/components/nav-bar/style.css +1 -17
- package/dist/components/not-implement/index.js +23 -31
- package/dist/components/not-implement/style.css +1 -15
- package/dist/components/notice/index.js +143 -0
- package/dist/components/notice/style.css +1 -0
- package/dist/components/page/index.js +22 -28
- package/dist/components/page/style.css +1 -12
- package/dist/components/page-header/index.js +30 -36
- package/dist/components/page-header/style.css +1 -14
- package/dist/components/page-index/index.js +62 -83
- package/dist/components/page-index/style.css +1 -23
- package/dist/components/page-index-top/index.js +53 -68
- package/dist/components/page-skeleton/index.js +31 -37
- package/dist/components/page-skeleton/style.css +1 -23
- package/dist/components/page-skeleton-new/index.js +42 -48
- package/dist/components/page-skeleton-new/style.css +1 -42
- package/dist/components/pageable-table/index.js +190 -253
- package/dist/components/pageable-table/style.css +1 -72
- package/dist/components/pageable-view/index.js +134 -199
- package/dist/components/pageable-view/style.css +1 -69
- package/dist/components/photo-swipe/index.js +116 -151
- package/dist/components/photo-swipe/style.css +1 -20
- package/dist/components/progress/index.js +60 -0
- package/dist/components/queue/index.js +76 -0
- package/dist/components/record-video/index.js +173 -0
- package/dist/components/record-video/style.css +1 -0
- package/dist/components/resize-observer/index.js +34 -68
- package/dist/components/resize-observer/style.css +1 -31
- package/dist/components/search/index.js +142 -0
- package/dist/components/search/style.css +1 -0
- package/dist/components/search-popover/index.js +153 -211
- package/dist/components/search-popover/style.css +1 -93
- package/dist/components/sign/index.js +128 -0
- package/dist/components/sign/style.css +1 -0
- package/dist/components/sign-panel/index.js +105 -142
- package/dist/components/sign-panel/style.css +1 -97
- package/dist/components/skeleton/index.js +82 -0
- package/dist/components/skeleton/style.css +1 -0
- package/dist/components/split-pane/index.js +107 -162
- package/dist/components/split-pane/style.css +1 -100
- package/dist/components/stateful/index.js +31 -34
- package/dist/components/stateful/style.css +1 -33
- package/dist/components/static-pageable-table/index.js +37 -44
- package/dist/components/static-pageable-table/style.css +1 -9
- package/dist/components/swiper/index.js +85 -150
- package/dist/components/swiper/style.css +1 -43
- package/dist/components/tab/index.js +56 -72
- package/dist/components/tab/style.css +1 -122
- package/dist/components/tab-item/index.js +30 -35
- package/dist/components/table-column/index.js +30 -32
- package/dist/components/table-page/index.js +129 -0
- package/dist/components/table-view/index.js +156 -227
- package/dist/components/table-view/style.css +1 -95
- package/dist/components/tabs/index.js +90 -0
- package/dist/components/tabs/style.css +0 -0
- package/dist/components/tag-render/index.js +44 -58
- package/dist/components/tag-render/style.css +1 -33
- package/dist/components/text-ellipsis/index.js +107 -0
- package/dist/components/text-ellipsis/style.css +1 -0
- package/dist/components/tinymce-editor/index.js +79 -95
- package/dist/components/tinymce-editor/style.css +1 -43
- package/dist/components/tinymce-wrapper/index.js +92 -121
- package/dist/components/tinymce-wrapper/style.css +1 -36
- package/dist/components/toolbar/index.js +63 -84
- package/dist/components/toolbar/style.css +1 -39
- package/dist/components/toolbar-button/index.js +41 -48
- package/dist/components/toolbar-button/style.css +1 -21
- package/dist/components/tree/index.js +427 -0
- package/dist/components/tree/style.css +1 -0
- package/dist/components/trigger/index.js +29 -36
- package/dist/components/verify/index.js +80 -0
- package/dist/components/verify/style.css +1 -0
- package/dist/components/vue-tags-input/index.js +305 -311
- package/dist/components/vue-tags-input/style.css +1 -682
- package/dist/components/watermark/index.js +43 -37
- package/dist/components/watermark/style.css +1 -11
- package/dist/index.css +4157 -1686
- package/dist/index.es.js +23131 -11014
- package/package.json +20 -4
- package/web-types.json +12777 -2788
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
- package/dist/components/x-dialog/index.js +0 -199
- package/dist/components/x-dialog/style.css +0 -15
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
const KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
|
|
2
|
+
rowKey: "id",
|
|
3
|
+
rowParentKey: "parentId",
|
|
4
|
+
nodeKey: "id",
|
|
5
|
+
label: "label",
|
|
6
|
+
value: "value",
|
|
7
|
+
desc: "desc",
|
|
8
|
+
groups: "groups",
|
|
9
|
+
title: "title",
|
|
10
|
+
leaf: "leaf",
|
|
11
|
+
children: "children",
|
|
12
|
+
hasChildren: "hasChildren",
|
|
13
|
+
labelText: "名称",
|
|
14
|
+
disabled: "disabled"
|
|
15
|
+
}, DIC_HTTP_PROPS = {
|
|
16
|
+
name: "name",
|
|
17
|
+
url: "url",
|
|
18
|
+
fileName: "file",
|
|
19
|
+
res: ""
|
|
20
|
+
}, DATE_LIST = [
|
|
21
|
+
"dates",
|
|
22
|
+
"date",
|
|
23
|
+
"datetime",
|
|
24
|
+
"datetimerange",
|
|
25
|
+
"daterange",
|
|
26
|
+
"time",
|
|
27
|
+
"timerange",
|
|
28
|
+
"week",
|
|
29
|
+
"month",
|
|
30
|
+
"monthrange",
|
|
31
|
+
"year"
|
|
32
|
+
], INPUT_LIST = ["tree", "number", "icon", "color", "table", "map"], ARRAY_LIST = ["img", "array", "url"], MULTIPLE_LIST = ["cascader", "tree", "select"], RANGE_LIST = ["slider"], ARRAY_VALUE_LIST = ARRAY_LIST.concat(["upload", "dynamic", "map", "checkbox", "cascader", "dynamic", "timerange", "monthrange", "daterange", "datetimerange", "dates"]), SELECT_LIST = DATE_LIST.concat(["select", "checkbox", "radio", "cascader", "tree", "color", "icon", "table", "map"]), DIC_SHOW_SPLIT = " | ", DIC_SPLIT = ",", typeList = {
|
|
33
|
+
img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
|
|
34
|
+
video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
|
|
35
|
+
audio: /\.(mp3|wav|MP3|WAV)/
|
|
36
|
+
}, isBlank = (e) => e instanceof Date || typeof e == "boolean" || typeof e == "number" ? !1 : e instanceof Array ? e.length === 0 : e instanceof Object ? Object.keys(e).length === 0 : e === "null" || e == null || e === "undefined" || e === void 0 || e === "", isMediaType = (e, r) => {
|
|
37
|
+
if (!isBlank(e))
|
|
38
|
+
return typeList.audio.test(e) || r === "audio" ? "audio" : typeList.video.test(e) || r === "video" ? "video" : typeList.img.test(e) || r === "img" ? "img" : !1;
|
|
39
|
+
};
|
|
40
|
+
function getFixed(e = 0, r = 2) {
|
|
41
|
+
return Number(e.toFixed(r));
|
|
42
|
+
}
|
|
43
|
+
function getAsVal(e, r = "") {
|
|
44
|
+
let n = deepClone(e);
|
|
45
|
+
return isBlank(r) || r.split(".").forEach((t) => {
|
|
46
|
+
n = isBlank(n[t]) ? "" : n[t];
|
|
47
|
+
}), n;
|
|
48
|
+
}
|
|
49
|
+
function setAsVal(obj, bind = "", value) {
|
|
50
|
+
let result, type = getObjType(value);
|
|
51
|
+
return isBlank(value) ? type === "array" ? result = `obj.${bind}=[]` : type === "object" ? result = `obj.${bind}={}` : ["number", "boolean"].includes(type) ? result = `obj.${bind}=undefined` : result = `obj.${bind}=''` : type === "string" ? result = `obj.${bind}='${value}'` : result = `obj.${bind}=${value}`, eval(result), obj;
|
|
52
|
+
}
|
|
53
|
+
function downFile(e, r) {
|
|
54
|
+
typeof e == "object" && e instanceof Blob && (e = URL.createObjectURL(e));
|
|
55
|
+
var n = document.createElement("a");
|
|
56
|
+
n.href = e, n.download = r || "";
|
|
57
|
+
var t;
|
|
58
|
+
window.MouseEvent ? t = new MouseEvent("click") : (t = document.createEvent("MouseEvents"), t.initMouseEvent(
|
|
59
|
+
"click",
|
|
60
|
+
!0,
|
|
61
|
+
!1,
|
|
62
|
+
window,
|
|
63
|
+
0,
|
|
64
|
+
0,
|
|
65
|
+
0,
|
|
66
|
+
0,
|
|
67
|
+
0,
|
|
68
|
+
!1,
|
|
69
|
+
!1,
|
|
70
|
+
!1,
|
|
71
|
+
!1,
|
|
72
|
+
0,
|
|
73
|
+
null
|
|
74
|
+
)), n.dispatchEvent(t);
|
|
75
|
+
}
|
|
76
|
+
function strCorNum(e) {
|
|
77
|
+
return e.forEach((r, n) => {
|
|
78
|
+
e[n] = Number(r);
|
|
79
|
+
}), e;
|
|
80
|
+
}
|
|
81
|
+
function extend() {
|
|
82
|
+
var e = arguments[0] || {}, r = !1, n = Array.prototype.slice.call(arguments), t = 1, a, i, l, o, s = !1;
|
|
83
|
+
for (typeof e == "boolean" && (r = e, t++, e = arguments[1]); t < n.length; t++)
|
|
84
|
+
if ((a = n[t]) != null)
|
|
85
|
+
for (l in a)
|
|
86
|
+
o = a[l], i = e[l], r && (toString.call(o) === "[object Object]" || (s = toString.call(o) === "[object Array]")) ? (s ? i = toString.call(i) === "[object Array]" ? i : [] : i = toString.call(i) === "[object Object]" ? i : {}, e[l] = extend(r, i, o)) : o !== void 0 && o !== i && (e[l] = o);
|
|
87
|
+
return e;
|
|
88
|
+
}
|
|
89
|
+
function createObj(e, r) {
|
|
90
|
+
let n = r.split("."), t = n.splice(0, 1)[0], a = {};
|
|
91
|
+
if (a[t] = {}, n.length >= 2) {
|
|
92
|
+
let i = "{", l = "}", o = "";
|
|
93
|
+
n.forEach((s) => {
|
|
94
|
+
o = `${o}${i}"${s}":`;
|
|
95
|
+
}), o = `${o}""`;
|
|
96
|
+
for (let s = 0; s < n.length; s++)
|
|
97
|
+
o = `${o}${l}`;
|
|
98
|
+
o = JSON.parse(o), a[t] = o;
|
|
99
|
+
}
|
|
100
|
+
return e = extend(!0, e, a), e;
|
|
101
|
+
}
|
|
102
|
+
function dataURLtoFile(e, r) {
|
|
103
|
+
let n = e.split(","), t = n[0].match(/:(.*?);/)[1], a = atob(n[1]), i = a.length, l = new Uint8Array(i);
|
|
104
|
+
for (; i--; )
|
|
105
|
+
l[i] = a.charCodeAt(i);
|
|
106
|
+
return new File([l], r, {
|
|
107
|
+
type: t
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function findObject(e, r, n = "prop") {
|
|
111
|
+
let t = -1, a = (() => {
|
|
112
|
+
let i;
|
|
113
|
+
return e.forEach((l) => {
|
|
114
|
+
l.column ? i = "group" : l.children && (i = "tree");
|
|
115
|
+
}), i;
|
|
116
|
+
})();
|
|
117
|
+
return a === "group" ? e.forEach((i) => {
|
|
118
|
+
const l = findArray(i.column, r, n, !0);
|
|
119
|
+
l !== -1 && (t = l);
|
|
120
|
+
}) : a === "tree" ? t = findLabelNode(e, r, { value: n }, !0) : t = findArray(e, r, n, !0), t;
|
|
121
|
+
}
|
|
122
|
+
function randomId() {
|
|
123
|
+
let e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", r = e.length, n = "";
|
|
124
|
+
for (let t = 0; t < 16; t++)
|
|
125
|
+
n += e.charAt(Math.floor(Math.random() * r));
|
|
126
|
+
return n;
|
|
127
|
+
}
|
|
128
|
+
const getObjType = (e) => {
|
|
129
|
+
var r = Object.prototype.toString, n = {
|
|
130
|
+
"[object Boolean]": "boolean",
|
|
131
|
+
"[object Number]": "number",
|
|
132
|
+
"[object String]": "string",
|
|
133
|
+
"[object Function]": "function",
|
|
134
|
+
"[object Array]": "array",
|
|
135
|
+
"[object Date]": "date",
|
|
136
|
+
"[object RegExp]": "regExp",
|
|
137
|
+
"[object Undefined]": "undefined",
|
|
138
|
+
"[object Null]": "null",
|
|
139
|
+
"[object Object]": "object"
|
|
140
|
+
};
|
|
141
|
+
return e instanceof Element ? "element" : n[r.call(e)];
|
|
142
|
+
}, deepClone = (e) => {
|
|
143
|
+
var r = getObjType(e), n;
|
|
144
|
+
if (r === "array")
|
|
145
|
+
n = [];
|
|
146
|
+
else if (r === "object")
|
|
147
|
+
n = {};
|
|
148
|
+
else
|
|
149
|
+
return e;
|
|
150
|
+
if (r === "array")
|
|
151
|
+
for (var t = 0, a = e.length; t < a; t++)
|
|
152
|
+
e[t] = (() => (e[t] === 0, e[t]))(), e[t] && delete e[t].$parent, n.push(deepClone(e[t]));
|
|
153
|
+
else if (r === "object")
|
|
154
|
+
for (var i in e)
|
|
155
|
+
e && delete e.$parent, n[i] = deepClone(e[i]);
|
|
156
|
+
return n;
|
|
157
|
+
}, setPx = (e, r = "") => (e || (e = r), e ? (e = e + "", e.indexOf("%") === -1 && e.indexOf("px") === -1 && (e = e + "px"), e) : ""), detailDataType = (e, r) => isBlank(e) ? e : r === "number" ? Number(e) : r === "string" ? e + "" : e, detailDic = (e = [], r = {}, n) => {
|
|
158
|
+
let t = r.value || DIC_PROPS.value, a = r.children || DIC_PROPS.children;
|
|
159
|
+
return e.forEach((i) => {
|
|
160
|
+
i[t] = detailDataType(i[t], n), i[a] && detailDic(i[a], r, n);
|
|
161
|
+
}), e;
|
|
162
|
+
}, findByValue = (e, r, n) => {
|
|
163
|
+
if (isBlank(e))
|
|
164
|
+
return r;
|
|
165
|
+
let t, a = r instanceof Array, i = a ? r : [r];
|
|
166
|
+
n = n || DIC_PROPS, t = [];
|
|
167
|
+
for (let l = 0; l < i.length; l++)
|
|
168
|
+
t.push(findLabelNode(e, i[l], n) || i[l]);
|
|
169
|
+
return a ? t.join(DIC_SHOW_SPLIT) : t.join();
|
|
170
|
+
}, filterParams = (e, r = ["", "$"], n = !0) => {
|
|
171
|
+
let t = n ? deepClone(e) : e;
|
|
172
|
+
for (let a in t)
|
|
173
|
+
r.includes("") && isBlank(t[a]) && delete t[a], r.includes("$") && a.indexOf("$") !== -1 && delete t[a];
|
|
174
|
+
return t;
|
|
175
|
+
}, detailDicGroup = (e = [], r = {}) => {
|
|
176
|
+
let n = deepClone(e), t = r[DIC_PROPS.groups] || DIC_PROPS.groups;
|
|
177
|
+
return e.forEach((a) => {
|
|
178
|
+
a[t] && (n = n.concat(a[t]));
|
|
179
|
+
}), n;
|
|
180
|
+
}, findLabelNode = (e, r, n, t) => {
|
|
181
|
+
let a;
|
|
182
|
+
t || (e = detailDicGroup(e, n));
|
|
183
|
+
let i = (l) => {
|
|
184
|
+
const o = n.label || DIC_PROPS.label, s = n.value || DIC_PROPS.value, f = n.children || DIC_PROPS.children;
|
|
185
|
+
for (let u = 0; u < l.length; u++) {
|
|
186
|
+
const c = l[u], d = c[f] || [];
|
|
187
|
+
c[s] === r ? a = t ? c : c[o] : i(d);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
return i(e), a;
|
|
191
|
+
}, getDeepData = (e) => (Array.isArray(e) ? e : e.data) || [], getObjValue = (e, r = "", n) => {
|
|
192
|
+
const t = r.split(".");
|
|
193
|
+
let a = e;
|
|
194
|
+
return t[0] === "" && n !== "object" ? getDeepData(e) : (t[0] !== "" && t.forEach((i) => {
|
|
195
|
+
a = a[i];
|
|
196
|
+
}), a);
|
|
197
|
+
}, findArray = (e, r, n, t) => {
|
|
198
|
+
n = n || DIC_PROPS.value;
|
|
199
|
+
for (let a = 0; a < e.length; a++)
|
|
200
|
+
if (e[a][n] === r)
|
|
201
|
+
return t ? e[a] : a;
|
|
202
|
+
return -1;
|
|
203
|
+
}, getPasswordChar = (e = "", r) => {
|
|
204
|
+
let n = e.toString().length;
|
|
205
|
+
e = "";
|
|
206
|
+
for (let t = 0; t < n; t++)
|
|
207
|
+
e = e + r;
|
|
208
|
+
return e;
|
|
209
|
+
}, arraySort = (e = [], r, n) => e.filter((t) => !isBlank(t[r])).sort((t, a) => n(t, a)).concat(e.filter((t) => isBlank(t[r]))), clearVal = (e, r, n = []) => e ? (r.forEach((t) => {
|
|
210
|
+
if (!n.includes(t)) {
|
|
211
|
+
if (t.includes("$"))
|
|
212
|
+
delete e[t];
|
|
213
|
+
else if (!isBlank(e[t])) {
|
|
214
|
+
let a = getObjType(e[t]);
|
|
215
|
+
a === "array" ? e[t] = [] : a === "object" ? e[t] = {} : ["number", "boolean"].includes(a) ? e[t] = void 0 : e[t] = "";
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}), e) : {}, optVal = (e, r) => typeof e == "boolean" ? e : isBlank(e) ? r : e;
|
|
219
|
+
function uploadFun(e = {}, r) {
|
|
220
|
+
r = r || this;
|
|
221
|
+
let n = ["uploadPreview", "uploadBefore", "uploadAfter", "uploadDelete", "uploadError", "uploadExceed"], t = {};
|
|
222
|
+
return e.type === "upload" ? n.forEach((a) => {
|
|
223
|
+
e[a] || (t[a] = r[a]);
|
|
224
|
+
}) : n.forEach((a) => {
|
|
225
|
+
t[a] = r[a];
|
|
226
|
+
}), t;
|
|
227
|
+
}
|
|
228
|
+
export {
|
|
229
|
+
ARRAY_VALUE_LIST as A,
|
|
230
|
+
arraySort as B,
|
|
231
|
+
dataURLtoFile as C,
|
|
232
|
+
DIC_HTTP_PROPS as D,
|
|
233
|
+
INPUT_LIST as I,
|
|
234
|
+
KEY_COMPONENT_NAME as K,
|
|
235
|
+
MULTIPLE_LIST as M,
|
|
236
|
+
RANGE_LIST as R,
|
|
237
|
+
SELECT_LIST as S,
|
|
238
|
+
DIC_PROPS as a,
|
|
239
|
+
DIC_SPLIT as b,
|
|
240
|
+
isBlank as c,
|
|
241
|
+
detailDataType as d,
|
|
242
|
+
ARRAY_LIST as e,
|
|
243
|
+
findObject as f,
|
|
244
|
+
createObj as g,
|
|
245
|
+
DATE_LIST as h,
|
|
246
|
+
isMediaType as i,
|
|
247
|
+
getFixed as j,
|
|
248
|
+
deepClone as k,
|
|
249
|
+
setAsVal as l,
|
|
250
|
+
getAsVal as m,
|
|
251
|
+
filterParams as n,
|
|
252
|
+
optVal as o,
|
|
253
|
+
clearVal as p,
|
|
254
|
+
strCorNum as q,
|
|
255
|
+
randomId as r,
|
|
256
|
+
setPx as s,
|
|
257
|
+
DIC_SHOW_SPLIT as t,
|
|
258
|
+
uploadFun as u,
|
|
259
|
+
getPasswordChar as v,
|
|
260
|
+
findByValue as w,
|
|
261
|
+
detailDic as x,
|
|
262
|
+
getObjValue as y,
|
|
263
|
+
downFile as z
|
|
264
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function c(r) {
|
|
2
|
+
const n = Math.floor(r / 31536e3);
|
|
3
|
+
if (n)
|
|
4
|
+
return `${n} 年${o(n)}`;
|
|
5
|
+
const t = Math.floor((r %= 31536e3) / 86400);
|
|
6
|
+
if (t)
|
|
7
|
+
return `${t} 天${o(t)}`;
|
|
8
|
+
const s = Math.floor((r %= 86400) / 3600);
|
|
9
|
+
if (s)
|
|
10
|
+
return `${s} 时${o(s)}`;
|
|
11
|
+
const e = Math.floor((r %= 3600) / 60);
|
|
12
|
+
if (e)
|
|
13
|
+
return `${e} 分${o(e)}`;
|
|
14
|
+
const u = r % 60;
|
|
15
|
+
return `${u} 秒${o(u)}`;
|
|
16
|
+
function o(a) {
|
|
17
|
+
return a > 1, "";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function f(r) {
|
|
21
|
+
return r.replace(/[A-Z]/g, (n) => `-${n.toLowerCase()}`);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
f as k,
|
|
25
|
+
c as s
|
|
26
|
+
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { isObject as u, isString as a, hasOwn as f, isPlainObject as p, isArray as h, camelize as g, isFunction as m } from "@web-utils/core";
|
|
2
|
+
import x from "vue";
|
|
3
|
+
const T = (e, r) => p(e) || a(e) ? [r, e] : h(e) ? [r, ...e] : [r];
|
|
4
|
+
function E() {
|
|
5
|
+
const e = window.navigator.userAgent, r = e.indexOf("MSIE ");
|
|
6
|
+
if (r > 0)
|
|
7
|
+
return parseInt(e.substring(r + 5, e.indexOf(".", r)), 10);
|
|
8
|
+
if (e.indexOf("Trident/") > 0) {
|
|
9
|
+
const o = e.indexOf("rv:");
|
|
10
|
+
return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
|
|
11
|
+
}
|
|
12
|
+
const l = e.indexOf("Edge/");
|
|
13
|
+
return l > 0 ? parseInt(e.substring(l + 5, e.indexOf(".", l)), 10) : -1;
|
|
14
|
+
}
|
|
15
|
+
function z(e, r) {
|
|
16
|
+
for (const t in r)
|
|
17
|
+
x.set(e, t, r[t]);
|
|
18
|
+
return e;
|
|
19
|
+
}
|
|
20
|
+
const I = (e, r) => {
|
|
21
|
+
if (!e || !r)
|
|
22
|
+
return null;
|
|
23
|
+
let t = e;
|
|
24
|
+
for (; t && r(t); )
|
|
25
|
+
t = t.$parent;
|
|
26
|
+
return t;
|
|
27
|
+
}, w = [
|
|
28
|
+
"data",
|
|
29
|
+
"height",
|
|
30
|
+
"max-height",
|
|
31
|
+
"stripe",
|
|
32
|
+
"border",
|
|
33
|
+
"size",
|
|
34
|
+
"fit",
|
|
35
|
+
"show-header",
|
|
36
|
+
"highlight-current-row",
|
|
37
|
+
"current-row-key",
|
|
38
|
+
"row-class-name",
|
|
39
|
+
"row-style",
|
|
40
|
+
"cell-class-name",
|
|
41
|
+
"cell-style",
|
|
42
|
+
"header-row-class-name",
|
|
43
|
+
"header-row-style",
|
|
44
|
+
"header-cell-class-name",
|
|
45
|
+
"header-cell-style",
|
|
46
|
+
"row-key",
|
|
47
|
+
"empty-text",
|
|
48
|
+
"default-expand-all",
|
|
49
|
+
"expand-row-keys",
|
|
50
|
+
"default-sort",
|
|
51
|
+
"tooltip-effect",
|
|
52
|
+
"show-summary",
|
|
53
|
+
"sum-text",
|
|
54
|
+
"summary-method",
|
|
55
|
+
"span-method",
|
|
56
|
+
"select-on-indeterminate ",
|
|
57
|
+
"indent",
|
|
58
|
+
"lazy",
|
|
59
|
+
"load",
|
|
60
|
+
"tree-props"
|
|
61
|
+
], b = [
|
|
62
|
+
"select",
|
|
63
|
+
"select-all",
|
|
64
|
+
"selection-change",
|
|
65
|
+
"cell-mouse-enter",
|
|
66
|
+
"cell-mouse-leave",
|
|
67
|
+
"cell-click",
|
|
68
|
+
"cell-dblclick",
|
|
69
|
+
"row-click",
|
|
70
|
+
"row-contextmenu",
|
|
71
|
+
// 'row-dblclick',
|
|
72
|
+
"header-click",
|
|
73
|
+
"header-contextmenu",
|
|
74
|
+
"sort-change",
|
|
75
|
+
"filter-change",
|
|
76
|
+
"current-change",
|
|
77
|
+
"header-dragend",
|
|
78
|
+
"expand-change"
|
|
79
|
+
], y = [
|
|
80
|
+
"type",
|
|
81
|
+
"index",
|
|
82
|
+
"column-key",
|
|
83
|
+
"label",
|
|
84
|
+
"prop",
|
|
85
|
+
"width",
|
|
86
|
+
"min-width",
|
|
87
|
+
"fixed",
|
|
88
|
+
"render-header",
|
|
89
|
+
"sortable",
|
|
90
|
+
"sort-method",
|
|
91
|
+
"sort-by",
|
|
92
|
+
"sort-orders",
|
|
93
|
+
"resizable",
|
|
94
|
+
"formatter",
|
|
95
|
+
"show-overflow-tooltip",
|
|
96
|
+
"align",
|
|
97
|
+
"header-align",
|
|
98
|
+
"class-name",
|
|
99
|
+
"label-class-name",
|
|
100
|
+
"selectable",
|
|
101
|
+
"reserve-selection",
|
|
102
|
+
"filters",
|
|
103
|
+
"filter-placement",
|
|
104
|
+
"filter-multiple",
|
|
105
|
+
"filter-method",
|
|
106
|
+
"filtered-value"
|
|
107
|
+
], k = [
|
|
108
|
+
"data",
|
|
109
|
+
"empty-text",
|
|
110
|
+
"node-key",
|
|
111
|
+
"props",
|
|
112
|
+
"render-after-expand",
|
|
113
|
+
"load",
|
|
114
|
+
"render-content",
|
|
115
|
+
"highlight-current",
|
|
116
|
+
"default-expand-all",
|
|
117
|
+
"expand-on-click-node",
|
|
118
|
+
"check-on-click-node",
|
|
119
|
+
"auto-expand-parent",
|
|
120
|
+
"default-expanded-keys",
|
|
121
|
+
"show-checkbox",
|
|
122
|
+
"check-strictly",
|
|
123
|
+
"default-checked-keys",
|
|
124
|
+
"current-node-key",
|
|
125
|
+
"filter-node-method",
|
|
126
|
+
"accordion",
|
|
127
|
+
"indent",
|
|
128
|
+
"icon-class",
|
|
129
|
+
"lazy",
|
|
130
|
+
"draggable",
|
|
131
|
+
"allow-drag",
|
|
132
|
+
"allow-drop"
|
|
133
|
+
], v = [
|
|
134
|
+
"node-click",
|
|
135
|
+
"node-contextmenu",
|
|
136
|
+
"check-change",
|
|
137
|
+
"check",
|
|
138
|
+
"current-change",
|
|
139
|
+
"node-expand",
|
|
140
|
+
"node-collapse",
|
|
141
|
+
"node-drag-start",
|
|
142
|
+
"node-drag-enter",
|
|
143
|
+
"node-drag-leave",
|
|
144
|
+
"node-drag-over",
|
|
145
|
+
"node-drag-end",
|
|
146
|
+
"node-drop"
|
|
147
|
+
], s = (e, r, t = !0) => {
|
|
148
|
+
if (u(e)) {
|
|
149
|
+
let l = r;
|
|
150
|
+
a(r) && (l = l.split(","));
|
|
151
|
+
const o = {};
|
|
152
|
+
return l.forEach((n) => {
|
|
153
|
+
f(e, n) && (t ? o[n] = e[n] : l.includes(n) || (o[n] = e[n]));
|
|
154
|
+
}), o;
|
|
155
|
+
}
|
|
156
|
+
return e;
|
|
157
|
+
}, A = (e) => {
|
|
158
|
+
const r = {};
|
|
159
|
+
for (const t in e)
|
|
160
|
+
r[g(t)] = e[t];
|
|
161
|
+
return r;
|
|
162
|
+
}, V = (e) => s(e, w), K = (e) => s(e, y), R = (e) => s(e, b), S = (e) => s(e, k), F = (e) => s(e, v), c = (e = "", r) => {
|
|
163
|
+
const t = r || {};
|
|
164
|
+
return (e || "").replace(/{(.*?)}/g, (o, n) => {
|
|
165
|
+
if (n.indexOf(":")) {
|
|
166
|
+
const [i, d] = n.split(":");
|
|
167
|
+
return t[i] ? t[i] : d;
|
|
168
|
+
} else
|
|
169
|
+
return t[n] || "";
|
|
170
|
+
});
|
|
171
|
+
}, M = (e, r) => m(e) ? c(e(r), r) : a(e) ? c(e, r) : null;
|
|
172
|
+
export {
|
|
173
|
+
S as a,
|
|
174
|
+
F as b,
|
|
175
|
+
z as c,
|
|
176
|
+
V as d,
|
|
177
|
+
R as e,
|
|
178
|
+
K as f,
|
|
179
|
+
E as g,
|
|
180
|
+
T as h,
|
|
181
|
+
s as i,
|
|
182
|
+
I as j,
|
|
183
|
+
M as k,
|
|
184
|
+
A as n
|
|
185
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function v(r, a, d, h, i, t, f, u) {
|
|
2
|
+
var e = typeof r == "function" ? r.options : r;
|
|
3
|
+
a && (e.render = a, e.staticRenderFns = d, e._compiled = !0), h && (e.functional = !0), t && (e._scopeId = "data-v-" + t);
|
|
4
|
+
var o;
|
|
5
|
+
if (f ? (o = function(n) {
|
|
6
|
+
n = n || // cached call
|
|
7
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
8
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
|
|
9
|
+
}, e._ssrRegister = o) : i && (o = u ? function() {
|
|
10
|
+
i.call(
|
|
11
|
+
this,
|
|
12
|
+
(e.functional ? this.parent : this).$root.$options.shadowRoot
|
|
13
|
+
);
|
|
14
|
+
} : i), o)
|
|
15
|
+
if (e.functional) {
|
|
16
|
+
e._injectStyles = o;
|
|
17
|
+
var l = e.render;
|
|
18
|
+
e.render = function(p, _) {
|
|
19
|
+
return o.call(_), l(p, _);
|
|
20
|
+
};
|
|
21
|
+
} else {
|
|
22
|
+
var s = e.beforeCreate;
|
|
23
|
+
e.beforeCreate = s ? [].concat(s, o) : [o];
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
exports: r,
|
|
27
|
+
options: e
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
v as n
|
|
32
|
+
};
|
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _c = _vm._self._c || _h;
|
|
6
|
-
return _c("div", {
|
|
1
|
+
import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
|
|
2
|
+
var r = function() {
|
|
3
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
4
|
+
return t("div", {
|
|
7
5
|
staticClass: "address-input-wrapper flex-row"
|
|
8
|
-
}, [
|
|
6
|
+
}, [t("div", {
|
|
9
7
|
staticClass: "address-input-item-wrapper"
|
|
10
|
-
}, [
|
|
8
|
+
}, [t("ElCascader", {
|
|
11
9
|
attrs: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
options: e.options,
|
|
11
|
+
disabled: e.inputDisabled,
|
|
12
|
+
props: {
|
|
15
13
|
label: "name",
|
|
16
|
-
value:
|
|
14
|
+
value: e.labelAsValue ? "name" : "id"
|
|
17
15
|
}
|
|
18
16
|
},
|
|
19
17
|
model: {
|
|
20
|
-
value:
|
|
21
|
-
callback: function(
|
|
22
|
-
|
|
18
|
+
value: e.internalVal.address,
|
|
19
|
+
callback: function(s) {
|
|
20
|
+
e.$set(e.internalVal, "address", s);
|
|
23
21
|
},
|
|
24
22
|
expression: "internalVal.address"
|
|
25
23
|
}
|
|
26
|
-
})], 1),
|
|
24
|
+
})], 1), t("div", {
|
|
27
25
|
staticClass: "address-input-item-wrapper flex-item"
|
|
28
|
-
}, [
|
|
26
|
+
}, [t("ElInput", {
|
|
29
27
|
attrs: {
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
placeholder: "请输入详细地址!",
|
|
29
|
+
disabled: e.inputDisabled
|
|
32
30
|
},
|
|
33
31
|
model: {
|
|
34
|
-
value:
|
|
35
|
-
callback: function(
|
|
36
|
-
|
|
32
|
+
value: e.internalVal.detailAddress,
|
|
33
|
+
callback: function(s) {
|
|
34
|
+
e.$set(e.internalVal, "detailAddress", s);
|
|
37
35
|
},
|
|
38
36
|
expression: "internalVal.detailAddress"
|
|
39
37
|
}
|
|
40
38
|
})], 1)]);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
const AddressInput_vue_vue_type_style_index_0_lang = "";
|
|
44
|
-
const __vue2_script = {
|
|
39
|
+
}, n = [];
|
|
40
|
+
const i = {
|
|
45
41
|
name: "AddressInput",
|
|
46
42
|
inject: {
|
|
47
43
|
elForm: {
|
|
@@ -80,47 +76,38 @@ const __vue2_script = {
|
|
|
80
76
|
},
|
|
81
77
|
watch: {
|
|
82
78
|
value: {
|
|
83
|
-
immediate:
|
|
84
|
-
deep:
|
|
85
|
-
handler(
|
|
86
|
-
|
|
87
|
-
this.internalVal.address = newVal.address;
|
|
88
|
-
this.internalVal.detailAddress = newVal.detailAddress;
|
|
89
|
-
}
|
|
79
|
+
immediate: !0,
|
|
80
|
+
deep: !0,
|
|
81
|
+
handler(e) {
|
|
82
|
+
e && (this.internalVal.address = e.address, this.internalVal.detailAddress = e.detailAddress);
|
|
90
83
|
}
|
|
91
84
|
},
|
|
92
85
|
internalVal: {
|
|
93
|
-
immediate:
|
|
94
|
-
deep:
|
|
95
|
-
handler(
|
|
96
|
-
|
|
97
|
-
this.$emit("input", void 0);
|
|
98
|
-
} else {
|
|
99
|
-
this.$emit("input", newVal);
|
|
100
|
-
}
|
|
86
|
+
immediate: !0,
|
|
87
|
+
deep: !0,
|
|
88
|
+
handler(e) {
|
|
89
|
+
!e.address && !e.detailAddress ? this.$emit("input", void 0) : this.$emit("input", e);
|
|
101
90
|
}
|
|
102
91
|
}
|
|
103
92
|
}
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
__vue2_injectStyles,
|
|
93
|
+
}, d = {};
|
|
94
|
+
var u = /* @__PURE__ */ l(
|
|
95
|
+
i,
|
|
96
|
+
r,
|
|
97
|
+
n,
|
|
98
|
+
!1,
|
|
99
|
+
o,
|
|
112
100
|
null,
|
|
113
101
|
null,
|
|
114
102
|
null
|
|
115
103
|
);
|
|
116
|
-
function
|
|
117
|
-
for (let
|
|
118
|
-
this[
|
|
119
|
-
}
|
|
104
|
+
function o(e) {
|
|
105
|
+
for (let a in d)
|
|
106
|
+
this[a] = d[a];
|
|
120
107
|
}
|
|
121
|
-
const
|
|
122
|
-
return
|
|
108
|
+
const c = /* @__PURE__ */ function() {
|
|
109
|
+
return u.exports;
|
|
123
110
|
}();
|
|
124
111
|
export {
|
|
125
|
-
|
|
112
|
+
c as default
|
|
126
113
|
};
|
|
@@ -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
|
+
.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%}
|