chore(Container): remove ui prop

This commit is contained in:
Benjamin Canac
2024-03-06 16:28:12 +01:00
parent 7d29ff2b7a
commit 66cf178cc3

View File

@@ -9,7 +9,6 @@ const appContainer = tv(theme)
export interface ContainerProps { export interface ContainerProps {
as?: string as?: string
class?: any class?: any
ui?: Partial<typeof appContainer>
} }
</script> </script>
@@ -20,17 +19,16 @@ defineOptions({ inheritAttrs: false })
const props = withDefaults(defineProps<ContainerProps>(), { const props = withDefaults(defineProps<ContainerProps>(), {
as: 'div', as: 'div',
class: undefined, class: undefined
ui: undefined
}) })
// Computed // Computed
const ui = computed(() => tv({ extend: appContainer, ...props.ui })({ class: props.class })) const base = computed(() => appContainer({ class: props.class }))
</script> </script>
<template> <template>
<component :is="as" :class="ui" v-bind="$attrs"> <component :is="as" :class="base" v-bind="$attrs">
<slot /> <slot />
</component> </component>
</template> </template>