ac-file-list
FileList ui component for react
Last updated 2 months ago by liushaozhen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ac-file-list 
SYNC missed versions from official npm registry.

ac-file-list

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

react ac-file-list component for tinper-bee

附件管理组件 项目中需要引入tinper-bee的样式文件

依赖

  • react >= 15.3.0
  • react-dom >= 15.3.0
  • prop-types >= 15.6.0

使用方法

    import Btns from 'ac-file-list';
    import 'ac-file-list/build/FileList.css';

API

参数 说明 类型 默认值
id 必填,单据唯一标示 string -
disabled 上传按钮是否禁用 bool false
getListNow 组件渲染时,是否立即请求附件列表接口。例如:单据详情编辑时需要立即请求,新增时不需要 bool false
url 列表、上传、删除、详情(查询下载地址)接口地址 object 默认值往下看url配置
uploadProps 上传参数,参考 bee-upload API object {}

url配置

    {// {id} 替换为 props.id
        "list":  `https://ezone-u8c-daily.yyuap.com/cooperation/rest/v1/file/caep/{id}/files`,//文件列表
        "upload": `https://ezone-u8c-daily.yyuap.com/cooperation/rest/v1/file/caep/{id}/`,//上传
        "delete": `https://ezone-u8c-daily.yyuap.com/cooperation/rest/v1/file/{id}`,//下载 cooperation/rest/v1/file/5d639caaa957bd001936cec9  此处id为附件id
        "info":`https://ezone-u8c-daily.yyuap.com/cooperation/rest/v1/file/{id}/info/ `,//文件信息
    }

开发调试

$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/ac-file-list
$ cd ac-file-list
$ npm install
$ npm run dev

Current Tags

  • 1.0.5                                ...           latest (2 months ago)
  • 0.2.7-test                                ...           wuxlr (5 months ago)

33 Versions

  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.0                                ...           5 months ago
  • 0.2.7-test                                ...           5 months ago
  • 0.2.10                                ...           5 months ago
  • 0.2.9                                ...           6 months ago
  • 0.2.8                                ...           7 months ago
  • 0.2.7                                ...           7 months ago
  • 0.2.6                                ...           7 months ago
  • 0.2.5                                ...           8 months ago
  • 0.2.4                                ...           8 months ago
  • 0.2.3                                ...           8 months ago
  • 0.2.2                                ...           8 months ago
  • 0.2.1                                ...           9 months ago
  • 0.2.0                                ...           9 months ago
  • 0.1.9                                ...           9 months ago
  • 0.1.8                                ...           9 months ago
  • 0.1.7                                ...           10 months ago
  • 0.1.6                                ...           10 months ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Downloads
Today 1
This Week 1
This Month 4
Last Day 0
Last Week 3
Last Month 30
Dependencies (10)
Dev Dependencies (13)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |