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

[IxTree] When IxTree sets draggable and showLine together, the treeNode's line is wrong. #1849

Open
1 task done
wangxdmm opened this issue Feb 4, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working IxTree

Comments

@wangxdmm
Copy link

wangxdmm commented Feb 4, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://playground.idux.site/#eyJQbGF5Z3JvdW5kQXBwLnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPFRoZW1lUHJvdmlkZXI+XG4gICAgPEl4RHJhd2VyUHJvdmlkZXI+XG4gICAgICA8SXhOb3RpZmljYXRpb25Qcm92aWRlcj5cbiAgICAgICAgPEl4TW9kYWxQcm92aWRlcj5cbiAgICAgICAgICA8SXhNZXNzYWdlUHJvdmlkZXI+XG4gICAgICAgICAgICA8QXBwIC8+XG4gICAgICAgICAgPC9JeE1lc3NhZ2VQcm92aWRlcj5cbiAgICAgICAgPC9JeE1vZGFsUHJvdmlkZXI+XG4gICAgICA8L0l4Tm90aWZpY2F0aW9uUHJvdmlkZXI+XG4gICAgPC9JeERyYXdlclByb3ZpZGVyPlxuICA8L1RoZW1lUHJvdmlkZXI+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IGxhbmc9XCJ0c1wiIHNldHVwPlxuaW1wb3J0IHsgZGVmaW5lQ29tcG9uZW50LCBkZWZpbmVBc3luY0NvbXBvbmVudCB9IGZyb20gXCJ2dWVcIjtcbmltcG9ydCB7IHZlcnNpb24gfSBmcm9tIFwiQGlkdXgvY29tcG9uZW50c1wiO1xuaW1wb3J0IHsgc2V0dXBJZHV4IH0gZnJvbSBcIi4vc2V0dXBJZHV4LmpzXCI7XG5pbXBvcnQgQXBwIGZyb20gXCIuL0FwcC52dWVcIjtcbnNldHVwSWR1eCgpO1xuX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gIGRpc2FibGVkOiB7IGRyb3A6IHRydWUgfSxcbiAgICAgICAgY2hpbGRyZW46IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgICBsYWJlbDogJ05vZGUgMC0wLTAnLFxuICAgICAgICAgICAga2V5OiAnMC0wLTAnLFxuICAgICAgICAgICAgZGlzYWJsZWQ6IHsgZHJhZzogdHJ1ZSB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgeyBsYWJlbDogJ05vZGUgMC0wLTEnLCBrZXk6ICcwLTAtMScgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnTm9kZSAwLTAtMicsIGtleTogJzAtMC0yJyB9LFxuICAgICAgICBdLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgbGFiZWw6ICdOb2RlIDAtMScsXG4gICAgICAgIGtleTogJzAtMScsXG4gICAgICAgIGNoaWxkcmVuOiBbXG4gICAgICAgICAgeyBsYWJlbDogJ05vZGUgMC0xLTAnLCBrZXk6ICcwLTEtMCcgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnTm9kZSAwLTEtMScsIGtleTogJzAtMS0xJyB9LFxuICAgICAgICAgIHsgbGFiZWw6ICdOb2RlIDAtMS0yJywga2V5OiAnMC0xLTInIH0sXG4gICAgICAgIF0sXG4gICAgICB9LFxuICAgIF0sXG4gIH0sXG4gIHtcbiAgICBsYWJlbDogJ05vZGUgMScsXG4gICAga2V5OiAnMScsXG4gICAgY2hpbGRyZW46IFtcbiAgICAgIHtcbiAgICAgICAgbGFiZWw6ICdOb2RlIDEtMCcsXG4gICAgICAgIGtleTogJzEtMCcsXG4gICAgICAgIGNoaWxkcmVuOiBbXG4gICAgICAgICAgeyBsYWJlbDogJ05vZGUgMS0wLTAnLCBrZXk6ICcxLTAtMCcgfSxcbiAgICAgICAgICB7IGxhYmVsOiAnTm9kZSAxLTAtMScsIGtleTogJzEtMC0xJyB9LFxuICAgICAgICAgIHsgbGFiZWw6ICdOb2RlIDEtMC0yJywga2V5OiAnMS0wLT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nZXRJbmRleCA9IGluZGV4XG4gICAgICB0YXJnZXROb2RlcyA9IG5vZGVzXG4gICAgfSlcblxuICAgIGlmIChkcm9wVHlwZSA9PT0gJ2JlZm9yZScpIHtcbiAgICAgIHRhcmdldE5vZGVzLnNwbGljZSh0YXJnZXRJbmRleCEsIDAsIGRyYWdEYXRhISlcbiAgICB9IGVsc2Uge1xuICAgICAgdGFyZ2V0Tm9kZXMuc3BsaWNlKHRhcmdldEluZGV4ISArIDEsIDAsIGRyYWdEYXRhISlcbiAgICB9XG4gIH1cblxuICB0cmVlRGF0YS52YWx1ZSA9IGRhdGFcbn1cbjwvc2NyaXB0PlxuIn0=

Steps to reproduce

What is expected?

Get right layout

What is actually happening?

Line is wrong

Environment Info

Win10
Chrome Version 121.0.6167.140 (Official Build) (64-bit)

Any additional comments? (optional)

@idux-bot idux-bot bot added the IxTree label Feb 4, 2024
@danranVm danranVm added the bug Something isn't working label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working IxTree
Projects
None yet
Development

No branches or pull requests

2 participants