@opentinyvue/vue-drawer 2.26.0 → 2.28.0

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.
@@ -97,7 +97,8 @@ var render = function render2() {
97
97
  }, _vm.customClass),
98
98
  style: {
99
99
  width: ["left", "right"].includes(_vm.placement) ? _vm.state.computedWidth : null,
100
- height: ["top", "bottom"].includes(_vm.placement) && _vm.dragable && _vm.state.height ? _vm.state.height + "px" : null
100
+ height: ["top", "bottom"].includes(_vm.placement) && _vm.dragable && _vm.state.height ? _vm.state.height + "px" : null,
101
+ transform: _vm.state.visible ? "none" : null
101
102
  },
102
103
  attrs: {
103
104
  "data-tag": "tiny-drawer-main"
package/lib/pc.js CHANGED
@@ -54,7 +54,7 @@ var __vue2_script = defineComponent({
54
54
  }
55
55
  }
56
56
  },
57
- props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "height", "mask", "dragable", "maskClosable", "lockScroll", "flex", "showClose", "zIndex", "beforeClose", "tipsProps", "customSlots"]),
57
+ props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "height", "mask", "dragable", "maskClosable", "lockScroll", "flex", "showClose", "zIndex", "beforeClose", "tipsProps", "customSlots", "closeOnPressEscape"]),
58
58
  emits: ["update:visible", "open", "close", "confirm", "drag"],
59
59
  setup: function setup$1(props2, context) {
60
60
  return setup({
@@ -112,7 +112,8 @@ var render2 = function render3() {
112
112
  style: {
113
113
  width: ["left", "right"].includes(_vm.placement) ? _vm.state.computedWidth : null,
114
114
  height: ["top", "bottom", "left", "right"].includes(_vm.placement) || _vm.dragable ? _vm.state.computedHeight : null,
115
- zIndex: _vm.zIndex
115
+ zIndex: _vm.zIndex,
116
+ transform: _vm.state.visible ? "none" : null
116
117
  },
117
118
  attrs: {
118
119
  "data-tag": "tiny-drawer-main"
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-drawer",
3
- "version": "2.26.0",
3
+ "version": "2.28.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-button": "~2.26.0",
11
- "@opentinyvue/vue-tooltip": "~2.26.0",
12
- "@opentinyvue/vue-common": "~2.26.0",
13
- "@opentinyvue/vue-renderless": "~3.26.0",
14
- "@opentinyvue/vue-icon": "~2.26.0",
15
- "@opentinyvue/vue-theme": "~3.26.0"
10
+ "@opentinyvue/vue-button": "~2.28.0",
11
+ "@opentinyvue/vue-tooltip": "~2.28.0",
12
+ "@opentinyvue/vue-common": "~2.28.0",
13
+ "@opentinyvue/vue-renderless": "~3.28.0",
14
+ "@opentinyvue/vue-icon": "~2.28.0",
15
+ "@opentinyvue/vue-theme": "~3.28.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"