MCPcopy
hub / github.com/vuejs/core / setDisplay

Function setDisplay

packages/runtime-dom/src/directives/vShow.ts:50–53  ·  view source on GitHub ↗
(el: VShowElement, value: unknown)

Source from the content-addressed store, hash-verified

48}
49
50function setDisplay(el: VShowElement, value: unknown): void {
51 el.style.display = value ? el[vShowOriginalDisplay] : 'none'
52 el[vShowHidden] = !value
53}
54
55// SSR vnode transforms, only used when user includes client-oriented render
56// function in SSR

Callers 3

beforeMountFunction · 0.85
updatedFunction · 0.85
beforeUnmountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected