|
|
@ -6,6 +6,7 @@ |
|
|
|
:disable="disable" |
|
|
|
class="h-full w-full w-splitter" |
|
|
|
:separator-class="{ lineColor: !disable }" |
|
|
|
:separator-style="!showSeparator ? 'display: none;' : ''" |
|
|
|
> |
|
|
|
<template #before> |
|
|
|
<slot name="before"></slot> |
|
|
@ -74,6 +75,13 @@ const props = defineProps({ |
|
|
|
type: String, |
|
|
|
default: undefined, |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 显示分割线 |
|
|
|
*/ |
|
|
|
showSeparator: { |
|
|
|
type: Boolean, |
|
|
|
default: true, |
|
|
|
}, |
|
|
|
}); |
|
|
|
const splitterModel = ref(props.size); |
|
|
|
const lineColor = props.separatorColor || getCssVar('primary'); |
|
|
|