添加组件及页面

This commit is contained in:
zhengw
2026-01-21 17:05:30 +08:00
parent a89e69c381
commit 7ff1a911dd
54 changed files with 1078 additions and 1009 deletions

View File

@@ -26,7 +26,7 @@
<slot name="tbody" />
</block>
<block wx:else>
<view wx:if="{{data.length == 0}}" class="tr" style="height: 32px" />
<view wx:if="{{data.length == 0}}" class="tr" style="height: 64rpx" />
<block wx:for="{{data}}" wx:key="index" wx:for-item="record">
<view class="tr">
<block wx:for="{{columns}}" wx:key="index">
@@ -37,5 +37,4 @@
</block>
</view>
</view>
<view wx:if="{{!useTbodySlot && data.length == 0}}" class="empty-data">暂无数据</view>
<view wx:if="{{!useTbodySlot && data.length == 0}}" class="empty-data">暂无数据</view>

View File

@@ -1,7 +1,7 @@
.table-box {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
border-left: 1rpx solid #ddd;
border-right: 1rpx solid #ddd;
border-bottom: 1rpx solid #ddd;
overflow: auto;
}
@@ -38,14 +38,14 @@
.th,
.td {
display: table-cell;
border-bottom: 1px solid #ddd;
padding: 4px;
border-right: 1px solid #ddd;
border-bottom: 1rpx solid #ddd;
padding: 8rpx;
border-right: 1rpx solid #ddd;
vertical-align: middle;
}
.tr .th {
border-top: 1px solid #ddd;
border-top: 1rpx solid #ddd;
}
.tr .th:last-child,
@@ -65,7 +65,7 @@
.empty-data {
text-align: center;
margin-top: -33px;
line-height: 30px;
margin-top: -66rpx;
line-height: 60rpx;
color: #999;
}