<template>
  <el-divider direction="vertical"></el-divider>
  <el-popover :width="500" placement="bottom-end" title="错误信息" trigger="click">
    <template #reference>
      <el-badge :is-dot="cuoWuXinXi.length > 0" type="danger">
        <el-button>错误信息</el-button>
      </el-badge>
    </template>
    <template #default>
      <el-button v-show="cuoWuXinXi.length > 0" @click="cuoWuXinXi = '' ">清空</el-button>
      <el-divider v-show="cuoWuXinXi.length > 0" style="margin:5px 0"></el-divider>
      <span v-html="cuoWuXinXi"></span>
    </template>
  </el-popover>
</template>

<script>
import {cuoWuXinXi} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";

export default {
  name: "CuoWuXinXi",
  setup() {
    return {
      cuoWuXinXi
    }
  }
}
</script>

<style scoped>

</style>
