Coder Social home page Coder Social logo

Comments (5)

github-actions avatar github-actions commented on June 1, 2024

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

from tdesign-miniprogram.

LeeJim avatar LeeJim commented on June 1, 2024

试了下,并不会报错,麻烦确认下是不是这个组件的问题

from tdesign-miniprogram.

zavatar avatar zavatar commented on June 1, 2024

试了下,并不会报错,麻烦确认下是不是这个组件的问题

试试这个片段能复现么:https://developers.weixin.qq.com/s/6ZXexDmd7eJs ,只有false时会报错,报错堆栈最后指向notice-bar.js。基础库版本需要新一些,比较旧的不会报错。

from tdesign-miniprogram.

LeeJim avatar LeeJim commented on June 1, 2024

我换了 2.33.0 基础库就开始出现问题了。我研究下

from tdesign-miniprogram.

unrealsmart avatar unrealsmart commented on June 1, 2024

我这里报错是因为content属性

错误:

Page({
  data: {
    noticeContent: ['abc'],
  },
})
<t-notice-bar
...
content="{{noticeContent}}"
...
></t-notice-bar>

正确:

<t-notice-bar
...
content=""
...
></t-notice-bar>

<t-notice-bar
...
content="通知内容abc"
...
></t-notice-bar>

// a.js
Page({
...
  data: {
    searchValue: '',
    noticeContent: [],
  },
...
})
// a.wxml
<t-notice-bar
...
content="{{noticeContent}}"
...
></t-notice-bar>


不加content属性时,但谁会不填写通知内容?

from tdesign-miniprogram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.