Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Mar 27, 2024
1 parent bd640cc commit 6565c3f
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 74 deletions.
37 changes: 17 additions & 20 deletions src/components/ReFlowChart/src/Control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,24 @@ onMounted(() => {
@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',
color: item.disabled === false ? '' : '#00000040',
background: 'transparent'
}"
@click="onControl(item, key)"
>
<button
:ref="'controlButton' + key"
:disabled="item.disabled"
:style="{
cursor: item.disabled === false ? 'pointer' : 'not-allowed',
color: item.disabled === false ? '' : '#00000040',
background: 'transparent'
}"
@click="onControl(item, key)"
>
<span
:class="'iconfont ' + item.icon"
:style="{ fontSize: `${item.size}px` }"
/>
</button>
</el-tooltip>
<span
:class="'iconfont ' + item.icon"
:style="{ fontSize: `${item.size}px` }"
/>
</button>
</li>
</ul>
</div>
Expand Down
44 changes: 22 additions & 22 deletions src/views/able/pdf.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,28 @@ const onPrint = () => {
<el-checkbox v-model="showAllPages" @change="showAllPagesChange">
显示所有页面
</el-checkbox>
<el-tooltip
effect="dark"
:content="`翻转(当前角度${rotations[currentRotation]}度)`"
placement="top"
>
<IconifyIconOnline
icon="ic:baseline-rotate-90-degrees-ccw"
class="cursor-pointer outline-transparent"
@click="
currentRotation === 3
? (currentRotation = 0)
: (currentRotation += 1)
"
/>
</el-tooltip>
<el-tooltip effect="dark" content="打印" placement="top">
<IconifyIconOnline
icon="ri:printer-line"
class="cursor-pointer outline-transparent"
@click="onPrint"
/>
</el-tooltip>
<IconifyIconOnline
v-tippy="{
maxWidth: 'none',
content: `翻转(当前角度${rotations[currentRotation]}度)`
}"
icon="ic:baseline-rotate-90-degrees-ccw"
class="cursor-pointer outline-transparent"
@click="
currentRotation === 3
? (currentRotation = 0)
: (currentRotation += 1)
"
/>
<IconifyIconOnline
v-tippy="{
maxWidth: 'none',
content: '打印'
}"
icon="ri:printer-line"
class="cursor-pointer outline-transparent"
@click="onPrint"
/>
</div>
</div>
<el-scrollbar>
Expand Down
15 changes: 8 additions & 7 deletions src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions src/views/schema-form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 7 additions & 5 deletions src/views/table/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 7 additions & 5 deletions src/views/table/high.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 7 additions & 5 deletions src/views/table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 7 additions & 5 deletions src/views/table/virtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6565c3f

Please sign in to comment.