fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# bi.multifile_editor
|
|
|
|
|
|
|
|
## 多文件,基类[BI.Single](/core/single.md)
|
|
|
|
|
|
|
|
{% method %}
|
|
|
|
[source](https://jsfiddle.net/fineui/25r3r5fq/)
|
|
|
|
|
|
|
|
{% common %}
|
|
|
|
```javascript
|
|
|
|
|
|
|
|
BI.createWidget({
|
|
|
|
type: "bi.multifile_editor",
|
|
|
|
width: 400,
|
|
|
|
height: 300
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
{% endmethod %}
|
|
|
|
|
|
|
|
## API
|
|
|
|
##### 基础属性
|
|
|
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
|
|
|
| :------ |:------------- | :-----| :----|:----
|
|
|
|
| multiple | 是否支持多选 | boolean | true,false| false |
|
|
|
|
| maxSize | 允许上传最大字节数 | number |— | -1 |
|
|
|
|
| accept | 允许上传的文件类型 | string | —| " "|
|
|
|
|
| url | 文件路径 | string | —| " "|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 对外方法
|
|
|
|
| 名称 | 说明 | 回调参数
|
|
|
|
| :------ |:------------- | :-----
|
|
|
|
| select | 选择文件 | —|
|
|
|
|
| getValue | 获取文件名称 | —|
|
|
|
|
| upload | 文件上传| —|
|
|
|
|
| reset | 重置| —|
|
|
|
|
|
|
|
|
## 事件
|
|
|
|
| 事件 | 说明 |
|
|
|
|
| :------ |:------------- |
|
|
|
|
|BI.MultifileEditor.EVENT_UPLOADSTART | 开始上传时触发 |
|
|
|
|
|BI.MultifileEditor.EVENT_PROGRESS | 上传过程中触发 |
|
|
|
|
|BI.MultifileEditor.EVENT_UPLOADED | 上传结束后触发 |
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|