mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 20:40:17 +08:00
refactor(components): [message-box] remove duplicates conditional (#21634)
refactor(components): [message-box] rm redundant conditional expression
This commit is contained in:
@ -80,9 +80,8 @@
|
|||||||
:is="showInput ? 'label' : 'p'"
|
:is="showInput ? 'label' : 'p'"
|
||||||
v-if="!dangerouslyUseHTMLString"
|
v-if="!dangerouslyUseHTMLString"
|
||||||
:for="showInput ? inputId : undefined"
|
:for="showInput ? inputId : undefined"
|
||||||
>
|
v-text="message"
|
||||||
{{ !dangerouslyUseHTMLString ? message : '' }}
|
/>
|
||||||
</component>
|
|
||||||
<component
|
<component
|
||||||
:is="showInput ? 'label' : 'p'"
|
:is="showInput ? 'label' : 'p'"
|
||||||
v-else
|
v-else
|
||||||
|
Reference in New Issue
Block a user