Commit 99b1a39e authored by 田翔's avatar 田翔

fix: 台账选择器支持清空

parent e9861145
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.5.0", "version": "4.5.1",
"description": "4.5.0 下拉单选不支持彩色", "description": "4.5.1 台账选择器支持清空",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -174,6 +174,8 @@ const AccountSelector = (props) => { ...@@ -174,6 +174,8 @@ const AccountSelector = (props) => {
onClick={() => iconClick()} onClick={() => iconClick()}
addonAfter={!disabled ? addonAfter : null} addonAfter={!disabled ? addonAfter : null}
disabled={disabled} disabled={disabled}
allowClear
onChange={e => onChange('')}
/> />
<Drag <Drag
onCancel={() => setVisible(false)} onCancel={() => setVisible(false)}
......
...@@ -17,7 +17,7 @@ const Coding = (props) => { ...@@ -17,7 +17,7 @@ const Coding = (props) => {
useEffect(() => { useEffect(() => {
if (addons) { if (addons) {
addons.setValueByPath(addons.dataPath, presetValue) addons.setValue(addons.dataPath, presetValue)
} else { } else {
onChange(presetValue) onChange(presetValue)
} }
......
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