将网络代理密码框设置为password类型

pull/96/head
lyswhut 2019-09-16 21:50:41 +08:00
parent 37eec4c971
commit d19569131c
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template lang="pug">
input(:class="$style.input" :placeholder="placeholder" v-model.trim="text" :disabled="disabled"
input(:class="$style.input" :type="type" :placeholder="placeholder" v-model.trim="text" :disabled="disabled"
@focus="$emit('focus', $event)" @blur="$emit('blur', $event)" @input="$emit('input', text)" @change="$emit('change', text)"
@keyup.enter="submit")
</template>
@ -19,6 +19,10 @@ export default {
type: String,
default: '',
},
type: {
type: String,
default: 'text',
},
},
data() {
return {

View File

@ -73,7 +73,7 @@ div.scroll(:class="$style.setting")
material-input(:class="$style.gapLeft" v-model="current_setting.network.proxy.port" @change="handleProxyChange('port')" placeholder="端口")
p
material-input(:class="$style.gapLeft" v-model="current_setting.network.proxy.username" @change="handleProxyChange('username')" placeholder="用户名")
material-input(:class="$style.gapLeft" v-model="current_setting.network.proxy.password" @change="handleProxyChange('password')" placeholder="密码")
material-input(:class="$style.gapLeft" v-model="current_setting.network.proxy.password" @change="handleProxyChange('password')" type="password" placeholder="密码")
dt 强迫症设置
dd
h3 离开搜索界面时清空搜索框