Commit c152a073 authored by 田翔's avatar 田翔

fix: 点击单选框形态颜色配置消失

parent b1884113
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.9.20", "version": "6.9.21",
"description": "6.9.20 搜索坐标地名原样输出", "description": "6.9.21 点击单选框形态颜色配置消失",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -10,14 +10,14 @@ import { getNanoid } from '../../../../../utils' ...@@ -10,14 +10,14 @@ import { getNanoid } from '../../../../../utils'
const SimpleList = (props) => { const SimpleList = (props) => {
const { value, onChange, addons } = props const { value, onChange, addons } = props
const { color, isMultiple, widget } = addons.formData const { color, isMultiple, widget, } = addons.formData
const [visible, setVisible] = useState(false) const [visible, setVisible] = useState(false)
const [text, setText] = useState('') const [text, setText] = useState('')
const [loading, setLoading] = useState(true) const [loading, setLoading] = useState(true)
useEffect(() => { useEffect(() => {
if (addons) { if (addons) {
if (!isMultiple) { if (!isMultiple && widget === 'ComboBox') {
addons.setValue('color', false) addons.setValue('color', false)
} }
} }
......
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