File tree 2 files changed +7
-1
lines changed
packages/test-utils/types
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ interface MountOptions<V extends Vue> extends ComponentOptions<V> {
132
132
mocks ?: object | false
133
133
parentComponent ?: Component
134
134
slots ?: Slots
135
- scopedSlots ?: Record < string , string >
135
+ scopedSlots ?: Record < string , string | Function >
136
136
stubs ?: Stubs | false ,
137
137
attrs ?: Record < string , string >
138
138
listeners ?: Record < string , Function | Function [ ] >
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ shallowMount(ClassComponent, {
33
33
foo : [ normalOptions , functionalOptions ] ,
34
34
baz : ClassComponent
35
35
} ,
36
+ scopedSlots : {
37
+ scopedFoo : `<div>scopedFoo</div>` ,
38
+ scopedBaz ( ) {
39
+ return `<div>scopedBaz</div>` ;
40
+ } ,
41
+ } ,
36
42
stubs : {
37
43
foo : normalOptions ,
38
44
bar : functionalOptions ,
You can’t perform that action at this time.
0 commit comments