File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ export function mount(
236
236
237
237
if ( typeof slot === 'string' ) {
238
238
// slot is most probably a scoped slot string or a plain string
239
- acc [ name ] = ( props : VNodeProps ) => h ( processSlot ( slot . trim ( ) ) , props )
239
+ acc [ name ] = ( props : VNodeProps ) => h ( processSlot ( slot ) , props )
240
240
return acc
241
241
}
242
242
Original file line number Diff line number Diff line change 1
1
import { compile } from '@vue/compiler-dom'
2
2
import * as vue from 'vue'
3
3
4
- export function processSlot ( template = '' , Vue = vue ) {
4
+ export function processSlot ( source = '' , Vue = vue ) {
5
+ let template = source . trim ( )
5
6
const hasWrappingTemplate = template && template . startsWith ( '<template' )
6
7
7
8
// allow content without `template` tag, for easier testing
You can’t perform that action at this time.
0 commit comments