vue-mobile-table
Version:
移动端表格、列表组件,支持虚拟滚动
100 lines (92 loc) • 2.01 kB
text/less
.vue-mobile-table {
height: 100%;
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
.cell-border {
border-bottom: 1px solid #e8eaec;
}
div {
box-sizing: border-box ;
}
// 表头样式
.vue-mobile-table-header {
display: flex;
background-color: #f4f4f4;
.vue-mobile-table-header-item {
display: flex;
}
// 头部固定列样式
.header-fix-column {
}
// 头部活动列样式
.header-active-column {
flex: 1;
display: flex;
overflow: hidden;
width: 100%;
}
.vue-mobile-table-header-wrap {
display: inline-flex;
min-width: 100%;
flex-shrink: 0;
flex-wrap: nowrap;
padding: 5px 0;
}
}
// 表内容
.table-content-wrap {
flex: 1;
overflow: hidden;
.vue-mobile-table-content {
display: flex;
.mobile-table-cell {
display: flex;
width: 100%;
align-items: center;
}
.fixed-column-content {
}
.active-column-content {
flex: 1;
width: 100%;
overflow: hidden;
.active-column-content-wrap {
min-width: 100%;
width: fit-content;
}
}
.vue-mobile-content-row {
min-width: 100%;
width: fit-content;
.vue-mobile-content-row-wrap {
min-width: 100%;
display: inline-flex;
flex-shrink: 0;
flex-wrap: nowrap;
}
}
}
}
// 上拉刷新样式
.pulldown-wrapper {
position: absolute;
width: 100%;
padding: 20px;
z-index: -1;
box-sizing: border-box;
transform: translateY(-100%) translateZ(0);
text-align: center ;
color: #999;
}
.pulldown-scroller {
position: relative;
height: 100%;
}
.pullup-tips {
padding: 20px;
text-align: center;
color: #999;
}
}