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
2021-08-26 17:14:51 +08:00

30 lines
732 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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,
errorInfo: String
}
}
</script>