chore: update

This commit is contained in:
xiaoxian521 2024-03-27 09:32:09 +08:00
parent bd640cc07b
commit 6565c3fb17
8 changed files with 82 additions and 74 deletions

View File

@ -104,14 +104,12 @@ onMounted(() => {
class="dark:text-bg_color"
@mouseenter.prevent="onEnter(key)"
@mouseleave.prevent="focusIndex = -1"
>
<el-tooltip
:content="item.text"
:visible="focusIndex === key"
placement="right"
>
<button
:ref="'controlButton' + key"
v-tippy="{
content: item.text
}"
:disabled="item.disabled"
:style="{
cursor: item.disabled === false ? 'pointer' : 'not-allowed',
@ -125,7 +123,6 @@ onMounted(() => {
:style="{ fontSize: `${item.size}px` }"
/>
</button>
</el-tooltip>
</li>
</ul>
</div>

View File

@ -78,12 +78,11 @@ const onPrint = () => {
<el-checkbox v-model="showAllPages" @change="showAllPagesChange">
显示所有页面
</el-checkbox>
<el-tooltip
effect="dark"
:content="`翻转(当前角度${rotations[currentRotation]}度)`"
placement="top"
>
<IconifyIconOnline
v-tippy="{
maxWidth: 'none',
content: `翻转(当前角度${rotations[currentRotation]}度)`
}"
icon="ic:baseline-rotate-90-degrees-ccw"
class="cursor-pointer outline-transparent"
@click="
@ -92,14 +91,15 @@ const onPrint = () => {
: (currentRotation += 1)
"
/>
</el-tooltip>
<el-tooltip effect="dark" content="打印" placement="top">
<IconifyIconOnline
v-tippy="{
maxWidth: 'none',
content: '打印'
}"
icon="ri:printer-line"
class="cursor-pointer outline-transparent"
@click="onPrint"
/>
</el-tooltip>
</div>
</div>
<el-scrollbar>

View File

@ -245,13 +245,14 @@ watch(loginDay, value => {
<option value="30">30</option>
</select>
{{ t("login.pureRemember") }}
<el-tooltip
effect="dark"
placement="top"
:content="t('login.pureRememberInfo')"
>
<IconifyIconOffline :icon="Info" class="ml-1" />
</el-tooltip>
<IconifyIconOffline
v-tippy="{
content: t('login.pureRememberInfo'),
placement: 'top'
}"
:icon="Info"
class="ml-1"
/>
</span>
</el-checkbox>
<el-button

View File

@ -42,12 +42,14 @@ function tabClick({ index }) {
<template v-for="(item, index) of list" :key="item.key">
<el-tab-pane :lazy="true">
<template #label>
<el-tooltip
:content="`(第 ${index + 1} 个示例)${item.content}`"
placement="top-end"
<span
v-tippy="{
maxWidth: 'none',
content: `(第 ${index + 1} 个示例)${item.content}`
}"
>
<span>{{ item.title }}</span>
</el-tooltip>
{{ item.title }}
</span>
</template>
<component :is="item.component" v-if="selected == index" />
</el-tab-pane>

View File

@ -49,12 +49,14 @@ function tabClick({ index }) {
<template v-for="(item, index) of list" :key="item.key">
<el-tab-pane :lazy="true">
<template #label>
<el-tooltip
:content="`(第 ${index + 1} 个示例)${item.content}`"
placement="top-end"
<span
v-tippy="{
maxWidth: 'none',
content: `(第 ${index + 1} 个示例)${item.content}`
}"
>
<span>{{ item.title }}</span>
</el-tooltip>
{{ item.title }}
</span>
</template>
<component :is="item.component" v-if="selected == index" />
</el-tab-pane>

View File

@ -49,12 +49,14 @@ function tabClick({ index }) {
<template v-for="(item, index) of list" :key="item.key">
<el-tab-pane :lazy="true">
<template #label>
<el-tooltip
:content="`(第 ${index + 1} 个示例)${item.content}`"
placement="top-end"
<span
v-tippy="{
maxWidth: 'none',
content: `(第 ${index + 1} 个示例)${item.content}`
}"
>
<span>{{ item.title }}</span>
</el-tooltip>
{{ item.title }}
</span>
</template>
<component :is="item.component" v-if="selected == index" />
</el-tab-pane>

View File

@ -57,12 +57,14 @@ function tabClick({ index }) {
<template v-for="(item, index) of list" :key="item.key">
<el-tab-pane :lazy="true">
<template #label>
<el-tooltip
:content="`(第 ${index + 1} 个示例)${item.content}`"
placement="top-end"
<span
v-tippy="{
maxWidth: 'none',
content: `(第 ${index + 1} 个示例)${item.content}`
}"
>
<span>{{ item.title }}</span>
</el-tooltip>
{{ item.title }}
</span>
</template>
<component :is="item.component" v-if="selected == index" />
</el-tab-pane>

View File

@ -41,12 +41,14 @@ function tabClick({ index }) {
<template v-for="(item, index) of list" :key="item.key">
<el-tab-pane :lazy="true">
<template #label>
<el-tooltip
:content="`(第 ${index + 1} 个示例)${item.content}`"
placement="top-end"
<span
v-tippy="{
maxWidth: 'none',
content: `(第 ${index + 1} 个示例)${item.content}`
}"
>
<span>{{ item.title }}</span>
</el-tooltip>
{{ item.title }}
</span>
</template>
<component :is="item.component" v-if="selected == index" />
</el-tab-pane>