赞
踩
<el-form-item class="formaddym" v-for="(domain, index) in orgForm.domains" :label="index == 0 ? '锚节点信息' : ''" :key="domain.key" :prop="'domains.' + index + '.value'" :rules="[ { required: true, message: '锚节点信息不能为空', trigger: 'blur' }, { pattern: /^([a-z\-\d+]+\.){1,}[a-z\-\d]+:\d{1,5}$/i, message: '格式不正确、请输入域名:端口号格式的信息', trigger: 'blur' }, { min: 1, max: 128, message: '锚节点地址长度保持在 1 到 128 个字符', trigger: 'blur' } ]"> <el-input v-model="domain.value" :class="index == 0 ? '' : 'form-input'" placeholder="请输入如:peer0.baidu.com:7051"></el-input> <el-button v-if="index == 0 ? false : true" @click.prevent="removeDomain(domain)">删除</el-button> </el-form-item>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。