From f91b1d7f8afb9bb7e817c1704c2b420d1422da70 Mon Sep 17 00:00:00 2001 From: MTrun <1262327911@qq.com> Date: Wed, 16 Feb 2022 20:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=8F=90=E5=8F=96AttrType=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/ContentEdit/hooks/useStyle.hook.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = {