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

[Bug]: 使用 prettyHtml 格式化wxml文件,空串属性格式化不符合预期 #167

Open
liwuhou opened this issue Jul 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@liwuhou
Copy link

liwuhou commented Jul 11, 2023

如何复现:

跟依赖的 prettyHtml 有关,这个 Prettyhtml/prettyhtml#53 改变了这个特性,但在小程序里不太合适。
有这么一个组件,接收 title 这个props 来显示标题

<Modal title="" content="{{x}}" />

格式化之后:

<Modal title content="{{x}}" />

这样值就变成了 booleantrue

...

期望的表现:

<Modal title="" content... />

<Modal title="{{''}}" content... />

实际的表现:

Untitled

插件运行环境

  • 插件版本: v2.4.12
  • VSCode版本: 1.80.0
  • 操作系统(非必须):
@liwuhou liwuhou added the bug Something isn't working label Jul 11, 2023
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
Development

No branches or pull requests

2 participants