David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
874 stars 136 forks source link

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

Open alaxury opened 2 years ago

alaxury commented 2 years ago

组件上node-text="name", 用了 `<template #node="{data, node: {depth}, radius, isRetracted}">

    <template v-else>
      <circle r="6" stroke="yellow">
        <title>AA{{ data.text }} {{ depth }}</title>
      </circle>
    </template>
  </template>` 

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