Skip to content

Commit 388e2d5

Browse files
committed
improve style
1 parent 11922f5 commit 388e2d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: packages/create-instance/create-functional-component.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createSlotVNodes } from './create-slot-vnodes'
66

77
export default function createFunctionalComponent (
88
component: Component,
9-
mountingOptions: Options,
9+
mountingOptions: Options
1010
): Component {
1111
if (mountingOptions.context && typeof mountingOptions.context !== 'object') {
1212
throwError('mount.context must be an object')

Diff for: packages/create-instance/create-slot-vnodes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function createVNodesForSlot (
1010
): VNode | string {
1111
let vnode
1212
if (typeof slotValue === 'string') {
13-
const el = compileToFunctions(`<div>${slotValue}{{ }}</div>`)
13+
const el = compileToFunctions(`<div>${slotValue}</div>`)
1414
const _staticRenderFns = vm._renderProxy.$options.staticRenderFns
1515
// version < 2.5
1616
if (!vm._renderProxy._staticTrees) {

0 commit comments

Comments
 (0)