+
-
+
@@ -53,6 +53,10 @@ export default defineComponent({
default: 'click',
validator: (value: string) => ['click', 'hover'].includes(value)
},
+ open: {
+ type: Boolean,
+ default: undefined
+ },
disabled: {
type: Boolean,
default: false
@@ -103,8 +107,14 @@ export default defineComponent({
const containerStyle = computed(() => {
const offsetDistance = (props.popper as PopperOptions)?.offsetDistance || (ui.value.popper as PopperOptions)?.offsetDistance || 8
-
- return props.mode === 'hover' ? { paddingTop: `${offsetDistance}px`, paddingBottom: `${offsetDistance}px` } : {}
+ const padding = `${offsetDistance}px`
+
+ return props.mode === 'hover' ? {
+ paddingTop: padding,
+ paddingBottom: padding,
+ paddingLeft: padding,
+ paddingRight: padding
+ } : {}
})
function onMouseOver () {