guy 7 years ago
parent
commit
2a01c7815c
  1. 8
      demo/version.js
  2. 8
      public/js/index.js
  3. 35
      uidoc/SUMMARY.md
  4. 66
      uidoc/base/table/table_view.md
  5. 8
      uidoc/book.json
  6. 27
      uidoc/core/layout/float_center.md
  7. 37
      uidoc/core/layout/table.md
  8. 38
      uidoc/core/layout/td.md
  9. 2
      uidoc/detailed/bi.multi_select_item.md
  10. 2
      uidoc/detailed/bi.segment.md
  11. 2
      uidoc/detailed/bi.single_select_item.md
  12. 2
      uidoc/detailed/combo/multilayer_select_tree_combo.md
  13. 2
      uidoc/detailed/combo/multilayer_single_tree_combo.md
  14. 2
      uidoc/detailed/combo/select_tree_combo.md
  15. 2
      uidoc/detailed/combo/single_tree_combo.md
  16. 2
      uidoc/detailed/date/custom_date_time.md
  17. 2
      uidoc/detailed/date/date_combo.md
  18. 2
      uidoc/detailed/date/date_pane_widget.md
  19. 2
      uidoc/detailed/date/year_month_combo.md
  20. 2
      uidoc/detailed/date/year_quarter_combo.md
  21. 2
      uidoc/detailed/dialog.md
  22. 2
      uidoc/detailed/down_list_combo.md
  23. 2
      uidoc/detailed/file_manager.md
  24. 2
      uidoc/detailed/month_combo.md
  25. 2
      uidoc/detailed/multi_select_combo.md
  26. 2
      uidoc/detailed/numeric_interval.md
  27. 2
      uidoc/detailed/path/direction_path_chooser.md
  28. 2
      uidoc/detailed/path/path_chooser.md
  29. 2
      uidoc/detailed/quarter_combo.md
  30. 2
      uidoc/detailed/relation_view.md
  31. 31
      uidoc/detailed/table/bi.excel_table.md
  32. 2
      uidoc/detailed/table/bi.page_table.md
  33. 30
      uidoc/detailed/table/bi.preview_table.md
  34. 29
      uidoc/detailed/table/bi.responsive_table.md
  35. 2
      uidoc/detailed/text_input/finetuning_number_editor.md
  36. 16
      uidoc/detailed/tree/bi.multi_tree_combo.md
  37. 11
      uidoc/detailed/tree/bi.switch_tree.md
  38. 2
      uidoc/detailed/year_combo.md
  39. 1
      uidoc/package.json

8
demo/version.js

@ -18,4 +18,12 @@ BI.i18n = {
"BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度"
};

8
public/js/index.js

@ -13,4 +13,12 @@ BI.i18n = {
"BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度"
};

35
uidoc/SUMMARY.md

@ -138,14 +138,39 @@
* [各种节点nodes](detailed/bi.button/node.md)
* [各种segment](detailed/bi.button/segment.md)
* 树形结构
* [bi.multi_tree_combo](detailed/tree/bi.multi_tree_combo.md)
* [bi.switch_tree](detailed/tree/bi.switch_tree.md)
* [multi_tree_combo](detailed/tree/bi.multi_tree_combo.md)
* [switch_tree](detailed/tree/bi.switch_tree.md)
* 表格
* [bi.preview_table](detailed/table/bi.preview_table.md)
* [bi.responsive_table](detailed/table/bi.responsive_table.md)
* [bi.excel_table](detailed/table/bi.excel_table.md)
* [preview_table](detailed/table/bi.preview_table.md)
* [responsive_table](detailed/table/bi.responsive_table.md)
* [excel_table](detailed/table/bi.excel_table.md)
* [page_table](detailed/table/bi.page_table.md)
* 文本框控件
* [bi.text_editor](detailed/text_input/bi.text_editor.md)
* [bi.search_editor](detailed/text_input/bi.search_editor.md)
* [bi.clear_editor](detailed/text_input/bi.clear_editor.md)
* [finetuning_number_editor](detailed/text_input/finetuning_number_editor.md)
* [year_combo](detailed/year_combo.md)
* [month_combo](detailed/month_combo.md)
* [quarter_combo](detailed/quarter_combo.md)
* [down_list_combo](detailed/down_list_combo.md)
* [numeric_interval](detailed/numeric_interval.md)
* [multi_select_combo](detailed/multi_select_combo.md)
* 简单日期控件
* [date_combo](detailed/date/date_combo.md)
* [date_pane_widget](detailed/date/date_pane_widget.md)
* [year_month_combo](detailed/date/year_month_combo.md)
* [year_quarter_combo](detailed/date/year_quarter_combo.md)
* [custom_date_time](detailed/date/custom_date_time.md)
* 简单下拉树
* [single_tree_combo](detailed/combo/single_tree_combo.md)
* [multilayer_single_tree_combo](detailed/combo/multilayer_single_tree_combo.md)
* [select_tree_combo](detailed/combo/select_tree_combo.md)
* [multilayer_select_tree_combo](detailed/combo/multilayer_select_tree_combo.md)
* 路径选择
* [path_chooser](detailed/path/path_chooser.md)
* [direction_path_chooser](detailed/path/direction_path_chooser.md)
* [relation_view](detailed/relation_view.md)
* [dialog](detailed/dialog.md)
* [file_manager](detailed/file_manager.md)

