@opentinyvue/vue-drawer 3.28.0 → 3.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.
package/lib/pc.js CHANGED
@@ -59,7 +59,7 @@ var _sfc_main = defineComponent({
59
59
  }
60
60
  },
61
61
  props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "height", "mask", "dragable", "maskClosable", "lockScroll", "flex", "showClose", "zIndex", "beforeClose", "tipsProps", "customSlots", "closeOnPressEscape"]),
62
- emits: ["update:visible", "open", "close", "confirm", "drag"],
62
+ emits: ["update:visible", "open", "close", "closed", "confirm", "drag"],
63
63
  setup: function setup$1(props2, context) {
64
64
  return setup({
65
65
  props: props2,
@@ -117,6 +117,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
117
117
  {
118
118
  key: 0,
119
119
  ref: "mask",
120
+ "aria-hidden": "true",
120
121
  class: "tiny-drawer__mask show-bg-color",
121
122
  style: normalizeStyle({
122
123
  zIndex: _ctx.zIndex
@@ -134,6 +135,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134
135
  /* STABLE */
135
136
  }), createVNode(Transition, {
136
137
  name: "drawer-slide-" + _ctx.placement,
138
+ onAfterLeave: _ctx.closed,
137
139
  persisted: ""
138
140
  }, {
139
141
  default: withCtx(function() {
@@ -142,6 +144,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
142
144
  {
143
145
  "data-tag": "tiny-drawer-main",
144
146
  ref: "drawerBox",
147
+ "aria-modal": "true",
148
+ role: "dialog",
145
149
  class: normalizeClass(["tiny-drawer__main", {
146
150
  "is-left": _ctx.placement === "left",
147
151
  "is-right": _ctx.placement === "right",
@@ -214,6 +218,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
214
218
  return _ctx.handleClose("close");
215
219
  })
216
220
  }, [createVNode(_component_icon_close, {
221
+ role: "img",
222
+ "aria-label": "close",
217
223
  class: "tiny-svg-size tiny-drawer__close"
218
224
  })])) : createCommentVNode("v-if", true)],
219
225
  512
@@ -293,7 +299,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
293
299
  }),
294
300
  _: 3
295
301
  /* FORWARDED */
296
- }, 8, ["name"])]);
302
+ }, 8, ["name", "onAfterLeave"])]);
297
303
  }
298
304
  var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
299
305
 
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-drawer",
3
- "version": "3.28.0",
3
+ "version": "3.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": "~3.28.0",
11
- "@opentinyvue/vue-tooltip": "~3.28.0",
12
- "@opentinyvue/vue-common": "~3.28.0",
13
- "@opentinyvue/vue-renderless": "~3.28.0",
14
- "@opentinyvue/vue-icon": "~3.28.0",
15
- "@opentinyvue/vue-theme": "~3.28.0"
10
+ "@opentinyvue/vue-button": "~3.29.0",
11
+ "@opentinyvue/vue-tooltip": "~3.29.0",
12
+ "@opentinyvue/vue-common": "~3.29.0",
13
+ "@opentinyvue/vue-renderless": "~3.29.0",
14
+ "@opentinyvue/vue-icon": "~3.29.0",
15
+ "@opentinyvue/vue-theme": "~3.29.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "types": "index.d.ts"
package/src/pc.vue.d.ts CHANGED
@@ -35,7 +35,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
35
35
  dp: (props: any) => void;
36
36
  gcls: (key: any) => any;
37
37
  m: (...cssClasses: any[]) => string;
38
- }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "drag" | "update:visible" | "confirm" | "open")[], "close" | "drag" | "update:visible" | "confirm" | "open", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
38
+ }, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("close" | "drag" | "update:visible" | "confirm" | "open" | "closed")[], "close" | "drag" | "update:visible" | "confirm" | "open" | "closed", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
39
39
  width?: any;
40
40
  height?: any;
41
41
  title?: any;
@@ -69,6 +69,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
69
69
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
70
70
  onConfirm?: ((...args: any[]) => any) | undefined;
71
71
  onOpen?: ((...args: any[]) => any) | undefined;
72
+ onClosed?: ((...args: any[]) => any) | undefined;
72
73
  }, {
73
74
  readonly width?: any;
74
75
  readonly height?: any;