fix: 修改组件参数命名,避免class关键字报错

This commit is contained in:
刘洪洪
2023-05-15 10:46:12 +08:00
parent eeb03c5550
commit 3ba67d4826
2 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div v-if="showDefault" class="error-component" :style="style" :class="class">
<div v-if="showDefault" class="error-component" :style="style" :class="myClass">
<div class="error-block" :style="{'max-width': localMaxWidth, 'width': localWidth}">
<svg class="icon error-icon-default" aria-hidden="true">
<use xlink:href="#cn-icon-baocuo"></use>
@@ -115,7 +115,8 @@ export default {
showSmall: false, // 显示错误的类型true为图表模块内显示报错false为标题后显示报错
localWidth: '',
localMaxWidth: '',
localPopoverWidth: ''
localPopoverWidth: '',
myClass: this.class
}
},
mounted () {