Rmttf
Rmttf
### Reproduction link [https://github.com/Rmttf/antd-in-shadow-dom.git](https://github.com/Rmttf/antd-in-shadow-dom.git) ### Steps to reproduce 1. npm install 2. npm run start 3. 启动服务后可以看到定义的两个custom-element只有一个拥有antd样式 ### What is expected? styleProvider api 应该支持多个 shadow dom 内注入样式 ### What is...
我目前的解决方案:通过先在当前react组件外包裹一个新的react,在新react组件中处理ref更新问题,然后vue接入新的组件。通过这种方式保证vue接入react组件不需要处理ref。 ``` // 子组件(react): useImperativeHandle( ref, () => ({ query({ selectedWays, rangeTime }) { // ❌异常:当direction, stage在子组件内部变更时,父组件(vue)调用该query拿到的还是初始化的状态 console.log(direction, stage) }, }), [direction, stage] ); ``` ``` // 父组件(vue): handleQuery(curRangeTime, selected)...