mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-20 05:45:35 +08:00
perf: modal and drawer api support chain calls (#5351)
* perf: modal and drawer api support chain calls * fix: typo
This commit is contained in:
@@ -9,11 +9,12 @@ const [Drawer, drawerApi] = useVbenDrawer({
|
||||
});
|
||||
|
||||
function open() {
|
||||
drawerApi.setData({
|
||||
content: '外部传递的数据 content',
|
||||
payload: '外部传递的数据 payload',
|
||||
});
|
||||
drawerApi.open();
|
||||
drawerApi
|
||||
.setData({
|
||||
content: '外部传递的数据 content',
|
||||
payload: '外部传递的数据 payload',
|
||||
})
|
||||
.open();
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user