jd-opensource / jd-opensource/taro-ui

AtSwipeAction组件文档参数不全

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

Description

**问题描述**
AtSwipeAction源码类型定义maxDistance,areaWidth为必填项,但在官方文档并未标明此项参数默认示例信息,且areaWidth值后缀为px在未知宽度情况下无法友好使用

**复现步骤**

使用时不填写这两个参数maxDistance,areaWidth

```
{
console.log("1");
}}
onClosed={() => {
console.log("1");
}}
key={item.id}
options={[
{
text: "删除",
style: {
width: "100px",
backgroundColor: "#6190E8",
},
className: `${bem("action")}`,
},
]}
maxDistance={100}
areaWidth={100}
>

```

**期望行为**
文档参数补全

**报错信息**

image

image

**系统信息**

"taro-ui": "^3.1.0-beta.2"

**补充信息**

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.