akxcv / vuera

:eyes: Vue in React, React in Vue. Seamless integration of the two. :dancers:
MIT License
4.3k stars 242 forks source link

Antd Component ( Select.Option, Form.Item, Menu.Item .eg) only render first child #131

Closed zhaohongyan closed 3 years ago

zhaohongyan commented 3 years ago

I have some antd component only render first child, for example:

 <Select>
    <Select.Option>1</Select.Option>
    <Select.Option>2</Select.Option>
    <Select.Option>3</Select.Option>
  </Select>

only option1 has render, other options not render

Antd https://ant.design/index-cn

zhaohongyan commented 3 years ago

React in Vue - without the Vue plugin

This way is OK!

Use vuera/babel plugin has problem.

dirt1de commented 3 years ago

Dear zhaohongyan,

I encountered the same issue here (I hope to use the Select component from Antd in my Vue project). However, I tried to use Vuera without the Vue plugin, but still failed. Is it possible for you to post your solution code here? Thanks in advance!

zhaohongyan commented 3 years ago

webpack.config.js 里面去掉vuera/babel这个插件,使用另外一种方式引入Vue in React - without the Babel plugin

dirt1de commented 3 years ago

就是去掉vuera/babel后用Vuera的HOC API吗?

zhaohongyan commented 3 years ago

是的