fix: Error组件修改调用方式注释

This commit is contained in:
刘洪洪
2022-11-21 17:39:35 +08:00
parent c3ffd01363
commit 248075cd81

View File

@@ -57,9 +57,10 @@
目前有三种形式分别是defaulttooltipinfo 目前有三种形式分别是defaulttooltipinfo
默认即红框展示<chart-error :content="content" /> 默认即红框展示<chart-error :content="content" />
在标题之后显示需要鼠标移动到图标上显示弹窗<chart-error tooltip :content="content" /> 在标题之后显示需要鼠标移动到图标上显示弹窗<chart-error tooltip :content="content" />
文字提示<chart-error tooltip :content="content" /> 文字提示<chart-error info :content="content" />
--> -->
<!-- <!--
自定义宽度<chart-error width="300" :content="content" />
自定义弹窗宽度<chart-error tooltip width="300" :content="content" /> 自定义弹窗宽度<chart-error tooltip width="300" :content="content" />
注意info模式不支持宽度设置 注意info模式不支持宽度设置
--> -->
@@ -121,11 +122,8 @@ export default {
this.localPopoverWidth = this.width !== undefined this.localPopoverWidth = this.width !== undefined
} }
if (this.tooltip === undefined && this.info === undefined) { // 默认default模式
this.showDefault = true this.showDefault = this.tooltip === undefined && this.info === undefined
} else {
this.showDefault = false
}
if (this.width) { if (this.width) {
// 避免宽度出现负数的情况 // 避免宽度出现负数的情况
@@ -149,7 +147,3 @@ export default {
} }
} }
</script> </script>
<style scoped>
</style>