@opentinyvue/vue-drawer 2.28.0 → 2.29.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.
Files changed (2) hide show
  1. package/lib/pc.js +15 -3
  2. package/package.json +7 -7
package/lib/pc.js CHANGED
@@ -55,7 +55,7 @@ var __vue2_script = defineComponent({
55
55
  }
56
56
  },
57
57
  props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "height", "mask", "dragable", "maskClosable", "lockScroll", "flex", "showClose", "zIndex", "beforeClose", "tipsProps", "customSlots", "closeOnPressEscape"]),
58
- emits: ["update:visible", "open", "close", "confirm", "drag"],
58
+ emits: ["update:visible", "open", "close", "closed", "confirm", "drag"],
59
59
  setup: function setup$1(props2, context) {
60
60
  return setup({
61
61
  props: props2,
@@ -84,6 +84,9 @@ var render2 = function render3() {
84
84
  style: {
85
85
  zIndex: _vm.zIndex
86
86
  },
87
+ attrs: {
88
+ "aria-hidden": "true"
89
+ },
87
90
  on: {
88
91
  "click": function click($event) {
89
92
  return _vm.handleClose("mask");
@@ -92,6 +95,9 @@ var render2 = function render3() {
92
95
  }) : _vm._e()]), _c("transition", {
93
96
  attrs: {
94
97
  "name": "drawer-slide-" + _vm.placement
98
+ },
99
+ on: {
100
+ "after-leave": _vm.closed
95
101
  }
96
102
  }, [_c("div", {
97
103
  directives: [{
@@ -116,7 +122,9 @@ var render2 = function render3() {
116
122
  transform: _vm.state.visible ? "none" : null
117
123
  },
118
124
  attrs: {
119
- "data-tag": "tiny-drawer-main"
125
+ "data-tag": "tiny-drawer-main",
126
+ "aria-modal": "true",
127
+ "role": "dialog"
120
128
  }
121
129
  }, [_vm.dragable ? _c("div", {
122
130
  ref: "dragBar",
@@ -168,7 +176,11 @@ var render2 = function render3() {
168
176
  }
169
177
  }
170
178
  }, [_c("icon-close", {
171
- staticClass: "tiny-svg-size tiny-drawer__close"
179
+ staticClass: "tiny-svg-size tiny-drawer__close",
180
+ attrs: {
181
+ "role": "img",
182
+ "aria-label": "close"
183
+ }
172
184
  })], 1) : _vm._e()], 2) : _vm._e(), _c("div", {
173
185
  ref: "body",
174
186
  class: ["tiny-drawer__body", {
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-drawer",
3
- "version": "2.28.0",
3
+ "version": "2.29.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.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"
10
+ "@opentinyvue/vue-button": "~2.29.0",
11
+ "@opentinyvue/vue-tooltip": "~2.29.0",
12
+ "@opentinyvue/vue-common": "~2.29.0",
13
+ "@opentinyvue/vue-renderless": "~3.29.0",
14
+ "@opentinyvue/vue-icon": "~2.29.0",
15
+ "@opentinyvue/vue-theme": "~3.29.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"