From 466c653c6634dd1658f05e323f87a77d5bbf8304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=87=E6=AD=A3?= <60083015+hsp-sz@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:37:17 +0800 Subject: [PATCH] fix: demo import (#219) Co-authored-by: shengzheng --- src/components/LayerPopup/demos/default.tsx | 3 +-- .../Layers/CompositeLayers/FlowLayer/demos/default.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/LayerPopup/demos/default.tsx b/src/components/LayerPopup/demos/default.tsx index 266c1479..c29879a8 100644 --- a/src/components/LayerPopup/demos/default.tsx +++ b/src/components/LayerPopup/demos/default.tsx @@ -1,9 +1,8 @@ -import type { LineLayerProps, PolygonLayerProps } from '@antv/larkmap'; +import type { LayerPopupProps, LineLayerProps, PolygonLayerProps } from '@antv/larkmap'; import { LarkMap, LayerPopup, LineLayer, PolygonLayer } from '@antv/larkmap'; import type { FeatureCollection } from '@turf/turf'; import { coordAll, featureCollection, lineString } from '@turf/turf'; import React, { useEffect, useState } from 'react'; -import type { LayerPopupProps } from '../types'; const polygonLayerOptions: Omit = { autoFit: true, diff --git a/src/components/Layers/CompositeLayers/FlowLayer/demos/default.tsx b/src/components/Layers/CompositeLayers/FlowLayer/demos/default.tsx index 80d572cf..c07e0947 100644 --- a/src/components/Layers/CompositeLayers/FlowLayer/demos/default.tsx +++ b/src/components/Layers/CompositeLayers/FlowLayer/demos/default.tsx @@ -1,6 +1,6 @@ +import type { FlowLayerProps } from '@antv/larkmap'; import { FlowLayer, LarkMap } from '@antv/larkmap'; import React, { useEffect, useState } from 'react'; -import type { FlowLayerProps } from '../types'; export default () => { const [source, setSource] = useState({