mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【优化】代码生成:针对 element-plus 的 checkbox、radio 的 label => value 的调整
This commit is contained in:
parent
f5706972a0
commit
4e1d7d0877
@ -64,12 +64,11 @@
|
|||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.label"
|
||||||
>
|
:value="dict.value"
|
||||||
{{ dict.label }}
|
/>
|
||||||
</el-checkbox>
|
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-checkbox>请选择字典生成</el-checkbox>
|
<el-checkbox label="请选择字典生成" />
|
||||||
#end
|
#end
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -85,7 +84,7 @@
|
|||||||
{{ dict.label }}
|
{{ dict.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-radio label="1">请选择字典生成</el-radio>
|
<el-radio value="1">请选择字典生成</el-radio>
|
||||||
#end
|
#end
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -92,12 +92,11 @@
|
|||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.label"
|
||||||
>
|
:value="dict.value"
|
||||||
{{ dict.label }}
|
/>
|
||||||
</el-checkbox>
|
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-checkbox>请选择字典生成</el-checkbox>
|
<el-checkbox label="请选择字典生成" />
|
||||||
#end
|
#end
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -117,7 +116,7 @@
|
|||||||
{{ dict.label }}
|
{{ dict.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-radio label="1">请选择字典生成</el-radio>
|
<el-radio value="1">请选择字典生成</el-radio>
|
||||||
#end
|
#end
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -219,12 +218,11 @@
|
|||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.label"
|
||||||
>
|
:value="dict.value"
|
||||||
{{ dict.label }}
|
/>
|
||||||
</el-checkbox>
|
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-checkbox>请选择字典生成</el-checkbox>
|
<el-checkbox label="请选择字典生成" />
|
||||||
#end
|
#end
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -240,7 +238,7 @@
|
|||||||
{{ dict.label }}
|
{{ dict.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-radio label="1">请选择字典生成</el-radio>
|
<el-radio value="1">请选择字典生成</el-radio>
|
||||||
#end
|
#end
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -75,12 +75,11 @@
|
|||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
v-for="dict in $dictMethod(DICT_TYPE.$dictType.toUpperCase())"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.value"
|
:label="dict.label"
|
||||||
>
|
:value="dict.value"
|
||||||
{{ dict.label }}
|
/>
|
||||||
</el-checkbox>
|
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-checkbox>请选择字典生成</el-checkbox>
|
<el-checkbox label="请选择字典生成" />
|
||||||
#end
|
#end
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -96,7 +95,7 @@
|
|||||||
{{ dict.label }}
|
{{ dict.label }}
|
||||||
</el-radio>
|
</el-radio>
|
||||||
#else##没数据字典
|
#else##没数据字典
|
||||||
<el-radio label="1">请选择字典生成</el-radio>
|
<el-radio value="1">请选择字典生成</el-radio>
|
||||||
#end
|
#end
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
Loading…
Reference in New Issue
Block a user