element [Bug Report] Tooltip, component in slot cannot access vuex store

dgsult0t  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(88)

Element UI version

2.13.2

OS/Browsers version

MacOS

Vue version

2.6.11

https://codesandbox.io/s/element-ui-repro-zfyyo?file=/src/components/Inside.vue

Steps to reproduce

There is component named Inside.vue which is called from HelloWorld.vue

HelloWorld.vue has element UI tooltip component and slot is filled using Inside.vue component

What is Expected?

context.root.$store is defined on both of HelloWorld.vue and Inside.vue

What is actually happening?

HelloWorld.vue has context.root.$store defined but none on Inside.vue

jtjikinw

jtjikinw1#

It could be because it is string interpolated in the end because it asked for string.

I wonder if support for components inside slot will be there
this will be helpful

7nbnzgx9

7nbnzgx92#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题