How does vue.js dynamically add delete attributes to tags?

<el-button type="primary"  disabled></el-button>

ask, for example, the button above, where disabled is used to indicate whether the button is disabled. How do I dynamically add and delete this attribute in the tag?

clipboard.png
clipboard.png

May.14,2021

just write: disabled= "var". When the variable is false, vue automatically deletes this attribute.


.
it accepts a Boolean value


: disabled
.

Menu