修改样式
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
|
||||
<div class="table-container table-main">
|
||||
<el-table :data="tableData" stripe border :header-cell-style="{ textAlign: 'center' } " :cell-style="{ textAlign: 'center' }" height="310px" style="width: 100%" >
|
||||
<el-table :data="tableData" stripe border :header-cell-style="{ textAlign: 'center' } " :cell-style="{ textAlign: 'center' }" height="335px" style="width: 100%" >
|
||||
<el-table-column prop="id" label="序号" width="70" />
|
||||
<el-table-column prop="updateTime" label="数据时间" />
|
||||
<el-table-column prop="L1" label="L1(V)" />
|
||||
@@ -170,7 +170,7 @@ const tableData = ref([
|
||||
<style scoped>
|
||||
|
||||
.table-container {
|
||||
max-height: 320px; /* 根据需要调整高度 */
|
||||
|
||||
overflow-y: auto; /* 允许垂直滚动 */
|
||||
overflow-x: hidden; /* 隐藏水平滚动条 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user