chore: make some improvement (#8255)
* chore: make some improvement * chore: upd
This commit is contained in:
+1
-1
@@ -74,10 +74,10 @@ export default createComponent({
|
||||
};
|
||||
|
||||
const renderValue = () => {
|
||||
const hasTitle = slots.title || isDef(props.title);
|
||||
const hasValue = slots.default || isDef(props.value);
|
||||
|
||||
if (hasValue) {
|
||||
const hasTitle = slots.title || isDef(props.title);
|
||||
return (
|
||||
<div class={[bem('value', { alone: !hasTitle }), props.valueClass]}>
|
||||
{slots.default ? slots.default() : <span>{props.value}</span>}
|
||||
|
||||
Reference in New Issue
Block a user