refactor(components): [message-box] remove duplicates conditional (#21634)

refactor(components): [message-box] rm redundant conditional expression
This commit is contained in:
thinkasany
2025-08-06 04:32:51 +08:00
committed by GitHub
parent 14eda6f1e8
commit 41e65b79bb

View File

@ -80,9 +80,8 @@
:is="showInput ? 'label' : 'p'"
v-if="!dangerouslyUseHTMLString"
:for="showInput ? inputId : undefined"
>
{{ !dangerouslyUseHTMLString ? message : '' }}
</component>
v-text="message"
/>
<component
:is="showInput ? 'label' : 'p'"
v-else