vbenjs / vben-admin-thin-next

vue-vben-admin-2.0 mini template.vue3,vite,typescript
https://vvbin.cn/thin/next
MIT License
2.06k stars 854 forks source link

`Button`组件 #43

Closed 1sm23 closed 3 years ago

1sm23 commented 3 years ago

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

Describe the bug

Button 组件引入时会报警告,全局 AButton 没有这个问题

警告: 192.168.1.30-1634782917635.log

Reproduction

<template>
  <div class="p-4">
    <Button>123</Button>
    <GrowCard :loading="loading" class="enter-y" />
    <SiteAnalysis class="!my-4 enter-y" :loading="loading" />
    <div class="md:flex enter-y">
      <VisitRadar class="md:w-1/3 w-full" :loading="loading" />
      <VisitSource class="md:w-1/3 !md:mx-4 !md:my-0 !my-4 w-full" :loading="loading" />
      <SalesProductPie class="md:w-1/3 w-full" :loading="loading" />
    </div>
  </div>
</template>
<script lang="ts" setup>
  import { ref } from 'vue';
  import GrowCard from './components/GrowCard.vue';
  import SiteAnalysis from './components/SiteAnalysis.vue';
  import VisitSource from './components/VisitSource.vue';
  import VisitRadar from './components/VisitRadar.vue';
  import SalesProductPie from './components/SalesProductPie.vue';
  import { Button } from '/@/components/Button';
  const loading = ref(true);

  setTimeout(() => {
    loading.value = false;
  }, 1500);
</script>

System Info