<template>
  <ui-layout title="文件网盘">
    <template slot="sidebar">
      <ui-navmenu>
        <ui-navmenu-item
          icon-size="18px"
          :icon="require('./icons/all.svg')"
          :url="`${rootPath}/all`"
        >全部文档</ui-navmenu-item>
        <ui-navmenu-item
          icon-size="18px"
          :icon="require('./icons/lately.svg')"
          :url="`${rootPath}/lately`"
        >最近文档</ui-navmenu-item>
        <ui-navmenu-item
          icon-size="18px"
          :icon="require('./icons/star.svg')"
          :url="`${rootPath}/star`"
        >星标文档</ui-navmenu-item>
        <ui-navmenu-item
          icon-size="18px"
          :icon="require('./icons/recycle.svg')"
          :url="`${rootPath}/recycle`"
        >回收站</ui-navmenu-item>
      </ui-navmenu>
    </template>
    <slot></slot>
  </ui-layout>
</template>
<script>
export default {
  name: 'BiDiskManageLayout',
  props: {
    rootPath: {
      type: String
    }
  }
}
</script>
