| 1234567891011121314151617181920212223242526272829303132333435 |
- <!-- 系统logo -->
- <template>
- <div class="art-logo">
- <img :style="logoStyle" src="@/assets/img/favicon.ico" alt="logo" style="border-radius: 50%" />
- </div>
- </template>
- <script setup lang="ts">
- defineOptions({ name: 'ArtLogo' })
- interface Props {
- /** logo 大小 */
- size?: number | string
- }
- const props = withDefaults(defineProps<Props>(), {
- size: 36
- })
- const logoStyle = computed(() => ({ width: `${props.size}px` }))
- </script>
- <style lang="scss" scoped>
- .art-logo {
- display: flex;
- align-items: center;
- justify-content: center;
- img {
- width: 100%;
- height: 100%;
- }
- }
- </style>
|