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"
|
||||
:value="item"
|
||||
:key="index"
|
||||
:placeholder="getPlaceholder[index]"
|
||||
class="tuple-input"
|
||||
@input="processTupleTwoTypeValue($event, setting.key, index)"/>
|
||||
</div>
|
||||
|
@ -69,6 +70,9 @@ export default {
|
|||
const value = this.data[this.setting.key]
|
||||
return typeof value !== 'boolean'
|
||||
},
|
||||
getPlaceholder() {
|
||||
return { 0: ':basic', 1: 'username', 2: 'password' }
|
||||
},
|
||||
integerValue() {
|
||||
const value = this.data[this.setting.key]
|
||||
return value || 0
|
||||
|
|
Loading…
Reference in a new issue