<template>
  <cms-tree-table
    :columns="columns"
    :request-call="this.$http.tables.treeTableUrl"
    :fixed-height="true"
    :height="400"
  >
  </cms-tree-table>
</template>

<script>
import menu from './menu1.json'
import { mixTableConfig } from '@/comps/mixin/common-mixins'

export default {
  name: "tree-table-demo",
  data() {
    return {
      menuList: menu.data
    }
  },
  computed: {
    columns() {
      return [
        {
          ...mixTableConfig.checkbox,
        },
        {
          fixed: "left",
          title: '菜单名称',
          field: "menuName",
          treeNode: true,
          minWidth: 300,
        },
        {
          ...mixTableConfig.default,
          title: '菜单地址',
          field: "menuUrl",
          minWidth: 300,
        },
      ]
    }
  }

}
</script>

<style scoped>

</style>