From 9e20db886986583429835e01e1b6732c135ee5a9 Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 1 Sep 2017 15:52:50 +0800 Subject: [PATCH] finish detailed --- uidoc/case/tree/branch_relation.md | 2 +- .../combo/multilayer_select_tree_combo.md | 40 +++++++++++++++++- .../combo/multilayer_single_tree_combo.md | 40 +++++++++++++++++- uidoc/detailed/combo/select_tree_combo.md | 40 +++++++++++++++++- uidoc/detailed/combo/single_tree_combo.md | 41 ++++++++++++++++++- 5 files changed, 158 insertions(+), 5 deletions(-) diff --git a/uidoc/case/tree/branch_relation.md b/uidoc/case/tree/branch_relation.md index 235077251..96ebcabaa 100644 --- a/uidoc/case/tree/branch_relation.md +++ b/uidoc/case/tree/branch_relation.md @@ -8,7 +8,7 @@ {% common %} ```javascript var tree = BI.createWidget({ - type: "bi.simple_tree", + type: "bi.branch_relation", element: 'body', items: [], direction: BI.Direction.Right, diff --git a/uidoc/detailed/combo/multilayer_select_tree_combo.md b/uidoc/detailed/combo/multilayer_select_tree_combo.md index 63d7bc4a9..958e74c1b 100644 --- a/uidoc/detailed/combo/multilayer_select_tree_combo.md +++ b/uidoc/detailed/combo/multilayer_select_tree_combo.md @@ -1,2 +1,40 @@ -# multilayer_select_tree_combo +# bi.multilayer_select_tree_combo + +### 多层级下拉可选节点树 + +{% method %} +[source](https://jsfiddle.net/fineui/conjw6dL/) + +{% common %} +```javascript +var tree = BI.createWidget({ + type: "bi.multilayer_select_tree_combo", + element: 'body', + items: [], + text: "默认值", + width: 300, +}); +``` + +{% endmethod %} + + + +### 参数设置 + +| 参数 | 说明 | 类型 | 默认值 | +| ------ | ---- | ------ | ---- | +| height | 高度 | number | 30 | +| text | 文本框值 | string | '' | +| items | 元素 | array | null | + + + +### 方法 + +| 方法名 | 说明 | 回调参数 | +| -------- | ---- | ----------- | +| populate | 刷新内容 | items: 子项数组 | +| setValue | 设置值 | setValue | +| getValue | 获取值 | getValue | diff --git a/uidoc/detailed/combo/multilayer_single_tree_combo.md b/uidoc/detailed/combo/multilayer_single_tree_combo.md index 5fe7cf833..d9ff91c2c 100644 --- a/uidoc/detailed/combo/multilayer_single_tree_combo.md +++ b/uidoc/detailed/combo/multilayer_single_tree_combo.md @@ -1,2 +1,40 @@ -# multilayer_single_tree_combo +# bi.multilayer_single_tree_combo +### 多层级下拉单选树 + +{% method %} +[source](https://jsfiddle.net/fineui/o0u3vp83/) + +{% common %} +```javascript +var tree = BI.createWidget({ + type: "bi.multilayer_single_tree_combo", + element: 'body', + items: [], + text: "默认值", + width: 300, +}); +``` + +{% endmethod %} + + + +### 参数设置 + +| 参数 | 说明 | 类型 | 默认值 | +| ------------ | ----- | -------- | ---------- | +| height | 高度 | number | 30 | +| text | 文本框值 | string | '' | +| itemsCreator | 元素创造器 | function | BI.emptyFn | +| items | 元素 | array | null | + + + +### 方法 + +| 方法名 | 说明 | 回调参数 | +| -------- | ---- | ----------- | +| populate | 刷新内容 | items: 子项数组 | +| setValue | 设置值 | setValue | +| getValue | 获取值 | getValue | \ No newline at end of file diff --git a/uidoc/detailed/combo/select_tree_combo.md b/uidoc/detailed/combo/select_tree_combo.md index 13b21ef6b..8037fb883 100644 --- a/uidoc/detailed/combo/select_tree_combo.md +++ b/uidoc/detailed/combo/select_tree_combo.md @@ -1,2 +1,40 @@ -# select_tree_combo +# bi.select_tree_combo + +### 二级可选节点下拉框树 + +{% method %} +[source](https://jsfiddle.net/fineui/Lgqr17tg/) + +{% common %} +```javascript +var tree = BI.createWidget({ + type: "bi.select_tree_combo", + element: 'body', + items: [], + text: "默认值", + width: 300, +}); +``` + +{% endmethod %} + + + +### 参数设置 + +| 参数 | 说明 | 类型 | 默认值 | +| ------- | ---- | ------ | ---- | +| height | 高度 | number | 30 | +| text | 文本框值 | string | '' | +| items | 元素 | array | null | + + + +### 方法 + +| 方法名 | 说明 | 回调参数 | +| -------- | ---- | ----------- | +| populate | 刷新内容 | items: 子项数组 | +| setValue | 设置值 | setValue | +| getValue | 获取值 | getValue | diff --git a/uidoc/detailed/combo/single_tree_combo.md b/uidoc/detailed/combo/single_tree_combo.md index 1b3a4ce61..b28e14773 100644 --- a/uidoc/detailed/combo/single_tree_combo.md +++ b/uidoc/detailed/combo/single_tree_combo.md @@ -1,2 +1,41 @@ -# single_tree_combo +# bi.single_tree_combo + +### 二级树下拉框 + +{% method %} +[source](https://jsfiddle.net/fineui/oxkb9uw5/) + +{% common %} +```javascript +var tree = BI.createWidget({ + type: "bi.simple_tree_combo", + element: 'body', + items: [], + text: "默认值", + width: 300, +}); +``` + +{% endmethod %} + + + +### 参数设置 + +| 参数 | 说明 | 类型 | 默认值 | +| ------- | ---- | ------ | ---- | +| trigger | | object | {} | +| height | 高度 | number | 30 | +| text | 文本框值 | string | '' | +| items | 元素 | array | null | + + + +### 方法 + +| 方法名 | 说明 | 回调参数 | +| -------- | ---- | ----------- | +| populate | 刷新内容 | items: 子项数组 | +| setValue | 设置值 | setValue | +| getValue | 获取值 | getValue |