chore: format code
This commit is contained in:
@@ -12,10 +12,10 @@ const { b, e } = useNamespace('chrome-tab-background');
|
||||
<div :class="b()">
|
||||
<div :class="e('divider')"></div>
|
||||
<div :class="e('content')"></div>
|
||||
<svg width="10" height="10" :class="e('before')">
|
||||
<svg :class="e('before')" height="10" width="10">
|
||||
<path d="M 0 10 A 10 10 0 0 0 10 0 L 10 10 Z" />
|
||||
</svg>
|
||||
<svg width="10" height="10" :class="e('after')">
|
||||
<svg :class="e('after')" height="10" width="10">
|
||||
<path d="M 0 0 A 10 10 0 0 0 10 10 L 0 10 Z" />
|
||||
</svg>
|
||||
</div>
|
||||
|
@@ -39,7 +39,7 @@ function handleUnPushPin() {
|
||||
|
||||
<template>
|
||||
<div :class="[b()]">
|
||||
<VbenContextMenu :menus="menus" :handler-data="tab" item-class="pr-4">
|
||||
<VbenContextMenu :handler-data="tab" :menus="menus" item-class="pr-4">
|
||||
<div class="h-full">
|
||||
<TabBackground />
|
||||
<div :class="e('content')" :title="title">
|
||||
|
@@ -89,18 +89,18 @@ function handleUnPushPin(tab: TabItem) {
|
||||
<Tab
|
||||
v-for="(tab, i) in tabsView"
|
||||
:key="tab.key"
|
||||
:menus="menus"
|
||||
:tab="tab"
|
||||
:icon="tab.icon"
|
||||
:title="tab.title"
|
||||
:show-icon="showIcon"
|
||||
:affix-tab="tab.affixTab"
|
||||
:only-one="tabsView.length <= 1"
|
||||
:class="[e('tab'), is('active', tab.key === active)]"
|
||||
:icon="tab.icon"
|
||||
:menus="menus"
|
||||
:only-one="tabsView.length <= 1"
|
||||
:show-icon="showIcon"
|
||||
:style="{
|
||||
width: `${tabWidth}px`,
|
||||
left: `${(tabWidth - gap * 2) * i}px`,
|
||||
}"
|
||||
:tab="tab"
|
||||
:title="tab.title"
|
||||
@click="active = tab.key"
|
||||
@close="() => handleClose(tab.key)"
|
||||
@un-push-pin="() => handleUnPushPin(tab)"
|
||||
|
Reference in New Issue
Block a user