{{ $t('chart.chart_no_properties') }}
@@ -11,19 +11,19 @@
style="overflow:auto;border-right: 1px solid #e6e6e6;height: 100%;width: 100%;"
class="attr-style theme-border-class"
:component-name="view.type + '-style'"
- :obj="{view, param, chart, dimensionData, quotaData}"
+ :obj="{ view, param, chart, dimensionData, quotaData }"
/>
{{ $t('chart.shape_attr') }}
@@ -41,7 +41,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['color-selector']"
- @onColorChange="onColorChange($event,'color-selector')"
+ @onColorChange="onColorChange($event, 'color-selector')"
/>
@@ -82,7 +82,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['label-selector']"
- @onLabelChange="onLabelChange($event,'label-selector')"
+ @onLabelChange="onLabelChange($event, 'label-selector')"
/>
@@ -104,7 +104,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['tooltip-selector']"
- @onTooltipChange="onTooltipChange($event,'tooltip-selector')"
+ @onTooltipChange="onTooltipChange($event, 'tooltip-selector')"
/>
@@ -150,7 +150,7 @@
class="style-collapse"
>
@@ -160,7 +160,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['x-axis-selector']"
- @onChangeXAxisForm="onChangeXAxisForm($event,'x-axis-selector')"
+ @onChangeXAxisForm="onChangeXAxisForm($event, 'x-axis-selector')"
/>
@@ -182,7 +182,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['y-axis-selector']"
- @onChangeYAxisForm="onChangeYAxisForm($event,'y-axis-selector')"
+ @onChangeYAxisForm="onChangeYAxisForm($event, 'y-axis-selector')"
/>
@@ -204,7 +204,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['y-axis-ext-selector']"
- @onChangeYAxisForm="onChangeYAxisExtForm($event,'y-axis-ext-selector')"
+ @onChangeYAxisForm="onChangeYAxisExtForm($event, 'y-axis-ext-selector')"
/>
@@ -226,7 +226,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['split-selector']"
- @onChangeSplitForm="onChangeSplitForm($event,'split-selector')"
+ @onChangeSplitForm="onChangeSplitForm($event, 'split-selector')"
/>
@@ -248,7 +248,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['title-selector']"
- @onTextChange="onTextChange($event,'title-selector')"
+ @onTextChange="onTextChange($event, 'title-selector')"
/>
@@ -270,7 +270,7 @@
class="attr-selector"
:chart="chart"
:property-inner="propertyInnerAll['legend-selector']"
- @onLegendChange="onLegendChange($event,'legend-selector')"
+ @onLegendChange="onLegendChange($event, 'legend-selector')"
/>
@@ -312,7 +312,7 @@
{{ $t('chart.function_style') }}
@@ -321,7 +321,7 @@
class="style-collapse"
>
@@ -447,6 +447,29 @@ export default {
pluginShow() {
return this.view.isPlugin && !this.batchOptStatus
},
+ markSelectorShow() {
+ const hasViewFields = this.view?.viewFields?.length
+ if (hasViewFields) {
+ let hasx = false
+ let hasy = false
+ for (let index = 0; index < this.view.viewFields.length; index++) {
+ const element = this.view.viewFields[index]
+ if (element.busiType === 'locationXaxis') {
+ hasx = true
+ }
+ if (element.busiType === 'locationYaxis') {
+ hasy = true
+ }
+ if (hasx && hasy) {
+ break
+ }
+ }
+ if (hasx && hasy) {
+ return true
+ }
+ }
+ return false
+ },
...mapState([
'batchOptStatus'
])
@@ -561,7 +584,7 @@ export default {
float: left;
}
-.col + .col {
+.col+.col {
margin-left: 10px;
}