@pansy/react-mapbox-gl
Version:
🌍 基于 Mapbox GL 封装的 React 组件库
20 lines (19 loc) • 578 B
TypeScript
import React from 'react';
/**
* finish: 样式是否加载完成
* isFirstTime: 是否是初次加载
*/
type ChildrenFun = (finish: boolean, isFirstTime: boolean) => React.ReactNode;
export interface StyleLoadedProps {
/**
* 样式加载完成子组件才可渲染,加载中卸载子组件
* @default false 加载中不卸载子组件
*/
isFinishRender?: boolean;
/**
* 子组件,如果为
*/
children?: React.ReactNode | ChildrenFun;
}
export declare const StyleLoaded: (props: StyleLoadedProps) => React.ReactNode;
export {};