The problem of scope value transfer in vue

clipboard.png

I want the disabled attribute in el-button to be added dynamically based on the data in scope. What should I do?

although you can also use v-if, you need to create two el-button tags and make a judgment, so if there are more other tags in the tag, there will be a lot of code. Is there any other way

May.23,2022

</el-button>
</template>
Menu