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.branch_tree
|
|
|
|
### 横向分支的树
|
|
|
|
|
|
|
|
{% method %}
|
|
|
|
[source](https://jsfiddle.net/fineui/mLq3e170/)
|
|
|
|
|
|
|
|
{% common %}
|
|
|
|
```javascript
|
|
|
|
BI.createWidget({
|
|
|
|
type: "bi.branch_tree",
|
|
|
|
element: 'body',
|
|
|
|
items: [{
|
|
|
|
el: {},
|
|
|
|
children: [{
|
|
|
|
el: {},
|
|
|
|
children: {},
|
|
|
|
// ...
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
```
|
|
|
|
|
|
|
|
{% endmethod %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 参数设置
|
|
|
|
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
|
|
| -------- | -------------------- | ------ | ---- |
|
|
|
|
| expander | branch_expander组件配置项 | object | {} |
|
|
|
|
| el | | object | {} |
|
|
|
|
| items | 子项 | array | [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
|
|
| 方法名 | 说明 | 回调参数 |
|
|
|
|
| -------- | ------ | ---- |
|
|
|
|
| populate | 去掉所有内容 | — |
|
|
|
|
| getValue | 获取所选项值 | — |
|
|
|
|
|