Skip to content

Commit

Permalink
列表selectedChange事件中触发列表重算autoFillHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed Nov 12, 2023
1 parent 31698f8 commit 246fc35
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: [email protected]
* @Date: 2022-09-01 14:44:57
* @LastEditors: 殷亮辉 [email protected]
* @LastEditTime: 2023-10-29 16:48:28
* @LastEditTime: 2023-11-12 16:10:34
* @Description:
*/
import './AmisObjectListview.less';
Expand Down Expand Up @@ -111,6 +111,19 @@ export const AmisObjectListView = async (props) => {
}
]
}
listSchema.onEvent["selectedChange"] = {
"actions": [
{
"actionType": "custom",
"script": `
//触发amis crud 高度重算
setTimeout(()=>{
window.dispatchEvent(new Event("resize"))
}, 500);
`
}
]
}
defaults = {
listSchema: Object.assign( {}, listSchema, crud )
};
Expand Down

0 comments on commit 246fc35

Please sign in to comment.