mirror of https://github.com/veops/cmdb.git
style 新建属性行错乱
This commit is contained in:
parent
095d3b2cfb
commit
3d3453e257
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<a-form :form="form" class="create-new-attribute">
|
<a-form :form="form" class="create-new-attribute">
|
||||||
<a-divider style="font-size:14px;margin-top:6px;">基础设置</a-divider>
|
<a-divider style="font-size:14px;margin-top:6px;">基础设置</a-divider>
|
||||||
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="属性名(英文)">
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="属性名(英文)">
|
||||||
<a-input
|
<a-input
|
||||||
|
@ -11,7 +12,10 @@
|
||||||
{
|
{
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: '请输入属性名' },
|
{ 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)$).*$') },
|
{ message: '内置字段', pattern: RegExp('^(?!(id|_id|ci_id|type|_type|ci_type)$).*$') },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -24,6 +28,8 @@
|
||||||
<a-input name="alias" v-decorator="['alias', { rules: [] }]" />
|
<a-input name="alias" v-decorator="['alias', { rules: [] }]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row>
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="数据类型">
|
<a-form-item :label-col="formItemLayout.labelCol" :wrapper-col="formItemLayout.wrapperCol" label="数据类型">
|
||||||
<a-select
|
<a-select
|
||||||
|
@ -125,6 +131,7 @@
|
||||||
</template>
|
</template>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
|
||||||
<a-col :span="6">
|
<a-col :span="6">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
|
|
Loading…
Reference in New Issue