summaryrefslogtreecommitdiff
path: root/src/views/charts/ChartError.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/charts/ChartError.vue')
-rw-r--r--src/views/charts/ChartError.vue29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/views/charts/ChartError.vue b/src/views/charts/ChartError.vue
new file mode 100644
index 00000000..147726d2
--- /dev/null
+++ b/src/views/charts/ChartError.vue
@@ -0,0 +1,29 @@
+<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>