Browse Source

advance few mds

master
iapyang 7 years ago
parent
commit
b7ccaa2d00
  1. 2
      uidoc/base/table/collection_table.md
  2. 3
      uidoc/base/table/table_view.md
  3. 13
      uidoc/case/table/layer_tree_table.md
  4. 15
      uidoc/case/table/tree_table.md
  5. 2
      uidoc/case/tree/branch_tree.md
  6. 2
      uidoc/case/tree/handstand_branch_tree.md

2
uidoc/base/table/collection_table.md

@ -3,7 +3,7 @@
### 继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/0e7p2ezc/)
[source](https://jsfiddle.net/fineui/x2zxfzhp/)
{% common %}
```javascript

3
uidoc/base/table/table_view.md

@ -1,6 +1,6 @@
# bi.table_view
### 表格展示控件
### 能处理静态宽度以及动态宽度的
{% method %}
[source](https://jsfiddle.net/fineui/mbazb80a/)
@ -25,7 +25,6 @@ BI.createWidget({
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ------------- | -------------------- | ----------------- |
| isNeedResize | 是否需要调整大小 | boolean | false |
| isNeedMerge | 是否需要合并单元格 | boolean | false |
| mergeCols | 合并的单元格列号 | array | [] |
| mergeRule | 合并规则, 默认相等时合并 | function(row1, row2) | 默认row1 = row2 时合并 |

13
uidoc/case/table/layer_tree_table.md

@ -7,7 +7,18 @@
{% common %}
```javascript
// More coming...
var table = BI.createWidget({
type: "bi.layer_tree_table",
width: 600,
height: 400,
columnSize: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
minColumnSize: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
header: header,
items: items,
crossHeader: crossHeader,
crossItems: crossItems,
element: 'body',
});
```
{% endmethod %}

15
uidoc/case/table/tree_table.md

@ -3,11 +3,22 @@
### 树状结构的表格
{% method %}
[source](https://jsfiddle.net/fineui/pqyuLoay/)
[source](https://jsfiddle.net/fineui/a0m21ozk/)
{% common %}
```javascript
// More coming...
var table = BI.createWidget({
type: "bi.tree_table",
width: 600,
height: 400,
columnSize: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
minColumnSize: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
header: header,
items: items,
crossHeader: crossHeader,
crossItems: crossItems,
element: 'body',
});
```
{% endmethod %}

2
uidoc/case/tree/branch_tree.md

@ -29,7 +29,7 @@ BI.createWidget({
| 参数 | 说明 | 类型 | 默认值 |
| -------- | -------------------- | ------ | ---- |
| expander | branch_expander组件配置项 | object | {} |
| el | | object | {} |
| el | 基础元素 | object | {} |
| items | 子项 | array | [] |

2
uidoc/case/tree/handstand_branch_tree.md

@ -1,4 +1,4 @@
# bi.branch_tree
# bi.handstand_branch_tree
### 纵向分支的树
{% method %}

Loading…
Cancel
Save