From 9521c140d7d5ffcd9d8faccfecdbc57a5b0019f2 Mon Sep 17 00:00:00 2001 From: Nickbing Lao Date: Fri, 27 Oct 2017 16:05:19 +0800 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d76c462..36c197c 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,24 @@ ``` +## Feature + +支持属性: + +```js + //控件可配置属性 + var fileNumLimit = attrs.filenumlimit ? attrs.filenumlimit : 10;//默认10张 + var fileSizeLimit = attrs.filesizelimit ? attrs.filesizelimit : 200 * 1024 * 1024; // 200 M + var fileSingleSizeLimit = attrs.filesinglesizelimit ? attrs.filesinglesizelimit : 50 * 1024 * 1024; // 50 M + var btnlabel = attrs.btnlabel ? attrs.btnlabel : "图片上传"; //按钮文字 + var viewType = attrs.viewType ? attrs.viewType : 'list'; //图片展示方式,计划分两种,一种是list,一种是album(后期扩展) + var downloadUrl = window.baseUrl + '/upload'; + var uploadUrl = window.baseUrl + '/upload'; + var readonly = attrs.readonly ? attrs.readonly : false; //是否只读,只读下不能上传照片和删除 + +``` + + ## License ![](https://img.shields.io/badge/license-MIT-blue.svg) @@ -38,4 +56,4 @@ > [giscafer.com](http://giscafer.com)  ·  > GitHub [@giscafer](https://github.com/giscafer)  ·  -> Weibo [@Nickbing Lao](https://weibo.com/laohoubin) \ No newline at end of file +> Weibo [@Nickbing Lao](https://weibo.com/laohoubin)