<template> <div class="cell-header"> <div class="cell-header_title">{{ title }}</div> <div> <slot></slot> </div> </div> </template> <script> export default { props: ['title'], }; </script> <style scoped> .cell-header { margin: 10px 20px; height: 30px; display: flex; justify-content: space-between; border-bottom: 2px solid #f7f7f7; } .cell-header_title { font-weight: bold; font-size: 15px; } .cell-header_title::before { content: ""; border-left: 5px solid #647092; margin-right: 10px; } .cell-header [class^="el-icon-"] { font-weight: bold; cursor: pointer; color: #95979b; } .cell-header [class^="el-icon-"]:hover { color: #000; } .cell-header >>> .el-icon-more { transform: rotate(90deg); } </style>