当前位置:   article > 正文

element-ui 使用el-table 时限制长度超出隐藏解决方案_elementui表头超出宽度隐藏

elementui表头超出宽度隐藏

<el-table-column label="事件描述" align="center" prop="remark">

        <template slot-scope="scope">

          <el-popover

            placement="top-start"

            title="事件描述"

            width="300"

            trigger="hover"

          >

            <div>{{ scope.row.remark }}</div>

            <span slot="reference">{{

              scope.row.remark != null?  :

              scope.row.remark.substr(0, 20) + "..." + ''

            }}</span>

          </el-popover>

        </template>

      </el-table-column>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/91780
推荐阅读