fix: 修复 Components 中引用 l7-utils 路径问题 (#1450)

Co-authored-by: yanxiong <oujinhui.ojh@antgroup.com>
This commit is contained in:
heiyexing 2022-11-11 21:40:24 +08:00 committed by GitHub
parent 2f9373bb1d
commit 64b51fa459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View File

@ -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;
/**
*

View File

@ -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,

View File

@ -19,4 +19,4 @@ export * from './cull';
export * from './env';
export * from './tileset-manager';
export * from './workers/triangulation';
export * from './lineAtOffset'
export * from './lineAtOffset';