乐趣区

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

问题形容:

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>
退出移动版