<template>
  <el-tooltip effect="dark" placement="top">
    <div slot="content" style="max-width: 300px; max-height: 250px; min-height: 16px; overflow-y: auto">{{ content }}</div>
    <span class="content-tooltip">{{ content }}</span>
  </el-tooltip>
</template>

<script>
  const padding = 15 // tag's padding

  export default {
    name: 'Tooltip',
    props: {
      content: {
        required: true,
        type: [String, Object]
      },

    },
    data() {
      return {}
    },
    methods: {}
  }
</script>

<style lang="less" scoped>
  .content-tooltip {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;

  }
</style>
