mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-30 14:32:09 +08:00
style: 优化部分结构
This commit is contained in:
parent
3b913c1af4
commit
4dc5f0a298
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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>
|
<span v-html="type === 'checkbox' && !useLabel ? '' : text" :title="labelTitle"></span>
|
||||||
<TMagicTooltip v-if="tip && (type !== 'checkbox' || useLabel)" placement="top">
|
<TMagicTooltip v-if="tip && (type !== 'checkbox' || useLabel)" placement="top">
|
||||||
<TMagicIcon style="margin-left: 5px; display: flex"><warning-filled /></TMagicIcon>
|
<TMagicIcon style="margin-left: 5px; display: flex"><warning-filled /></TMagicIcon>
|
||||||
@ -8,6 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</TMagicTooltip>
|
</TMagicTooltip>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-else v-html="type === 'checkbox' && !useLabel ? '' : text" :title="labelTitle"></span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
:addable="editable"
|
:addable="editable"
|
||||||
:theme="type === 'card' ? 'card' : 'normal'"
|
:theme="type === 'card' ? 'card' : 'normal'"
|
||||||
:placement="tabPosition"
|
:placement="tabPosition"
|
||||||
|
scroll-position="auto"
|
||||||
@add="onTabAdd"
|
@add="onTabAdd"
|
||||||
@change="tabClickHandler"
|
@change="tabClickHandler"
|
||||||
@remove="onTabRemove"
|
@remove="onTabRemove"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user