perf: user confirm input

This commit is contained in:
feng626
2022-06-16 12:31:03 +08:00
parent 76085f42c5
commit 2183e6bc89

View File

@@ -14,7 +14,7 @@
<div style="line-height: 34px;text-align: center">{{ Label }}</div>
</el-col>
<el-col :md="14" :sm="24">
<el-input v-model="SecretKey" />
<el-input v-model="SecretKey" v-bind="showPassword" />
<span class="help-tips help-block">{{ HelpText }}</span>
</el-col>
<el-col :md="4" :sm="24">
@@ -42,6 +42,16 @@ export default {
visible: false
}
},
computed: {
showPassword() {
if (this.ConfirmType === 'password') {
console.log('--------------')
return { 'show-password': true }
}
return {}
}
},
watch: {
visible(val) {
if (!val) {