@web-utils/component 2.7.30 → 2.7.31
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.7dec2bf2.js → config.75161c38.js} +29 -29
- package/dist/chunks/confirmable-mixin.851d6299.js +137 -0
- package/dist/chunks/dataformat.b8c8c01a.js +237 -0
- package/dist/chunks/detail.6135ade5.js +55 -0
- package/dist/chunks/dic.e57b75f2.js +215 -0
- package/dist/chunks/{event.fc358074.js → event.812c361c.js} +54 -23
- package/dist/chunks/{form-input-mixin.760cd65d.js → form-input-mixin.3e63b57f.js} +4 -4
- package/dist/chunks/{form-item-mixin.fa314b67.js → form-item-mixin.a56c101a.js} +44 -17
- package/dist/chunks/{form-pick-mixin.c4e0391b.js → form-pick-mixin.822300f3.js} +1 -1
- package/dist/chunks/{init.e0133910.js → init.38cbb3a2.js} +41 -21
- package/dist/chunks/{input-number-mixin.6849fa63.js → input-number-mixin.44b78389.js} +4 -4
- package/dist/chunks/{mixins.6a394a6c.js → mixins.e1939731.js} +3 -2
- package/dist/chunks/{packages.419bde01.js → packages.c4ea639d.js} +12 -6
- package/dist/chunks/{permission.07c49abf.js → permission.9c766972.js} +6 -1
- package/dist/chunks/slot.55598d0f.js +35 -0
- package/dist/chunks/{tab-mixin.9d568df9.js → tab-mixin.9d848bf6.js} +29 -11
- package/dist/chunks/util.b0d0b0ad.js +478 -0
- package/dist/chunks/{utils.d7f73f8d.js → utils.2a3ffac9.js} +89 -24
- package/dist/chunks/{utils.f44207f4.js → utils.a8891d2c.js} +9 -5
- package/dist/chunks/vueComponentNormalizer.9c6b8b3d.js +59 -0
- package/dist/components/address-input/index.js +30 -17
- package/dist/components/address-input/style.css +15 -1
- package/dist/components/affix/index.js +78 -28
- package/dist/components/affix/style.css +5 -1
- package/dist/components/aside-menu/index.js +14 -8
- package/dist/components/aside-menu/style.css +9 -1
- package/dist/components/avatar/index.js +33 -15
- package/dist/components/avatar/style.css +57 -1
- package/dist/components/awesome-button/index.js +45 -31
- package/dist/components/base.css +410 -1
- package/dist/components/capsule-tab/index.js +13 -7
- package/dist/components/capsule-tab/style.css +32 -1
- package/dist/components/card/index.js +33 -20
- package/dist/components/card/style.css +90 -1
- package/dist/components/carousel/index.js +18 -12
- package/dist/components/carousel/style.css +41 -1
- package/dist/components/chat/index.js +245 -139
- package/dist/components/chat/style.css +279 -1
- package/dist/components/chunk-file-uploader/index.js +63 -29
- package/dist/components/chunk-file-uploader/style.css +4 -1
- package/dist/components/chunk-file-uploader-button/index.js +15 -9
- package/dist/components/chunk-file-uploader-button/style.css +17 -1
- package/dist/components/chunk-file-uploader-drop/index.js +45 -27
- package/dist/components/chunk-file-uploader-drop/style.css +12 -1
- package/dist/components/chunk-file-uploader-file/index.js +150 -73
- package/dist/components/chunk-file-uploader-file/style.css +125 -1
- package/dist/components/chunk-file-uploader-files/index.js +15 -9
- package/dist/components/chunk-file-uploader-files/style.css +9 -1
- package/dist/components/chunk-file-uploader-list/index.js +16 -10
- package/dist/components/chunk-file-uploader-list/style.css +9 -1
- package/dist/components/chunk-file-uploader-un-support/index.js +18 -10
- package/dist/components/chunk-file-uploader-un-support/style.css +6 -1
- package/dist/components/code-mirror-editor/index.js +75 -47
- package/dist/components/code-mirror-editor/style.css +17 -1
- package/dist/components/color-picker/index.js +62 -39
- package/dist/components/column/index.js +54 -29
- package/dist/components/column-default/index.js +47 -33
- package/dist/components/column-dynamic/index.js +26 -19
- package/dist/components/column-menu/index.js +98 -86
- package/dist/components/column-slot/index.js +135 -75
- package/dist/components/comment/index.js +28 -15
- package/dist/components/comment/style.css +92 -1
- package/dist/components/confirm-button/index.js +7 -5
- package/dist/components/confirmable/index.js +5 -4
- package/dist/components/context-menu/index.js +54 -32
- package/dist/components/context-menu/style.css +88 -1
- package/dist/components/count-up/index.js +55 -38
- package/dist/components/custom-scrollbar/index.js +45 -21
- package/dist/components/data-box/index.js +22 -16
- package/dist/components/data-box/style.css +58 -1
- package/dist/components/data-card/index.js +21 -15
- package/dist/components/data-card/style.css +46 -1
- package/dist/components/data-cardtext/index.js +19 -13
- package/dist/components/data-cardtext/style.css +36 -1
- package/dist/components/data-display/index.js +22 -16
- package/dist/components/data-display/style.css +37 -1
- package/dist/components/data-icons/index.js +23 -17
- package/dist/components/data-icons/style.css +53 -1
- package/dist/components/data-imgtext/index.js +26 -20
- package/dist/components/data-imgtext/style.css +70 -1
- package/dist/components/data-operatext/index.js +20 -14
- package/dist/components/data-operatext/style.css +81 -1
- package/dist/components/data-panel/index.js +21 -15
- package/dist/components/data-panel/style.css +37 -1
- package/dist/components/data-pay/index.js +29 -23
- package/dist/components/data-pay/style.css +102 -1
- package/dist/components/data-price/index.js +19 -13
- package/dist/components/data-price/style.css +81 -1
- package/dist/components/data-progress/index.js +26 -20
- package/dist/components/data-progress/style.css +30 -1
- package/dist/components/data-rotate/index.js +21 -15
- package/dist/components/data-rotate/style.css +50 -1
- package/dist/components/data-table-picker/index.js +47 -28
- package/dist/components/data-tabs/index.js +22 -16
- package/dist/components/data-tabs/style.css +70 -1
- package/dist/components/dialog-column/index.js +46 -33
- package/dist/components/dialog-excel/index.js +102 -53
- package/dist/components/dialog-filter/index.js +64 -51
- package/dist/components/dialog-form/index.js +54 -34
- package/dist/components/dialog-form/style.css +10 -0
- package/dist/components/dynamic-table/index.js +66 -42
- package/dist/components/dynamic-table/style.css +30 -1
- package/dist/components/e-charts/index.js +127 -46
- package/dist/components/e-charts/style.css +10 -1
- package/dist/components/easy-popup/index.js +32 -14
- package/dist/components/easy-popup/style.css +18 -1
- package/dist/components/editable-progress/index.js +64 -31
- package/dist/components/editable-progress/style.css +37 -1
- package/dist/components/editable-tree/index.js +513 -287
- package/dist/components/editable-tree/style.css +82 -1
- package/dist/components/egd-collapse/index.js +25 -12
- package/dist/components/egd-collapse-item/index.js +41 -25
- package/dist/components/element-dialog/index.js +101 -48
- package/dist/components/element-dialog/style.css +88 -1
- package/dist/components/empty-view/index.js +13 -7
- package/dist/components/empty-view/style.css +17 -1
- package/dist/components/error-view/index.js +12 -6
- package/dist/components/error-view/style.css +17 -1
- package/dist/components/flex-column/index.js +39 -17
- package/dist/components/flex-item/index.js +59 -24
- package/dist/components/flex-row/index.js +39 -17
- package/dist/components/flex-scroller/index.js +13 -7
- package/dist/components/flex-scroller/style.css +20 -1
- package/dist/components/flow/index.js +116 -64
- package/dist/components/flow/style.css +44 -1
- package/dist/components/flow-node/index.js +29 -21
- package/dist/components/flow-viewer/index.js +97 -52
- package/dist/components/flow-viewer/style.css +19 -1
- package/dist/components/form-button/index.js +12 -8
- package/dist/components/form-cascader/index.js +55 -40
- package/dist/components/form-checkbox-group/index.js +90 -60
- package/dist/components/form-checkbox-group/style.css +51 -1
- package/dist/components/form-date-picker/index.js +113 -44
- package/dist/components/form-group/index.js +23 -17
- package/dist/components/form-group/style.css +76 -1
- package/dist/components/form-holder/index.js +41 -30
- package/dist/components/form-input/index.js +42 -31
- package/dist/components/form-input-email/index.js +47 -30
- package/dist/components/form-input-id-card/index.js +40 -29
- package/dist/components/form-input-number/index.js +50 -38
- package/dist/components/form-input-number/style.css +12 -1
- package/dist/components/form-input-phone-number/index.js +40 -29
- package/dist/components/form-input-time/index.js +40 -29
- package/dist/components/form-item/index.js +99 -47
- package/dist/components/form-item/style.css +11 -1
- package/dist/components/form-item-config-provider/index.js +9 -8
- package/dist/components/form-item-group/index.js +69 -43
- package/dist/components/form-item-group/style.css +30 -1
- package/dist/components/form-radio-group/index.js +77 -53
- package/dist/components/form-radio-group/style.css +53 -1
- package/dist/components/form-select/index.js +71 -51
- package/dist/components/form-switch/index.js +41 -30
- package/dist/components/form-temp/index.js +49 -29
- package/dist/components/form-textarea/index.js +45 -34
- package/dist/components/form-view/index.js +152 -81
- package/dist/components/form-view/style.css +158 -1
- package/dist/components/fy-array/index.js +51 -43
- package/dist/components/fy-array/style.css +18 -1
- package/dist/components/fy-article/index.js +24 -13
- package/dist/components/fy-article/style.css +40 -1
- package/dist/components/fy-cascader/index.js +39 -29
- package/dist/components/fy-checkbox/index.js +38 -27
- package/dist/components/fy-checkbox/style.css +15 -1
- package/dist/components/fy-code/index.js +19 -12
- package/dist/components/fy-curd/index.js +290 -152
- package/dist/components/fy-curd/style.css +239 -1
- package/dist/components/fy-date/index.js +24 -18
- package/dist/components/fy-date/style.css +21 -1
- package/dist/components/fy-dialog-form/index.js +127 -54
- package/dist/components/fy-draggable/index.js +196 -73
- package/dist/components/fy-draggable/style.css +136 -1
- package/dist/components/fy-dynamic/index.js +116 -73
- package/dist/components/fy-dynamic/style.css +35 -1
- package/dist/components/fy-empty/index.js +15 -9
- package/dist/components/fy-empty/style.css +24 -1
- package/dist/components/fy-form/index.js +399 -221
- package/dist/components/fy-form/style.css +79 -1
- package/dist/components/fy-form-design/index.js +2267 -1630
- package/dist/components/fy-form-design/style.css +578 -1
- package/dist/components/fy-form-menu/index.js +43 -35
- package/dist/components/fy-input/index.js +46 -35
- package/dist/components/fy-input-color/index.js +40 -33
- package/dist/components/fy-input-icon/index.js +58 -37
- package/dist/components/fy-input-icon/style.css +39 -1
- package/dist/components/fy-input-map/index.js +113 -68
- package/dist/components/fy-input-map/style.css +50 -1
- package/dist/components/fy-input-number/index.js +29 -24
- package/dist/components/fy-input-table/index.js +82 -48
- package/dist/components/fy-input-table/style.css +10 -1
- package/dist/components/fy-input-tree/index.js +104 -60
- package/dist/components/fy-input-tree/style.css +25 -1
- package/dist/components/fy-progress/index.js +15 -10
- package/dist/components/fy-radio/index.js +20 -14
- package/dist/components/fy-radio/style.css +12 -1
- package/dist/components/fy-rate/index.js +21 -15
- package/dist/components/fy-rate/style.css +9 -1
- package/dist/components/fy-select/index.js +73 -55
- package/dist/components/fy-select/style.css +25 -1
- package/dist/components/fy-slider/index.js +22 -17
- package/dist/components/fy-switch/index.js +17 -12
- package/dist/components/fy-tabs/index.js +20 -12
- package/dist/components/fy-tabs/style.css +6 -0
- package/dist/components/fy-time/index.js +29 -18
- package/dist/components/fy-title/index.js +16 -8
- package/dist/components/fy-title/style.css +11 -1
- package/dist/components/fy-tree/index.js +135 -72
- package/dist/components/fy-tree/style.css +46 -1
- package/dist/components/fy-u-editor/index.js +172 -67
- package/dist/components/fy-u-editor/style.css +15 -1
- package/dist/components/fy-upload/index.js +317 -148
- package/dist/components/fy-upload/style.css +60 -1
- package/dist/components/guide-steps/index.js +31 -17
- package/dist/components/guide-steps/style.css +34 -1
- package/dist/components/header-menu/index.js +86 -66
- package/dist/components/header-search/index.js +92 -60
- package/dist/components/highlight-j-s/index.js +28 -15
- package/dist/components/highlight-j-s/style.css +21 -1
- package/dist/components/icon-card/index.js +13 -7
- package/dist/components/icon-card/style.css +56 -1
- package/dist/components/icon-temp/index.js +12 -6
- package/dist/components/icon-temp/style.css +21 -1
- package/dist/components/iframe-window/index.js +20 -14
- package/dist/components/iframe-window/style.css +20 -1
- package/dist/components/image-cropper/index.js +69 -51
- package/dist/components/image-cropper/style.css +34 -1
- package/dist/components/image-preview/index.js +77 -46
- package/dist/components/image-preview/style.css +72 -1
- package/dist/components/image-viewer/index.js +40 -22
- package/dist/components/image-viewer/style.css +21 -1
- package/dist/components/input-number/index.js +122 -56
- package/dist/components/input-number/style.css +15 -1
- package/dist/components/input-number-range/index.js +32 -20
- package/dist/components/input-number-range/style.css +12 -1
- package/dist/components/keep-view-alive/index.js +68 -21
- package/dist/components/keyboard/index.js +217 -132
- package/dist/components/keyboard/style.css +547 -1
- package/dist/components/license/index.js +81 -35
- package/dist/components/loading-view/index.js +12 -6
- package/dist/components/loading-view/style.css +17 -1
- package/dist/components/login/index.js +91 -62
- package/dist/components/login/style.css +25 -1
- package/dist/components/name-avatar/index.js +32 -10
- package/dist/components/name-avatar/style.css +35 -1
- package/dist/components/nav-bar/index.js +21 -11
- package/dist/components/nav-bar/style.css +17 -1
- package/dist/components/not-implement/index.js +16 -8
- package/dist/components/not-implement/style.css +15 -1
- package/dist/components/notice/index.js +40 -27
- package/dist/components/notice/style.css +54 -1
- package/dist/components/page/index.js +13 -7
- package/dist/components/page/style.css +12 -1
- package/dist/components/page-header/index.js +15 -9
- package/dist/components/page-header/style.css +14 -1
- package/dist/components/page-index/index.js +62 -37
- package/dist/components/page-index/style.css +23 -1
- package/dist/components/page-index-top/index.js +53 -34
- package/dist/components/page-skeleton/index.js +15 -9
- package/dist/components/page-skeleton/style.css +23 -1
- package/dist/components/page-skeleton-new/index.js +15 -9
- package/dist/components/page-skeleton-new/style.css +42 -1
- package/dist/components/pageable-table/index.js +187 -106
- package/dist/components/pageable-table/style.css +72 -1
- package/dist/components/pageable-view/index.js +164 -80
- package/dist/components/pageable-view/style.css +69 -1
- package/dist/components/photo-swipe/index.js +92 -46
- package/dist/components/process-designer/index.js +961 -772
- package/dist/components/process-designer/style.css +1186 -1
- package/dist/components/properties-panel/index.js +1488 -1044
- package/dist/components/properties-panel/style.css +122 -1
- package/dist/components/queue/index.js +24 -12
- package/dist/components/record-video/index.js +53 -27
- package/dist/components/record-video/style.css +53 -1
- package/dist/components/resize-observer/index.js +52 -18
- package/dist/components/resize-observer/style.css +31 -1
- package/dist/components/search/index.js +41 -22
- package/dist/components/search/style.css +57 -1
- package/dist/components/search-popover/index.js +153 -91
- package/dist/components/search-popover/style.css +93 -1
- package/dist/components/sign/index.js +138 -35
- package/dist/components/sign/style.css +12 -1
- package/dist/components/sign-panel/index.js +96 -46
- package/dist/components/sign-panel/style.css +97 -1
- package/dist/components/skeleton/index.js +22 -12
- package/dist/components/skeleton/style.css +61 -1
- package/dist/components/split-pane/index.js +125 -60
- package/dist/components/split-pane/style.css +100 -1
- package/dist/components/stateful/index.js +8 -5
- package/dist/components/stateful/style.css +33 -1
- package/dist/components/static-pageable-table/index.js +22 -15
- package/dist/components/static-pageable-table/style.css +9 -1
- package/dist/components/swiper/index.js +127 -58
- package/dist/components/swiper/style.css +43 -1
- package/dist/components/tab/index.js +34 -16
- package/dist/components/tab/style.css +122 -1
- package/dist/components/tab-item/index.js +14 -9
- package/dist/components/table-column/index.js +26 -17
- package/dist/components/table-page/index.js +42 -23
- package/dist/components/table-view/index.js +162 -87
- package/dist/components/table-view/style.css +95 -1
- package/dist/components/tag-render/index.js +41 -22
- package/dist/components/tag-render/style.css +33 -1
- package/dist/components/text-ellipsis/index.js +48 -26
- package/dist/components/text-ellipsis/style.css +9 -1
- package/dist/components/tinymce-editor/index.js +80 -60
- package/dist/components/tinymce-editor/style.css +43 -1
- package/dist/components/tinymce-wrapper/index.js +77 -41
- package/dist/components/tinymce-wrapper/style.css +36 -1
- package/dist/components/toolbar/index.js +46 -25
- package/dist/components/toolbar/style.css +39 -1
- package/dist/components/toolbar-button/index.js +46 -35
- package/dist/components/toolbar-button/style.css +21 -1
- package/dist/components/trigger/index.js +15 -8
- package/dist/components/verify/index.js +15 -8
- package/dist/components/verify/style.css +15 -1
- package/dist/components/vue-tags-input/index.js +233 -113
- package/dist/components/vue-tags-input/style.css +688 -1
- package/dist/components/watermark/index.js +33 -14
- package/dist/components/watermark/style.css +11 -1
- package/dist/index.css +2434 -1750
- package/dist/index.es.js +15944 -9317
- package/package.json +4 -4
- package/web-types.json +1 -1
- package/dist/chunks/confirmable-mixin.35bd1934.js +0 -104
- package/dist/chunks/dataformat.9cc4428a.js +0 -158
- package/dist/chunks/detail.544c52b0.js +0 -29
- package/dist/chunks/dic.9de2fe5a.js +0 -135
- package/dist/chunks/slot.a7387ecc.js +0 -27
- package/dist/chunks/util.89913643.js +0 -261
- package/dist/chunks/vueComponentNormalizer.77ec6792.js +0 -32
- package/dist/components/fy-dialog-form/style.css +0 -1
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import { p as props, e as event } from "../../chunks/event.
|
|
1
|
+
import { p as props, e as event } from "../../chunks/event.812c361c.js";
|
|
2
2
|
import { isBlank } from "@web-utils/core";
|
|
3
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
3
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
4
4
|
var render = function() {
|
|
5
|
-
var _vm = this
|
|
5
|
+
var _vm = this;
|
|
6
|
+
var _h = _vm.$createElement;
|
|
7
|
+
var _c = _vm._self._c || _h;
|
|
6
8
|
return _c("div", {
|
|
7
9
|
staticClass: "avue-input-map"
|
|
8
10
|
}, [_c("ElInput", {
|
|
9
11
|
ref: "main",
|
|
10
12
|
attrs: {
|
|
11
|
-
size: _vm.size,
|
|
12
|
-
clearable: _vm.clearableVal,
|
|
13
|
-
rows: _vm.rows,
|
|
14
|
-
autosize: {
|
|
13
|
+
"size": _vm.size,
|
|
14
|
+
"clearable": _vm.clearableVal,
|
|
15
|
+
"rows": _vm.rows,
|
|
16
|
+
"autosize": {
|
|
15
17
|
minRows: _vm.minRows,
|
|
16
18
|
maxRows: _vm.maxRows
|
|
17
19
|
},
|
|
18
|
-
disabled: _vm.disabled,
|
|
19
|
-
type: "textarea",
|
|
20
|
-
placeholder: _vm.placeholder
|
|
20
|
+
"disabled": _vm.disabled,
|
|
21
|
+
"type": "textarea",
|
|
22
|
+
"placeholder": _vm.placeholder
|
|
21
23
|
},
|
|
22
24
|
on: {
|
|
23
|
-
clear: _vm.handleClear,
|
|
24
|
-
focus: _vm.handleShow
|
|
25
|
+
"clear": _vm.handleClear,
|
|
26
|
+
"focus": _vm.handleShow
|
|
25
27
|
},
|
|
26
28
|
nativeOn: {
|
|
27
|
-
click: function($event) {
|
|
29
|
+
"click": function($event) {
|
|
28
30
|
return _vm.handleClick.apply(null, arguments);
|
|
29
31
|
}
|
|
30
32
|
},
|
|
@@ -38,45 +40,45 @@ var render = function() {
|
|
|
38
40
|
}), _vm.box ? _c("div", [_c("ElementDialog", {
|
|
39
41
|
attrs: {
|
|
40
42
|
"show-full-screen": "",
|
|
41
|
-
width: _vm.dialogWidth,
|
|
42
|
-
title: _vm.placeholder,
|
|
43
|
-
visible: _vm.box
|
|
43
|
+
"width": _vm.dialogWidth,
|
|
44
|
+
"title": _vm.placeholder,
|
|
45
|
+
"visible": _vm.box
|
|
44
46
|
},
|
|
45
47
|
on: {
|
|
46
48
|
"update:visible": function($event) {
|
|
47
49
|
_vm.box = $event;
|
|
48
50
|
},
|
|
49
|
-
close: _vm.handleClose
|
|
51
|
+
"close": _vm.handleClose
|
|
50
52
|
},
|
|
51
53
|
scopedSlots: _vm._u([{
|
|
52
54
|
key: "footer",
|
|
53
55
|
fn: function() {
|
|
54
|
-
return [_vm.disabled || _vm.readonly ?
|
|
56
|
+
return [!(_vm.disabled || _vm.readonly) ? _c("ElButton", {
|
|
55
57
|
attrs: {
|
|
56
|
-
type: "primary",
|
|
57
|
-
size: _vm.size,
|
|
58
|
-
icon: "el-icon-check"
|
|
58
|
+
"type": "primary",
|
|
59
|
+
"size": _vm.size,
|
|
60
|
+
"icon": "el-icon-check"
|
|
59
61
|
},
|
|
60
62
|
on: {
|
|
61
|
-
click: _vm.handleSubmit
|
|
63
|
+
"click": _vm.handleSubmit
|
|
62
64
|
}
|
|
63
|
-
}, [_vm._v(" 确 定 ")])];
|
|
65
|
+
}, [_vm._v(" 确 定 ")]) : _vm._e()];
|
|
64
66
|
},
|
|
65
|
-
proxy:
|
|
66
|
-
}], null,
|
|
67
|
+
proxy: true
|
|
68
|
+
}], null, false, 1816263233)
|
|
67
69
|
}, [_vm.box ? _c("div", {
|
|
68
70
|
staticClass: "avue-input-map__content"
|
|
69
71
|
}, [_c("ElInput", {
|
|
70
72
|
staticClass: "avue-input-map__content-input",
|
|
71
73
|
attrs: {
|
|
72
|
-
id: "map__input",
|
|
73
|
-
size: _vm.size,
|
|
74
|
-
readonly: _vm.disabled,
|
|
75
|
-
clearable: "",
|
|
76
|
-
placeholder: "输入关键字选取地点"
|
|
74
|
+
"id": "map__input",
|
|
75
|
+
"size": _vm.size,
|
|
76
|
+
"readonly": _vm.disabled,
|
|
77
|
+
"clearable": "",
|
|
78
|
+
"placeholder": "输入关键字选取地点"
|
|
77
79
|
},
|
|
78
80
|
on: {
|
|
79
|
-
clear: _vm.clear
|
|
81
|
+
"clear": _vm.clear
|
|
80
82
|
},
|
|
81
83
|
model: {
|
|
82
84
|
value: _vm.formattedAddress,
|
|
@@ -90,16 +92,18 @@ var render = function() {
|
|
|
90
92
|
}, [_c("div", {
|
|
91
93
|
staticClass: "avue-input-map__content-container",
|
|
92
94
|
attrs: {
|
|
93
|
-
id: "map__container",
|
|
94
|
-
tabindex: "0"
|
|
95
|
+
"id": "map__container",
|
|
96
|
+
"tabindex": "0"
|
|
95
97
|
}
|
|
96
98
|
}), _c("div", {
|
|
97
99
|
staticClass: "avue-input-map__content-result",
|
|
98
100
|
attrs: {
|
|
99
|
-
id: "map__result"
|
|
101
|
+
"id": "map__result"
|
|
100
102
|
}
|
|
101
103
|
})])], 1) : _vm._e()])], 1) : _vm._e()], 1);
|
|
102
|
-
}
|
|
104
|
+
};
|
|
105
|
+
var staticRenderFns = [];
|
|
106
|
+
const FyInputMap_vue_vue_type_style_index_0_lang = "";
|
|
103
107
|
const __vue2_script = {
|
|
104
108
|
name: "FyInputMap",
|
|
105
109
|
mixins: [props, event],
|
|
@@ -124,7 +128,7 @@ const __vue2_script = {
|
|
|
124
128
|
poi: {},
|
|
125
129
|
marker: null,
|
|
126
130
|
map: null,
|
|
127
|
-
box:
|
|
131
|
+
box: false
|
|
128
132
|
};
|
|
129
133
|
},
|
|
130
134
|
computed: {
|
|
@@ -145,64 +149,92 @@ const __vue2_script = {
|
|
|
145
149
|
this.formattedAddress = val.formattedAddress;
|
|
146
150
|
},
|
|
147
151
|
value(val) {
|
|
148
|
-
isBlank(val)
|
|
152
|
+
if (isBlank(val)) {
|
|
153
|
+
this.poi = {};
|
|
154
|
+
this.address = "";
|
|
155
|
+
}
|
|
149
156
|
},
|
|
150
157
|
text(val) {
|
|
151
|
-
isBlank(val)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
if (!isBlank(val)) {
|
|
159
|
+
this.poi = {
|
|
160
|
+
longitude: val[0],
|
|
161
|
+
latitude: val[1],
|
|
162
|
+
formattedAddress: val[2]
|
|
163
|
+
};
|
|
164
|
+
this.address = val[2];
|
|
165
|
+
}
|
|
156
166
|
},
|
|
157
167
|
box: {
|
|
158
168
|
handler() {
|
|
159
|
-
this.box
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
169
|
+
if (this.box) {
|
|
170
|
+
this.$nextTick(
|
|
171
|
+
() => this.init(() => {
|
|
172
|
+
if (this.longitude && this.latitude) {
|
|
173
|
+
this.addMarker(this.longitude, this.latitude);
|
|
174
|
+
this.getAddress(this.longitude, this.latitude);
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
);
|
|
178
|
+
}
|
|
164
179
|
},
|
|
165
|
-
immediate:
|
|
180
|
+
immediate: true
|
|
166
181
|
}
|
|
167
182
|
},
|
|
168
183
|
methods: {
|
|
169
184
|
clear() {
|
|
170
|
-
this.poi = {}
|
|
185
|
+
this.poi = {};
|
|
186
|
+
this.clearMarker();
|
|
171
187
|
},
|
|
172
188
|
handleSubmit() {
|
|
173
|
-
this.setVal()
|
|
189
|
+
this.setVal();
|
|
190
|
+
this.box = false;
|
|
174
191
|
},
|
|
175
192
|
handleClear() {
|
|
176
|
-
this.text = []
|
|
193
|
+
this.text = [];
|
|
194
|
+
this.poi = {};
|
|
195
|
+
this.handleChange(this.text);
|
|
177
196
|
},
|
|
178
197
|
setVal() {
|
|
179
|
-
this.text = [this.poi.longitude, this.poi.latitude, this.poi.formattedAddress]
|
|
198
|
+
this.text = [this.poi.longitude, this.poi.latitude, this.poi.formattedAddress];
|
|
199
|
+
this.handleChange(this.text);
|
|
180
200
|
},
|
|
181
201
|
handleShow() {
|
|
182
|
-
this.$refs.main.blur()
|
|
202
|
+
this.$refs.main.blur();
|
|
203
|
+
this.box = true;
|
|
183
204
|
},
|
|
184
205
|
// 新增坐标
|
|
185
206
|
addMarker(R, P) {
|
|
186
|
-
this.clearMarker()
|
|
207
|
+
this.clearMarker();
|
|
208
|
+
this.marker = new window.AMap.Marker({ position: [R, P] });
|
|
209
|
+
this.marker.setMap(this.map);
|
|
187
210
|
},
|
|
188
211
|
// 清空坐标
|
|
189
212
|
clearMarker() {
|
|
190
|
-
|
|
213
|
+
if (this.marker) {
|
|
214
|
+
this.marker.setMap(null);
|
|
215
|
+
this.marker = null;
|
|
216
|
+
}
|
|
191
217
|
},
|
|
192
218
|
// 获取坐标
|
|
193
219
|
getAddress(R, P) {
|
|
194
220
|
new window.AMap.service("AMap.Geocoder", () => {
|
|
195
|
-
new window.AMap.Geocoder({})
|
|
221
|
+
const geocoder = new window.AMap.Geocoder({});
|
|
222
|
+
geocoder.getAddress([R, P], (status, result) => {
|
|
196
223
|
if (status === "complete" && result.info === "OK") {
|
|
197
224
|
const regeocode = result.regeocode;
|
|
198
225
|
this.poi = Object.assign(regeocode, {
|
|
199
226
|
longitude: R,
|
|
200
227
|
latitude: P
|
|
201
228
|
});
|
|
202
|
-
const markerContent = document.createElement("div")
|
|
203
|
-
markerImg
|
|
229
|
+
const markerContent = document.createElement("div");
|
|
230
|
+
const markerImg = document.createElement("img");
|
|
231
|
+
markerImg.src = "//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png";
|
|
232
|
+
markerContent.appendChild(markerImg);
|
|
204
233
|
const markerSpan = document.createElement("span");
|
|
205
|
-
markerSpan.className = "avue-input-map__marker"
|
|
234
|
+
markerSpan.className = "avue-input-map__marker";
|
|
235
|
+
markerSpan.innerHTML = this.poi.formattedAddress;
|
|
236
|
+
markerContent.appendChild(markerSpan);
|
|
237
|
+
this.marker.setContent(markerContent);
|
|
206
238
|
}
|
|
207
239
|
});
|
|
208
240
|
});
|
|
@@ -214,8 +246,11 @@ const __vue2_script = {
|
|
|
214
246
|
this.map.on("click", (e) => {
|
|
215
247
|
if (this.disabled || this.readonly)
|
|
216
248
|
return;
|
|
217
|
-
const lnglat = e.lnglat
|
|
218
|
-
|
|
249
|
+
const lnglat = e.lnglat;
|
|
250
|
+
const P = lnglat.P || lnglat.Q;
|
|
251
|
+
const R = lnglat.R;
|
|
252
|
+
this.addMarker(R, P);
|
|
253
|
+
this.getAddress(R, P);
|
|
219
254
|
});
|
|
220
255
|
},
|
|
221
256
|
init(callback) {
|
|
@@ -225,7 +260,10 @@ const __vue2_script = {
|
|
|
225
260
|
if (this.longitude && this.latitude)
|
|
226
261
|
return [this.longitude, this.latitude];
|
|
227
262
|
})()
|
|
228
|
-
}, this.params))
|
|
263
|
+
}, this.params));
|
|
264
|
+
this.initPoip();
|
|
265
|
+
this.addClick();
|
|
266
|
+
callback();
|
|
229
267
|
},
|
|
230
268
|
initPoip() {
|
|
231
269
|
window.AMapUI.loadUI(["misc/PoiPicker"], (PoiPicker) => {
|
|
@@ -241,31 +279,38 @@ const __vue2_script = {
|
|
|
241
279
|
});
|
|
242
280
|
},
|
|
243
281
|
poiPickerReady(poiPicker) {
|
|
244
|
-
window.poiPicker = poiPicker
|
|
282
|
+
window.poiPicker = poiPicker;
|
|
283
|
+
poiPicker.on("poiPicked", (poiResult) => {
|
|
245
284
|
this.clearMarker();
|
|
246
|
-
const source = poiResult.source
|
|
285
|
+
const source = poiResult.source;
|
|
286
|
+
const poi = poiResult.item;
|
|
247
287
|
this.poi = Object.assign(poi, {
|
|
248
288
|
formattedAddress: poi.name,
|
|
249
289
|
longitude: poi.location.R,
|
|
250
290
|
latitude: poi.location.P || poi.location.Q
|
|
251
|
-
})
|
|
291
|
+
});
|
|
292
|
+
if (source !== "search") {
|
|
293
|
+
poiPicker.searchByKeyword(poi.name);
|
|
294
|
+
}
|
|
252
295
|
});
|
|
253
296
|
}
|
|
254
297
|
}
|
|
255
|
-
}
|
|
298
|
+
};
|
|
299
|
+
const __cssModules = {};
|
|
256
300
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
257
301
|
__vue2_script,
|
|
258
302
|
render,
|
|
259
303
|
staticRenderFns,
|
|
260
|
-
|
|
304
|
+
false,
|
|
261
305
|
__vue2_injectStyles,
|
|
262
306
|
null,
|
|
263
307
|
null,
|
|
264
308
|
null
|
|
265
309
|
);
|
|
266
310
|
function __vue2_injectStyles(context) {
|
|
267
|
-
for (let o in __cssModules)
|
|
311
|
+
for (let o in __cssModules) {
|
|
268
312
|
this[o] = __cssModules[o];
|
|
313
|
+
}
|
|
269
314
|
}
|
|
270
315
|
const FyInputMap = /* @__PURE__ */ function() {
|
|
271
316
|
return __component__.exports;
|
|
@@ -1 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
/* 全局公共颜色配置 */ /* 全局公共尺寸配置 */
|
|
2
|
+
/* 应用头部高度 */
|
|
3
|
+
/* 页面宽度 */
|
|
4
|
+
/* 侧栏宽度 */
|
|
5
|
+
/* 标签高度 */
|
|
6
|
+
/* 页面头部工具条高度 */
|
|
7
|
+
.amap-icon img,
|
|
8
|
+
.amap-marker-content img {
|
|
9
|
+
width: 25px;
|
|
10
|
+
height: 34px;
|
|
11
|
+
}
|
|
12
|
+
.avue-input-map__marker {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: -20px;
|
|
15
|
+
right: -118px;
|
|
16
|
+
color: #fff;
|
|
17
|
+
padding: 4px 10px;
|
|
18
|
+
box-shadow: 1px 1px 1px rgba(10, 10, 10, 0.2);
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
font-family: "";
|
|
22
|
+
background-color: #25a5f7;
|
|
23
|
+
border-radius: 3px;
|
|
24
|
+
}
|
|
25
|
+
.avue-input-map__content {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
.avue-input-map__content-input {
|
|
31
|
+
margin-bottom: 10px;
|
|
32
|
+
}
|
|
33
|
+
.avue-input-map__content-box {
|
|
34
|
+
flex: 1 1 auto;
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
.avue-input-map__content-container {
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
min-height: 450px;
|
|
41
|
+
}
|
|
42
|
+
.avue-input-map__content-result {
|
|
43
|
+
display: block !important;
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
right: -8px;
|
|
47
|
+
width: 250px;
|
|
48
|
+
height: 450px;
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { p as props, e as event } from "../../chunks/event.
|
|
2
|
-
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.
|
|
1
|
+
import { p as props, e as event } from "../../chunks/event.812c361c.js";
|
|
2
|
+
import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.9c6b8b3d.js";
|
|
3
3
|
var render = function() {
|
|
4
|
-
var _vm = this
|
|
4
|
+
var _vm = this;
|
|
5
|
+
var _h = _vm.$createElement;
|
|
6
|
+
var _c = _vm._self._c || _h;
|
|
5
7
|
return _c("ElInputNumber", {
|
|
6
8
|
staticClass: "avue-input-number",
|
|
7
9
|
attrs: {
|
|
8
|
-
precision: _vm.precision,
|
|
9
|
-
placeholder: _vm.placeholder,
|
|
10
|
-
size: _vm.size,
|
|
11
|
-
min: _vm.min,
|
|
12
|
-
max: _vm.max,
|
|
13
|
-
step: _vm.step,
|
|
14
|
-
clearable: _vm.clearableVal,
|
|
15
|
-
readonly: _vm.readonly,
|
|
10
|
+
"precision": _vm.precision,
|
|
11
|
+
"placeholder": _vm.placeholder,
|
|
12
|
+
"size": _vm.size,
|
|
13
|
+
"min": _vm.min,
|
|
14
|
+
"max": _vm.max,
|
|
15
|
+
"step": _vm.step,
|
|
16
|
+
"clearable": _vm.clearableVal,
|
|
17
|
+
"readonly": _vm.readonly,
|
|
16
18
|
"controls-position": _vm.controlsPosition,
|
|
17
|
-
controls: _vm.controls,
|
|
18
|
-
label: _vm.placeholder,
|
|
19
|
-
disabled: _vm.disabled
|
|
19
|
+
"controls": _vm.controls,
|
|
20
|
+
"label": _vm.placeholder,
|
|
21
|
+
"disabled": _vm.disabled
|
|
20
22
|
},
|
|
21
23
|
on: {
|
|
22
|
-
focus: _vm.handleFocus,
|
|
23
|
-
blur: _vm.handleBlur
|
|
24
|
+
"focus": _vm.handleFocus,
|
|
25
|
+
"blur": _vm.handleBlur
|
|
24
26
|
},
|
|
25
27
|
nativeOn: {
|
|
26
|
-
click: function($event) {
|
|
28
|
+
"click": function($event) {
|
|
27
29
|
return _vm.handleClick.apply(null, arguments);
|
|
28
30
|
}
|
|
29
31
|
},
|
|
@@ -35,14 +37,15 @@ var render = function() {
|
|
|
35
37
|
expression: "text"
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
|
-
}
|
|
40
|
+
};
|
|
41
|
+
var staticRenderFns = [];
|
|
39
42
|
const __vue2_script = {
|
|
40
43
|
name: "FyInputNumber",
|
|
41
44
|
mixins: [props, event],
|
|
42
45
|
props: {
|
|
43
46
|
controls: {
|
|
44
47
|
type: Boolean,
|
|
45
|
-
default:
|
|
48
|
+
default: true
|
|
46
49
|
},
|
|
47
50
|
step: {
|
|
48
51
|
type: Number,
|
|
@@ -57,27 +60,29 @@ const __vue2_script = {
|
|
|
57
60
|
},
|
|
58
61
|
min: {
|
|
59
62
|
type: Number,
|
|
60
|
-
default: -
|
|
63
|
+
default: -Infinity
|
|
61
64
|
},
|
|
62
65
|
max: {
|
|
63
66
|
type: Number,
|
|
64
|
-
default:
|
|
67
|
+
default: Infinity
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
|
-
}
|
|
70
|
+
};
|
|
71
|
+
const __cssModules = {};
|
|
68
72
|
var __component__ = /* @__PURE__ */ normalizeComponent(
|
|
69
73
|
__vue2_script,
|
|
70
74
|
render,
|
|
71
75
|
staticRenderFns,
|
|
72
|
-
|
|
76
|
+
false,
|
|
73
77
|
__vue2_injectStyles,
|
|
74
78
|
null,
|
|
75
79
|
null,
|
|
76
80
|
null
|
|
77
81
|
);
|
|
78
82
|
function __vue2_injectStyles(context) {
|
|
79
|
-
for (let o in __cssModules)
|
|
83
|
+
for (let o in __cssModules) {
|
|
80
84
|
this[o] = __cssModules[o];
|
|
85
|
+
}
|
|
81
86
|
}
|
|
82
87
|
const FyInputNumber = /* @__PURE__ */ function() {
|
|
83
88
|
return __component__.exports;
|