jd-opensource / jd-opensource/taro-ui

"taro-ui": "^3.0.0-alpha.3"在头条小程序下编译AtSwipeAction存在div标签,导致AtSwipeAction无法渲染

Open
#1,350 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

**问题描述**
"taro-ui": "^3.0.0-alpha.3"版本,在头条小程序下编译AtSwipeAction存在div标签,导致AtSwipeAction无法渲染
![image](https://user-images.githubusercontent.com/24582884/119064583-3798c780-ba0e-11eb-90ee-7caffa59e15a.png)

**复现步骤**
按照taro-ui官方文档组件使用步骤,进行组件的引用及使用
taro使用react编写的小程序,在字节跳动IDE里进行编译预览时,下面时我的dependencies & devDependencies
"dependencies": {
"@babel/runtime": "^7.7.7",
"@tarojs/cli": "3.2.1",
"@tarojs/components": "3.2.1",
"@tarojs/react": "3.2.1",
"@tarojs/runtime": "3.2.1",
"@tarojs/taro": "3.2.1",
"lodash": "4.17.15",
"moment": "^2.29.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"taro-ui": "^3.0.0-alpha.3"
},
"devDependencies": {
"@babel/core": "^7.8.0",
"@tarojs/mini-runner": "3.2.1",
"@tarojs/webpack-runner": "3.2.1",
"@types/webpack-env": "^1.13.6",
"babel-preset-taro": "3.2.1",
"eslint": "^6.8.0",
"eslint-config-taro": "3.2.1",
"stylelint": "9.3.0",
"@types/react": "^17.0.2",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-react-hooks": "^4.2.0"
}
2. 引用组件及使用组件姿势和文档完全一致
3. 运行 npm run dev:tt
--->

```js
// 这里可以贴代码
```

**期望行为**

**报错信息**

**系统信息**
macos ,字节开发者工具信息:
Version: 1.53.0
Commit: Unknown
Date: Unknown
Electron: 11.1.0
Chrome: 87.0.4280.88
Node.js: 12.18.3
V8: 8.7.220.29-electron.0
OS: Darwin x64 17.7.0

**补充信息**
编译错误了,存在了div标签~

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.