Merge pull request #524 from go-admin-team/dev

fix🐛: 修复代码生成字典的问题 (#523  #517)
This commit is contained in:
wenjianzhang authored and GitHub committed 2021-08-06 10:27:32 +08:00
commit fff795ce5a
2 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ package global
const ( const (
// Version go-admin version info // Version go-admin version info
Version = "2.0.2" Version = "2.0.3"
) )
var ( var (
+9 -9
View File
@@ -27,9 +27,9 @@
placeholder="{{$tableComment}}{{.ColumnComment}}" clearable size="small"> placeholder="{{$tableComment}}{{.ColumnComment}}" clearable size="small">
<el-option <el-option
v-for="dict in {{.JsonField}}Options" v-for="dict in {{.JsonField}}Options"
:key="dict.dictValue" :key="dict.value"
:label="dict.dictLabel" :label="dict.label"
:value="dict.dictValue" :value="dict.value"
/> />
</el-select> </el-select>
{{- end}} {{- end}}
@@ -179,9 +179,9 @@
placeholder="请选择" {{if eq .IsEdit "false" -}} :disabled="isEdit" {{- end }}> placeholder="请选择" {{if eq .IsEdit "false" -}} :disabled="isEdit" {{- end }}>
<el-option <el-option
v-for="dict in {{.JsonField}}Options" v-for="dict in {{.JsonField}}Options"
:key="dict.dictValue" :key="dict.value"
:label="dict.dictLabel" :label="dict.label"
:value="dict.dictValue" :value="dict.value"
/> />
</el-select> </el-select>
{{- end -}} {{- end -}}
@@ -189,9 +189,9 @@
<el-radio-group v-model="form.{{.JsonField}}"> <el-radio-group v-model="form.{{.JsonField}}">
<el-radio <el-radio
v-for="dict in {{.JsonField}}Options" v-for="dict in {{.JsonField}}Options"
:key="dict.dictValue" :key="dict.value"
:label="dict.dictValue" :label="dict.value"
>{{"{{"}} dict.dictLabel {{"}}"}}</el-radio> >{{"{{"}} dict.label {{"}}"}}</el-radio>
</el-radio-group> </el-radio-group>
{{- else if eq "file" .HtmlType -}} {{- else if eq "file" .HtmlType -}}
<el-input <el-input