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

space组件里面使用v-for渲染就失效了 #319

Closed
ChenErik opened this issue Feb 21, 2022 · 5 comments
Closed

space组件里面使用v-for渲染就失效了 #319

ChenErik opened this issue Feb 21, 2022 · 5 comments
Assignees

Comments

@ChenErik
Copy link

ChenErik commented Feb 21, 2022

Bug report 🐞

space组件里面使用v-for渲染没有产生间距

Version & Environment

v1.26.1

Expectation

预期v-for的每个元素出现间距

Actual results (or Errors)

没有出现间距

varlet ui playground demo

@qytayh
Copy link
Member

qytayh commented Feb 21, 2022

Bug report 🐞

space组件里面使用v-for渲染没有产生间距

Version & Environment

v1.26.1

Expectation

预期v-for的每个元素出现间距

Actual results (or Errors)

没有出现间距

varlet ui playground demo

感谢反馈,这个问题将在下个小版本中修复,请注意查看

@haoziqaq
Copy link
Member

感谢反馈, issue先关掉了

@ChenErik
Copy link
Author

修复以后看上去展示效果好了,可是打开控制台发现出现几个空的带margin样式的div,导致出现不需要的间距
感觉可以加上

import { Comment } from 'vue'
if(vNode.type!==Comment){
   result.push(vNode)
}

@haoziqaq
Copy link
Member

�好的,在修复了

@haoziqaq haoziqaq reopened this Feb 22, 2022
@haoziqaq haoziqaq assigned haoziqaq and qytayh and unassigned haoziqaq and qytayh Feb 22, 2022
@qytayh
Copy link
Member

qytayh commented Feb 22, 2022

已修复,感谢反馈,请留意版本更新

@qytayh qytayh closed this as completed Feb 22, 2022
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