提交 4ff9200e 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(uts): 自动化测试修复 Element.setAttribute 类型错误

上级 02c7944d
......@@ -226,8 +226,8 @@ export const callFunction = (
if (element.tagName == 'SCROLL-VIEW') {
// @ts-ignore
const arg = JSON.parse<Coordinate>(JSON.stringify(params.args[0]))!
element.setAttribute('scrollLeft', arg.x)
element.setAttribute('scrollTop', arg.y)
element.scrollLeft = arg.x
element.scrollTop = arg.y
callback({ result: `${functionName} success` }, null)
} else {
callback(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册