fix: 规范语法,解决console报错

This commit is contained in:
fit2cloud-chenyw 2022-04-02 15:01:33 +08:00
parent 3da82ddd20
commit fd0c7b5c99
3 changed files with 3 additions and 3 deletions

View File

@ -264,7 +264,7 @@ export default {
return this.canvasStyleData.panel.resultCount
},
innerPadding() {
return this.element.commonBackground.innerPadding || 0
return this.element.commonBackground && this.element.commonBackground.innerPadding || 0
},
...mapState([
'canvasStyleData',

View File

@ -142,7 +142,7 @@
</el-select>
</el-form-item>
<el-form-item v-show="chart.type" :label="$t('chart.space_split')" class="form-item">
<el-input-number v-model="sizeForm.spaceSplit" min="0" size="mini" @change="changeBarSizeCase" />
<el-input-number v-model="sizeForm.spaceSplit" :min="0" size="mini" @change="changeBarSizeCase" />
</el-form-item>
</el-form>

View File

@ -168,7 +168,7 @@
</el-select>
</el-form-item>
<el-form-item v-show="chart.type" :label="$t('chart.space_split')" class="form-item">
<el-input-number v-model="sizeForm.spaceSplit" min="0" size="mini" @change="changeBarSizeCase" />
<el-input-number v-model="sizeForm.spaceSplit" :min="0" size="mini" @change="changeBarSizeCase" />
</el-form-item>
</el-form>