关于前端:Failed-to-resolve-component-smileoutlined-If-this-is-a

34次阅读

共计 467 个字符,预计需要花费 2 分钟才能阅读完成。

问题形容:

Failed to resolve component: smile-outlined If this is a native custom 
element, make sure to exclude it from 
component resolution via compilerOptions.isCustomElement.   
at <DMiddle dataSource=

问题剖析

 组件应用了,然而未应用 import 和 注册

问题解决

<script lang="ts">
import {defineComponent} from 'vue';
import {SmileOutlined, DownOutlined} from '@ant-design/icons-vue';

export default defineComponent({
  name: 'd-middle',
  data() {
    return {selectedKeys: 'selectedKeys',};
  },
  methods: {},
  components: {
    SmileOutlined,
    DownOutlined,
  },
});
</script>

正文完
 0