forked from github/dataease
Merge pull request #9145 from dataease/pr@dev-v2@fix_history-label
Pr@dev v2@fix history label
This commit is contained in:
commit
a073b58a5e
@ -1082,7 +1082,7 @@ onMounted(() => {
|
||||
.de-drag-right {
|
||||
right: 1px;
|
||||
top: 70px;
|
||||
width: 16px;
|
||||
width: 12px;
|
||||
height: calc(100% - 110px);
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,11 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { store } from '../../index'
|
||||
import { deepCopy } from '@/utils/utils'
|
||||
import { BASE_VIEW_CONFIG } from '@/views/chart/components/editor/util/chart'
|
||||
import {
|
||||
BASE_VIEW_CONFIG,
|
||||
DEFAULT_INDICATOR_NAME_STYLE,
|
||||
DEFAULT_INDICATOR_STYLE
|
||||
} from '@/views/chart/components/editor/util/chart'
|
||||
import {
|
||||
DEFAULT_CANVAS_STYLE_DATA_DARK,
|
||||
DEFAULT_CANVAS_STYLE_DATA_LIGHT,
|
||||
@ -508,6 +512,12 @@ export const dvMainStore = defineStore('dataVisualization', {
|
||||
if (this.curBatchOptComponents.length === 1) {
|
||||
this.changeProperties.customAttr = viewBaseInfo.customAttr
|
||||
this.changeProperties.customStyle = viewBaseInfo.customStyle
|
||||
// 补充历史指标卡缺失属性
|
||||
this.changeProperties.customAttr['indicator'] =
|
||||
this.changeProperties.customAttr.indicator || deepCopy(DEFAULT_INDICATOR_STYLE)
|
||||
this.changeProperties.customAttr['indicatorName'] =
|
||||
this.changeProperties.customAttr.indicatorName ||
|
||||
deepCopy(DEFAULT_INDICATOR_NAME_STYLE)
|
||||
}
|
||||
this.batchOptComponents[id] = {
|
||||
properties: chartViewInstance.properties,
|
||||
|
Loading…
Reference in New Issue
Block a user