diff --git a/src/views/chart/ContentEdit/hooks/useStyle.hook.ts b/src/views/chart/ContentEdit/hooks/useStyle.hook.ts index 481c168b..f4ef530c 100644 --- a/src/views/chart/ContentEdit/hooks/useStyle.hook.ts +++ b/src/views/chart/ContentEdit/hooks/useStyle.hook.ts @@ -1,5 +1,7 @@ import { PublicConfigType } from '@/packages/index.d' -type AttrType = Pick['attr'] + +type PickPublicConfigType = Pick[T] +type AttrType = PickPublicConfigType<'attr'> export const useComponentStyle = (attr: AttrType, index: number) => { const componentStyle = {