jd-opensource / jd-opensource/taro-ui

SwipeAction 组件期望可以自定义 icon

Open
#1,348 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

目前,SwipeAction 组件只能通过设置 SwipeAction 的 options 参数来配置左滑后显示的内容,但是配置项的 text 只能赋值string类型的值,并不能自定义去设置icon 图片,像这样

![image](https://user-images.githubusercontent.com/33342276/118932114-3d44cd80-b97a-11eb-83b1-6b528cdf8a30.png)

期望也可以自定义设置icon图片,像这样

![image](https://user-images.githubusercontent.com/33342276/118932151-4c2b8000-b97a-11eb-8a4f-2453dd60b872.png)

开发环境:taro 3.x + taro-ui: "3.0.0-alpha.10"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.