Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(toolbar-save): 修复保存时红色 icon 相对位置丢失的 bug #250

Merged
1 commit merged into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions packages/toolbars/save/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:content="isLoading ? '保存中' : '保存'"
>
<template #reference>
<span :class="[isLoading ? 'saving' : 'icon']" @click="openApi">
<span :id="`${isLoading ? 'saving' : ''}`" class="icon" @click="openApi">
gene9831 marked this conversation as resolved.
Show resolved Hide resolved
<span v-show="!isSaved()" class="dots"></span>
<svg-icon :name="icon"></svg-icon>
</span>
Expand Down Expand Up @@ -134,14 +134,12 @@ export default {
right: 3px;
z-index: 100;
}
.saving {
width: 32px;
height: 32px;
display: inline-block;
#saving {
cursor: not-allowed;
color: var(--ti-lowcode-disabled-color);
font-size: 20px;
margin-bottom: -2px;
:deep(svg) {
color: var(--ti-lowcode-disabled-color);
}
}

.dialog-box {
Expand Down
Loading