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

Divider 分割线使用textBuilder属性会多显示一遍自定义的文本内容 #49

Closed
uselness opened this issue Jan 21, 2025 · 2 comments

Comments

@uselness
Copy link

Image

@Entry struct Test { @Builder textBuilder() { Text('123') // IBestIcon({ name: this.showDetail ? 'arrow-up' : 'arrow-down' }); } build() { Column() { IBestDivider({ dashed: true, lineColor: '#CFCFCF', textBuilder: this.textBuilder(), texFontSize: 16 }) }; } }

@542154968
Copy link
Contributor

textBuilder: this.textBuilder() 你换种写法试试 我之前遇到过 别执行这个函数

@damengbuxing
Copy link
Collaborator

使用箭头函数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants