fix display ip address allow input (#5569)

This commit is contained in:
Hoang Nguyen 2021-10-12 15:52:58 +07:00 committed by GitHub
parent 79e6fe47c8
commit daf29a085e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@
<div>{{ text }}</div>
<small v-if="record.type!=='L2'">{{ $t('label.cidr') + ': ' + record.cidr }}</small>
</template>
<template slot="ipAddress" slot-scope="text, record, index">
<a-form-item v-if="record.type!=='L2' && index === 0">
<template slot="ipAddress" slot-scope="text, record">
<a-form-item v-if="record.type!=='L2'">
<a-input
style="width: 150px;"
v-decorator="['ipAddress' + record.id, {