@antv/l7-component 2.9.37 → 2.10.0

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 (110) hide show
  1. package/es/assets/iconfont/iconfont.js +53 -0
  2. package/es/constants/index.d.ts +60 -0
  3. package/es/constants/index.js +60 -0
  4. package/es/control/baseControl/buttonControl.d.ts +59 -0
  5. package/es/control/baseControl/buttonControl.js +191 -0
  6. package/es/control/baseControl/control.d.ts +113 -0
  7. package/es/control/baseControl/control.js +313 -0
  8. package/es/control/baseControl/index.d.ts +4 -0
  9. package/es/control/baseControl/index.js +4 -0
  10. package/es/control/baseControl/popperControl.d.ts +26 -0
  11. package/es/control/baseControl/popperControl.js +131 -0
  12. package/es/control/baseControl/selectControl.d.ts +46 -0
  13. package/es/control/baseControl/selectControl.js +232 -0
  14. package/es/control/exportImage.d.ts +18 -0
  15. package/es/control/exportImage.js +163 -0
  16. package/es/control/fullscreen.d.ts +19 -0
  17. package/es/control/fullscreen.js +151 -0
  18. package/es/control/geoLocate.d.ts +16 -0
  19. package/es/control/geoLocate.js +139 -0
  20. package/es/control/layerSwitch.d.ts +19 -0
  21. package/es/control/layerSwitch.js +172 -0
  22. package/es/control/logo.d.ts +10 -6
  23. package/es/control/logo.js +41 -11
  24. package/es/control/mapTheme.d.ts +10 -0
  25. package/es/control/mapTheme.js +135 -0
  26. package/es/control/mouseLocation.d.ts +15 -0
  27. package/es/control/mouseLocation.js +104 -0
  28. package/es/control/scale.d.ts +20 -10
  29. package/es/control/scale.js +77 -53
  30. package/es/control/zoom.d.ts +21 -10
  31. package/es/control/zoom.js +76 -49
  32. package/es/css/button.less +70 -0
  33. package/es/css/control.less +71 -0
  34. package/es/css/index.css +567 -0
  35. package/es/css/index.less +12 -0
  36. package/es/css/l7.less +60 -0
  37. package/es/css/layerPopup.less +8 -0
  38. package/es/css/logo.less +18 -0
  39. package/es/css/mouseLocation.less +9 -0
  40. package/es/css/popper.less +64 -0
  41. package/es/css/popup.less +169 -0
  42. package/es/css/scale.less +34 -0
  43. package/es/css/select.less +86 -0
  44. package/es/css/variables.less +28 -0
  45. package/es/css/zoom.less +21 -0
  46. package/es/images/logo.png +0 -0
  47. package/es/images/quanping.svg +12 -0
  48. package/es/index.d.ts +15 -8
  49. package/es/index.js +15 -9
  50. package/es/interface.d.ts +1 -20
  51. package/es/popup/layerPopup.d.ts +78 -0
  52. package/es/popup/layerPopup.js +308 -0
  53. package/es/popup/popup.d.ts +147 -0
  54. package/es/popup/popup.js +636 -0
  55. package/es/utils/icon.d.ts +1 -0
  56. package/es/utils/icon.js +9 -0
  57. package/es/utils/popper.d.ts +75 -0
  58. package/es/utils/popper.js +286 -0
  59. package/es/utils/screenfull.d.ts +2 -0
  60. package/es/utils/screenfull.js +157 -0
  61. package/lib/assets/iconfont/iconfont.js +55 -0
  62. package/lib/constants/index.js +68 -0
  63. package/lib/control/baseControl/buttonControl.js +207 -0
  64. package/lib/control/baseControl/control.js +340 -0
  65. package/lib/control/baseControl/index.js +57 -0
  66. package/lib/control/baseControl/popperControl.js +142 -0
  67. package/lib/control/baseControl/selectControl.js +253 -0
  68. package/lib/control/exportImage.js +177 -0
  69. package/lib/control/fullscreen.js +164 -0
  70. package/lib/control/geoLocate.js +154 -0
  71. package/lib/control/layerSwitch.js +183 -0
  72. package/lib/control/logo.js +50 -23
  73. package/lib/control/mapTheme.js +151 -0
  74. package/lib/control/mouseLocation.js +120 -0
  75. package/lib/control/scale.js +82 -62
  76. package/lib/control/zoom.js +78 -59
  77. package/lib/css/button.less +70 -0
  78. package/lib/css/control.less +71 -0
  79. package/lib/css/index.css +567 -0
  80. package/lib/css/index.less +12 -0
  81. package/lib/css/l7.less +60 -0
  82. package/lib/css/layerPopup.less +8 -0
  83. package/lib/css/logo.less +18 -0
  84. package/lib/css/mouseLocation.less +9 -0
  85. package/lib/css/popper.less +64 -0
  86. package/lib/css/popup.less +169 -0
  87. package/lib/css/scale.less +34 -0
  88. package/lib/css/select.less +86 -0
  89. package/lib/css/variables.less +28 -0
  90. package/lib/css/zoom.less +21 -0
  91. package/lib/images/logo.png +0 -0
  92. package/lib/images/quanping.svg +12 -0
  93. package/lib/index.js +165 -50
  94. package/lib/popup/layerPopup.js +317 -0
  95. package/lib/popup/popup.js +651 -0
  96. package/lib/utils/icon.js +18 -0
  97. package/lib/utils/popper.js +297 -0
  98. package/lib/utils/screenfull.js +167 -0
  99. package/package.json +8 -5
  100. package/es/control/BaseControl.d.ts +0 -27
  101. package/es/control/BaseControl.js +0 -134
  102. package/es/control/layer.d.ts +0 -38
  103. package/es/control/layer.js +0 -340
  104. package/es/css/l7.css +0 -502
  105. package/es/popup.d.ts +0 -35
  106. package/es/popup.js +0 -300
  107. package/lib/control/BaseControl.js +0 -160
  108. package/lib/control/layer.js +0 -362
  109. package/lib/css/l7.css +0 -502
  110. package/lib/popup.js +0 -317
@@ -0,0 +1,313 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
3
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
+ import _createClass from "@babel/runtime/helpers/createClass";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
+
10
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
+
12
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
+
14
+ import { PositionType, TYPES } from '@antv/l7-core';
15
+ import { DOM } from '@antv/l7-utils';
16
+ import EventEmitter from 'eventemitter3';
17
+ export { PositionType } from '@antv/l7-core';
18
+ export { Control };
19
+
20
+ var Control = /*#__PURE__*/function (_ref) {
21
+ _inherits(Control, _ref);
22
+
23
+ var _super = _createSuper(Control);
24
+
25
+ /**
26
+ * 当前类型控件实例个数
27
+ * @protected
28
+ */
29
+ function Control(option) {
30
+ var _this;
31
+
32
+ _classCallCheck(this, Control);
33
+
34
+ _this = _super.call(this);
35
+ Control.controlCount++;
36
+ _this.controlOption = _objectSpread(_objectSpread({}, _this.getDefault(option)), option || {});
37
+ return _this;
38
+ }
39
+
40
+ _createClass(Control, [{
41
+ key: "getOptions",
42
+ value: function getOptions() {
43
+ return this.controlOption;
44
+ }
45
+ /**
46
+ * 更新配置的方法,子类如果有自己的配置,也需要重写该方法
47
+ * @param newOptions
48
+ */
49
+
50
+ }, {
51
+ key: "setOptions",
52
+ value: function setOptions(newOptions) {
53
+ var defaultOptions = this.getDefault(newOptions);
54
+ Object.entries(newOptions).forEach(function (_ref2) {
55
+ var _ref3 = _slicedToArray(_ref2, 2),
56
+ key = _ref3[0],
57
+ value = _ref3[1];
58
+
59
+ if (value === undefined) {
60
+ newOptions[key] = defaultOptions[key];
61
+ }
62
+ });
63
+
64
+ if ('position' in newOptions) {
65
+ this.setPosition(newOptions.position);
66
+ }
67
+
68
+ if ('className' in newOptions) {
69
+ this.setClassName(newOptions.className);
70
+ }
71
+
72
+ if ('style' in newOptions) {
73
+ this.setStyle(newOptions.style);
74
+ }
75
+
76
+ this.controlOption = _objectSpread(_objectSpread({}, this.controlOption), newOptions);
77
+ }
78
+ /**
79
+ * 当 Control 被添加至 Scene 中,被 controlService 调用的方法
80
+ * @param sceneContainer
81
+ */
82
+
83
+ }, {
84
+ key: "addTo",
85
+ value: function addTo(sceneContainer) {
86
+ // 初始化各个 Service 实例
87
+ this.mapsService = sceneContainer.get(TYPES.IMapService);
88
+ this.renderService = sceneContainer.get(TYPES.IRendererService);
89
+ this.layerService = sceneContainer.get(TYPES.ILayerService);
90
+ this.controlService = sceneContainer.get(TYPES.IControlService);
91
+ this.configService = sceneContainer.get(TYPES.IGlobalConfigService);
92
+ this.scene = sceneContainer.get(TYPES.ISceneService);
93
+ this.sceneContainer = sceneContainer;
94
+ this.isShow = true; // 初始化 container
95
+
96
+ this.container = this.onAdd();
97
+ DOM.addClass(this.container, 'l7-control');
98
+ var _this$controlOption = this.controlOption,
99
+ className = _this$controlOption.className,
100
+ style = _this$controlOption.style;
101
+
102
+ if (className) {
103
+ this.setClassName(className);
104
+ }
105
+
106
+ if (style) {
107
+ this.setStyle(style);
108
+ } // 将 container 插入容器中
109
+
110
+
111
+ this.insertContainer();
112
+ this.emit('add', this);
113
+ return this;
114
+ }
115
+ /**
116
+ * 将控件移除时触发
117
+ */
118
+
119
+ }, {
120
+ key: "remove",
121
+ value: function remove() {
122
+ if (!this.mapsService) {
123
+ return this;
124
+ }
125
+
126
+ DOM.remove(this.container);
127
+ this.onRemove();
128
+ this.emit('remove', this);
129
+ }
130
+ /**
131
+ * Control 被添加的时候被调用,返回 Control 对应的 DOM 容器
132
+ */
133
+
134
+ }, {
135
+ key: "onAdd",
136
+ value: function onAdd() {
137
+ return DOM.create('div');
138
+ }
139
+ /**
140
+ * Control 被移除时调用
141
+ */
142
+ // tslint:disable-next-line:no-empty
143
+
144
+ }, {
145
+ key: "onRemove",
146
+ value: function onRemove() {}
147
+ /**
148
+ * 显示控件时触发
149
+ */
150
+
151
+ }, {
152
+ key: "show",
153
+ value: function show() {
154
+ var container = this.container;
155
+ DOM.removeClass(container, 'l7-control--hide');
156
+ this.isShow = true;
157
+ this.emit('show', this);
158
+ }
159
+ /**
160
+ * 隐藏控件时触发
161
+ */
162
+
163
+ }, {
164
+ key: "hide",
165
+ value: function hide() {
166
+ var container = this.container;
167
+ DOM.addClass(container, 'l7-control--hide');
168
+ this.isShow = false;
169
+ this.emit('hide', this);
170
+ }
171
+ /**
172
+ * 获取默认构造器参数
173
+ */
174
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
175
+
176
+ }, {
177
+ key: "getDefault",
178
+ value: function getDefault(option) {
179
+ // tslint:disable-next-line:no-object-literal-type-assertion
180
+ return {
181
+ position: PositionType.TOPRIGHT,
182
+ name: "".concat(Control.controlCount)
183
+ };
184
+ }
185
+ /**
186
+ * 获取当前控件对应的 DOM 容器
187
+ */
188
+
189
+ }, {
190
+ key: "getContainer",
191
+ value: function getContainer() {
192
+ return this.container;
193
+ }
194
+ /**
195
+ * 获取当前 Control 是否展示
196
+ */
197
+
198
+ }, {
199
+ key: "getIsShow",
200
+ value: function getIsShow() {
201
+ return this.isShow;
202
+ }
203
+ }, {
204
+ key: "_refocusOnMap",
205
+ value: function _refocusOnMap(e) {
206
+ // if map exists and event is not a keyboard event
207
+ if (this.mapsService && e && e.screenX > 0 && e.screenY > 0) {
208
+ var container = this.mapsService.getContainer();
209
+
210
+ if (container !== null) {
211
+ container.focus();
212
+ }
213
+ }
214
+ }
215
+ /**
216
+ * 设置当前控件位置
217
+ * @param position
218
+ */
219
+
220
+ }, {
221
+ key: "setPosition",
222
+ value: function setPosition() {
223
+ var position = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : PositionType.TOPLEFT;
224
+ // 考虑组件的自动布局,需要销毁重建
225
+ var controlService = this.controlService;
226
+
227
+ if (controlService) {
228
+ controlService.removeControl(this);
229
+ }
230
+
231
+ this.controlOption.position = position;
232
+
233
+ if (controlService) {
234
+ controlService.addControl(this, this.sceneContainer);
235
+ }
236
+
237
+ return this;
238
+ }
239
+ /**
240
+ * 设置容器 container 的样式相关位置,包含 className
241
+ * @param className
242
+ */
243
+
244
+ }, {
245
+ key: "setClassName",
246
+ value: function setClassName(className) {
247
+ var container = this.container;
248
+ var oldClassName = this.controlOption.className;
249
+
250
+ if (oldClassName) {
251
+ DOM.removeClass(container, oldClassName);
252
+ }
253
+
254
+ if (className) {
255
+ DOM.addClass(container, className);
256
+ }
257
+ }
258
+ /**
259
+ * 设置容器 container 的样式相关位置,包含 style
260
+ * @param style
261
+ */
262
+
263
+ }, {
264
+ key: "setStyle",
265
+ value: function setStyle(style) {
266
+ var container = this.container;
267
+
268
+ if (style) {
269
+ container.setAttribute('style', style);
270
+ } else {
271
+ container.removeAttribute('style');
272
+ }
273
+ }
274
+ /**
275
+ * 将控件 DOM 插入到对应 position 的容器中
276
+ * @protected
277
+ */
278
+
279
+ }, {
280
+ key: "insertContainer",
281
+ value: function insertContainer() {
282
+ var container = this.container;
283
+ var position = this.controlOption.position;
284
+ var corner = this.controlService.controlCorners[position];
285
+
286
+ if (position.indexOf('bottom') !== -1) {
287
+ corner.insertBefore(container, corner.firstChild);
288
+ } else {
289
+ corner.appendChild(container);
290
+ }
291
+ }
292
+ /**
293
+ * 检查当前传入 option 是否包含 keys 字段
294
+ * @param option
295
+ * @param keys
296
+ * @protected
297
+ */
298
+
299
+ }, {
300
+ key: "checkUpdateOption",
301
+ value: function checkUpdateOption(option, keys) {
302
+ return keys.some(function (key) {
303
+ return key in option;
304
+ });
305
+ }
306
+ }]);
307
+
308
+ return Control;
309
+ }(EventEmitter);
310
+
311
+ _defineProperty(Control, "controlCount", 0);
312
+
313
+ export { Control as default };
@@ -0,0 +1,4 @@
1
+ export * from './control';
2
+ export * from './buttonControl';
3
+ export * from './popperControl';
4
+ export * from './selectControl';
@@ -0,0 +1,4 @@
1
+ export * from "./control";
2
+ export * from "./buttonControl";
3
+ export * from "./popperControl";
4
+ export * from "./selectControl";
@@ -0,0 +1,26 @@
1
+ import { Popper, PopperPlacement, PopperTrigger } from '../../utils/popper';
2
+ import ButtonControl, { IButtonControlOption } from './buttonControl';
3
+ export { PopperControl };
4
+ export interface IPopperControlOption extends IButtonControlOption {
5
+ popperPlacement: PopperPlacement;
6
+ popperClassName?: string;
7
+ popperTrigger: PopperTrigger;
8
+ }
9
+ export default class PopperControl<O extends IPopperControlOption = IPopperControlOption> extends ButtonControl<O> {
10
+ /**
11
+ * 气泡实例
12
+ * @protected
13
+ */
14
+ protected popper: Popper;
15
+ getPopper(): Popper;
16
+ hide(): void;
17
+ /**
18
+ * 获取默认配置
19
+ * @param option
20
+ */
21
+ getDefault(option?: Partial<O>): O;
22
+ onAdd(): HTMLElement;
23
+ onRemove(): void;
24
+ initPopper(): Popper;
25
+ setOptions(option: Partial<O>): void;
26
+ }
@@ -0,0 +1,131 @@
1
+ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
2
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _get from "@babel/runtime/helpers/get";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
+
9
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
+
11
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
+
13
+ import { Popper } from "../../utils/popper";
14
+ import ButtonControl from "./buttonControl";
15
+ export { PopperControl };
16
+ var PopperPlacementMap = {
17
+ topleft: 'right-start',
18
+ topcenter: 'bottom',
19
+ topright: 'left-start',
20
+ bottomleft: 'right-end',
21
+ bottomcenter: 'top',
22
+ bottomright: 'left-end',
23
+ lefttop: 'bottom-start',
24
+ leftcenter: 'right',
25
+ leftbottom: 'top-start',
26
+ righttop: 'bottom-end',
27
+ rightcenter: 'left',
28
+ rightbottom: 'top-end'
29
+ };
30
+
31
+ var PopperControl = /*#__PURE__*/function (_ButtonControl) {
32
+ _inherits(PopperControl, _ButtonControl);
33
+
34
+ var _super = _createSuper(PopperControl);
35
+
36
+ function PopperControl() {
37
+ _classCallCheck(this, PopperControl);
38
+
39
+ return _super.apply(this, arguments);
40
+ }
41
+
42
+ _createClass(PopperControl, [{
43
+ key: "getPopper",
44
+ value:
45
+ /**
46
+ * 气泡实例
47
+ * @protected
48
+ */
49
+ function getPopper() {
50
+ return this.popper;
51
+ }
52
+ }, {
53
+ key: "hide",
54
+ value: function hide() {
55
+ this.popper.hide();
56
+
57
+ _get(_getPrototypeOf(PopperControl.prototype), "hide", this).call(this);
58
+ }
59
+ /**
60
+ * 获取默认配置
61
+ * @param option
62
+ */
63
+
64
+ }, {
65
+ key: "getDefault",
66
+ value: function getDefault(option) {
67
+ var _option$position;
68
+
69
+ var defaultOption = _get(_getPrototypeOf(PopperControl.prototype), "getDefault", this).call(this, option);
70
+
71
+ var position = (_option$position = option === null || option === void 0 ? void 0 : option.position) !== null && _option$position !== void 0 ? _option$position : defaultOption.position;
72
+ return _objectSpread(_objectSpread({}, _get(_getPrototypeOf(PopperControl.prototype), "getDefault", this).call(this, option)), {}, {
73
+ popperPlacement: PopperPlacementMap[position],
74
+ popperTrigger: 'click'
75
+ });
76
+ }
77
+ }, {
78
+ key: "onAdd",
79
+ value: function onAdd() {
80
+ var button = _get(_getPrototypeOf(PopperControl.prototype), "onAdd", this).call(this);
81
+
82
+ this.initPopper();
83
+ return button;
84
+ }
85
+ }, {
86
+ key: "onRemove",
87
+ value: function onRemove() {
88
+ this.popper.destroy();
89
+ }
90
+ }, {
91
+ key: "initPopper",
92
+ value: function initPopper() {
93
+ var _this = this;
94
+
95
+ var _this$controlOption = this.controlOption,
96
+ popperClassName = _this$controlOption.popperClassName,
97
+ popperPlacement = _this$controlOption.popperPlacement,
98
+ popperTrigger = _this$controlOption.popperTrigger;
99
+ var popperContainer = this.mapsService.getMapContainer();
100
+ this.popper = new Popper(this.button, {
101
+ className: popperClassName,
102
+ placement: popperPlacement,
103
+ trigger: popperTrigger,
104
+ container: popperContainer,
105
+ unique: true
106
+ });
107
+ this.popper.on('show', function () {
108
+ _this.emit('popperShow', _this);
109
+ }).on('hide', function () {
110
+ _this.emit('popperHide', _this);
111
+ });
112
+ return this.popper;
113
+ }
114
+ }, {
115
+ key: "setOptions",
116
+ value: function setOptions(option) {
117
+ _get(_getPrototypeOf(PopperControl.prototype), "setOptions", this).call(this, option);
118
+
119
+ if (this.checkUpdateOption(option, ['popperPlacement', 'popperTrigger', 'popperClassName'])) {
120
+ var content = this.popper.getContent();
121
+ this.popper.destroy();
122
+ this.initPopper();
123
+ this.popper.setContent(content);
124
+ }
125
+ }
126
+ }]);
127
+
128
+ return PopperControl;
129
+ }(ButtonControl);
130
+
131
+ export { PopperControl as default };
@@ -0,0 +1,46 @@
1
+ import { IPopperControlOption, PopperControl } from './popperControl';
2
+ declare type BaseOptionItem = {
3
+ value: string;
4
+ text: string;
5
+ [key: string]: string;
6
+ };
7
+ declare type NormalOptionItem = BaseOptionItem & {
8
+ icon?: HTMLElement;
9
+ };
10
+ declare type ImageOptionItem = BaseOptionItem & {
11
+ img: string;
12
+ };
13
+ export declare type ControlOptionItem = ImageOptionItem | NormalOptionItem;
14
+ export interface ISelectControlOption extends IPopperControlOption {
15
+ options: ControlOptionItem[];
16
+ defaultValue?: string | string[];
17
+ }
18
+ export { SelectControl };
19
+ export default class SelectControl<O extends ISelectControlOption = ISelectControlOption> extends PopperControl<O> {
20
+ /**
21
+ * 当前选中的值
22
+ * @protected
23
+ */
24
+ protected selectValue: string[];
25
+ /**
26
+ * 选项对应的 DOM 列表
27
+ * @protected
28
+ */
29
+ protected optionDOMList: HTMLElement[];
30
+ setOptions(option: Partial<O>): void;
31
+ onAdd(): HTMLElement;
32
+ getSelectValue(): string | string[];
33
+ setSelectValue(value: string | string[], emitEvent?: boolean): void;
34
+ /**
35
+ * 是否为多选
36
+ * @protected
37
+ */
38
+ protected getIsMultiple(): boolean;
39
+ protected getPopperContent(options: ControlOptionItem[]): HTMLElement;
40
+ protected createNormalOption: (option: NormalOptionItem) => HTMLElement;
41
+ protected createImageOption(option: ImageOptionItem): HTMLElement;
42
+ protected createCheckbox(isSelect: boolean): HTMLElement;
43
+ protected onItemClick: (item: ControlOptionItem) => void;
44
+ protected isImageOptions(): boolean;
45
+ protected transSelectValue(value: string | string[]): string[];
46
+ }