Skip to content
Merged
Show file tree
Hide file tree
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
24 changes: 12 additions & 12 deletions packages/common/component/toolbar-built-in/ToolbarBaseButton.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<tiny-button class="toolbar-button">
<span class="svg-wrap">
<div class="svg-wrap">
<span v-if="options?.showDots" class="dot"></span>
<tiny-button class="toolbar-button">
<svg-icon v-if="icon" :name="icon"></svg-icon>
<span v-if="options?.showDots" class="dots"></span>
</span>
<span class="save-title">{{ content }}</span>
<slot></slot>
</tiny-button>
<span class="save-title">{{ content }}</span>
<slot></slot>
</tiny-button>
</div>
</template>
<script>
import { Button } from '@opentiny/vue'
Expand Down Expand Up @@ -45,15 +45,15 @@ export default {

.svg-wrap {
position: relative;
.dots {

.dot {
position: absolute;
width: 6px;
height: 6px;
background: var(--ti-lowcode-toolbar-dot-color);
border-radius: 50%;
display: inline-block;
position: absolute;
top: -2px;
right: -2px;
top: -3px;
right: 2px;
z-index: 100;
}
}
Expand Down
13 changes: 7 additions & 6 deletions packages/plugins/schema/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export default {
justify-content: flex-end;
align-items: center;
.icon-wrap {
position: relative;
.tiny-button {
width: 40px;
padding: 0;
Expand All @@ -203,15 +204,15 @@ export default {
line-height: 24px;
}
.red {
width: 5px;
height: 5px;
border-radius: 3px;
background-color: #f00;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: var(--ti-lowcode-common-error-color);
display: block;
z-index: 100;
position: absolute;
top: 1px;
right: 1px;
top: -3px;
right: -4px;
}
}
& > span:not(:last-child) {
Expand Down
10 changes: 5 additions & 5 deletions packages/plugins/script/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ export default {
height: 24px;
line-height: 24px;
.dots {
width: 10px;
height: 10px;
background: var(--ti-lowcode-warning-color-1);
width: 6px;
height: 6px;
background: var(--ti-lowcode-common-error-color);
border-radius: 50%;
position: absolute;
top: 5px;
right: 40px;
top: 9px;
right: 34px;
}
}
.icon-wrap {
Expand Down