标签部分:
<el-tabs v-model="activeName" type="card" @tab-click="handleClick" style="height:100%"> <el-tab-pane label="固机" name="gj" > <HyTable ref="hyTable2" :hyQuery="hyQuery2" v-loading="listLoading2" has-c :options="tableOptions2"> <el-table-column prop="createTime" :formatter="hypf.tableDateFormat" label="创建时间" width="120" /> <el-table-column prop="userName" label="创建用户" width="120" /> <el-table-column prop="ipaddress" label="异常IP" width="120" /> <el-table-column prop="moduleName" label="异常功能" width="120" /> <el-table-column prop="json" label="异常描述" min-width="200" show-overflow-tooltip></el-table-column> </HyTable> </el-tab-pane> <el-tab-pane label="流机" name="lj" > <div style="height: 100%">流机</div> </el-tab-pane> <el-tab-pane label="劳务" name="lw" > <div style="height: 100%">劳务</div> </el-tab-pane> <el-tab-pane label="其他" name="qt" > <div style="height: 100%">其他</div> </el-tab-pane> <el-tab-pane label="库场计划" name="ty" > <div style="height: 100%">库场计划</div> </el-tab-pane> <el-tab-pane label="舱单计划" name="tc" > <div style="height: 100%">舱单计划</div> </el-tab-pane> </el-tabs>
样式部分:
<style scoped> >>>.el-tabs__header { margin: 0 0 1px; } >>>.el-tabs__content { background-color: #fff; height: inherit; } </style>