meixioacomponent 0.3.23 → 0.3.26

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.23",
3
+ "version": "0.3.26",
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">
@@ -134,10 +135,19 @@ export default {
134
135
  this.open = true;
135
136
  this.$nextTick(() => {
136
137
  this.setDrawerStyle();
137
- console.log(this.$refs.drawer);
138
138
  });
139
139
  },
140
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
+
141
151
  hiddenDrawer() {
142
152
  if (this.isExis()) {
143
153
  this.$refs.drawer.closeDrawer();
@@ -230,7 +240,7 @@ export default {
230
240
  align-items: center;
231
241
  flex-flow: row nowrap;
232
242
  box-sizing: border-box;
233
- padding:0px var(--padding-5);
243
+ padding: 0px var(--padding-5);
234
244
  justify-content: space-between;
235
245
  span {
236
246
  color: var(--font-color-d);
@@ -61,11 +61,17 @@ export default {
61
61
  height: auto;
62
62
  display: flex;
63
63
  min-height: 50px;
64
+
64
65
  &:last-of-type {
65
66
  /deep/ .point-line {
66
67
  display: none;
67
68
  }
68
69
  }
70
+ &:first-of-type {
71
+ /deep/ .point-line {
72
+ display: block;
73
+ }
74
+ }
69
75
  }
70
76
  .base-time-line-right {
71
77
  width: 100%;
@@ -328,14 +328,14 @@ export default {
328
328
  return this.$props.config.value;
329
329
  }
330
330
 
331
- case "time":
332
- if (this.module) {
333
- let config = this.$props.config;
334
- let format = config.format ? config.format : "YYYY-MM-DD";
335
- return FilterTime(this.module, format);
336
- } else {
337
- return "暂无时间";
338
- }
331
+ // case "time":
332
+ // if (this.module) {
333
+ // let config = this.$props.config;
334
+ // let format = config.format ? config.format : "YYYY-MM-DD";
335
+ // return FilterTime(this.module, format);
336
+ // } else {
337
+ // return "暂无时间";
338
+ // }
339
339
 
340
340
  default:
341
341
  return this.module;