Evan You
9 years ago
6 changed files with 25 additions and 5 deletions
@ -0,0 +1,5 @@ |
|||
export default function show (node, dir) { |
|||
if (!dir.value) { |
|||
(node.data.style || (node.data.style = {})).display = 'none' |
|||
} |
|||
} |
@ -0,0 +1,3 @@ |
|||
export default function renderAttrs () { |
|||
|
|||
} |
@ -0,0 +1,3 @@ |
|||
export default function renderClass () { |
|||
|
|||
} |
@ -0,0 +1,9 @@ |
|||
import { hyphenate } from 'shared/util' |
|||
|
|||
export default function renderStyle (styles) { |
|||
let res = 'style="' |
|||
for (let key in styles) { |
|||
res += `${hyphenate(key)}:${styles[key]};` |
|||
} |
|||
return res + '"' |
|||
} |
Loading…
Reference in new issue