<template>
  <el-popover
      placement="top-start"
      trigger="hover"
      :content="value"
      popper-class="cus-popover"
  >
    <template #reference>
      <slot/>
    </template>
  </el-popover>
</template>

<script lang="ts">
import {
  defineComponent,
  computed,
  onMounted,
  ref,
  reactive,
  watch,
  getCurrentInstance,
  nextTick,
  ComponentInternalInstance, toRefs
} from 'vue'
  import {useStore} from 'vuex'
  import {useRouter} from 'vue-router'

  export default defineComponent({
    name: 'CusPopover',
    props: {
      value: {
        required: true
      },
    },
    setup(props, { emit }) {
      const store = useStore();
      const router = useRouter();
      const that = (getCurrentInstance() as ComponentInternalInstance).appContext.config.globalProperties
    },
  })
</script>

<style scoped lang="scss">
  .cus-table-main {
    width: 100%;
    height: 100%;
    $cus-page-height: 50px;
    :deep(.cus-table) {
      width: 100%;
      //height: calc(100% - #{$cus-page-height} - 20px);
      .el-checkbox__inner {
        width: 24px;
        height: 24px;
        &:after {
          width: 6px;
          height: 14px;
          left: 8px;
        }
      }
      .el-table__header-wrapper, .el-table__fixed-right, .el-table__fixed {
        .cell {
          font-weight: 700;
          font-size: 16px;
          color: #333333;
          height: 26px;
        }
        th {
          background-color: #fafafa;
        }
      }
      .el-table__body-wrapper, .el-table__fixed-body-wrapper {
        .cell {
          height: 26px;
          font-size: 16px;
          font-family: 微软雅黑;
          font-weight: 400;
          color: #797979;
        }
      }
    }
    .cus-table-page {
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      height: $cus-page-height;
      margin: 0;
      padding: 0;
    }
  }

</style>
