forked from github/dataease
Merge pull request #11516 from dataease/pr@dev-v2@feat_border-re
feat(仪表板、数据大屏): 支持传统边框
This commit is contained in:
commit
5c771e2cf2
@ -202,6 +202,18 @@ const height = ref(0)
|
|||||||
const isShowArea = ref(false)
|
const isShowArea = ref(false)
|
||||||
const svgFilterAttrs = ['width', 'height', 'top', 'left', 'rotate', 'backgroundColor']
|
const svgFilterAttrs = ['width', 'height', 'top', 'left', 'rotate', 'backgroundColor']
|
||||||
const commonFilterAttrs = ['width', 'height', 'top', 'left', 'rotate']
|
const commonFilterAttrs = ['width', 'height', 'top', 'left', 'rotate']
|
||||||
|
const commonFilterAttrsFilterBorder = [
|
||||||
|
'width',
|
||||||
|
'height',
|
||||||
|
'top',
|
||||||
|
'left',
|
||||||
|
'rotate',
|
||||||
|
'borderActive',
|
||||||
|
'borderWidth',
|
||||||
|
'borderRadius',
|
||||||
|
'borderStyle',
|
||||||
|
'borderColor'
|
||||||
|
]
|
||||||
const userViewEnlargeRef = ref(null)
|
const userViewEnlargeRef = ref(null)
|
||||||
const customDatasetParamsRef = ref(null)
|
const customDatasetParamsRef = ref(null)
|
||||||
const linkJumpRef = ref(null)
|
const linkJumpRef = ref(null)
|
||||||
@ -515,7 +527,7 @@ const handleContextMenu = e => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getComponentStyle = style => {
|
const getComponentStyle = style => {
|
||||||
return getStyle(style, commonFilterAttrs)
|
return getStyle(style, style.borderActive ? commonFilterAttrs : commonFilterAttrsFilterBorder)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getSvgComponentStyle = style => {
|
const getSvgComponentStyle = style => {
|
||||||
|
@ -97,7 +97,7 @@ const colorPickerWidth = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const borderSettingShow = computed(() => {
|
const borderSettingShow = computed(() => {
|
||||||
return !!element.value.style['borderActive']
|
return !!element.value.style['borderStyle']
|
||||||
})
|
})
|
||||||
|
|
||||||
// 暂时关闭
|
// 暂时关闭
|
||||||
@ -186,14 +186,14 @@ const stopEvent = e => {
|
|||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
<collapse-switch-item
|
<collapse-switch-item
|
||||||
v-if="element && borderSettingShow"
|
v-if="element && borderSettingShow"
|
||||||
v-model="element.value.style.borderActive"
|
v-model="element.style.borderActive"
|
||||||
:themes="themes"
|
:themes="themes"
|
||||||
title="边框"
|
title="边框"
|
||||||
name="borderSetting"
|
name="borderSetting"
|
||||||
class="common-style-area"
|
class="common-style-area"
|
||||||
>
|
>
|
||||||
<common-border-setting
|
<common-border-setting
|
||||||
:element="element"
|
:style-info="element.style"
|
||||||
:themes="themes"
|
:themes="themes"
|
||||||
@onStyleAttrChange="onStyleAttrChange"
|
@onStyleAttrChange="onStyleAttrChange"
|
||||||
></common-border-setting>
|
></common-border-setting>
|
||||||
|
@ -13,14 +13,14 @@ const { canvasStyleData } = storeToRefs(dvMainStore)
|
|||||||
const props = withDefaults(
|
const props = withDefaults(
|
||||||
defineProps<{
|
defineProps<{
|
||||||
themes?: EditorTheme
|
themes?: EditorTheme
|
||||||
element: any
|
styleInfo: any
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
themes: 'dark'
|
themes: 'dark'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
const emits = defineEmits(['onStyleAttrChange'])
|
const emits = defineEmits(['onStyleAttrChange'])
|
||||||
const { themes, element } = toRefs(props)
|
const { themes, styleInfo } = toRefs(props)
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
fontSize: [],
|
fontSize: [],
|
||||||
isSetting: false,
|
isSetting: false,
|
||||||
@ -38,16 +38,16 @@ const borderStyleList = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
const styleInit = () => {
|
const styleInit = () => {
|
||||||
if (element.value) {
|
if (styleInfo.value) {
|
||||||
Object.keys(styleMounted.value).forEach(key => {
|
Object.keys(styleMounted.value).forEach(key => {
|
||||||
styleMounted.value[key] = Math.round(
|
styleMounted.value[key] = Math.round(
|
||||||
(element.value.style[key] * 100) / canvasStyleData.value.scale
|
(styleInfo.value[key] * 100) / canvasStyleData.value.scale
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const styleForm = computed<any>(() => element.value.style)
|
const styleForm = computed<any>(() => styleInfo.value)
|
||||||
|
|
||||||
const changeStyle = params => {
|
const changeStyle = params => {
|
||||||
snapshotStore.recordSnapshotCache()
|
snapshotStore.recordSnapshotCache()
|
||||||
@ -55,18 +55,16 @@ const changeStyle = params => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const changeStylePre = key => {
|
const changeStylePre = key => {
|
||||||
changeStyle({ key: key, value: element.value.style[key] })
|
changeStyle({ key: key, value: styleInfo.value[key] })
|
||||||
}
|
}
|
||||||
|
|
||||||
const sizeChange = key => {
|
const sizeChange = key => {
|
||||||
element.value.style[key] = Math.round(
|
styleInfo.value[key] = (styleMounted.value[key] * canvasStyleData.value.scale) / 100
|
||||||
(styleMounted.value[key] * canvasStyleData.value.scale) / 100
|
changeStyle({ key: key, value: styleInfo.value[key] })
|
||||||
)
|
|
||||||
changeStyle({ key: key, value: element.value.style[key] })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => element.value,
|
() => styleInfo.value,
|
||||||
() => {
|
() => {
|
||||||
styleInit()
|
styleInit()
|
||||||
},
|
},
|
||||||
@ -80,52 +78,85 @@ watch(
|
|||||||
<template>
|
<template>
|
||||||
<el-row class="custom-row">
|
<el-row class="custom-row">
|
||||||
<el-form label-position="top">
|
<el-form label-position="top">
|
||||||
<el-form-item label="颜色" class="form-item" :class="'form-item-' + themes">
|
<el-row style="display: flex">
|
||||||
<el-color-picker
|
<el-form-item
|
||||||
title="颜色"
|
style="width: 70px"
|
||||||
v-model="styleForm.borderColor"
|
label="颜色"
|
||||||
class="color-picker-style"
|
class="form-item"
|
||||||
:triggerWidth="50"
|
:class="'form-item-' + themes"
|
||||||
is-custom
|
|
||||||
:predefine="state.predefineColors"
|
|
||||||
@change="changeStylePre('borderColor')"
|
|
||||||
>
|
>
|
||||||
</el-color-picker>
|
<el-color-picker
|
||||||
</el-form-item>
|
title="颜色"
|
||||||
<el-form-item label="圆角" class="form-item" :class="'form-item-' + themes">
|
v-model="styleForm.borderColor"
|
||||||
<el-input-number
|
class="color-picker-style"
|
||||||
title="圆角"
|
:triggerWidth="65"
|
||||||
v-model="styleForm.borderRadio"
|
is-custom
|
||||||
class="color-picker-style"
|
:predefine="state.predefineColors"
|
||||||
@change="sizeChange('borderWidth')"
|
@change="changeStylePre('borderColor')"
|
||||||
|
>
|
||||||
|
</el-color-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
style="width: 150px"
|
||||||
|
label="圆角"
|
||||||
|
class="form-item"
|
||||||
|
:class="'form-item-' + themes"
|
||||||
>
|
>
|
||||||
</el-input-number>
|
<el-input-number
|
||||||
</el-form-item>
|
title="圆角"
|
||||||
<el-form-item label="样式" class="form-item" :class="'form-item-' + themes">
|
:effect="themes"
|
||||||
<el-select
|
:min="0"
|
||||||
:effect="themes"
|
:max="200"
|
||||||
v-model="styleForm.borderStyle"
|
controls-position="right"
|
||||||
size="small"
|
v-model="styleMounted.borderRadius"
|
||||||
@change="changeStylePre('borderStyle')"
|
class="color-picker-style"
|
||||||
|
@change="sizeChange('borderRadius')"
|
||||||
|
>
|
||||||
|
</el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="display: flex">
|
||||||
|
<el-form-item
|
||||||
|
style="width: 70px"
|
||||||
|
label="样式"
|
||||||
|
class="form-item"
|
||||||
|
:class="'form-item-' + themes"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-select
|
||||||
class="custom-style-option"
|
:effect="themes"
|
||||||
v-for="option in borderStyleList"
|
v-model="styleForm.borderStyle"
|
||||||
:key="option.value"
|
size="small"
|
||||||
:label="option.name"
|
style="width: 65px"
|
||||||
:value="option.value"
|
@change="changeStylePre('borderStyle')"
|
||||||
/>
|
>
|
||||||
</el-select>
|
<el-option
|
||||||
</el-form-item>
|
class="custom-style-option"
|
||||||
<el-form-item label="线宽" class="form-item" :class="'form-item-' + themes">
|
v-for="option in borderStyleList"
|
||||||
<el-input-number
|
:key="option.value"
|
||||||
title="线宽"
|
:label="option.name"
|
||||||
v-model="styleForm.borderWidth"
|
:value="option.value"
|
||||||
class="color-picker-style"
|
/>
|
||||||
@change="sizeChange('borderWidth')"
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
style="width: 150px"
|
||||||
|
label="线宽"
|
||||||
|
class="form-item"
|
||||||
|
:class="'form-item-' + themes"
|
||||||
>
|
>
|
||||||
</el-input-number>
|
<el-input-number
|
||||||
</el-form-item>
|
title="线宽"
|
||||||
|
:min="0"
|
||||||
|
:max="50"
|
||||||
|
:effect="themes"
|
||||||
|
controls-position="right"
|
||||||
|
v-model="styleMounted.borderWidth"
|
||||||
|
class="color-picker-style"
|
||||||
|
@change="sizeChange('borderWidth')"
|
||||||
|
>
|
||||||
|
</el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
|
@ -350,7 +350,6 @@ const state = reactive({
|
|||||||
|
|
||||||
const styleColorKeyArray = [
|
const styleColorKeyArray = [
|
||||||
{ value: 'color', label: '颜色', width: 90, icon: 'dv-style-color' },
|
{ value: 'color', label: '颜色', width: 90, icon: 'dv-style-color' },
|
||||||
{ value: 'borderColor', label: '边框颜色', width: 90, icon: 'dv-style-borderColor' },
|
|
||||||
{
|
{
|
||||||
value: 'headFontColor',
|
value: 'headFontColor',
|
||||||
label: '头部字体颜色',
|
label: '头部字体颜色',
|
||||||
@ -388,34 +387,6 @@ const fontSizeList = computed(() => {
|
|||||||
return arr
|
return arr
|
||||||
})
|
})
|
||||||
|
|
||||||
const borderWidthList = computed(() => {
|
|
||||||
const arr = []
|
|
||||||
for (let i = 0; i <= 20; i = i + 1) {
|
|
||||||
arr.push({
|
|
||||||
name: i + '',
|
|
||||||
value: i
|
|
||||||
})
|
|
||||||
}
|
|
||||||
return arr
|
|
||||||
})
|
|
||||||
|
|
||||||
const borderRadiusList = computed(() => {
|
|
||||||
const arr = []
|
|
||||||
for (let i = 0; i <= 50; i = i + 1) {
|
|
||||||
arr.push({
|
|
||||||
name: i + '',
|
|
||||||
value: i
|
|
||||||
})
|
|
||||||
}
|
|
||||||
return arr
|
|
||||||
})
|
|
||||||
|
|
||||||
const borderStyleList = [
|
|
||||||
{ name: '实线', value: 'solid' },
|
|
||||||
{ name: '虚线', value: 'dashed' },
|
|
||||||
{ name: '点线', value: 'dotted' }
|
|
||||||
]
|
|
||||||
|
|
||||||
const styleOptionKeyArrayPre = [
|
const styleOptionKeyArrayPre = [
|
||||||
{
|
{
|
||||||
value: 'fontFamily',
|
value: 'fontFamily',
|
||||||
@ -466,27 +437,6 @@ const styleOptionKeyArray = [
|
|||||||
customOption: opacitySizeList,
|
customOption: opacitySizeList,
|
||||||
width: '90px',
|
width: '90px',
|
||||||
icon: 'dv-style-opacity'
|
icon: 'dv-style-opacity'
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'borderWidth',
|
|
||||||
label: '边框宽度',
|
|
||||||
customOption: borderWidthList.value,
|
|
||||||
width: '90px',
|
|
||||||
icon: 'dv-style-borderSize'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'borderRadius',
|
|
||||||
label: '圆角',
|
|
||||||
customOption: borderRadiusList.value,
|
|
||||||
width: '90px',
|
|
||||||
icon: 'dv-style-borderRadius'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 'borderStyle',
|
|
||||||
label: '边框样式',
|
|
||||||
customOption: borderStyleList,
|
|
||||||
width: '90px',
|
|
||||||
icon: 'dv-style-borderStyle'
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
declare type EditorProperty =
|
declare type EditorProperty =
|
||||||
| 'background-overall-component'
|
| 'background-overall-component'
|
||||||
|
| 'border-style'
|
||||||
| 'basic-style-selector'
|
| 'basic-style-selector'
|
||||||
| 'dual-basic-style-selector'
|
| 'dual-basic-style-selector'
|
||||||
| 'label-selector'
|
| 'label-selector'
|
||||||
|
@ -27,6 +27,7 @@ import QuadrantSelector from '@/views/chart/components/editor/editor-style/compo
|
|||||||
import FlowMapLineSelector from '@/views/chart/components/editor/editor-style/components/FlowMapLineSelector.vue'
|
import FlowMapLineSelector from '@/views/chart/components/editor/editor-style/components/FlowMapLineSelector.vue'
|
||||||
import FlowMapPointSelector from '@/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue'
|
import FlowMapPointSelector from '@/views/chart/components/editor/editor-style/components/FlowMapPointSelector.vue'
|
||||||
import CommonEvent from '@/custom-component/common/CommonEvent.vue'
|
import CommonEvent from '@/custom-component/common/CommonEvent.vue'
|
||||||
|
import CommonBorderSetting from '@/custom-component/common/CommonBorderSetting.vue'
|
||||||
|
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { dvInfo, batchOptStatus } = storeToRefs(dvMainStore)
|
const { dvInfo, batchOptStatus } = storeToRefs(dvMainStore)
|
||||||
@ -43,6 +44,10 @@ const props = defineProps({
|
|||||||
type: Object,
|
type: Object,
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
|
commonBorderPop: {
|
||||||
|
type: Object,
|
||||||
|
required: false
|
||||||
|
},
|
||||||
eventInfo: {
|
eventInfo: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: false
|
required: false
|
||||||
@ -90,8 +95,15 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const { chart, themes, properties, propertyInnerAll, commonBackgroundPop, selectorSpec } =
|
const {
|
||||||
toRefs(props)
|
chart,
|
||||||
|
themes,
|
||||||
|
properties,
|
||||||
|
propertyInnerAll,
|
||||||
|
commonBackgroundPop,
|
||||||
|
commonBorderPop,
|
||||||
|
selectorSpec
|
||||||
|
} = toRefs(props)
|
||||||
const emit = defineEmits([
|
const emit = defineEmits([
|
||||||
'onColorChange',
|
'onColorChange',
|
||||||
'onMiscChange',
|
'onMiscChange',
|
||||||
@ -104,6 +116,7 @@ const emit = defineEmits([
|
|||||||
'onLegendChange',
|
'onLegendChange',
|
||||||
'onBasicStyleChange',
|
'onBasicStyleChange',
|
||||||
'onBackgroundChange',
|
'onBackgroundChange',
|
||||||
|
'onStyleAttrChange',
|
||||||
'onTableHeaderChange',
|
'onTableHeaderChange',
|
||||||
'onTableCellChange',
|
'onTableCellChange',
|
||||||
'onTableTotalChange',
|
'onTableTotalChange',
|
||||||
@ -192,6 +205,10 @@ const onBackgroundChange = (val, prop) => {
|
|||||||
state.initReady && emit('onBackgroundChange', val, prop)
|
state.initReady && emit('onBackgroundChange', val, prop)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const onStyleAttrChange = ({ key, value }) => {
|
||||||
|
state.initReady && emit('onStyleAttrChange', { custom: 'style', property: key, value: value })
|
||||||
|
}
|
||||||
|
|
||||||
const onTableHeaderChange = (val, prop) => {
|
const onTableHeaderChange = (val, prop) => {
|
||||||
emit('onTableHeaderChange', val, prop)
|
emit('onTableHeaderChange', val, prop)
|
||||||
}
|
}
|
||||||
@ -318,6 +335,20 @@ watch(
|
|||||||
component-position="component"
|
component-position="component"
|
||||||
/>
|
/>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
|
<collapse-switch-item
|
||||||
|
v-if="showProperties('border-style') && commonBorderPop"
|
||||||
|
v-model="commonBorderPop.borderActive"
|
||||||
|
:themes="themes"
|
||||||
|
title="边框"
|
||||||
|
name="borderSetting"
|
||||||
|
class="common-style-area"
|
||||||
|
>
|
||||||
|
<common-border-setting
|
||||||
|
:style-info="commonBorderPop"
|
||||||
|
:themes="themes"
|
||||||
|
@onStyleAttrChange="onStyleAttrChange"
|
||||||
|
></common-border-setting>
|
||||||
|
</collapse-switch-item>
|
||||||
<el-collapse-item :effect="themes" name="events" title="事件" v-if="eventsShow">
|
<el-collapse-item :effect="themes" name="events" title="事件" v-if="eventsShow">
|
||||||
<common-event :themes="themes" :events-info="eventInfo"></common-event>
|
<common-event :themes="themes" :events-info="eventInfo"></common-event>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
|
@ -1053,6 +1053,10 @@ const onBackgroundChange = val => {
|
|||||||
curComponent.value.commonBackground = val
|
curComponent.value.commonBackground = val
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const onStyleAttrChange = val => {
|
||||||
|
curComponent.value.style[val.property] = val.value
|
||||||
|
}
|
||||||
|
|
||||||
const onAssistLineChange = val => {
|
const onAssistLineChange = val => {
|
||||||
view.value.senior.assistLineCfg = val.data
|
view.value.senior.assistLineCfg = val.data
|
||||||
if (val.requestData) {
|
if (val.requestData) {
|
||||||
@ -2776,6 +2780,7 @@ const deleteChartFieldItem = id => {
|
|||||||
:property-inner-all="chartViewInstance.propertyInner"
|
:property-inner-all="chartViewInstance.propertyInner"
|
||||||
:selector-spec="chartViewInstance.selectorSpec"
|
:selector-spec="chartViewInstance.selectorSpec"
|
||||||
:common-background-pop="curComponent?.commonBackground"
|
:common-background-pop="curComponent?.commonBackground"
|
||||||
|
:common-border-pop="curComponent?.style"
|
||||||
:event-info="curComponent?.events"
|
:event-info="curComponent?.events"
|
||||||
:chart="view"
|
:chart="view"
|
||||||
:themes="themes"
|
:themes="themes"
|
||||||
@ -2794,6 +2799,7 @@ const deleteChartFieldItem = id => {
|
|||||||
@onIndicatorNameChange="onIndicatorNameChange"
|
@onIndicatorNameChange="onIndicatorNameChange"
|
||||||
@onLegendChange="onLegendChange"
|
@onLegendChange="onLegendChange"
|
||||||
@onBackgroundChange="onBackgroundChange"
|
@onBackgroundChange="onBackgroundChange"
|
||||||
|
@onStyleAttrChange="onStyleAttrChange"
|
||||||
@onBasicStyleChange="onBasicStyleChange"
|
@onBasicStyleChange="onBasicStyleChange"
|
||||||
@onTableHeaderChange="onTableHeaderChange"
|
@onTableHeaderChange="onTableHeaderChange"
|
||||||
@onTableCellChange="onTableCellChange"
|
@onTableCellChange="onTableCellChange"
|
||||||
|
@ -49,6 +49,7 @@ export class BidirectionalHorizontalBar extends G2PlotChartView<
|
|||||||
axis: AxisType[] = ['xAxis', 'yAxis', 'yAxisExt', 'filter', 'drill', 'extLabel', 'extTooltip']
|
axis: AxisType[] = ['xAxis', 'yAxis', 'yAxisExt', 'filter', 'drill', 'extLabel', 'extTooltip']
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'x-axis-selector',
|
'x-axis-selector',
|
||||||
'dual-y-axis-selector',
|
'dual-y-axis-selector',
|
||||||
@ -62,6 +63,7 @@ export class BidirectionalHorizontalBar extends G2PlotChartView<
|
|||||||
]
|
]
|
||||||
propertyInner = {
|
propertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'gradient', 'layout'],
|
'basic-style-selector': ['colors', 'alpha', 'gradient', 'layout'],
|
||||||
'x-axis-selector': ['position', 'axisLabel', 'axisLine', 'splitLine'],
|
'x-axis-selector': ['position', 'axisLabel', 'axisLine', 'splitLine'],
|
||||||
'y-axis-selector': [
|
'y-axis-selector': [
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export const BAR_EDITOR_PROPERTY: EditorProperty[] = [
|
export const BAR_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
@ -14,6 +15,7 @@ export const BAR_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
]
|
]
|
||||||
export const BAR_RANGE_EDITOR_PROPERTY: EditorProperty[] = [
|
export const BAR_RANGE_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
@ -28,6 +30,7 @@ export const BAR_RANGE_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
|
|
||||||
export const BAR_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const BAR_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'gradient', 'radiusColumnBar'],
|
'basic-style-selector': ['colors', 'alpha', 'gradient', 'radiusColumnBar'],
|
||||||
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
||||||
'tooltip-selector': ['fontSize', 'color', 'tooltipFormatter', 'show'],
|
'tooltip-selector': ['fontSize', 'color', 'tooltipFormatter', 'show'],
|
||||||
|
@ -34,6 +34,7 @@ export class ProgressBar extends G2PlotChartView<BarOptions, G2Progress> {
|
|||||||
}
|
}
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
@ -47,6 +48,7 @@ export class ProgressBar extends G2PlotChartView<BarOptions, G2Progress> {
|
|||||||
...BAR_EDITOR_PROPERTY_INNER,
|
...BAR_EDITOR_PROPERTY_INNER,
|
||||||
'legend-selector': null,
|
'legend-selector': null,
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'gradient'],
|
'basic-style-selector': ['colors', 'alpha', 'gradient'],
|
||||||
'label-selector': ['hPosition', 'color', 'fontSize'],
|
'label-selector': ['hPosition', 'color', 'fontSize'],
|
||||||
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'tooltipFormatter', 'show'],
|
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'tooltipFormatter', 'show'],
|
||||||
|
@ -11,6 +11,7 @@ import { isEmpty } from 'lodash-es'
|
|||||||
export class Waterfall extends G2PlotChartView<WaterfallOptions, G2Waterfall> {
|
export class Waterfall extends G2PlotChartView<WaterfallOptions, G2Waterfall> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
@ -21,6 +22,7 @@ export class Waterfall extends G2PlotChartView<WaterfallOptions, G2Waterfall> {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'gradient'],
|
'basic-style-selector': ['colors', 'alpha', 'gradient'],
|
||||||
'label-selector': ['fontSize', 'color', 'vPosition', 'labelFormatter'],
|
'label-selector': ['fontSize', 'color', 'vPosition', 'labelFormatter'],
|
||||||
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter', 'show'],
|
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'seriesTooltipFormatter', 'show'],
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export const LINE_EDITOR_PROPERTY: EditorProperty[] = [
|
export const LINE_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'x-axis-selector',
|
'x-axis-selector',
|
||||||
'y-axis-selector',
|
'y-axis-selector',
|
||||||
@ -14,6 +15,7 @@ export const LINE_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
]
|
]
|
||||||
export const LINE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const LINE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'label-selector': ['fontSize', 'color'],
|
'label-selector': ['fontSize', 'color'],
|
||||||
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'show'],
|
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'show'],
|
||||||
'basic-style-selector': [
|
'basic-style-selector': [
|
||||||
|
@ -17,6 +17,7 @@ const DEFAULT_DATA = []
|
|||||||
export class StockLine extends G2PlotChartView<MixOptions, Mix> {
|
export class StockLine extends G2PlotChartView<MixOptions, Mix> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'x-axis-selector',
|
'x-axis-selector',
|
||||||
'y-axis-selector',
|
'y-axis-selector',
|
||||||
|
@ -16,6 +16,7 @@ const DEFAULT_LIQUID_DATA = []
|
|||||||
export class Liquid extends G2PlotChartView<LiquidOptions, G2Liquid> {
|
export class Liquid extends G2PlotChartView<LiquidOptions, G2Liquid> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'misc-selector',
|
'misc-selector',
|
||||||
@ -24,6 +25,7 @@ export class Liquid extends G2PlotChartView<LiquidOptions, G2Liquid> {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha'],
|
'basic-style-selector': ['colors', 'alpha'],
|
||||||
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
||||||
'misc-selector': ['liquidShape', 'liquidSize', 'liquidMaxType', 'liquidMaxField'],
|
'misc-selector': ['liquidShape', 'liquidSize', 'liquidMaxType', 'liquidMaxField'],
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export const MAP_EDITOR_PROPERTY: EditorProperty[] = [
|
export const MAP_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
@ -12,6 +13,7 @@ export const MAP_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
|
|
||||||
export const MAP_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const MAP_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'areaBorderColor', 'zoom'],
|
'basic-style-selector': ['colors', 'alpha', 'areaBorderColor', 'zoom'],
|
||||||
'title-selector': [
|
'title-selector': [
|
||||||
'title',
|
'title',
|
||||||
|
@ -21,6 +21,7 @@ const { t } = useI18n()
|
|||||||
export class FlowMap extends L7ChartView<Scene, L7Config> {
|
export class FlowMap extends L7ChartView<Scene, L7Config> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'flow-map-line-selector',
|
'flow-map-line-selector',
|
||||||
|
@ -21,6 +21,7 @@ const { t } = useI18n()
|
|||||||
export class HeatMap extends L7ChartView<Scene, L7Config> {
|
export class HeatMap extends L7ChartView<Scene, L7Config> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'title-selector'
|
'title-selector'
|
||||||
]
|
]
|
||||||
|
@ -22,6 +22,7 @@ const { t } = useI18n()
|
|||||||
export class SymbolicMap extends L7ChartView<Scene, L7Config> {
|
export class SymbolicMap extends L7ChartView<Scene, L7Config> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
|
@ -2,6 +2,7 @@ import { DEFAULT_BASIC_STYLE } from '@/views/chart/components/editor/util/chart'
|
|||||||
|
|
||||||
export const CHART_MIX_EDITOR_PROPERTY: EditorProperty[] = [
|
export const CHART_MIX_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'dual-basic-style-selector',
|
'dual-basic-style-selector',
|
||||||
'x-axis-selector',
|
'x-axis-selector',
|
||||||
'dual-y-axis-selector',
|
'dual-y-axis-selector',
|
||||||
@ -16,6 +17,7 @@ export const CHART_MIX_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
]
|
]
|
||||||
export const CHART_MIX_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const CHART_MIX_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'label-selector': ['fontSize', 'color'],
|
'label-selector': ['fontSize', 'color'],
|
||||||
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'show'],
|
'tooltip-selector': ['fontSize', 'color', 'backgroundColor', 'show'],
|
||||||
'dual-basic-style-selector': [
|
'dual-basic-style-selector': [
|
||||||
|
@ -14,6 +14,7 @@ const { t } = useI18n()
|
|||||||
export class Funnel extends G2PlotChartView<FunnelOptions, G2Funnel> {
|
export class Funnel extends G2PlotChartView<FunnelOptions, G2Funnel> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
@ -24,6 +25,7 @@ export class Funnel extends G2PlotChartView<FunnelOptions, G2Funnel> {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'seriesColor'],
|
'basic-style-selector': ['colors', 'alpha', 'seriesColor'],
|
||||||
'label-selector': ['fontSize', 'color', 'hPosition', 'showQuota', 'conversionTag'],
|
'label-selector': ['fontSize', 'color', 'hPosition', 'showQuota', 'conversionTag'],
|
||||||
'tooltip-selector': ['color', 'fontSize', 'backgroundColor', 'seriesTooltipFormatter', 'show'],
|
'tooltip-selector': ['color', 'fontSize', 'backgroundColor', 'seriesTooltipFormatter', 'show'],
|
||||||
|
@ -21,6 +21,7 @@ const DEFAULT_DATA = []
|
|||||||
export class Gauge extends G2PlotChartView<GaugeOptions, G2Gauge> {
|
export class Gauge extends G2PlotChartView<GaugeOptions, G2Gauge> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'misc-selector',
|
'misc-selector',
|
||||||
@ -29,6 +30,7 @@ export class Gauge extends G2PlotChartView<GaugeOptions, G2Gauge> {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'gradient', 'gaugeAxisLine', 'gaugePercentLabel'],
|
'basic-style-selector': ['colors', 'alpha', 'gradient', 'gaugeAxisLine', 'gaugePercentLabel'],
|
||||||
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
||||||
'title-selector': [
|
'title-selector': [
|
||||||
|
@ -8,6 +8,7 @@ const { t } = useI18n()
|
|||||||
export class IndicatorChartView extends AbstractChartView {
|
export class IndicatorChartView extends AbstractChartView {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'indicator-value-selector',
|
'indicator-value-selector',
|
||||||
'indicator-name-selector',
|
'indicator-name-selector',
|
||||||
@ -16,6 +17,7 @@ export class IndicatorChartView extends AbstractChartView {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'title-selector': [
|
'title-selector': [
|
||||||
'title',
|
'title',
|
||||||
'fontSize',
|
'fontSize',
|
||||||
|
@ -16,6 +16,7 @@ const { t } = useI18n()
|
|||||||
export class Quadrant extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
export class Quadrant extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'x-axis-selector',
|
'x-axis-selector',
|
||||||
'y-axis-selector',
|
'y-axis-selector',
|
||||||
|
@ -13,6 +13,7 @@ const { t } = useI18n()
|
|||||||
export class Radar extends G2PlotChartView<RadarOptions, G2Radar> {
|
export class Radar extends G2PlotChartView<RadarOptions, G2Radar> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
|
@ -6,9 +6,10 @@ const { t } = useI18n()
|
|||||||
* 富文本图表
|
* 富文本图表
|
||||||
*/
|
*/
|
||||||
export class RichTextChartView extends AbstractChartView {
|
export class RichTextChartView extends AbstractChartView {
|
||||||
properties: EditorProperty[] = ['background-overall-component', 'threshold']
|
properties: EditorProperty[] = ['background-overall-component', 'border-style', 'threshold']
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
threshold: ['tableThreshold']
|
threshold: ['tableThreshold']
|
||||||
}
|
}
|
||||||
axis: AxisType[] = ['xAxis', 'yAxis', 'filter']
|
axis: AxisType[] = ['xAxis', 'yAxis', 'filter']
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export const SANKEY_EDITOR_PROPERTY: EditorProperty[] = [
|
export const SANKEY_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'label-selector',
|
'label-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
@ -10,6 +11,7 @@ export const SANKEY_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
|
|
||||||
export const SANKEY_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const SANKEY_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'gradient'],
|
'basic-style-selector': ['colors', 'alpha', 'gradient'],
|
||||||
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
'label-selector': ['fontSize', 'color', 'labelFormatter'],
|
||||||
'tooltip-selector': ['fontSize', 'color', 'tooltipFormatter'],
|
'tooltip-selector': ['fontSize', 'color', 'tooltipFormatter'],
|
||||||
|
@ -16,6 +16,7 @@ const { t } = useI18n()
|
|||||||
export class Scatter extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
export class Scatter extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'x-axis-selector',
|
'x-axis-selector',
|
||||||
'y-axis-selector',
|
'y-axis-selector',
|
||||||
|
@ -16,6 +16,7 @@ const { t } = useI18n()
|
|||||||
export class Treemap extends G2PlotChartView<TreemapOptions, G2Treemap> {
|
export class Treemap extends G2PlotChartView<TreemapOptions, G2Treemap> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'legend-selector',
|
'legend-selector',
|
||||||
@ -26,6 +27,7 @@ export class Treemap extends G2PlotChartView<TreemapOptions, G2Treemap> {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha', 'seriesColor'],
|
'basic-style-selector': ['colors', 'alpha', 'seriesColor'],
|
||||||
'label-selector': ['fontSize', 'color', 'showDimension', 'showQuota', 'showProportion'],
|
'label-selector': ['fontSize', 'color', 'showDimension', 'showQuota', 'showProportion'],
|
||||||
'legend-selector': ['icon', 'orient', 'fontSize', 'color', 'hPosition', 'vPosition'],
|
'legend-selector': ['icon', 'orient', 'fontSize', 'color', 'hPosition', 'vPosition'],
|
||||||
|
@ -19,6 +19,7 @@ export class WordCloud extends G2PlotChartView<WordCloudOptions, G2WordCloud> {
|
|||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'tooltip-selector',
|
'tooltip-selector',
|
||||||
'misc-selector',
|
'misc-selector',
|
||||||
@ -27,6 +28,7 @@ export class WordCloud extends G2PlotChartView<WordCloudOptions, G2WordCloud> {
|
|||||||
]
|
]
|
||||||
propertyInner: EditorPropertyInner = {
|
propertyInner: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'basic-style-selector': ['colors', 'alpha'],
|
'basic-style-selector': ['colors', 'alpha'],
|
||||||
'title-selector': [
|
'title-selector': [
|
||||||
'title',
|
'title',
|
||||||
|
@ -4,6 +4,7 @@ const { t } = useI18n()
|
|||||||
|
|
||||||
export const PIE_EDITOR_PROPERTY: EditorProperty[] = [
|
export const PIE_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'title-selector',
|
'title-selector',
|
||||||
'legend-selector',
|
'legend-selector',
|
||||||
@ -14,6 +15,7 @@ export const PIE_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
]
|
]
|
||||||
export const PIE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const PIE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
|
'border-style': ['all'],
|
||||||
'label-selector': [
|
'label-selector': [
|
||||||
'fontSize',
|
'fontSize',
|
||||||
'color',
|
'color',
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
export const TABLE_EDITOR_PROPERTY: EditorProperty[] = [
|
export const TABLE_EDITOR_PROPERTY: EditorProperty[] = [
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
|
'border-style',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'table-header-selector',
|
'table-header-selector',
|
||||||
'table-cell-selector',
|
'table-cell-selector',
|
||||||
@ -12,6 +13,7 @@ export const TABLE_EDITOR_PROPERTY: EditorProperty[] = [
|
|||||||
'linkage'
|
'linkage'
|
||||||
]
|
]
|
||||||
export const TABLE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
export const TABLE_EDITOR_PROPERTY_INNER: EditorPropertyInner = {
|
||||||
|
'border-style': ['all'],
|
||||||
'background-overall-component': ['all'],
|
'background-overall-component': ['all'],
|
||||||
'basic-style-selector': ['tableColumnMode', 'tableBorderColor', 'tableScrollBarColor', 'alpha'],
|
'basic-style-selector': ['tableColumnMode', 'tableBorderColor', 'tableScrollBarColor', 'alpha'],
|
||||||
'table-header-selector': [
|
'table-header-selector': [
|
||||||
|
@ -14,6 +14,7 @@ const { t } = useI18n()
|
|||||||
*/
|
*/
|
||||||
export class TablePivot extends S2ChartView<PivotSheet> {
|
export class TablePivot extends S2ChartView<PivotSheet> {
|
||||||
properties: EditorProperty[] = [
|
properties: EditorProperty[] = [
|
||||||
|
'border-style',
|
||||||
'background-overall-component',
|
'background-overall-component',
|
||||||
'basic-style-selector',
|
'basic-style-selector',
|
||||||
'table-header-selector',
|
'table-header-selector',
|
||||||
|
Loading…
Reference in New Issue
Block a user