Browse Source

Merge pull request #87 in FUI/fineui from ~GUY/fineui:master to master

* commit 'b0f6bcc7d880de8528c285b69f383f2d2738ad04':
  update
  return的storeValue deepClone一下
  布局文档以及基础控件文档
  详细控件
  update table
  add
  add
  update bi.table_view
  update
  update layout
  finish detailed table
  update
  补一下详细控件
  update detailed tree struct
  minor change
  finish bi.table
  remove paragrah number
  float_center布局
  add expandable plugin
es6
guy 7 years ago
parent
commit
74197b8fbe
  1. 7
      bi/base.js
  2. 12
      bi/case.js
  3. 2
      bi/core.js
  4. 4
      bi/widget.js
  5. 11
      demo/version.js
  6. 7
      dist/base.js
  7. 36
      dist/bundle.js
  8. 54
      dist/bundle.min.js
  9. 12
      dist/case.js
  10. 2
      dist/core.js
  11. 11
      dist/demo.js
  12. 4
      dist/widget.js
  13. 11
      public/js/index.js
  14. 2
      src/base/single/editor/editor.js
  15. 4
      src/base/single/editor/editor.textarea.js
  16. 1
      src/base/single/input/input.js
  17. 2
      src/case/editor/editor.shelter.js
  18. 2
      src/case/editor/editor.sign.initial.js
  19. 2
      src/case/editor/editor.sign.js
  20. 2
      src/case/editor/editor.state.js
  21. 1
      src/case/editor/editor.state.simple.js
  22. 2
      src/case/editor/editor.text.js
  23. 1
      src/case/trigger/trigger.editor.js
  24. 2
      src/data/pool/pool.sharing.js
  25. 2
      src/widget/multiselect/multiselect.combo.js
  26. 2
      src/widget/multiselectlist/multiselectlist.js
  27. 39
      uidoc/SUMMARY.md
  28. 40
      uidoc/base/bubble.md
  29. 71
      uidoc/base/label.md
  30. 39
      uidoc/base/message.md
  31. 71
      uidoc/base/table/collection_table.md
  32. 56
      uidoc/base/table/grid_table.md
  33. 74
      uidoc/base/table/resizable_table.md
  34. 64
      uidoc/base/table/table_view.md
  35. 42
      uidoc/base/toast.md
  36. 2
      uidoc/base/tree/async_tree.md
  37. 2
      uidoc/base/tree/part_tree.md
  38. 2
      uidoc/base/tree/tree_view.md
  39. 8
      uidoc/book.json
  40. 114
      uidoc/core/layout/border.md
  41. 59
      uidoc/core/layout/center.md
  42. 99
      uidoc/core/layout/center_adapt.md
  43. 58
      uidoc/core/layout/float_center.md
  44. 75
      uidoc/core/layout/flow.md
  45. 71
      uidoc/core/layout/grid.md
  46. 68
      uidoc/core/layout/horizontal.md
  47. 59
      uidoc/core/layout/horizontal_adapt.md
  48. 59
      uidoc/core/layout/horizontal_auto.md
  49. 48
      uidoc/core/layout/horizontal_float.md
  50. 64
      uidoc/core/layout/htape.md
  51. 77
      uidoc/core/layout/left_right_vertical_adapt.md
  52. 37
      uidoc/core/layout/table.md
  53. 38
      uidoc/core/layout/td.md
  54. 47
      uidoc/core/layout/vertical.md
  55. 59
      uidoc/core/layout/vertical_adapt.md
  56. 64
      uidoc/core/layout/vtape.md
  57. 111
      uidoc/detailed/bi.button/general.md
  58. 45
      uidoc/detailed/bi.button/items.md
  59. 58
      uidoc/detailed/bi.button/node.md
  60. 55
      uidoc/detailed/bi.button/segment.md
  61. 155
      uidoc/detailed/bi.button/tooltip.md
  62. 2
      uidoc/detailed/bi.multi_select_item.md
  63. 2
      uidoc/detailed/bi.segment.md
  64. 2
      uidoc/detailed/bi.single_select_item.md
  65. 2
      uidoc/detailed/combo/multilayer_select_tree_combo.md
  66. 2
      uidoc/detailed/combo/multilayer_single_tree_combo.md
  67. 2
      uidoc/detailed/combo/select_tree_combo.md
  68. 2
      uidoc/detailed/combo/single_tree_combo.md
  69. 2
      uidoc/detailed/date/custom_date_time.md
  70. 2
      uidoc/detailed/date/date_combo.md
  71. 2
      uidoc/detailed/date/date_pane_widget.md
  72. 2
      uidoc/detailed/date/year_month_combo.md
  73. 2
      uidoc/detailed/date/year_quarter_combo.md
  74. 22
      uidoc/detailed/dialog.md
  75. 70
      uidoc/detailed/down_list_combo.md
  76. 2
      uidoc/detailed/file_manager.md
  77. 26
      uidoc/detailed/month_combo.md
  78. 32
      uidoc/detailed/multi_select_combo.md
  79. 2
      uidoc/detailed/node.md
  80. 36
      uidoc/detailed/numeric_interval.md
  81. 2
      uidoc/detailed/path/direction_path_chooser.md
  82. 2
      uidoc/detailed/path/path_chooser.md
  83. 25
      uidoc/detailed/quarter_combo.md
  84. 2
      uidoc/detailed/relation_view.md
  85. 31
      uidoc/detailed/table/bi.excel_table.md
  86. 80
      uidoc/detailed/table/bi.page_table.md
  87. 30
      uidoc/detailed/table/bi.preview_table.md
  88. 29
      uidoc/detailed/table/bi.responsive_table.md
  89. 2
      uidoc/detailed/text_input/finetuning_number_editor.md
  90. 18
      uidoc/detailed/tree/bi.multi_tree_combo.md
  91. 21
      uidoc/detailed/tree/bi.switch_tree.md
  92. 28
      uidoc/detailed/year_combo.md
  93. 1
      uidoc/package.json

7
bi/base.js

