style 新建属性行错乱

This commit is contained in:
wang-liang0615 2023-07-25 10:18:22 +08:00
parent 095d3b2cfb
commit 3d3453e257
1 changed files with 129 additions and 122 deletions

View File

@ -1,6 +1,7 @@
<template>
<a-form :form="form" class="create-new-attribute">
<a-divider style="font-size:14px;margin-top:6px;">基础设置</a-divider>
<a-row>
<a-col :span="12">
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="属性名(英文)">
<a-input
@ -11,7 +12,10 @@
{
rules: [
{ required: true, message: '请输入属性名' },
{ message: '不能以数字开头,可以是英文 数字以及下划线 (_)', pattern: RegExp('^(?!\\d)[a-zA-Z_0-9]+$') },
{
message: '不能以数字开头,可以是英文 数字以及下划线 (_)',
pattern: RegExp('^(?!\\d)[a-zA-Z_0-9]+$'),
},
{ message: '内置字段', pattern: RegExp('^(?!(id|_id|ci_id|type|_type|ci_type)$).*$') },
],
},
@ -24,6 +28,8 @@
<a-input name="alias" v-decorator="['alias', { rules: [] }]" />
</a-form-item>
</a-col>
</a-row>
<a-row>
<a-col :span="12">
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="数据类型">
<a-select
@ -125,6 +131,7 @@
</template>
</a-form-item>
</a-col>
</a-row>
<a-col :span="6">
<a-form-item