ele-admin-plus 1.1.9-beta.6 → 1.1.9-beta.7
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/es/ele-data-table/props.d.ts +2 -2
- package/es/ele-ellipsis/index.js +2 -23
- package/es/ele-map-picker/components/map-view.d.ts +20 -16
- package/es/ele-map-picker/components/map-view.js +77 -50
- package/es/ele-map-picker/index.d.ts +5 -3
- package/es/ele-map-picker/props.d.ts +6 -4
- package/es/ele-map-picker/props.js +5 -3
- package/es/ele-map-picker/style/index.scss +1 -1
- package/es/ele-menus/index.d.ts +11 -2
- package/es/ele-menus/index.js +57 -5
- package/es/ele-menus/props.d.ts +8 -0
- package/es/ele-menus/props.js +10 -2
- package/es/ele-menus/style/index.scss +1 -1
- package/es/ele-menus/util.d.ts +15 -3
- package/es/ele-menus/util.js +47 -21
- package/es/ele-modal/style/index.scss +1 -0
- package/es/ele-popconfirm/index.d.ts +3 -3
- package/es/ele-popover/index.d.ts +3 -3
- package/es/ele-popover/props.d.ts +1 -1
- package/es/ele-pro-layout/components/pro-header.d.ts +9 -0
- package/es/ele-pro-layout/components/pro-header.js +8 -2
- package/es/ele-pro-layout/components/pro-sidebar.d.ts +9 -0
- package/es/ele-pro-layout/components/pro-sidebar.js +8 -2
- package/es/ele-pro-layout/components/pro-sidebox.d.ts +9 -0
- package/es/ele-pro-layout/components/pro-sidebox.js +8 -2
- package/es/ele-pro-layout/index.d.ts +43 -40
- package/es/ele-pro-layout/index.js +9 -3
- package/es/ele-pro-layout/props.d.ts +9 -5
- package/es/ele-pro-layout/props.js +9 -5
- package/es/ele-pro-table/index.d.ts +4 -4
- package/es/ele-upload-list/style/index.scss +2 -1
- package/es/ele-virtual-table/props.d.ts +2 -2
- package/es/ele-virtual-table/util.js +2 -18
- package/es/style/themes/default.scss +1 -1
- package/es/style/themes/rounded.scss +1 -1
- package/es/utils/core.d.ts +5 -0
- package/es/utils/core.js +28 -0
- package/lib/ele-data-table/props.d.ts +2 -2
- package/lib/ele-ellipsis/index.cjs +1 -22
- package/lib/ele-map-picker/components/map-view.cjs +76 -49
- package/lib/ele-map-picker/components/map-view.d.ts +20 -16
- package/lib/ele-map-picker/index.d.ts +5 -3
- package/lib/ele-map-picker/props.cjs +5 -3
- package/lib/ele-map-picker/props.d.ts +6 -4
- package/lib/ele-map-picker/style/index.scss +1 -1
- package/lib/ele-menus/index.cjs +55 -3
- package/lib/ele-menus/index.d.ts +11 -2
- package/lib/ele-menus/props.cjs +10 -2
- package/lib/ele-menus/props.d.ts +8 -0
- package/lib/ele-menus/style/index.scss +1 -1
- package/lib/ele-menus/util.cjs +47 -21
- package/lib/ele-menus/util.d.ts +15 -3
- package/lib/ele-modal/style/index.scss +1 -0
- package/lib/ele-popconfirm/index.d.ts +3 -3
- package/lib/ele-popover/index.d.ts +3 -3
- package/lib/ele-popover/props.d.ts +1 -1
- package/lib/ele-pro-layout/components/pro-header.cjs +8 -2
- package/lib/ele-pro-layout/components/pro-header.d.ts +9 -0
- package/lib/ele-pro-layout/components/pro-sidebar.cjs +8 -2
- package/lib/ele-pro-layout/components/pro-sidebar.d.ts +9 -0
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +8 -2
- package/lib/ele-pro-layout/components/pro-sidebox.d.ts +9 -0
- package/lib/ele-pro-layout/index.cjs +9 -3
- package/lib/ele-pro-layout/index.d.ts +43 -40
- package/lib/ele-pro-layout/props.cjs +9 -5
- package/lib/ele-pro-layout/props.d.ts +9 -5
- package/lib/ele-pro-table/index.d.ts +4 -4
- package/lib/ele-upload-list/style/index.scss +2 -1
- package/lib/ele-virtual-table/props.d.ts +2 -2
- package/lib/ele-virtual-table/util.cjs +1 -17
- package/lib/style/themes/default.scss +1 -1
- package/lib/style/themes/rounded.scss +1 -1
- package/lib/utils/core.cjs +28 -0
- package/lib/utils/core.d.ts +5 -0
- package/package.json +1 -1
- package/es/ele-map-picker/components/map-search.d.ts +0 -22
- package/es/ele-map-picker/components/map-search.js +0 -75
- package/lib/ele-map-picker/components/map-search.cjs +0 -74
- package/lib/ele-map-picker/components/map-search.d.ts +0 -22
|
@@ -147,6 +147,8 @@ export declare const dataTableProps: {
|
|
|
147
147
|
selectedRowKeys: PropType<DataKey[]>;
|
|
148
148
|
/** 缓存数据 */
|
|
149
149
|
cacheData: PropType<DataItem[]>;
|
|
150
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
151
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
150
152
|
size: {
|
|
151
153
|
readonly type: PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
152
154
|
readonly required: false;
|
|
@@ -162,13 +164,11 @@ export declare const dataTableProps: {
|
|
|
162
164
|
type: StringConstructor;
|
|
163
165
|
default: string;
|
|
164
166
|
};
|
|
165
|
-
width: (StringConstructor | NumberConstructor)[];
|
|
166
167
|
lazy: BooleanConstructor;
|
|
167
168
|
data: {
|
|
168
169
|
type: PropType<any[]>;
|
|
169
170
|
default: () => never[];
|
|
170
171
|
};
|
|
171
|
-
height: (StringConstructor | NumberConstructor)[];
|
|
172
172
|
scrollbarAlwaysOn: {
|
|
173
173
|
type: BooleanConstructor;
|
|
174
174
|
default: boolean;
|
package/es/ele-ellipsis/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, normalizeProps, createCommentVNode } from "vue";
|
|
2
|
-
import { omit, pick,
|
|
2
|
+
import { omit, pick, contentIsEllipsis } from "../utils/core";
|
|
3
3
|
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
4
|
import EleTooltip from "../ele-tooltip/index";
|
|
5
5
|
import EleText from "../ele-text/index";
|
|
@@ -49,27 +49,6 @@ const _sfc_main = defineComponent({
|
|
|
49
49
|
}
|
|
50
50
|
return style;
|
|
51
51
|
});
|
|
52
|
-
const isOverflow = (el) => {
|
|
53
|
-
if (!el.childNodes.length) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
const range = document.createRange();
|
|
57
|
-
range.setStart(el, 0);
|
|
58
|
-
range.setEnd(el, el.childNodes.length);
|
|
59
|
-
const { width, height } = range.getBoundingClientRect();
|
|
60
|
-
const floorW = Math.floor(width);
|
|
61
|
-
const rangeWidth = width - floorW < 1e-3 ? floorW : width;
|
|
62
|
-
const floorH = Math.floor(height);
|
|
63
|
-
const rangeHeight = height - floorH < 1e-3 ? floorH : height;
|
|
64
|
-
const style = getCurrentStyle(el);
|
|
65
|
-
const top = Number.parseInt(style.paddingTop) || 0;
|
|
66
|
-
const left = Number.parseInt(style.paddingLeft) || 0;
|
|
67
|
-
const right = Number.parseInt(style.paddingRight) || 0;
|
|
68
|
-
const bottom = Number.parseInt(style.paddingBottom) || 0;
|
|
69
|
-
const horizontalPadding = left + right;
|
|
70
|
-
const verticalPadding = top + bottom;
|
|
71
|
-
return rangeWidth + horizontalPadding > el.offsetWidth || rangeHeight + verticalPadding > el.offsetHeight || el.scrollWidth > el.offsetWidth;
|
|
72
|
-
};
|
|
73
52
|
const onHover = (e) => {
|
|
74
53
|
if (!authenticated.value || !props.tooltip) {
|
|
75
54
|
virtualRef.value = void 0;
|
|
@@ -82,7 +61,7 @@ const _sfc_main = defineComponent({
|
|
|
82
61
|
}
|
|
83
62
|
} else {
|
|
84
63
|
if (target) {
|
|
85
|
-
const temp =
|
|
64
|
+
const temp = contentIsEllipsis(target) ? target.innerText : "";
|
|
86
65
|
if (text.value !== temp) {
|
|
87
66
|
text.value = temp;
|
|
88
67
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ElAutocompleteInstance } from '../../ele-app/el';
|
|
1
2
|
import type { PoiItem, CenterPoint } from '../types';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
height: {
|
|
@@ -37,10 +38,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
38
|
message: StringConstructor;
|
|
38
39
|
suggestionCity: {
|
|
39
40
|
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
42
43
|
searchPlaceholder: StringConstructor;
|
|
43
44
|
markerSrc: {
|
|
45
|
+
/** 地图节点 */
|
|
44
46
|
type: StringConstructor;
|
|
45
47
|
default: string;
|
|
46
48
|
};
|
|
@@ -48,24 +50,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
50
|
mapVersion: {
|
|
49
51
|
type: StringConstructor;
|
|
50
52
|
default: string;
|
|
51
|
-
};
|
|
53
|
+
}; /** 列表请求状态 */
|
|
52
54
|
mapStyle: StringConstructor;
|
|
53
|
-
darkMode: BooleanConstructor;
|
|
55
|
+
darkMode: BooleanConstructor; /** 确定按钮请求状态 */
|
|
54
56
|
okText: StringConstructor;
|
|
55
|
-
emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>;
|
|
56
|
-
|
|
57
|
+
emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>;
|
|
58
|
+
searchStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
57
59
|
mode: {
|
|
58
60
|
type: import("vue").PropType<import("../types").SelectMode>;
|
|
59
61
|
default: string;
|
|
60
62
|
};
|
|
61
63
|
filterable: {
|
|
62
64
|
type: BooleanConstructor;
|
|
63
|
-
default: boolean; /**
|
|
64
|
-
};
|
|
65
|
+
default: boolean; /** 选中数据 */
|
|
66
|
+
}; /** 选中数据 */
|
|
65
67
|
clickMessage: StringConstructor;
|
|
66
68
|
}, {
|
|
67
69
|
SearchOutlined: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
68
70
|
mapRef: import("vue").Ref<HTMLDivElement | null>;
|
|
71
|
+
autocompleteRef: import("vue").Ref<ElAutocompleteInstance>;
|
|
69
72
|
loading: import("vue").Ref<boolean>;
|
|
70
73
|
poiLoading: import("vue").Ref<boolean>;
|
|
71
74
|
confirmLoading: import("vue").Ref<boolean>;
|
|
@@ -160,10 +163,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
163
|
message: StringConstructor;
|
|
161
164
|
suggestionCity: {
|
|
162
165
|
type: StringConstructor;
|
|
163
|
-
default: string;
|
|
164
|
-
};
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
165
168
|
searchPlaceholder: StringConstructor;
|
|
166
169
|
markerSrc: {
|
|
170
|
+
/** 地图节点 */
|
|
167
171
|
type: StringConstructor;
|
|
168
172
|
default: string;
|
|
169
173
|
};
|
|
@@ -171,20 +175,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
171
175
|
mapVersion: {
|
|
172
176
|
type: StringConstructor;
|
|
173
177
|
default: string;
|
|
174
|
-
};
|
|
178
|
+
}; /** 列表请求状态 */
|
|
175
179
|
mapStyle: StringConstructor;
|
|
176
|
-
darkMode: BooleanConstructor;
|
|
180
|
+
darkMode: BooleanConstructor; /** 确定按钮请求状态 */
|
|
177
181
|
okText: StringConstructor;
|
|
178
|
-
emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>;
|
|
179
|
-
|
|
182
|
+
emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>;
|
|
183
|
+
searchStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
180
184
|
mode: {
|
|
181
185
|
type: import("vue").PropType<import("../types").SelectMode>;
|
|
182
186
|
default: string;
|
|
183
187
|
};
|
|
184
188
|
filterable: {
|
|
185
189
|
type: BooleanConstructor;
|
|
186
|
-
default: boolean; /**
|
|
187
|
-
};
|
|
190
|
+
default: boolean; /** 选中数据 */
|
|
191
|
+
}; /** 选中数据 */
|
|
188
192
|
clickMessage: StringConstructor;
|
|
189
193
|
}>> & {
|
|
190
194
|
onSelect?: ((_selected: PoiItem | null) => any) | undefined;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, nextTick, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, createElementBlock, Fragment, createVNode, normalizeClass, createCommentVNode, toDisplayString, createTextVNode, renderList, mergeProps } from "vue";
|
|
2
2
|
import AMapLoader from "@amap/amap-jsapi-loader";
|
|
3
|
-
import { ElInput, ElButton, ElIcon, ElEmpty } from "element-plus";
|
|
3
|
+
import { ElAutocomplete, ElInput, ElButton, ElIcon, ElEmpty } from "element-plus";
|
|
4
4
|
import { PlusOutlined, EnvironmentOutlined, CheckCircleOutlined, SearchOutlined } from "../../icons";
|
|
5
5
|
import EleLoading from "../../ele-loading/index";
|
|
6
|
-
import MapSearch from "./map-search";
|
|
7
6
|
import { mapProps } from "../props";
|
|
8
7
|
const ICON_CLASS = "ele-map-view-body-icon";
|
|
9
8
|
const _sfc_main = defineComponent({
|
|
10
9
|
name: "MapView",
|
|
11
10
|
components: {
|
|
12
|
-
|
|
11
|
+
ElAutocomplete,
|
|
13
12
|
ElInput,
|
|
14
13
|
ElButton,
|
|
15
14
|
ElIcon,
|
|
16
15
|
ElEmpty,
|
|
16
|
+
EleLoading,
|
|
17
17
|
PlusOutlined,
|
|
18
18
|
EnvironmentOutlined,
|
|
19
19
|
CheckCircleOutlined,
|
|
20
|
-
|
|
20
|
+
SearchOutlined
|
|
21
21
|
},
|
|
22
22
|
props: mapProps,
|
|
23
23
|
emits: {
|
|
@@ -27,6 +27,7 @@ const _sfc_main = defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
setup(props, { emit }) {
|
|
29
29
|
const mapRef = ref(null);
|
|
30
|
+
const autocompleteRef = ref(null);
|
|
30
31
|
const loading = ref(true);
|
|
31
32
|
const poiLoading = ref(false);
|
|
32
33
|
const confirmLoading = ref(false);
|
|
@@ -150,6 +151,7 @@ const _sfc_main = defineComponent({
|
|
|
150
151
|
});
|
|
151
152
|
};
|
|
152
153
|
const onSearchSelect = (item) => {
|
|
154
|
+
autocompleteRef.value && autocompleteRef.value.blur();
|
|
153
155
|
if (!item || !item.location) {
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
@@ -417,6 +419,15 @@ const _sfc_main = defineComponent({
|
|
|
417
419
|
const { lng, lat } = selected.value.location;
|
|
418
420
|
showCenterMarker(lng, lat);
|
|
419
421
|
}
|
|
422
|
+
if (!data.value.length && (mode === "poi" || mode === "keyword")) {
|
|
423
|
+
if (selected.value) {
|
|
424
|
+
const { lng, lat } = selected.value.location;
|
|
425
|
+
searchPOI(lng, lat);
|
|
426
|
+
} else {
|
|
427
|
+
const { lng, lat } = state.mapIns.getCenter();
|
|
428
|
+
searchPOI(lng, lat);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
420
431
|
}
|
|
421
432
|
);
|
|
422
433
|
watch(
|
|
@@ -435,6 +446,7 @@ const _sfc_main = defineComponent({
|
|
|
435
446
|
return {
|
|
436
447
|
SearchOutlined,
|
|
437
448
|
mapRef,
|
|
449
|
+
autocompleteRef,
|
|
438
450
|
loading,
|
|
439
451
|
poiLoading,
|
|
440
452
|
confirmLoading,
|
|
@@ -467,35 +479,35 @@ const _hoisted_2 = {
|
|
|
467
479
|
style: { "height": "100%" }
|
|
468
480
|
};
|
|
469
481
|
const _hoisted_3 = ["src"];
|
|
470
|
-
const _hoisted_4 = {
|
|
482
|
+
const _hoisted_4 = { class: "ele-map-suggest-item" };
|
|
483
|
+
const _hoisted_5 = { class: "ele-map-suggest-title" };
|
|
484
|
+
const _hoisted_6 = { class: "ele-map-suggest-text" };
|
|
485
|
+
const _hoisted_7 = {
|
|
471
486
|
key: 0,
|
|
472
|
-
class: "ele-map-view-search"
|
|
473
|
-
};
|
|
474
|
-
const _hoisted_5 = {
|
|
475
|
-
key: 1,
|
|
476
487
|
class: "ele-map-view-message"
|
|
477
488
|
};
|
|
478
|
-
const
|
|
479
|
-
const
|
|
480
|
-
const
|
|
481
|
-
const
|
|
482
|
-
const
|
|
489
|
+
const _hoisted_8 = { class: "ele-map-view-list" };
|
|
490
|
+
const _hoisted_9 = ["onClick"];
|
|
491
|
+
const _hoisted_10 = { class: "ele-map-view-item-body" };
|
|
492
|
+
const _hoisted_11 = { class: "ele-map-view-item-title" };
|
|
493
|
+
const _hoisted_12 = {
|
|
483
494
|
key: 0,
|
|
484
495
|
class: "ele-map-view-item-text"
|
|
485
496
|
};
|
|
486
|
-
const
|
|
497
|
+
const _hoisted_13 = {
|
|
487
498
|
key: 0,
|
|
488
499
|
class: "ele-map-view-empty"
|
|
489
500
|
};
|
|
490
|
-
const
|
|
491
|
-
const
|
|
501
|
+
const _hoisted_14 = { class: "ele-map-view-extra" };
|
|
502
|
+
const _hoisted_15 = {
|
|
492
503
|
key: 0,
|
|
493
504
|
class: "ele-map-view-message"
|
|
494
505
|
};
|
|
495
506
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
496
507
|
const _component_PlusOutlined = resolveComponent("PlusOutlined");
|
|
497
508
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
498
|
-
const
|
|
509
|
+
const _component_SearchOutlined = resolveComponent("SearchOutlined");
|
|
510
|
+
const _component_ElAutocomplete = resolveComponent("ElAutocomplete");
|
|
499
511
|
const _component_ElButton = resolveComponent("ElButton");
|
|
500
512
|
const _component_ElInput = resolveComponent("ElInput");
|
|
501
513
|
const _component_EnvironmentOutlined = resolveComponent("EnvironmentOutlined");
|
|
@@ -522,18 +534,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
522
534
|
class: normalizeClass(_ctx.centerIconClass)
|
|
523
535
|
}, null, 10, _hoisted_3)
|
|
524
536
|
], 64)) : createCommentVNode("", true),
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
+
_ctx.filterable && !_ctx.keywordMode ? (openBlock(), createElementBlock("div", {
|
|
538
|
+
key: 1,
|
|
539
|
+
class: "ele-map-view-search",
|
|
540
|
+
style: normalizeStyle(_ctx.searchStyle)
|
|
541
|
+
}, [
|
|
542
|
+
createVNode(_component_ElAutocomplete, {
|
|
543
|
+
ref: "autocompleteRef",
|
|
544
|
+
clearable: true,
|
|
545
|
+
modelValue: _ctx.keywords,
|
|
546
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.keywords = $event),
|
|
547
|
+
placeholder: _ctx.searchPlaceholder,
|
|
548
|
+
popperClass: "ele-map-suggest-popper",
|
|
549
|
+
fetchSuggestions: _ctx.onSearch,
|
|
550
|
+
onSelect: _ctx.onSearchSelect
|
|
551
|
+
}, {
|
|
552
|
+
prefix: withCtx(() => [
|
|
553
|
+
createVNode(_component_ElIcon, { class: "el-input__icon" }, {
|
|
554
|
+
default: withCtx(() => [
|
|
555
|
+
createVNode(_component_SearchOutlined)
|
|
556
|
+
]),
|
|
557
|
+
_: 1
|
|
558
|
+
})
|
|
559
|
+
]),
|
|
560
|
+
default: withCtx(({ item }) => [
|
|
561
|
+
createElementVNode("div", _hoisted_4, [
|
|
562
|
+
createElementVNode("div", _hoisted_5, toDisplayString(item.label), 1),
|
|
563
|
+
createElementVNode("div", _hoisted_6, toDisplayString(item.district), 1)
|
|
564
|
+
])
|
|
565
|
+
]),
|
|
566
|
+
_: 1
|
|
567
|
+
}, 8, ["modelValue", "placeholder", "fetchSuggestions", "onSelect"])
|
|
568
|
+
], 4)) : createCommentVNode("", true),
|
|
569
|
+
!_ctx.poiMode && !_ctx.keywordMode ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
570
|
+
_ctx.confirmDisabled && _ctx.clickMessage ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(_ctx.clickMessage), 1)) : (openBlock(), createBlock(_component_ElButton, {
|
|
571
|
+
key: 1,
|
|
537
572
|
type: "primary",
|
|
538
573
|
loading: _ctx.confirmLoading,
|
|
539
574
|
disabled: _ctx.confirmDisabled,
|
|
@@ -553,29 +588,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
553
588
|
class: "ele-map-view-side"
|
|
554
589
|
}, {
|
|
555
590
|
default: withCtx(() => [
|
|
556
|
-
_ctx.keywordMode
|
|
591
|
+
_ctx.keywordMode ? (openBlock(), createElementBlock("div", {
|
|
557
592
|
key: 0,
|
|
558
593
|
class: "ele-map-view-search",
|
|
559
|
-
style: normalizeStyle(_ctx.
|
|
594
|
+
style: normalizeStyle(_ctx.searchStyle)
|
|
560
595
|
}, [
|
|
561
|
-
|
|
562
|
-
key: 0,
|
|
596
|
+
createVNode(_component_ElInput, {
|
|
563
597
|
clearable: true,
|
|
564
598
|
modelValue: _ctx.keywords,
|
|
565
599
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.keywords = $event),
|
|
566
600
|
prefixIcon: _ctx.SearchOutlined,
|
|
567
601
|
placeholder: _ctx.searchPlaceholder,
|
|
568
602
|
onChange: _ctx.onSearch
|
|
569
|
-
}, null, 8, ["modelValue", "prefixIcon", "placeholder", "onChange"])
|
|
570
|
-
key: 1,
|
|
571
|
-
modelValue: _ctx.keywords,
|
|
572
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.keywords = $event),
|
|
573
|
-
placeholder: _ctx.searchPlaceholder,
|
|
574
|
-
onSearch: _ctx.onSearch,
|
|
575
|
-
onSearchSelect: _ctx.onSearchSelect
|
|
576
|
-
}, null, 8, ["modelValue", "placeholder", "onSearch", "onSearchSelect"]))
|
|
603
|
+
}, null, 8, ["modelValue", "prefixIcon", "placeholder", "onChange"])
|
|
577
604
|
], 4)) : createCommentVNode("", true),
|
|
578
|
-
createElementVNode("div",
|
|
605
|
+
createElementVNode("div", _hoisted_8, [
|
|
579
606
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.data, (item) => {
|
|
580
607
|
return openBlock(), createElementBlock("div", {
|
|
581
608
|
key: item.key,
|
|
@@ -588,9 +615,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
588
615
|
]),
|
|
589
616
|
_: 1
|
|
590
617
|
}),
|
|
591
|
-
createElementVNode("div",
|
|
592
|
-
createElementVNode("div",
|
|
593
|
-
item.address ? (openBlock(), createElementBlock("div",
|
|
618
|
+
createElementVNode("div", _hoisted_10, [
|
|
619
|
+
createElementVNode("div", _hoisted_11, toDisplayString(item.name), 1),
|
|
620
|
+
item.address ? (openBlock(), createElementBlock("div", _hoisted_12, toDisplayString(item.address), 1)) : createCommentVNode("", true)
|
|
594
621
|
]),
|
|
595
622
|
createVNode(_component_ElIcon, { class: "ele-map-view-item-radio" }, {
|
|
596
623
|
default: withCtx(() => [
|
|
@@ -598,14 +625,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
598
625
|
]),
|
|
599
626
|
_: 1
|
|
600
627
|
})
|
|
601
|
-
], 10,
|
|
628
|
+
], 10, _hoisted_9);
|
|
602
629
|
}), 128)),
|
|
603
|
-
!_ctx.data || !_ctx.data.length ? (openBlock(), createElementBlock("div",
|
|
630
|
+
!_ctx.data || !_ctx.data.length ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
604
631
|
createVNode(_component_ElEmpty, mergeProps({ imageSize: 80 }, _ctx.emptyProps), null, 16)
|
|
605
632
|
])) : createCommentVNode("", true)
|
|
606
633
|
]),
|
|
607
|
-
createElementVNode("div",
|
|
608
|
-
_ctx.confirmDisabled && _ctx.message ? (openBlock(), createElementBlock("div",
|
|
634
|
+
createElementVNode("div", _hoisted_14, [
|
|
635
|
+
_ctx.confirmDisabled && _ctx.message ? (openBlock(), createElementBlock("div", _hoisted_15, toDisplayString(_ctx.message), 1)) : (openBlock(), createBlock(_component_ElButton, {
|
|
609
636
|
key: 1,
|
|
610
637
|
type: "primary",
|
|
611
638
|
loading: _ctx.confirmLoading,
|
|
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
};
|
|
13
13
|
locale: import("vue").PropType<Partial<MapLocale>>;
|
|
14
14
|
keywordMode: BooleanConstructor;
|
|
15
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
15
16
|
height: {
|
|
16
17
|
type: StringConstructor;
|
|
17
18
|
default: string;
|
|
@@ -65,7 +66,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
66
|
darkMode: BooleanConstructor;
|
|
66
67
|
okText: StringConstructor;
|
|
67
68
|
emptyProps: import("vue").PropType<import("../ele-app/el").ElEmptyProps>;
|
|
68
|
-
|
|
69
|
+
searchStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
69
70
|
mode: {
|
|
70
71
|
type: import("vue").PropType<import("./types").SelectMode>;
|
|
71
72
|
default: string;
|
|
@@ -99,6 +100,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
100
|
};
|
|
100
101
|
locale: import("vue").PropType<Partial<MapLocale>>;
|
|
101
102
|
keywordMode: BooleanConstructor;
|
|
103
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
102
104
|
height: {
|
|
103
105
|
type: StringConstructor;
|
|
104
106
|
default: string;
|
|
@@ -152,7 +154,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
154
|
darkMode: BooleanConstructor;
|
|
153
155
|
okText: StringConstructor;
|
|
154
156
|
emptyProps: import("vue").PropType<import("../ele-app/el").ElEmptyProps>;
|
|
155
|
-
|
|
157
|
+
searchStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
156
158
|
mode: {
|
|
157
159
|
type: import("vue").PropType<import("./types").SelectMode>;
|
|
158
160
|
default: string;
|
|
@@ -169,10 +171,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
171
|
onDone?: ((_result: CenterPoint) => any) | undefined;
|
|
170
172
|
onMapDone?: ((_ins: any) => any) | undefined;
|
|
171
173
|
}, {
|
|
174
|
+
height: string;
|
|
172
175
|
required: boolean;
|
|
173
176
|
modelValue: boolean;
|
|
174
177
|
mode: import("./types").SelectMode;
|
|
175
|
-
height: string;
|
|
176
178
|
filterable: boolean;
|
|
177
179
|
zoom: number;
|
|
178
180
|
responsive: boolean;
|
|
@@ -79,8 +79,8 @@ export declare const mapProps: {
|
|
|
79
79
|
okText: StringConstructor;
|
|
80
80
|
/** 空组件属性 */
|
|
81
81
|
emptyProps: PropType<ElEmptyProps>;
|
|
82
|
-
/**
|
|
83
|
-
|
|
82
|
+
/** 自定义搜索栏样式 */
|
|
83
|
+
searchStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
84
84
|
/** 位置选择模式 */
|
|
85
85
|
mode: {
|
|
86
86
|
type: PropType<SelectMode>;
|
|
@@ -108,6 +108,8 @@ export declare const mapPickerProps: {
|
|
|
108
108
|
locale: PropType<Partial<MapLocale>>;
|
|
109
109
|
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
110
110
|
keywordMode: BooleanConstructor;
|
|
111
|
+
/** 自定义header样式 */
|
|
112
|
+
headerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
111
113
|
/** 地图的高度 */
|
|
112
114
|
height: {
|
|
113
115
|
type: StringConstructor;
|
|
@@ -181,8 +183,8 @@ export declare const mapPickerProps: {
|
|
|
181
183
|
okText: StringConstructor;
|
|
182
184
|
/** 空组件属性 */
|
|
183
185
|
emptyProps: PropType<ElEmptyProps>;
|
|
184
|
-
/**
|
|
185
|
-
|
|
186
|
+
/** 自定义搜索栏样式 */
|
|
187
|
+
searchStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
186
188
|
/** 位置选择模式 */
|
|
187
189
|
mode: {
|
|
188
190
|
type: PropType<SelectMode>;
|
|
@@ -72,8 +72,8 @@ const mapProps = {
|
|
|
72
72
|
okText: String,
|
|
73
73
|
/** 空组件属性 */
|
|
74
74
|
emptyProps: Object,
|
|
75
|
-
/**
|
|
76
|
-
|
|
75
|
+
/** 自定义搜索栏样式 */
|
|
76
|
+
searchStyle: Object,
|
|
77
77
|
/** 位置选择模式 */
|
|
78
78
|
mode: {
|
|
79
79
|
type: String,
|
|
@@ -101,7 +101,9 @@ const mapPickerProps = {
|
|
|
101
101
|
/** 国际化 */
|
|
102
102
|
locale: Object,
|
|
103
103
|
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
104
|
-
keywordMode: Boolean
|
|
104
|
+
keywordMode: Boolean,
|
|
105
|
+
/** 自定义header样式 */
|
|
106
|
+
headerStyle: Object
|
|
105
107
|
};
|
|
106
108
|
const mapPickerEmits = {
|
|
107
109
|
/** 选择完成事件 */
|
package/es/ele-menus/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
firstPopperClass: StringConstructor;
|
|
20
20
|
tooltipDisabled: BooleanConstructor;
|
|
21
21
|
ellipsisProps: import("vue").PropType<import("./types").EllipsisProps>;
|
|
22
|
+
textEllipsisTooltip: BooleanConstructor;
|
|
23
|
+
textEllipsisTooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
22
24
|
mode: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
23
25
|
defaultActive: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
24
26
|
defaultOpeneds: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
@@ -43,9 +45,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
45
|
open: (index: string) => void;
|
|
44
46
|
close: (index: string) => void;
|
|
45
47
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
-
itemClick: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean;
|
|
47
|
-
itemMouseenter: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean;
|
|
48
|
+
itemClick: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean; /** 文本溢出提示是否显示 */
|
|
49
|
+
itemMouseenter: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean;
|
|
48
50
|
itemMouseleave: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean;
|
|
51
|
+
parentMouseenter: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean;
|
|
52
|
+
parentMouseleave: (_item: import("./types").MenuItem, _e: MouseEvent) => boolean;
|
|
49
53
|
close: (index: string, indexPath: string[]) => boolean;
|
|
50
54
|
open: (index: string, indexPath: string[]) => boolean;
|
|
51
55
|
select: (index: string, indexPath: string[], item: MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => boolean;
|
|
@@ -67,6 +71,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
71
|
firstPopperClass: StringConstructor;
|
|
68
72
|
tooltipDisabled: BooleanConstructor;
|
|
69
73
|
ellipsisProps: import("vue").PropType<import("./types").EllipsisProps>;
|
|
74
|
+
textEllipsisTooltip: BooleanConstructor;
|
|
75
|
+
textEllipsisTooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
70
76
|
mode: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
71
77
|
defaultActive: import("element-plus/es/utils/index").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
72
78
|
defaultOpeneds: import("element-plus/es/utils/index").EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => [], boolean>;
|
|
@@ -93,6 +99,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
99
|
onItemClick?: ((_item: import("./types").MenuItem, _e: MouseEvent) => any) | undefined;
|
|
94
100
|
onItemMouseenter?: ((_item: import("./types").MenuItem, _e: MouseEvent) => any) | undefined;
|
|
95
101
|
onItemMouseleave?: ((_item: import("./types").MenuItem, _e: MouseEvent) => any) | undefined;
|
|
102
|
+
onParentMouseenter?: ((_item: import("./types").MenuItem, _e: MouseEvent) => any) | undefined;
|
|
103
|
+
onParentMouseleave?: ((_item: import("./types").MenuItem, _e: MouseEvent) => any) | undefined;
|
|
96
104
|
}, {
|
|
97
105
|
showTimeout: number;
|
|
98
106
|
hideTimeout: number;
|
|
@@ -113,5 +121,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
121
|
colorful: boolean;
|
|
114
122
|
popupColorful: import("./types").PopupColorful;
|
|
115
123
|
tooltipDisabled: boolean;
|
|
124
|
+
textEllipsisTooltip: boolean;
|
|
116
125
|
}, {}>;
|
|
117
126
|
export default _default;
|