Skip to content

Commit

Permalink
feat: Panel tab style (#649)
Browse files Browse the repository at this point in the history
* Panel tab style

* feat:Panel tab style
  • Loading branch information
ianxinnew authored Aug 23, 2024
1 parent 52d2432 commit 4b0bf19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions packages/layout/src/DesignSettings.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div id="tiny-right-panel">
<tiny-tabs v-model="layoutState.settings.render" tab-style="button-card">
<tiny-tabs v-model="layoutState.settings.render">
<tiny-tab-item v-for="(setting, index) in settings" :key="index" :title="setting.title" :name="setting.name">
<component :is="setting.entry"></component>
<div v-show="activating" class="active"></div>
Expand Down Expand Up @@ -46,7 +46,7 @@ export default {
transition: 0.3s linear;
position: relative;
border-left: 1px solid var(--ti-lowcode-plugin-setting-panel-border-left-color);
padding-top: 20px;
padding-top: 12px;
background-color: var(--ti-lowcode-setting-panel-bg-color);
.tiny-tabs {
Expand All @@ -55,14 +55,21 @@ export default {
:deep(.tiny-tabs) {
display: flex;
flex-direction: column;
// 居中显示
.tiny-tabs__nav-scroll {
text-align: center;
margin-left: 12px;
.tiny-tabs__nav {
display: inline-flex;
justify-content: center;
float: none;
}
.tiny-tabs__active-bar {
width: 40px !important;
height: 2px;
background-color: var(--ti-lowcode-setting-panel-tabs-item-title-active-color);
}
.tiny-tabs__item__title {
margin-left: 6px;
}
}
.tiny-tabs__header {
padding-bottom: 12px;
Expand All @@ -74,6 +81,7 @@ export default {
margin: 0;
}
.tiny-tabs__item {
margin-right: 26px;
color: var(--ti-lowcode-setting-panel-tabs-item-title-color);
&:hover {
color: var(--ti-lowcode-setting-panel-tabs-item-title-hover-color);
Expand Down
4 changes: 2 additions & 2 deletions packages/toolbars/breadcrumb/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
TinyButton: Button
},
setup() {
const CONTENTS = {
const PLUGINS_ID = {
PAGEID: 'engine.plugins.appmanage',
BLOCKID: 'engine.plugins.blockmanage'
}
Expand Down Expand Up @@ -67,7 +67,7 @@ export default {
})
const open = () => {
plugins.render = breadcrumbData.value[0] === CONSTANTS.PAGETEXT ? CONTENTS.PAGEID : CONTENTS.BLOCKID
plugins.render = breadcrumbData.value[0] === CONSTANTS.PAGETEXT ? PLUGINS_ID.PAGEID : PLUGINS_ID.BLOCKID
}
return {
Expand Down

0 comments on commit 4b0bf19

Please sign in to comment.