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.

37 lines
821 B

7 years ago
# bi.td
7 years ago
### 单元格布局
7 years ago
{% method %}
[source](https://jsfiddle.net/fineui/v4jrz6a3/)
{% common %}
```javascript
BI.createWidget({
type: "bi.td",
element: 'body',
columnSize: [20, 20, 'fill'],
items: []
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 默认值 |
| ---------- | ---- | ------ | ---------------------------------------- |
| columnSize | 列宽 | array | [200, 200, 200] |
| items | 内容项 | array | [[{el: {text: 'label1'}},{ el: {text: 'label2'},{ el: {text: 'label3'} |
## 方法
| 方法名 | 说明 | 用法 |
| -------- | ------ | ---------------- |
| addItem | 增加内容 | addItem(arr) |
| populate | 更换新的内容 | poplulate(items) |
7 years ago