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.
Files changed (53) hide show
  1. package/es/ele-app/el.d.ts +3 -0
  2. package/es/ele-basic-select/index.d.ts +1 -1
  3. package/es/ele-data-table/index.d.ts +1 -1
  4. package/es/ele-icon-select/index.d.ts +1 -1
  5. package/es/ele-map-picker/components/map-search.d.ts +22 -0
  6. package/es/ele-map-picker/components/map-search.js +75 -0
  7. package/es/ele-map-picker/components/map-view.d.ts +43 -24
  8. package/es/ele-map-picker/components/map-view.js +213 -189
  9. package/es/ele-map-picker/index.d.ts +33 -13
  10. package/es/ele-map-picker/index.js +21 -39
  11. package/es/ele-map-picker/props.d.ts +27 -5
  12. package/es/ele-map-picker/props.js +17 -5
  13. package/es/ele-map-picker/style/index.scss +195 -166
  14. package/es/ele-map-picker/types.d.ts +8 -4
  15. package/es/ele-menus/index.d.ts +1 -1
  16. package/es/ele-modal/index.js +1 -1
  17. package/es/ele-pro-table/index.d.ts +1 -1
  18. package/es/ele-table-select/index.d.ts +3 -3
  19. package/es/ele-tooltip/index.d.ts +1 -1
  20. package/es/ele-tree-select/index.d.ts +1 -1
  21. package/es/ele-virtual-table/index.d.ts +1 -1
  22. package/es/lang/en_US.js +2 -1
  23. package/es/lang/zh_CN.js +2 -1
  24. package/es/lang/zh_TW.js +2 -1
  25. package/es/style/themes/default.scss +1 -1
  26. package/es/style/themes/rounded.scss +1 -1
  27. package/lib/ele-app/el.d.ts +3 -0
  28. package/lib/ele-basic-select/index.d.ts +1 -1
  29. package/lib/ele-data-table/index.d.ts +1 -1
  30. package/lib/ele-icon-select/index.d.ts +1 -1
  31. package/lib/ele-map-picker/components/map-search.cjs +74 -0
  32. package/lib/ele-map-picker/components/map-search.d.ts +22 -0
  33. package/lib/ele-map-picker/components/map-view.cjs +210 -186
  34. package/lib/ele-map-picker/components/map-view.d.ts +43 -24
  35. package/lib/ele-map-picker/index.cjs +20 -38
  36. package/lib/ele-map-picker/index.d.ts +33 -13
  37. package/lib/ele-map-picker/props.cjs +17 -5
  38. package/lib/ele-map-picker/props.d.ts +27 -5
  39. package/lib/ele-map-picker/style/index.scss +195 -166
  40. package/lib/ele-map-picker/types.d.ts +8 -4
  41. package/lib/ele-menus/index.d.ts +1 -1
  42. package/lib/ele-modal/index.cjs +1 -1
  43. package/lib/ele-pro-table/index.d.ts +1 -1
  44. package/lib/ele-table-select/index.d.ts +3 -3
  45. package/lib/ele-tooltip/index.d.ts +1 -1
  46. package/lib/ele-tree-select/index.d.ts +1 -1
  47. package/lib/ele-virtual-table/index.d.ts +1 -1
  48. package/lib/lang/en_US.cjs +2 -1
  49. package/lib/lang/zh_CN.cjs +2 -1
  50. package/lib/lang/zh_TW.cjs +2 -1
  51. package/lib/style/themes/default.scss +1 -1
  52. package/lib/style/themes/rounded.scss +1 -1
  53. package/package.json +2 -2
