IDuxFE / idux

🚀 A UI Component Library for Vue3.x
https://idux.site
MIT License
552 stars 141 forks source link

[comp:popover] pop组件首个节点为注释节点时无法正常渲染 #1098

Closed threedayAAAAA closed 2 years ago

threedayAAAAA commented 2 years ago

Reproduction link

[http://200.200.26.166/idux-playground/#eyJQbGF5Z3JvdW5kQXBwLnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPEl4RHJhd2VyUHJvdmlkZXI XG4gICAgPEl4Tm90aWZpY2F0aW9uUHJvdmlkZXI XG4gICAgICA8SXhNb2RhbFByb3ZpZGVyPlxuICAgICAgICA8SXhNZXNzYWdlUHJvdmlkZXI XG4gICAgICAgICAgPEFwcCAvPlxuICAgICAgICA8L0l4TWVzc2FnZVByb3ZpZGVyPlxuICAgICAgPC9JeE1vZGFsUHJvdmlkZXI XG4gICAgPC9JeE5vdGlmaWNhdGlvblByb3ZpZGVyPlxuICA8L0l4RHJhd2VyUHJvdmlkZXI XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IGxhbmc9XCJ0c1wiIHNldHVwPlxuaW1wb3J0IHsgc2V0dXBJZHV4IH0gZnJvbSAnLi9zZXR1cElkdXguanMnXG5pbXBvcnQgQXBwIGZyb20gJy4vQXBwLnZ1ZSdcbnNldHVwSWR1eCgpXG48L3NjcmlwdD5cbiIsIkFwcC52dWUiOiI8dGVtcGxhdGU XG4gPEl4UG9wb3ZlciA6c2hvdy1hcnJvdz1cImZhbHNlXCIgaGVhZGVyPVwiVGl0bGVcIiBjb250ZW50PVwiMTIzXCI XG4gICA8IS0tIOS4gOS4queugOWNleeahOazqOmHiiAtLT4gXG4gICA8SXhCdXR0b24 aG92ZXI8L0l4QnV0dG9uPlxuICA8L0l4UG9wb3Zlcj5cbjwvdGVtcGxhdGU XG4ifQ==](http://200.200.26.166/idux-playground/#eyJQbGF5Z3JvdW5kQXBwLnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPEl4RHJhd2VyUHJvdmlkZXI XG4gICAgPEl4Tm90aWZpY2F0aW9uUHJvdmlkZXI XG4gICAgICA8SXhNb2RhbFByb3ZpZGVyPlxuICAgICAgICA8SXhNZXNzYWdlUHJvdmlkZXI XG4gICAgICAgICAgPEFwcCAvPlxuICAgICAgICA8L0l4TWVzc2FnZVByb3ZpZGVyPlxuICAgICAgPC9JeE1vZGFsUHJvdmlkZXI XG4gICAgPC9JeE5vdGlmaWNhdGlvblByb3ZpZGVyPlxuICA8L0l4RHJhd2VyUHJvdmlkZXI XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IGxhbmc9XCJ0c1wiIHNldHVwPlxuaW1wb3J0IHsgc2V0dXBJZHV4IH0gZnJvbSAnLi9zZXR1cElkdXguanMnXG5pbXBvcnQgQXBwIGZyb20gJy4vQXBwLnZ1ZSdcbnNldHVwSWR1eCgpXG48L3NjcmlwdD5cbiIsIkFwcC52dWUiOiI8dGVtcGxhdGU XG4gPEl4UG9wb3ZlciA6c2hvdy1hcnJvdz1cImZhbHNlXCIgaGVhZGVyPVwiVGl0bGVcIiBjb250ZW50PVwiMTIzXCI XG4gICA8IS0tIOS4gOS4queugOWNleeahOazqOmHiiAtLT4gXG4gICA8SXhCdXR0b24 aG92ZXI8L0l4QnV0dG9uPlxuICA8L0l4UG9wb3Zlcj5cbjwvdGVtcGxhdGU XG4ifQ==)

Steps to reproduce

见重现链接

What is expected?

pop组件首个节点为注释节点时能正常渲染

What is actually happening?

pop组件首个节点为注释节点时无法正常渲染

Environment Info

"@idux/cdk": "^1.0.0-rc.1",
"@idux/components": "^1.0.0-rc.1",
"@idux/pro": "^1.0.0-rc.1",
idux-bot[bot] commented 2 years ago

Translation of this issue:

[Comp: Popover] The first node of the POP component cannot be rendered normally when the annotation node is

REPRODUCTION LINK

[http://200.200.26.166/idux-playground/#eyJQbGF5Z3JvdW5kQXBwLnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPEl4RHJhd2VyUHJvdmlkZXI XG4gICAgPEl4Tm90aWZpY2F0aW9uUHJvdmlkZ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XRlPlxuXG48c2NyaXB0IGxhbmc9XCJ0c1wiIHNldHVwPlxuaW1wb3J0IHsgc2V0dXBJZHV4IH0gZnJvbSAnLi9zZXR1cElkdXguanMnXG5pbXBvcnQgQXBwIGZyb20gJy4vQXBwLnZ1ZSdcbnNldHVwSWR1eCgpXG48L3NjcmlwdD5cbiIsIkFwcC52dWUiOiI8dGVtcGxhdGU XG4gPEl4UG9wb3ZlciA6c2hvdy1hcnJvdz1cImZhbHNlXCIgaGVhZGVyPVwiVGl0bGVcIiBjb250ZW50PVwiMTIzXCI XG4gICA8IS0tIOS4gOS4queugOWNleeahOazqOmHiiAtLT4gXG4gICA8SXhCdXR0b24 aG92ZXI8L0l4QnV0dG9uPlxuICA8L0l4UG9wb3Zlcj5cbjwvdGVtcGxhdGU XG4ifQ==)

STEPS To Reproduce

See reproduction link

What is exfected?

The first node of the POP component can be rendered normally when the annotation node

What is actually happy?

The first node of the POP component cannot be rendered normally when the annotation node is

ENVIRONMENT Info

"@idux/cdk": "^1.0.0-rc.1",
"@idux/components": "^1.0.0-rc.1",
"@idux/pro": "^1.0.0-rc.1",