Skip to content

Commit

Permalink
fix: UI样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gene9831 committed Mar 8, 2024
1 parent 48fd25e commit 875cca5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
6 changes: 2 additions & 4 deletions packages/common/component/MonacoEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ export default {
align-items: center;
.buttons {
display: flex;
gap: 8px;
color: var(--ti-lowcode-component-svg-button-color);
cursor: pointer;
:hover {
Expand All @@ -171,8 +173,4 @@ export default {
border: 1px solid var(--ti-lowcode-state-management-monaco-editor-border-color);
border-radius: 6px;
}
.public-icon {
font-size: 18px;
margin-left: 10px;
}
</style>
13 changes: 13 additions & 0 deletions packages/design-core/assets/internationalization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/plugins/data/src/CreateStore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ export default {
}
.create-content-description {
color: var(--ti-lowcode-description-color);
font-size: 12px;
color: var(--ti-lowcode-common-primary-color);
margin-left: 8px;
cursor: pointer;
}
Expand Down
13 changes: 11 additions & 2 deletions packages/plugins/data/src/CreateVariable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ export default {
}
.create-content-description {
color: var(--ti-lowcode-description-color);
font-size: 12px;
color: var(--ti-lowcode-common-primary-color);
margin-left: 8px;
cursor: pointer;
}
Expand All @@ -472,11 +473,19 @@ export default {
.tiny-popover.tiny-popper.state-data-example-tips {
background-color: var(--ti-lowcode-data-example-bg-color);
color: var(--ti-lowcode-data-example-color);
.popper__arrow {
&[x-placement^='bottom'] .popper__arrow {
&,
&::after {
border-bottom-color: var(--ti-lowcode-data-example-bg-color);
}
}
&[x-placement^='top'] .popper__arrow {
&,
&::after {
border-top-color: var(--ti-lowcode-data-example-bg-color);
}
}
}
</style>
5 changes: 2 additions & 3 deletions packages/plugins/data/src/EditorI18nTool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<template #reference>
<tiny-tooltip content="插入国际化词条" placement="top">
<icon-language class="button-icon" @click="openPopover"></icon-language>
<svg-icon name="internationalization" @click="openPopover"></svg-icon>
</tiny-tooltip>
</template>
</tiny-popover>
Expand All @@ -38,7 +38,7 @@
<script>
import { reactive, ref, computed } from 'vue'
import { Button, Popover, Tooltip } from '@opentiny/vue'
import { iconLanguage, iconClose } from '@opentiny/vue-icon'
import { iconClose } from '@opentiny/vue-icon'
import { BindI18n } from '@opentiny/tiny-engine-common'
import { useTranslate } from '@opentiny/tiny-engine-controller'
Expand All @@ -47,7 +47,6 @@ export default {
TinyButton: Button,
TinyTooltip: Tooltip,
TinyPopover: Popover,
IconLanguage: iconLanguage(),
IconClose: iconClose(),
BindI18n
},
Expand Down

0 comments on commit 875cca5

Please sign in to comment.