@@ -31,6 +31,7 @@ import type {
31
31
  TableProps,
32
32
  TableV2Props,
33
33
  ImageProps,
34
+ ElAutocomplete,
34
35
  ElCascader,
35
36
  ElPopper,
36
37
  ElPopover,
@@ -136,6 +137,8 @@ export type ElImageProps = ComponentProps<ImageProps>;
136
137
  /**
137
138
  * 组件实例
138
139
  */
140
+ export type ElAutocompleteInstance = InstanceType<typeof ElAutocomplete> | null;
141
+
139
142
  export type ElCascaderInstance = InstanceType<typeof ElCascader> | null;
140
143
 
141
144
  export type ElPopperInstance = InstanceType<typeof ElPopper> | null;
@@ -95,8 +95,8 @@ declare const _default: import("vue").DefineComponent<{
95
95
  onFocus?: ((_e: FocusEvent) => any) | undefined;
96
96
  onBlur?: ((_e: FocusEvent) => any) | undefined;
97
97
  "onUpdate:visible"?: ((_visible: boolean) => any) | undefined;
98
- onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
99
98
  onClear?: (() => any) | undefined;
99
+ onRemoveTag?: ((_item: SelectedItem) => any) | undefined;
100
100
  onFilterChange?: ((_value: string) => any) | undefined;
101
101
  }, {
102
102
  disabled: boolean;
@@ -289,8 +289,8 @@ declare const _default: import("vue").DefineComponent<{
289
289
  };
290
290
  flexible: BooleanConstructor;
291
291
  }>> & {
292
- onExpandChange?: ((_row: DataItem, _expanded: boolean) => any) | undefined;
293
292
  onSelect?: ((_selection: DataItem[], _row: DataItem) => any) | undefined;
293
+ onExpandChange?: ((_row: DataItem, _expanded: boolean) => any) | undefined;
294
294
  onSelectAll?: ((_selection: DataItem[]) => any) | undefined;
295
295
  onSelectionChange?: ((_selection: DataItem[]) => any) | undefined;
296
296
  onCellMouseEnter?: ((_row: DataItem, _column: Column, _cell: HTMLTableCellElement, _e: MouseEvent) => any) | undefined;
@@ -148,8 +148,8 @@ declare const _default: import("vue").DefineComponent<{
148
148
  onBlur?: ((_e: FocusEvent) => any) | undefined;
149
149
  onChange?: ((_value?: string | null | undefined) => any) | undefined;
150
150
  "onUpdate:modelValue"?: ((_value?: string | null | undefined) => any) | undefined;
151
- onVisibleChange?: ((_visible: boolean) => any) | undefined;
152
151
  onClear?: (() => any) | undefined;
152
+ onVisibleChange?: ((_visible: boolean) => any) | undefined;
153
153
  }, {
154
154
  placement: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown> | undefined;
155
155
  disabled: boolean;
@@ -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;
@@ -0,0 +1,75 @@
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, toDisplayString } from "vue";
2
+ import { ElAutocomplete } from "element-plus";
3
+ import { SearchOutlined } from "../../icons";
4
+ const _sfc_main = defineComponent({
5
+ name: "MapSearch",
6
+ components: { ElAutocomplete, SearchOutlined },
7
+ props: {
8
+ modelValue: String,
9
+ placeholder: String
10
+ },
11
+ emits: {
12
+ "update:modelValue": (_keywords) => true,
13
+ search: (_keywords, _callback) => true,
14
+ searchSelect: (_item) => true
15
+ },
16
+ setup(_props, { emit }) {
17
+ const autocompleteRef = ref(null);
18
+ const updateModelValue = (keywords) => {
19
+ emit("update:modelValue", keywords);
20
+ };
21
+ const onSearch = (keywords, callback) => {
22
+ emit("search", keywords, callback);
23
+ };
24
+ const onSearchSelect = (item) => {
25
+ autocompleteRef.value && autocompleteRef.value.blur();
26
+ emit("searchSelect", item);
27
+ };
28
+ return { autocompleteRef, updateModelValue, onSearch, onSearchSelect };
29
+ }
30
+ });
31
+ const _export_sfc = (sfc, props) => {
32
+ const target = sfc.__vccOpts || sfc;
33
+ for (const [key, val] of props) {
34
+ target[key] = val;
35
+ }
36
+ return target;
37
+ };
38
+ const _hoisted_1 = { class: "ele-map-suggest-item" };
39
+ const _hoisted_2 = { class: "ele-map-suggest-title" };
40
+ const _hoisted_3 = { class: "ele-map-suggest-text" };
41
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
42
+ const _component_SearchOutlined = resolveComponent("SearchOutlined");
43
+ const _component_ElIcon = resolveComponent("ElIcon");
44
+ const _component_ElAutocomplete = resolveComponent("ElAutocomplete");
45
+ return openBlock(), createBlock(_component_ElAutocomplete, {
46
+ ref: "autocompleteRef",
47
+ clearable: true,
48
+ placeholder: _ctx.placeholder,
49
+ fetchSuggestions: _ctx.onSearch,
50
+ popperClass: "ele-map-suggest-popper",
51
+ modelValue: _ctx.modelValue,
52
+ "onUpdate:modelValue": _ctx.updateModelValue,
53
+ onSelect: _ctx.onSearchSelect
54
+ }, {
55
+ prefix: withCtx(() => [
56
+ createVNode(_component_ElIcon, { class: "el-input__icon" }, {
57
+ default: withCtx(() => [
58
+ createVNode(_component_SearchOutlined)
59
+ ]),
60
+ _: 1
61
+ })
62
+ ]),
63
+ default: withCtx(({ item }) => [
64
+ createElementVNode("div", _hoisted_1, [
65
+ createElementVNode("div", _hoisted_2, toDisplayString(item.label), 1),
66
+ createElementVNode("div", _hoisted_3, toDisplayString(item.district), 1)
67
+ ])
68
+ ]),
69
+ _: 1
70
+ }, 8, ["placeholder", "fetchSuggestions", "modelValue", "onUpdate:modelValue", "onSelect"]);
71
+ }
72
+ const mapSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
73
+ export {
74
+ mapSearch as default
75
+ };
@@ -37,9 +37,8 @@ declare const _default: import("vue").DefineComponent<{
37
37
  message: StringConstructor;
38
38
  suggestionCity: {
39
39
  type: StringConstructor;
40
- default: string;
41
- };
42
- keywordMode: BooleanConstructor;
40
+ default: string; /** 地图节点 */
41
+ }; /** 地图节点 */
43
42
  searchPlaceholder: StringConstructor;
44
43
  markerSrc: {
45
44
  type: StringConstructor;
@@ -47,27 +46,36 @@ declare const _default: import("vue").DefineComponent<{
47
46
  };
48
47
  mapKey: StringConstructor;
49
48
  mapVersion: {
50
- type: StringConstructor; /** 确定按钮请求状态 */
49
+ type: StringConstructor;
51
50
  default: string;
52
51
  };
53
52
  mapStyle: StringConstructor;
54
53
  darkMode: BooleanConstructor;
55
- okText: StringConstructor; /** 输入建议数据 */
56
- emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>;
54
+ okText: StringConstructor;
55
+ emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>; /** 输入建议关键字 */
57
56
  headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
57
+ mode: {
58
+ type: import("vue").PropType<import("../types").SelectMode>;
59
+ default: string;
60
+ };
61
+ filterable: {
62
+ type: BooleanConstructor;
63
+ default: boolean; /** 是否是关键字搜索模式 */
64
+ };
65
+ clickMessage: StringConstructor;
58
66
  }, {
67
+ SearchOutlined: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
59
68
  mapRef: import("vue").Ref<HTMLDivElement | null>;
60
69
  loading: import("vue").Ref<boolean>;
61
70
  poiLoading: import("vue").Ref<boolean>;
62
71
  confirmLoading: import("vue").Ref<boolean>;
63
72
  data: import("vue").Ref<{
64
- name: string;
65
- address: string;
73
+ name?: string | undefined;
74
+ address?: string | undefined;
66
75
  location: {
67
76
  lat: number;
68
77
  lng: number;
69
78
  };
70
- selected?: boolean | undefined;
71
79
  id?: string | undefined;
72
80
  key?: string | undefined;
73
81
  district?: string | undefined;
@@ -75,13 +83,12 @@ declare const _default: import("vue").DefineComponent<{
75
83
  value?: string | undefined;
76
84
  }[]>;
77
85
  suggestionData: import("vue").Ref<{
78
- name: string;
79
- address: string;
86
+ name?: string | undefined;
87
+ address?: string | undefined;
80
88
  location: {
81
89
  lat: number;
82
90
  lng: number;
83
91
  };
84
- selected?: boolean | undefined;
85
92
  id?: string | undefined;
86
93
  key?: string | undefined;
87
94
  district?: string | undefined;
@@ -91,28 +98,30 @@ declare const _default: import("vue").DefineComponent<{
91
98
  centerIconClass: import("vue").Ref<string[]>;
92
99
  keywords: import("vue").Ref<string>;
93
100
  selected: import("vue").Ref<{
94
- name: string;
95
- address: string;
101
+ name?: string | undefined;
102
+ address?: string | undefined;
96
103
  location: {
97
104
  lat: number;
98
105
  lng: number;
99
106
  };
100
- selected?: boolean | undefined;
101
107
  id?: string | undefined;
102
108
  key?: string | undefined;
103
109
  district?: string | undefined;
104
110
  label?: string | undefined;
105
111
  value?: string | undefined;
106
112
  } | null>;
107
- disabled: import("vue").ComputedRef<boolean>;
113
+ confirmDisabled: import("vue").ComputedRef<boolean>;
114
+ keywordMode: import("vue").ComputedRef<boolean>;
115
+ poiMode: import("vue").ComputedRef<boolean>;
108
116
  onSearch: (value: string, callback?: any) => void;
109
117
  onSearchSelect: (item: any) => void;
110
118
  onItemClick: (item: PoiItem) => void;
111
119
  onConfirm: () => void;
112
120
  getMapIns: () => any;
113
121
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
114
- done: (_result: CenterPoint) => true;
115
122
  mapDone: (_ins: any) => true;
123
+ select: (_selected: PoiItem | null) => true;
124
+ done: (_result: CenterPoint) => true;
116
125
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
117
126
  height: {
118
127
  type: StringConstructor;
@@ -151,9 +160,8 @@ declare const _default: import("vue").DefineComponent<{
151
160
  message: StringConstructor;
152
161
  suggestionCity: {
153
162
  type: StringConstructor;
154
- default: string;
155
- };
156
- keywordMode: BooleanConstructor;
163
+ default: string; /** 地图节点 */
164
+ }; /** 地图节点 */
157
165
  searchPlaceholder: StringConstructor;
158
166
  markerSrc: {
159
167
  type: StringConstructor;
@@ -161,20 +169,32 @@ declare const _default: import("vue").DefineComponent<{
161
169
  };
162
170
  mapKey: StringConstructor;
163
171
  mapVersion: {
164
- type: StringConstructor; /** 确定按钮请求状态 */
172
+ type: StringConstructor;
165
173
  default: string;
166
174
  };
167
175
  mapStyle: StringConstructor;
168
176
  darkMode: BooleanConstructor;
169
- okText: StringConstructor; /** 输入建议数据 */
170
- emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>;
177
+ okText: StringConstructor;
178
+ emptyProps: import("vue").PropType<import("../../ele-app/el").ElEmptyProps>; /** 输入建议关键字 */
171
179
  headerStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
180
+ mode: {
181
+ type: import("vue").PropType<import("../types").SelectMode>;
182
+ default: string;
183
+ };
184
+ filterable: {
185
+ type: BooleanConstructor;
186
+ default: boolean; /** 是否是关键字搜索模式 */
187
+ };
188
+ clickMessage: StringConstructor;
172
189
  }>> & {
190
+ onSelect?: ((_selected: PoiItem | null) => any) | undefined;
173
191
  onDone?: ((_result: CenterPoint) => any) | undefined;
174
192
  onMapDone?: ((_ins: any) => any) | undefined;
175
193
  }, {
176
194
  required: boolean;
195
+ mode: import("../types").SelectMode;
177
196
  height: string;
197
+ filterable: boolean;
178
198
  zoom: number;
179
199
  selectedZoom: number;
180
200
  poiLimit: number;
@@ -183,7 +203,6 @@ declare const _default: import("vue").DefineComponent<{
183
203
  poiRadius: number;
184
204
  returnRegions: boolean;
185
205
  suggestionCity: string;
186
- keywordMode: boolean;
187
206
  markerSrc: string;
188
207
  mapVersion: string;
189
208
  darkMode: boolean;