BasicDrawer弹框destroyOnClose属性不生效,当Drawer关闭后子元素未销毁,导致再次打开还展示上一次的内容
Closed this issue · 2 comments
hhxyjsj commented
zhangdaiscott commented
zy
liaozhiyang commented
这是正常的。
destroyOnClose销毁的是modal的子元素,而你的数据对象定义在 ContactsDetailDrawer.vue 中,关闭的时候除非你在ContactsDetailDrawer组件的父级销毁ContactsDetailDrawer组件。
两种方式解决:
1.关闭弹窗销毁ContactsDetailDrawer组件
2.关闭或者打开弹窗重置ContactsDetailDrawer里面的数据