mirror of https://gitee.com/antv-l7/antv-l7
Merge pull request #386 from antvis/fix_storybook
fix(storybook): 移除使用antd的demo,解决storybook ts 编译报错问题
This commit is contained in:
commit
4ff7fd0f94
|
@ -36,6 +36,7 @@
|
|||
"@types/node": "13.11.1",
|
||||
"@types/storybook__react": "^4.0.2",
|
||||
"@types/supercluster": "^5.0.1",
|
||||
"antd": "^4.2.4",
|
||||
"awesome-typescript-loader": "^5.2.1",
|
||||
"babel-eslint": "8.2.5",
|
||||
"babel-jest": "^24.9.0",
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { Scene } from '@antv/l7';
|
||||
import { DrillDownLayer } from '@antv/l7-district';
|
||||
import { GaodeMap, Mapbox } from '@antv/l7-maps';
|
||||
import { Cascader } from 'antd';
|
||||
import * as React from 'react';
|
||||
|
||||
export default class Country extends React.Component {
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { storiesOf } from '@storybook/react';
|
||||
require('./../assets/css/antd.css');
|
||||
import * as React from 'react';
|
||||
import City from './Layer/city';
|
||||
// import City from './Layer/city';
|
||||
import Country from './Layer/Country';
|
||||
import Country2 from './Layer/Country2';
|
||||
import ChinaBubble from './Layer/country_bubble';
|
||||
import CountryCity from './Layer/country_city';
|
||||
import CountryCounty from './Layer/country_county';
|
||||
import County from './Layer/county';
|
||||
// import County from './Layer/county';
|
||||
import DrillDown from './Layer/drillDown';
|
||||
import Province from './Layer/province';
|
||||
// import Province from './Layer/province';
|
||||
import World from './Layer/world';
|
||||
|
||||
storiesOf('行政区划', module)
|
||||
|
@ -19,7 +19,7 @@ storiesOf('行政区划', module)
|
|||
.add('中国地图市级', () => <CountryCity />)
|
||||
.add('中国地图县级', () => <CountryCounty />)
|
||||
.add('中国地图附图', () => <Country2 />)
|
||||
.add('县级地图', () => <County />)
|
||||
.add('市级地图', () => <City />)
|
||||
.add('上钻下取', () => <DrillDown />)
|
||||
.add('省级地图', () => <Province />);
|
||||
// .add('县级地图', () => <County />)
|
||||
// .add('市级地图', () => <City />)
|
||||
.add('上钻下取', () => <DrillDown />);
|
||||
// .add('省级地图', () => <Province />);
|
||||
|
|
|
@ -5980,7 +5980,7 @@ ansicolors@~0.2.1:
|
|||
resolved "https://registry.npmjs.org/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef"
|
||||
integrity sha1-vgiVmQl7dKXJxKhKDNvNtivYeu8=
|
||||
|
||||
antd@^4.0.0:
|
||||
antd@^4.0.0, antd@^4.2.4:
|
||||
version "4.2.4"
|
||||
resolved "https://registry.npmjs.org/antd/-/antd-4.2.4.tgz#0a75e178643858960189912b8fe48bf7e8f6abf8"
|
||||
integrity sha512-g61c1+Ji/tbY+G1GMdk0LsCN3S1ZfoHyj+zcjXmvqZjWfdkJ/bBEzw08I3ytTe5TV8RFued0nnSjT51ruagpSA==
|
||||
|
|
Loading…
Reference in New Issue