From e6fc3241001b9ca3cab784637b5eee64692c4232 Mon Sep 17 00:00:00 2001 From: bbsqq <1491812683@qq.com> Date: Mon, 30 Oct 2023 20:10:13 +0800 Subject: [PATCH] fix(ava/ntv): import css property type from csstype --- packages/ava/package.json | 2 +- packages/ava/src/ntv/schema/common.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ava/package.json b/packages/ava/package.json index 5c2d98d1b..310f4ee10 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 2b0ff43c3..d01565daf 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; };