feat: 添加卡片组件并优化页面样式
- 新增card-plugin组件,包含完整的卡片结构,支持头部、内容、底部插槽 - 组件具有显示更多功能,可控制内容展开收起 - 集成t-icon组件用于显示展开收起图标 - 修复popup-plugin组件的wxml格式缩进问题 - 调整processEntry页面高度计算,从calc(100vh - 50px)改为100vh
This commit is contained in:
34
miniprogram/pages/components/card-plugin/card-plugin.wxss
Normal file
34
miniprogram/pages/components/card-plugin/card-plugin.wxss
Normal file
@@ -0,0 +1,34 @@
|
||||
/* pages/components/card_plugin/card_plugin.wxss */
|
||||
.header,
|
||||
.footer {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.header:empty,
|
||||
.content:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.footer > view {
|
||||
border-top: 1rpx solid #ddd;
|
||||
padding: 8px 0 0 12px;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer > view:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.show-more {
|
||||
color: #999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 14px;
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.show-more:active {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
Reference in New Issue
Block a user