mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复 Components 中引用 l7-utils 路径问题 (#1450)
Co-authored-by: yanxiong <oujinhui.ojh@antgroup.com>
This commit is contained in:
parent
2f9373bb1d
commit
64b51fa459
|
@ -1,11 +1,10 @@
|
|||
import { DOM } from '@antv/l7-utils';
|
||||
import { ELType } from '@antv/l7-utils/src/dom';
|
||||
import Control, { IControlOption } from './control';
|
||||
|
||||
export { ButtonControl };
|
||||
|
||||
export interface IButtonControlOption extends IControlOption {
|
||||
btnIcon?: ELType | DocumentFragment;
|
||||
btnIcon?: DOM.ELType | DocumentFragment;
|
||||
btnText?: string;
|
||||
title?: string;
|
||||
vertical?: boolean;
|
||||
|
@ -36,7 +35,7 @@ export default class ButtonControl<
|
|||
* 按钮中图标对应的 DOM
|
||||
* @protected
|
||||
*/
|
||||
protected buttonIcon?: ELType | DocumentFragment;
|
||||
protected buttonIcon?: DOM.ELType | DocumentFragment;
|
||||
|
||||
/**
|
||||
* 设置当前按钮
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
import { PositionType } from '@antv/l7-core';
|
||||
import { DOM } from '@antv/l7-utils';
|
||||
import { ELType } from '@antv/l7-utils/src/dom';
|
||||
import { createL7Icon } from '../utils/icon';
|
||||
import { Control, IControlOption } from './baseControl';
|
||||
|
||||
export interface IZoomControlOption extends IControlOption {
|
||||
zoomInText: ELType | string;
|
||||
zoomInText: DOM.ELType | string;
|
||||
zoomInTitle: string;
|
||||
zoomOutText: ELType | string;
|
||||
zoomOutText: DOM.ELType | string;
|
||||
zoomOutTitle: string;
|
||||
}
|
||||
|
||||
|
@ -106,7 +105,7 @@ export default class Zoom extends Control<IZoomControlOption> {
|
|||
}
|
||||
|
||||
private createButton(
|
||||
html: ELType | string,
|
||||
html: DOM.ELType | string,
|
||||
tile: string,
|
||||
className: string,
|
||||
container: HTMLElement,
|
||||
|
|
|
@ -19,4 +19,4 @@ export * from './cull';
|
|||
export * from './env';
|
||||
export * from './tileset-manager';
|
||||
export * from './workers/triangulation';
|
||||
export * from './lineAtOffset'
|
||||
export * from './lineAtOffset';
|
||||
|
|
Loading…
Reference in New Issue