@xtdev/xt-miniprogram-ui 1.2.35 → 1.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
列表中的单个展示项
|
|
5
5
|
|
|
6
6
|
###效果图
|
|
7
|
-

|
|
8
8
|
|
|
9
9
|
### 引入
|
|
10
10
|
在app.json或页面配置json中引入
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
| title | 卡片标题 | `String` |
|
|
56
56
|
| subTitle | 卡片副标题 | `String` |
|
|
57
57
|
| subTitleColor | 卡片副标题颜色 | `String` |
|
|
58
|
+
| titleTags | 标题标签 | `String[]` |
|
|
58
59
|
| dataList | 卡片内容 | `datalistItem[]` |
|
|
59
60
|
|
|
60
61
|
#### datalistItem
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
<slot wx:if="{{headerSlot}}" name="header"></slot>
|
|
3
3
|
<view wx:else class="xt-card-cell-head">
|
|
4
4
|
<view class="flex-between align-center">
|
|
5
|
-
<view class="xt-card-cell-title">
|
|
5
|
+
<view class="xt-card-cell-title">
|
|
6
|
+
{{item.title}}
|
|
7
|
+
<image wx:for="{{item.titleTags}}" wx:for-item="tagItem" wx:key="index" src="{{tagItem}}" wx:for-index="index" mode="heightFix" class="title_tag" />
|
|
8
|
+
</view>
|
|
6
9
|
<view wx:if="{{item.subTitle}}" class="xt-card-cell-sub-title" style="color: {{item.subTitleColor}};">
|
|
7
10
|
{{item.subTitle}}
|
|
8
11
|
</view>
|