diff --git a/uidoc/core/layout/table.md b/uidoc/core/layout/table.md index 4ce5c4935..dad1f1ca3 100644 --- a/uidoc/core/layout/table.md +++ b/uidoc/core/layout/table.md @@ -31,7 +31,7 @@ BI.createWidget({ ## 方法 | 方法名 | 说明 | 用法 | -| -------- | ------ | ---------------- | +| :------- | ------ | ---------------- | | addItem | 增加内容 | addItem(arr) | | populate | 更换新的内容 | poplulate(items) | diff --git a/uidoc/core/layout/td.md b/uidoc/core/layout/td.md index e008e91ab..53f047f5d 100644 --- a/uidoc/core/layout/td.md +++ b/uidoc/core/layout/td.md @@ -1,2 +1,38 @@ -# td +# bi.td + +### 单元格控件,继承BI.Layout + +{% 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] | +| hgap | 纵向间隙 | number | 0 | +| vgap | 横向间隙 | number | 0 | +| items | 内容项 | array | [[{el: {text: 'label1'}},{ el: {text: 'label2'},{ el: {text: 'label3'} | + + +## 方法 + +| 方法名 | 说明 | 用法 | +| -------- | ------ | ---------------- | +| addItem | 增加内容 | addItem(arr) | +| populate | 更换新的内容 | poplulate(items) |