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
parent.wpy:
<template> <view>parent</view> <child> <view>child view</view> </child> </template>
child.wpy:
<template> <view> <view>child</view> <slot></slot> </view> </template>
期望的编译后的template是:
<template> <view>parent</view> <view> <view>child</view> <view>child view</view> </view> </template>
而实际wepy2编译后的template是会将对应的内容插入到子组件与根元素并列那级:
<template> <view>parent</view> <view> <view>child</view> </view> <view>child view</view> </template>
The text was updated successfully, but these errors were encountered:
我也发现这个问题了。。。
Sorry, something went wrong.
这里有一份wepy2升级指南 Bulandent/blog#4
No branches or pull requests
parent.wpy:
child.wpy:
期望的编译后的template是:
而实际wepy2编译后的template是会将对应的内容插入到子组件与根元素并列那级:
The text was updated successfully, but these errors were encountered: