We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
根组件有 if 指令时,在产出的 html 字符串中没有数据注释。
To Reproduce
var san = require('san'); var XP = san.defineComponent({ template: '<p><slot/></p>' }); var XA = san.defineComponent({ template: '<a><slot/></a>' }); var MyComponent = san.defineComponent({ components: { 'x-p': XP, 'x-a': XA }, template: '<x-p s-if="num"><b><span>{{num}}</span></b></x-p><x-a s-else><b>{{num}}</b></x-a>' }); exports = module.exports = MyComponent;
应为: <a><!--s-data:{"num":0}--><b>0</b></a>
<a><!--s-data:{"num":0}--><b>0</b></a>
得到: <a><b>0</b></a>
<a><b>0</b></a>
The text was updated successfully, but these errors were encountered:
fix: 根组件有 if 指令时,没有输出数据 #146
a87c15a
30b7f1c
chore(release): 5.2.0 [skip ci]
e729de4
# [5.2.0](v5.1.0...v5.2.0) (2022-04-18) ### Bug Fixes * revert "computed 应该在 inited 之前调用" [#144](#144) ([2b80c02](2b80c02)) * 根组件有 if 指令时,没有输出数据 [#146](#146) ([30b7f1c](30b7f1c)) ### Features * support [] while calling data methods ([30fd0dd](30fd0dd)), closes [#145](#145)
🎉 This issue has been resolved in version 5.2.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
根组件有 if 指令时,在产出的 html 字符串中没有数据注释。
To Reproduce
应为:
<a><!--s-data:{"num":0}--><b>0</b></a>
得到:
<a><b>0</b></a>
The text was updated successfully, but these errors were encountered: