refactor(projects): perf code

This commit is contained in:
Soybean
2024-03-24 03:02:08 +08:00
parent 187098136e
commit f91ef30bd5
54 changed files with 219 additions and 119 deletions

View File

@ -29,7 +29,7 @@ const icon = computed(() => iconMap[props.type]);
</script>
<template>
<div class="size-full min-h-520px flex-vertical-center gap-24px overflow-hidden">
<div class="size-full min-h-520px flex-col-center gap-24px overflow-hidden">
<div class="flex text-400px text-primary">
<SvgIcon :local-icon="icon" />
</div>

View File

@ -14,8 +14,8 @@ defineProps<Props>();
<template>
<ButtonIcon :key="String(full)" :tooltip-content="full ? $t('icon.fullscreenExit') : $t('icon.fullscreen')">
<IconGridiconsFullscreenExit v-if="full" />
<IconGridiconsFullscreen v-else />
<icon-gridicons-fullscreen-exit v-if="full" />
<icon-gridicons-fullscreen v-else />
</ButtonIcon>
</template>

View File

@ -14,7 +14,7 @@ defineProps<Props>();
<template>
<ButtonIcon :tooltip-content="$t('icon.reload')">
<IconAntDesignReloadOutlined :class="{ 'animate-spin animate-duration-750': loading }" />
<icon-ant-design-reload-outlined :class="{ 'animate-spin animate-duration-750': loading }" />
</ButtonIcon>
</template>

View File

@ -3,7 +3,7 @@ defineOptions({ name: 'SystemLogo' });
</script>
<template>
<IconLocalLogo />
<icon-local-logo />
</template>
<style scoped></style>