Skip to content

Commit f6ab6fb

Browse files
authored
fix(action-sheet): enable item color for grid type (#2231)
1 parent 24e9d32 commit f6ab6fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/action-sheet/template/grid.wxml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
wx:key="index"
99
bind:tap="onSelect"
1010
data-index="{{index}}"
11-
icon="{{item.icon}}"
11+
icon="{{ { name: item.icon, color: item.color } }}"
1212
text="{{item.label}}"
1313
image="{{item.image}}"
14+
style="--td-grid-item-text-color: {{item.color}}"
1415
>
1516
</t-grid-item>
1617
</t-grid>
@@ -27,9 +28,10 @@
2728
wx:key="index"
2829
data-index="{{index}}"
2930
bind:tap="onSelect"
30-
icon="{{item.icon}}"
31+
icon="{{ { name: item.icon, color: item.color } }}"
3132
text="{{item.label}}"
3233
image="{{item.image}}"
34+
style="--td-grid-item-text-color: {{item.color}}"
3335
>
3436
</t-grid-item>
3537
</t-grid>

0 commit comments

Comments
 (0)