tdesign-miniprogram icon indicating copy to clipboard operation
tdesign-miniprogram copied to clipboard

[TDesign]渲染层报错

Open liubiao-tfz opened this issue 1 year ago • 3 comments

tdesign-miniprogram 版本

最新版本

重现链接

No response

重现步骤

[渲染层网络层错误] Failed to load font https://tdesign.gtimg.com/icon/0.2.0/fonts/t.woff net::ERR_CACHE_MISS (env: Windows,mp,1.06.2402021; lib: 3.3.4) [渲染层错误] Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined(env: Windows,mp,1.06.2402021; lib: 3.3.4) [渲染层错误] TypeError: SystemError (webviewScriptError) Cannot read property 'getBoundingClientRect' of undefined(env: Windows,mp,1.06.2402021; lib: 3.3.4)

期望结果

不报错

实际结果

报错

基础库版本

No response

补充说明

No response

liubiao-tfz avatar Mar 08 '24 00:03 liubiao-tfz

👋 @liubiao-tfz,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] avatar Mar 08 '24 00:03 github-actions[bot]

@liubiao-tfz 提供一下复现步骤、代码片段等

anlyyao avatar Apr 08 '24 08:04 anlyyao

我也遇到这个问题,怎么解决的呀,我的是加入了这个代码就会出现这个问题

<scroll-view scroll-y="true" class="scrollView" enable-back-to-top="{{true}}" scroll-into-view="{{scrollToView}}">
>       <view id="customscrollview">
   updateScrollViewHeight() {
    const query = wx.createSelectorQuery();
    query.select("#customscrollview").boundingClientRect();
    query.selectViewport().scrollOffset();
    query.exec((res) => {
      res[0].height; // #the-id节点的上边界坐标
      res[1].scrollTop; // 显示区域的竖直滚动位置
    });
  },

调用了boundingClientRect()就会出现这个问题 我感觉是这个功能引起的

qxpf666 avatar Apr 16 '24 20:04 qxpf666