小程序 引入weapp框架 实现自制表格

纯属娱乐



  
    
    
    
    
  
  
    
    
      
        ID
      
      
        设备
      
      
        时间
      
      
        提交状态
      
    
    
    
      
        
          {{item.id}}
        
        
          {{item.equipmentNickName}}
        
        
          {{item.statusOneTime}}
        
        
          {{item.status}}
        
      
    
  
/**index.wxss**/
page {
background-color: #d3d3d3;
}

.table_parent {
	display:flex;
	justify-content:center;
	align-items:center;
  background: white;
  font-size:30rpx;
  text-align:center;
  box-sizing:border-box;
  color:#595a5e;
  padding-top: 20rpx;
  padding-bottom: 20rpx;
}
.table {
  border: 1px solid #dadada;
  border-right: 0;
  border-bottom: 0;
  width: 98%;
}

.tr {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.th, .td {
  padding: 10px;
  border-bottom: 1px solid #dadada;
  border-right: 1px solid #dadada;
  text-align: center;
  width: 100%;
}

.th {
  font-weight: 400;
  background-color: #dadada;
}

 

{
  "navigationBarTitleText": "我的报修单",
  "usingComponents": {
    "i-cell-group": "../../dist/cell-group/index",
    "i-cell": "../../dist/cell/index",
    "i-tabs": "../../dist/tabs/index",
    "i-tab": "../../dist/tab/index",
    "i-row": "../../dist/row/index",
    "i-col": "../../dist/col/index"
  }
}

运行结果:

小程序 引入weapp框架 实现自制表格_第1张图片

你可能感兴趣的:(小程序)