We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7966d94 commit 66747edCopy full SHA for 66747ed
src/slide-up-down.js
@@ -15,6 +15,10 @@ export default {
15
type: Boolean,
16
default: true,
17
},
18
+ disabled: {
19
+ type: Boolean,
20
+ default: false
21
+ },
22
23
24
data: () => ({
@@ -33,7 +37,7 @@ export default {
33
37
return h(
34
38
this.tag,
35
39
{
36
- style: this.style,
40
+ style: this.renderStyle,
41
attrs: this.attrs,
42
ref: 'container',
43
on: { transitionend: this.onTransitionEnd },
@@ -66,8 +70,11 @@ export default {
66
70
attrs.hidden = this.hidden
67
71
}
68
72
69
- return attrs
73
+ return !this.disabled ? attrs : {}
74
75
+ renderStyle() {
76
+ return !this.disabled ? this.style : {}
77
+ }
78
79
80
methods: {
0 commit comments