完善枚举值自动化

This commit is contained in:
piexlmax
2022-06-21 21:52:42 +08:00
parent 6321564bed
commit 053f414ef6
3 changed files with 11 additions and 1 deletions

View File

@@ -110,6 +110,11 @@
{{- end }}
{{- if eq .FieldType "float64" }}
<el-input-number v-model="formData.{{ .FieldJson }}" style="width:100%" :precision="2" clearable />
{{- end }}
{{- if eq .FieldType "enum" }}
<el-select v-model="formData.{{ .FieldJson }}" placeholder="请选择" style="width:100%" clearable>
<el-option v-for="item in [{{.DataTypeLong}}]" :key="item" :label="item" :value="item" />
</el-select>
{{- end }}
</el-form-item>
{{- end }}