This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cyber-narrator-cn-ui/src/components/charts/ChartError.vue

30 lines
732 B
Vue
Raw Normal View History

<template>
<el-popover
v-if="isError"
placement="top-start"
trigger="hover"
popper-class="chart-error-popper"
:close-delay=10
offset="10"
:width="-1"
> <!-- :width="-1" 是为了让min-width及max-width生效让width失效-->
<div >{{errorInfo}}</div>
<template #reference>
<span class="chart-info-corner chart-info-corner--error">
<i class="cn-chart-icon-warning fa "></i>
<span class="chart-info-corner-inner"></span>
</span>
</template>
</el-popover>
</template>
<script>
export default {
name: 'ChartError',
props: {
isError: Boolean,
2021-08-26 17:14:51 +08:00
errorInfo: String
}
}
</script>