4***@qq.com
4***@qq.com
  • 发布:2020-06-17 16:19
  • 更新:2020-06-17 16:19
  • 阅读:646

nvue页面append进一个static定位的view,表现异常

分类:nvue

用5+plus.nativeObj.View新建一个position为static的view。append到 nvue 页面。会发现,view不在页面中。这种现象正常吗?

代码如下:
const view = new plus.nativeObj.View('test', {
backgroundColor: '#000',
position: 'static',
top: '100px',
width: ${uni.upx2px(750)}px,
height: '300px'
});
const pages = getCurrentPages();
const page = pages[pages.length - 1];
const currentWebview = page.$getAppWebview();
currentWebview.append(view);

2020-06-17 16:19 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复