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

slot prop cannot work in jsx in vue3 #230

Open
jackchoumine opened this issue May 30, 2021 · 0 comments
Open

slot prop cannot work in jsx in vue3 #230

jackchoumine opened this issue May 30, 2021 · 0 comments

Comments

@jackchoumine
Copy link

<el-tag key={item.teacherName} size="mini" slot="reference">
       {item.teacherName}
 </el-tag>

slot="reference" worl well in vue2,but cannot in vue3. I have to write in h function:

 {
          reference: () => {
            return (
              <el-tag key={item.teacherName} size="mini">
                {item.teacherName}
              </el-tag>
            )
          },
  }

Does vue3 not support slot in jsx any more?

I hope use slot in jsx,it is close template.

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

1 participant