Socket
Book a DemoInstallSign in
Socket

@infordata/file-manager

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@infordata/file-manager

基于 vue 2.x 和 element-ui 构建的文件资源管理器组件。

0.1.0
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

FileManager

基于 vue 2.x 和 element-ui 构建的文件资源管理器组件。

快速开始

npm install -S @infordata/file-manager

安装依赖环境:

npm install -S vue-clipboard2 vue-infinite-loading highlight.js v-contextmenu @moefe/vue-aplayer vue-runtime-helpers marked dplayer flv.js hls.js monaco-editor

# 若项目没有引入element-ui:
npm install element-ui
# 请修改FileManager/src/utils/index.js文件,选择你要引入的方式
// import './element-ui' // 按需引入
// import Element from 'element-ui' // 按需引入
// Vue.use(Element)// 按需引入

引入配置文件:

# main.js
import '@/components/FileManager/src/utils' // 在main.js中引入文件夹里的util.js

更改路由:

# router.js
path: '/FileManager*' // 在该页面的路由path后面加通配符*匹配路由

参数说明:

参数说明类型可选值默认值
prefixPath当前页面路由path值string''
baseUrl请求base地址string-''
url请求地址对象object见下表
playerWidth音乐播放器面板距左侧值(用于左侧有导航栏或者其他元素)string-'0px'
playerWidthWatch监听音乐播放器面板距左侧值(用于左侧有导航栏或者其他元素,且该元素宽度不定,此时不再接受playerWidth的值,由playerWidthWatch计算宽度)boolean-false
参数url对象说明:
参数说明类型默认值
list获取列表string-
mkdir新建文件夹string-
rename重命名string-
delete删除string-
copy复制string-
move剪切string-
download下载string'/download'
upload上传string'/upload'
search搜索string'/search'

已知问题:

NameDescription
描述
路由通配符*地址栏第一次进入时会出现*
搜索与后端没有对接口
组件移植后端返回与操作不同,需要改内部代码

FAQs

Package last updated on 04 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.