FxLogo 应用 Logo
图标(标题首字母)+ 标题文字。纯 UI,标题由消费方经 props 传入。
基础用法
vue
<script setup lang="ts">
import { FxLogo } from "@fx/layouts"
import { APP_TITLE } from "@/utils"
</script>
<template>
<FxLogo :title="APP_TITLE" :show-text="true" @click="goHome" />
</template>Attributes
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| title | 应用标题(logo 文字 + 图标首字母) | string | —(必填) |
| showText | 是否显示标题文字 | boolean | true |
| bordered | 是否带底部分隔线(侧栏 logo/菜单分区用;header 内传 false) | boolean | true |
Events
| 事件名 | 说明 | 回调参数 |
|---|---|---|
| click | 点击 logo | () |
