提交 279b6884 编写于 作者: D DCloud_LXH

fix(nvue): movable-area overflow error、clearTimeout error question/143742

上级 461a7b97
......@@ -32,7 +32,11 @@ export default defineComponent({
styles: [
{
'uni-movable-area': {
'': { width: '10px', height: '10px' },
'': {
overflow: 'hidden',
width: '10px',
height: '10px',
},
},
},
],
......@@ -89,6 +93,7 @@ export default defineComponent({
},
onPanend(e: TouchtrackEvent) {
touchMovableView && touchMovableView.touchend(e)
touchMovableView = null
},
}
const addMovableViewContext: AddMovableViewContext = (
......@@ -119,9 +124,9 @@ export default defineComponent({
const defaultSlots = slots.default && slots.default()
const movableViewItems = flatVNode(defaultSlots)
return (
<div ref={rootRef} class="uni-movable-area" {...listeners}>
<view ref={rootRef} class="uni-movable-area" {...listeners}>
{movableViewItems}
</div>
</view>
)
}
},
......
......@@ -213,7 +213,7 @@ function useMovableViewState(
y: 0,
}
let _scale = 1
// @ts-expect-error
// @ts-ignore
let _oldScale = 1
let _translateX = 0
let _translateY = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册