perf: aotu imports

This commit is contained in:
xingyu
2023-01-18 12:14:58 +08:00
parent e2c7ea8a74
commit 85c4d1fb03
107 changed files with 50 additions and 265 deletions

View File

@@ -161,17 +161,12 @@
</el-row>
</template>
<script setup lang="ts" name="Home">
import { ref, reactive } from 'vue'
import { set } from 'lodash-es'
import { EChartsOption } from 'echarts'
import { ElRow, ElCol, ElSkeleton, ElCard, ElDivider, ElLink } from 'element-plus'
import { formatTime } from '@/utils'
import { useI18n } from '@/hooks/web/useI18n'
import { useUserStore } from '@/store/modules/user'
import { useWatermark } from '@/hooks/web/useWatermark'
import { Echart } from '@/components/Echart'
import { CountTo } from '@/components/CountTo'
import { Highlight } from '@/components/Highlight'
import avatarImg from '@/assets/imgs/avatar.gif'
import type { WorkplaceTotal, Project, Notice, Shortcut } from './types'
import { pieOptions, barOptions } from './echarts-data'

View File

@@ -141,14 +141,10 @@
</el-row>
</template>
<script setup lang="ts">
import { ref, reactive } from 'vue'
import { set } from 'lodash-es'
import { EChartsOption } from 'echarts'
import { ElRow, ElCol, ElCard, ElSkeleton } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n'
import { useDesign } from '@/hooks/web/useDesign'
import { Echart } from '@/components/Echart'
import { CountTo } from '@/components/CountTo'
import type { AnalysisTotalTypes } from './types'
import { pieOptions, barOptions, lineOptions } from './echarts-data'