mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2024-11-14 07:29:24 +08:00
修复radio组件显示样式设置为block不生效的问题。
This commit is contained in:
parent
be7d23cddf
commit
18870a2d95
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user