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

[动作面板] 在tabBar中使用时报错不存在

Open l771311416 opened this issue 1 year ago • 9 comments

tdesign-miniprogram 版本

1.2.4

重现链接

No response

重现步骤

我在custom-tab-bar文件夹 也就是 tabBar使用了动作面板。这是我在wxml中的引用<t-action-sheet id="t-action-sheet" bind:selected="handleSelected" /> 并且我在js中明确触发了handleAction的情况下的代码 import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index'; handleAction() { ActionSheet.show({ theme: ActionSheetTheme.Grid, selector: '#t-action-sheet', context: this, items: [ { label: '我要出售', icon: 'money', }, { label: '定金找车', icon: 'cart', }, ], }); }, 但是报错信息为下面: 未找到组件,请确认 selector && context 是否正确

期望结果

期待正常展示

实际结果

无法展示,并且报错

基础库版本

No response

补充说明

No response

l771311416 avatar Dec 06 '23 07:12 l771311416