问题描述:

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=

image.png

问题分析

组件使用了,但是未使用 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>

image.png


Tom_Li
26 声望1 粉丝

热爱学习,热爱总结,热爱广博知识