mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40:34 +01:00
chore(Container): remove ui prop
This commit is contained in:
@@ -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>
|
||||||
Reference in New Issue
Block a user