ele-admin-plus 1.1.9-beta.5 → 1.1.9-beta.6
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-icon-select/index.d.ts +1 -1
- package/es/ele-map-picker/components/map-search.d.ts +22 -0
- package/es/ele-map-picker/components/map-search.js +75 -0
- package/es/ele-map-picker/components/map-view.d.ts +43 -24
- package/es/ele-map-picker/components/map-view.js +213 -189
- package/es/ele-map-picker/index.d.ts +33 -13
- package/es/ele-map-picker/index.js +21 -39
- package/es/ele-map-picker/props.d.ts +27 -5
- package/es/ele-map-picker/props.js +17 -5
- 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 +1 -1
- package/es/ele-modal/index.js +1 -1
- package/es/ele-pro-table/index.d.ts +1 -1
- 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-virtual-table/index.d.ts +1 -1
- 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/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-icon-select/index.d.ts +1 -1
- package/lib/ele-map-picker/components/map-search.cjs +74 -0
- package/lib/ele-map-picker/components/map-search.d.ts +22 -0
- package/lib/ele-map-picker/components/map-view.cjs +210 -186
- package/lib/ele-map-picker/components/map-view.d.ts +43 -24
- package/lib/ele-map-picker/index.cjs +20 -38
- package/lib/ele-map-picker/index.d.ts +33 -13
- package/lib/ele-map-picker/props.cjs +17 -5
- package/lib/ele-map-picker/props.d.ts +27 -5
- 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.d.ts +1 -1
- package/lib/ele-modal/index.cjs +1 -1
- package/lib/ele-pro-table/index.d.ts +1 -1
- 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-virtual-table/index.d.ts +1 -1
- 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/package.json +2 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const elementPlus = require("element-plus");
|
|
4
|
+
const icons = require("../../icons");
|
|
5
|
+
const _sfc_main = vue.defineComponent({
|
|
6
|
+
name: "MapSearch",
|
|
7
|
+
components: { ElAutocomplete: elementPlus.ElAutocomplete, SearchOutlined: icons.SearchOutlined },
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: String,
|
|
10
|
+
placeholder: String
|
|
11
|
+
},
|
|
12
|
+
emits: {
|
|
13
|
+
"update:modelValue": (_keywords) => true,
|
|
14
|
+
search: (_keywords, _callback) => true,
|
|
15
|
+
searchSelect: (_item) => true
|
|
16
|
+
},
|
|
17
|
+
setup(_props, { emit }) {
|
|
18
|
+
const autocompleteRef = vue.ref(null);
|
|
19
|
+
const updateModelValue = (keywords) => {
|
|
20
|
+
emit("update:modelValue", keywords);
|
|
21
|
+
};
|
|
22
|
+
const onSearch = (keywords, callback) => {
|
|
23
|
+
emit("search", keywords, callback);
|
|
24
|
+
};
|
|
25
|
+
const onSearchSelect = (item) => {
|
|
26
|
+
autocompleteRef.value && autocompleteRef.value.blur();
|
|
27
|
+
emit("searchSelect", item);
|
|
28
|
+
};
|
|
29
|
+
return { autocompleteRef, updateModelValue, onSearch, onSearchSelect };
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const _export_sfc = (sfc, props) => {
|
|
33
|
+
const target = sfc.__vccOpts || sfc;
|
|
34
|
+
for (const [key, val] of props) {
|
|
35
|
+
target[key] = val;
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
};
|
|
39
|
+
const _hoisted_1 = { class: "ele-map-suggest-item" };
|
|
40
|
+
const _hoisted_2 = { class: "ele-map-suggest-title" };
|
|
41
|
+
const _hoisted_3 = { class: "ele-map-suggest-text" };
|
|
42
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43
|
+
const _component_SearchOutlined = vue.resolveComponent("SearchOutlined");
|
|
44
|
+
const _component_ElIcon = vue.resolveComponent("ElIcon");
|
|
45
|
+
const _component_ElAutocomplete = vue.resolveComponent("ElAutocomplete");
|
|
46
|
+
return vue.openBlock(), vue.createBlock(_component_ElAutocomplete, {
|
|
47
|
+
ref: "autocompleteRef",
|
|
48
|
+
clearable: true,
|
|
49
|
+
placeholder: _ctx.placeholder,
|
|
50
|
+
fetchSuggestions: _ctx.onSearch,
|
|
51
|
+
popperClass: "ele-map-suggest-popper",
|
|
52
|
+
modelValue: _ctx.modelValue,
|
|
53
|
+
"onUpdate:modelValue": _ctx.updateModelValue,
|
|
54
|
+
onSelect: _ctx.onSearchSelect
|
|
55
|
+
}, {
|
|
56
|
+
prefix: vue.withCtx(() => [
|
|
57
|
+
vue.createVNode(_component_ElIcon, { class: "el-input__icon" }, {
|
|
58
|
+
default: vue.withCtx(() => [
|
|
59
|
+
vue.createVNode(_component_SearchOutlined)
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
})
|
|
63
|
+
]),
|
|
64
|
+
default: vue.withCtx(({ item }) => [
|
|
65
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
66
|
+
vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(item.label), 1),
|
|
67
|
+
vue.createElementVNode("div", _hoisted_3, vue.toDisplayString(item.district), 1)
|
|
68
|
+
])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["placeholder", "fetchSuggestions", "modelValue", "onUpdate:modelValue", "onSelect"]);
|
|
72
|
+
}
|
|
73
|
+
const mapSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
74
|
+
module.exports = mapSearch;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ElAutocompleteInstance } from '../../ele-app/el';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
modelValue: StringConstructor;
|
|
4
|
+
placeholder: StringConstructor;
|
|
5
|
+
}, {
|
|
6
|
+
autocompleteRef: import("vue").Ref<ElAutocompleteInstance>;
|
|
7
|
+
updateModelValue: (keywords: string) => void;
|
|
8
|
+
onSearch: (keywords: string, callback?: any) => void;
|
|
9
|
+
onSearchSelect: (item: any) => void;
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
'update:modelValue': (_keywords: string) => true;
|
|
12
|
+
search: (_keywords: string, _callback: any) => true;
|
|
13
|
+
searchSelect: (_item: any) => true;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
modelValue: StringConstructor;
|
|
16
|
+
placeholder: StringConstructor;
|
|
17
|
+
}>> & {
|
|
18
|
+
"onUpdate:modelValue"?: ((_keywords: string) => any) | undefined;
|
|
19
|
+
onSearch?: ((_keywords: string, _callback: any) => any) | undefined;
|
|
20
|
+
onSearchSelect?: ((_item: any) => any) | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
export default _default;
|