diff --git a/packages/ava/package.json b/packages/ava/package.json index 5c2d98d1..310f4ee1 100644 --- a/packages/ava/package.json +++ b/packages/ava/package.json @@ -58,6 +58,7 @@ "@antv/g2": "^5.0.8", "@antv/smart-color": "^0.2.1", "bayesian-changepoint": "^1.0.1", + "csstype": "^3.1.2", "heap-js": "^2.1.6", "lodash": "^4.17.21", "regression": "^2.0.1", @@ -73,7 +74,6 @@ "@testing-library/jest-dom": "^4.2.4", "@types/lodash": "^4.14.171", "@types/numeral": "^2.0.2", - "@types/react": "^17.0.15", "eslint": "^7.32.0", "father": "^4.1.0", "jest": "^24.9.0", diff --git a/packages/ava/src/ntv/schema/common.ts b/packages/ava/src/ntv/schema/common.ts index 2b0ff43c..d01565da 100644 --- a/packages/ava/src/ntv/schema/common.ts +++ b/packages/ava/src/ntv/schema/common.ts @@ -1,8 +1,8 @@ -import type { CSSProperties } from 'react'; +import type { Properties } from 'csstype'; /** common props for block ele and inline ele */ export type CommonProps = { - styles?: CSSProperties; + styles?: Properties; className?: string; key?: string; };