vue-button设置按钮是否可点击状态
<template>
<v-app>
<v-main>
<v-btn
class="error"
text
@click="addSave"
:disabled="langAbbrs">保存
</v-btn>
</v-main>
</v-app>
</template>
<script>
export default {
data() {
return {
};
},
computed: {
langAbbrs() {
return false; //true false
},
},
methods:{
addSave(){
console.log('click点击了保存按钮')
}
}
};
</script>