File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/runtime-dom/src/directives Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,9 @@ export interface VShowElement extends HTMLElement {
9
9
[ vShowHidden ] : boolean
10
10
}
11
11
12
- export const vShow : ObjectDirective < VShowElement > & { name ?: 'show' } = {
12
+ export const vShow : ObjectDirective < VShowElement > & { name : 'show' } = {
13
+ // used for prop mismatch check during hydration
14
+ name : 'show' ,
13
15
beforeMount ( el , { value } , { transition } ) {
14
16
el [ vShowOriginalDisplay ] =
15
17
el . style . display === 'none' ? '' : el . style . display
@@ -45,10 +47,6 @@ export const vShow: ObjectDirective<VShowElement> & { name?: 'show' } = {
45
47
} ,
46
48
}
47
49
48
- if ( __DEV__ || __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__ ) {
49
- vShow . name = 'show'
50
- }
51
-
52
50
function setDisplay ( el : VShowElement , value : unknown ) : void {
53
51
el . style . display = value ? el [ vShowOriginalDisplay ] : 'none'
54
52
el [ vShowHidden ] = ! value
You can’t perform that action at this time.
0 commit comments