forked from AkkomaGang/admin-fe
Add placeholder for ip_whitelist input
This commit is contained in:
parent
05cd0cc712
commit
c506fa5ee5
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
||||||
v-for="(item, index) in tupleValue"
|
v-for="(item, index) in tupleValue"
|
||||||
:value="item"
|
:value="item"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
:placeholder="getPlaceholder[index]"
|
||||||
class="tuple-input"
|
class="tuple-input"
|
||||||
@input="processTupleTwoTypeValue($event, setting.key, index)"/>
|
@input="processTupleTwoTypeValue($event, setting.key, index)"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -69,6 +70,9 @@ export default {
|
||||||
const value = this.data[this.setting.key]
|
const value = this.data[this.setting.key]
|
||||||
return typeof value !== 'boolean'
|
return typeof value !== 'boolean'
|
||||||
},
|
},
|
||||||
|
getPlaceholder() {
|
||||||
|
return { 0: ':basic', 1: 'username', 2: 'password' }
|
||||||
|
},
|
||||||
integerValue() {
|
integerValue() {
|
||||||
const value = this.data[this.setting.key]
|
const value = this.data[this.setting.key]
|
||||||
return value || 0
|
return value || 0
|
||||||
|
|
Loading…
Reference in a new issue