mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-10 09:39:15 +08:00
fix: fix hashId is not reactivty
This commit is contained in:
parent
74bb3d43c2
commit
a2dd8a0336
@ -77,6 +77,6 @@ export function useToken(): [ComputedRef<Theme<SeedToken, MapToken>>, ComputedRe
|
|||||||
return [mergedTheme, computed(() => cacheToken.value?.[0]), computed(() => (designTokenContext.hashed ? cacheToken.value?.[1] : ''))]
|
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
|
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)
|
flush(component, mergedComponentToken)
|
||||||
return [genCommonStyle(token.value, prefixCls.value), styleInterpolation]
|
return [genCommonStyle(token.value, prefixCls.value), styleInterpolation]
|
||||||
}),
|
}),
|
||||||
hashId.value
|
hashId
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user