Home / Function/ renderSSRStyle() — vue Function Reference

renderSSRStyle() — vue Function Reference

Architecture documentation for the renderSSRStyle() function in runtime-helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  1a2361a0_d6b0_d732_65e6_d0865594641c["renderSSRStyle()"]
  133969d0_a7bd_f1c5_46a3_9fb8fd249583["extend()"]
  1a2361a0_d6b0_d732_65e6_d0865594641c -->|calls| 133969d0_a7bd_f1c5_46a3_9fb8fd249583
  29ec91dc_3cc1_b618_1af1_f0fdc215fd73["normalizeStyleBinding()"]
  1a2361a0_d6b0_d732_65e6_d0865594641c -->|calls| 29ec91dc_3cc1_b618_1af1_f0fdc215fd73
  e9dcbd63_d9db_8c20_c04c_3eafe4d27b15["genStyle()"]
  1a2361a0_d6b0_d732_65e6_d0865594641c -->|calls| e9dcbd63_d9db_8c20_c04c_3eafe4d27b15
  6121661a_8180_ff5f_be07_bd3a751ed57a["escape()"]
  1a2361a0_d6b0_d732_65e6_d0865594641c -->|calls| 6121661a_8180_ff5f_be07_bd3a751ed57a
  style 1a2361a0_d6b0_d732_65e6_d0865594641c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts lines 137–148

function renderSSRStyle(
  staticStyle: Record<string, any>,
  dynamic: any,
  extra?: Record<string, any>
): string {
  const style = {}
  if (staticStyle) extend(style, staticStyle)
  if (dynamic) extend(style, normalizeStyleBinding(dynamic))
  if (extra) extend(style, extra)
  const res = genStyle(style)
  return res === '' ? res : ` style=${JSON.stringify(escape(res))}`
}

Subdomains

Frequently Asked Questions

What does renderSSRStyle() do?
renderSSRStyle() is a function in the vue codebase.
What does renderSSRStyle() call?
renderSSRStyle() calls 4 function(s): escape, extend, genStyle, normalizeStyleBinding.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free