ElemeFE / element-react

Element UI
https://elemefe.github.io/element-react/index
MIT License
2.83k stars 444 forks source link

el-radio-group不能使用<component>标签渲染 #1045

Closed leekoho closed 4 years ago

leekoho commented 4 years ago

Description

当我尝试用标签动态渲染el-checkbox-groupel-radio-group组件时, el-checkbox-group组件正常渲染, 但是el-radio-group组件会报错

Reproduce Steps

https://tva1.sinaimg.cn/large/006tNbRwly1g9sy7ub4gnj31600m0djm.jpg

Error Trace (if possible)

[Vue warn]: Unknown custom element: <component> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <ElRadioGroup> at packages/radio/src/radio-group.vue
       <ElDialog> at packages/dialog/src/component.vue
         <UserPickDialog> at src/components/user-pick-dialog/index.vue
           <DetailPanel> at src/components/flow/components/detail-panel/index.vue
             <ElAside> at packages/aside/src/main.vue
               <ElContainer> at packages/container/src/main.vue
                 <G6Editor> at src/components/flow/components/g6-editor/index.vue
                   <FlowDesign> at src/components/flow/index.vue
                     <FlowDesign> at src/views/FlowDesign.vue
                       <App> at src/App.vue
                         <Root>

Additional Information

我查看源码时发现, el-radio-group 组件也使用了标签, el-checkbox-group未使用,

https://tva1.sinaimg.cn/large/006tNbRwly1g9sya2qa6oj30mu0e8gn1.jpg

chenhongen commented 4 years ago

How to deal with?

leekoho commented 4 years ago

How to deal with?

我后面发现: 控制台虽然会报错, 但是不影响组件的使用, 所以就关了issue

chenhongen commented 4 years ago

就是warn还是在。。没处理了吗

leekoho commented 4 years ago

就是warn还是在。。没处理了吗

是的

chenhongen commented 4 years ago

so sad