修复radio组件显示样式设置为block不生效的问题。

This commit is contained in:
vdpAdmin 2022-05-12 12:08:13 +08:00
parent be7d23cddf
commit 18870a2d95

View File

@ -2,7 +2,7 @@
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState" <form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList" :parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId"> :sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
<el-radio-group ref="fieldEditor" v-model="fieldModel" <el-radio-group ref="fieldEditor" v-model="fieldModel" :class="{'radio-group-block': field.options.displayStyle === 'block'}"
:disabled="field.options.disabled" :size="widgetSize" :disabled="field.options.disabled" :size="widgetSize"
@change="handleChangeEvent"> @change="handleChangeEvent">
<template v-if="!!field.options.buttonStyle"> <template v-if="!!field.options.buttonStyle">
@ -101,4 +101,8 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../../../styles/global.scss"; /* form-item-wrapper已引入还需要重复引入吗 */ @import "../../../../styles/global.scss"; /* form-item-wrapper已引入还需要重复引入吗 */
.radio-group-block {
display: block !important;
}
</style> </style>