GithubHelp home page GithubHelp logo

fund-ui / fu-filemanage Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 514 KB

A ui component design for fileManage (一款轻快便捷的文件管理器)

Home Page: https://fund-ui.github.io/fu-fileManage/dist/index.html

License: MIT License

HTML 0.41% CSS 10.55% JavaScript 89.04%
webuploader jqery component filemanager

fu-filemanage's Introduction

FuFileManage

1. 构建

进入 fu-fileManage 文件夹,确保本地安装过 nodenpm 后,运行如下命令

npm install

开发调试

npm run dev

打包发布

npm run build

2. 快速开始

<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>
        文件管理组件
    </title>
</head>
<body>
    <div id="app" style="width:200px"></div>
</body>
<script>
    var myFileManage = new FuFileManage({
        initURL: '/FU/FileCompoent/List',//文件列表加载地址
        previewURL: '/FU/FileManage/FilePreview',//文件预览地址
        downloadURL: '/FU/FileCompoent/Download',//文件下载地址
        allowDownloadURL: '/FU/FileCompoent/AllowDownload',//文件下载预处理
        uploadURL: '/FU/FileCompoent/UploadBigFile',//文件上传地址
        uploadCheckURL: '/FU/FileCompoent/CheckFileChunk',//分块校验地址
        deleteURL: '/FU/FileCompoent/Delete',//文件删除地址
        souceRecordID: '',//文件管理id
        modelName: '',//上传指定模块
        uploadPath: '',//文件保存地址
        getUploadPath: undefined,//默认无需获取页面新上传路径
        beforeUpload: function () {//默认允许上传
            return true;
        },
        authority: {//分项权限
            download: true,
            delete: true,
            upload: true
        },
        disabled: true,//ture为默认模式,false为只读模式
    });
    myFileManage.renderDOM(document.getElementById("app"));
    myFileManage.init();
</script>
</html>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.