mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 17:30:37 +01:00
chore(Button): use ui prop for slots only
This commit is contained in:
@@ -27,7 +27,7 @@ export interface ButtonProps extends LinkProps {
|
|||||||
padded?: boolean
|
padded?: boolean
|
||||||
truncate?: boolean
|
truncate?: boolean
|
||||||
class?: any
|
class?: any
|
||||||
ui?: Partial<typeof appButton>
|
ui?: Partial<typeof appButton.slots>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ButtonSlots {
|
export interface ButtonSlots {
|
||||||
@@ -53,7 +53,10 @@ const forward = useForwardProps(reactiveOmit(props, 'type', 'label', 'color', 's
|
|||||||
|
|
||||||
// Computed
|
// Computed
|
||||||
|
|
||||||
const ui = computed(() => tv({ extend: appButton, ...props.ui })({
|
const ui = computed(() => tv({
|
||||||
|
extend: appButton,
|
||||||
|
slots: props.ui
|
||||||
|
})({
|
||||||
color: props.color,
|
color: props.color,
|
||||||
size: props.size,
|
size: props.size,
|
||||||
loading: props.loading,
|
loading: props.loading,
|
||||||
|
|||||||
Reference in New Issue
Block a user