chore: revert ui. prefix when using useUI composable

This commit is contained in:
Benjamin Canac
2023-09-21 14:30:34 +02:00
parent 60210aad75
commit f24ff9c47f
34 changed files with 35 additions and 35 deletions

View File

@@ -11,7 +11,7 @@ export const useUI = <T>(key, $ui: Partial<T & { strategy: Strategy }>, $config?
$ui?.strategy || (appConfig.ui?.strategy as Strategy),
mergeWrapper ? { wrapper: $attrs?.class } : {},
$ui || {},
process.dev ? get(appConfig, key, {}) : {},
process.dev ? get(appConfig.ui, key, {}) : {},
toValue($config || {})
))
const attrs = computed(() => omit($attrs, ['class']))