@ -17933,7 +17933,6 @@ BI.Editor = BI.inherit(BI.Single, {
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "" errorText: ""
@ -17950,7 +17949,6 @@ BI.Editor = BI.inherit(BI.Single, {
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank allowBlank: o.allowBlank
})); }));
this.editor.element.css({ this.editor.element.css({
@ -18465,7 +18463,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
setStyle: function (style) { setStyle: function (style) {
this.style = style; this.style = style;
this.element.css(style); this.element.css(style);
this.content.element.css(style) this.content.element.css(BI.extend({}, style, {
color: style.color || BI.DOM.getContrastColor(BI.DOM.isRGBColor(style.backgroundColor) ? BI.DOM.rgb2hex(style.backgroundColor) : style.backgroundColor)
}))
}, },
getStyle: function () { getStyle: function () {
@ -19251,7 +19251,6 @@ BI.Input = BI.inherit(BI.Single, {
element: "<input/>", element: "<input/>",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn,//按确定键能否退出编辑 quitChecker: BI.emptyFn,//按确定键能否退出编辑
mouseOut: false,
allowBlank: false allowBlank: false
}) })
}, },

12
bi/case.js

@ -6661,7 +6661,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -6685,7 +6684,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -6918,7 +6916,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -6943,7 +6940,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7189,7 +7185,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -7212,7 +7207,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7449,7 +7443,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -7472,7 +7465,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7747,7 +7739,6 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7978,7 +7969,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -8007,7 +7997,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -12455,7 +12444,6 @@ BI.EditorTrigger = BI.inherit(BI.Trigger, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: false,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
bi/core.js

@ -17474,7 +17474,7 @@ Data.Constant = BI.Constant = BICst = {};
var args = Array.prototype.slice.call(arguments, 0), var args = Array.prototype.slice.call(arguments, 0),
copy = _Shared; copy = _Shared;
for (var i = 0; i < args.length; i++) { for (var i = 0; i < args.length; i++) {
copy = copy[args[i]]; copy = copy && copy[args[i]];
} }
return copy; return copy;
}, },

4
bi/widget.js

@ -8345,7 +8345,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {
@ -9749,7 +9749,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {

11
demo/version.js

@ -18,4 +18,15 @@ BI.i18n = {
"BI-Basic_Simple_Thursday": "四", "BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五", "BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六", "BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度",
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选"
}; };

7
dist/base.js vendored

@ -17933,7 +17933,6 @@ BI.Editor = BI.inherit(BI.Single, {
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "" errorText: ""
@ -17950,7 +17949,6 @@ BI.Editor = BI.inherit(BI.Single, {
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank allowBlank: o.allowBlank
})); }));
this.editor.element.css({ this.editor.element.css({
@ -18465,7 +18463,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
setStyle: function (style) { setStyle: function (style) {
this.style = style; this.style = style;
this.element.css(style); this.element.css(style);
this.content.element.css(style) this.content.element.css(BI.extend({}, style, {
color: style.color || BI.DOM.getContrastColor(BI.DOM.isRGBColor(style.backgroundColor) ? BI.DOM.rgb2hex(style.backgroundColor) : style.backgroundColor)
}))
}, },
getStyle: function () { getStyle: function () {
@ -19251,7 +19251,6 @@ BI.Input = BI.inherit(BI.Single, {
element: "<input/>", element: "<input/>",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn,//按确定键能否退出编辑 quitChecker: BI.emptyFn,//按确定键能否退出编辑
mouseOut: false,
allowBlank: false allowBlank: false
}) })
}, },

36
dist/bundle.js vendored

@ -28616,7 +28616,7 @@ Data.Constant = BI.Constant = BICst = {};
var args = Array.prototype.slice.call(arguments, 0), var args = Array.prototype.slice.call(arguments, 0),
copy = _Shared; copy = _Shared;
for (var i = 0; i < args.length; i++) { for (var i = 0; i < args.length; i++) {
copy = copy[args[i]]; copy = copy && copy[args[i]];
} }
return copy; return copy;
}, },
@ -46662,7 +46662,6 @@ BI.Editor = BI.inherit(BI.Single, {
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "" errorText: ""
@ -46679,7 +46678,6 @@ BI.Editor = BI.inherit(BI.Single, {
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank allowBlank: o.allowBlank
})); }));
this.editor.element.css({ this.editor.element.css({
@ -47194,7 +47192,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
setStyle: function (style) { setStyle: function (style) {
this.style = style; this.style = style;
this.element.css(style); this.element.css(style);
this.content.element.css(style) this.content.element.css(BI.extend({}, style, {
color: style.color || BI.DOM.getContrastColor(BI.DOM.isRGBColor(style.backgroundColor) ? BI.DOM.rgb2hex(style.backgroundColor) : style.backgroundColor)
}))
}, },
getStyle: function () { getStyle: function () {
@ -47980,7 +47980,6 @@ BI.Input = BI.inherit(BI.Single, {
element: "<input/>", element: "<input/>",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn,//按确定键能否退出编辑 quitChecker: BI.emptyFn,//按确定键能否退出编辑
mouseOut: false,
allowBlank: false allowBlank: false
}) })
}, },
@ -70918,7 +70917,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -70942,7 +70940,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -71175,7 +71172,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -71200,7 +71196,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -71446,7 +71441,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -71469,7 +71463,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -71706,7 +71699,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -71729,7 +71721,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -72004,7 +71995,6 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -72235,7 +72225,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -72264,7 +72253,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -76712,7 +76700,6 @@ BI.EditorTrigger = BI.inherit(BI.Trigger, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: false,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -85352,7 +85339,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {
@ -86756,7 +86743,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {
@ -93675,4 +93662,15 @@ BI.i18n = {
"BI-Basic_Simple_Thursday": "四", "BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五", "BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六", "BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度",
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选"
}; };

54
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/case.js vendored

@ -6661,7 +6661,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -6685,7 +6684,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -6918,7 +6916,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -6943,7 +6940,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7189,7 +7185,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -7212,7 +7207,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7449,7 +7443,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -7472,7 +7465,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7747,7 +7739,6 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -7978,7 +7969,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -8007,7 +7997,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
@ -12455,7 +12444,6 @@ BI.EditorTrigger = BI.inherit(BI.Trigger, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: false,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
dist/core.js vendored

@ -28616,7 +28616,7 @@ Data.Constant = BI.Constant = BICst = {};
var args = Array.prototype.slice.call(arguments, 0), var args = Array.prototype.slice.call(arguments, 0),
copy = _Shared; copy = _Shared;
for (var i = 0; i < args.length; i++) { for (var i = 0; i < args.length; i++) {
copy = copy[args[i]]; copy = copy && copy[args[i]];
} }
return copy; return copy;
}, },

11
dist/demo.js vendored

@ -18,6 +18,17 @@ BI.i18n = {
"BI-Basic_Simple_Thursday": "四", "BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五", "BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六", "BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度",
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选"
};$(function () { };$(function () {
var ref; var ref;
BI.createWidget({ BI.createWidget({

4
dist/widget.js vendored

@ -8345,7 +8345,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {
@ -9749,7 +9749,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {

11
public/js/index.js

@ -13,4 +13,15 @@ BI.i18n = {
"BI-Basic_Simple_Thursday": "四", "BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五", "BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六", "BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度",
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选"
}; };

2
src/base/single/editor/editor.js

@ -19,7 +19,6 @@ BI.Editor = BI.inherit(BI.Single, {
inputType: "text", inputType: "text",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "" errorText: ""
@ -36,7 +35,6 @@ BI.Editor = BI.inherit(BI.Single, {
watermark: o.watermark, watermark: o.watermark,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank allowBlank: o.allowBlank
})); }));
this.editor.element.css({ this.editor.element.css({

4
src/base/single/editor/editor.textarea.js

@ -142,7 +142,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
setStyle: function (style) { setStyle: function (style) {
this.style = style; this.style = style;
this.element.css(style); this.element.css(style);
this.content.element.css(style) this.content.element.css(BI.extend({}, style, {
color: style.color || BI.DOM.getContrastColor(BI.DOM.isRGBColor(style.backgroundColor) ? BI.DOM.rgb2hex(style.backgroundColor) : style.backgroundColor)
}))
}, },
getStyle: function () { getStyle: function () {

1
src/base/single/input/input.js

@ -12,7 +12,6 @@ BI.Input = BI.inherit(BI.Single, {
element: "<input/>", element: "<input/>",
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn,//按确定键能否退出编辑 quitChecker: BI.emptyFn,//按确定键能否退出编辑
mouseOut: false,
allowBlank: false allowBlank: false
}) })
}, },

2
src/case/editor/editor.shelter.js

@ -17,7 +17,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -41,7 +40,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
src/case/editor/editor.sign.initial.js

@ -14,7 +14,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -39,7 +38,6 @@ BI.SignInitialEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
src/case/editor/editor.sign.js

@ -17,7 +17,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -40,7 +39,6 @@ BI.SignEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
src/case/editor/editor.state.js

@ -17,7 +17,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: true, allowBlank: true,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -40,7 +39,6 @@ BI.StateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

1
src/case/editor/editor.state.simple.js

@ -40,7 +40,6 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
src/case/editor/editor.text.js

@ -16,7 +16,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
bgap: 0, bgap: 0,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
mouseOut: false,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "", errorText: "",
@ -45,7 +44,6 @@ BI.TextEditor = BI.inherit(BI.Widget, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: o.mouseOut,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

1
src/case/trigger/trigger.editor.js

@ -34,7 +34,6 @@ BI.EditorTrigger = BI.inherit(BI.Trigger, {
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: false,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText

2
src/data/pool/pool.sharing.js

@ -15,7 +15,7 @@
var args = Array.prototype.slice.call(arguments, 0), var args = Array.prototype.slice.call(arguments, 0),
copy = _Shared; copy = _Shared;
for (var i = 0; i < args.length; i++) { for (var i = 0; i < args.length; i++) {
copy = copy[args[i]]; copy = copy && copy[args[i]];
} }
return copy; return copy;
}, },

2
src/widget/multiselect/multiselect.combo.js

@ -356,7 +356,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {

2
src/widget/multiselectlist/multiselectlist.js

@ -322,7 +322,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
}, },
getValue: function () { getValue: function () {
return this.storeValue; return BI.deepClone(this.storeValue);
}, },
populate: function () { populate: function () {

39
uidoc/SUMMARY.md

@ -66,10 +66,6 @@
* [multifile_editor](base/editor/multifile_editor.md) * [multifile_editor](base/editor/multifile_editor.md)
* [textarea_editor](base/editor/textarea_editor.md) * [textarea_editor](base/editor/textarea_editor.md)
* [formula_editor](base/editor/formula_editor.md) * [formula_editor](base/editor/formula_editor.md)
* 树
* [tree_view](base/tree/tree_view.md)
* [async_tree](base/tree/async_tree.md)
* [part_tree](base/tree/part_tree.md)
* 表格 * 表格
* [table_view](base/table/table_view.md) * [table_view](base/table/table_view.md)
* [grid_table](base/table/grid_table.md) * [grid_table](base/table/grid_table.md)
@ -138,14 +134,39 @@
* [各种节点nodes](detailed/bi.button/node.md) * [各种节点nodes](detailed/bi.button/node.md)
* [各种segment](detailed/bi.button/segment.md) * [各种segment](detailed/bi.button/segment.md)
* 树形结构 * 树形结构
* [bi.multi_tree_combo](detailed/tree/bi.multi_tree_combo.md) * [multi_tree_combo](detailed/tree/bi.multi_tree_combo.md)
* [bi.switch_tree](detailed/tree/bi.switch_tree.md) * [switch_tree](detailed/tree/bi.switch_tree.md)
* 表格 * 表格
* [bi.preview_table](detailed/table/bi.preview_table.md) * [preview_table](detailed/table/bi.preview_table.md)
* [bi.responsive_table](detailed/table/bi.responsive_table.md) * [responsive_table](detailed/table/bi.responsive_table.md)
* [bi.excel_table](detailed/table/bi.excel_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.text_editor](detailed/text_input/bi.text_editor.md)
* [bi.search_editor](detailed/text_input/bi.search_editor.md) * [bi.search_editor](detailed/text_input/bi.search_editor.md)
* [bi.clear_editor](detailed/text_input/bi.clear_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)

40
uidoc/base/bubble.md

@ -1,2 +1,40 @@
# bubble # 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|
---

71
uidoc/base/label.md

@ -1,2 +1,71 @@
# label # 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| | —|
---

39
uidoc/base/message.md

@ -1,2 +1,39 @@
# message # bi.Msg
#### 消息提示
{% method %}
[source]()
{% 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|
---

71
uidoc/base/table/collection_table.md

@ -1,2 +1,71 @@
# collection_table # bi.collection_table
### 继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/0e7p2ezc/)
{% 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 | 是否冻结列 | bool | false |
| freezeCols | 冻结的列 | array | [] |
| isNeedMerge | 是否需要合并单元格 | bool | false |
| mergeCols | 合并的单元格列号 | array | [] |
| mergeRule | 合并规则, 默认相等时合并 | function(row1, row2) | 默认row1 = row2 时合并 |
| columnSize | 单元格宽度集合 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| regionColumnSize | 列项间的 | array | [] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 用法 |
| ------------------------- | ----------- | ------------------------------------ |
| setWidth | 设置宽度 | setWidth(width) |
| setHeight | 设置高度 | setHeight(height) |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | getScrollRegionColumnSize() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| getColumns | 获取列项 | getColumns() |
| populate | 增加行 | populate(rows) |
| restore | 存储数据 | restore() |

56
uidoc/base/table/grid_table.md

@ -1,2 +1,56 @@
# grid_table # 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 | 是否需要冻结 | bool | false |
| freezeCols | 冻结列 | array | [] |
| columnSize | 单元格宽度集合 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| regionColumnSize | 列项间的 | array | [] |
| header | 表头 | array | [] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 用法 |
| ------------------------ | ----------- | ------------------------------------ |
| setWidth | 设置宽度 | setWidth(width) |
| setHeight | 设置高度 | setHeight(height) |
| getRegionSize | 获取间隙大小 | getRegionSize() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| populate | 增加行 | populate(rows) |
| restore | 储存 | restore() |

74
uidoc/base/table/resizable_table.md

@ -1,2 +1,74 @@
# resizable_table # 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 | 是否需要冻结列 | bool | false |
| freezeCols | 冻结的列 | array | [] |
| isNeedResize | 是否需要调整大小 | bool | false |
| isResizeAdapt | 是否调整时自适应 | bool | true |
| isNeedMerge | 是否需要合并单元格 | bool | false |
| mergeCols | 合并的单元格列号 | array | [] |
| columnSize | 单元格宽度集合 | array | [] |
| minColumnSize | 最小列宽 | array | [] |
| maxColumnSize | 最大列宽 | array | [] |
| headerRowSize | 表头高度 | number | 25 |
| rowSize | 普通单元格高度 | number | 25 |
| header | 表头 | array | [] |
| regionColumnSize | 列项间的 | array | [] |
| items | 子组件 | array | [] |
## 方法
| 方法名 | 说明 | 用法 |
| ------------------------ | ----------- | ------------------------------------ |
| setWidth | 设置宽度 | setWidth() |
| setHeight | 设置高度 | setHeight() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| attr | 设置属性 | attr(key, value) |
| populate | 增加行 | populate(rows) |
| restore | 保存表 | restore() |

64
uidoc/base/table/table_view.md

@ -1,2 +1,64 @@
# table_view # bi.table_view
### 表格展示控件
{% method %}
[source](https://jsfiddle.net/fineui/mbazb80a/)
{% common %}
```javascript
BI.createWidget({
type: "bi.table_view",
element: 'body',
isNeedMerge: true,
isNeedFreeze: true,
freezeCols: [0, 1],
mergeCols: [0, 1],
columnSize: [100, 200, 300, 400, 500],
items: [],
header: []
});
```
{% endmethod %}
## 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ---------------- | ------------- | -------------------- | ----------------- |
| isNeedResize | 是否需要调整大小 | bool | false |
| isNeedMerge | 是否需要合并单元格 | bool | 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 | 调整表格 | resize() |
| setColumnSize | 设置列宽 | setColumnSize(columnSize) |
| getColumnSize | 得到列宽 | getColumnSize() |
| getCalculateColumnSize | 获得计算后的列宽 | getCalculateColumnSize() |
| setHeaderColumnSize | 设置表头的列宽 | setHeaderColumnSize(columnSize) |
| setRegionColumnSize | 设置列项之间的间隙 | setRegionColumnSize(columnSize) |
| getRegionColumnSize | 获得列项之间的间隙 | getRegionColumnSize() |
| getCalculateRegionColumnSize | 获取计算后的列项之间的间隙 | getCalculateRegionColumnSize() |
| getCalculateRegionRowSize | 获取计算后的列项上下之间的间隙 | getCalculateRegionRowSize() |
| getClientRegionColumnSize | 获取浏览器中显示的列项之间的间隙 | getClientRegionColumnSize() |
| getScrollRegionColumnSize | 获取横向滚动条宽度 | getScrollRegionColumnSize() |
| getScrollRegionRowSize | 获取纵向滚动条宽度 | getScrollRegionRowSize() |
| hasVerticalScroll | 是否含有数值滚动条 | hasVerticalScroll() |
| setVerticalScroll | 设置纵向滚动距离 | setVerticalScroll(scrollTop) |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | setLeftHorizontalScroll(scrollLeft) |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | setRightHorizontalScroll(scrollLeft) |
| getVerticalScroll | 获取纵向滚动距离 | getVerticalScroll() |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | getLeftHorizontalScroll() |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | getRightHorizontalScroll() |
| getColumns | 获取列项 | getColumns() |
| populate | 增加行 | populate(rows) |

42
uidoc/base/toast.md

@ -1,2 +1,42 @@
# toast # bi.toast
#### toast提示
{% method %}
[source]()
{% 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 |
---

2
uidoc/base/tree/async_tree.md

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

2
uidoc/base/tree/part_tree.md

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

2
uidoc/base/tree/tree_view.md

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

8
uidoc/book.json

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

114
uidoc/core/layout/border.md

@ -1,2 +1,114 @@
# border # bi.border
#### 上下的高度固定/左右的宽度固定,中间的高度/宽度自适应
{% method %}
[source](https://jsfiddle.net/fineui/qtdsdegp/)
{% common %}
```javascript
Demo = {};
Demo._createNorth = function(){
return BI.createWidget({
type: "bi.label",
text: "North",
cls: "layout-bg1",
height: 30
})
};
Demo._createWest = function(){
return BI.createWidget({
type: "bi.center",
cls: "layout-bg2",
items:[{
type: "bi.label",
text: "West",
whiteSpace: "normal"
}]
})
};
Demo._createCenter = function(){
return BI.createWidget({
type: "bi.center",
cls: "layout-bg3",
items: [{
type: "bi.label",
text: "Center",
whiteSpace: "normal"
}]
})
};
Demo._createEast = function(){
return BI.createWidget({
type: "bi.center",
cls: "layout-bg5",
items: [{
type: "bi.label",
text: "East",
whiteSpace: "normal"
}]
})
};
Demo._createSouth = function(){
return BI.createWidget({
type: "bi.label",
text: "South",
cls: "layout-bg6",
height: 50
})
};
BI.createWidget({
type: 'bi.border',
element: "#wrapper",
cls: "",
items: {
north: {
el: Demo._createNorth(),
height: 30,
top: 20,
left: 20,
right: 20
},
south: {
el: Demo._createSouth(),
height: 50,
bottom: 20,
left: 20,
right: 20
},
west: {
el: Demo._createWest(),
width: 200,
left: 20
},
east: {
el: Demo._createEast(),
width: 300,
right: 20
},
center: Demo._createCenter()
}
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :----|:----
| items | 子控件对象 | object | north,east,west,south,center | | |
---

59
uidoc/core/layout/center.md

@ -7,42 +7,31 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.CenterLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-center"
},
render: function () {
return {
type: "bi.center",
items: [{
type: "bi.label",
text: "Center 1,这里虽然设置label的高度30,但是最终影响高度的是center布局",
cls: "layout-bg1",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 2,为了演示label是占满整个的,用了一个whiteSpace:normal",
cls: "layout-bg2",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 3",
cls: "layout-bg3"
},{
type: "bi.label",
text: "Center 4",
cls: "layout-bg5"
}],
hgap: 20,
vgap: 20
}
}
});
BI.shortcut("demo.center_layout", Demo.CenterLayout);
BI.createWidget({ BI.createWidget({
type: 'demo.center_layout', type: "bi.center",
element: "#wrapper", element: "#wrapper",
items: [{
type: "bi.label",
text: "Center 1,这里虽然设置label的高度30,但是最终影响高度的是center布局",
cls: "layout-bg1",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 2,为了演示label是占满整个的,用了一个whiteSpace:normal",
cls: "layout-bg2",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 3",
cls: "layout-bg3"
},{
type: "bi.label",
text: "Center 4",
cls: "layout-bg5"
}],
hgap: 20,
vgap: 20
}); });

99
uidoc/core/layout/center_adapt.md

@ -7,92 +7,23 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.CenterAdapt = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-absolute"
},
render: function () {
return {
type: "bi.grid",
columns: 1,
rows: 2,
items: [{
column: 0,
row: 0,
el: this._createNoWidth()
}, {
column: 0,
row: 1,
el: this._createBottom()
}]
}
},
_createNoWidth: function () {
return BI.createWidget({
type: "bi.center_adapt",
hgap: 10,
items: [{
type: "bi.label",
text: "Center Adapt 1 这些label都是没有宽度的",
cls: "layout-bg1",
height: 30
}, {
type: "bi.label",
text: "Center Adapt 2",
cls: "layout-bg2",
height: 30
}, {
type: "bi.label",
text: "Center Adapt 3",
cls: "layout-bg3",
height: 30
}, {
type: "bi.label",
text: "Center Adapt 4",
cls: "layout-bg5",
height: 30
}]
})
},
_createBottom: function () {
return BI.createWidget({
type: "bi.center_adapt",
items: [{
type: "bi.text_button",
text: "这个是有宽度和高度的按钮按钮-1",
height: "100%",
width: 160,
cls: "layout-bg1"
}, {
type: "bi.text_button",
text: "按钮-2",
height: 30,
width: 100,
cls: "layout-bg2"
}, {
type: "bi.text_button",
text: "按钮-3",
height: 30,
width: 100,
cls: "layout-bg3"
}, {
type: "bi.text_button",
text: "按钮-4",
height: 30,
width: 100,
cls: "layout-bg5"
}]
})
},
});
BI.shortcut("demo.center_adapt", Demo.CenterAdapt);
BI.createWidget({ BI.createWidget({
type: 'demo.center_adapt', type: "bi.center_adapt",
element: "#wrapper", element: "#wrapper",
}); hgap: 10,
items: [{
type: "bi.label",
text: "Center Adapt 1",
cls: "layout-bg1",
height: 30
}, {
type: "bi.label",
text: "Center Adapt 2",
cls: "layout-bg2",
height: 30
}]
})

58
uidoc/core/layout/float_center.md

@ -1,50 +1,30 @@
# bi.float_center # bi.float_center
#### 浮动布局实现的居中容器 #### 浮动布局实现的居中容器
{% method %} {% method %}
[source](https://jsfiddle.net/fineui/8fd2nvkm/) [source](https://jsfiddle.net/fineui/1vgn555m/)
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.CenterLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-center"
},
render: function () {
return {
type: "bi.center",
items: [{
type: "bi.label",
text: "Center 1,这里虽然设置label的高度30,但是最终影响高度的是center布局",
cls: "layout-bg1",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 2,为了演示label是占满整个的,用了一个whiteSpace:normal",
cls: "layout-bg2",
whiteSpace: "normal"
},{
type: "bi.label",
text: "Center 3",
cls: "layout-bg3"
},{
type: "bi.label",
text: "Center 4",
cls: "layout-bg5"
}],
height: 300,
hgap: 20,
vgap: 20
}
}
});
BI.shortcut("demo.center_layout", Demo.CenterLayout);
BI.createWidget({ BI.createWidget({
type: 'demo.center_layout', type: 'bi.float_center',
element: "#wrapper", element: "#wrapper",
items: [{
type: "bi.label",
text: "floatCenter与center的不同在于,它可以控制最小宽度和最大宽度",
cls: "layout-bg1",
whiteSpace: "normal"
}, {
type: "bi.label",
text: "floatCenter与center的不同在于,它可以控制最小宽度和最大宽度",
cls: "layout-bg2",
whiteSpace: "normal"
}],
height: 300,
hgap: 20,
vgap: 20
}); });
@ -63,6 +43,6 @@ BI.createWidget({
| rgap | 效果相当于容器right-padding值 | number | | 0 | | rgap | 效果相当于容器right-padding值 | number | | 0 |
| tgap | 效果相当于容器top-padding值 | number | | 0 | | tgap | 效果相当于容器top-padding值 | number | | 0 |
| bgap | 效果相当于容器bottom-padding值 | number | | 0 | | bgap | 效果相当于容器bottom-padding值 | number | | 0 |
| items | 子控件数组 | array | | | | items | 子控件数组 | array | | | |
--- ---

75
uidoc/core/layout/flow.md

@ -1,2 +1,75 @@
# flow # bi.flow
#### 靠左/右对齐的自由浮动布局
{% method %}
[source](https://jsfiddle.net/fineui/c761a856/)
{% common %}
```javascript
BI.createWidget({
type: "bi.center_adapt",
element: "#wrapper",
items: [{
type: "bi.left",
items: [{
type: "bi.label",
height: 30,
text: "Left-1",
cls: "layout-bg1",
hgap: 20
}, {
type: "bi.label",
height: 30,
text: "Left-2",
cls: "layout-bg2",
hgap: 20
}],
hgap: 20,
vgap: 20
}, {
type: "bi.right",
items: [{
type: "bi.label",
height: 30,
text: "Right-1",
cls: "layout-bg3",
hgap: 20
}, {
type: "bi.label",
height: 30,
text: "Right-2",
cls: "layout-bg4",
hgap: 20
}],
hgap: 20,
vgap: 20
}]
});
```
{% 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 |
| items | 子控件数组 | array | | | |
---

71
uidoc/core/layout/grid.md

@ -1,2 +1,71 @@
# grid # bi.grid
#### 上下的高度固定/左右的宽度固定,中间的高度/宽度自适应
{% method %}
[source](https://jsfiddle.net/fineui/1gwjbpL6/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.grid',
element: "#wrapper",
columns: 2,
rows: 2,
items: [{
column: 0,
row: 0,
el: {
type: "bi.label",
text: "column-0, row-0",
cls: "layout-bg1"
}
}, {
column: 1,
row: 0,
el: {
type: "bi.label",
text: "column-1, row-0",
cls: "layout-bg2"
}
} {
column: 0,
row: 1,
el: {
type: "bi.label",
text: "column-0, row-1",
cls: "layout-bg5"
}
}, {
column: 1,
row: 1,
el: {
type: "bi.label",
text: "column-1, row-1",
cls: "layout-bg6"
}
}]
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :----|:----
| columns | 列的数量 | number | | null |
| rows | 行的数量 | number | | null |
| items | 子控件数组 | array | | [] |
---

68
uidoc/core/layout/horizontal.md

@ -1,2 +1,68 @@
# horizontal # bi.horizontal
#### 水平流式布局
{% method %}
[source](https://jsfiddle.net/fineui/oj7y7q3o/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.horizontal',
element: "#wrapper",
items: [{
type: "bi.absolute",
items: [{
el: {
type: "bi.text_button",
cls: "layout-bg1",
text: "这里设置了lgap,rgap,tgap,bgap",
height: 30
},
left: 0,
right: 0
}],
width: 100,
height: 30
}, {
type: "bi.absolute",
items: [{
el: {
type: "bi.text_button",
cls: "layout-bg2",
text: "这里设置了lgap,rgap,tgap,bgap",
height: 30
},
left: 0,
right: 0
}],
width: 200,
height: 30
}]
});
```
{% 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 |
| items | 子控件数组 | array | | |
| columnSize | 每列宽度所组成的数组 | array | | |
| verticalAlign | 元素的垂直对齐方式 | string | | "middle" |
| scrollx | 设置水平方向是否有滚动条 | boolean | true,false | true |
---

59
uidoc/core/layout/horizontal_adapt.md

@ -8,50 +8,25 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.HorizontalAdapt = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-horizontal-adapt"
},
_createLayout: function () {
return BI.createWidget({
type: "bi.horizontal_adapt",
vgap: 10,
items: [{
type: "bi.label",
text: "Horizontal Adapt左右自适应",
cls: "layout-bg1",
width: 300,
height: 30
}, {
type: "bi.label",
text: "Horizontal Adapt左右自适应",
cls: "layout-bg2",
//width: 300,
height: 30
}]
})
},
render: function () {
return {
type: "bi.grid",
columns: 1,
rows: 2,
items: [{
column: 0,
row: 0,
el: this._createLayout()
}]
}
}
});
BI.shortcut("demo.horizontal_adapt", Demo.HorizontalAdapt);
BI.createWidget({ BI.createWidget({
type: 'demo.horizontal_adapt', type: "bi.horizontal_adapt",
element: "#wrapper", element: "#wrapper",
}); vgap: 10,
items: [{
type: "bi.label",
text: "Horizontal Adapt左右自适应",
cls: "layout-bg1",
width: 300,
height: 30
}, {
type: "bi.label",
text: "Horizontal Adapt左右自适应",
cls: "layout-bg2",
//width: 300,
height: 30
}]
})
``` ```

59
uidoc/core/layout/horizontal_auto.md

@ -7,50 +7,25 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.HorizontalAuto = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-horizontal-auto"
},
_createLayout: function () {
return BI.createWidget({
type: "bi.horizontal_auto",
vgap: 10,
items: [{
type: "bi.label",
text: "Horizontal Auto左右自适应",
cls: "layout-bg1",
width: 300,
height: 30
}, {
type: "bi.label",
text: "Horizontal Auto左右自适应",
cls: "layout-bg2",
width: 300,
height: 30
}]
})
},
render: function () {
return {
type: "bi.grid",
columns: 1,
rows: 2,
items: [{
column: 0,
row: 0,
el: this._createLayout()
}]
}
}
});
BI.shortcut("demo.horizontal_auto", Demo.HorizontalAuto);
BI.createWidget({ BI.createWidget({
type: 'demo.horizontal_auto', type: "bi.horizontal_auto",
element: "#wrapper", element: "#wrapper",
}); vgap: 10,
items: [{
type: "bi.label",
text: "Horizontal Auto左右自适应",
cls: "layout-bg1",
width: 300,
height: 30
}, {
type: "bi.label",
text: "Horizontal Auto左右自适应",
cls: "layout-bg2",
width: 300,
height: 30
}]
})
``` ```

48
uidoc/core/layout/horizontal_float.md

@ -7,44 +7,20 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.HorizontalFloat = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-horizontal-float"
},
_createLayout: function () {
return BI.createWidget({
type: "bi.horizontal_float",
vgap: 10,
items: [{
type: "bi.label",
text: "Horizontal Float左右自适应",
cls: "layout-bg1",
width: 200,
height:30
}]
})
},
render: function () {
return {
type: "bi.grid",
columns: 1,
rows: 2,
items: [{
column: 0,
row: 0,
el: this._createLayout()
}]
}
}
});
BI.shortcut("demo.horizontal_float", Demo.HorizontalFloat);
BI.createWidget({ BI.createWidget({
type: 'demo.horizontal_float', type: "bi.horizontal_float",
element: "#wrapper", element: "#wrapper",
}); vgap: 10,
items: [{
type: "bi.label",
text: "Horizontal Float左右自适应",
cls: "layout-bg1",
width: 200,
height:30
}]
})
``` ```

64
uidoc/core/layout/htape.md

@ -1,2 +1,64 @@
# htape # bi.htape
#### 水平tape布局,两列定宽,一列自适应
{% method %}
[source](https://jsfiddle.net/fineui/ry7Lnhgw/)
{% common %}
```javascript
BI.createWidget({
type: "bi.htape",
element: "#wrapper",
items : [
{
width: 100,
el : {
type : 'bi.label',
text : '1',
cls: "layout-bg1"
}
}, {
width: 200,
el : {
type : 'bi.label',
text : '2',
cls: "layout-bg2"
}
}, {
width: 'fill',
el : {
type : 'bi.label',
text : '3',
cls: "layout-bg3"
}
}
]
});
```
{% 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 |
| items | 子控件数组 | array | | |
---

77
uidoc/core/layout/left_right_vertical_adapt.md

@ -8,51 +8,40 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.LeftRightVerticalAdaptLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-left-right-vertical-adapt"
},
render: function () {
return {
type: "bi.left_right_vertical_adapt",
lhgap: 10,
rhgap: 10,
items: {
left: [{
type: "bi.label",
text: "左边的垂直居中",
cls: "layout-bg1",
width: 100,
height: 30
}, {
type: "bi.label",
text: "左边的垂直居中",
cls: "layout-bg2",
width: 100,
height: 30
}],
right: [{
type: "bi.label",
text: "右边的垂直居中",
cls: "layout-bg1",
width: 100,
height: 30
}, {
type: "bi.label",
text: "右边的垂直居中",
cls: "layout-bg2",
width: 100,
height: 30
}]
}
}
}
});
BI.shortcut("demo.left_right_vertical_adapt", Demo.LeftRightVerticalAdaptLayout);
BI.createWidget({ BI.createWidget({
type: 'demo.left_right_vertical_adapt', type: 'demo.left_right_vertical_adapt',
element: "#wrapper", element: "#wrapper",
lhgap: 10,
rhgap: 10,
items: {
left: [{
type: "bi.label",
text: "左边的垂直居中",
cls: "layout-bg1",
width: 100,
height: 30
}, {
type: "bi.label",
text: "左边的垂直居中",
cls: "layout-bg2",
width: 100,
height: 30
}],
right: [{
type: "bi.label",
text: "右边的垂直居中",
cls: "layout-bg1",
width: 100,
height: 30
}, {
type: "bi.label",
text: "右边的垂直居中",
cls: "layout-bg2",
width: 100,
height: 30
}]
}
}); });

37
uidoc/core/layout/table.md

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

38
uidoc/core/layout/td.md

@ -1,2 +1,38 @@
# td # bi.td
### 单元格控件,继承BI.Layout
{% method %}
[source](https://jsfiddle.net/fineui/v4jrz6a3/)
{% common %}
```javascript
BI.createWidget({
type: "bi.td",
element: 'body',
columnSize: [20, 20, 'fill'],
items: []
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 默认值 |
| ---------- | ---- | ------ | ---------------------------------------- |
| columnSize | 列宽 | array | [200, 200, 200] |
| hgap | 纵向间隙 | number | 0 |
| vgap | 横向间隙 | number | 0 |
| items | 内容项 | array | [[{el: {text: 'label1'}},{ el: {text: 'label2'},{ el: {text: 'label3'} |
## 方法
| 方法名 | 说明 | 用法 |
| -------- | ------ | ---------------- |
| addItem | 增加内容 | addItem(arr) |
| populate | 更换新的内容 | poplulate(items) |

47
uidoc/core/layout/vertical.md

@ -1,2 +1,47 @@
# vertical # bi.vertical
#### 垂直流式布局
{% method %}
[source](https://jsfiddle.net/fineui/zjyaz9fn/)
{% common %}
```javascript
BI.createWidget({
type: 'demo.vertical',
element: "#wrapper",
items: [{
type: "bi.label",
cls: "layout-bg1",
text: "这里设置了hgap(水平间距),vgap(垂直间距)",
height: 30
}, {
type: "bi.label",
cls: "layout-bg2",
text: "这里设置了hgap(水平间距),vgap(垂直间距)",
height: 30
}]
});
```
{% 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 |
| items | 子控件数组 | array | | |
| scrolly | 设置垂直方向是否有滚动条 | boolean | true,false | true |
---

59
uidoc/core/layout/vertical_adapt.md

@ -7,50 +7,25 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.VerticalAdaptLayout = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-vertical-adapt"
},
_createLayout: function () {
return BI.createWidget({
type: "bi.vertical_adapt",
vgap: 10,
items: [{
type: "bi.label",
text: "Vertical Adapt上下自适应",
cls: "layout-bg1",
width: 300,
height: 30
}, {
type: "bi.label",
text: "Vertical Adapt上下自适应",
cls: "layout-bg2",
width: 300,
height: 30
}]
})
},
render: function () {
return {
type: "bi.grid",
columns: 2,
rows: 1,
items: [{
column: 0,
row: 0,
el: this._createLayout()
}]
}
}
});
BI.shortcut("demo.vertical_adapt", Demo.VerticalAdaptLayout);
BI.createWidget({ BI.createWidget({
type: 'demo.vertical_adapt', type: "bi.vertical_adapt",
element: "#wrapper", element: "#wrapper",
}); vgap: 10,
items: [{
type: "bi.label",
text: "Vertical Adapt上下自适应",
cls: "layout-bg1",
width: 300,
height: 30
}, {
type: "bi.label",
text: "Vertical Adapt上下自适应",
cls: "layout-bg2",
width: 300,
height: 30
}]
})

64
uidoc/core/layout/vtape.md

@ -1,2 +1,64 @@
# vtape # bi.vtape
#### 垂直tape布局,两列定高,一列自适应
{% method %}
[source](https://jsfiddle.net/fineui/ufpnz53d/)
{% common %}
```javascript
BI.createWidget({
type: "bi.vtape",
element: "#wrapper",
items : [
{
height: 100,
el : {
type : 'bi.label',
text : '1',
cls: "layout-bg1"
}
}, {
height: 200,
el : {
type : 'bi.label',
text : '2',
cls: "layout-bg2"
}
}, {
height: 'fill',
el : {
type : 'bi.label',
text : '3',
cls: "layout-bg3"
}
}
]
});
```
{% 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 |
| items | 子控件数组 | array | | |
---

111
uidoc/detailed/bi.button/general.md

@ -7,112 +7,7 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.Buttons = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-button"
},
render: function () {
var items = [{
el: {
type: 'bi.button',
text: '一般按钮',
level: 'common',
height: 30
}
},
{
el: {
type: 'bi.button',
text: '普通灰化按钮',
disabled: true,
level: 'success',
height: 30
}
}, {
el: {
type: 'bi.button',
text: '带图标的按钮',
//level: 'ignore',
iconClass: "close-font",
height: 30
}
}, {
el: {
type: 'bi.button',
text: '一般按钮',
block: true,
level: 'common',
height: 30
}
},
{
el: {
type: 'bi.button',
text: '普通灰化按钮',
block: true,
disabled: true,
level: 'success',
height: 30
}
}, {
el: {
type: 'bi.button',
text: '带图标的按钮',
block: true,
//level: 'ignore',
iconClass: "close-font",
height: 30
}
}, {
el: {
type: 'bi.button',
text: '一般按钮',
clear: true,
level: 'common',
height: 30
}
},
{
el: {
type: 'bi.button',
text: '普通灰化按钮',
clear: true,
disabled: true,
level: 'success',
height: 30
}
}, {
el: {
type: 'bi.button',
text: '带图标的按钮',
clear: true,
//level: 'ignore',
iconClass: "close-font",
height: 30
}
}, {
el: {
type: 'bi.text_button',
text: '文字按钮',
height: 30
}
}
];
BI.each(items, function (i, item) {
item.el.handler = function () {
BI.Msg.alert('按钮', this.options.text);
}
});
return {
type: "bi.left",
vgap: 100,
hgap: 20,
items: items
}
}
});
BI.shortcut("demo.buttons", Demo.Buttons);
BI.createWidget({ BI.createWidget({
type: 'demo.buttons', type: 'demo.buttons',
element: "#wrapper", element: "#wrapper",
@ -155,8 +50,8 @@ BI.createWidget({
| block| 是否块状显示,即不显示边框,没有最小宽度的限制 | boolean| true,false | false | | block| 是否块状显示,即不显示边框,没有最小宽度的限制 | boolean| true,false | false |
| clear| 是否去掉边框和背景 |boolean| true,false | false | | clear| 是否去掉边框和背景 |boolean| true,false | false |
| textAlign | 文字布局 | string | left,center,right | cneter | | textAlign | 文字布局 | string | left,center,right | cneter |
| whiteSpace | 元素内的空白处理方式 | string | normal,pre,nowrap,pre-wrap,pre-line,inherit | nowrap| | whiteSpace | 元素内的空白处理方式 | string | normal,nowrap | nowrap|
| forceCenter | | boolean | true,false | false | | forceCenter | 是否无论如何都要居中, 不考虑超出边界的情况, 在未知宽度和高度时有效 | boolean | true,false | false |
| textWidth| 按钮文本宽度 | number| | null | | textWidth| 按钮文本宽度 | number| | null |
| textHeight | 按钮文本高度 | number| | null | | textHeight | 按钮文本高度 | number| | null |

45
uidoc/detailed/bi.button/items.md

@ -5,34 +5,25 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.Items = BI.inherit(BI.Widget, {
render: function () {
return {
type: "bi.vertical",
items: [{
type: "bi.label",
height: 30,
text: "单选item"
}, {
type: "bi.single_select_item",
text: "单选项"
}, {
type: "bi.label",
height: 30,
text: "复选item"
}, {
type: "bi.multi_select_item",
text: "复选项"
}]
}
}
});
BI.shortcut("demo.items", Demo.Items);
BI.createWidget({ BI.createWidget({
type: 'demo.items', type: 'bi.vertical',
element: "#wrapper", element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "单选item"
}, {
type: "bi.single_select_item",
text: "单选项"
}, {
type: "bi.label",
height: 30,
text: "复选item"
}, {
type: "bi.multi_select_item",
text: "复选项"
}]
}); });

58
uidoc/detailed/bi.button/node.md

@ -5,42 +5,32 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.Nodes = BI.inherit(BI.Widget, {
render: function (vessel) {
return {
type: "bi.vertical",
items: [{
type: "bi.label",
height: 30,
text: "十字形的节点"
}, {
type: "bi.plus_group_node",
text: "十字形的节点"
}, {
type: "bi.label",
height: 30,
text: "三角形的节点"
}, {
type: "bi.triangle_group_node",
text: "三角形的节点"
}, {
type: "bi.label",
height: 30,
text: "箭头节点"
}, {
type: "bi.arrow_group_node",
text: "箭头节点"
}]
}
}
});
BI.shortcut("demo.nodes", Demo.Nodes);
BI.createWidget({ BI.createWidget({
type: 'demo.nodes', type: 'bi.vertical',
element: "#wrapper", element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "十字形的节点"
}, {
type: "bi.plus_group_node",
text: "十字形的节点"
}, {
type: "bi.label",
height: 30,
text: "三角形的节点"
}, {
type: "bi.triangle_group_node",
text: "三角形的节点"
}, {
type: "bi.label",
height: 30,
text: "箭头节点"
}, {
type: "bi.arrow_group_node",
text: "箭头节点"
}]
}); });

55
uidoc/detailed/bi.button/segment.md

@ -7,40 +7,31 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.Segments = BI.inherit(BI.Widget, {
render: function () {
return {
type: "bi.vertical",
items: [{
type: "bi.label",
height: 30,
text: "默认风格"
}, {
type: "bi.segment",
items: [{
text: "tab1",
value: 1,
selected: true
}, {
text: "tab2",
value: 2
}, {
text: "tab3 disabled",
disabled: true,
value: 3
}]
}],
hgap: 50,
vgap: 20
}
}
});
BI.shortcut("demo.segments", Demo.Segments);
BI.createWidget({ BI.createWidget({
type: 'demo.segments', type: "bi.vertical",
element: "#wrapper", element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "默认风格"
}, {
type: "bi.segment",
items: [{
text: "tab1",
value: 1,
selected: true
}, {
text: "tab2",
value: 2
}, {
text: "tab3 disabled",
disabled: true,
value: 3
}]
}],
hgap: 50,
vgap: 20
}); });
``` ```

155
uidoc/detailed/bi.button/tooltip.md

@ -5,107 +5,72 @@
{% common %} {% common %}
```javascript ```javascript
Demo = {};
Demo.Tips = BI.inherit(BI.Widget, {
props: {
baseCls: "demo-tips"
},
render: function () {
var btns = [];
var bubble = BI.createWidget({
type: "bi.left",
items: [{
el: {
type: 'bi.button',
text: 'bubble测试',
height: 30,
handler: function () {
BI.Bubbles.show("singleBubble1", "bubble测试", this);
btns.push("singleBubble1");
}
}
}, {
el: {
type: 'bi.button',
text: 'bubble测试(居中显示)',
height: 30,
handler: function () {
BI.Bubbles.show("singleBubble2", "bubble测试", this, {
offsetStyle: "center"
});
btns.push("singleBubble2");
}
}
}, {
el: {
type: 'bi.button',
text: 'bubble测试(右边显示)',
height: 30,
handler: function () {
BI.Bubbles.show("singleBubble3", "bubble测试", this, {
offsetStyle: "right"
});
btns.push("singleBubble3");
}
}
}, {
el: {
type: 'bi.button',
text: '隐藏所有 bubble',
height: 30,
cls: "layout-bg2",
handler: function () {
BI.each(btns, function (index, value) {
BI.Bubbles.hide(value);
})
}
}
}],
hgap: 20,
vgap: 20
});
var title = BI.createWidget({ var bubble = BI.createWidget({
type: "bi.vertical", type: "bi.left",
items: [{ items: [{
type: "bi.label", el: {
cls: "layout-bg1", type: 'bi.button',
height: 50, text: 'bubble测试',
title: "title提示", height: 30,
text: "移上去有title提示", handler: function () {
textAlign: "center" BI.Bubbles.show("singleBubble1", "bubble测试", this);
}], btns.push("singleBubble1");
hgap: 20, }
vgap: 20 }
}); },{
el: {
type: 'bi.button',
text: '隐藏所有 bubble',
height: 30,
cls: "layout-bg2",
handler: function () {
BI.each(btns, function (index, value) {
BI.Bubbles.hide(value);
})
}
}
}],
hgap: 20,
vgap: 20
});
var toast = BI.createWidget({ var title = BI.createWidget({
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
el: { type: "bi.label",
type: 'bi.button', cls: "layout-bg1",
text: '简单Toast测试', height: 50,
height: 30, title: "title提示",
handler: function () { text: "移上去有title提示",
BI.Msg.toast("这是一条简单的数据"); textAlign: "center"
} }],
} hgap: 20,
}], vgap: 20
vgap: 20 });
});
return { var toast = BI.createWidget({
type: "bi.horizontal_auto", type: "bi.vertical",
vgap: 20, items: [{
hgap: 20, el: {
items: [bubble, title, toast] type: 'bi.button',
text: '简单Toast测试',
height: 30,
handler: function () {
BI.Msg.toast("这是一条简单的数据");
}
} }
} }],
vgap: 20
}); });
BI.shortcut("demo.tips", Demo.Tips);
BI.createWidget({ BI.createWidget({
type: 'demo.tips', type: "bi.horizontal_auto",
element: "#wrapper", element: "#wrapper",
vgap: 20,
hgap: 20,
items: [bubble, title, toast]
}); });

2
uidoc/detailed/bi.multi_select_item.md

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

2
uidoc/detailed/bi.segment.md

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

2
uidoc/detailed/bi.single_select_item.md

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

2
uidoc/detailed/combo/multilayer_select_tree_combo.md

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

2
uidoc/detailed/combo/multilayer_single_tree_combo.md

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

2
uidoc/detailed/combo/select_tree_combo.md

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

2
uidoc/detailed/combo/single_tree_combo.md

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

2
uidoc/detailed/date/custom_date_time.md

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

2
uidoc/detailed/date/date_combo.md

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

2
uidoc/detailed/date/date_pane_widget.md

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

2
uidoc/detailed/date/year_month_combo.md

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

2
uidoc/detailed/date/year_quarter_combo.md

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

22
uidoc/detailed/dialog.md

@ -0,0 +1,22 @@
# dialog
## 对话框
{% method %}
[source](https://jsfiddle.net/fineui/9tj0jrpp/)
{% common %}
```javascript
BI.Msg.alert(title, content)
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| title | 对话框标题 | string | | |
| content | 对话框内容 | string | | |
--- ---

70
uidoc/detailed/down_list_combo.md

@ -0,0 +1,70 @@
# down_list_combo
## 多层下拉列表的下拉框
{% method %}
[source](https://jsfiddle.net/fineui/p0hykqo9/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.down_list_combo',
element: '#wrapper',
width: 300,
items: [
[{
el: {
text: "column 1111",
iconCls1: "check-mark-e-font",
value: 11
},
children: [{
text: "column 1.1",
value: 21,
cls: "dot-e-font",
selected: true
}, {
text: "column 1.222222222222222222222222222222222222",
cls: "dot-e-font",
value: 22,
}]
}],
[{
el: {
type: "bi.icon_text_icon_item",
text: "column 2",
iconCls1: "chart-type-e-font",
cls: "dot-e-font",
value: 12
},
disabled: true,
children: [{
type: "bi.icon_text_item",
cls: "dot-e-font",
height: 25,
text: "column 2.1",
value: 11
}, {
text: "column 2.2",
value: 12,
cls: "dot-e-font"
}]
}]
]
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| el | 自定义下拉框trigger | object | | |
| trigger | 下拉列表的弹出方式 | string | click, hover | click |
| direction | 弹出列表和trigger的位置关系 | string | top &#124; bottom &#124; left &#124; right &#124; top,left &#124; top,right &#124; bottom,left &#124; bottom,right | bottom |
| adjustLength | 弹出列表和trigger的距离 | number | | 0 |
--- ---
##具体配置方法见[Combo](../core/combination/bi.combo.md)

2
uidoc/detailed/file_manager.md

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

26
uidoc/detailed/month_combo.md

@ -0,0 +1,26 @@
# month_combo
## 月份选择下拉框
{% method %}
[source](https://jsfiddle.net/fineui/u4u04ntn/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.month_combo',
element: '#wrapper',
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等 | object | | {} |
--- ---

32
uidoc/detailed/multi_select_combo.md

@ -0,0 +1,32 @@
# multi_select_combo
## 带确定的复选下拉框
{% method %}
[source](https://jsfiddle.net/fineui/oskypvLe/)
{% common %}
```javascript
BI.createWidget({
type: "bi.multi_select_combo",
element: '#wrapper',
width: 500,
itemsCreator: function(){
return {
items: [],
hasNext: false
}
}
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
## 方法
| 方法 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ | |

2
uidoc/detailed/node.md

@ -1,2 +0,0 @@
# node节点

36
uidoc/detailed/numeric_interval.md

@ -0,0 +1,36 @@
# numeric_interval
## 数值区间控件
{% method %}
[source](https://jsfiddle.net/fineui/oskypvLe/)
{% common %}
```javascript
BI.createWidget({
type: "bi.numerical_interval",
element: '#wrapper',
width: 500
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| min | 最小值初始值 | number | | 无 |
| max | 最大值初始值 | number | | 无 |
| closeMin | 左区间初始状态 | boolean | | true |
| closeMax | 右区间初始状态 | boolean | | true |
## 方法
| 方法 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ |
| isStateValid() | 当前状态是否有效(输入是否合法, 区间是否成立) | |
| setMinEnable(boolean) | 设置左区间输入框disable状态 | |
| setCloseMinEnable(boolean) | 设置左区间开闭combo的disable状态 | |
| setMaxEnable(boolean) | 设置右区间输入框disable状态 | |
| setCloseMaxEnable(boolean) | 设置右区间开闭combo的disable状态 | |
| setNumTip(string) | 设置数值区间的tip提示 | |

2
uidoc/detailed/path/direction_path_chooser.md

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

2
uidoc/detailed/path/path_chooser.md

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

25
uidoc/detailed/quarter_combo.md

@ -0,0 +1,25 @@
# quarter_combo
## 季度选择下拉框
{% method %}
[source](https://jsfiddle.net/fineui/rw7ubwtj/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.quarter_combo',
element: '#wrapper',
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等 | object | | {} |
--- ---

2
uidoc/detailed/relation_view.md

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

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

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

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

@ -0,0 +1,80 @@
# bi.page_table
### 分页表格
{% method %}
[source](https://jsfiddle.net/fineui/4egug10x/)
{% common %}
```javascript
BI.createWidget({
type: "bi.page_table",
element: "body",
columnSize: [200,200],
items: [],
pager: {
horizontal : {},
vertical: {}
}
});
```
{% endmethod %}
## 参数设置
| 参数 | 二级参数 | 三级参数 | 说明 | 类型 | 默认值 |
| ----------------------- | ---------- | --------- | ------------------ | -------------------- | ----------------- |
| pager | | | 分页选项 | object | — |
| | horizontal | | 水平分页选项 | object | — |
| | | pages | 显示总页数 | bool | false |
| | | curr | 当前页 | number | 1 |
| | | hasPrev | 判断是否有前一页的函数 | function | BI.emptyFn |
| | | hasNext | 是否有下一页 | function | BI.emptyFn |
| | | firstPage | 第一页 | number | 1 |
| | | lastPage | 最后一页 | number/function | BI.emptyFn |
| | vertical | | 纵向分页,参数与horizontal | object | — |
| itemsCreator | | | 元素创造器 | function | BI.emptyFn |
| isNeedFreeze | | | 是否需要冻结表头 | bool | false |
| freezeCols | | | 冻结的列 | array | [] |
| isNeedMerge | | | 是否需要合并单元格 | bool | false |
| mergeCols | | | 合并的单元格列号 | array | [] |
| mergeRule | | | 合并规则, 默认相等时合并 | function(row1, row2) | 默认row1 = row2 时合并 |
| columnSize | | | 单元格宽度集合 | array | [] |
| minColumnSize | | | 最小列宽 | array | [] |
| maxColumnSize | | | 最大列宽 | array | [] |
| headerRowSize | | | 表头高度 | number | 25 |
| rowSize | | | 普通单元格高度 | number | 25 |
| regionColumnSize | | | 列项间的 | array | [] |
| headerCellStyleGetter | | | | function | BI.emptyFn |
| summaryCellStyleGetter | | | | function | BI.emptyFn |
| sequenceCellStyleGetter | | | | function | BI.emptyFn |
| header | | | 表头 | array | [] |
| items | | | 子组件 | array | [] |
| crossHeader | | | 交叉表头 | array | [] |
| crossItems | | | 交叉项 | array | [] |
## 方法
| 方法名 | 说明 | 回调参数 |
| ------------------------ | ----------- | ------------------ |
| setHPage | 设置水平页数 | v: 页码 |
| setVpage | 设置纵向页数 | v: 页码 |
| getHPage | 获得水平页数 | — |
| getVPage | 获得垂直页数 | — |
| setWidth | 设置宽度 | width: 宽度 |
| setHeight | 设置高度 | height: 高度 |
| setColumnSize | 设置列宽 | columnSize: 列宽数组 |
| getColumnSize | 得到列宽 | — |
| setRegionColumnSize | 设置列项之间的间隙 | columnSize: 列宽数组 |
| getRegionColumnSize | 获得列项之间的间隙 | — |
| setVerticalScroll | 设置纵向滚动距离 | scrollTop: 纵向滚动距离 |
| setLeftHorizontalScroll | 设置左到右横向滚动距离 | scrollLeft: 横向滚动距离 |
| setRightHorizontalScroll | 设置右往左横向滚动距离 | scrollLeft: 横向滚动距离 |
| getVerticalScroll | 获取纵向滚动距离 | — |
| getLeftHorizontalScroll | 获取左到右横向滚动距离 | — |
| getRightHorizontalScroll | 获取右往左横向滚动距离 | — |
| attr | 设置属性 | key: 键 value: 值 |
| populate | 增加 | — |
| destroy | 摧毁表 | — |

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

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

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

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

2
uidoc/detailed/text_input/finetuning_number_editor.md

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

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

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

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

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

28
uidoc/detailed/year_combo.md

@ -0,0 +1,28 @@
# year_combo
## 年份选择下拉框
{% method %}
[source](https://jsfiddle.net/fineui/3na3125L/)
{% common %}
```javascript
BI.createWidget({
type: 'bi.year_combo',
element: '#wrapper',
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等 | object | | {} |
| min | 限定可选日期的下限 | string | | '1900-01-01' |
| max | 限定可选日期的上限 | string | | '2099-12-31' |
--- ---

1
uidoc/package.json

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

Loading…
Cancel
Save