|
|
@ -38,14 +38,12 @@ export default defineComponent({ |
|
|
|
[`${prefixCls.value}-item-head-custom`]: dot, |
|
|
|
[`${prefixCls.value}-item-head-custom`]: dot, |
|
|
|
[`${prefixCls.value}-item-head-${color}`]: true, |
|
|
|
[`${prefixCls.value}-item-head-${color}`]: true, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color; |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<li class={itemClassName}> |
|
|
|
<li class={itemClassName}> |
|
|
|
{label && <div class={`${prefixCls.value}-item-label`}>{label}</div>} |
|
|
|
{label && <div class={`${prefixCls.value}-item-label`}>{label}</div>} |
|
|
|
<div class={`${prefixCls.value}-item-tail`} /> |
|
|
|
<div class={`${prefixCls.value}-item-tail`} /> |
|
|
|
<div |
|
|
|
<div class={dotClassName} style={{ borderColor: customColor, color: customColor }}> |
|
|
|
class={dotClassName} |
|
|
|
|
|
|
|
style={{ borderColor: /blue|red|green|gray/.test(color) ? undefined : color }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{dot} |
|
|
|
{dot} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class={`${prefixCls.value}-item-content`}>{slots.default?.()}</div> |
|
|
|
<div class={`${prefixCls.value}-item-content`}>{slots.default?.()}</div> |
|
|
|