refactor(ssr): adjust helper structure + renderList

This commit is contained in:
Evan You
2020-02-03 18:16:09 -05:00
parent 889a0276eb
commit 2ad0eed5cd
9 changed files with 90 additions and 45 deletions

View File

@@ -19,10 +19,10 @@ import {
isPromise,
isArray,
isFunction,
isVoidTag
isVoidTag,
escapeHtml
} from '@vue/shared'
import { renderProps } from './renderProps'
import { escapeHtml } from '@vue/shared'
import { renderAttrs } from './helpers/renderAttrs'
const {
isVNode,
@@ -213,7 +213,7 @@ function renderElement(
// TODO directives
if (props !== null) {
openTag += renderProps(props, tag)
openTag += renderAttrs(props, tag)
}
if (scopeId !== null) {