guy 7 years ago
parent
commit
6beac314f8
  1. 4
      dist/bundle.min.js
  2. 2
      docs/.gitignore
  3. 5
      docs/OVERVIEW.md
  4. 20
      docs/README.md
  5. 3
      docs/START.md
  6. 176
      docs/SUMMARY.md
  7. 2
      docs/_book/.gitignore
  8. 0
      docs/_book/LICENSE
  9. 6
      docs/_book/OVERVIEW.html
  10. 6
      docs/_book/START.html
  11. 6
      docs/_book/base/bubble.html
  12. 40
      docs/_book/base/bubble.md
  13. 6
      docs/_book/base/button/button.html
  14. 70
      docs/_book/base/button/button.md
  15. 6
      docs/_book/base/button/icon_button.html
  16. 39
      docs/_book/base/button/icon_button.md
  17. 6
      docs/_book/base/button/image_button.html
  18. 49
      docs/_book/base/button/image_button.md
  19. 6
      docs/_book/base/button/text_button.html
  20. 58
      docs/_book/base/button/text_button.md
  21. 6
      docs/_book/base/canvas.html
  22. 40
      docs/_book/base/canvas.md
  23. 6
      docs/_book/base/editor/code_editor.html
  24. 53
      docs/_book/base/editor/code_editor.md
  25. 6
      docs/_book/base/editor/editor.html
  26. 89
      docs/_book/base/editor/editor.md
  27. 6
      docs/_book/base/editor/formula_editor.html
  28. 59
      docs/_book/base/editor/formula_editor.md
  29. 6
      docs/_book/base/editor/multifile_editor.html
  30. 51
      docs/_book/base/editor/multifile_editor.md
  31. 6
      docs/_book/base/editor/textarea_editor.html
  32. 45
      docs/_book/base/editor/textarea_editor.md
  33. 6
      docs/_book/base/label.html
  34. 67
      docs/_book/base/label.md
  35. 6
      docs/_book/base/message.html
  36. 39
      docs/_book/base/message.md
  37. 6
      docs/_book/base/pager.html
  38. 68
      docs/_book/base/pager.md
  39. 6
      docs/_book/base/svg.html
  40. 55
      docs/_book/base/svg.md
  41. 6
      docs/_book/base/table/collection_table.html
  42. 74
      docs/_book/base/table/collection_table.md
  43. 6
      docs/_book/base/table/grid_table.html
  44. 59
      docs/_book/base/table/grid_table.md
  45. 6
      docs/_book/base/table/resizable_table.html
  46. 77
      docs/_book/base/table/resizable_table.md
  47. 6
      docs/_book/base/table/table_view.html
  48. 73
      docs/_book/base/table/table_view.md
  49. 6
      docs/_book/base/toast.html
  50. 42
      docs/_book/base/toast.md
  51. 6
      docs/_book/case/button/multi_select_item.html
  52. 53
      docs/_book/case/button/multi_select_item.md
  53. 6
      docs/_book/case/button/single_select_item.html
  54. 54
      docs/_book/case/button/single_select_item.md
  55. 6
      docs/_book/case/button/single_select_radio_item.html
  56. 55
      docs/_book/case/button/single_select_radio_item.md
  57. 6
      docs/_book/case/calendar.html
  58. 47
      docs/_book/case/calendar.md
  59. 6
      docs/_book/case/clipboard.html
  60. 33
      docs/_book/case/clipboard.md
  61. 6
      docs/_book/case/color_chooser.html
  62. 32
      docs/_book/case/color_chooser.md
  63. 6
      docs/_book/case/color_chooser_popup.html
  64. 45
      docs/_book/case/color_chooser_popup.md
  65. 6
      docs/_book/case/combo/bubble_combo.html
  66. 86
      docs/_book/case/combo/bubble_combo.md
  67. 6
      docs/_book/case/combo/icon_combo.html
  68. 68
      docs/_book/case/combo/icon_combo.md
  69. 6
      docs/_book/case/combo/static_combo.html
  70. 58
      docs/_book/case/combo/static_combo.md
  71. 6
      docs/_book/case/combo/text_value_combo.html
  72. 58
      docs/_book/case/combo/text_value_combo.md
  73. 6
      docs/_book/case/combo/text_value_downlist_combo.html
  74. 65
      docs/_book/case/combo/text_value_downlist_combo.md
  75. 6
      docs/_book/case/complex_canvas.html
  76. 37
      docs/_book/case/complex_canvas.md
  77. 6
      docs/_book/case/editor/shelter_editor.html
  78. 93
      docs/_book/case/editor/shelter_editor.md
  79. 6
      docs/_book/case/editor/sign_editor.html
  80. 91
      docs/_book/case/editor/sign_editor.md
  81. 6
      docs/_book/case/editor/sign_initial_editor.html
  82. 92
      docs/_book/case/editor/sign_initial_editor.md
  83. 6
      docs/_book/case/editor/state_editor.html
  84. 89
      docs/_book/case/editor/state_editor.md
  85. 6
      docs/_book/case/layer/layer_panel.html
  86. 69
      docs/_book/case/layer/layer_panel.md
  87. 6
      docs/_book/case/layer/multi_popup_layer.html
  88. 34
      docs/_book/case/layer/multi_popup_layer.md
  89. 6
      docs/_book/case/layer/pane_list.html
  90. 74
      docs/_book/case/layer/pane_list.md
  91. 6
      docs/_book/case/layer/panel.html
  92. 54
      docs/_book/case/layer/panel.md
  93. 6
      docs/_book/case/list/list.select.html
  94. 59
      docs/_book/case/list/list.select.md
  95. 6
      docs/_book/case/loader/lazy_loader.html
  96. 43
      docs/_book/case/loader/lazy_loader.md
  97. 6
      docs/_book/case/loader/list_loader.html
  98. 54
      docs/_book/case/loader/list_loader.md
  99. 6
      docs/_book/case/loader/sort_list.html
  100. 54
      docs/_book/case/loader/sort_list.md
  101. Some files were not shown because too many files have changed in this diff Show More

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
docs/.gitignore vendored

@ -10,5 +10,5 @@ dist
archive
archive.zip
*.log
_book
#_book
test

5
docs/OVERVIEW.md

@ -0,0 +1,5 @@
# 通用规范
1. 控件都会提供setValue, getValue, populate这几个方法来设置值,获取值(展示类控件除外)和刷新控件
2. 控件都会提供setEnable, setVisible, setValid这几个方法来设置使能,是否可见,是否有效状态,并且在fineui2.0之后,会自动给子组件设置同样的状态,不要重写这些方法,一些需要在设置状态时的额外操作可以通过重写_setXXX来实现
3. 使用populate来清空或者重置布局,不要使用empty, 慎用resize
4. 谨慎监听和触发BI.Controller.EVENT_CHANGE事件,一般来说,控件都会有一个BI.ClassName.EVENT_CHANGE事件,一些特殊的事件会在对应控件文档中列出

20
docs/README.md

