Tencent / Tencent/tdesign-miniprogram

[notice-bar] visible 使用变量控制为false时控制台报错

Open
#2,176 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

need confirm
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

tdesign-miniprogram 版本

1.1.10

重现链接

No response

重现步骤

.js 文件:

Page({
  data: {
    noticeVisible: false,
    logs: []
  }
})

.wxml 文件:
<t-notice-bar visible="{{noticeVisible}}" content="这是一条普通的通知信息"></t-notice-bar>

期望结果

No response

实际结果
image
基础库版本

2.33.0

补充说明

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the notice-bar case from the .js and .wxml snippets with noticeVisible set to false, using the stated tdesign-miniprogram 1.1.10 and base library 2.33.0. Inspect the notice-bar implementation and its existing tests or test entry points, if present. Done means the same binding no longer produces a console error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.