Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
feat: 校验
Browse files Browse the repository at this point in the history
  • Loading branch information
shihui committed Jul 1, 2021
1 parent 8b91a1c commit f7a0923
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@
"@antv/l7": "^2.3.0",
"@antv/l7-maps": "^2.3.0",
"@rollup/plugin-commonjs": "11.0.2",
"@types/lodash": "^4.14.170",
"@umijs/preset-react": "1.x",
"@umijs/test": "^3.0.5",
"antd": "^4.6.6",
"dumi": "^1.0.9",
"father-build": "^1.17.2",
"gh-pages": "^3.0.0",
"lint-staged": "^10.0.7",
"loadsh": "^0.0.4",
"prettier": "^1.19.1",
"yorkie": "^2.0.0"
}
Expand Down
3 changes: 2 additions & 1 deletion src/layer/baseLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ export default class BaseLayer extends EventEmitter {
if (fill.scale && isObject(fill.color)) {
fillLayer.scale('color', {
type: fill.scale,
field: fill.color.field as string,
//@ts-ignore
field: fill?.color?.field as string,
});
}
fillLayer.shape('fill').style(fill.style);
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@/*": ["src/*"],
"@@/*": ["src/.umi/*"]
},
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"strictPropertyInitialization": false
},
Expand Down
3 changes: 3 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
declare module '*.css';
declare module '*.less';
declare module 'lodash/merge';
declare module 'lodash/mergeWith';
declare module 'lodash/isObject';

0 comments on commit f7a0923

Please sign in to comment.