@opentinyvue/vue-drawer 3.27.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 +9 -3
- package/package.json +7 -7
- package/src/pc.vue.d.ts +5 -1
package/lib/pc.js
CHANGED
|
@@ -58,8 +58,8 @@ var _sfc_main = defineComponent({
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
|
-
props: [].concat(props, ["visible", "title", "showHeader", "showFooter", "customClass", "placement", "width", "height", "mask", "dragable", "maskClosable", "lockScroll", "flex", "showClose", "zIndex", "beforeClose", "tipsProps", "customSlots"]),
|
|
62
|
-
emits: ["update:visible", "open", "close", "confirm", "drag"],
|
|
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", "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.
|
|
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.
|
|
11
|
-
"@opentinyvue/vue-tooltip": "~3.
|
|
12
|
-
"@opentinyvue/vue-common": "~3.
|
|
13
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
14
|
-
"@opentinyvue/vue-icon": "~3.
|
|
15
|
-
"@opentinyvue/vue-theme": "~3.
|
|
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
|
@@ -25,6 +25,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
25
25
|
beforeClose?: any;
|
|
26
26
|
tipsProps?: any;
|
|
27
27
|
customSlots?: any;
|
|
28
|
+
closeOnPressEscape?: any;
|
|
28
29
|
}>, {
|
|
29
30
|
t: (this: any, path: any, options?: any) => any;
|
|
30
31
|
vm: any;
|
|
@@ -34,7 +35,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
34
35
|
dp: (props: any) => void;
|
|
35
36
|
gcls: (key: any) => any;
|
|
36
37
|
m: (...cssClasses: any[]) => string;
|
|
37
|
-
}, 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<{
|
|
38
39
|
width?: any;
|
|
39
40
|
height?: any;
|
|
40
41
|
title?: any;
|
|
@@ -61,12 +62,14 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
61
62
|
beforeClose?: any;
|
|
62
63
|
tipsProps?: any;
|
|
63
64
|
customSlots?: any;
|
|
65
|
+
closeOnPressEscape?: any;
|
|
64
66
|
}>>> & {
|
|
65
67
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
66
68
|
onDrag?: ((...args: any[]) => any) | undefined;
|
|
67
69
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
68
70
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
69
71
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
70
73
|
}, {
|
|
71
74
|
readonly width?: any;
|
|
72
75
|
readonly height?: any;
|
|
@@ -94,5 +97,6 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
|
94
97
|
readonly beforeClose?: any;
|
|
95
98
|
readonly tipsProps?: any;
|
|
96
99
|
readonly customSlots?: any;
|
|
100
|
+
readonly closeOnPressEscape?: any;
|
|
97
101
|
}, {}>;
|
|
98
102
|
export default _default;
|