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

Function initVShowForSSR

packages/runtime-dom/src/directives/vShow.ts:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55// SSR vnode transforms, only used when user includes client-oriented render
56// function in SSR
57export function initVShowForSSR(): void {
58 vShow.getSSRProps = ({ value }) => {
59 if (!value) {
60 return { style: { display: 'none' } }
61 }
62 }
63}

Callers 1

index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected