From b7ccaa2d00adab6889bb1b0cb4a1159e7d3bcda3 Mon Sep 17 00:00:00 2001 From: iapyang Date: Tue, 5 Sep 2017 14:33:23 +0800 Subject: [PATCH] advance few mds --- uidoc/base/table/collection_table.md | 2 +- uidoc/base/table/table_view.md | 3 +-- uidoc/case/table/layer_tree_table.md | 13 ++++++++++++- uidoc/case/table/tree_table.md | 15 +++++++++++++-- uidoc/case/tree/branch_tree.md | 2 +- uidoc/case/tree/handstand_branch_tree.md | 2 +- 6 files changed, 29 insertions(+), 8 deletions(-) diff --git a/uidoc/base/table/collection_table.md b/uidoc/base/table/collection_table.md index 909c1dbd0..6405d1e09 100644 --- a/uidoc/base/table/collection_table.md +++ b/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 diff --git a/uidoc/base/table/table_view.md b/uidoc/base/table/table_view.md index df5b05b21..6ee3289e9 100644 --- a/uidoc/base/table/table_view.md +++ b/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 时合并 | diff --git a/uidoc/case/table/layer_tree_table.md b/uidoc/case/table/layer_tree_table.md index 9ef18ed69..501784012 100644 --- a/uidoc/case/table/layer_tree_table.md +++ b/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 %} diff --git a/uidoc/case/table/tree_table.md b/uidoc/case/table/tree_table.md index 88db9f097..ec81fc2d6 100644 --- a/uidoc/case/table/tree_table.md +++ b/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 %} diff --git a/uidoc/case/tree/branch_tree.md b/uidoc/case/tree/branch_tree.md index 9f8655c11..d6e397a20 100644 --- a/uidoc/case/tree/branch_tree.md +++ b/uidoc/case/tree/branch_tree.md @@ -29,7 +29,7 @@ BI.createWidget({ | 参数 | 说明 | 类型 | 默认值 | | -------- | -------------------- | ------ | ---- | | expander | branch_expander组件配置项 | object | {} | -| el | | object | {} | +| el | 基础元素 | object | {} | | items | 子项 | array | [] | diff --git a/uidoc/case/tree/handstand_branch_tree.md b/uidoc/case/tree/handstand_branch_tree.md index e21e8af1f..12aa27d3f 100644 --- a/uidoc/case/tree/handstand_branch_tree.md +++ b/uidoc/case/tree/handstand_branch_tree.md @@ -1,4 +1,4 @@ -# bi.branch_tree +# bi.handstand_branch_tree ### 纵向分支的树 {% method %}