meixioacomponent 0.3.24 → 0.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -11,6 +11,7 @@
11
11
  :destroy-on-close="destroyOnClose"
12
12
  :wrapperClosable="wrapperClosable"
13
13
  :modal-append-to-body="appendToBody"
14
+ @closed="drawerClosed"
14
15
  >
15
16
  <!-- 插槽插入你需要渲染的内容 -->
16
17
  <div class="drawer-content-wrap">
@@ -137,14 +138,19 @@ export default {
137
138
  });
138
139
  },
139
140
 
141
+ drawerClosed() {
142
+ const { destroyOnClose } = this.$props;
143
+ if (destroyOnClose) {
144
+ this.$nextTick(() => {
145
+ this.$destroy();
146
+ this.$parent.$destroy();
147
+ });
148
+ }
149
+ },
150
+
140
151
  hiddenDrawer() {
141
152
  if (this.isExis()) {
142
153
  this.$refs.drawer.closeDrawer();
143
-
144
- const { destroyOnClose } = this.$props;
145
- if (destroyOnClose) {
146
- this.$destroy();
147
- }
148
154
  }
149
155
  },
150
156