mirror of
https://github.com/dataease/dataease.git
synced 2025-02-23 02:52:56 +08:00
refactor: 优化Tab标题背景显示项
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
Some checks are pending
Typos Check / Spell Check with Typos (push) Waiting to run
This commit is contained in:
parent
425b8c961e
commit
4f978eed09
@ -52,34 +52,35 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-form-item class="form-item no-margin-bottom" :class="'form-item-' + themes">
|
||||
<el-checkbox
|
||||
size="small"
|
||||
:effect="themes"
|
||||
v-model="state.commonBackground.backdropFilterEnable"
|
||||
@change="onBackgroundChange"
|
||||
>
|
||||
{{ $t('chart.backdrop_blur') }}
|
||||
</el-checkbox>
|
||||
</el-form-item>
|
||||
<div class="indented-container">
|
||||
<div class="indented-item">
|
||||
<el-form-item class="form-item" :class="'form-item-' + themes">
|
||||
<el-input-number
|
||||
style="width: 100%"
|
||||
:effect="themes"
|
||||
controls-position="right"
|
||||
size="middle"
|
||||
:min="0"
|
||||
:max="30"
|
||||
:disabled="!state.commonBackground.backdropFilterEnable"
|
||||
v-model="state.commonBackground.backdropFilter"
|
||||
@change="onBackgroundChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<template v-if="editPosition === 'canvas'">
|
||||
<el-form-item class="form-item no-margin-bottom" :class="'form-item-' + themes">
|
||||
<el-checkbox
|
||||
size="small"
|
||||
:effect="themes"
|
||||
v-model="state.commonBackground.backdropFilterEnable"
|
||||
@change="onBackgroundChange"
|
||||
>
|
||||
{{ $t('chart.backdrop_blur') }}
|
||||
</el-checkbox>
|
||||
</el-form-item>
|
||||
<div class="indented-container">
|
||||
<div class="indented-item">
|
||||
<el-form-item class="form-item" :class="'form-item-' + themes">
|
||||
<el-input-number
|
||||
style="width: 100%"
|
||||
:effect="themes"
|
||||
controls-position="right"
|
||||
size="middle"
|
||||
:min="0"
|
||||
:max="30"
|
||||
:disabled="!state.commonBackground.backdropFilterEnable"
|
||||
v-model="state.commonBackground.backdropFilter"
|
||||
@change="onBackgroundChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<el-form-item class="form-item no-margin-bottom" :class="'form-item-' + themes">
|
||||
<el-checkbox
|
||||
@ -268,6 +269,7 @@ const maxImageSize = 15000000
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
componentPosition?: string
|
||||
editPosition?: string
|
||||
themes?: EditorTheme
|
||||
commonBackgroundPop: any
|
||||
backgroundColorPickerWidth?: number
|
||||
@ -276,6 +278,7 @@ const props = withDefaults(
|
||||
{
|
||||
themes: 'dark',
|
||||
componentPosition: 'dashboard',
|
||||
editPosition: 'canvas',
|
||||
backgroundColorPickerWidth: 50,
|
||||
backgroundBorderSelectWidth: 108
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ const onTitleBackgroundChange = (params, paramsName) => {
|
||||
<el-tab-pane :label="t('visualization.active_title_background')" name="activeBackground">
|
||||
<background-overall-common
|
||||
:themes="themes"
|
||||
edit-position="tab"
|
||||
:common-background-pop="element.titleBackground.active"
|
||||
component-position="component"
|
||||
@onBackgroundChange="onTitleBackgroundChange($event, 'active')"
|
||||
@ -57,6 +58,7 @@ const onTitleBackgroundChange = (params, paramsName) => {
|
||||
<background-overall-common
|
||||
v-show="!element.titleBackground.multiply"
|
||||
:themes="themes"
|
||||
edit-position="tab"
|
||||
:common-background-pop="element.titleBackground.inActive"
|
||||
component-position="component"
|
||||
@onBackgroundChange="onTitleBackgroundChange($event, 'inActive')"
|
||||
|
Loading…
Reference in New Issue
Block a user