File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- import { defineComponent , h } from 'vue-demi' ;
1+ import { defineComponent , h , isVue2 } from 'vue-demi' ;
22import { annotate } from 'rough-notation' ;
33import { ADD_ANNOTATION , REMOVE_ANNOTATION } from '../constants' ;
44
@@ -158,7 +158,7 @@ export default (options) =>
158158 } ,
159159
160160 render ( ) {
161- const slot = this . $slots . default ( ) ;
161+ const slot = isVue2 ? this . $slots . default : this . $slots . default ( ) ;
162162
163163 if ( this . tag ) {
164164 return h ( this . tag , null , slot ) ;
Original file line number Diff line number Diff line change 1- import { defineComponent , h } from 'vue-demi' ;
1+ import { defineComponent , h , isVue2 } from 'vue-demi' ;
22import { annotationGroup } from 'rough-notation' ;
33import mitt from 'mitt' ;
44import { ADD_ANNOTATION , REMOVE_ANNOTATION } from '../constants' ;
@@ -105,7 +105,7 @@ export default defineComponent({
105105 } ,
106106
107107 render ( ) {
108- const slot = this . $slots . default ( ) ;
108+ const slot = isVue2 ? this . $slots . default : this . $slots . default ( ) ;
109109
110110 if ( this . tag ) {
111111 return h ( this . tag , null , slot ) ;
You can’t perform that action at this time.
0 commit comments