Skip to content

something wrong slots and scopeSlots ?  #1327

@xxbld

Description

@xxbld

Version

1.0.0-beta.29

Reproduction link

#1326

Steps to reproduce

describe('aaa', () => {
  const Com = Vue.extend({
    render(h) {
      return h('div')
    }
  })
  const wrapper = mount({
    render(h) {
      return h(Com, { ref: 'com' },'aaa')
    }
  })
  it('wrapper.vm.$refs.com.$scopedSlots:', () => {
    // wrapper.vm.$refs.com.$scopedSlots: {default:[Function]} ??????
    console.log("wrapper.vm.$refs.com.$scopedSlots:", wrapper.vm.$refs.com.$scopedSlots)
    // wrapper.vm.$refs.com.$slots: {default:[VNode]}
    console.log("wrapper.vm.$refs.com.$slots:", wrapper.vm.$refs.com.$slots)
    
  })
})

What is expected?

$scopedSlots.default ===undefined

What is actually happening?

$scopedSlots: {default:[Function]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions