When calling Drawer.open by function style, and the content option is a custom component rendered with the h function, the following issues occur within the custom component:
v-permission is not usable, with the warning [Vue warn]: Failed to resolve directive: permission
getCurrentInstance().appContext.app is null
Note: When the Content component is rendered directly in the template, these issues do not occur.
When calling
Drawer.open
by function style, and thecontent
option is a custom component rendered with theh
function, the following issues occur within the custom component:v-permission
is not usable, with the warning[Vue warn]: Failed to resolve directive: permission
getCurrentInstance().appContext.app
is nullNote: When the Content component is rendered directly in the template, these issues do not occur.
Demo,stackblitz: