mirror of
				https://github.com/antd-tiny-vue/antd-tiny-vue.git
				synced 2025-11-01 01:01:44 +08:00 
			
		
		
		
	fix: fix hashId is not reactivty
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -92,7 +92,7 @@ export default function genComponentStyleHook<ComponentName extends OverrideComp | ||||
|         flush(component, mergedComponentToken) | ||||
|         return [genCommonStyle(token.value, prefixCls.value), styleInterpolation] | ||||
|       }), | ||||
|       hashId.value | ||||
|       hashId | ||||
|     ] | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user