mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-30 06:22:08 +08:00
style: 优化部分结构
This commit is contained in:
parent
3b913c1af4
commit
4dc5f0a298
@ -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">
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
:addable="editable"
|
||||
:theme="type === 'card' ? 'card' : 'normal'"
|
||||
:placement="tabPosition"
|
||||
scroll-position="auto"
|
||||
@add="onTabAdd"
|
||||
@change="tabClickHandler"
|
||||
@remove="onTabRemove"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user