Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] el-popover not support Vue 2.6.12 v-slot #21078

Closed
radiorz opened this issue Jun 16, 2021 · 2 comments
Closed

[Bug Report] el-popover not support Vue 2.6.12 v-slot #21078

radiorz opened this issue Jun 16, 2021 · 2 comments

Comments

@radiorz
Copy link

radiorz commented Jun 16, 2021

那你能帮帮我吗 Could you help meeee?
element version: 2.15.2
vue: 2.6.12

这样就可以用 It works this way:

<el-popover trigger="hover" placement="bottom">
    content....
  <div slot="reference">
    <span>123</span>
    <el-tag>123</el-tag>

</div>
</el-popover>

It doesnt work this way:

<el-popover trigger="hover" placement="bottom">
    content....
  <template v-slot:reference>
    <span>123</span>
    <el-tag>123</el-tag>
  </template>
</el-popover>

Originally posted by @radiorz in #18586 (comment)

@element-bot element-bot changed the title 那你能帮帮我吗 Could you help meeee? Can you help me? Jun 16, 2021
@element-bot
Copy link
Member

Translation of this issue:

Can you help me?
element version: 2.15.2

vue: 2.6.12

So you can use it works this way:


<el-popover trigger=\"hover\" placement=\"bottom\">
content....

<div slot=\"reference\">
<span>123</span>

<el-tag>123</el-tag>
</div>

</el-popover>

It doesnt work this way:


<el-popover trigger=\"hover\" placement=\"bottom\">
content....

<template v- slot:reference >
<span>123</span>

<el-tag>123</el-tag>
</template>

</el-popover>

_ Originally posted by @radiorz in #18586 (comment) -862074254_

@radiorz radiorz changed the title Can you help me? [Bug Report] el-popover not support Vue 2.6.0 v-slot Jun 16, 2021
@radiorz radiorz changed the title [Bug Report] el-popover not support Vue 2.6.0 v-slot [Bug Report] el-popover not support Vue 2.6.12 v-slot Jun 16, 2021
@cs1707
Copy link
Contributor

cs1707 commented Sep 26, 2021

<template v-slot:reference>
  <div>
      <span>123</span>
      <el-tag>123</el-tag>
  </div>
</template>

@cs1707 cs1707 closed this as completed Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants