Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Latest commit

 

History

History
30 lines (27 loc) · 522 Bytes

exportpic.md

File metadata and controls

30 lines (27 loc) · 522 Bytes

可导出组织树图图片

/*vue*/
<template>
  <vo-basic :data="chartData" :export-button=true export-filename="testpic"></vo-basic>
</template>

<script>
export default {
  created() {
    this.chartData = {
      name: 'JavaScript',
        children: [
          { name: 'Angular' },
          {
            name: 'React',
            children: [{ name: 'Preact' }]
          },
          {

            name: 'Vue',
            children: [{ name: 'Moon' }]
          }
        ]
    }
  }
}
</script>