66
uidoc/base/table/table_view.md

@ -1,2 +1,66 @@
# table_view
# bi.table_view
### 表格展示控件
{% method %}
[source](https://jsfiddle.net/fineui/mbazb80a/)
{% common %}
```javascript
BI.createWidget({
type: "bi.table_view",
element: 'body',
isNeedMerge: true,
isNeedFreeze: true,
freezeCols: [0, 1],
mergeCols: [0, 1],
columnSize: [100, 200, 300, 400, 500],
items: [],
header: []
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ------------- | -------------------- | ----------------- |
| isNeedResize | 是否需要调整大小 | bool | false |
| isResizeAdapt | 是否调整时自适应 | bool | true |
| isNeedMerge | 是否需要合并单元格 | bool | false |
| mergeCols | 合并的单元格列号 | array | [] |
| mergeRule | 合并规则, 默认相等时合并 | function(row1, row2) | 默认row1 = row2 时合并 |
| columnSize | 单元格宽度集合 | array | [] |
| headerRowSize | 表头高度 | number | 37 |
| footerRowSize | 表尾高度 | number | 37 |
| rowSize | 普通单元格高度 | number | 37 |
| regionColumnSize | 列项间的 | array | [82, ""] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ |
| resize | 调整表格 | resize() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| getCalculateColumnSize | 获得计算后的列宽 | getCalculateColumnSize() |
| setHeaderColumnSize | 设置表头的列宽 | setHeaderColumnSize(columnSize) |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| getCalculateRegionColumnSize | 获取计算后的列项之间的间隙 | getCalculateRegionColumnSize() |
| getCalculateRegionRowSize | 获取计算后的列项上下之间的间隙 | getCalculateRegionRowSize() |
| getClientRegionColumnSize | 获取浏览器中显示的列项之间的间隙 | getClientRegionColumnSize() |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | getScrollRegionColumnSize() |
| getScrollRegionRowSize | 获取纵向滚动条宽度 | getScrollRegionRowSize() |
| hasVerticalScroll | 是否含有数值滚动条 | hasVerticalScroll() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| getColumns | 获取列项 | getColumns() |
| resizeHeader | 调整表头 | resizeHeader() |
| attr | 设置属性 | attr(key, value) |
| populate | 增加行 | populate(rows) |
| destroy | 摧毁表 | destroy() |

8
uidoc/book.json

@ -2,11 +2,12 @@
"plugins": [
"jsfiddle",
"splitter",
"theme-api"
"theme-api",
"expandable-chapters"
],
"pluginsConfig": {
"theme-default": {
"showLevel": true
"showLevel": false
},
"jsfiddle": {
"type": "script",
@ -18,6 +19,7 @@
"height": "100",
"width": "500",
"fontColor": "00FF00"
}
},
"expandable-chapters":{}
}
}

27
uidoc/core/layout/float_center.md

@ -1,39 +1,30 @@
# bi.float_center
#### 浮动布局实现的居中容器
{% method %}
[source](https://jsfiddle.net/fineui/8fd2nvkm/)
[source](https://jsfiddle.net/fineui/1vgn555m/)
{% common %}
```javascript
Demo = {};
Demo.CenterLayout = BI.inherit(BI.Widget, {
Demo.FloatCenterLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-center"
baseCls: "demo-float-center"
},
render: function () {
return {
type: "bi.center",
type: "bi.float_center",
items: [{
type: "bi.label",
text: "Center 1,这里虽然设置label的高度30,但是最终影响高度的是center布局",
text: "floatCenter与center的不同在于,它可以控制最小宽度和最大宽度",
cls: "layout-bg1",
whiteSpace: "normal"
},{
}, {
type: "bi.label",
text: "Center 2,为了演示label是占满整个的,用了一个whiteSpace:normal",
text: "floatCenter与center的不同在于,它可以控制最小宽度和最大宽度",
cls: "layout-bg2",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 3",
cls: "layout-bg3"
},{
type: "bi.label",
text: "Center 4",
cls: "layout-bg5"
}],
height: 300,
hgap: 20,
@ -41,9 +32,9 @@ Demo.CenterLayout = BI.inherit(BI.Widget, {
}
}
});
BI.shortcut("demo.center_layout", Demo.CenterLayout);
BI.shortcut("demo.float_center", Demo.FloatCenterLayout);
BI.createWidget({
type: 'demo.center_layout',
type: 'demo.float_center',
element: "#wrapper",
});

37
uidoc/core/layout/table.md

@ -1,2 +1,37 @@
# table
# bi.table
### table作为一个列表集合存在,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/8t2en619/)
{% common %}
```javascript
BI.createWidget({
element: "body",
type: "bi.table",
items: [],
columnSize: [100, "fill", 200],
rowSize: [10, 30, 50, 70, 90, 110, 130],
hgap: 20,
vgap: 10
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------- | --------- | ------------ | ---------------------------------------- |
| scrolly | 是否出现滚动条 | bool | true |
| columnSize | 列项宽度 | array/number | [200, 200, 'fill'] |
| rowSize | 行高 | array/number | 30 |
| hgap | 内部元素间纵向距离 | number | 0 |
| vgap | 内部元素间横向距离 | number | 0 |
| items | 子项 | array | [{width: 100,el: {type: 'bi.button', text: 'button1'}},{width: 'fill',el: {type: 'bi.button', text: 'button2'}},{width: 200,el: {type: 'bi.button', text: 'button3'}}] |
## 方法
| 方法名 | 说明 | 用法 |
| :------- | ------ | ---------------- |
| addItem | 增加内容 | addItem(arr) |
| populate | 更换新的内容 | poplulate(items) |

38
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) |

2
uidoc/detailed/bi.multi_select_item.md

@ -1,2 +0,0 @@
# 复选框

2
uidoc/detailed/bi.segment.md

@ -1,2 +0,0 @@
# segment组件

2
uidoc/detailed/bi.single_select_item.md

@ -1,2 +0,0 @@
# 单选框

2
uidoc/detailed/combo/multilayer_select_tree_combo.md

@ -0,0 +1,2 @@
# multilayer_select_tree_combo

2
uidoc/detailed/combo/multilayer_single_tree_combo.md

@ -0,0 +1,2 @@
# multilayer_single_tree_combo

2
uidoc/detailed/combo/select_tree_combo.md

@ -0,0 +1,2 @@
# select_tree_combo

2
uidoc/detailed/combo/single_tree_combo.md

@ -0,0 +1,2 @@
# single_tree_combo

2
uidoc/detailed/date/custom_date_time.md

@ -0,0 +1,2 @@
# custom_date_time

2
uidoc/detailed/date/date_combo.md

@ -0,0 +1,2 @@
# date_combo

2
uidoc/detailed/date/date_pane_widget.md

@ -0,0 +1,2 @@
# date_pane_widget

2
uidoc/detailed/date/year_month_combo.md

@ -0,0 +1,2 @@
# year_month_combo

2
uidoc/detailed/date/year_quarter_combo.md

@ -0,0 +1,2 @@
# year_quarter_combo

2
uidoc/detailed/dialog.md

@ -0,0 +1,2 @@
# dialog

2
uidoc/detailed/down_list_combo.md

@ -0,0 +1,2 @@
# down_list_combo

2
uidoc/detailed/file_manager.md

@ -0,0 +1,2 @@
# file_manager

2
uidoc/detailed/month_combo.md

@ -0,0 +1,2 @@
# month_combo

2
uidoc/detailed/multi_select_combo.md

@ -0,0 +1,2 @@
# multi_select_combo

2
uidoc/detailed/numeric_interval.md

@ -0,0 +1,2 @@
# numeric_interval

2
uidoc/detailed/path/direction_path_chooser.md

@ -0,0 +1,2 @@
# direction_path_chooser

2
uidoc/detailed/path/path_chooser.md

@ -0,0 +1,2 @@
# path_chooser

2
uidoc/detailed/quarter_combo.md

@ -0,0 +1,2 @@
# quarter_combo

2
uidoc/detailed/relation_view.md

@ -0,0 +1,2 @@
# relation_view

31
uidoc/detailed/table/bi.excel_table.md

@ -1,6 +1,6 @@
# bi.excel_table
### 类似excel式的表格
### 类似excel式的表格,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/cbmv07g4/)
@ -48,11 +48,36 @@ BI.createWidget({
| headerRowSize | 表头高度 | number | 37 |
| footerRowSize | 表尾高度 | number | 37 |
| rowSize | 普通单元格高度 | number | 37 |
| regionColumnSize | | bool | false |
| regionColumnSize | 列项间的 | array | [82, ""] |
| items | 子组件 | array | [] |
## 方法
### 参见[Table](#)方法
| 方法名 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ |
| resize | 调整表格 | resize() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| getCalculateColumnSize | 获得计算后的列宽 | getCalculateColumnSize() |
| setHeaderColumnSize | 设置表头的列宽 | setHeaderColumnSize(columnSize) |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| getCalculateRegionColumnSize | 获取计算后的列项之间的间隙 | getCalculateRegionColumnSize() |
| getCalculateRegionRowSize | 获取计算后的列项上下之间的间隙 | getCalculateRegionRowSize() |
| getClientRegionColumnSize | 获取浏览器中显示的列项之间的间隙 | getClientRegionColumnSize() |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | getScrollRegionColumnSize() |
| getScrollRegionRowSize | 获取纵向滚动条宽度 | getScrollRegionRowSize() |
| hasVerticalScroll | 是否含有数值滚动条 | hasVerticalScroll() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| getColumns | 获取列项 | getColumns() |
| resizeHeader | 调整表头 | resizeHeader() |
| attr | 设置属性 | attr(key, value) |
| populate | 增加行 | populate(rows) |
| destroy | 摧毁表 | destroy() |

2
uidoc/detailed/table/bi.page_table.md

@ -0,0 +1,2 @@
# page_table

30
uidoc/detailed/table/bi.preview_table.md

@ -1,6 +1,6 @@
# bi.preview_table
### 用于表格预览
### 用于表格预览,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/po4s0hub/)
@ -47,5 +47,29 @@ BI.createWidget({
| items | 子组件 | array | [] |
## 方法
### 参见[Table](#)方法
| 方法名 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ |
| resize | 调整表格 | resize() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| getCalculateColumnSize | 获得计算后的列宽 | getCalculateColumnSize() |
| setHeaderColumnSize | 设置表头的列宽 | setHeaderColumnSize(columnSize) |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| getCalculateRegionColumnSize | 获取计算后的列项之间的间隙 | getCalculateRegionColumnSize() |
| getCalculateRegionRowSize | 获取计算后的列项上下之间的间隙 | getCalculateRegionRowSize() |
| getClientRegionColumnSize | 获取浏览器中显示的列项之间的间隙 | getClientRegionColumnSize() |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | getScrollRegionColumnSize() |
| getScrollRegionRowSize | 获取纵向滚动条宽度 | getScrollRegionRowSize() |
| hasVerticalScroll | 是否含有数值滚动条 | hasVerticalScroll() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| getColumns | 获取列项 | getColumns() |
| resizeHeader | 调整表头 | resizeHeader() |
| attr | 设置属性 | attr(key, value) |
| populate | 增加行 | populate(rows) |
| destroy | 摧毁表 | destroy() |

29
uidoc/detailed/table/bi.responsive_table.md

@ -1,6 +1,6 @@
# bi.responsive_table
### 自适应宽度的表格
### 自适应宽度的表格,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/y70jwztm/)
@ -58,4 +58,29 @@ BI.createWidget({
| crossItems | 交叉表内容二维数组 | array | [] |
## 方法
### 参见[Table](#)方法
| 方法名 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ |
| resize | 调整表格 | resize() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| getCalculateColumnSize | 获得计算后的列宽 | getCalculateColumnSize() |
| setHeaderColumnSize | 设置表头的列宽 | setHeaderColumnSize(columnSize) |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| getCalculateRegionColumnSize | 获取计算后的列项之间的间隙 | getCalculateRegionColumnSize() |
| getCalculateRegionRowSize | 获取计算后的列项上下之间的间隙 | getCalculateRegionRowSize() |
| getClientRegionColumnSize | 获取浏览器中显示的列项之间的间隙 | getClientRegionColumnSize() |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | getScrollRegionColumnSize() |
| getScrollRegionRowSize | 获取纵向滚动条宽度 | getScrollRegionRowSize() |
| hasVerticalScroll | 是否含有数值滚动条 | hasVerticalScroll() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| getColumns | 获取列项 | getColumns() |
| resizeHeader | 调整表头 | resizeHeader() |
| attr | 设置属性 | attr(key, value) |
| populate | 增加行 | populate(rows) |
| destroy | 摧毁表 | destroy() |

2
uidoc/detailed/text_input/finetuning_number_editor.md

@ -0,0 +1,2 @@
# finetuning_number_editor

16
uidoc/detailed/tree/bi.multi_tree_combo.md

@ -1,6 +1,6 @@
# bi.multi_tree_combo
### 树下拉框
### 树下拉框,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/caw7efpf/)
@ -55,8 +55,16 @@ BI.createWidget({
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ----- | ------------- | ----- | ---- |
| items | 子项,pId代表父节点ID | array | [] |
| ------------ | ------------- | -------- | ------------- |
| width | 宽度 | number | 200 |
| height | 高度 | number | 30 |
| items | 子项,pId代表父节点ID | array | null |
| itemsCreator | 子项创建函数 | function | function() {} |
## 方法
### 通用方法参见[Tree](#)方法
| 方法名 | 说明 | 用法 |
| -------- | ------- | --------------- |
| setValue | 设置文本框值 | setValue(v) |
| getValue | 获取文本框值 | getValue() |
| populate | 更改树结构内容 | populate(items) |

11
uidoc/detailed/tree/bi.switch_tree.md

@ -1,6 +1,6 @@
# bi.switch_tree
### 可切换树
### 可以单选多选切换,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/crd4z1nd/)
@ -38,11 +38,14 @@ var tree = BI.createWidget({
| items | 子项,pId代表父节点ID | array | [] |
## 方法
### 通用方法参见[Tree](#)方法
| 方法名 | 说明 | 用法 |
| ------------ | ----- | ------------ |
| ------------ | --------- | ------------ |
| switchSelect | 切换树结构 | switchSelect |
| setSelect | 设置选中项 | setSelect(v) |
| getSelect | 获取选中项 | getSelect() |
| setValue | 设置当前选中项内容 | setValue(v) |
| getValue | 获取当前选中项内容 | getValue(v) |
| populate | 更新内容 | populate(items) |

2
uidoc/detailed/year_combo.md

@ -0,0 +1,2 @@
# year_combo

1
uidoc/package.json

@ -22,6 +22,7 @@
"devDependencies": {
"gh-pages": "^1.0.0",
"gitbook-cli": "^2.3.2",
"gitbook-plugin-expandable-chapters": "^0.2.0",
"gitbook-plugin-jsfiddle": "^1.0.0",
"gitbook-plugin-splitter": "0.0.8",
"gitbook-plugin-theme-api": "^1.1.2",

Loading…
Cancel
Save