@v2coding/ui 0.1.30 → 0.1.31

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.
@@ -7927,7 +7927,11 @@ var script$f = {
7927
7927
  type: Boolean,
7928
7928
  default: false
7929
7929
  },
7930
- beforeClose: Function
7930
+ beforeClose: Function,
7931
+ destroyOnClose: {
7932
+ type: Boolean,
7933
+ default: true
7934
+ }
7931
7935
  },
7932
7936
 
7933
7937
  data() {
@@ -7940,7 +7944,8 @@ var script$f = {
7940
7944
  dragWidth: this.width,
7941
7945
  wrapperWidth: this.width,
7942
7946
  wrapperLeft: 0,
7943
- minWidth: 256
7947
+ minWidth: 256,
7948
+ key: 0
7944
7949
  };
7945
7950
  },
7946
7951
 
@@ -8083,6 +8088,14 @@ var script$f = {
8083
8088
  watch: {
8084
8089
  value(val) {
8085
8090
  this.visible = val;
8091
+
8092
+ if (!val) {
8093
+ if (this.destroyOnClose) {
8094
+ this.$nextTick(() => {
8095
+ this.key++;
8096
+ });
8097
+ }
8098
+ }
8086
8099
  },
8087
8100
 
8088
8101
  visible(val) {
@@ -8162,6 +8175,7 @@ var __vue_render__$e = function () {
8162
8175
  value: _vm.visible,
8163
8176
  expression: "visible"
8164
8177
  }],
8178
+ key: _vm.key,
8165
8179
  class: _vm.classes,
8166
8180
  style: _vm.mainStyles
8167
8181
  }, [_c('div', {
@@ -8207,7 +8221,7 @@ var __vue_staticRenderFns__$e = [];
8207
8221
 
8208
8222
  const __vue_inject_styles__$f = function (inject) {
8209
8223
  if (!inject) return;
8210
- inject("data-v-0c67e85e_0", {
8224
+ inject("data-v-74205198_0", {
8211
8225
  source: ".ui-drawer{width:auto;height:100%;position:fixed;top:0}.ui-drawer-inner{position:absolute}.ui-drawer-left{left:0}.ui-drawer-right{right:0}.ui-drawer-hidden{display:none!important}.ui-drawer-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1000;-webkit-overflow-scrolling:touch;outline:0}.ui-drawer-wrap-inner{position:absolute;overflow:hidden}.ui-drawer-wrap-dragging{user-select:none}.ui-drawer-wrap *{-webkit-tap-highlight-color:transparent}.ui-drawer-mask{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(55,55,55,.6);height:100%;z-index:1000}.ui-drawer-mask-hidden{display:none}.ui-drawer-mask-inner{position:absolute}.ui-drawer-content{width:100%;height:100%;position:absolute;top:0;bottom:0;background-color:#fff;border:0;background-clip:padding-box;box-shadow:0 4px 12px rgba(0,0,0,.15)}.ui-drawer-content-no-mask{pointer-events:auto}.ui-drawer-header{border-bottom:1px solid #e8eaec;padding:14px 16px;line-height:1}.ui-drawer-header p,.ui-drawer-header-inner{display:inline-block;width:100%;height:20px;line-height:20px;font-size:16px;color:#17233d;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-drawer-close{z-index:1;font-size:12px;position:absolute;right:15px;top:15px;overflow:hidden;cursor:pointer}.ui-drawer-close .el-icon-close{font-size:20px;color:#999;transition:color .2s ease;position:relative;top:1px}.ui-drawer-close .el-icon-close:hover{color:#444}.ui-drawer-body{width:100%;height:calc(100% - 51px);padding:16px;font-size:14px;line-height:1.5;word-wrap:break-word;position:absolute;overflow:auto;box-sizing:border-box}.ui-drawer-no-header .ui-drawer-body{height:100%}.ui-drawer-no-mask{pointer-events:none}.ui-drawer-no-mask .ui-drawer-drag{pointer-events:auto}.ui-drawer-drag{top:0;height:100%;width:0;position:absolute}.ui-drawer-drag-left{right:0}.ui-drawer-drag-move-trigger{width:8px;height:100px;line-height:100px;position:absolute;top:50%;background:#f3f3f3;transform:translate(-50%,-50%);border-radius:4px/6px;box-shadow:0 0 1px 1px rgba(0,0,0,.2);cursor:col-resize}.ui-drawer-drag-move-trigger-point{display:inline-block;width:50%;transform:translateX(50%)}.ui-drawer-drag-move-trigger-point i{display:block;border-bottom:1px solid silver;padding-bottom:2px}.fade-appear,.fade-enter-active{animation-duration:.15s;animation-fill-mode:both;animation-play-state:paused}.fade-leave-active{animation-duration:.15s;animation-fill-mode:both;animation-play-state:paused}.fade-appear,.fade-enter-active{animation-name:uiFadeInIn;animation-play-state:running}.fade-leave-active{animation-name:uiFadeInOut;animation-play-state:running}.fade-appear,.fade-enter-active{opacity:0;animation-timing-function:linear}.fade-leave-active{animation-timing-function:linear}@keyframes uiFadeIn{0%{opacity:0}100%{opacity:1}}@keyframes ivuFadeOut{0%{opacity:1}100%{opacity:0}}",
8212
8226
  map: undefined,
8213
8227
  media: undefined