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
更新v1.4.6后,props只能正确传递首个属性。
props
问题重现: 修改自带例程, 颠倒<list pear="梨子啊" apple="苹果啊"></list>中pear与apple的顺序,分别编译测试, 发现只能正确传递html标签中书写的首个props,其余props均为undefined。
<list pear="梨子啊" apple="苹果啊"></list>
pear
apple
undefined
// index.wpy <panel> <view class="title" slot="title">测试列表</view> <list pear="梨子啊" apple="苹果啊"></list> </panel>
// list.wpy <template> <view>apple: {{apple}}</view> <view>pear: {{pear}}</view> ...
// list.wpy import wepy from 'wepy'; export default class List extends wepy.component { props = { apple: String, pear: String };
The text was updated successfully, but these errors were encountered:
fixed 1.4.6 only first props bug
fde27bf
已知问题,目前只能通过手动修改C:\Users\{username}\AppData\Roaming\npm\node_modules\wepy-cli\lib\compile-wpy.js 来修复。请先参考commit修复问题。抱歉。
C:\Users\{username}\AppData\Roaming\npm\node_modules\wepy-cli\lib\compile-wpy.js
Sorry, something went wrong.
@Gcaufy 谢谢你在午餐时间如此及时的修复,辛苦辛苦🎉。
No branches or pull requests
更新v1.4.6后,
props
只能正确传递首个属性。问题重现:
修改自带例程,
颠倒
<list pear="梨子啊" apple="苹果啊"></list>
中pear
与apple
的顺序,分别编译测试,发现只能正确传递html标签中书写的首个
props
,其余props
均为undefined
。The text was updated successfully, but these errors were encountered: