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.

42 lines
825 B

7 years ago
# file_manager
7 years ago
## 文件管理器
{% method %}
[source](https://jsfiddle.net/fineui/2g4k0kxh/)
{% common %}
```javascript
BI.createWidget({
type: "bi.file_manager",
items: [{
id: "1",
value: "1",
text: "根目录"
}, {
id: "11",
pId: "1",
value: "11",
text: "第一级子目录1"
}, {
id: "12",
pId: "1",
value: "12",
text: "第一级子目录2"
}]
})
```
{% endmethod %}
##方法
| 方法 | 说明 |
| :------ |:------------- |
| getSelectedValue() | 获取当前选中项的value值 |
| getSelectedId | 获取当前选中项的id属性 |
7 years ago
---