arco-design-pro-vue
arco-design-pro-vue copied to clipboard
tsx中如何动态使用icon图标
- [ ] I'm sure this does not appear in the issue list of the repository
Basic Info
- Package Name And Version: [email protected]
- Browser: chrome118.0.0.0
What is expected?
能在tsx动态使用icon图标
Steps to reproduce
代码库是这样写的,但是无法使用 https://github.com/arco-design/arco-design-pro-vue/blob/23a21ceb939e1e2334e8c3b0f1f8a8049503ad9d/arco-design-pro-vite/src/components/menu/index.vue#L53
同问,报了这个警告,Failed to resolve component: icon-dashboard If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 图标无法正常显示。