<el-form size="mini"
class="FieldModelsForm"
:rules="formRules">
self.formRules= [
{ required: true, message: '必填项未选择', trigger: 'change' },
{ pattern: '^[-]?[0-9]+\.?[0-9]+$ ', message: '请输入数字' }
]
<el-form size="mini"
class="FieldModelsForm"
:rules="formRules">
self.formRules= [
{ required: true, message: '必填项未选择', trigger: 'change' },
{ pattern: '^[-]?[0-9]+\.?[0-9]+$ ', message: '请输入数字' }
]