fix: fix hashId is not reactivty

This commit is contained in:
aibayanyu 2023-03-10 21:39:50 +08:00
parent 74bb3d43c2
commit a2dd8a0336
2 changed files with 2 additions and 2 deletions

View File

@ -77,6 +77,6 @@ export function useToken(): [ComputedRef<Theme<SeedToken, MapToken>>, ComputedRe
return [mergedTheme, computed(() => cacheToken.value?.[0]), computed(() => (designTokenContext.hashed ? cacheToken.value?.[1] : ''))]
}
export type UseComponentStyleResult = [(node: VNodeChild) => VNodeChild, string]
export type UseComponentStyleResult = [(node: VNodeChild) => VNodeChild, ComputedRef<string>]
export type GenerateStyle<ComponentToken extends object = AliasToken, ReturnType = CSSInterpolation> = (token: ComponentToken) => ReturnType

View File

@ -92,7 +92,7 @@ export default function genComponentStyleHook<ComponentName extends OverrideComp
flush(component, mergedComponentToken)
return [genCommonStyle(token.value, prefixCls.value), styleInterpolation]
}),
hashId.value
hashId
]
}
}