<template>
  <div class="ht-base-tree-node-demo">
    <ht-base-tree :data="data1" expand-node></ht-base-tree>
  </div>
</template>

<script>
export default {
  name: "HtBaseTreeNodeDemo",
  data() {
    return {
      data1: [
        {
          title: "parent 1",
          expand: true,
          children: [
            {
              title: "parent 1-1",
              expand: true,
              children: [
                {
                  title: "leaf 1-1-1",
                },
                {
                  title: "leaf 1-1-2",
                },
              ],
            },
            {
              title: "parent 1-2",
              expand: true,
              children: [
                {
                  title: "leaf 1-2-1",
                },
                {
                  title: "leaf 1-2-1",
                },
              ],
            },
          ],
        },
      ],
    };
  },
};
</script>

 
<style lang="less">
.ht-base-tree-node-demo {
}
</style>

