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

feat:支持wxs语法 #32

Open
1192511438 opened this issue Feb 1, 2024 · 4 comments
Open

feat:支持wxs语法 #32

1192511438 opened this issue Feb 1, 2024 · 4 comments

Comments

@1192511438
Copy link

现在好像还不支持wxs语法,打算支持嘛

@yisar
Copy link
Owner

yisar commented Feb 2, 2024

wxs 比较特殊,它的逻辑在渲染层,目前我这套思路是逻辑层承载逻辑,所以我个人不太想支持了

@1192511438
Copy link
Author

好的好的,我在反馈一个解析的兼容问题吧
路径 compiler/wxml/parse
代码 ((!token.closeStart && !token.closeEnd) || token.value !== type))
如果我的wxml的形式是



这样在prase阶段就会出现问题,
name=xxx 就没有children就为空数组了

@1192511438
Copy link
Author

image

@schizobulia
Copy link

可以的话提供一个完整的小程序demo吧,我有时间看看。 @1192511438

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