style: 优化部分结构

This commit is contained in:
roymondchen 2025-11-21 15:41:41 +08:00
parent 3b913c1af4
commit 4dc5f0a298
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template>
<span style="display: inline-flex; align-items: center">
<span v-if="tip" style="display: inline-flex; align-items: center">
<span v-html="type === 'checkbox' && !useLabel ? '' : text" :title="labelTitle"></span>
<TMagicTooltip v-if="tip && (type !== 'checkbox' || useLabel)" placement="top">
<TMagicIcon style="margin-left: 5px; display: flex"><warning-filled /></TMagicIcon>
@ -8,6 +8,7 @@
</template>
</TMagicTooltip>
</span>
<span v-else v-html="type === 'checkbox' && !useLabel ? '' : text" :title="labelTitle"></span>
</template>
<script setup lang="ts">

View File

@ -4,6 +4,7 @@
:addable="editable"
:theme="type === 'card' ? 'card' : 'normal'"
:placement="tabPosition"
scroll-position="auto"
@add="onTabAdd"
@change="tabClickHandler"
@remove="onTabRemove"