Skip to content

Commit a9ab49f

Browse files
committed
feat(List): 新增 l-link-icon-class 外部样式类
l-link-icon-class 覆盖右侧箭头图标样式 close #977
1 parent 423bbf7 commit a9ab49f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/list/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Component({
3131
'l-class-content',
3232
'l-content-class',
3333
'l-class-desc',
34-
'l-desc-class'
34+
'l-desc-class',
35+
'l-link-icon-class'
3536
],
3637
properties: {
3738
icon: String,
@@ -103,4 +104,4 @@ Component({
103104
}, { bubbles: true, composed: true });
104105
}
105106
}
106-
});
107+
});

src/list/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
<l-tag size="mini" shape="{{tagShape}}" bg-color="{{tagColor}}" l-class="cell-tag" wx:if="{{tagContent && tagPosition ==='right' && !tagPlain }}">{{tagContent}}</l-tag>
3030
<l-tag size="mini" shape="{{tagShape}}" plain="{{tagPlain}}" font-color="{{tagColor}}" l-class="cell-tag" wx:if="{{tagContent && tagPosition ==='right' && tagPlain }}">{{tagContent}}</l-tag>
3131
<view class="l-text" wx:if="{{rightDesc}}">{{rightDesc}}</view>
32-
<l-icon size="26" color="#8c98ae" name="right" wx:if="{{isLink}}" />
32+
<l-icon l-class="l-link-icon-class" size="26" color="#8c98ae" name="right" wx:if="{{isLink}}" />
3333
</view>
34-
</template>
34+
</template>

0 commit comments

Comments
 (0)