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

请问支持自定义文本吗 #89

Open
alaxury opened this issue Apr 1, 2022 · 0 comments
Open

请问支持自定义文本吗 #89

alaxury opened this issue Apr 1, 2022 · 0 comments

Comments

@alaxury
Copy link

alaxury commented Apr 1, 2022

组件上node-text="name", 用了
<template #node="{data, node: {depth}, radius, isRetracted}"> <template v-if="data.children && data.children.length"> <circle r="6" stroke="red"> <title>BB{{ data.text }} {{ depth }}</title> </circle> </template> <template v-else> <circle r="6" stroke="yellow"> <title>AA{{ data.text }} {{ depth }}</title> </circle> </template> </template>

显示的名字还是不带AA.. 或BB..

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

1 participant