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

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

  export default {
    name: 'scrollPane',
    props: {
      content: {
        required: true,
        type: String
      },

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

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