jd-opensource / jd-opensource/nutui
Swipe 滑动手势左右滑动,页面也会上下滑动
- Dominant language
- Vue
- Stars
- 6.5k
- Forks
- 835
- PR merge metrics
- No merged PRs in 30d
Description
### NutUI 包名
@nutui/nutui
### NutUI 版本号
4.2.6
### 平台
weapp
### 重现链接
https://codesandbox.io/s/nutui4-vite-demo-forked-4rwl9v?file=/src/App.vue:4898-5506
### 重现步骤
>
食材共 4 件
订单金额:¥8776.00
{{item.foodName}}
暂无
采购数量:100kg
单价(元)
暂无
取消
### 期望的结果是什么?
左右滑动的时候可以锁定上下滚动
### 实际的结果是什么?
滑动手势左右滑动时,页面也会上下滑动,影响用户体验。
### 环境信息
Taro v3.6.18
(node:95284) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sourceRoot' of undefined
at Kernel.initPaths (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/service/src/Kernel.ts:90:64)
at new Kernel (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/service/src/Kernel.ts:73:10)
at CLI. (/usr/local/lib/node_modules/@tarojs/cli/src/cli.ts:76:22)
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/@tarojs/cli/dist/cli.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:95284) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:95284) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
### 其他补充信息
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.