ele-admin-plus 1.1.9-beta.5 → 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-app/el.d.ts +3 -0
- package/es/ele-basic-select/index.d.ts +1 -1
- package/es/ele-data-table/index.d.ts +1 -1
- package/es/ele-data-table/props.d.ts +2 -2
- package/es/ele-ellipsis/index.js +2 -23
- package/es/ele-icon-select/index.d.ts +1 -1
- package/es/ele-map-picker/components/map-view.d.ts +47 -24
- package/es/ele-map-picker/components/map-view.js +227 -176
- package/es/ele-map-picker/index.d.ts +38 -16
- package/es/ele-map-picker/index.js +21 -39
- package/es/ele-map-picker/props.d.ts +33 -9
- package/es/ele-map-picker/props.js +20 -6
- package/es/ele-map-picker/style/index.scss +195 -166
- package/es/ele-map-picker/types.d.ts +8 -4
- package/es/ele-menus/index.d.ts +12 -3
- 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/index.js +1 -1
- 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 +5 -5
- package/es/ele-table-select/index.d.ts +3 -3
- package/es/ele-tooltip/index.d.ts +1 -1
- package/es/ele-tree-select/index.d.ts +1 -1
- package/es/ele-upload-list/style/index.scss +2 -1
- package/es/ele-virtual-table/index.d.ts +1 -1
- package/es/ele-virtual-table/props.d.ts +2 -2
- package/es/ele-virtual-table/util.js +2 -18
- package/es/lang/en_US.js +2 -1
- package/es/lang/zh_CN.js +2 -1
- package/es/lang/zh_TW.js +2 -1
- 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-app/el.d.ts +3 -0
- package/lib/ele-basic-select/index.d.ts +1 -1
- package/lib/ele-data-table/index.d.ts +1 -1
- package/lib/ele-data-table/props.d.ts +2 -2
- package/lib/ele-ellipsis/index.cjs +1 -22
- package/lib/ele-icon-select/index.d.ts +1 -1
- package/lib/ele-map-picker/components/map-view.cjs +225 -174
- package/lib/ele-map-picker/components/map-view.d.ts +47 -24
- package/lib/ele-map-picker/index.cjs +20 -38
- package/lib/ele-map-picker/index.d.ts +38 -16
- package/lib/ele-map-picker/props.cjs +20 -6
- package/lib/ele-map-picker/props.d.ts +33 -9
- package/lib/ele-map-picker/style/index.scss +195 -166
- package/lib/ele-map-picker/types.d.ts +8 -4
- package/lib/ele-menus/index.cjs +55 -3
- package/lib/ele-menus/index.d.ts +12 -3
- 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/index.cjs +1 -1
- 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 +5 -5
- package/lib/ele-table-select/index.d.ts +3 -3
- package/lib/ele-tooltip/index.d.ts +1 -1
- package/lib/ele-tree-select/index.d.ts +1 -1
- package/lib/ele-upload-list/style/index.scss +2 -1
- package/lib/ele-virtual-table/index.d.ts +1 -1
- package/lib/ele-virtual-table/props.d.ts +2 -2
- package/lib/ele-virtual-table/util.cjs +1 -17
- package/lib/lang/en_US.cjs +2 -1
- package/lib/lang/zh_CN.cjs +2 -1
- package/lib/lang/zh_TW.cjs +2 -1
- 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 +2 -2
|
@@ -11,6 +11,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
default: null;
|
|
12
12
|
};
|
|
13
13
|
locale: import("vue").PropType<Partial<MapLocale>>;
|
|
14
|
+
keywordMode: BooleanConstructor;
|
|
15
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
14
16
|
height: {
|
|
15
17
|
type: StringConstructor;
|
|
16
18
|
default: string;
|
|
@@ -42,7 +44,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
44
|
};
|
|
43
45
|
returnRegions: BooleanConstructor;
|
|
44
46
|
required: {
|
|
45
|
-
type: BooleanConstructor;
|
|
47
|
+
type: BooleanConstructor; /** 地图组件 */
|
|
46
48
|
default: boolean;
|
|
47
49
|
};
|
|
48
50
|
message: StringConstructor;
|
|
@@ -50,8 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
52
|
type: StringConstructor;
|
|
51
53
|
default: string;
|
|
52
54
|
};
|
|
53
|
-
|
|
54
|
-
searchPlaceholder: StringConstructor;
|
|
55
|
+
searchPlaceholder: StringConstructor; /** 地图属性 */
|
|
55
56
|
markerSrc: {
|
|
56
57
|
type: StringConstructor;
|
|
57
58
|
default: string;
|
|
@@ -59,22 +60,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
60
|
mapKey: StringConstructor;
|
|
60
61
|
mapVersion: {
|
|
61
62
|
type: StringConstructor;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
63
|
+
default: string; /** 地图渲染完成事件 */
|
|
64
|
+
}; /** 地图渲染完成事件 */
|
|
64
65
|
mapStyle: StringConstructor;
|
|
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>>;
|
|
70
|
+
mode: {
|
|
71
|
+
type: import("vue").PropType<import("./types").SelectMode>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
filterable: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
clickMessage: StringConstructor;
|
|
69
79
|
}, {
|
|
70
|
-
mapRef: Ref<MapViewInstance>;
|
|
71
80
|
lang: import("vue").ComputedRef<MapLocale>;
|
|
72
81
|
isResponsive: import("vue").ComputedRef<boolean>;
|
|
82
|
+
mapRef: Ref<MapViewInstance>;
|
|
73
83
|
aMapKey: import("vue").ComputedRef<string | undefined>;
|
|
74
84
|
mapProps: import("vue").ComputedRef<Partial<MapProps>>;
|
|
75
85
|
updateModelValue: (value: boolean) => void;
|
|
76
|
-
onDone: (result: CenterPoint) => void;
|
|
77
86
|
onMapDone: (ins: any) => void;
|
|
87
|
+
onDone: (result: CenterPoint) => void;
|
|
78
88
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
89
|
done: (_result: CenterPoint) => boolean;
|
|
80
90
|
mapDone: (_ins: any) => boolean;
|
|
@@ -89,6 +99,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
99
|
default: null;
|
|
90
100
|
};
|
|
91
101
|
locale: import("vue").PropType<Partial<MapLocale>>;
|
|
102
|
+
keywordMode: BooleanConstructor;
|
|
103
|
+
headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
92
104
|
height: {
|
|
93
105
|
type: StringConstructor;
|
|
94
106
|
default: string;
|
|
@@ -120,7 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
132
|
};
|
|
121
133
|
returnRegions: BooleanConstructor;
|
|
122
134
|
required: {
|
|
123
|
-
type: BooleanConstructor;
|
|
135
|
+
type: BooleanConstructor; /** 地图组件 */
|
|
124
136
|
default: boolean;
|
|
125
137
|
};
|
|
126
138
|
message: StringConstructor;
|
|
@@ -128,8 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
140
|
type: StringConstructor;
|
|
129
141
|
default: string;
|
|
130
142
|
};
|
|
131
|
-
|
|
132
|
-
searchPlaceholder: StringConstructor;
|
|
143
|
+
searchPlaceholder: StringConstructor; /** 地图属性 */
|
|
133
144
|
markerSrc: {
|
|
134
145
|
type: StringConstructor;
|
|
135
146
|
default: string;
|
|
@@ -137,13 +148,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
137
148
|
mapKey: StringConstructor;
|
|
138
149
|
mapVersion: {
|
|
139
150
|
type: StringConstructor;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
151
|
+
default: string; /** 地图渲染完成事件 */
|
|
152
|
+
}; /** 地图渲染完成事件 */
|
|
142
153
|
mapStyle: StringConstructor;
|
|
143
154
|
darkMode: BooleanConstructor;
|
|
144
155
|
okText: StringConstructor;
|
|
145
156
|
emptyProps: import("vue").PropType<import("../ele-app/el").ElEmptyProps>;
|
|
146
|
-
|
|
157
|
+
searchStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
158
|
+
mode: {
|
|
159
|
+
type: import("vue").PropType<import("./types").SelectMode>;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
filterable: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
clickMessage: StringConstructor;
|
|
147
167
|
}>> & {
|
|
148
168
|
"onUpdate:modelValue"?: ((_value: boolean) => any) | undefined;
|
|
149
169
|
onOpen?: (() => any) | undefined;
|
|
@@ -151,11 +171,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
171
|
onDone?: ((_result: CenterPoint) => any) | undefined;
|
|
152
172
|
onMapDone?: ((_ins: any) => any) | undefined;
|
|
153
173
|
}, {
|
|
174
|
+
height: string;
|
|
154
175
|
required: boolean;
|
|
155
176
|
modelValue: boolean;
|
|
156
|
-
|
|
177
|
+
mode: import("./types").SelectMode;
|
|
178
|
+
filterable: boolean;
|
|
157
179
|
zoom: number;
|
|
158
180
|
responsive: boolean;
|
|
181
|
+
keywordMode: boolean;
|
|
159
182
|
selectedZoom: number;
|
|
160
183
|
poiLimit: number;
|
|
161
184
|
poiType: string;
|
|
@@ -163,7 +186,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
186
|
poiRadius: number;
|
|
164
187
|
returnRegions: boolean;
|
|
165
188
|
suggestionCity: string;
|
|
166
|
-
keywordMode: boolean;
|
|
167
189
|
markerSrc: string;
|
|
168
190
|
mapVersion: string;
|
|
169
191
|
darkMode: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, createVNode, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, createVNode, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { pick } from "../utils/core";
|
|
3
3
|
import { useLocale, useResponsive } from "../ele-config-provider/receiver";
|
|
4
4
|
import EleModal from "../ele-modal/index";
|
|
@@ -20,21 +20,21 @@ const _sfc_main = defineComponent({
|
|
|
20
20
|
const updateModelValue = (value) => {
|
|
21
21
|
emit("update:modelValue", value);
|
|
22
22
|
};
|
|
23
|
-
const onDone = (result) => {
|
|
24
|
-
emit("done", result);
|
|
25
|
-
};
|
|
26
23
|
const onMapDone = (ins) => {
|
|
27
24
|
emit("mapDone", ins);
|
|
28
25
|
};
|
|
26
|
+
const onDone = (result) => {
|
|
27
|
+
emit("done", result);
|
|
28
|
+
};
|
|
29
29
|
return {
|
|
30
|
-
mapRef,
|
|
31
30
|
lang,
|
|
32
31
|
isResponsive,
|
|
32
|
+
mapRef,
|
|
33
33
|
aMapKey,
|
|
34
34
|
mapProps,
|
|
35
35
|
updateModelValue,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
onMapDone,
|
|
37
|
+
onDone
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
});
|
|
@@ -49,7 +49,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49
49
|
const _component_MapView = resolveComponent("MapView");
|
|
50
50
|
const _component_EleModal = resolveComponent("EleModal");
|
|
51
51
|
return openBlock(), createBlock(_component_EleModal, mergeProps({
|
|
52
|
-
width: "
|
|
52
|
+
width: "740px",
|
|
53
53
|
title: _ctx.lang.title
|
|
54
54
|
}, _ctx.modalProps, {
|
|
55
55
|
modelValue: _ctx.modelValue,
|
|
@@ -60,43 +60,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
60
|
createVNode(_component_MapView, mergeProps(_ctx.mapProps, {
|
|
61
61
|
ref: "mapRef",
|
|
62
62
|
message: _ctx.lang.message,
|
|
63
|
+
clickMessage: _ctx.lang.clickMessage,
|
|
63
64
|
searchPlaceholder: _ctx.lang.placeholder,
|
|
64
65
|
okText: _ctx.lang.ok,
|
|
65
66
|
mapKey: _ctx.aMapKey,
|
|
66
|
-
|
|
67
|
-
onMapDone: _ctx.onMapDone
|
|
68
|
-
|
|
67
|
+
mode: _ctx.keywordMode ? "keyword" : _ctx.mode,
|
|
68
|
+
onMapDone: _ctx.onMapDone,
|
|
69
|
+
onDone: _ctx.onDone
|
|
70
|
+
}), null, 16, ["message", "clickMessage", "searchPlaceholder", "okText", "mapKey", "mode", "onMapDone", "onDone"])
|
|
69
71
|
]),
|
|
70
72
|
_: 2
|
|
71
73
|
}, [
|
|
72
|
-
_ctx.$slots.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
name: "footer",
|
|
81
|
-
fn: withCtx((slotProps) => [
|
|
82
|
-
renderSlot(_ctx.$slots, "footer", normalizeProps(guardReactiveProps(slotProps || {})))
|
|
83
|
-
]),
|
|
84
|
-
key: "1"
|
|
85
|
-
} : void 0,
|
|
86
|
-
_ctx.$slots.maxIcon ? {
|
|
87
|
-
name: "maxIcon",
|
|
88
|
-
fn: withCtx((slotProps) => [
|
|
89
|
-
renderSlot(_ctx.$slots, "maxIcon", normalizeProps(guardReactiveProps(slotProps || {})))
|
|
90
|
-
]),
|
|
91
|
-
key: "2"
|
|
92
|
-
} : void 0,
|
|
93
|
-
_ctx.$slots.closeIcon ? {
|
|
94
|
-
name: "closeIcon",
|
|
95
|
-
fn: withCtx((slotProps) => [
|
|
96
|
-
renderSlot(_ctx.$slots, "closeIcon", normalizeProps(guardReactiveProps(slotProps || {})))
|
|
97
|
-
]),
|
|
98
|
-
key: "3"
|
|
99
|
-
} : void 0
|
|
74
|
+
renderList(Object.keys(_ctx.$slots).filter((k) => "default" !== k), (name) => {
|
|
75
|
+
return {
|
|
76
|
+
name,
|
|
77
|
+
fn: withCtx((slotProps) => [
|
|
78
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps || {})))
|
|
79
|
+
])
|
|
80
|
+
};
|
|
81
|
+
})
|
|
100
82
|
]), 1040, ["title", "modelValue", "class", "onUpdate:modelValue"]);
|
|
101
83
|
}
|
|
102
84
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { ElEmptyProps } from '../ele-app/el';
|
|
3
3
|
import type { EleModalProps } from '../ele-app/plus';
|
|
4
|
-
import type { MapLocale, CenterPoint } from './types';
|
|
4
|
+
import type { MapLocale, CenterPoint, SelectMode } from './types';
|
|
5
5
|
/**
|
|
6
6
|
* 属性
|
|
7
7
|
*/
|
|
@@ -57,8 +57,6 @@ export declare const mapProps: {
|
|
|
57
57
|
type: StringConstructor;
|
|
58
58
|
default: string;
|
|
59
59
|
};
|
|
60
|
-
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
61
|
-
keywordMode: BooleanConstructor;
|
|
62
60
|
/** 搜索框提示文本 */
|
|
63
61
|
searchPlaceholder: StringConstructor;
|
|
64
62
|
/** 地图中心图标地址 */
|
|
@@ -81,8 +79,20 @@ export declare const mapProps: {
|
|
|
81
79
|
okText: StringConstructor;
|
|
82
80
|
/** 空组件属性 */
|
|
83
81
|
emptyProps: PropType<ElEmptyProps>;
|
|
84
|
-
/**
|
|
85
|
-
|
|
82
|
+
/** 自定义搜索栏样式 */
|
|
83
|
+
searchStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
84
|
+
/** 位置选择模式 */
|
|
85
|
+
mode: {
|
|
86
|
+
type: PropType<SelectMode>;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
/** 非关键字模式是否显示搜索框 */
|
|
90
|
+
filterable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
/** 强制选择点击地图提示文本 */
|
|
95
|
+
clickMessage: StringConstructor;
|
|
86
96
|
};
|
|
87
97
|
export declare const mapPickerProps: {
|
|
88
98
|
/** 弹窗是否显示 */
|
|
@@ -96,6 +106,10 @@ export declare const mapPickerProps: {
|
|
|
96
106
|
};
|
|
97
107
|
/** 国际化 */
|
|
98
108
|
locale: PropType<Partial<MapLocale>>;
|
|
109
|
+
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
110
|
+
keywordMode: BooleanConstructor;
|
|
111
|
+
/** 自定义header样式 */
|
|
112
|
+
headerStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
99
113
|
/** 地图的高度 */
|
|
100
114
|
height: {
|
|
101
115
|
type: StringConstructor;
|
|
@@ -147,8 +161,6 @@ export declare const mapPickerProps: {
|
|
|
147
161
|
type: StringConstructor;
|
|
148
162
|
default: string;
|
|
149
163
|
};
|
|
150
|
-
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
151
|
-
keywordMode: BooleanConstructor;
|
|
152
164
|
/** 搜索框提示文本 */
|
|
153
165
|
searchPlaceholder: StringConstructor;
|
|
154
166
|
/** 地图中心图标地址 */
|
|
@@ -171,8 +183,20 @@ export declare const mapPickerProps: {
|
|
|
171
183
|
okText: StringConstructor;
|
|
172
184
|
/** 空组件属性 */
|
|
173
185
|
emptyProps: PropType<ElEmptyProps>;
|
|
174
|
-
/**
|
|
175
|
-
|
|
186
|
+
/** 自定义搜索栏样式 */
|
|
187
|
+
searchStyle: PropType<Partial<import("vue").CSSProperties>>;
|
|
188
|
+
/** 位置选择模式 */
|
|
189
|
+
mode: {
|
|
190
|
+
type: PropType<SelectMode>;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
/** 非关键字模式是否显示搜索框 */
|
|
194
|
+
filterable: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
/** 强制选择点击地图提示文本 */
|
|
199
|
+
clickMessage: StringConstructor;
|
|
176
200
|
};
|
|
177
201
|
export type MapPickerProps = ExtractPropTypes<typeof mapPickerProps>;
|
|
178
202
|
export type MapProps = ExtractPropTypes<typeof mapProps>;
|
|
@@ -2,7 +2,7 @@ const mapProps = {
|
|
|
2
2
|
/** 地图的高度 */
|
|
3
3
|
height: {
|
|
4
4
|
type: String,
|
|
5
|
-
default: "
|
|
5
|
+
default: "460px"
|
|
6
6
|
},
|
|
7
7
|
/** 地图默认中心点 */
|
|
8
8
|
center: Array,
|
|
@@ -50,8 +50,6 @@ const mapProps = {
|
|
|
50
50
|
type: String,
|
|
51
51
|
default: "全国"
|
|
52
52
|
},
|
|
53
|
-
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
54
|
-
keywordMode: Boolean,
|
|
55
53
|
/** 搜索框提示文本 */
|
|
56
54
|
searchPlaceholder: String,
|
|
57
55
|
/** 地图中心图标地址 */
|
|
@@ -74,8 +72,20 @@ const mapProps = {
|
|
|
74
72
|
okText: String,
|
|
75
73
|
/** 空组件属性 */
|
|
76
74
|
emptyProps: Object,
|
|
77
|
-
/**
|
|
78
|
-
|
|
75
|
+
/** 自定义搜索栏样式 */
|
|
76
|
+
searchStyle: Object,
|
|
77
|
+
/** 位置选择模式 */
|
|
78
|
+
mode: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: "poi"
|
|
81
|
+
},
|
|
82
|
+
/** 非关键字模式是否显示搜索框 */
|
|
83
|
+
filterable: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: true
|
|
86
|
+
},
|
|
87
|
+
/** 强制选择点击地图提示文本 */
|
|
88
|
+
clickMessage: String
|
|
79
89
|
};
|
|
80
90
|
const mapPickerProps = {
|
|
81
91
|
...mapProps,
|
|
@@ -89,7 +99,11 @@ const mapPickerProps = {
|
|
|
89
99
|
default: null
|
|
90
100
|
},
|
|
91
101
|
/** 国际化 */
|
|
92
|
-
locale: Object
|
|
102
|
+
locale: Object,
|
|
103
|
+
/** 是否使用关键字检索模式, 默认POI检索模式 */
|
|
104
|
+
keywordMode: Boolean,
|
|
105
|
+
/** 自定义header样式 */
|
|
106
|
+
headerStyle: Object
|
|
93
107
|
};
|
|
94
108
|
const mapPickerEmits = {
|
|
95
109
|
/** 选择完成事件 */
|