wip(ssr): v-model w/ dynamic type & props
This commit is contained in:
@@ -238,7 +238,7 @@ export function generate(
|
||||
for (let i = 0; i < ast.temps; i++) {
|
||||
push(`${i > 0 ? `, ` : ``}_temp${i}`)
|
||||
}
|
||||
newline()
|
||||
push(`\n`)
|
||||
}
|
||||
if (ast.components.length || ast.directives.length || ast.temps) {
|
||||
newline()
|
||||
|
||||
@@ -34,6 +34,7 @@ export { transformOn } from './transforms/vOn'
|
||||
export { transformBind } from './transforms/vBind'
|
||||
|
||||
// exported for compiler-ssr
|
||||
export { MERGE_PROPS } from './runtimeHelpers'
|
||||
export { processIfBranches } from './transforms/vIf'
|
||||
export { processForNode, createForLoopParams } from './transforms/vFor'
|
||||
export {
|
||||
|
||||
@@ -16,7 +16,8 @@ import {
|
||||
ComponentCodegenNode,
|
||||
createCallExpression,
|
||||
CacheExpression,
|
||||
createCacheExpression
|
||||
createCacheExpression,
|
||||
TemplateLiteral
|
||||
} from './ast'
|
||||
import {
|
||||
isString,
|
||||
@@ -62,6 +63,7 @@ export type DirectiveTransform = (
|
||||
export interface DirectiveTransformResult {
|
||||
props: Property[]
|
||||
needRuntime?: boolean | symbol
|
||||
ssrTagParts?: TemplateLiteral['elements']
|
||||
}
|
||||
|
||||
// A structural directive transform is a technically a NodeTransform;
|
||||
|
||||
Reference in New Issue
Block a user