打印/下载
案例

基础用法

<el-input class="hide" v-model="actionType"></el-input>

JavaScript

export default {
  components: {Editor},
  data(){
    return {
    }
  },
  computed:{
    /* 动作菜单-点击 */
    actionType(){
      let type = this.$store.state.action.type;
      if(type=='list') this.loadData();
      else if(type=='mkdir') this.mkDir();
      else if(type=='upload') this.selectFile();
      else if(type=='zip') this.zipFile();
      else if(type=='rename') this.reName();
      else if(type=='remove') this.rmFile();
      return type;
    },
  },
  mounted(){
    // 动作菜单-配置(控制器名称)
    this.$store.state.action.url = 'SysFileManage';
    // 扩展菜单
    this.$store.state.action.menus = [
      {name:'新建文件夹',action:'mkdir',ico:'el-icon-folder-add'},
      {name:'上传',action:'upload',ico:'el-icon-document-add'},
      {name:'打包',action:'zip',ico:'el-icon-bottom'},
      {name:'重命名',action:'rename',ico:'el-icon-edit-outline'},
      {name:'删除',action:'remove',ico:'el-icon-delete'},
    ];
  },
}
{{copy}}