mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 21:27:54 +01:00
fix(ButtonGroup): switch back to ui prop
This commit is contained in:
@@ -52,16 +52,17 @@ export default defineComponent({
|
|||||||
vProps.size = props.size
|
vProps.size = props.size
|
||||||
}
|
}
|
||||||
|
|
||||||
const classes = ['shadow-none', 'rounded-none']
|
vProps.ui = node.props?.ui || {}
|
||||||
|
vProps.ui.rounded = 'rounded-none'
|
||||||
|
vProps.ui.base = '!shadow-none'
|
||||||
|
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
classes.push(rounded.value.left)
|
vProps.ui.rounded += ` ${rounded.value.left}`
|
||||||
}
|
|
||||||
if (index === children.value.length - 1) {
|
|
||||||
classes.push(rounded.value.right)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vProps.class = node.props?.class || ''
|
if (index === children.value.length - 1) {
|
||||||
vProps.class = twMerge(twJoin(...classes), vProps.class)
|
vProps.ui.rounded += ` ${rounded.value.right}`
|
||||||
|
}
|
||||||
|
|
||||||
return cloneVNode(node, vProps)
|
return cloneVNode(node, vProps)
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user