@ -0,0 +1,20 @@
# FineUIdocs
FineUI文档
## 文档地址
GithubPages: [https://fanruan.github.io/fineui](https://fanruan.github.io/fineui)
CodingPages: [http://fanruan.coding.me/fineui](http://fanruan.coding.me/fineui)
## Demo
CodingPages: [http://fanruan.coding.me/fineui/dist/index.html](http://fanruan.coding.me/fineui/dist/index.html)
## 代码设计文档
KMS: [http://www.finedevelop.com/display/DR/FineUI](http://www.finedevelop.com/display/DR/FineUI)

3
docs/START.md

@ -0,0 +1,3 @@
## 开发教程
KMS: [http://www.finedevelop.com/pages/viewpage.action?pageId=15330077](http://www.finedevelop.com/pages/viewpage.action?pageId=15330077)

176
docs/SUMMARY.md

@ -0,0 +1,176 @@
# Summary
## 总览
* [概览](README.md)
* [起步](START.md)
## 通用规范
* [通用规范](OVERVIEW.md)
## 核心控件
* 布局
* [vertical](core/layout/vertical.md)
* [horizontal](core/layout/horizontal.md)
* [htape](core/layout/htape.md)
* [vtape](core/layout/vtape.md)
* [center_adapt](core/layout/center_adapt.md)
* [vertical_adapt](core/layout/vertical_adapt.md)
* [left_right_vertical_adapt](core/layout/left_right_vertical_adapt.md)
* [flow](core/layout/flow.md)
* [center](core/layout/center.md)
* [horizontal_adapt](core/layout/horizontal_adapt.md)
* [horizontal_auto](core/layout/horizontal_auto.md)
* [horizontal_float](core/layout/horizontal_float.md)
* [float_center](core/layout/float_center.md)
* [border](core/layout/border.md)
* [grid](core/layout/grid.md)
* [table](core/layout/table.md)
* [td](core/layout/td.md)
* 抽象控件
* [button_group](core/abstract/button_group.md)
* [button_tree](core/abstract/button_tree.md)
* [virtual_group](core/abstract/virtual_group.md)
* [custom_tree](core/abstract/custom_tree.md)
* [grid_view](core/abstract/grid_view.md)
* [collection_view](core/abstract/collection_view.md)
* [virtual_list](core/abstract/virtual_list.md)
* 组合控件
* [combo](core/combination/bi.combo.md)
* [expander](core/combination/bi.expander.md)
* [group_combo](core/combination/group_combo.md)
* [loader](core/combination/loader.md)
* [navigation](core/combination/navigation.md)
* [searcher](core/combination/searcher.md)
* [switcher](core/combination/switcher.md)
* [tab](core/combination/tab.md)
* 弹出层
* [float_box](core/layer/layer_float_box.md)
* [popup](core/layer/layer_popup.md)
* [searcher](core/layer/layer_searcher.md)
* [widget](core/widget.md)
* [single](core/single.md)
* [basic_button](core/basic_button.md)
* [node_button](core/node_button.md)
* [pane](core/pane.md)
## 基础控件
* [label](base/label.md)
* [bubble](base/bubble.md)
* [toast](base/toast.md)
* [message](base/message.md)
* 按钮
* [button](base/button/button.md)
* [text_button](base/button/text_button.md)
* [icon_button](base/button/icon_button.md)
* [image_button](base/button/image_button.md)
* 编辑框
* [editor](base/editor/editor.md)
* [code_editor](base/editor/code_editor.md)
* [multifile_editor](base/editor/multifile_editor.md)
* [textarea_editor](base/editor/textarea_editor.md)
* [formula_editor](base/editor/formula_editor.md)
* 表格
* [table_view](base/table/table_view.md)
* [grid_table](base/table/grid_table.md)
* [collection_table](base/table/collection_table.md)
* [resizable_table](base/table/resizable_table.md)
* [pager](base/pager.md)
* [svg](base/svg.md)
* [canvas](base/canvas.md)
## 实例控件
* 按钮
* [multi_select_item](case/button/multi_select_item.md)
* [single_select_item](case/button/single_select_item.md)
* [single_select_radio_item](case/button/single_select_radio_item.md)
* 编辑框
* [shelter_editor](case/editor/shelter_editor.md)
* [sign_editor](case/editor/sign_editor.md)
* [sign_initial_editor](case/editor/sign_initial_editor.md)
* [state_editor](case/editor/state_editor.md)
* 弹出层
* [multi_popup_layer](case/layer/multi_popup_layer.md)
* [layer_panel](case/layer/layer_panel.md)
* [pane_list](case/layer/pane_list.md)
* [panel](case/layer/panel.md)
* 列表
* [select_list](case/list/list.select.md)
* [lazy_loader](case/loader/lazy_loader.md)
* [list_loader](case/loader/list_loader.md)
* [sort_list](case/loader/sort_list.md)
* 触发器
* [editor_trigger](case/trigger/editor_trigger.md)
* [icon_trigger](case/trigger/icon_trigger.md)
* [text_trigger](case/trigger/text_trigger.md)
* 下拉框
* [bubble_combo](case/combo/bubble_combo.md)
* [icon_combo](case/combo/icon_combo.md)
* [static_combo](case/combo/static_combo.md)
* [text_value_combo](case/combo/text_value_combo.md)
* [text_value_downlist_combo](case/combo/text_value_downlist_combo.md)
* 树
* [branch_tree](case/tree/branch_tree.md)
* [handstand_branch_tree](case/tree/handstand_branch_tree.md)
* [display_tree](case/tree/display_tree.md)
* [simple_tree](case/tree/simple_tree.md)
* [level_tree](case/tree/level_tree.md)
* [branch_relation](case/tree/branch_relation.md)
* 表格
* [adaptive_table](case/table/adaptive_table.md)
* [tree_table](case/table/tree_table.md)
* [layer_tree_table](case/table/layer_tree_table.md)
* Pager
* [all_count_pager](case/pager/all_count_pager.md)
* [direction_pager](case/pager/direction_pager.md)
* [calendar](case/calendar.md)
* [clipboard](case/clipboard.md)
* [complex_canvas](case/complex_canvas.md)
* [color_chooser](case/color_chooser.md)
* [color_chooser_popup](case/color_chooser_popup.md)
* [segment](case/segment.md)
## 详细控件
* 各种小组件
* [通用按钮](detailed/bi.button/general.md)
* [提示性信息](detailed/bi.button/tooltip.md)
* [各种items](detailed/bi.button/items.md)
* [各种节点nodes](detailed/bi.button/node.md)
* [各种segment](detailed/bi.button/segment.md)
* 树形结构
* [multi_tree_combo](detailed/tree/bi.multi_tree_combo.md)
* [switch_tree](detailed/tree/bi.switch_tree.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)
* [slider](detailed/slider.md)

2
uidoc/_book/.gitignore → docs/_book/.gitignore vendored

@ -10,5 +10,5 @@ dist
archive
archive.zip
*.log
_book
#_book
test

0
uidoc/_book/LICENSE → docs/_book/LICENSE

6
docs/OVERVIEW.html → docs/_book/OVERVIEW.html

@ -2465,7 +2465,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"通用规范","level":"2.1","depth":1,"next":{"title":"布局","level":"3.1","depth":1,"ref":"","articles":[{"title":"vertical","level":"3.1.1","depth":2,"path":"core/layout/vertical.md","ref":"core/layout/vertical.md","articles":[]},{"title":"horizontal","level":"3.1.2","depth":2,"path":"core/layout/horizontal.md","ref":"core/layout/horizontal.md","articles":[]},{"title":"htape","level":"3.1.3","depth":2,"path":"core/layout/htape.md","ref":"core/layout/htape.md","articles":[]},{"title":"vtape","level":"3.1.4","depth":2,"path":"core/layout/vtape.md","ref":"core/layout/vtape.md","articles":[]},{"title":"center_adapt","level":"3.1.5","depth":2,"path":"core/layout/center_adapt.md","ref":"core/layout/center_adapt.md","articles":[]},{"title":"vertical_adapt","level":"3.1.6","depth":2,"path":"core/layout/vertical_adapt.md","ref":"core/layout/vertical_adapt.md","articles":[]},{"title":"left_right_vertical_adapt","level":"3.1.7","depth":2,"path":"core/layout/left_right_vertical_adapt.md","ref":"core/layout/left_right_vertical_adapt.md","articles":[]},{"title":"flow","level":"3.1.8","depth":2,"path":"core/layout/flow.md","ref":"core/layout/flow.md","articles":[]},{"title":"center","level":"3.1.9","depth":2,"path":"core/layout/center.md","ref":"core/layout/center.md","articles":[]},{"title":"horizontal_adapt","level":"3.1.10","depth":2,"path":"core/layout/horizontal_adapt.md","ref":"core/layout/horizontal_adapt.md","articles":[]},{"title":"horizontal_auto","level":"3.1.11","depth":2,"path":"core/layout/horizontal_auto.md","ref":"core/layout/horizontal_auto.md","articles":[]},{"title":"horizontal_float","level":"3.1.12","depth":2,"path":"core/layout/horizontal_float.md","ref":"core/layout/horizontal_float.md","articles":[]},{"title":"float_center","level":"3.1.13","depth":2,"path":"core/layout/float_center.md","ref":"core/layout/float_center.md","articles":[]},{"title":"border","level":"3.1.14","depth":2,"path":"core/layout/border.md","ref":"core/layout/border.md","articles":[]},{"title":"grid","level":"3.1.15","depth":2,"path":"core/layout/grid.md","ref":"core/layout/grid.md","articles":[]},{"title":"table","level":"3.1.16","depth":2,"path":"core/layout/table.md","ref":"core/layout/table.md","articles":[]},{"title":"td","level":"3.1.17","depth":2,"path":"core/layout/td.md","ref":"core/layout/td.md","articles":[]}]},"previous":{"title":"起步","level":"1.2","depth":1,"path":"START.md","ref":"START.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"OVERVIEW.md","mtime":"2017-09-14T06:51:36.967Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"通用规范","level":"2.1","depth":1,"next":{"title":"布局","level":"3.1","depth":1,"ref":"","articles":[{"title":"vertical","level":"3.1.1","depth":2,"path":"core/layout/vertical.md","ref":"core/layout/vertical.md","articles":[]},{"title":"horizontal","level":"3.1.2","depth":2,"path":"core/layout/horizontal.md","ref":"core/layout/horizontal.md","articles":[]},{"title":"htape","level":"3.1.3","depth":2,"path":"core/layout/htape.md","ref":"core/layout/htape.md","articles":[]},{"title":"vtape","level":"3.1.4","depth":2,"path":"core/layout/vtape.md","ref":"core/layout/vtape.md","articles":[]},{"title":"center_adapt","level":"3.1.5","depth":2,"path":"core/layout/center_adapt.md","ref":"core/layout/center_adapt.md","articles":[]},{"title":"vertical_adapt","level":"3.1.6","depth":2,"path":"core/layout/vertical_adapt.md","ref":"core/layout/vertical_adapt.md","articles":[]},{"title":"left_right_vertical_adapt","level":"3.1.7","depth":2,"path":"core/layout/left_right_vertical_adapt.md","ref":"core/layout/left_right_vertical_adapt.md","articles":[]},{"title":"flow","level":"3.1.8","depth":2,"path":"core/layout/flow.md","ref":"core/layout/flow.md","articles":[]},{"title":"center","level":"3.1.9","depth":2,"path":"core/layout/center.md","ref":"core/layout/center.md","articles":[]},{"title":"horizontal_adapt","level":"3.1.10","depth":2,"path":"core/layout/horizontal_adapt.md","ref":"core/layout/horizontal_adapt.md","articles":[]},{"title":"horizontal_auto","level":"3.1.11","depth":2,"path":"core/layout/horizontal_auto.md","ref":"core/layout/horizontal_auto.md","articles":[]},{"title":"horizontal_float","level":"3.1.12","depth":2,"path":"core/layout/horizontal_float.md","ref":"core/layout/horizontal_float.md","articles":[]},{"title":"float_center","level":"3.1.13","depth":2,"path":"core/layout/float_center.md","ref":"core/layout/float_center.md","articles":[]},{"title":"border","level":"3.1.14","depth":2,"path":"core/layout/border.md","ref":"core/layout/border.md","articles":[]},{"title":"grid","level":"3.1.15","depth":2,"path":"core/layout/grid.md","ref":"core/layout/grid.md","articles":[]},{"title":"table","level":"3.1.16","depth":2,"path":"core/layout/table.md","ref":"core/layout/table.md","articles":[]},{"title":"td","level":"3.1.17","depth":2,"path":"core/layout/td.md","ref":"core/layout/td.md","articles":[]}]},"previous":{"title":"起步","level":"1.2","depth":1,"path":"START.md","ref":"START.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"OVERVIEW.md","mtime":"2017-09-17T09:30:18.175Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
@ -2487,6 +2487,10 @@
<script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>

6
docs/START.html → docs/_book/START.html

@ -2462,7 +2462,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"起步","level":"1.2","depth":1,"next":{"title":"通用规范","level":"2.1","depth":1,"path":"OVERVIEW.md","ref":"OVERVIEW.md","articles":[]},"previous":{"title":"概览","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"START.md","mtime":"2017-09-14T07:03:31.244Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":".","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"起步","level":"1.2","depth":1,"next":{"title":"通用规范","level":"2.1","depth":1,"path":"OVERVIEW.md","ref":"OVERVIEW.md","articles":[]},"previous":{"title":"概览","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"START.md","mtime":"2017-09-17T09:30:18.180Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
@ -2484,6 +2484,10 @@
<script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>

6
docs/base/bubble.html → docs/_book/base/bubble.html

@ -2528,7 +2528,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"bubble","level":"4.2","depth":1,"next":{"title":"toast","level":"4.3","depth":1,"path":"base/toast.md","ref":"base/toast.md","articles":[]},"previous":{"title":"label","level":"4.1","depth":1,"path":"base/label.md","ref":"base/label.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/bubble.md","mtime":"2017-09-06T05:50:42.635Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"bubble","level":"4.2","depth":1,"next":{"title":"toast","level":"4.3","depth":1,"path":"base/toast.md","ref":"base/toast.md","articles":[]},"previous":{"title":"label","level":"4.1","depth":1,"path":"base/label.md","ref":"base/label.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/bubble.md","mtime":"2017-09-17T09:27:52.390Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2550,6 +2550,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

40
docs/_book/base/bubble.md

@ -0,0 +1,40 @@
# bi.bubble
#### 气泡提示
{% method %}
[source](https://jsfiddle.net/fineui/4u705v2v/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.bubble',
element: "#wrapper",
height: 30,
text: "测试"
})
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :---- |:----
| direction | 气泡显示位置 | string | — | "top" |
| height | 气泡高度 | number | — | 35 |
| text | 气泡显示内容 | string | — | " " |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setText | 设置文本值 | 需要设置的文本值text|
---

6
docs/base/button/button.html → docs/_book/base/button/button.html

@ -2708,7 +2708,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"button","level":"4.5.1","depth":2,"next":{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},"previous":{"title":"按钮","level":"4.5","depth":1,"ref":"","articles":[{"title":"button","level":"4.5.1","depth":2,"path":"base/button/button.md","ref":"base/button/button.md","articles":[]},{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},{"title":"image_button","level":"4.5.4","depth":2,"path":"base/button/image_button.md","ref":"base/button/image_button.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/button.md","mtime":"2017-09-07T08:28:11.372Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"button","level":"4.5.1","depth":2,"next":{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},"previous":{"title":"按钮","level":"4.5","depth":1,"ref":"","articles":[{"title":"button","level":"4.5.1","depth":2,"path":"base/button/button.md","ref":"base/button/button.md","articles":[]},{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},{"title":"image_button","level":"4.5.4","depth":2,"path":"base/button/image_button.md","ref":"base/button/image_button.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/button.md","mtime":"2017-09-17T09:27:52.396Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2730,6 +2730,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

70
docs/_book/base/button/button.md

@ -0,0 +1,70 @@
# bi.button
## 文字类型的按钮,基类[BI.BasicButton](/core/basicButton.md)
{% method %}
[source](https://jsfiddle.net/fineui/txqwwzLm/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.button',
element: "#wrapper",
text: '一般按钮',
level: 'common',
height: 30
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值,如果clear属性为true,该属性值置0 | number | — | 10 |
| vgap | 效果相当于文本框上下padding值 | number | — | 0 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| tgap |效果相当于文本框top-padding值 | number | — | 0 |
| bgap | 效果相当于文本框bottom-padding值 | number | — | 0 |
| items | 子控件数组 | array | — | [ ] |
| width | 宽度 | number | — | — |
| height | 高度 | number | — | — |
##### 高级属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| level |按钮类型 | string| common,success,warning,ignore | common |
| minWidth | 最小宽度,如果block/clear中某一项为true,此项值为0,否则为90 | number | — | 90 |
| shadow | 是否显示阴影 | boolean| true,false | props.clear !== true |
| isShadowShowingOnSelected|选中状态下是否显示阴影 | boolean| true,false | true |
| readonly | 是否只读 | boolean | true,false | true |
| iconClass | 图标类型 | string| — | " "|
| block| 是否块状显示,即不显示边框,没有最小宽度的限制 | boolean| true,false | false |
| clear| 是否去掉边框和背景 |boolean| true,false | false |
| textAlign | 文字布局 | string | left,center,right | cneter |
| whiteSpace | 元素内的空白处理方式 | string | normal,nowrap | nowrap|
| forceCenter | 是否无论如何都要居中, 不考虑超出边界的情况, 在未知宽度和高度时有效 | boolean | true,false | false |
| textWidth| 按钮文本宽度 | number| — | null |
| textHeight | 按钮文本高度 | number| — | null |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setText| 设置文本值 | 需要设置的文本值text|
| doClick | 点击事件 | —|
| destroy | 销毁事件 |— |
| setValue | 设置文本值 | 需要设置的文本值text |
---

6
docs/base/button/icon_button.html → docs/_book/base/button/icon_button.html

@ -2520,7 +2520,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"icon_button","level":"4.5.3","depth":2,"next":{"title":"image_button","level":"4.5.4","depth":2,"path":"base/button/image_button.md","ref":"base/button/image_button.md","articles":[]},"previous":{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/icon_button.md","mtime":"2017-09-06T05:50:42.650Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"icon_button","level":"4.5.3","depth":2,"next":{"title":"image_button","level":"4.5.4","depth":2,"path":"base/button/image_button.md","ref":"base/button/image_button.md","articles":[]},"previous":{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/icon_button.md","mtime":"2017-09-17T09:27:52.404Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2542,6 +2542,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

39
docs/_book/base/button/icon_button.md

@ -0,0 +1,39 @@
# bi.icon_button
## 图标button,基类[BI.BasicButton](/core/basicButton.md)
{% method %}
[source](https://jsfiddle.net/fineui/g52u14ay/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.icon_button',
cls: "close-ha-font",
width: 20,
height: 20
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| iconWidth | 图标宽度 | number| — | null |
| iconHeight | 图标高度 | number| — | null |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| doClick | 点击事件 | —|
---

6
docs/base/button/image_button.html → docs/_book/base/button/image_button.html

@ -2565,7 +2565,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"image_button","level":"4.5.4","depth":2,"next":{"title":"编辑框","level":"4.6","depth":1,"ref":"","articles":[{"title":"editor","level":"4.6.1","depth":2,"path":"base/editor/editor.md","ref":"base/editor/editor.md","articles":[]},{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},{"title":"formula_editor","level":"4.6.5","depth":2,"path":"base/editor/formula_editor.md","ref":"base/editor/formula_editor.md","articles":[]}]},"previous":{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/image_button.md","mtime":"2017-09-07T08:28:11.388Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"image_button","level":"4.5.4","depth":2,"next":{"title":"编辑框","level":"4.6","depth":1,"ref":"","articles":[{"title":"editor","level":"4.6.1","depth":2,"path":"base/editor/editor.md","ref":"base/editor/editor.md","articles":[]},{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},{"title":"formula_editor","level":"4.6.5","depth":2,"path":"base/editor/formula_editor.md","ref":"base/editor/formula_editor.md","articles":[]}]},"previous":{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/image_button.md","mtime":"2017-09-17T09:27:52.413Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2587,6 +2587,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

49
docs/_book/base/button/image_button.md

@ -0,0 +1,49 @@
# bi.image_button
## 图片的button,基类[BI.BasicButton](/core/basicButton.md)
{% method %}
[source](https://jsfiddle.net/fineui/yc0g9gLw/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.image_button',
src: "http://www.easyicon.net/api/resizeApi.php?id=1206741&size=128",
width: 100,
height: 100
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| src |图片路径 |string | —|" " |
| iconWidth | 图标宽度 | number/string| — | "100%" |
| iconHeight | 图标高度 | number/string | — | "100%"|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| doClick | 点击事件 | —|
| setWidth | 设置按钮宽度| 宽度width |
| setHeight | 设置按钮高度 | 高度height|
| setImageWidth | 设置图片宽度| 宽度width |
| setImageHeight| 设置图片高度| 高度height|
| getImageWidth | 获取图片宽度| —|
| getImageHeight | 获取图片高度| —|
| setSrc| 设置图片路径| src |
| getSrc |获取图片路径| — |
---

6
docs/base/button/text_button.html → docs/_book/base/button/text_button.html

@ -2624,7 +2624,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"text_button","level":"4.5.2","depth":2,"next":{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},"previous":{"title":"button","level":"4.5.1","depth":2,"path":"base/button/button.md","ref":"base/button/button.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/text_button.md","mtime":"2017-09-07T08:28:11.388Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"text_button","level":"4.5.2","depth":2,"next":{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},"previous":{"title":"button","level":"4.5.1","depth":2,"path":"base/button/button.md","ref":"base/button/button.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/button/text_button.md","mtime":"2017-09-17T09:27:52.419Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2646,6 +2646,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

58
docs/_book/base/button/text_button.md

@ -0,0 +1,58 @@
# bi.text_button
## 可以点击的一行文字,基类[BI.BasicButton](/core/basicButton.md)
{% method %}
[source](https://jsfiddle.net/fineui/5p99L39q/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.text_button',
text: '文字按钮',
height: 30
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值,如果clear属性为true,该属性值置0 | number | — | 10 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| text|按钮文本内容 | string| — | — |
| textWidth| 按钮文本宽度 | number| — | null |
| textHeight | 按钮文本高度 | number| — | null |
##### 高级属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| py | 拼音 | string| | " " |
| textAlign | 文字布局 | string | left,center,right | cneter |
| whiteSpace | 元素内的空白处理方式 | string | normal,nowrap | nowrap|
| forceCenter | 是否无论如何都要居中, 不考虑超出边界的情况, 在未知宽度和高度时有效 | boolean | true,false | false |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setText| 设置文本值 | 需要设置的文本值text|
| doClick | 点击事件 | —|
| setValue | 设置文本值 | 需要设置的文本值text |
| setStyle | 设置文本样式 |需要设置的文本标签样式,例{"color":"#000"} |
---

6
docs/base/canvas.html → docs/_book/base/canvas.html

@ -2527,7 +2527,7 @@ canvas.stroke();
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"canvas","level":"4.10","depth":1,"next":{"title":"按钮","level":"5.1","depth":1,"ref":"","articles":[{"title":"multi_select_item","level":"5.1.1","depth":2,"path":"case/button/multi_select_item.md","ref":"case/button/multi_select_item.md","articles":[]},{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},{"title":"single_select_radio_item","level":"5.1.3","depth":2,"path":"case/button/single_select_radio_item.md","ref":"case/button/single_select_radio_item.md","articles":[]}]},"previous":{"title":"svg","level":"4.9","depth":1,"path":"base/svg.md","ref":"base/svg.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/canvas.md","mtime":"2017-09-06T05:50:42.650Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"canvas","level":"4.10","depth":1,"next":{"title":"按钮","level":"5.1","depth":1,"ref":"","articles":[{"title":"multi_select_item","level":"5.1.1","depth":2,"path":"case/button/multi_select_item.md","ref":"case/button/multi_select_item.md","articles":[]},{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},{"title":"single_select_radio_item","level":"5.1.3","depth":2,"path":"case/button/single_select_radio_item.md","ref":"case/button/single_select_radio_item.md","articles":[]}]},"previous":{"title":"svg","level":"4.9","depth":1,"path":"base/svg.md","ref":"base/svg.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/canvas.md","mtime":"2017-09-17T09:27:52.426Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2549,6 +2549,10 @@ canvas.stroke();
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

40
docs/_book/base/canvas.md

@ -0,0 +1,40 @@
# bi.canvas
## canvas绘图,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/gcgd1va0/)
{% common %}
```javascript
var canvas = BI.createWidget({
type: "bi.canvas",
element: "#wrapper",
width: 500,
height: 600
});
canvas.circle(150, 50, 20, "green");
canvas.stroke();
```
{% endmethod %}
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| line | 绘制线段| (x0, y0, x1, y1) |
| rect | 绘制矩形 | (x,y,w,h,color)分别表示左上角的横坐标、纵坐标,矩形宽、高、以及绘制的颜色|
| circle | 绘制圆形 | (x, y, radius, color)分别表示原点的横坐标,纵坐标,半径以及颜色 |
| hollow | 填充中空的路径 | — |
| solid | 填充实心的路径 | — |
| gradient | 绘制渐变色 | (x0, y0, x1, y1, start, end) |
| reset | 重置画布 | —|
| stroke | 绘制 | callback |
---

6
docs/base/editor/code_editor.html → docs/_book/base/editor/code_editor.html

@ -2581,7 +2581,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"code_editor","level":"4.6.2","depth":2,"next":{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},"previous":{"title":"editor","level":"4.6.1","depth":2,"path":"base/editor/editor.md","ref":"base/editor/editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/code_editor.md","mtime":"2017-09-06T05:50:42.666Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"code_editor","level":"4.6.2","depth":2,"next":{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},"previous":{"title":"editor","level":"4.6.1","depth":2,"path":"base/editor/editor.md","ref":"base/editor/editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/code_editor.md","mtime":"2017-09-17T09:27:52.434Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2603,6 +2603,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

53
docs/_book/base/editor/code_editor.md

@ -0,0 +1,53 @@
# bi.code_editor
## 代码文本框,基类[BI.Single](/core/single.md)
{% method %}
[source](https://jsfiddle.net/fineui/fx86hLgm/)
{% common %}
```javascript
BI.createWidget({
type: "bi.code_editor",
cls: "mvc-border",
width: 600,
height: 400
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| watermark | 文本框placeholder | string | — | " " |
| readOnly | 是否只读 | boolean | true,false | false|
| lineHeight | 行高 | number|— | 2|
| value | 文本框值| string| —| " "|
| paramFormatter| 参数显示值构造函数 | function| — | value |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| insertParam | 插入参数 | param |
| insertString | 插入字符串 | str|
| getValue | 获取文本框值|—|
| setValue | 设置文本框值|value|
| focus | 文本框获取焦点| — |
| blur | 文本框失焦|—|
| setStyle | 设置文本样式 |需要设置的文本标签样式style,例{"color":"#000"} |
| getStyle | 获取文本样式 |— |
| refresh | 刷新文本框 | —|
---

6
docs/base/editor/editor.html → docs/_book/base/editor/editor.html

@ -2755,7 +2755,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"editor","level":"4.6.1","depth":2,"next":{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},"previous":{"title":"编辑框","level":"4.6","depth":1,"ref":"","articles":[{"title":"editor","level":"4.6.1","depth":2,"path":"base/editor/editor.md","ref":"base/editor/editor.md","articles":[]},{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},{"title":"formula_editor","level":"4.6.5","depth":2,"path":"base/editor/formula_editor.md","ref":"base/editor/formula_editor.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/editor.md","mtime":"2017-09-07T08:28:11.388Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"editor","level":"4.6.1","depth":2,"next":{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},"previous":{"title":"编辑框","level":"4.6","depth":1,"ref":"","articles":[{"title":"editor","level":"4.6.1","depth":2,"path":"base/editor/editor.md","ref":"base/editor/editor.md","articles":[]},{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},{"title":"formula_editor","level":"4.6.5","depth":2,"path":"base/editor/formula_editor.md","ref":"base/editor/formula_editor.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/editor.md","mtime":"2017-09-17T09:27:52.441Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2777,6 +2777,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

89
docs/_book/base/editor/editor.md

@ -0,0 +1,89 @@
# bi.editor
## 文本框,基类[BI.Single](/core/single.md)
{% method %}
[source](https://jsfiddle.net/fineui/4eLytgve/)
{% common %}
```javascript
BI.createWidget({
type: "bi.editor",
element: "#wrapper",
errorText: "字段不可重名!",
width: 200,
height: 30
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值 | number | — | 4 |
| vgap | 效果相当于文本框上下padding值 | number | — | 2 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| tgap |效果相当于文本框top-padding值 | number | — | 0 |
| bgap | 效果相当于文本框bottom-padding值 | number | — | 0 |
| validationChecker | 输入较验函数 |function| — | — |
| quitChecker | 是否允许退出编辑函数 | function | — | — |
| allowBlank | 是否允许空值 | boolean | true,false | false |
| watermark | 文本框placeholder | string | — | " " |
| errorText | 错误提示 | string/function | —| " "|
| tipType| 提示类型 | string |success,warning | "warning"|
| inputType| 输入框类型| string| 参考input输入框类型 | "text"|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setErrorText | 设置错误文本 | text |
| getErrorText | 获取错误文本 | —|
| setErrorVisible | 设置错误文本可见|b |
| disableError | 设置error不可用|— |
| enableError| 设置error可用| —|
| disableWaterMark | 设置文本框placeholder不可用| —|
| enableWaterMark | 恢复文本框placeholder可用| — |
| focus | 文本框获取焦点| — |
| blur | 文本框失焦|—|
| selectAll | 选中文本框文本| —|
| onKeyDown |按键事件|key|
| setValue | 设置文本框值|value|
| getLastValidValue | 获取文本框最后一次输入的有效值| —|
| resetLastValidValue| 重置文本框最后一次输入的有效值|value|
| getValue | 获取文本框值|—|
| isEditing | 文本框是否处于编辑状态|—|
| isValid | 文本框值是否有效|—|
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.Editor.EVENT_CHANGE | editor的value发生改变触发 |
|BI.Editor.EVENT_FOCUS | focus事件 |
|BI.Editor.EVENT_BLUR | blur事件 |
|BI.Editor.EVENT_CLICK | 点击编辑框触发(不在编辑状态时) |
|BI.Editor.EVENT_KEY_DOWN | keyDown时触发 |
|BI.Editor.EVENT_SPACE | 按下空格触发 |
|BI.Editor.EVENT_BACKSPACE | 按下Backspace触发 |
|BI.Editor.EVENT_START | 开始输入触发 |
|BI.Editor.EVENT_PAUSE | 暂停输入触发(输入空白字符) |
|BI.Editor.EVENT_STOP | 停止输入触发 |
|BI.Editor.EVENT_CONFIRM | 确定输入触发(blur时且输入值有效) |
|BI.Editor.EVENT_VALID | 输入值有效的状态事件 |
|BI.Editor.EVENT_ERROR | 输入值无效的状态事件 |
|BI.Editor.EVENT_ENTER | 回车事件 |
|BI.Editor.EVENT_RESTRICT | 回车但是值不合法 |
|BI.Editor.EVENT_REMOVE | 输入为空时按下backspace |
|BI.Editor.EVENT_EMPTY | 输入框为空时触发 |
---

6
docs/base/editor/formula_editor.html → docs/_book/base/editor/formula_editor.html

@ -2606,7 +2606,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"formula_editor","level":"4.6.5","depth":2,"next":{"title":"表格","level":"4.7","depth":1,"ref":"","articles":[{"title":"table_view","level":"4.7.1","depth":2,"path":"base/table/table_view.md","ref":"base/table/table_view.md","articles":[]},{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]}]},"previous":{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/formula_editor.md","mtime":"2017-09-07T08:28:11.388Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"formula_editor","level":"4.6.5","depth":2,"next":{"title":"表格","level":"4.7","depth":1,"ref":"","articles":[{"title":"table_view","level":"4.7.1","depth":2,"path":"base/table/table_view.md","ref":"base/table/table_view.md","articles":[]},{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]}]},"previous":{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/formula_editor.md","mtime":"2017-09-17T09:27:52.447Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2628,6 +2628,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

59
docs/_book/base/editor/formula_editor.md

@ -0,0 +1,59 @@
# bi.formula_editor
## 公式编辑控件,基类[BI.Single](/core/single.md)
{% method %}
[source](https://jsfiddle.net/fineui/qnquz4o0/)
{% common %}
```javascript
BI.createWidget({
type: "bi.formula_editor",
cls: "bi-border",
watermark:'请输入公式',
value: 'SUM(C5, 16, 26)',
width: "100%",
height: "100%"
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| value | 文本域的值 | string | — | " "|
| watermark | 文本框placeholder| string | —| " " |
| fieldTextValueMap | 字段集合 | onject | —| {}|
| showHint | 是否显示提示信息 | boolean | true,false | true |
| lineHeight | 行高 | number | —| 2|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| disableWaterMark | 设置文本框placeholder不可用 | — |
| focus | 文本框获取焦点| — |
| insertField | 添加字段 | field |
| insertFunction | 插入函数 | fn |
| insertOperator | 插入操作符| op|
| setFunction | 设置函数 | v|
| insertString | 插入字符串 | str|
| getFormulaString | 获取公式框内容 |— |
| getUsedFields | 获取可用字段 | — |
| getCheckString | 获取校验内容 | — |
| getValue | 获取文本框值|—|
| setValue | 设置文本框值|value|
| setFieldTextValueMap | 设置字段集合 | fieldTextValueMap |
| refresh | 刷新文本框 | —|
---

6
docs/base/editor/multifile_editor.html → docs/_book/base/editor/multifile_editor.html

@ -2571,7 +2571,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"multifile_editor","level":"4.6.3","depth":2,"next":{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},"previous":{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/multifile_editor.md","mtime":"2017-09-07T08:28:11.388Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"multifile_editor","level":"4.6.3","depth":2,"next":{"title":"textarea_editor","level":"4.6.4","depth":2,"path":"base/editor/textarea_editor.md","ref":"base/editor/textarea_editor.md","articles":[]},"previous":{"title":"code_editor","level":"4.6.2","depth":2,"path":"base/editor/code_editor.md","ref":"base/editor/code_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/multifile_editor.md","mtime":"2017-09-17T09:27:52.452Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2593,6 +2593,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

51
docs/_book/base/editor/multifile_editor.md

@ -0,0 +1,51 @@
# bi.multifile_editor
## 多文件,基类[BI.Single](/core/single.md)
{% method %}
[source](https://jsfiddle.net/fineui/25r3r5fq/)
{% common %}
```javascript
BI.createWidget({
type: "bi.multifile_editor",
width: 400,
height: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| multiple | 是否支持多选 | boolean | true,false| false |
| maxSize | 最大可选数量 | number |— | -1 |
| accept | 允许上传的文件类型 | string | —| " "|
| url | 文件路径 | string | —| " "|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| select | 选择文件 | —|
| getValue | 获取文件名称 | —|
| upload | 文件上传| —|
| reset | 重置| —|
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.MultifileEditor.EVENT_UPLOADSTART | 开始上传时触发 |
|BI.MultifileEditor.EVENT_PROGRESS | 上传过程中触发 |
|BI.MultifileEditor.EVENT_UPLOADED | 上传结束后触发 |
---

6
docs/base/editor/textarea_editor.html → docs/_book/base/editor/textarea_editor.html

@ -2537,7 +2537,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"textarea_editor","level":"4.6.4","depth":2,"next":{"title":"formula_editor","level":"4.6.5","depth":2,"path":"base/editor/formula_editor.md","ref":"base/editor/formula_editor.md","articles":[]},"previous":{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/textarea_editor.md","mtime":"2017-09-06T05:50:42.666Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"textarea_editor","level":"4.6.4","depth":2,"next":{"title":"formula_editor","level":"4.6.5","depth":2,"path":"base/editor/formula_editor.md","ref":"base/editor/formula_editor.md","articles":[]},"previous":{"title":"multifile_editor","level":"4.6.3","depth":2,"path":"base/editor/multifile_editor.md","ref":"base/editor/multifile_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/editor/textarea_editor.md","mtime":"2017-09-17T09:27:52.458Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2559,6 +2559,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

45
docs/_book/base/editor/textarea_editor.md

@ -0,0 +1,45 @@
# bi.textarea_editor
## 文本域,基类[BI.Single](/core/single.md)
{% method %}
[source](https://jsfiddle.net/fineui/90721e0a/)
{% common %}
```javascript
BI.createWidget({
type: "bi.textarea_editor",
width: 400,
height: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| value | 文本域的值 | string | — | " "|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| getValue | 获取文本域值|—|
| setValue | 设置文本域值|value|
| setStyle | 设置文本域样式 |需要设置的文本域样式style,例{"color":"#000"} |
| getStyle | 获取文本域样式 |— |
| focus | 文本域获取焦点| — |
| blur | 文本域失焦|—|
---

6
docs/base/label.html → docs/_book/base/label.html

@ -2680,7 +2680,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"label","level":"4.1","depth":1,"next":{"title":"bubble","level":"4.2","depth":1,"path":"base/bubble.md","ref":"base/bubble.md","articles":[]},"previous":{"title":"pane","level":"3.9","depth":1,"path":"core/pane.md","ref":"core/pane.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/label.md","mtime":"2017-09-07T08:28:11.403Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"label","level":"4.1","depth":1,"next":{"title":"bubble","level":"4.2","depth":1,"path":"base/bubble.md","ref":"base/bubble.md","articles":[]},"previous":{"title":"pane","level":"3.9","depth":1,"path":"core/pane.md","ref":"core/pane.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/label.md","mtime":"2017-09-17T09:27:52.462Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2702,6 +2702,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

67
docs/_book/base/label.md

@ -0,0 +1,67 @@
# bi.label
#### 文本标签
{% method %}
[source](https://jsfiddle.net/fineui/47f5ps1j/)
{% common %}
```javascript
BI.createWidget({
type: "bi.label",
textWidth: 100,
textHeight: 30,
text: "基本标签"
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :----|:----
| hgap | 效果相当于容器左右padding值 | number | —| 0 |
| vgap | 效果相当于容器上下padding值 | number | —| 0 |
| lgap | 效果相当于容器left-padding值 | number | — | 0 |
| rgap | 效果相当于容器right-padding值 | number | —| 0 |
| tgap | 效果相当于容器top-padding值 | number | — | 0 |
| bgap | 效果相当于容器bottom-padding值 | number | — | 0 |
| textWidth | 文本标签宽度 | number| — | null |
| textHeight | 文本标签宽度 | number| — | null |
| text | 文本内容 | string | — | " " |
##### 高级属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :----|:----
| textAlign | 文本对齐方式 | string | left,center,right | center |
| whiteSpace | 元素内空白处理方式 | string| normal,nowrap | nowrap|
| forceCenter | 是否无论如何都要居中, 不考虑超出边界的情况, 在未知宽度和高度时有效 | boolean | true,false | true |
| py | 拼音 | string | — | 空 |
| keyword | 设置标红的关键词 | string | —| 空 |
| disabled | 灰化 | boolean| true,false | 无 |
| title | 提示title | string | — | 空 |
| warningTitle | 错误提示title | string | — | 空 |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setText| 设置文本值 | 需要设置的文本值text|
| getText| 获取文本值 | —|
| setStyle | 设置文本样式 |需要设置的文本标签样式,例{"color":"#000"} |
| setValue | 设置文本值 | 需要设置的文本值text |
| populate| 清空label | —|
---

6
docs/base/message.html → docs/_book/base/message.html

@ -2510,7 +2510,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"message","level":"4.4","depth":1,"next":{"title":"按钮","level":"4.5","depth":1,"ref":"","articles":[{"title":"button","level":"4.5.1","depth":2,"path":"base/button/button.md","ref":"base/button/button.md","articles":[]},{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},{"title":"image_button","level":"4.5.4","depth":2,"path":"base/button/image_button.md","ref":"base/button/image_button.md","articles":[]}]},"previous":{"title":"toast","level":"4.3","depth":1,"path":"base/toast.md","ref":"base/toast.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/message.md","mtime":"2017-09-06T05:50:42.682Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"message","level":"4.4","depth":1,"next":{"title":"按钮","level":"4.5","depth":1,"ref":"","articles":[{"title":"button","level":"4.5.1","depth":2,"path":"base/button/button.md","ref":"base/button/button.md","articles":[]},{"title":"text_button","level":"4.5.2","depth":2,"path":"base/button/text_button.md","ref":"base/button/text_button.md","articles":[]},{"title":"icon_button","level":"4.5.3","depth":2,"path":"base/button/icon_button.md","ref":"base/button/icon_button.md","articles":[]},{"title":"image_button","level":"4.5.4","depth":2,"path":"base/button/image_button.md","ref":"base/button/image_button.md","articles":[]}]},"previous":{"title":"toast","level":"4.3","depth":1,"path":"base/toast.md","ref":"base/toast.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/message.md","mtime":"2017-09-17T09:27:52.468Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2532,6 +2532,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

39
docs/_book/base/message.md

@ -0,0 +1,39 @@
# bi.Msg
#### 消息提示
{% method %}
[source](https://jsfiddle.net/fineui/feu8kf4u/)
{% common %}
```javascript
BI.createWidget({
type: "bi.button",
element: "#wrapper",
text : '点击我弹出一个消息框',
height : 30,
handler : function() {
BI.Msg.confirm('测试消息框',"我是测试消息框的内容");
}
});
```
{% endmethod %}
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| alert | 警告消息框 | title, message, callback|
| confirm | 确认消息框 | title, message, callback |
| prompt | 提示消息框 | title, message, value, callback, min_width |
| toast | toast提示 | message, level, context|
---

6
docs/base/pager.html → docs/_book/base/pager.html

@ -2678,7 +2678,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"pager","level":"4.8","depth":1,"next":{"title":"svg","level":"4.9","depth":1,"path":"base/svg.md","ref":"base/svg.md","articles":[]},"previous":{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/pager.md","mtime":"2017-09-06T05:50:42.682Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"pager","level":"4.8","depth":1,"next":{"title":"svg","level":"4.9","depth":1,"path":"base/svg.md","ref":"base/svg.md","articles":[]},"previous":{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/pager.md","mtime":"2017-09-17T09:27:52.475Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2700,6 +2700,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

68
docs/_book/base/pager.md

@ -0,0 +1,68 @@
# bi.pager
## 分页控件,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/rhhte9b3/)
{% common %}
```javascript
BI.createWidget({
type: "bi.pager",
height: 50,
pages: 18,
groups: 5,
curr: 6,
first: "首页",
last: "尾页"
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| behaviors | 自定义列表中item项的行为,如高亮,标红等 | object| — | {}|
| layouts | 布局| array |— | {type:"bi.horizontal",hgap:10,vgap:0} |
| dynamicShow | 是否动态显示上一页、下一页、首页、尾页, 若为false,则指对其设置使能状态 | boolean| true,false | true|
| dynamicShowFirstLast | 是否动态显示首页、尾页,dynamicShow为false时生效| boolean| true,false | false |
| dynamicShowPrevNext | 是否动态显示上一页、下一页,dynamicShow为false时生效 | boolean| true,false | false|
| pages | 是否显示总页数 | boolean| true,false|false|
| curr | 初始化当前页 | function | —| function(){return 1;}|
| groups | 连续显示分页数 | number | — | 0 |
| jump | 页数跳转| function |— | —|
| first | 是否显示首页 | boolean | true,false| false|
| last | 是否显示尾页 | boolean | true,false| false|
| prev | 上一页 | string,object —| — |"上一页" |
| next | 下一页 | sting,object| —| "下一页" |
| firstPage | 第一页 | number|— | 1 |
| lastPage | 最后一页,在万不得已时才会调用这个函数获取最后一页的页码, 主要作用于setValue方法 | function | —| function(){ return 1;}|
| hasPrev | 判断是否有上一页,pages不可用时有效 | function | —| — |
| hasNext | 判断是否有下一页,pages不可用时有效 | function |— | — |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| getCurrentPage | 获取当前页码 | —|
| setAllPages | 设置总页数 | pages |
| hasPrev | 判断是否有上一页 | v |
| hasNext | 判断是否有下一页 | v |
| setValue | 设置当前页码 | v |
| getValue | 获取当前页码 | —|
| attr | 设置属性 | key,value |
| populate | 刷新或者清空列表| —|
## 事件
| 名称 | 说明 |
| :------ |:------------- |
| BI.Pager.EVENT_AFTER_POPULATE | pager刷新完成事件 |
---

6
docs/base/svg.html → docs/_book/base/svg.html

@ -2584,7 +2584,7 @@ svg.path(<span class="hljs-string">&quot;M10,10L50,50M50,10L10,50&quot;</span>)
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"svg","level":"4.9","depth":1,"next":{"title":"canvas","level":"4.10","depth":1,"path":"base/canvas.md","ref":"base/canvas.md","articles":[]},"previous":{"title":"pager","level":"4.8","depth":1,"path":"base/pager.md","ref":"base/pager.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/svg.md","mtime":"2017-09-06T05:50:42.682Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"svg","level":"4.9","depth":1,"next":{"title":"canvas","level":"4.10","depth":1,"path":"base/canvas.md","ref":"base/canvas.md","articles":[]},"previous":{"title":"pager","level":"4.8","depth":1,"path":"base/pager.md","ref":"base/pager.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/svg.md","mtime":"2017-09-17T09:27:52.481Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2606,6 +2606,10 @@ svg.path(<span class="hljs-string">&quot;M10,10L50,50M50,10L10,50&quot;</span>)
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

55
docs/_book/base/svg.md

@ -0,0 +1,55 @@
# bi.svg
## svg绘图,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/1xn8snp3/)
{% common %}
```javascript
var svg = BI.createWidget({
type: "bi.svg",
width: 500,
height: 600
});
svg.path("M10,10L50,50M50,10L10,50")
.attr({stroke: "red"});
```
{% endmethod %}
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| add | 添加对象到json数组 | json |
| path | 绘制路径 | pathString |
| image | 绘制图片 | (src,x,y,w,h)分别表示图片路径,绘制的原点横、纵坐标,宽、高 |
| rect | 绘制矩形 | (x,y,w,h,r)分别表示左上角的横坐标、纵坐标,矩形宽、高、以及矩形的圆角border-radius大小|
| circle | 绘制圆形 | (x,y,r)分别表示原点的横坐标,纵坐标,以及半径 |
| ellipse | 绘制椭圆 |(x,y,rx,ry)分别表示原点的横、纵坐标,以及水平半径和垂直半径|
| text | 绘制文本 | (x,y,text)分别表示绘制的原点横、纵坐标以及要绘制的文本内容|
| print | 根据制定参数打印出路径 | (x, y, string, font, size, origin, letter_spacing, line_spacing) |
| setStart | 开始绘制 | — |
| setFinish | 结束绘制 | — |
| setSize | 设置画布尺寸 | (width,height)分别表示画布宽高|
| setViewBox | 设置画布可视区域 | (x,y,width,height,fit)分别表示可视区域原点坐标以及可视区域宽高,以及是否根据可视区域进行调整 |
| getById | 根据id返回元素 | id |
| getElementByPoint | 获根据给定的点坐标返回元素 | (x,y)|
| getElementsByPoint | 获根据给定的点坐标返回元素 | (x,y) |
| getFont | 通过给定的参数在已注册的字体中找到字体对象 | (family, weight, style, stretch) |
| set | 绘制形状的集合 | — |
| remove | 设置总页数 | pages |
| clear | 判断是否有上一页 | v |
---

6
docs/base/table/collection_table.html → docs/_book/base/table/collection_table.html

@ -2657,7 +2657,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"collection_table","level":"4.7.3","depth":2,"next":{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]},"previous":{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/collection_table.md","mtime":"2017-09-07T08:28:11.403Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"collection_table","level":"4.7.3","depth":2,"next":{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]},"previous":{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/collection_table.md","mtime":"2017-09-17T09:27:52.488Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2679,6 +2679,10 @@
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

74
docs/_book/base/table/collection_table.md

@ -0,0 +1,74 @@
# bi.collection_table
### 基本的表格 继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/x2zxfzhp/)
{% common %}
```javascript
BI.createWidget({
type: "bi.collection_table",
element: "body",
columnSize: [200,200],
items: [
[{
type: "bi.label",
cls: "layout-bg1",
text: "第一行第一列"
}, {
type: "bi.label",
cls: "layout-bg2",
text: "第一行第二列"
}],
[{
type: "bi.label",
cls: "layout-bg3",
text: "第二行第一列"
}, {
type: "bi.label",
cls: "layout-bg4",
text: "第二行第二列"
}]
]
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ------------- | -------------------- | ----------------- |
| isNeedFreeze | 是否冻结列 | boolean | false |
| freezeCols | 冻结的列 | array | [] |
| isNeedMerge | 是否需要合并单元格 | boolean | false |
| mergeCols | 合并的单元格列号 | array | [] |
| mergeRule | 合并规则, 默认相等时合并 | function(row1, row2) | 默认row1 = row2 时合并 |
| columnSize | 单元格宽度集合 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| regionColumnSize | 列项间的 | array | [] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 参数 |
| ------------------------- | ----------- | ---------- |
| setWidth | 设置宽度 | width |
| setHeight | 设置高度 | height |
| setColumnSize | 设置列宽 | columnSize |
| getColumnSize | 得到列宽 | — |
| setRegionColumnSize | 设置列项之间的间隙 | columnSize |
| getRegionColumnSize | 获得列项之间的间隙 | — |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | — |
| setVerticalScroll | 设置纵向滚动距离 | scrollTop |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | scrollLeft |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | scrollLeft |
| getVerticalScroll | 获取纵向滚动距离 | — |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | — |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | — |
| getColumns | 获取列项 | — |
| populate | 增加行 | rows |
| restore | 存储数据 | — |
------

6
docs/base/table/grid_table.html → docs/_book/base/table/grid_table.html

@ -2628,7 +2628,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"grid_table","level":"4.7.2","depth":2,"next":{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},"previous":{"title":"table_view","level":"4.7.1","depth":2,"path":"base/table/table_view.md","ref":"base/table/table_view.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/grid_table.md","mtime":"2017-09-06T05:50:42.697Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"grid_table","level":"4.7.2","depth":2,"next":{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},"previous":{"title":"table_view","level":"4.7.1","depth":2,"path":"base/table/table_view.md","ref":"base/table/table_view.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/grid_table.md","mtime":"2017-09-17T09:27:52.495Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2650,6 +2650,10 @@
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

59
docs/_book/base/table/grid_table.md

@ -0,0 +1,59 @@
# bi.grid_table
### 列表展示的table,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/a936vcvj/)
{% common %}
```javascript
BI.createWidget({
type: "bi.grid_table",
element: 'body',
width: 600,
height: 500,
isResizeAdapt: true,
isNeedResize: true,
isNeedFreeze: true,
freezeCols: [0, 1],
columnSize: [50,50,200,250,400],
items: items,
header: header
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ------- | ------- | ----- |
| isNeedFreeze | 是否需要冻结 | boolean | false |
| freezeCols | 冻结列 | array | [] |
| columnSize | 单元格宽度集合 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| regionColumnSize | 列项间的 | array | [] |
| header | 表头 | array | [] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 参数 |
| ------------------------ | ----------- | ---------- |
| setWidth | 设置宽度 | width |
| setHeight | 设置高度 | height |
| getRegionSize | 获取间隙大小 | — |
| setColumnSize | 设置列宽 | columnSize |
| getColumnSize | 得到列宽 | — |
| setRegionColumnSize | 设置列项之间的间隙 | columnSize |
| getRegionColumnSize | 获得列项之间的间隙 | — |
| setVerticalScroll | 设置纵向滚动距离 | scrollTop |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | scrollLeft |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | scrollLeft |
| getVerticalScroll | 获取纵向滚动距离 | — |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | — |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | — |
| populate | 刷新内容 | rows |
| restore | 储存 | — |
------

6
docs/base/table/resizable_table.html → docs/_book/base/table/resizable_table.html

@ -2676,7 +2676,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"resizable_table","level":"4.7.4","depth":2,"next":{"title":"pager","level":"4.8","depth":1,"path":"base/pager.md","ref":"base/pager.md","articles":[]},"previous":{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/resizable_table.md","mtime":"2017-09-06T05:50:42.697Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"resizable_table","level":"4.7.4","depth":2,"next":{"title":"pager","level":"4.8","depth":1,"path":"base/pager.md","ref":"base/pager.md","articles":[]},"previous":{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/resizable_table.md","mtime":"2017-09-17T09:27:52.505Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2698,6 +2698,10 @@
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

77
docs/_book/base/table/resizable_table.md

@ -0,0 +1,77 @@
# bi.resizable_table
### 可调整列宽的grid表格,继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/0e7p2ezc/)
{% common %}
```javascript
BI.createWidget({
type: "bi.resizable_table",
element: "body",
columnSize: [200,200],
items: [
[{
type: "bi.label",
cls: "layout-bg1",
text: "第一行第一列"
}, {
type: "bi.label",
cls: "layout-bg2",
text: "第一行第二列"
}],
[{
type: "bi.label",
cls: "layout-bg3",
text: "第二行第一列"
}, {
type: "bi.label",
cls: "layout-bg4",
text: "第二行第二列"
}]
]
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | --------- | ------- | ----- |
| isNeedFreeze | 是否需要冻结列 | boolean | false |
| freezeCols | 冻结的列 | array | [] |
| isNeedResize | 是否需要调整大小 | boolean | false |
| isResizeAdapt | 是否调整时自适应 | boolean | true |
| isNeedMerge | 是否需要合并单元格 | boolean | false |
| mergeCols | 合并的单元格列号 | array | [] |
| columnSize | 单元格宽度集合 | array | [] |
| minColumnSize | 最小列宽 | array | [] |
| maxColumnSize | 最大列宽 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| header | 表头 | array | [] |
| regionColumnSize | 列项间的 | array | [] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 参数 |
| ------------------------ | ----------- | ------------- |
| setWidth | 设置宽度 | — |
| setHeight | 设置高度 | — |
| setColumnSize | 设置列宽 | columnSize |
| getColumnSize | 得到列宽 | — |
| setRegionColumnSize | 设置列项之间的间隙 | columnSize |
| getRegionColumnSize | 获得列项之间的间隙 | — |
| setVerticalScroll | 设置纵向滚动距离 | scrollTop |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | scrollLeft |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | scrollLeft |
| getVerticalScroll | 获取纵向滚动距离 | — |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | — |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | — |
| attr | 设置属性 | key:键,value:值 |
| populate | 刷新内容 | rows |
| restore | 保存表 | — |
------

6
docs/base/table/table_view.html → docs/_book/base/table/table_view.html

@ -2695,7 +2695,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"table_view","level":"4.7.1","depth":2,"next":{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},"previous":{"title":"表格","level":"4.7","depth":1,"ref":"","articles":[{"title":"table_view","level":"4.7.1","depth":2,"path":"base/table/table_view.md","ref":"base/table/table_view.md","articles":[]},{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/table_view.md","mtime":"2017-09-06T05:50:42.697Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"table_view","level":"4.7.1","depth":2,"next":{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},"previous":{"title":"表格","level":"4.7","depth":1,"ref":"","articles":[{"title":"table_view","level":"4.7.1","depth":2,"path":"base/table/table_view.md","ref":"base/table/table_view.md","articles":[]},{"title":"grid_table","level":"4.7.2","depth":2,"path":"base/table/grid_table.md","ref":"base/table/grid_table.md","articles":[]},{"title":"collection_table","level":"4.7.3","depth":2,"path":"base/table/collection_table.md","ref":"base/table/collection_table.md","articles":[]},{"title":"resizable_table","level":"4.7.4","depth":2,"path":"base/table/resizable_table.md","ref":"base/table/resizable_table.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/table/table_view.md","mtime":"2017-09-17T09:27:52.511Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2717,6 +2717,10 @@
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

73
docs/_book/base/table/table_view.md

@ -0,0 +1,73 @@
# 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 %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ------------- | -------------------- | ----------------- |
| isNeedMerge | 是否需要合并单元格 | boolean | false |
| mergeCols | 合并的单元格列号 | array | [] |
| mergeRule | 合并规则, 默认相等时合并 | function(row1, row2) | 默认row1 = row2 时合并 |
| columnSize | 单元格宽度集合 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| footerRowSize | 表尾高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| regionColumnSize | 列项间的 | array | false |
| header | 表头 | array | [] |
| footer | 表尾 | array | false |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 参数 |
| ---------------------------- | ---------------- | ---------- |
| resize | 调整表格 | — |
| setColumnSize | 设置列宽 | columnSize |
| getColumnSize | 得到列宽 | — |
| getCalculateColumnSize | 获得计算后的列宽 | — |
| setHeaderColumnSize | 设置表头的列宽 | columnSize |
| setRegionColumnSize | 设置列项之间的间隙 | columnSize |
| getRegionColumnSize | 获得列项之间的间隙 | — |
| getCalculateRegionColumnSize | 获取计算后的列项之间的间隙 | — |
| getCalculateRegionRowSize | 获取计算后的列项上下之间的间隙 | — |
| getClientRegionColumnSize | 获取浏览器中显示的列项之间的间隙 | — |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | — |
| getScrollRegionRowSize | 获取纵向滚动条宽度 | — |
| hasVerticalScroll | 是否含有数值滚动条 | — |
| setVerticalScroll | 设置纵向滚动距离 | scrollTop |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | scrollLeft |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | scrollLeft |
| getVerticalScroll | 获取纵向滚动距离 | — |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | — |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | — |
| getColumns | 获取列项 | — |
| populate | 刷新内容 | rows |
## 事件
| 事件 | 说明 |
| :------------------------------ | :------------------ |
| BI.Table.EVENT_TABLE_AFTER_INIT | table初始化完成后触发 |
| BI.Table.EVENT_TABLE_RESIZE | table大小调整时触发(窗口变化等) |
| BI.Table.EVENT_TABLE_SCROLL | 滚动事件 |
---

6
docs/base/toast.html → docs/_book/base/toast.html

@ -2534,7 +2534,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"toast","level":"4.3","depth":1,"next":{"title":"message","level":"4.4","depth":1,"path":"base/message.md","ref":"base/message.md","articles":[]},"previous":{"title":"bubble","level":"4.2","depth":1,"path":"base/bubble.md","ref":"base/bubble.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/toast.md","mtime":"2017-09-06T05:50:42.697Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"toast","level":"4.3","depth":1,"next":{"title":"message","level":"4.4","depth":1,"path":"base/message.md","ref":"base/message.md","articles":[]},"previous":{"title":"bubble","level":"4.2","depth":1,"path":"base/bubble.md","ref":"base/bubble.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"base/toast.md","mtime":"2017-09-17T09:27:52.519Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2556,6 +2556,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

42
docs/_book/base/toast.md

@ -0,0 +1,42 @@
# bi.toast
#### toast提示
{% method %}
[source](https://jsfiddle.net/fineui/wop751sg/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.toast',
element: "#wrapper",
height: 30,
level: "warning",
text: "toast测试"
})
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :---- |:----
| level | 提示类型 | string | success,warning | "success" |
| height | 高度 | number | — | 30 |
| text | 显示内容 | string | — | " " |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setText | 设置文本值 | 需要设置的文本值text |
| setHeight | 设置高度 | 需要设置的高度值height |
---

6
docs/case/button/multi_select_item.html → docs/_book/case/button/multi_select_item.html

@ -2539,7 +2539,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"multi_select_item","level":"5.1.1","depth":2,"next":{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},"previous":{"title":"按钮","level":"5.1","depth":1,"ref":"","articles":[{"title":"multi_select_item","level":"5.1.1","depth":2,"path":"case/button/multi_select_item.md","ref":"case/button/multi_select_item.md","articles":[]},{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},{"title":"single_select_radio_item","level":"5.1.3","depth":2,"path":"case/button/single_select_radio_item.md","ref":"case/button/single_select_radio_item.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/button/multi_select_item.md","mtime":"2017-09-07T08:28:11.403Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"multi_select_item","level":"5.1.1","depth":2,"next":{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},"previous":{"title":"按钮","level":"5.1","depth":1,"ref":"","articles":[{"title":"multi_select_item","level":"5.1.1","depth":2,"path":"case/button/multi_select_item.md","ref":"case/button/multi_select_item.md","articles":[]},{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},{"title":"single_select_radio_item","level":"5.1.3","depth":2,"path":"case/button/single_select_radio_item.md","ref":"case/button/single_select_radio_item.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/button/multi_select_item.md","mtime":"2017-09-17T09:27:52.527Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2561,6 +2561,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

53
docs/_book/case/button/multi_select_item.md

@ -0,0 +1,53 @@
# bi.multi_select_item
## 复选框item,基类[BI.BasicButton](/core/basic_button.md)
{% method %}
[source](https://jsfiddle.net/fineui/0z1fud88/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.vertical',
element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "复选item"
}, {
type: "bi.multi_select_item",
text: "复选项"
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 30
| logic | 布局逻辑 | object | — | {dynamic:false} |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setSelected| 设置选中值| v |
| doRedMark | 标红 |—|
| unRedMark | 取消标红 | — |
| doClick | 点击事件| —
---

6
docs/case/button/single_select_item.html → docs/_book/case/button/single_select_item.html

@ -2548,7 +2548,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"single_select_item","level":"5.1.2","depth":2,"next":{"title":"single_select_radio_item","level":"5.1.3","depth":2,"path":"case/button/single_select_radio_item.md","ref":"case/button/single_select_radio_item.md","articles":[]},"previous":{"title":"multi_select_item","level":"5.1.1","depth":2,"path":"case/button/multi_select_item.md","ref":"case/button/multi_select_item.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/button/single_select_item.md","mtime":"2017-09-07T08:28:11.403Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"single_select_item","level":"5.1.2","depth":2,"next":{"title":"single_select_radio_item","level":"5.1.3","depth":2,"path":"case/button/single_select_radio_item.md","ref":"case/button/single_select_radio_item.md","articles":[]},"previous":{"title":"multi_select_item","level":"5.1.1","depth":2,"path":"case/button/multi_select_item.md","ref":"case/button/multi_select_item.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/button/single_select_item.md","mtime":"2017-09-17T09:27:52.532Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2570,6 +2570,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

54
docs/_book/case/button/single_select_item.md

@ -0,0 +1,54 @@
# bi.single_select_item
## 可以点击的label,基类[BI.BasicButton](/core/basic_button.md)
{% method %}
[source](https://jsfiddle.net/fineui/19qqcej4/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.vertical',
element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "复选item"
}, {
type: "bi.single_select_item",
text: "复选项"
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 25
| hgap | 效果相当于文本框左右padding值 |number | —| 10 |
|textAlign |文本对齐方式 |string |left,center,right |"left"
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setSelected| 设置选中值| v |
| doRedMark | 标红 |—|
| unRedMark | 取消标红 | — |
| doClick | 点击事件| —
---

6
docs/case/button/single_select_radio_item.html → docs/_book/case/button/single_select_radio_item.html

@ -2546,7 +2546,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"single_select_radio_item","level":"5.1.3","depth":2,"next":{"title":"编辑框","level":"5.2","depth":1,"ref":"","articles":[{"title":"shelter_editor","level":"5.2.1","depth":2,"path":"case/editor/shelter_editor.md","ref":"case/editor/shelter_editor.md","articles":[]},{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},{"title":"state_editor","level":"5.2.4","depth":2,"path":"case/editor/state_editor.md","ref":"case/editor/state_editor.md","articles":[]}]},"previous":{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/button/single_select_radio_item.md","mtime":"2017-09-05T05:01:49.127Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"single_select_radio_item","level":"5.1.3","depth":2,"next":{"title":"编辑框","level":"5.2","depth":1,"ref":"","articles":[{"title":"shelter_editor","level":"5.2.1","depth":2,"path":"case/editor/shelter_editor.md","ref":"case/editor/shelter_editor.md","articles":[]},{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},{"title":"state_editor","level":"5.2.4","depth":2,"path":"case/editor/state_editor.md","ref":"case/editor/state_editor.md","articles":[]}]},"previous":{"title":"single_select_item","level":"5.1.2","depth":2,"path":"case/button/single_select_item.md","ref":"case/button/single_select_item.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/button/single_select_radio_item.md","mtime":"2017-09-17T09:27:52.538Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2568,6 +2568,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

55
docs/_book/case/button/single_select_radio_item.md

@ -0,0 +1,55 @@
# bi.single_select_radio_item
## 单选框item,基类[BI.BasicButton](/core/basic_button.md)
{% method %}
[source](https://jsfiddle.net/fineui/d3vw4438/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.vertical',
element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "单选item"
}, {
type: "bi.single_select_radio_item",
text: "单选项"
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 25
| hgap | 效果相当于文本框左右padding值 |number | —| 10 |
|textAlign |文本对齐方式 |string |left,center,right |"left"
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setSelected| 设置选中值| v |
| doRedMark | 标红 |—|
| unRedMark | 取消标红 | — |
| doClick | 点击事件| —
---

6
docs/case/calendar.html → docs/_book/case/calendar.html

@ -2553,7 +2553,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"calendar","level":"5.10","depth":1,"next":{"title":"clipboard","level":"5.11","depth":1,"path":"case/clipboard.md","ref":"case/clipboard.md","articles":[]},"previous":{"title":"direction_pager","level":"5.9.2","depth":2,"path":"case/pager/direction_pager.md","ref":"case/pager/direction_pager.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/calendar.md","mtime":"2017-09-06T05:50:42.697Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"calendar","level":"5.10","depth":1,"next":{"title":"clipboard","level":"5.11","depth":1,"path":"case/clipboard.md","ref":"case/clipboard.md","articles":[]},"previous":{"title":"direction_pager","level":"5.9.2","depth":2,"path":"case/pager/direction_pager.md","ref":"case/pager/direction_pager.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/calendar.md","mtime":"2017-09-17T09:27:52.544Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2575,6 +2575,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

47
docs/_book/case/calendar.md

@ -0,0 +1,47 @@
# bi.calendar
### 日历控件
{% method %}
[source](https://jsfiddle.net/fineui/4sfsaoma/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.calendar',
min: '1900-01-01', //最小日期
max: '2099-12-31', //最大日期
year: 2015,
month: 7, //7表示八月
day: 25,
});
```
{% endmethod %}
### 参数
| 参数 | 说明 | 类型 | 默认值 |
| ----- | ----- | ------ | ------------ |
| min | 最小日期 | string | '1900-01-01' |
| max | 最大日期 | string | '2099-12-31' |
| year | 设定的年份 | number | 2015 |
| month | 设定的月份 | number | 7 |
| day | 设定的日期 | number | 25 |
### 方法
| 方法名 | 说明 | 参数 |
| ----------- | ------- | -------------------------- |
| isFrontDate | 是否为最小日期 | — |
| isFinalDate | 是否为最大日期 | — |
| setValue | 设置日期 | object: {year, month, day} |
| getVlaue | 获得日期 | — |
------

6
docs/case/clipboard.html → docs/_book/case/clipboard.html

@ -2503,7 +2503,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"clipboard","level":"5.11","depth":1,"next":{"title":"complex_canvas","level":"5.12","depth":1,"path":"case/complex_canvas.md","ref":"case/complex_canvas.md","articles":[]},"previous":{"title":"calendar","level":"5.10","depth":1,"path":"case/calendar.md","ref":"case/calendar.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/clipboard.md","mtime":"2017-09-06T05:50:42.713Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"clipboard","level":"5.11","depth":1,"next":{"title":"complex_canvas","level":"5.12","depth":1,"path":"case/complex_canvas.md","ref":"case/complex_canvas.md","articles":[]},"previous":{"title":"calendar","level":"5.10","depth":1,"path":"case/calendar.md","ref":"case/calendar.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/clipboard.md","mtime":"2017-09-17T09:27:52.550Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2525,6 +2525,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

33
docs/_book/case/clipboard.md

@ -0,0 +1,33 @@
# bi.clipboard
### 剪切板
{% method %}
[source](https://jsfiddle.net/fineui/kLzq99c3/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.clipboard',
width: 100,
height: 100,
copy: function () {},
afterCopy: function () {}
});
```
{% endmethod %}
### 参数
| 参数 | 说明 | 类型 | 默认值 |
| --------- | ---------- | -------- | ---------- |
| copy | 获取需要拷贝的值 | function | BI.emptyFn |
| afterCopy | 完成拷贝后执行的方法 | function | BI.emptyFn |
------

6
docs/case/color_chooser.html → docs/_book/case/color_chooser.html

@ -2503,7 +2503,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"color_chooser","level":"5.13","depth":1,"next":{"title":"color_chooser_popup","level":"5.14","depth":1,"path":"case/color_chooser_popup.md","ref":"case/color_chooser_popup.md","articles":[]},"previous":{"title":"complex_canvas","level":"5.12","depth":1,"path":"case/complex_canvas.md","ref":"case/complex_canvas.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/color_chooser.md","mtime":"2017-09-06T05:50:42.713Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"color_chooser","level":"5.13","depth":1,"next":{"title":"color_chooser_popup","level":"5.14","depth":1,"path":"case/color_chooser_popup.md","ref":"case/color_chooser_popup.md","articles":[]},"previous":{"title":"complex_canvas","level":"5.12","depth":1,"path":"case/complex_canvas.md","ref":"case/complex_canvas.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/color_chooser.md","mtime":"2017-09-17T09:27:52.556Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2525,6 +2525,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

32
docs/_book/case/color_chooser.md

@ -0,0 +1,32 @@
# bi.color_chooser
### 选色控件
{% method %}
[source](https://jsfiddle.net/fineui/z4fwweg9/)
{% common %}
```javascript
BI.createWidget({
type: "bi.color_chooser",
element: "#wrapper",
width: 30,
height: 30
});
```
{% endmethod %}
### 方法
| 方法名 | 说明 | 参数 |
| ------------- | ------ | ----- |
| isViewVisible | 判断是否显示 | — |
| setValue | 设置颜色值 | color |
| getValue | 获取颜色值 | — |
------

6
docs/case/color_chooser_popup.html → docs/_book/case/color_chooser_popup.html

@ -2534,7 +2534,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"color_chooser_popup","level":"5.14","depth":1,"next":{"title":"segment","level":"5.15","depth":1,"path":"case/segment.md","ref":"case/segment.md","articles":[]},"previous":{"title":"color_chooser","level":"5.13","depth":1,"path":"case/color_chooser.md","ref":"case/color_chooser.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/color_chooser_popup.md","mtime":"2017-09-07T08:28:11.403Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"color_chooser_popup","level":"5.14","depth":1,"next":{"title":"segment","level":"5.15","depth":1,"path":"case/segment.md","ref":"case/segment.md","articles":[]},"previous":{"title":"color_chooser","level":"5.13","depth":1,"path":"case/color_chooser.md","ref":"case/color_chooser.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/color_chooser_popup.md","mtime":"2017-09-17T09:27:52.564Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2556,6 +2556,10 @@ BI.createWidget({
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

45
docs/_book/case/color_chooser_popup.md

@ -0,0 +1,45 @@
# bi.color_chooser_popup
### 选色控件弹窗
{% method %}
[source](https://jsfiddle.net/fineui/xL7moydu/)
{% common %}
```javascript
BI.createWidget({
type: "bi.color_chooser_popup",
});
```
{% endmethod %}
### 参数
| 参数 | 说明 | 类型 | 默认值 |
| ------ | ---- | ------ | ---- |
| height | 高度 | number | 145 |
### 方法
| 方法名 | 说明 | 参数 |
| -------------- | -------- | ------ |
| setStoreColors | 设置储存的颜色值 | colors |
| setValue | 设置颜色值 | color |
| getValue | 获取颜色值 | — |
### 事件
| 事件 | 说明 |
| ------------------ | -------- |
| EVENT_VALUE_CHANGE | 颜色值改变时触发 |
------

6
docs/case/combo/bubble_combo.html → docs/_book/case/combo/bubble_combo.html

@ -2687,7 +2687,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"bubble_combo","level":"5.6.1","depth":2,"next":{"title":"icon_combo","level":"5.6.2","depth":2,"path":"case/combo/icon_combo.md","ref":"case/combo/icon_combo.md","articles":[]},"previous":{"title":"下拉框","level":"5.6","depth":1,"ref":"","articles":[{"title":"bubble_combo","level":"5.6.1","depth":2,"path":"case/combo/bubble_combo.md","ref":"case/combo/bubble_combo.md","articles":[]},{"title":"icon_combo","level":"5.6.2","depth":2,"path":"case/combo/icon_combo.md","ref":"case/combo/icon_combo.md","articles":[]},{"title":"static_combo","level":"5.6.3","depth":2,"path":"case/combo/static_combo.md","ref":"case/combo/static_combo.md","articles":[]},{"title":"text_value_combo","level":"5.6.4","depth":2,"path":"case/combo/text_value_combo.md","ref":"case/combo/text_value_combo.md","articles":[]},{"title":"text_value_downlist_combo","level":"5.6.5","depth":2,"path":"case/combo/text_value_downlist_combo.md","ref":"case/combo/text_value_downlist_combo.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/bubble_combo.md","mtime":"2017-09-06T05:50:42.713Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"bubble_combo","level":"5.6.1","depth":2,"next":{"title":"icon_combo","level":"5.6.2","depth":2,"path":"case/combo/icon_combo.md","ref":"case/combo/icon_combo.md","articles":[]},"previous":{"title":"下拉框","level":"5.6","depth":1,"ref":"","articles":[{"title":"bubble_combo","level":"5.6.1","depth":2,"path":"case/combo/bubble_combo.md","ref":"case/combo/bubble_combo.md","articles":[]},{"title":"icon_combo","level":"5.6.2","depth":2,"path":"case/combo/icon_combo.md","ref":"case/combo/icon_combo.md","articles":[]},{"title":"static_combo","level":"5.6.3","depth":2,"path":"case/combo/static_combo.md","ref":"case/combo/static_combo.md","articles":[]},{"title":"text_value_combo","level":"5.6.4","depth":2,"path":"case/combo/text_value_combo.md","ref":"case/combo/text_value_combo.md","articles":[]},{"title":"text_value_downlist_combo","level":"5.6.5","depth":2,"path":"case/combo/text_value_downlist_combo.md","ref":"case/combo/text_value_downlist_combo.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/bubble_combo.md","mtime":"2017-09-17T09:27:52.571Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2709,6 +2709,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

86
docs/_book/case/combo/bubble_combo.md

@ -0,0 +1,86 @@
# bi.bubble_combo
## 表示一个可以展开的节点, 不仅有选中状态而且有展开状态, 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/urvt04so/)
{% common %}
```javascript
BI.createWidget({
type: "bi.bubble_combo",
element:"#wrapper",
el: {
type: "bi.button",
text: "测试",
height: 25
},
popup: {
el: {
type: "bi.button_group",
items: BI.makeArray(100, {
type: "bi.text_item",
height: 25,
text: "item"
}),
layouts: [{
type: "bi.vertical"
}]
},
maxHeight: 200
}
})
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| text | 组件text值 | string | —| "" |
| value | 组件value值 | string |— |""|
| stopEvent | 阻止事件 |boolean | true,false | false |
| stopPropagation | 阻止冒泡 | boolean | true,false| false |
| selected | button的选中状态 | boolean | true,false |false |
| once | 点击一次选中有效,再点无效 | boolean | true,false | false|
| forceSelected | 点击即选中, 选中了就不会被取消,与once的区别是forceSelected不影响事件的触发| boolean | true,false| false|
| forceNotSelected | 无论怎么点击都不会被选中 | boolean| true,false | false|
| disableSelected | 使能选中| boolean | true,false| false|
| shadow | 是否显示阴影 | boolean| true,false| false|
| isShadowShowingOnSelected| 选中状态下是否显示阴影|boolean| true,false | false|
| trigger | 被选元素要触发的事件 | string | mousedown, mouseup, click, dblclick, lclick | null|
| handler | 点击事件回调 | function | —| BI.emptyFn |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| bindEvent | 绑定事件| —|
| beforeClick | 点击事件之前 | —|
| doClick | 点击事件 | — |
| handle | 返回该对象 | —|
| hover | hover事件| —|
| dishover | 取消hover事件| —|
|setSelected | 设置选中的文本| b|
| isSelected | 是否被选中| —|
| isOnce | 是否只允许点击一次| —|
| isForceSelected| 判断是否点击即选中| —|
| isForceNotSelected| 判断是否怎么点击都不会被选中|—|
| isDisableSelected| 判断是否让选中|—|
| setText| 设置文本值|—|
| getText| 获取文本值|—|
| empty| 清空组件|—|
| destroy| 销毁组件|—|
---

6
docs/case/combo/icon_combo.html → docs/_book/case/combo/icon_combo.html

@ -2626,7 +2626,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"icon_combo","level":"5.6.2","depth":2,"next":{"title":"static_combo","level":"5.6.3","depth":2,"path":"case/combo/static_combo.md","ref":"case/combo/static_combo.md","articles":[]},"previous":{"title":"bubble_combo","level":"5.6.1","depth":2,"path":"case/combo/bubble_combo.md","ref":"case/combo/bubble_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/icon_combo.md","mtime":"2017-09-07T08:28:11.403Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"icon_combo","level":"5.6.2","depth":2,"next":{"title":"static_combo","level":"5.6.3","depth":2,"path":"case/combo/static_combo.md","ref":"case/combo/static_combo.md","articles":[]},"previous":{"title":"bubble_combo","level":"5.6.1","depth":2,"path":"case/combo/bubble_combo.md","ref":"case/combo/bubble_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/icon_combo.md","mtime":"2017-09-17T09:27:52.577Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2648,6 +2648,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

68
docs/_book/case/combo/icon_combo.md

@ -0,0 +1,68 @@
# bi.icon_combo
## 切换trigger图标的combo 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/z02vzvtb/)
{% common %}
```javascript
BI.createWidget({
type: "bi.icon_combo",
element: "#wrapper",
iconClass: "rename-font",
items: [{
value: "第一项",
iconClass: "delete-font"
}, {
value: "第二项",
iconClass: "rename-font"
}, {
value: "第三项",
iconClass: "move-font"
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| width | 宽度 | number | — | 24
| height | 高度 | number | — | 24
| iconClass | icon的类名 | string | —|" "|
| el | 自定义下拉框trigger| object | —|{ } |
| popup | 弹出层| object | —| { }
| minWidth| 最小宽度| number | —|100|
| maxWidth | 最大宽度 | string/number | — | "auto"|
| maxHeight | 最大高度 | number | —| 300
| adjustLength | 弹出列表和trigger的距离 | number | — | 0 |
| adjustXOffset | 调整横向偏移 | number | — | 0 |
| adjustYOffset |调整纵向偏移 | number | — | 0 |
| offsetStyle | 弹出层显示位置 | string | left,right,center | "left,right,center"|
| chooseType | 选择类型 | const | 参考button_group | BI.ButtonGroup.CHOOSE_TYPE_SINGLE |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setValue| 设置value值|—|
| getValue| 获取value值|—|
| showView | 显示弹出层 | —|
| hideView | 隐藏弹出层 |—|
| populate | 刷新列表 | items |
---

6
docs/case/combo/static_combo.html → docs/_book/case/combo/static_combo.html

@ -2560,7 +2560,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"static_combo","level":"5.6.3","depth":2,"next":{"title":"text_value_combo","level":"5.6.4","depth":2,"path":"case/combo/text_value_combo.md","ref":"case/combo/text_value_combo.md","articles":[]},"previous":{"title":"icon_combo","level":"5.6.2","depth":2,"path":"case/combo/icon_combo.md","ref":"case/combo/icon_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/static_combo.md","mtime":"2017-09-07T08:28:11.419Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"static_combo","level":"5.6.3","depth":2,"next":{"title":"text_value_combo","level":"5.6.4","depth":2,"path":"case/combo/text_value_combo.md","ref":"case/combo/text_value_combo.md","articles":[]},"previous":{"title":"icon_combo","level":"5.6.2","depth":2,"path":"case/combo/icon_combo.md","ref":"case/combo/icon_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/static_combo.md","mtime":"2017-09-17T09:27:52.583Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2582,6 +2582,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

58
docs/_book/case/combo/static_combo.md

@ -0,0 +1,58 @@
# bi.static_combo
## 单选combo,trigger显示项不会改变 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/kn64gfzn/)
{% common %}
```javascript
BI.createWidget({
type: "bi.static_combo",
element: "#wrapper",
text: "Value 不变",
items: [{
text: "1",
value: 1
}, {
text: "2",
value: 2
}, {
text: "3",
value: 3
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 24
| el | 自定义下拉框trigger| object | —|{ } |
| items | 子组件 | array | — | [ ]
| text | 文本内容 | string | — | " " |
| chooseType | 选择类型 | const |参考button_group | BI.ButtonGroup.CHOOSE_TYPE_SINGLE |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setValue| 设置value值|—|
| getValue| 获取value值|—|
| populate | 刷新列表 | items |
---

6
docs/case/combo/text_value_combo.html → docs/_book/case/combo/text_value_combo.html

@ -2554,7 +2554,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"text_value_combo","level":"5.6.4","depth":2,"next":{"title":"text_value_downlist_combo","level":"5.6.5","depth":2,"path":"case/combo/text_value_downlist_combo.md","ref":"case/combo/text_value_downlist_combo.md","articles":[]},"previous":{"title":"static_combo","level":"5.6.3","depth":2,"path":"case/combo/static_combo.md","ref":"case/combo/static_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/text_value_combo.md","mtime":"2017-09-07T08:28:11.419Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"text_value_combo","level":"5.6.4","depth":2,"next":{"title":"text_value_downlist_combo","level":"5.6.5","depth":2,"path":"case/combo/text_value_downlist_combo.md","ref":"case/combo/text_value_downlist_combo.md","articles":[]},"previous":{"title":"static_combo","level":"5.6.3","depth":2,"path":"case/combo/static_combo.md","ref":"case/combo/static_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/text_value_combo.md","mtime":"2017-09-17T09:27:52.590Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2576,6 +2576,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

58
docs/_book/case/combo/text_value_combo.md

@ -0,0 +1,58 @@
# bi.text_value_combo
## 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/hcf0kd9m/)
{% common %}
```javascript
BI.createWidget({
type: "bi.text_value_combo",
element: "#wrapper",
text: "value_combo",
width: 300,
items: [{
text: "1",
value: 1
}, {
text: "2",
value: 2
}, {
text: "3",
value: 3
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 30
| el | 自定义下拉框trigger| object |—|{ } |
| text | 文本内容 | string | — | " " |
| chooseType | 选择类型 | const |参考button_group | BI.ButtonGroup.CHOOSE_TYPE_SINGLE |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setValue| 设置value值|—|
| getValue| 获取value值|—|
| populate | 刷新列表 | items |
---

6
docs/case/combo/text_value_downlist_combo.html → docs/_book/case/combo/text_value_downlist_combo.html

@ -2546,7 +2546,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"text_value_downlist_combo","level":"5.6.5","depth":2,"next":{"title":"树","level":"5.7","depth":1,"ref":"","articles":[{"title":"branch_tree","level":"5.7.1","depth":2,"path":"case/tree/branch_tree.md","ref":"case/tree/branch_tree.md","articles":[]},{"title":"handstand_branch_tree","level":"5.7.2","depth":2,"path":"case/tree/handstand_branch_tree.md","ref":"case/tree/handstand_branch_tree.md","articles":[]},{"title":"display_tree","level":"5.7.3","depth":2,"path":"case/tree/display_tree.md","ref":"case/tree/display_tree.md","articles":[]},{"title":"simple_tree","level":"5.7.4","depth":2,"path":"case/tree/simple_tree.md","ref":"case/tree/simple_tree.md","articles":[]},{"title":"level_tree","level":"5.7.5","depth":2,"path":"case/tree/level_tree.md","ref":"case/tree/level_tree.md","articles":[]},{"title":"branch_relation","level":"5.7.6","depth":2,"path":"case/tree/branch_relation.md","ref":"case/tree/branch_relation.md","articles":[]}]},"previous":{"title":"text_value_combo","level":"5.6.4","depth":2,"path":"case/combo/text_value_combo.md","ref":"case/combo/text_value_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/text_value_downlist_combo.md","mtime":"2017-09-07T08:28:11.419Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"text_value_downlist_combo","level":"5.6.5","depth":2,"next":{"title":"树","level":"5.7","depth":1,"ref":"","articles":[{"title":"branch_tree","level":"5.7.1","depth":2,"path":"case/tree/branch_tree.md","ref":"case/tree/branch_tree.md","articles":[]},{"title":"handstand_branch_tree","level":"5.7.2","depth":2,"path":"case/tree/handstand_branch_tree.md","ref":"case/tree/handstand_branch_tree.md","articles":[]},{"title":"display_tree","level":"5.7.3","depth":2,"path":"case/tree/display_tree.md","ref":"case/tree/display_tree.md","articles":[]},{"title":"simple_tree","level":"5.7.4","depth":2,"path":"case/tree/simple_tree.md","ref":"case/tree/simple_tree.md","articles":[]},{"title":"level_tree","level":"5.7.5","depth":2,"path":"case/tree/level_tree.md","ref":"case/tree/level_tree.md","articles":[]},{"title":"branch_relation","level":"5.7.6","depth":2,"path":"case/tree/branch_relation.md","ref":"case/tree/branch_relation.md","articles":[]}]},"previous":{"title":"text_value_combo","level":"5.6.4","depth":2,"path":"case/combo/text_value_combo.md","ref":"case/combo/text_value_combo.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/combo/text_value_downlist_combo.md","mtime":"2017-09-17T09:27:52.598Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2568,6 +2568,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

65
docs/_book/case/combo/text_value_downlist_combo.md

@ -0,0 +1,65 @@
# bi.text_value_down_list_combo
## 有二级下拉菜单的combo 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/xtxmfgx1/)
{% common %}
```javascript
BI.createWidget({
type: "bi.text_value_down_list_combo",
element: "#wrapper",
text: "text",
items: [
[{
el: {
text: "1",
value: 1
},
children: [{
text: "11",
value: 11
}]
}],
[{
text: "2",
value: 2
}, {
text: "3",
value: 3
}]
]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 30
| text | 文本内容 | string | — | " " |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setValue| 设置value值|—|
| getValue| 获取value值|—|
| populate | 刷新列表 | items |
---

6
docs/case/complex_canvas.html → docs/_book/case/complex_canvas.html

@ -2501,7 +2501,7 @@ canvas.stroke();
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"complex_canvas","level":"5.12","depth":1,"next":{"title":"color_chooser","level":"5.13","depth":1,"path":"case/color_chooser.md","ref":"case/color_chooser.md","articles":[]},"previous":{"title":"clipboard","level":"5.11","depth":1,"path":"case/clipboard.md","ref":"case/clipboard.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/complex_canvas.md","mtime":"2017-09-01T07:59:34.393Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"complex_canvas","level":"5.12","depth":1,"next":{"title":"color_chooser","level":"5.13","depth":1,"path":"case/color_chooser.md","ref":"case/color_chooser.md","articles":[]},"previous":{"title":"clipboard","level":"5.11","depth":1,"path":"case/clipboard.md","ref":"case/clipboard.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/complex_canvas.md","mtime":"2017-09-17T09:27:52.606Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
@ -2523,6 +2523,10 @@ canvas.stroke();
<script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>

37
docs/_book/case/complex_canvas.md

@ -0,0 +1,37 @@
# complex_canvas
## 复杂的canvas绘图
{% method %}
[source](https://jsfiddle.net/fineui/psozjkgn/)
{% common %}
```javascript
var canvas = BI.createWidget({
type: "bi.complex_canvas",
width: 500,
height: 600
});
canvas.branch(55, 100, 10, 10, 100, 10, 200, 10, {
offset: 20,
strokeStyle: "red",
lineWidth: 2
});
canvas.stroke();
```
{% endmethod %}
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| branch | 绘制树枝节点| (x0, y0, x1, y1, x2, y2) (以x0, y0为根节点,分支到x1,y1, x2,y2...)|
| stroke | 绘制 | |
---

6
docs/case/editor/shelter_editor.html → docs/_book/case/editor/shelter_editor.html

@ -2765,7 +2765,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"shelter_editor","level":"5.2.1","depth":2,"next":{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},"previous":{"title":"编辑框","level":"5.2","depth":1,"ref":"","articles":[{"title":"shelter_editor","level":"5.2.1","depth":2,"path":"case/editor/shelter_editor.md","ref":"case/editor/shelter_editor.md","articles":[]},{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},{"title":"state_editor","level":"5.2.4","depth":2,"path":"case/editor/state_editor.md","ref":"case/editor/state_editor.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/shelter_editor.md","mtime":"2017-09-07T08:28:11.419Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"shelter_editor","level":"5.2.1","depth":2,"next":{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},"previous":{"title":"编辑框","level":"5.2","depth":1,"ref":"","articles":[{"title":"shelter_editor","level":"5.2.1","depth":2,"path":"case/editor/shelter_editor.md","ref":"case/editor/shelter_editor.md","articles":[]},{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},{"title":"state_editor","level":"5.2.4","depth":2,"path":"case/editor/state_editor.md","ref":"case/editor/state_editor.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/shelter_editor.md","mtime":"2017-09-17T09:27:52.613Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2787,6 +2787,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

93
docs/_book/case/editor/shelter_editor.md

@ -0,0 +1,93 @@
# bi.shelter_editor
## 带标记的文本框,需手动控制进入编辑状态 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/9Lbx6kga/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.shelter_editor",
cls: "bi-border",
width: 300,
watermark: "这个是带标记的"
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值 | number | — | 4 |
| vgap | 效果相当于文本框上下padding值 | number | — | 2 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| tgap |效果相当于文本框top-padding值 | number | — | 0 |
| bgap | 效果相当于文本框bottom-padding值 | number | — | 0 |
| validationChecker | 输入较验函数 |function| — | — |
| quitChecker | 是否允许退出编辑函数 | function | — | — |
| allowBlank | 是否允许空值 | boolean | true,false | true |
| watermark | 文本框placeholder | string | — | " " |
| errorText | 错误提示 | string/function | —| " "|
| height| 高度| number |— | 30|
| textAlign| 对齐方式 | string |left,center,right |"left"|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setErrorText | 设置错误文本 | text |
| getErrorText | 获取错误文本 | —|
| focus | 文本框获取焦点| — |
| blur | 文本框失焦|—|
| onKeyDown |按键事件|key|
| setValue | 设置文本框值|value|
| getLastValidValue | 获取文本框最后一次输入的有效值| —|
| setTextStyle| 设置文本框样式| style |
| getValue | 获取文本框值|—|
| isEditing | 文本框是否处于编辑状态|—|
| isValid | 文本框值是否有效|—|
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setTitle| 设置title | title|
| setWarningTitle| 设置错误title | title |
| setState | 设置文本框值 |—
| getState | 获取文本框值 | —
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.Editor.EVENT_CHANGE | editor的value发生改变触发 |
|BI.Editor.EVENT_FOCUS | focus事件 |
|BI.Editor.EVENT_BLUR | blur事件 |
|BI.Editor.EVENT_CLICK | 点击编辑框触发(不在编辑状态时) |
|BI.Editor.EVENT_KEY_DOWN | keyDown时触发 |
|BI.Editor.EVENT_SPACE | 按下空格触发 |
|BI.Editor.EVENT_BACKSPACE | 按下Backspace触发 |
|BI.Editor.EVENT_START | 开始输入触发 |
|BI.Editor.EVENT_PAUSE | 暂停输入触发(输入空白字符) |
|BI.Editor.EVENT_STOP | 停止输入触发 |
|BI.Editor.EVENT_CONFIRM | 确定输入触发(blur时且输入值有效) |
|BI.Editor.EVENT_VALID | 输入值有效的状态事件 |
|BI.Editor.EVENT_ERROR | 输入值无效的状态事件 |
|BI.Editor.EVENT_ENTER | 回车事件 |
|BI.Editor.EVENT_RESTRICT | 回车但是值不合法 |
|BI.Editor.EVENT_REMOVE | 输入为空时按下backspace |
|BI.Editor.EVENT_EMPTY | 输入框为空时触发 |
---

6
docs/case/editor/sign_editor.html → docs/_book/case/editor/sign_editor.html

@ -2751,7 +2751,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"sign_editor","level":"5.2.2","depth":2,"next":{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},"previous":{"title":"shelter_editor","level":"5.2.1","depth":2,"path":"case/editor/shelter_editor.md","ref":"case/editor/shelter_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/sign_editor.md","mtime":"2017-09-06T05:50:42.729Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"sign_editor","level":"5.2.2","depth":2,"next":{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},"previous":{"title":"shelter_editor","level":"5.2.1","depth":2,"path":"case/editor/shelter_editor.md","ref":"case/editor/shelter_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/sign_editor.md","mtime":"2017-09-17T09:27:52.620Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2773,6 +2773,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

91
docs/_book/case/editor/sign_editor.md

@ -0,0 +1,91 @@
# bi.sign_editor
## 带标记的文本框,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/tmdedu5t/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.sign_editor",
cls:"layout-bg5",
value: "123",
text: "456",
width: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值 | number | — | 4 |
| vgap | 效果相当于文本框上下padding值 | number | —| 2 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| tgap |效果相当于文本框top-padding值 | number | — | 0 |
| bgap | 效果相当于文本框bottom-padding值 | number | — | 0 |
| validationChecker | 输入较验函数 |function| — | — |
| quitChecker | 是否允许退出编辑函数 | function | — | — |
| allowBlank | 是否允许空值 | boolean | true,false | true |
| watermark | 文本框placeholder | string | — | " " |
| errorText | 错误提示 | string/function | —| " "|
| height| 高度| number |— | 30|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setErrorText | 设置错误文本 | text |
| getErrorText | 获取错误文本 | —|
| focus | 文本框获取焦点| — |
| blur | 文本框失焦|—|
| setValue | 设置文本框值|value|
| getLastValidValue | 获取文本框最后一次输入的有效值| —|
| getValue | 获取文本框值|—|
| isEditing | 文本框是否处于编辑状态|—|
| isValid | 文本框值是否有效|—|
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setTitle| 设置title | title|
| setWarningTitle| 设置错误title | title |
| setState | 设置文本框值 |—
| getState | 获取文本框值 | —
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.Editor.EVENT_CHANGE | editor的value发生改变触发 |
|BI.Editor.EVENT_FOCUS | focus事件 |
|BI.Editor.EVENT_BLUR | blur事件 |
|BI.Editor.EVENT_CLICK | 点击编辑框触发(不在编辑状态时) |
|BI.Editor.EVENT_KEY_DOWN | keyDown时触发 |
|BI.Editor.EVENT_SPACE | 按下空格触发 |
|BI.Editor.EVENT_BACKSPACE | 按下Backspace触发 |
|BI.Editor.EVENT_START | 开始输入触发 |
|BI.Editor.EVENT_PAUSE | 暂停输入触发(输入空白字符) |
|BI.Editor.EVENT_STOP | 停止输入触发 |
|BI.Editor.EVENT_CONFIRM | 确定输入触发(blur时且输入值有效) |
|BI.Editor.EVENT_VALID | 输入值有效的状态事件 |
|BI.Editor.EVENT_ERROR | 输入值无效的状态事件 |
|BI.Editor.EVENT_ENTER | 回车事件 |
|BI.Editor.EVENT_RESTRICT | 回车但是值不合法 |
|BI.Editor.EVENT_REMOVE | 输入为空时按下backspace |
|BI.Editor.EVENT_EMPTY | 输入框为空时触发 |
---

6
docs/case/editor/sign_initial_editor.html → docs/_book/case/editor/sign_initial_editor.html

@ -2764,7 +2764,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"sign_initial_editor","level":"5.2.3","depth":2,"next":{"title":"state_editor","level":"5.2.4","depth":2,"path":"case/editor/state_editor.md","ref":"case/editor/state_editor.md","articles":[]},"previous":{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/sign_initial_editor.md","mtime":"2017-09-07T08:28:11.419Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"sign_initial_editor","level":"5.2.3","depth":2,"next":{"title":"state_editor","level":"5.2.4","depth":2,"path":"case/editor/state_editor.md","ref":"case/editor/state_editor.md","articles":[]},"previous":{"title":"sign_editor","level":"5.2.2","depth":2,"path":"case/editor/sign_editor.md","ref":"case/editor/sign_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/sign_initial_editor.md","mtime":"2017-09-17T09:27:52.627Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2786,6 +2786,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

92
docs/_book/case/editor/sign_initial_editor.md

@ -0,0 +1,92 @@
# bi.sign_initial_editor
## 指定初始值 之后初始值会一直显示的editor 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/9vjghevp/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.sign_initial_editor",
cls: "layout-bg5",
text: "原始值",
width: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值 | number | — | 4 |
| vgap | 效果相当于文本框上下padding值 | number | — | 2 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| tgap |效果相当于文本框top-padding值 | number | —| 0 |
| bgap | 效果相当于文本框bottom-padding值 | number | | 0 |
| validationChecker | 输入较验函数 |function| — | — |
| quitChecker | 是否允许退出编辑函数 | function | — | — |
| allowBlank | 是否允许空值 | boolean | true,false | true |
| watermark | 文本框placeholder | string | — | " " |
| errorText | 错误提示 | string/function | —| " "|
| height| 高度| number |— | 30|
| text | 文本内容 | string | —| " " |
| value | 文本value值 | string | — | " " |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setErrorText | 设置错误文本 | text |
| getErrorText | 获取错误文本 | —|
| focus | 文本框获取焦点| — |
| blur | 文本框失焦|—|
| setValue | 设置文本框值|value|
| getLastValidValue | 获取文本框最后一次输入的有效值| —|
| getValue | 获取文本框值|—|
| isEditing | 文本框是否处于编辑状态|—|
| isValid | 文本框值是否有效|—|
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setTitle| 设置title | title|
| setWarningTitle| 设置错误title | title |
| setState | 设置文本框值 |—
| getState | 获取文本框值 | —
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.Editor.EVENT_CHANGE | editor的value发生改变触发 |
|BI.Editor.EVENT_FOCUS | focus事件 |
|BI.Editor.EVENT_BLUR | blur事件 |
|BI.Editor.EVENT_CLICK | 点击编辑框触发(不在编辑状态时) |
|BI.Editor.EVENT_KEY_DOWN | keyDown时触发 |
|BI.Editor.EVENT_SPACE | 按下空格触发 |
|BI.Editor.EVENT_BACKSPACE | 按下Backspace触发 |
|BI.Editor.EVENT_START | 开始输入触发 |
|BI.Editor.EVENT_PAUSE | 暂停输入触发(输入空白字符) |
|BI.Editor.EVENT_STOP | 停止输入触发 |
|BI.Editor.EVENT_CONFIRM | 确定输入触发(blur时且输入值有效) |
|BI.Editor.EVENT_VALID | 输入值有效的状态事件 |
|BI.Editor.EVENT_ERROR | 输入值无效的状态事件 |
|BI.Editor.EVENT_ENTER | 回车事件 |
|BI.Editor.EVENT_RESTRICT | 回车但是值不合法 |
|BI.Editor.EVENT_REMOVE | 输入为空时按下backspace |
|BI.Editor.EVENT_EMPTY | 输入框为空时触发 |
---

6
docs/case/editor/state_editor.html → docs/_book/case/editor/state_editor.html

@ -2738,7 +2738,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"state_editor","level":"5.2.4","depth":2,"next":{"title":"弹出层","level":"5.3","depth":1,"ref":"","articles":[{"title":"multi_popup_layer","level":"5.3.1","depth":2,"path":"case/layer/multi_popup_layer.md","ref":"case/layer/multi_popup_layer.md","articles":[]},{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},{"title":"panel","level":"5.3.4","depth":2,"path":"case/layer/panel.md","ref":"case/layer/panel.md","articles":[]}]},"previous":{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/state_editor.md","mtime":"2017-09-06T05:50:42.744Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"state_editor","level":"5.2.4","depth":2,"next":{"title":"弹出层","level":"5.3","depth":1,"ref":"","articles":[{"title":"multi_popup_layer","level":"5.3.1","depth":2,"path":"case/layer/multi_popup_layer.md","ref":"case/layer/multi_popup_layer.md","articles":[]},{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},{"title":"panel","level":"5.3.4","depth":2,"path":"case/layer/panel.md","ref":"case/layer/panel.md","articles":[]}]},"previous":{"title":"sign_initial_editor","level":"5.2.3","depth":2,"path":"case/editor/sign_initial_editor.md","ref":"case/editor/sign_initial_editor.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/editor/state_editor.md","mtime":"2017-09-17T09:27:52.632Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2760,6 +2760,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

89
docs/_book/case/editor/state_editor.md

@ -0,0 +1,89 @@
# bi.state_editor
## 记录状态的输入框,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/p68bwkmv/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.state_editor",
value: "123",
text: "456",
width: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| hgap | 效果相当于文本框左右padding值 | number | — | 4 |
| vgap | 效果相当于文本框上下padding值 | number | — | 2 |
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
| tgap |效果相当于文本框top-padding值 | number | —| 0 |
| bgap | 效果相当于文本框bottom-padding值 | number | — | 0 |
| validationChecker | 输入较验函数 |function| — | — |
| quitChecker | 是否允许退出编辑函数 | function |— | — |
| allowBlank | 是否允许空值 | boolean | true,false | true |
| watermark | 文本框placeholder | string | —| " " |
| errorText | 错误提示 | string/function |— | " "|
| height| 高度| number |— | 30|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setErrorText | 设置错误文本 | text |
| getErrorText | 获取错误文本 | —|
| focus | 文本框获取焦点| — |
| blur | 文本框失焦|—|
| setValue | 设置文本框值|value|
| getLastValidValue | 获取文本框最后一次输入的有效值| —|
| getValue | 获取文本框值|—|
| isEditing | 文本框是否处于编辑状态|—|
| isValid | 文本框值是否有效|—|
| doRedMark | 文本标红 | — |
| unRedMark | 取消文本标红| —|
| doHighLight | 文本高亮 | —|
| unHighLight | 取消文本高亮 | —|
| setState | 设置文本框值 |—
| getState | 获取文本框值 | —
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.Editor.EVENT_CHANGE | editor的value发生改变触发 |
|BI.Editor.EVENT_FOCUS | focus事件 |
|BI.Editor.EVENT_BLUR | blur事件 |
|BI.Editor.EVENT_CLICK | 点击编辑框触发(不在编辑状态时) |
|BI.Editor.EVENT_KEY_DOWN | keyDown时触发 |
|BI.Editor.EVENT_SPACE | 按下空格触发 |
|BI.Editor.EVENT_BACKSPACE | 按下Backspace触发 |
|BI.Editor.EVENT_START | 开始输入触发 |
|BI.Editor.EVENT_PAUSE | 暂停输入触发(输入空白字符) |
|BI.Editor.EVENT_STOP | 停止输入触发 |
|BI.Editor.EVENT_CONFIRM | 确定输入触发(blur时且输入值有效) |
|BI.Editor.EVENT_VALID | 输入值有效的状态事件 |
|BI.Editor.EVENT_ERROR | 输入值无效的状态事件 |
|BI.Editor.EVENT_ENTER | 回车事件 |
|BI.Editor.EVENT_RESTRICT | 回车但是值不合法 |
|BI.Editor.EVENT_REMOVE | 输入为空时按下backspace |
|BI.Editor.EVENT_EMPTY | 输入框为空时触发 |
---

6
docs/case/layer/layer_panel.html → docs/_book/case/layer/layer_panel.html

@ -2621,7 +2621,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"layer_panel","level":"5.3.2","depth":2,"next":{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},"previous":{"title":"multi_popup_layer","level":"5.3.1","depth":2,"path":"case/layer/multi_popup_layer.md","ref":"case/layer/multi_popup_layer.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/layer_panel.md","mtime":"2017-09-06T05:50:42.744Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"layer_panel","level":"5.3.2","depth":2,"next":{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},"previous":{"title":"multi_popup_layer","level":"5.3.1","depth":2,"path":"case/layer/multi_popup_layer.md","ref":"case/layer/multi_popup_layer.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/layer_panel.md","mtime":"2017-09-17T09:27:52.640Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2643,6 +2643,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

69
docs/_book/case/layer/layer_panel.md

@ -0,0 +1,69 @@
# bi.popup_panel
## 可以理解为MultiPopupView和Panel两个面板的结合体,基类[BI.MultiPopupView](case/layer/multi_popup_layer.md)
{% method %}
[source](https://jsfiddle.net/fineui/zhnqvera/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.popup_panel",
title: "测试",
width: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| title | 标题 | string | — | " "
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| prependItems | 内部前插入 | items |
| addItems | 内部后插入 | items |
| removeItemAt | 移除指定索引处的item | indexs |
| populate | 刷新列表 | items |
| setNotSelectedValue| 设置未被选中的值 | value,可以是单个值也可以是个数组|
| setValue | 设置value值 | value,可以是单个值也可以是个数组 |
| getNotSelectedValue | 获取没有被选中的值 | —|
| getValue | 获取被选中的值 |—|
| getAllButtons | 获取所有button |—|
| getAllLeaves | 获取所有的叶子节点 | —|
| getSelectedButtons | 获取所有被选中的元素 | —|
| getNotSelectedButtons | 获取所有未被选中的元素 | —|
| getIndexByValue | 根据value值获取value在数组中的索引 | value|
| getNodeById | 根据id获取节点 | id |
| getNodeByValue | 根据value值获取节点 | value |
| empty| 清空组件|—|
| hasPrev| 是否有上一页|—|
| hasNext | 是否有下一页 | —
## 事件
| 事件 | 说明 |
| :------ |:------------- |
|BI.PopupPanel.EVENT_CHANGE | panel的value发生改变触发 |
| BI.PopupPanel.EVENT_CLOSE | panel的关闭事件
| BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON | 点击工具栏事件
---

6
docs/case/layer/multi_popup_layer.html → docs/_book/case/layer/multi_popup_layer.html

@ -2493,7 +2493,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"multi_popup_layer","level":"5.3.1","depth":2,"next":{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},"previous":{"title":"弹出层","level":"5.3","depth":1,"ref":"","articles":[{"title":"multi_popup_layer","level":"5.3.1","depth":2,"path":"case/layer/multi_popup_layer.md","ref":"case/layer/multi_popup_layer.md","articles":[]},{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},{"title":"panel","level":"5.3.4","depth":2,"path":"case/layer/panel.md","ref":"case/layer/panel.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/multi_popup_layer.md","mtime":"2017-09-06T05:50:42.744Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"multi_popup_layer","level":"5.3.1","depth":2,"next":{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},"previous":{"title":"弹出层","level":"5.3","depth":1,"ref":"","articles":[{"title":"multi_popup_layer","level":"5.3.1","depth":2,"path":"case/layer/multi_popup_layer.md","ref":"case/layer/multi_popup_layer.md","articles":[]},{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},{"title":"panel","level":"5.3.4","depth":2,"path":"case/layer/panel.md","ref":"case/layer/panel.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/multi_popup_layer.md","mtime":"2017-09-17T09:27:52.646Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2515,6 +2515,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

34
docs/_book/case/layer/multi_popup_layer.md

@ -0,0 +1,34 @@
# bi.multi_popup_view
## 下拉框弹出层的多选版本,toolbar带有若干按钮, zIndex在1000w,基类[BI.MultiPopupView](case/layer/multi_popup_layer.md)
{% method %}
[source](https://jsfiddle.net/fineui/8of9a7cy/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.multi_popup_view",
width: 300
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| buttons | 按钮组 |array | — | BI.i18nText("BI-Basic_Sure")
---

6
docs/case/layer/pane_list.html → docs/_book/case/layer/pane_list.html

@ -2675,7 +2675,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"pane_list","level":"5.3.3","depth":2,"next":{"title":"panel","level":"5.3.4","depth":2,"path":"case/layer/panel.md","ref":"case/layer/panel.md","articles":[]},"previous":{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/pane_list.md","mtime":"2017-09-07T08:28:11.434Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"pane_list","level":"5.3.3","depth":2,"next":{"title":"panel","level":"5.3.4","depth":2,"path":"case/layer/panel.md","ref":"case/layer/panel.md","articles":[]},"previous":{"title":"layer_panel","level":"5.3.2","depth":2,"path":"case/layer/layer_panel.md","ref":"case/layer/layer_panel.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/pane_list.md","mtime":"2017-09-17T09:27:52.652Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2697,6 +2697,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

74
docs/_book/case/layer/pane_list.md

@ -0,0 +1,74 @@
# bi.list_pane
## list面板,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/7Lv8q9p9/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.list_pane',
element: "#wrapper",
cls: "bi-border",
items: []
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| items | 列表 | array | — | [ ]
| itemsCreator | 列表创建器| function | — | —
| hasNext | 是否有下一页 | function | —| —
| onLoad | 正在加载 | function | —| —
| el | 开启panel的元素 | object | —|{type: "bi.button_group" }|
| logic | 布局逻辑 | object |— | { dynamic:true}
| hgap | 效果相当于容器左右padding值 | number | — | 0 |
| vgap | 效果相当于容器上下padding值 | number | —| 0 |
| lgap | 效果相当于容器left-padding值 | number | —| 0 |
| rgap | 效果相当于容器right-padding值 | number | — | 0 |
| tgap | 效果相当于容器top-padding值 | number | — | 0 |
| bgap | 效果相当于容器bottom-padding值 | number | — | 0 |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| prependItems | 内部前插入 | items |
| addItems | 内部后插入 | items |
| removeItemAt | 移除指定索引处的item | indexs |
| populate | 刷新列表 | items |
| setNotSelectedValue| 设置未被选中的值 | value,可以是单个值也可以是个数组|
| setValue | 设置value值 | value,可以是单个值也可以是个数组 |
| getNotSelectedValue | 获取没有被选中的值 | —|
| getValue | 获取被选中的值 |—|
| getAllButtons | 获取所有button |—|
| getAllLeaves | 获取所有的叶子节点 | —|
| getSelectedButtons | 获取所有被选中的元素 | —|
| getNotSelectedButtons | 获取所有未被选中的元素 | —|
| getIndexByValue | 根据value值获取value在数组中的索引 | value|
| getNodeById | 根据id获取节点 | id |
| getNodeByValue | 根据value值获取节点 | value |
| empty| 清空组件|—|
| hasPrev| 是否有上一页|—|
| hasNext | 是否有下一页 | —
---

6
docs/case/layer/panel.html → docs/_book/case/layer/panel.html

@ -2539,7 +2539,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"panel","level":"5.3.4","depth":2,"next":{"title":"列表","level":"5.4","depth":1,"ref":"","articles":[{"title":"select_list","level":"5.4.1","depth":2,"path":"case/list/list.select.md","ref":"case/list/list.select.md","articles":[]},{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},{"title":"sort_list","level":"5.4.4","depth":2,"path":"case/loader/sort_list.md","ref":"case/loader/sort_list.md","articles":[]}]},"previous":{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/panel.md","mtime":"2017-09-07T08:28:11.434Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"panel","level":"5.3.4","depth":2,"next":{"title":"列表","level":"5.4","depth":1,"ref":"","articles":[{"title":"select_list","level":"5.4.1","depth":2,"path":"case/list/list.select.md","ref":"case/list/list.select.md","articles":[]},{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},{"title":"sort_list","level":"5.4.4","depth":2,"path":"case/loader/sort_list.md","ref":"case/loader/sort_list.md","articles":[]}]},"previous":{"title":"pane_list","level":"5.3.3","depth":2,"path":"case/layer/pane_list.md","ref":"case/layer/pane_list.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/layer/panel.md","mtime":"2017-09-17T09:27:52.659Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2561,6 +2561,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

54
docs/_book/case/layer/panel.md

@ -0,0 +1,54 @@
# bi.panel
## 带有标题栏的panel,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/3m1q3857/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.panel",
title: "标题",
titleButtons: [{
type: "bi.button",
text: "+"
}],
el: this.button_group,
logic: {
dynamic: true
}
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| title | 标题 | string | — | " "
| titleButton | 标题后的按钮组 | array | —| [ ]
| el | 开启panel的元素 | object | —|{ }|
| logic | 布局逻辑 | object |— | { dynamic:false}
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setTitle |设置标题| title
---

6
docs/case/list/list.select.html → docs/_book/case/list/list.select.html

@ -2628,7 +2628,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"select_list","level":"5.4.1","depth":2,"next":{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},"previous":{"title":"列表","level":"5.4","depth":1,"ref":"","articles":[{"title":"select_list","level":"5.4.1","depth":2,"path":"case/list/list.select.md","ref":"case/list/list.select.md","articles":[]},{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},{"title":"sort_list","level":"5.4.4","depth":2,"path":"case/loader/sort_list.md","ref":"case/loader/sort_list.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/list/list.select.md","mtime":"2017-09-06T05:50:42.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"select_list","level":"5.4.1","depth":2,"next":{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},"previous":{"title":"列表","level":"5.4","depth":1,"ref":"","articles":[{"title":"select_list","level":"5.4.1","depth":2,"path":"case/list/list.select.md","ref":"case/list/list.select.md","articles":[]},{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},{"title":"sort_list","level":"5.4.4","depth":2,"path":"case/loader/sort_list.md","ref":"case/loader/sort_list.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/list/list.select.md","mtime":"2017-09-17T09:27:52.665Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2650,6 +2650,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

59
docs/_book/case/list/list.select.md

@ -0,0 +1,59 @@
# bi.select_list
### 选择列表
{% method %}
[source](https://jsfiddle.net/fineui/c3azpxss/)
{% common %}
```javascript
BI.createWidget({
type: "bi.select_list",
items: [{
text: '1',
}, {
text: '2',
}]
});
```
{% endmethod %}
### 参数
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | --------------- | -------- | ---------------- |
| direction | toolbar位置 | string | BI.Direction.Top |
| onLoaded | 加载完成的回调(测试了无效果) | function | BI.emptyFn |
| items | 子项 | array | [] |
| itemsCreator | 元素创造器 | function | BI.emptyFn |
### 方法
| 方法名 | 说明 | 参数 |
| --------------------- | ------------- | ------- |
| setAllSelected | 设置全选 | v: boolean |
| setToolBarVisible | 设置toolbar是否可见 | b: boolean |
| isAllSelected | 是否全选中 | — |
| hasPrev | 是否有上一页 | — |
| hasNext | 是否有下一页 | — |
| prependItems | 列表最前添加元素 | items |
| addItems | 列表最后添加元素 | items |
| setValue | 设置值 | data |
| getVlaue | 获得值 | — |
| empty | 清空 | — |
| populate | 替换内容 | items |
| resetHeight | 重新设置高度 | h |
| setNotSelectedValue | 设置未选中值 | — |
| getNotSelectedValue | 获取未选中植 | — |
| getAllButtons | 获得所以根节点 | — |
| getAllLeaves | 获得所有叶节点 | — |
| getSelectedButtons | 获取选中的根节点 | — |
| getNotSelectedButtons | 获取未选中的根节点 | — |
| getIndexByValue | 根据值获取索引 | value |
| getNodeById | 根据id获取node | id |
| getNodeByValue | 根据值获取node | value |
------

6
docs/case/loader/lazy_loader.html → docs/_book/case/loader/lazy_loader.html

@ -2558,7 +2558,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"lazy_loader","level":"5.4.2","depth":2,"next":{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},"previous":{"title":"select_list","level":"5.4.1","depth":2,"path":"case/list/list.select.md","ref":"case/list/list.select.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/loader/lazy_loader.md","mtime":"2017-09-07T08:28:11.434Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"lazy_loader","level":"5.4.2","depth":2,"next":{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},"previous":{"title":"select_list","level":"5.4.1","depth":2,"path":"case/list/list.select.md","ref":"case/list/list.select.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/loader/lazy_loader.md","mtime":"2017-09-17T09:27:52.672Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2580,6 +2580,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

43
docs/_book/case/loader/lazy_loader.md

@ -0,0 +1,43 @@
# bi.lazy_loader
### 懒加载loader
{% method %}
[source](https://jsfiddle.net/fineui/n710yphc/)
{% common %}
```javascript
BI.createWidget({
type: "bi.lazy_loader",
width: 100,
element: 'body',
items: items,
});
```
{% endmethod %}
### 方法
| 方法名 | 说明 | 参数 |
| --------------------- | ---------- | ----- |
| addItems | 列表最后添加元素 | items |
| setValue | 设置值 | data |
| getVlaue | 获得值 | — |
| empty | 清空 | — |
| populate | 替换内容 | items |
| setNotSelectedValue | 设置未选中值 | — |
| getNotSelectedValue | 获取未选中植 | — |
| getAllButtons | 获得所以根节点 | — |
| getAllLeaves | 获得所有叶节点 | — |
| getSelectedButtons | 获取选中的根节点 | — |
| getNotSelectedButtons | 获取未选中的根节点 | — |
| getIndexByValue | 根据值获取索引 | value |
| getNodeById | 根据id获取node | id |
| getNodeByValue | 根据值获取node | value |
------

6
docs/case/loader/list_loader.html → docs/_book/case/loader/list_loader.html

@ -2615,7 +2615,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"list_loader","level":"5.4.3","depth":2,"next":{"title":"sort_list","level":"5.4.4","depth":2,"path":"case/loader/sort_list.md","ref":"case/loader/sort_list.md","articles":[]},"previous":{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/loader/list_loader.md","mtime":"2017-09-07T08:28:11.434Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"list_loader","level":"5.4.3","depth":2,"next":{"title":"sort_list","level":"5.4.4","depth":2,"path":"case/loader/sort_list.md","ref":"case/loader/sort_list.md","articles":[]},"previous":{"title":"lazy_loader","level":"5.4.2","depth":2,"path":"case/loader/lazy_loader.md","ref":"case/loader/lazy_loader.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/loader/list_loader.md","mtime":"2017-09-17T09:27:52.678Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2637,6 +2637,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

54
docs/_book/case/loader/list_loader.md

@ -0,0 +1,54 @@
# bi.list_loader
### 为解决排序问题引入的控件
{% method %}
[source](https://jsfiddle.net/fineui/8wa7rvcd/)
{% common %}
```javascript
BI.createWidget({
type: "bi.list_loader",
width: 100,
element: 'body',
items: items,
});
```
{% endmethod %}
### 参数
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ------ | -------- | ---------- |
| count | 分页计数 | number | false |
| next | | object | {} |
| hasNext | 是否有下一页 | function | BI.emptyFn |
| items | 子项 | array | [] |
| itemsCreator | 元素创造器 | function | BI.emptyFn |
| onLoaded | 加载完成回调 | function | BI.emptyFn |
### 方法
| 方法名 | 说明 | 参数 |
| --------------------- | ---------- | ----- |
| hasNext | 是否有下一页 | — |
| addItems | 列表最后添加元素 | items |
| setValue | 设置值 | data |
| getVlaue | 获得值 | — |
| empty | 清空 | — |
| populate | 替换内容 | items |
| resetHeight | 重新设置高度 | h |
| setNotSelectedValue | 设置未选中值 | — |
| getNotSelectedValue | 获取未选中植 | — |
| getAllButtons | 获得所以根节点 | — |
| getAllLeaves | 获得所有叶节点 | — |
| getSelectedButtons | 获取选中的根节点 | — |
| getNotSelectedButtons | 获取未选中的根节点 | — |
| getIndexByValue | 根据值获取索引 | value |
| getNodeById | 根据id获取node | id |
| getNodeByValue | 根据值获取node | value |
------

6
docs/case/loader/sort_list.html → docs/_book/case/loader/sort_list.html

@ -2613,7 +2613,7 @@ BI.createWidget({
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"sort_list","level":"5.4.4","depth":2,"next":{"title":"触发器","level":"5.5","depth":1,"ref":"","articles":[{"title":"editor_trigger","level":"5.5.1","depth":2,"path":"case/trigger/editor_trigger.md","ref":"case/trigger/editor_trigger.md","articles":[]},{"title":"icon_trigger","level":"5.5.2","depth":2,"path":"case/trigger/icon_trigger.md","ref":"case/trigger/icon_trigger.md","articles":[]},{"title":"text_trigger","level":"5.5.3","depth":2,"path":"case/trigger/text_trigger.md","ref":"case/trigger/text_trigger.md","articles":[]}]},"previous":{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters"],"pluginsConfig":{"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/loader/sort_list.md","mtime":"2017-09-06T05:50:42.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-14T08:48:22.369Z"},"basePath":"../..","book":{"language":""}});
gitbook.page.hasChanged({"page":{"title":"sort_list","level":"5.4.4","depth":2,"next":{"title":"触发器","level":"5.5","depth":1,"ref":"","articles":[{"title":"editor_trigger","level":"5.5.1","depth":2,"path":"case/trigger/editor_trigger.md","ref":"case/trigger/editor_trigger.md","articles":[]},{"title":"icon_trigger","level":"5.5.2","depth":2,"path":"case/trigger/icon_trigger.md","ref":"case/trigger/icon_trigger.md","articles":[]},{"title":"text_trigger","level":"5.5.3","depth":2,"path":"case/trigger/text_trigger.md","ref":"case/trigger/text_trigger.md","articles":[]}]},"previous":{"title":"list_loader","level":"5.4.3","depth":2,"path":"case/loader/list_loader.md","ref":"case/loader/list_loader.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["jsfiddle","splitter","theme-api","expandable-chapters","livereload"],"pluginsConfig":{"livereload":{},"jsfiddle":{"type":"script","tabs":["result","js","html"],"height":"100","width":"500","fontColor":"00FF00"},"splitter":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-api":{"languages":[],"split":true,"theme":"light"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"case/loader/sort_list.md","mtime":"2017-09-17T09:27:52.684Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-09-17T09:35:05.997Z"},"basePath":"../..","book":{"language":""}});
});
</script>
</div>
@ -2635,6 +2635,10 @@ BI.createWidget({
<script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
<script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>

54
docs/_book/case/loader/sort_list.md

@ -0,0 +1,54 @@
# bi.sort_list
### 排序列表
{% method %}
[source](https://jsfiddle.net/fineui/wj68tdvx/)
{% common %}
```javascript
BI.createWidget({
type: "bi.sort_list",
width: 100,
element: 'body',
items: items,
});
```
{% endmethod %}
### 参数
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ------ | -------- | ---------- |
| count | 分页计数 | number | false |
| next | | object | {} |
| hasNext | 是否有下一页 | function | BI.emptyFn |
| items | 子项 | array | [] |
| itemsCreator | 元素创造器 | function | BI.emptyFn |
| onLoaded | 加载完成回调 | function | BI.emptyFn |
### 方法
| 方法名 | 说明 | 参数 |
| --------------------- | ---------- | ----- |
| hasNext | 是否有下一页 | — |
| addItems | 列表最后添加元素 | items |
| setValue | 设置值 | data |
| getVlaue | 获得值 | — |
| empty | 清空 | — |
| populate | 替换内容 | items |
| resetHeight | 重新设置高度 | h |
| setNotSelectedValue | 设置未选中值 | — |
| getNotSelectedValue | 获取未选中植 | — |
| getAllButtons | 获得所以根节点 | — |
| getAllLeaves | 获得所有叶节点 | — |
| getSelectedButtons | 获取选中的根节点 | — |
| getNotSelectedButtons | 获取未选中的根节点 | — |
| getIndexByValue | 根据值获取索引 | value |
| getNodeById | 根据id获取node | id |
| getNodeByValue | 根据值获取node | value |
------

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save