-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
列表selectedChange事件中触发列表重算autoFillHeight
- Loading branch information
1 parent
31698f8
commit 246fc35
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
@@ -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 ) | ||
}; | ||
|