Commit e9861145 authored by 田翔's avatar 田翔

fix: 下拉单选不支持彩色

parent 1a71d016
{
"name": "panda-xform",
"version": "4.4.9",
"description": "4.4.9 暴露图片预览",
"version": "4.5.0",
"description": "4.5.0 下拉单选不支持彩色",
"keywords": [
"panda-xform"
],
......
......@@ -9,7 +9,7 @@ import { colors } from '../../../../../constant'
const SimpleList = (props) => {
const { value, onChange, addons } = props
const { color, isMultiple } = addons.formData
const { color, isMultiple, widget } = addons.formData
const [visible, setVisible] = useState(false)
const [text, setText] = useState('')
const [loading, setLoading] = useState(true)
......@@ -198,7 +198,7 @@ const SimpleList = (props) => {
<div style={{ fontSize: '14px' }}>选项</div>
<div style={{ fontSize: '12px' }}>
<span style={{ paddingRight: '5px' }}>彩色</span>
<Switch disabled={!isMultiple} size='small' checked={color} onChange={switchChange} />
<Switch disabled={!isMultiple && widget === 'ComboBox'} size='small' checked={color} onChange={switchChange} />
</div>
</div>
<div className={styles.box}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment