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

feat: Panel tab style #649

Merged
merged 3 commits into from
Aug 23, 2024
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
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