forked from github/dataease
Merge pull request #10010 from dataease/pr@dev-v2@chart-editor-style-padding
style(仪表板): 图表配置项与滚动条间距优化
This commit is contained in:
commit
9c46f1da26
@ -69,7 +69,7 @@ const switchValue = computed({
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-right: 8px;
|
padding-right: 10px;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
:deep(.ed-switch.is-checked .ed-switch__core > .ed-switch__action) {
|
:deep(.ed-switch.is-checked .ed-switch__core > .ed-switch__action) {
|
||||||
left: calc(100% - 12px);
|
left: calc(100% - 12px);
|
||||||
|
@ -142,7 +142,6 @@ onMounted(() => {
|
|||||||
:label="t('chart.split_line')"
|
:label="t('chart.split_line')"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:class="'form-item-' + themes"
|
:class="'form-item-' + themes"
|
||||||
style="padding-right: 4px"
|
|
||||||
>
|
>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
v-model="state.quadrantForm.lineStyle.stroke"
|
v-model="state.quadrantForm.lineStyle.stroke"
|
||||||
@ -189,12 +188,7 @@ onMounted(() => {
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<el-form-item
|
<el-form-item class="form-item" label="X 轴恒线" :class="'form-item-' + themes">
|
||||||
class="form-item"
|
|
||||||
label="X 轴恒线"
|
|
||||||
:class="'form-item-' + themes"
|
|
||||||
style="padding-left: 4px"
|
|
||||||
>
|
|
||||||
<el-input-number
|
<el-input-number
|
||||||
controls-position="right"
|
controls-position="right"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@ -225,7 +219,7 @@ onMounted(() => {
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<el-tabs v-model="tabActive" class="quadrant-tab-header" :class="{ dark: themes === 'dark' }">
|
<el-tabs v-model="tabActive" class="tab-header" :class="{ dark: themes === 'dark' }">
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
:name="index + 1"
|
:name="index + 1"
|
||||||
v-for="(l, index) in state.quadrantForm.labels"
|
v-for="(l, index) in state.quadrantForm.labels"
|
||||||
@ -239,7 +233,6 @@ onMounted(() => {
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:class="'form-item-' + themes"
|
:class="'form-item-' + themes"
|
||||||
style="padding-right: 4px"
|
|
||||||
:label="t('chart.backgroundColor')"
|
:label="t('chart.backgroundColor')"
|
||||||
>
|
>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
@ -290,7 +283,6 @@ onMounted(() => {
|
|||||||
<el-form-item
|
<el-form-item
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:class="'form-item-' + themes"
|
:class="'form-item-' + themes"
|
||||||
style="padding-right: 4px"
|
|
||||||
:label="t('chart.chart_style')"
|
:label="t('chart.chart_style')"
|
||||||
>
|
>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
@ -384,48 +376,6 @@ onMounted(() => {
|
|||||||
border-color: rgba(235, 235, 235, 0.15);
|
border-color: rgba(235, 235, 235, 0.15);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.quadrant-tab-header {
|
|
||||||
--ed-tabs-header-height: 34px;
|
|
||||||
--custom-tab-color: #646a73;
|
|
||||||
|
|
||||||
:deep(.ed-tabs__nav-wrap::after) {
|
|
||||||
background-color: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.dark {
|
|
||||||
--custom-tab-color: #a6a6a6;
|
|
||||||
}
|
|
||||||
|
|
||||||
height: 100%;
|
|
||||||
:deep(.ed-tabs__header) {
|
|
||||||
border-top: solid 1px @side-outline-border-color;
|
|
||||||
}
|
|
||||||
:deep(.ed-tabs__item) {
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 0 12px !important;
|
|
||||||
margin-right: 0 !important;
|
|
||||||
color: var(--custom-tab-color);
|
|
||||||
}
|
|
||||||
:deep(.is-active) {
|
|
||||||
font-weight: 500;
|
|
||||||
color: var(--ed-color-primary, #3370ff);
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.ed-tabs__nav-scroll) {
|
|
||||||
padding-left: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.ed-tabs__header) {
|
|
||||||
margin: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.ed-tabs__content) {
|
|
||||||
height: calc(100% - 33px);
|
|
||||||
overflow-y: auto;
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.padding-tab {
|
.padding-tab {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -3166,7 +3166,7 @@ span {
|
|||||||
display: flex;
|
display: flex;
|
||||||
transition: 0.5s;
|
transition: 0.5s;
|
||||||
.padding-lr {
|
.padding-lr {
|
||||||
padding: 0 8px;
|
padding: 0 10px;
|
||||||
|
|
||||||
&.no-top-border {
|
&.no-top-border {
|
||||||
border-top: none !important;
|
border-top: none !important;
|
||||||
@ -3217,7 +3217,7 @@ span {
|
|||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ed-collapse-item__content) {
|
:deep(.ed-collapse-item__content) {
|
||||||
padding: 16px 8px 0;
|
padding: 16px 10px 0;
|
||||||
border: none;
|
border: none;
|
||||||
:deep(.ed-checkbox) {
|
:deep(.ed-checkbox) {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
Loading…
Reference in New Issue
Block a user