Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[t-action-sheet] items变化时,显示没有变化。 #3411

Open
nanhupatar opened this issue Dec 30, 2024 · 3 comments · May be fixed by #3438
Open

[t-action-sheet] items变化时,显示没有变化。 #3411

nanhupatar opened this issue Dec 30, 2024 · 3 comments · May be fixed by #3438
Labels
bug Something isn't working

Comments

@nanhupatar
Copy link

tdesign-miniprogram 版本

1.8.4

重现链接

No response

重现步骤

动态更改items时,显示没有变化。只会显示初始值

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@anlyyao anlyyao added the need confirm need confirm label Dec 31, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Dec 31, 2024

@nanhupatar 请按规范提issue,贴一下代码或者提供可复现代码片段链接、

@anlyyao anlyyao added need more info and removed need confirm need confirm labels Dec 31, 2024
@nanhupatar
Copy link
Author

@nanhupatar 请按规范提issue,贴一下代码或者提供可复现代码片段链接、

    <t-action-sheet visible="{{isActionShow}}" items="{{actions}}" theme="grid" bind:cancel="hideAction" bind:click-overlay="hiderAction" bind:selected="chooserAction" />
page({
   data:{
         actions:[{lable:'1',value:'1',icon:'help-info'}]
    },
 onLoad() {
  setTimeout(()=>{
   this.setData({
actions::[{lable:'2',value:'2',icon:'other'}]
})
},1000)
}
})

实际 后面设置的actions无效 ,只有data内的生效

@betavs betavs added bug Something isn't working and removed need more info labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants