Files
FreeERP.Applet/miniprogram/pages/components/card-plugin/card-plugin.wxml
zhengw b1ecd88641 feat: 添加组件配置文件并优化页面结构
- 新增 components.d.json 文件,包含所有组件的属性配置
- 添加 card-item-plugin 组件及其相关文件(json、ts、wxml、wxss)
- 在 app.json 中添加新的生产流程管理页面路径
- 添加多个SVG图标文件用于菜单项
- 重构 popup-plugin 组件样式和关闭逻辑
- 更新 tab-bar-plugin 的激活状态逻辑
- 优化 search-popup 使用全局样式类
- 在首页添加菜单配置和页面跳转功能
- 调整组件样式细节和间距
2026-01-14 16:54:47 +08:00

19 lines
874 B
Plaintext

<view class="card_plugin {{className}}" style="border: 1rpx solid #ddd;margin-bottom: 12px;border-radius: 4px;{{customStyle}}" bind:tap="click">
<view class="header" style="border-bottom: 1rpx solid #ddd;padding: 8px 12px;font-weight: bold;{{headerStyle || ''}}">
<slot name="header" />
</view>
<view class="content" style="padding:8px 12px;{{contentStyle || ''}}">
<view id="contentSlot" style="height: {{showMoreBar ? showMore ? 'auto' : 'calc(3em * 1.57)' : 'auto'}};overflow: hidden;">
<slot name="content" />
</view>
<view wx:if="{{showMoreBar}}" class="show-more" catch:tap="showMoreTap">
<view>{{showMore ? '收起' : '显示更多' }}</view>
<t-icon name="{{showMore ? 'chevron-up' : 'chevron-down' }}" />
</view>
</view>
<view class="footer" style="{{footerStyle||''}}">
<slot name="footer" />
</view>
</view>