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

fix: 台账选择器支持清空

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