mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
perf: user confirm input
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user