Closed SpringHgui closed 6 years ago
同样遇到搞了好久
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. 因为这个 Issue 最近没有任何有效回复,所以被自动标记为了stale
。 如果在未来7天依旧没有任何激活操作,那么该 Issue 将会被自动关闭。 感谢您的提问。
哦,原来如此,我用的是 template(lang="pug"),估计默认所有换行都被移除了,于是,百思不得其解啊。
待会试试
Description
[问题描述:当组件中的slot标签有父标签时,若slot的开始标签写在其父标签同一行,即slot的开始标签紧随父标签的开始标签,在同一行,该组件不能被渲染。]
Environment
[如何重现问题]
组件定义如下:panel.wpy
页面定义如下:panel.wpy
[实际表现]
dist文件夹下渲染的结果
显示效果
[期望表现]
dist文件夹下渲染的结果
显示效果
[临时解决方案]
[在定义组件时slot的开始标签与父标签之间插入空格,或slot标签换行]
方法1:插入一个空格
方法2:换行