Urthur 8 years ago
parent
commit
a971212551
  1. 162
      bi/base.css
  2. 70759
      bi/base.js
  3. 25230
      bi/case.js
  4. 15202
      bi/chart.js
  5. 730
      bi/core.css
  6. 35051
      bi/core.js
  7. 184
      bi/polyfill.js
  8. 956
      bi/widget.css
  9. 34239
      bi/widget.js
  10. 3
      demo/css/face.css
  11. 3
      demo/css/index.css
  12. 5
      demo/css/main.css
  13. 3
      demo/css/north.css
  14. 3
      demo/css/preview.css
  15. 3
      demo/css/west.css
  16. 2
      demo/js/base/button/demo.icon_button.js
  17. 215
      demo/js/component/demo.multilayerselecttree.leveltree.js
  18. 4
      demo/js/config/component.js
  19. 374
      demo/js/config/core.js
  20. 4
      demo/js/config/widget.js
  21. 4
      demo/js/north.js
  22. 13
      demo/js/widget/demo.interactivearrangement.js
  23. 2
      demo/js/widget/demo.multiselectcombo.js
  24. 2
      demo/less/main.less
  25. 9
      demo/version.js
  26. 162
      docs/base.css
  27. 70759
      docs/base.js
  28. 25230
      docs/case.js
  29. 15202
      docs/chart.js
  30. 730
      docs/core.css
  31. 57335
      docs/core.js
  32. 20
      docs/demo.css
  33. 14007
      docs/demo.js
  34. 184
      docs/polyfill.js
  35. 24
      docs/resource.css
  36. 956
      docs/widget.css
  37. 34239
      docs/widget.js
  38. 6
      src/base/collection/collection.js
  39. 26
      src/base/combination/combo.js
  40. 32
      src/base/combination/expander.js
  41. 4
      src/base/combination/loader.js
  42. 14
      src/base/combination/switcher.js
  43. 11
      src/base/combination/tab.js
  44. 6
      src/base/formula/formulaeditor.js
  45. 4
      src/base/foundation/message.js
  46. 6
      src/base/grid/grid.js
  47. 4
      src/base/single/button/button.basic.js
  48. 76
      src/base/single/editor/editor.code.js
  49. 2
      src/base/single/editor/editor.multifile.js
  50. 4
      src/base/single/editor/editor.textarea.js
  51. 9
      src/base/single/iframe/iframe.js
  52. 4
      src/base/single/input/file.js
  53. 4
      src/base/single/label/label.js
  54. 4
      src/base/table/native.scrollbar.js
  55. 66
      src/base/table/table.collection.js
  56. 19
      src/base/table/table.collection.quick.js
  57. 41
      src/base/table/table.grid.js
  58. 16
      src/base/table/table.grid.quick.js
  59. 209
      src/base/table/table.resizable.cell.js
  60. 15
      src/base/table/table.resizable.js
  61. 22
      src/base/tree/asynctree.js
  62. 4
      src/base/tree/customtree.js
  63. 8
      src/base/tree/parttree.js
  64. 17
      src/base/tree/treeview.js
  65. 1
      src/case/button/treeitem/item.multilayer.icon.treeleaf.js
  66. 2
      src/case/calendar/calendar.year.js
  67. 13
      src/case/colorchooser/colorchooser.trigger.js
  68. 48
      src/case/colorchooser/colorpicker/editor.colorpicker.js
  69. 444
      src/case/combo/bubblecombo/combo.bubble.js
  70. 4
      src/case/layer/pane.list.js
  71. 4
      src/case/list/list.select.js
  72. 4
      src/case/loader/loader.lazy.js
  73. 4
      src/case/loader/loader.list.js
  74. 351
      src/case/loader/sort.list.js
  75. 5
      src/case/pager/pager.all.count.js
  76. 18
      src/case/segment/button.segment.js
  77. 2
      src/case/table/table.dynamicsummarylayertree.js
  78. 4
      src/case/tree/tree.level.js
  79. 157
      src/case/trigger/trigger.editor.js
  80. 1
      src/case/trigger/trigger.text.js
  81. 93
      src/component/treevaluechooser/abstract.treevaluechooser.js
  82. 4
      src/config.js
  83. 2
      src/core/alias.js
  84. 30
      src/core/behavior/behavior.highlight.js
  85. 21
      src/core/controller/router.floatbox.js
  86. 6
      src/core/events.js
  87. 2
      src/core/func/dom.js
  88. 14
      src/core/func/function.js
  89. 4
      src/core/model.js
  90. 15
      src/core/utils/detectElementResize.js
  91. 2
      src/core/var.js
  92. 6
      src/core/view.js
  93. 23
      src/core/widget.js
  94. 7
      src/core/wrapper/layout/adapt/float.center.js
  95. 7
      src/core/wrapper/layout/adapt/float.horizontal.js
  96. 3
      src/css/base/colorchooser/colorchooser.trigger.css
  97. 3
      src/css/base/colorchooser/colorpicker/button.colorpicker.css
  98. 3
      src/css/base/colorchooser/colorpicker/editor.colorpicker.css
  99. 3
      src/css/base/combo/combo.bubble.css
  100. 3
      src/css/base/combo/popup.bubble.css
  101. Some files were not shown because too many files have changed in this diff Show More

162
bi/base.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-chooser-trigger { .bi-color-chooser-trigger {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -9,18 +6,12 @@
-webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset; -webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset;
-moz-box-shadow: 0px 0px 2px 1px #d4dadd inset; -moz-box-shadow: 0px 0px 2px 1px #d4dadd inset;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-picker-button .color-picker-button-mask { .bi-color-picker-button .color-picker-button-mask {
border: 1px solid #1a1a1a; border: 1px solid #1a1a1a;
} }
.bi-theme-dark .bi-color-picker-button .color-picker-button-mask { .bi-theme-dark .bi-color-picker-button .color-picker-button-mask {
border: 1px solid #ffffff; border: 1px solid #ffffff;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-picker-editor .color-picker-editor-display { .bi-color-picker-editor .color-picker-editor-display {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -29,9 +20,6 @@
-webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset; -webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset;
-moz-box-shadow: 0px 0px 2px 1px #d4dadd inset; -moz-box-shadow: 0px 0px 2px 1px #d4dadd inset;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble-combo .button-combo-triangle-wrapper { .bi-bubble-combo .button-combo-triangle-wrapper {
position: fixed !important; position: fixed !important;
} }
@ -67,26 +55,16 @@
border-right: 6px solid transparent; border-right: 6px solid transparent;
border-bottom: 6px solid #3f8ce8; border-bottom: 6px solid #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble-popup-view { .bi-bubble-popup-view {
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-adapt-editor .adapt-editor-text { .bi-adapt-editor .adapt-editor-text {
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/*************BI.SearchEditor******************/ /*************BI.SearchEditor******************/
.bi-search-editor .close-font { .bi-search-editor .close-font {
font-size: 20px; font-size: 20px;
@ -94,9 +72,6 @@
.bi-search-editor .search-font { .bi-search-editor .search-font {
font-size: 20px; font-size: 20px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/*************BI.SearchEditor******************/ /*************BI.SearchEditor******************/
.bi-small-search-editor .bi-editor { .bi-small-search-editor .bi-editor {
font-size: 12px; font-size: 12px;
@ -113,15 +88,9 @@
.bi-small-search-editor .search-font { .bi-small-search-editor .search-font {
font-size: 18px; font-size: 18px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sign-initial-editor .sign-initial-editor-text { .bi-sign-initial-editor .sign-initial-editor-text {
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/* BASICS */ /* BASICS */
.CodeMirror { .CodeMirror {
/* Set height, width, borders, and global font properties here */ /* Set height, width, borders, and global font properties here */
@ -129,12 +98,6 @@
cursor: text; cursor: text;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: #1a1a1a;
background-color: #ffffff;
}
.bi-theme-dark .CodeMirror {
color: #ffffff;
background-color: #242640;
} }
/* PADDING */ /* PADDING */
.CodeMirror-lines { .CodeMirror-lines {
@ -461,13 +424,18 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
margin: 0; margin: 0;
white-space: pre; white-space: pre;
word-wrap: normal; word-wrap: normal;
line-height: 2em;
color: inherit; color: inherit;
z-index: 2; z-index: 2;
position: relative; position: relative;
overflow: visible; overflow: visible;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
.codemirror-high-line-height {
line-height: 2;
}
.codemirror-low-line-height {
line-height: 1.4;
}
.CodeMirror-wrap pre { .CodeMirror-wrap pre {
word-wrap: break-word; word-wrap: break-word;
white-space: pre-wrap; white-space: pre-wrap;
@ -599,9 +567,6 @@ li.CodeMirror-hint-active {
background: #08f; background: #08f;
color: white; color: white;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-message-title { .bi-message-title {
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
@ -621,16 +586,10 @@ li.CodeMirror-hint-active {
.bi-message-close { .bi-message-close {
font-size: 25px; font-size: 25px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-multi-list-view .bi-button-mask { .bi-multi-list-view .bi-button-mask {
opacity: 0.1; opacity: 0.1;
filter: alpha(opacity=10); filter: alpha(opacity=10);
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-panel { .bi-panel {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -640,36 +599,23 @@ li.CodeMirror-hint-active {
cursor: text; cursor: text;
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-all-count-pager .all-pager-prev { .bi-all-count-pager .all-pager-prev {
font-size: 16px; font-size: 16px;
} }
.bi-all-count-pager .all-pager-next { .bi-all-count-pager .all-pager-next {
font-size: 16px; font-size: 16px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-pager .page-item { .bi-pager .page-item {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-direction-pager .direction-pager-prev { .bi-direction-pager .direction-pager-prev {
font-size: 16px; font-size: 16px;
} }
.bi-direction-pager .direction-pager-next { .bi-direction-pager .direction-pager-next {
font-size: 16px; font-size: 16px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-segment > .center-element { .bi-segment > .center-element {
@ -704,10 +650,6 @@ li.CodeMirror-hint-active {
.bi-theme-dark .bi-segment > .first-element { .bi-theme-dark .bi-segment > .first-element {
border-left: 1px solid #242640; border-left: 1px solid #242640;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-button { .bi-button {
@ -861,59 +803,35 @@ li.CodeMirror-hint-active {
filter: alpha(opacity=20); filter: alpha(opacity=20);
background-color: #1a1a1a; background-color: #1a1a1a;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-single-select-icon-text-item:active .b-font:before, .bi-single-select-icon-text-item:active .b-font:before,
.bi-single-select-icon-text-item.active .b-font:before { .bi-single-select-icon-text-item.active .b-font:before {
color: #3f8ce8; color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-editor { .bi-editor {
font-size: 12px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-multifile-editor .multifile-editor { .bi-multifile-editor .multifile-editor {
text-align: right; text-align: right;
cursor: pointer; cursor: pointer;
font-size: 100px; font-size: 100px;
z-index: 2; z-index: 2;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-shelter-editor .shelter-editor-text { .bi-shelter-editor .shelter-editor-text {
font-size: 12px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sign-editor .sign-editor-text { .bi-sign-editor .sign-editor-text {
font-size: 12px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-textarea-editor { .bi-textarea-editor {
@ -927,17 +845,11 @@ li.CodeMirror-hint-active {
.bi-textarea-editor .textarea-editor-content { .bi-textarea-editor .textarea-editor-content {
border: none; border: none;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-file { .bi-file {
opacity: 0; opacity: 0;
filter: alpha(opacity=0); filter: alpha(opacity=0);
z-index: 2; z-index: 2;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-input { .bi-input {
border: none; border: none;
outline: none; outline: none;
@ -954,10 +866,6 @@ li.CodeMirror-hint-active {
border: none; border: none;
color: #e85050 !important; color: #e85050 !important;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-text { .bi-text {
@ -967,9 +875,6 @@ li.CodeMirror-hint-active {
white-space: nowrap; white-space: nowrap;
word-break: break-word; word-break: break-word;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble { .bi-bubble {
font-size: 14px; font-size: 14px;
} }
@ -980,15 +885,9 @@ li.CodeMirror-hint-active {
background: #fddddd; background: #fddddd;
color: #e85050; color: #e85050;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-tip { .bi-tip {
position: fixed !important; position: fixed !important;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-toast { .bi-toast {
font-size: 14px; font-size: 14px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
@ -1003,9 +902,6 @@ li.CodeMirror-hint-active {
background: #fddddd; background: #fddddd;
color: #e85050; color: #e85050;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-tooltip { .bi-tooltip {
max-width: 250px; max-width: 250px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
@ -1023,9 +919,6 @@ li.CodeMirror-hint-active {
color: #e85050; color: #e85050;
border: 1px solid #f4cbcb; border: 1px solid #f4cbcb;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-collection-table-cell { .bi-collection-table-cell {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
/*Safari3.2+*/ /*Safari3.2+*/
@ -1048,17 +941,11 @@ li.CodeMirror-hint-active {
.bi-theme-dark .bi-collection-table-cell.first-col { .bi-theme-dark .bi-collection-table-cell.first-col {
border-left: 1px solid #525466; border-left: 1px solid #525466;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-quick-collection-table > div > .bi-collection { .bi-quick-collection-table > div > .bi-collection {
overflow: hidden !important; overflow: hidden !important;
overflow-x: hidden !important; overflow-x: hidden !important;
overflow-y: hidden !important; overflow-y: hidden !important;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-table > .first-col { .bi-table > .first-col {
border-left: none; border-left: none;
} }
@ -1137,9 +1024,6 @@ li.CodeMirror-hint-active {
border-top: 1px solid #525466; border-top: 1px solid #525466;
border-left: 1px solid #525466; border-left: 1px solid #525466;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-grid-table-cell { .bi-grid-table-cell {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
/*Safari3.2+*/ /*Safari3.2+*/
@ -1162,9 +1046,6 @@ li.CodeMirror-hint-active {
.bi-theme-dark .bi-grid-table-cell.first-col { .bi-theme-dark .bi-grid-table-cell.first-col {
border-left: 1px solid #525466; border-left: 1px solid #525466;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.scrollbar-layout-main { .scrollbar-layout-main {
box-sizing: border-box; box-sizing: border-box;
outline: none; outline: none;
@ -1278,9 +1159,6 @@ li.CodeMirror-hint-active {
bottom: 0; bottom: 0;
position: absolute; position: absolute;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-resizable-table-cell .resizable-table-cell-resizer-container { .bi-resizable-table-cell .resizable-table-cell-resizer-container {
cursor: ew-resize; cursor: ew-resize;
z-index: 1; z-index: 1;
@ -1289,14 +1167,17 @@ li.CodeMirror-hint-active {
.bi-resizable-table-cell .resizable-table-cell-resizer-container.dragging .resizable-table-cell-resizer-knob { .bi-resizable-table-cell .resizable-table-cell-resizer-container.dragging .resizable-table-cell-resizer-knob {
background-color: #3f8ce8; background-color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-resizable-table-cell .resizable-table-cell-resizer-container.suitable .resizable-table-cell-resizer-knob {
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #58cc7d;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-resizable-table .resizable-table-resizer { .bi-resizable-table .resizable-table-resizer {
cursor: ew-resize; cursor: ew-resize;
z-index: 1; z-index: 1;
background-color: #3f8ce8; background-color: #3f8ce8;
} }
.bi-resizable-table .resizable-table-resizer.suitable {
background-color: #58cc7d;
}
.bi-resizable-table .resizable-table-region-resizer { .bi-resizable-table .resizable-table-region-resizer {
cursor: ew-resize; cursor: ew-resize;
z-index: 1; z-index: 1;
@ -1305,28 +1186,16 @@ li.CodeMirror-hint-active {
.bi-resizable-table .resizable-table-region-resizer.dragging .resizable-table-region-resizer-knob { .bi-resizable-table .resizable-table-region-resizer.dragging .resizable-table-region-resizer-knob {
background-color: #3f8ce8; background-color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-branch-tree .bi-branch-tree-view { .bi-branch-tree .bi-branch-tree-view {
min-width: 300px; min-width: 300px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-trigger .bi-trigger-icon-button { .bi-trigger .bi-trigger-icon-button {
font-size: 16px; font-size: 16px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-select-text-trigger { .bi-select-text-trigger {
@ -1334,18 +1203,11 @@ li.CodeMirror-hint-active {
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-small-select-text-trigger { .bi-small-select-text-trigger {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**********BI.BIListView*************/ /**********BI.BIListView*************/

70759
bi/base.js

File diff suppressed because it is too large Load Diff

25230
bi/case.js

File diff suppressed because it is too large Load Diff

15202
bi/chart.js

File diff suppressed because it is too large Load Diff

730
bi/core.css

File diff suppressed because it is too large Load Diff

35051
bi/core.js

File diff suppressed because it is too large Load Diff

184
bi/polyfill.js

@ -1,93 +1,93 @@
if(![].indexOf){ if(![].indexOf){
/** /**
* 检查指定的值是否在数组中 * 检查指定的值是否在数组中
* @param {Object} o 要检查的值 * @param {Object} o 要检查的值
* @return {Number} o在数组中的索引如果不在数组中则返回-1 * @return {Number} o在数组中的索引如果不在数组中则返回-1
*/ */
Array.prototype.indexOf = function (o) { Array.prototype.indexOf = function (o) {
for (var i = 0, len = this.length; i < len; i++) { for (var i = 0, len = this.length; i < len; i++) {
if (_.isEqual(o, this[i])) { if (_.isEqual(o, this[i])) {
return i; return i;
} }
} }
return -1; return -1;
} }
} }
if(![].lastIndexOf){ if(![].lastIndexOf){
/** /**
* 检查指定的值是否在数组中 * 检查指定的值是否在数组中
* ie67不支持数组的这个方法 * ie67不支持数组的这个方法
* @param {Object} o 要检查的值 * @param {Object} o 要检查的值
* @return {Number} o在数组中的索引如果不在数组中则返回-1 * @return {Number} o在数组中的索引如果不在数组中则返回-1
*/ */
Array.prototype.lastIndexOf = function (o) { Array.prototype.lastIndexOf = function (o) {
for (var len = this.length, i = len - 1; i >= 0; i--) { for (var len = this.length, i = len - 1; i >= 0; i--) {
if (_.isEqual(o, this[i])) { if (_.isEqual(o, this[i])) {
return i; return i;
} }
} }
return -1; return -1;
} }
}/** }/**
* 特殊情况 * 特殊情况
* Created by wang on 15/6/23. * Created by wang on 15/6/23.
*/ */
//解决console未定义问题 guy //解决console未定义问题 guy
window.console = window.console || (function () { window.console = window.console || (function () {
var c = {}; var c = {};
c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
= c.clear = c.exception = c.trace = c.assert = function () { = c.clear = c.exception = c.trace = c.assert = function () {
}; };
return c; return c;
})(); })();
/* /*
* 前端缓存 * 前端缓存
*/ */
window.localStorage || (window.localStorage = { window.localStorage || (window.localStorage = {
items: {}, items: {},
setItem: function (k, v) { setItem: function (k, v) {
BI.Cache.addCookie(k, v); BI.Cache.addCookie(k, v);
}, },
getItem: function (k) { getItem: function (k) {
return BI.Cache.getCookie(k); return BI.Cache.getCookie(k);
}, },
removeItem: function (k) { removeItem: function (k) {
BI.Cache.deleteCookie(k); BI.Cache.deleteCookie(k);
}, },
key: function () { key: function () {
}, },
clear: function () { clear: function () {
this.items = {}; this.items = {};
} }
});//修复ie9下sort方法的bug });//修复ie9下sort方法的bug
!function (window) { !function (window) {
var ua = window.navigator.userAgent.toLowerCase(), var ua = window.navigator.userAgent.toLowerCase(),
reg = /msie|applewebkit.+safari/; reg = /msie|applewebkit.+safari/;
if (reg.test(ua)) { if (reg.test(ua)) {
var _sort = Array.prototype.sort; var _sort = Array.prototype.sort;
Array.prototype.sort = function (fn) { Array.prototype.sort = function (fn) {
if (!!fn && typeof fn === 'function') { if (!!fn && typeof fn === 'function') {
if (this.length < 2) { if (this.length < 2) {
return this; return this;
} }
var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0; var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0;
for (; i < l; i++) { for (; i < l; i++) {
for (j = i + 1; j < l; j++) { for (j = i + 1; j < l; j++) {
t = fn.call(this, this[i], this[j]); t = fn.call(this, this[i], this[j]);
r = (typeof t === 'number' ? t : r = (typeof t === 'number' ? t :
!!t ? 1 : 0) > 0; !!t ? 1 : 0) > 0;
if (r === true) { if (r === true) {
tmp = this[i]; tmp = this[i];
this[i] = this[j]; this[i] = this[j];
this[j] = tmp; this[j] = tmp;
} }
} }
} }
return this; return this;
} else { } else {
return _sort.call(this); return _sort.call(this);
} }
}; };
} }
}(window); }(window);

956
bi/widget.css

@ -1,540 +1,416 @@
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-arrangement .arrangement-helper {
/****添加计算宽度的--运算符直接需要space****/ background: #3f8ce8;
/****** common color(常用颜色,可用于普遍场景) *****/ z-index: 1000000000;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-arrangement .arrangement-helper { .bi-arrangement .arrangement-block {
background: #3f8ce8; z-index: 1000000000;
z-index: 1000000000; }
} .bi-arrangement .arrangement-drop-container {
.bi-arrangement .arrangement-block { z-index: 1000000000;
z-index: 1000000000; }
} .bi-arrangement .arrangement-drop-container .arrangement-drop-region {
.bi-arrangement .arrangement-drop-container { overflow: hidden;
z-index: 1000000000; }
} .bi-arrangement .arrangement-drop-container .drop-devider {
.bi-arrangement .arrangement-drop-container .arrangement-drop-region { z-index: 1000000001;
overflow: hidden; background: #3f8ce8;
} }
.bi-arrangement .arrangement-drop-container .drop-devider { .bi-arrangement .arrangement-drop-container .top-left,
z-index: 1000000001; .bi-arrangement .arrangement-drop-container .top-right,
background: #3f8ce8; .bi-arrangement .arrangement-drop-container .bottom-left,
} .bi-arrangement .arrangement-drop-container .bottom-right,
.bi-arrangement .arrangement-drop-container .top-left, .bi-arrangement .arrangement-drop-container .top-left-second,
.bi-arrangement .arrangement-drop-container .top-right, .bi-arrangement .arrangement-drop-container .top-right-second,
.bi-arrangement .arrangement-drop-container .bottom-left, .bi-arrangement .arrangement-drop-container .bottom-left-second,
.bi-arrangement .arrangement-drop-container .bottom-right, .bi-arrangement .arrangement-drop-container .bottom-right-second,
.bi-arrangement .arrangement-drop-container .top-left-second, .bi-arrangement .arrangement-drop-container .top-center,
.bi-arrangement .arrangement-drop-container .top-right-second, .bi-arrangement .arrangement-drop-container .bottom-center,
.bi-arrangement .arrangement-drop-container .bottom-left-second, .bi-arrangement .arrangement-drop-container .left-center,
.bi-arrangement .arrangement-drop-container .bottom-right-second, .bi-arrangement .arrangement-drop-container .right-center,
.bi-arrangement .arrangement-drop-container .top-center, .bi-arrangement .arrangement-drop-container .top-center-second,
.bi-arrangement .arrangement-drop-container .bottom-center, .bi-arrangement .arrangement-drop-container .bottom-center-second,
.bi-arrangement .arrangement-drop-container .left-center, .bi-arrangement .arrangement-drop-container .left-center-second,
.bi-arrangement .arrangement-drop-container .right-center, .bi-arrangement .arrangement-drop-container .right-center-second {
.bi-arrangement .arrangement-drop-container .top-center-second, z-index: 1000000001;
.bi-arrangement .arrangement-drop-container .bottom-center-second, background: #3f8ce8;
.bi-arrangement .arrangement-drop-container .left-center-second, }
.bi-arrangement .arrangement-drop-container .right-center-second { .bi-arrangement-droppable {
z-index: 1000000001; z-index: 100000;
background: #3f8ce8; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-adapt-editor .adapt-editor-text {
.bi-arrangement-droppable { font-size: 14px;
z-index: 100000; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ /*************BI.SearchEditor******************/
.bi-adapt-editor .adapt-editor-text { .bi-search-editor {
font-size: 14px; border: 1px solid #d4dadd;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-search-editor .close-font {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 20px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/*************BI.SearchEditor******************/ .bi-search-editor .search-font {
.bi-search-editor { font-size: 20px;
border: 1px solid #d4dadd; }
} /****添加计算宽度的--运算符直接需要space****/
.bi-search-editor .close-font { /****** common color(常用颜色,可用于普遍场景) *****/
font-size: 20px; /**** custom color(自定义颜色,用于特定场景) ****/
} /*************BI.SearchEditor******************/
.bi-search-editor .search-font { .bi-small-search-editor .bi-editor {
font-size: 20px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-small-search-editor .bi-editor .bi-input {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 12px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/*************BI.SearchEditor******************/ .bi-small-search-editor .bi-editor .bi-label {
.bi-small-search-editor .bi-editor { font-size: 12px;
font-size: 12px; }
} .bi-small-search-editor .close-font {
.bi-small-search-editor .bi-editor .bi-input { font-size: 18px;
font-size: 12px; }
} .bi-small-search-editor .search-font {
.bi-small-search-editor .bi-editor .bi-label { font-size: 18px;
font-size: 12px; }
} /****添加计算宽度的--运算符直接需要space****/
.bi-small-search-editor .close-font { /****** common color(常用颜色,可用于普遍场景) *****/
font-size: 18px; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-sign-initial-editor .sign-initial-editor-text {
.bi-small-search-editor .search-font { font-size: 14px;
font-size: 18px; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-sign-style-editor .sign-style-editor-text {
.bi-sign-initial-editor .sign-initial-editor-text { max-width: 100%;
font-size: 14px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-sign-style-editor .sign-style-editor-tip {
/****** common color(常用颜色,可用于普遍场景) *****/ max-width: 100%;
/**** custom color(自定义颜色,用于特定场景) ****/ font-size: 12px;
.bi-sign-style-editor .sign-style-editor-text { color: #808080;
max-width: 100%; }
font-size: 12px; /****添加计算宽度的--运算符直接需要space****/
} /****** common color(常用颜色,可用于普遍场景) *****/
.bi-sign-style-editor .sign-style-editor-tip { /**** custom color(自定义颜色,用于特定场景) ****/
max-width: 100%; .bi-text-editor {
font-size: 12px; border: 1px solid #d4dadd;
color: #808080; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ /*************BI.SearchEditor******************/
.bi-text-editor { /****** common color(常用颜色,可用于普遍场景) *****/
border: 1px solid #d4dadd; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-date-trigger {
/****添加计算宽度的--运算符直接需要space****/ -webkit-border-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-border-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ border-radius: 2px;
/*************BI.SearchEditor******************/ }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-down-list-popup .bi-down-list-item .list-item-text {
/****添加计算宽度的--运算符直接需要space****/ max-width: 203px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-date-trigger { /**** custom color(自定义颜色,用于特定场景) ****/
-webkit-border-radius: 2px; .bi-excel-table > div.bottom-right > div > div > table {
-moz-border-radius: 2px; border-right: 1px solid #d4dadd;
border-radius: 2px; }
} .bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table {
/****添加计算宽度的--运算符直接需要space****/ border-right: 1px solid #525466;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-excel-table-header-cell {
/****添加计算宽度的--运算符直接需要space****/ font-weight: bold;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-down-list-popup .bi-down-list-item .list-item-text { /**** custom color(自定义颜色,用于特定场景) ****/
max-width: 203px; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-file-manager-nav-button .file-manager-nav-button-text {
/****添加计算宽度的--运算符直接需要space****/ max-width: 200px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-file-manager-nav-button .file-manager-nav-button-text.active {
.bi-excel-table > div.bottom-right > div > div > table { background-color: #eff1f4;
border-right: 1px solid #d4dadd; color: #999999;
} }
.bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table { .bi-file-manager-nav-button .file-manager-nav-button-triangle {
border-right: 1px solid #525466; z-index: 1;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active {
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #191b2b;
/**** custom color(自定义颜色,用于特定场景) ****/ color: #999999;
.bi-excel-table-header-cell { }
font-weight: bold; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ .bi-fine-tuning-number-editor {
/****** common color(常用颜色,可用于普遍场景) *****/ -webkit-border-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-border-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ border-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-interactive-arrangement .interactive-arrangement-dragtag-line {
/****添加计算宽度的--运算符直接需要space****/ z-index: 1000000000;
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #f07d0a;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/****添加计算宽度的--运算符直接需要space****/ .bi-interactive-arrangement .interactive-arrangement-dragtag-icon {
/****** common color(常用颜色,可用于普遍场景) *****/ z-index: 1000000000;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-file-manager-nav-button .file-manager-nav-button-text { /****** common color(常用颜色,可用于普遍场景) *****/
max-width: 200px; /**** custom color(自定义颜色,用于特定场景) ****/
} /****** common color(常用颜色,可用于普遍场景) *****/
.bi-file-manager-nav-button .file-manager-nav-button-text.active { /**** custom color(自定义颜色,用于特定场景) ****/
background-color: #eff1f4; .bi-month-trigger {
color: #999999; -webkit-border-radius: 2px;
} -moz-border-radius: 2px;
.bi-file-manager-nav-button .file-manager-nav-button-triangle { border-radius: 2px;
z-index: 1; }
} .bi-multi-select-check-pane .multi-select-check-selected {
.bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active { text-decoration: underline;
background-color: #191b2b; }
color: #999999; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ .bi-multi-select-combo .multi-select-trigger-icon-button {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 16px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-select-trigger {
.bi-fine-tuning-number-editor { -webkit-border-radius: 2px 2px 2px 2px;
-webkit-border-radius: 2px; -moz-border-radius: 2px 2px 2px 2px;
-moz-border-radius: 2px; border-radius: 2px 2px 2px 2px;
border-radius: 2px; }
} .bi-multi-select-search-pane .multi-select-toolbar {
/****添加计算宽度的--运算符直接需要space****/ color: #e85050;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-select-check-selected-button {
.bi-interactive-arrangement .interactive-arrangement-dragtag-line { z-index: 1;
z-index: 1000000000; }
background-color: #f07d0a; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
.bi-interactive-arrangement .interactive-arrangement-dragtag-icon { .bi-multi-tree-check-pane .multi-tree-check-selected {
z-index: 1000000000; color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-tree-combo .multi-select-trigger-icon-button {
/****添加计算宽度的--运算符直接需要space****/ font-size: 16px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-tree-popup .popup-view-tree {
/****添加计算宽度的--运算符直接需要space****/ min-height: 170px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-month-trigger { /**** custom color(自定义颜色,用于特定场景) ****/
-webkit-border-radius: 2px; .bi-multi-tree-check-selected-button .trigger-check-selected {
-moz-border-radius: 2px; color: #3f8ce8;
border-radius: 2px; z-index: 1;
} }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-numerical-interval .numerical-interval-small-editor {
.bi-multi-select-check-pane .multi-select-check-selected { -moz-border-radius-topleft: 2px;
text-decoration: underline; -webkit-border-top-left-radius: 2px;
} -moz-border-radius-bottomleft: 2px;
/****添加计算宽度的--运算符直接需要space****/ -webkit-border-bottom-left-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ border-top-left-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ border-bottom-left-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ }
/****** common color(常用颜色,可用于普遍场景) *****/ .bi-numerical-interval .numerical-interval-big-editor {
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-border-radius-topright: 2px;
.bi-multi-select-combo .multi-select-trigger-icon-button { -webkit-border-top-right-radius: 2px;
font-size: 16px; -moz-border-radius-bottomright: 2px;
} -webkit-border-bottom-right-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ border-top-right-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ border-bottom-right-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/****添加计算宽度的--运算符直接需要space****/ .bi-numerical-interval .numerical-interval-big-combo {
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-border-radius-topleft: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ -webkit-border-top-left-radius: 2px;
.bi-multi-select-trigger { -moz-border-radius-bottomleft: 2px;
-webkit-border-radius: 2px 2px 2px 2px; -webkit-border-bottom-left-radius: 2px;
-moz-border-radius: 2px 2px 2px 2px; border-top-left-radius: 2px;
border-radius: 2px 2px 2px 2px; border-bottom-left-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 14px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-multi-select-search-pane .multi-select-toolbar { .bi-numerical-interval .numerical-interval-small-combo {
color: #e85050; -moz-border-radius-topright: 2px;
} -webkit-border-top-right-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ -moz-border-radius-bottomright: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ -webkit-border-bottom-right-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ border-top-right-radius: 2px;
.bi-multi-select-check-selected-button { border-bottom-right-radius: 2px;
z-index: 1; }
} .bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon {
/****添加计算宽度的--运算符直接需要space****/ font-size: 14px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-numerical-interval.number-error .bi-input {
/****添加计算宽度的--运算符直接需要space****/ color: #e85050;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-multi-tree-check-pane .multi-tree-check-selected { /**** custom color(自定义颜色,用于特定场景) ****/
color: #3f8ce8; .bi-page-table-cell {
} -webkit-user-select: initial;
/****添加计算宽度的--运算符直接需要space****/ -khtml-user-select: initial;
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-user-select: initial;
/**** custom color(自定义颜色,用于特定场景) ****/ -ms-user-select: initial;
/****添加计算宽度的--运算符直接需要space****/ -o-user-select: initial;
/****** common color(常用颜色,可用于普遍场景) *****/ user-select: initial;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-multi-tree-combo .multi-select-trigger-icon-button { /****** common color(常用颜色,可用于普遍场景) *****/
font-size: 16px; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-path-chooser .path-chooser-radio {
/****添加计算宽度的--运算符直接需要space****/ z-index: 1;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-path-region .path-region-label {
.bi-multi-tree-popup .popup-view-tree { z-index: 1;
min-height: 170px; }
} .bi-preview-table-cell {
/****添加计算宽度的--运算符直接需要space****/ min-height: 25px;
/****** common color(常用颜色,可用于普遍场景) *****/ min-width: 80px;
/**** custom color(自定义颜色,用于特定场景) ****/ max-width: 220px;
/****添加计算宽度的--运算符直接需要space****/ }
/****** common color(常用颜色,可用于普遍场景) *****/ .bi-preview-table {
/**** custom color(自定义颜色,用于特定场景) ****/ -webkit-user-select: initial;
.bi-multi-tree-check-selected-button .trigger-check-selected { -khtml-user-select: initial;
color: #3f8ce8; -moz-user-select: initial;
z-index: 1; -ms-user-select: initial;
} -o-user-select: initial;
/****添加计算宽度的--运算符直接需要space****/ user-select: initial;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-preview-table > div > table > thead > tr.odd,
/****添加计算宽度的--运算符直接需要space****/ .bi-preview-table > div > div > div > table > thead > tr.odd {
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #eff1f4;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-numerical-interval .numerical-interval-small-editor { .bi-theme-dark .bi-preview-table > div > table > thead > tr.odd,
-moz-border-radius-topleft: 2px; .bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd {
-webkit-border-top-left-radius: 2px; background-color: #191b2b;
-moz-border-radius-bottomleft: 2px; }
-webkit-border-bottom-left-radius: 2px; .bi-preview-table-header-cell {
border-top-left-radius: 2px; font-weight: bold;
border-bottom-left-radius: 2px; min-height: 25px;
} min-width: 80px;
.bi-numerical-interval .numerical-interval-big-editor { max-width: 220px;
-moz-border-radius-topright: 2px; }
-webkit-border-top-right-radius: 2px; /****** common color(常用颜色,可用于普遍场景) *****/
-moz-border-radius-bottomright: 2px; /**** custom color(自定义颜色,用于特定场景) ****/
-webkit-border-bottom-right-radius: 2px; /****** common color(常用颜色,可用于普遍场景) *****/
border-top-right-radius: 2px; /**** custom color(自定义颜色,用于特定场景) ****/
border-bottom-right-radius: 2px; .bi-quarter-trigger {
} -webkit-border-radius: 2px;
.bi-numerical-interval .numerical-interval-big-combo { -moz-border-radius: 2px;
-moz-border-radius-topleft: 2px; border-radius: 2px;
-webkit-border-top-left-radius: 2px; }
-moz-border-radius-bottomleft: 2px; /****** common color(常用颜色,可用于普遍场景) *****/
-webkit-border-bottom-left-radius: 2px; /**** custom color(自定义颜色,用于特定场景) ****/
border-top-left-radius: 2px; .bi-relation-view-region .relation-view-region-container {
border-bottom-left-radius: 2px; z-index: 1;
} -webkit-border-radius: 2px;
.bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { -moz-border-radius: 2px;
font-size: 14px; border-radius: 2px;
} }
.bi-numerical-interval .numerical-interval-small-combo { .bi-relation-view-region .relation-view-region-container.other-package {
-moz-border-radius-topright: 2px; border-style: dashed;
-webkit-border-top-right-radius: 2px; }
-moz-border-radius-bottomright: 2px; .bi-sequence-table-dynamic-number .sequence-table-title-cell {
-webkit-border-bottom-right-radius: 2px; overflow: hidden;
border-top-right-radius: 2px; overflow-x: hidden;
border-bottom-right-radius: 2px; overflow-y: hidden;
} -webkit-box-sizing: border-box;
.bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { /*Safari3.2+*/
font-size: 14px; -moz-box-sizing: border-box;
} /*Firefox3.5+*/
.bi-numerical-interval.number-error .bi-input { -ms-box-sizing: border-box;
color: #e85050; /*IE8*/
} box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-dynamic-number .sequence-table-number-cell {
/****添加计算宽度的--运算符直接需要space****/ -webkit-box-sizing: border-box;
/****** common color(常用颜色,可用于普遍场景) *****/ /*Safari3.2+*/
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-box-sizing: border-box;
.bi-page-table-cell { /*Firefox3.5+*/
-webkit-user-select: initial; -ms-box-sizing: border-box;
-khtml-user-select: initial; /*IE8*/
-moz-user-select: initial; box-sizing: border-box;
-ms-user-select: initial; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
-o-user-select: initial; }
user-select: initial; .bi-sequence-table-list-number .sequence-table-title-cell {
} overflow: hidden;
/****添加计算宽度的--运算符直接需要space****/ overflow-x: hidden;
/****** common color(常用颜色,可用于普遍场景) *****/ overflow-y: hidden;
/**** custom color(自定义颜色,用于特定场景) ****/ -webkit-box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*Safari3.2+*/
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-box-sizing: border-box;
/**** custom color(自定义颜色,用于特定场景) ****/ /*Firefox3.5+*/
.bi-path-chooser .path-chooser-radio { -ms-box-sizing: border-box;
z-index: 1; /*IE8*/
} box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-list-number .sequence-table-number-cell {
.bi-path-region .path-region-label { -webkit-box-sizing: border-box;
z-index: 1; /*Safari3.2+*/
} -moz-box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*Firefox3.5+*/
/****** common color(常用颜色,可用于普遍场景) *****/ -ms-box-sizing: border-box;
/**** custom color(自定义颜色,用于特定场景) ****/ /*IE8*/
.bi-preview-table-cell { box-sizing: border-box;
min-height: 25px; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
min-width: 80px; }
max-width: 220px; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ .bi-sequence-table-tree-number .sequence-table-title-cell {
/****** common color(常用颜色,可用于普遍场景) *****/ overflow: hidden;
/**** custom color(自定义颜色,用于特定场景) ****/ overflow-x: hidden;
.bi-preview-table { overflow-y: hidden;
-webkit-user-select: initial; -webkit-box-sizing: border-box;
-khtml-user-select: initial; /*Safari3.2+*/
-moz-user-select: initial; -moz-box-sizing: border-box;
-ms-user-select: initial; /*Firefox3.5+*/
-o-user-select: initial; -ms-box-sizing: border-box;
user-select: initial; /*IE8*/
} box-sizing: border-box;
.bi-preview-table > div > table > thead > tr.odd, /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
.bi-preview-table > div > div > div > table > thead > tr.odd { }
background-color: #eff1f4; .bi-sequence-table-tree-number .sequence-table-number-cell {
} -webkit-box-sizing: border-box;
.bi-theme-dark .bi-preview-table > div > table > thead > tr.odd, /*Safari3.2+*/
.bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd { -moz-box-sizing: border-box;
background-color: #191b2b; /*Firefox3.5+*/
} -ms-box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*IE8*/
/****** common color(常用颜色,可用于普遍场景) *****/ box-sizing: border-box;
/**** custom color(自定义颜色,用于特定场景) ****/ /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
.bi-preview-table-header-cell { }
font-weight: bold; /****** common color(常用颜色,可用于普遍场景) *****/
min-height: 25px; /**** custom color(自定义颜色,用于特定场景) ****/
min-width: 80px; /****** common color(常用颜色,可用于普遍场景) *****/
max-width: 220px; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-year-popup .year-popup-navigation {
/****添加计算宽度的--运算符直接需要space****/ line-height: 30px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-year-popup .year-popup-navigation > .center-element {
/****添加计算宽度的--运算符直接需要space****/ border-left: 1px solid #d4dadd;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-year-popup .year-popup-navigation > .first-element {
/****添加计算宽度的--运算符直接需要space****/ border-left: none;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element {
.bi-quarter-trigger { border-left: 1px solid #525466;
-webkit-border-radius: 2px; }
-moz-border-radius: 2px; .bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element {
border-radius: 2px; border-left: none;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-year-trigger {
/****** common color(常用颜色,可用于普遍场景) *****/ -webkit-border-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-border-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ border-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-relation-view-region .relation-view-region-container {
z-index: 1;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-relation-view-region .relation-view-region-container.other-package {
border-style: dashed;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sequence-table-dynamic-number .sequence-table-title-cell {
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
.bi-sequence-table-dynamic-number .sequence-table-number-cell {
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sequence-table-list-number .sequence-table-title-cell {
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
.bi-sequence-table-list-number .sequence-table-number-cell {
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sequence-table-tree-number .sequence-table-title-cell {
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
.bi-sequence-table-tree-number .sequence-table-number-cell {
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-year-popup .year-popup-navigation {
line-height: 30px;
color: #3f8ce8;
}
.bi-year-popup .year-popup-navigation > .center-element {
border-left: 1px solid #d4dadd;
}
.bi-year-popup .year-popup-navigation > .first-element {
border-left: none;
}
.bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element {
border-left: 1px solid #525466;
}
.bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element {
border-left: none;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-year-trigger {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}

34239
bi/widget.js

File diff suppressed because it is too large Load Diff

3
demo/css/face.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.demo-face .face-config .config-label { .demo-face .face-config .config-label {
font-size: 14px; font-size: 14px;
} }

3
demo/css/index.css

@ -1,3 +0,0 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/

5
demo/css/main.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.layout-bg-white { .layout-bg-white {
background-color: #ffffff; background-color: #ffffff;
} }
@ -45,6 +42,6 @@
body { body {
background-color: #eff1f4; background-color: #eff1f4;
} }
body.bi-theme-dark { .bi-theme-dark body {
background-color: #191B2B; background-color: #191B2B;
} }

3
demo/css/north.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.demo-north { .demo-north {
background-color: #3c8dbc; background-color: #3c8dbc;
} }

3
demo/css/preview.css

@ -1,3 +0,0 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/

3
demo/css/west.css

@ -1,3 +0,0 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/

2
demo/js/base/button/demo.icon_button.js

@ -7,7 +7,7 @@ Demo.Button = BI.inherit(BI.Widget, {
{ {
el: { el: {
type: 'bi.icon_button', type: 'bi.icon_button',
cls: "rename-font", cls: "close-ha-font",
width: 20, width: 20,
height: 20 height: 20
} }

215
demo/js/component/demo.multilayerselecttree.leveltree.js

@ -0,0 +1,215 @@
/**
* guy
* 二级树
* @class BI.PlatformLevelTree
* @extends BI.Select
*/
BI.PlatformLevelTree = BI.inherit(BI.Widget, {
props: {
baseCls: "platform-level-tree",
itemsCreator: BI.emptyFn
},
render: function () {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.custom_tree",
element: this,
expander: {
type: "bi.select_tree_expander",
isDefaultInit: false,
el: {},
popup: {
type: "bi.custom_tree"
}
},
itemsCreator: function (op, callback) {
o.itemsCreator(op, function (items) {
callback(self._formatItems(items))
})
},
el: {
type: "bi.loader",
next: false,
el: {
type: "bi.button_tree",
chooseType: 0,
layouts: [{
type: "bi.vertical"
}]
}
}
});
this.tree.on(BI.CustomTree.EVENT_CHANGE, function () {
self.fireEvent(BI.PlatformLevelTree.EVENT_CHANGE, arguments);
})
},
_formatItems: function (nodes) {
var self = this;
BI.each(nodes, function (i, node) {
var extend = {};
if (node.isParent === true || BI.isNotEmptyArray(node.children)) {
switch (i) {
case 0 :
extend.type = "bi.multilayer_select_tree_first_plus_group_node";
break;
case nodes.length - 1 :
extend.type = "bi.multilayer_select_tree_last_plus_group_node";
break;
default :
extend.type = "bi.multilayer_select_tree_mid_plus_group_node";
break;
}
BI.defaults(node, extend);
} else {
switch (i) {
case nodes.length - 1:
extend.type = "bi.multilayer_single_tree_last_tree_leaf_item";
break;
default :
extend.type = "bi.multilayer_single_tree_mid_tree_leaf_item";
}
BI.defaults(node, extend);
}
});
return nodes;
},
populate: function () {
this.tree.populate();
},
getValue: function () {
return this.tree.getValue();
}
});
BI.PlatformLevelTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.platform_level_tree", BI.PlatformLevelTree);
BI.DemoLevelTree = BI.inherit(BI.Widget, {
render: function () {
var self = this;
return {
type: "bi.vtape",
items: [{
el: {
type: "bi.platform_level_tree",
ref: function () {
self.tree = this;
},
itemsCreator: function (op, callback) {
if (!op.node) {//根节点
callback([{
"id": 1,
"pId": 0,
text: "A",
value: 1,
isParent: true
}, {
"id": 2,
"pId": 0,
"text": "B",
value: 2,
isParent: true,
open: true,
}])
} else {
if (op.node.id == 1) {
callback([
{
"id": 11,
"pId": 1,
"text": "test11",
value: 11,
layer: 1,
isParent: true
},
{
"id": 12,
"pId": 1,
"text": "test12",
value: 12,
layer: 1,
},
{
"id": 13,
"pId": 1,
"text": "test13",
value: 13,
layer: 1,
},
{
"id": 14,
"pId": 1,
"text": "test14",
value: 14,
layer: 1,
height: 35
},
{
"id": 15,
"pId": 1,
"text": "test15",
value: 15,
layer: 1,
},
{
"id": 16,
"pId": 1,
"text": "test16",
value: 16,
layer: 1,
},
{"id": 17, "pId": 1, "text": "test17", layer: 1, value: 17}
])
} else if (op.node.id == 2) {
callback([{
"id": 21,
"pId": 2,
"text": "test21",
value: 21,
layer: 1,
},
{
"id": 22,
"pId": 2,
"text": "test22",
value: 22,
layer: 1,
}])
} else if (op.node.id == 11) {
callback([{
"id": 111,
"pId": 11,
"text": "test111",
value: 111,
layer: 2,
}])
}
}
}
}
}, {
el: {
type: "bi.button",
text: "确定",
handler: function () {
BI.Msg.toast(JSON.stringify(self.tree.getValue()));
}
},
height: 25
}]
}
},
mounted: function () {
}
});
BI.shortcut("demo.platform_level_tree", BI.DemoLevelTree);

4
demo/js/config/component.js

@ -20,4 +20,8 @@ Demo.COMPONENT_CONFIG = [{
pId: 5, pId: 5,
text: "bi.tree_value_chooser_pane", text: "bi.tree_value_chooser_pane",
value: "demo.tree_value_chooser_pane" value: "demo.tree_value_chooser_pane"
}, {
pId: 5,
text: "平台用",
value: "demo.platform_level_tree"
}]; }];

374
demo/js/config/core.js

@ -1,188 +1,188 @@
Demo.CORE_CONFIG = [{ Demo.CORE_CONFIG = [{
id: 1, id: 1,
text: "核心控件", text: "核心控件",
}, { }, {
id: 101, id: 101,
pId: 1, pId: 1,
text: "布局" text: "布局"
}, { }, {
pId: 101, pId: 101,
text: "bi.center_adapt", text: "自适应居中bi.center_adapt",
value: "demo.center_adapt" value: "demo.center_adapt"
}, { }, {
pId: 101, pId: 101,
text: "bi.vertical_adapt", text: "自适应垂直居中bi.vertical_adapt",
value: "demo.vertical_adapt" value: "demo.vertical_adapt"
}, { }, {
pId: 101, pId: 101,
text: "bi.horizontal_adapt", text: "自适应水平居中bi.horizontal_adapt",
value: "demo.horizontal_adapt" value: "demo.horizontal_adapt"
}, { }, {
pId: 101, pId: 101,
text: "bi.horizontal_auto", text: "margin-auto自适应水平居中bi.horizontal_auto",
value: "demo.horizontal_auto" value: "demo.horizontal_auto"
}, { }, {
pId: 101, pId: 101,
text: "bi.horizontal_float", text: "float水平居中bi.horizontal_float",
value: "demo.horizontal_float" value: "demo.horizontal_float"
}, { }, {
pId: 101, pId: 101,
text: "bi.left_right_vertical_adapt", text: "左右垂直居中bi.left_right_vertical_adapt",
value: "demo.left_right_vertical_adapt" value: "demo.left_right_vertical_adapt"
}, { }, {
pId: 101, pId: 101,
text: "bi.center", text: "bi.center",
value: "demo.center_layout" value: "demo.center_layout"
}, { }, {
pId: 101, pId: 101,
text: "bi.float_center", text: "bi.float_center",
value: "demo.float_center" value: "demo.float_center"
}, { }, {
pId: 101, pId: 101,
text: "bi.vertical", text: "垂直流式bi.vertical",
value: "demo.vertical" value: "demo.vertical"
}, { }, {
pId: 101, pId: 101,
text: "bi.horizontal", text: "水平流式bi.horizontal",
value: "demo.horizontal" value: "demo.horizontal"
}, { }, {
pId: 101, pId: 101,
text: "bi.border", text: "bi.border",
value: "demo.border" value: "demo.border"
}, { }, {
pId: 101, pId: 101,
text: "bi.left, bi.right", text: "bi.left, bi.right",
value: "demo.flow" value: "demo.flow"
}, { }, {
pId: 101, pId: 101,
text: "bi.inline", text: "bi.inline",
value: "demo.inline" value: "demo.inline"
}, { }, {
pId: 101, pId: 101,
text: "bi.htape", text: "bi.htape",
value: "demo.htape" value: "demo.htape"
}, { }, {
pId: 101, pId: 101,
text: "bi.vtape", text: "bi.vtape",
value: "demo.vtape" value: "demo.vtape"
}, { }, {
pId: 101, pId: 101,
text: "bi.grid", text: "bi.grid",
value: "demo.grid" value: "demo.grid"
}, { }, {
pId: 101, pId: 101,
text: "bi.table", text: "bi.table",
value: "demo.table_layout" value: "demo.table_layout"
}, { }, {
pId: 101, pId: 101,
text: "bi.td", text: "bi.td",
value: "demo.td" value: "demo.td"
}, { }, {
pId: 1, pId: 1,
id: 102, id: 102,
text: "抽象控件" text: "抽象控件"
}, { }, {
pId: 102, pId: 102,
text: "bi.button_group", text: "bi.button_group",
value: "demo.button_group" value: "demo.button_group"
}, { }, {
pId: 102, pId: 102,
text: "bi.button_tree", text: "bi.button_tree",
value: "demo.button_tree" value: "demo.button_tree"
}, { }, {
pId: 102, pId: 102,
text: "bi.virtual_group", text: "bi.virtual_group",
value: "demo.virtual_group" value: "demo.virtual_group"
}, { }, {
pId: 102, pId: 102,
text: "bi.custom_tree", text: "bi.custom_tree",
value: "demo.custom_tree" value: "demo.custom_tree"
}, { }, {
pId: 102, pId: 102,
text: "bi.grid_view", text: "bi.grid_view",
value: "demo.grid_view" value: "demo.grid_view"
}, { }, {
pId: 102, pId: 102,
text: "bi.collection_view", text: "bi.collection_view",
value: "demo.collection_view" value: "demo.collection_view"
}, { }, {
pId: 102, pId: 102,
text: "bi.list_view", text: "bi.list_view",
value: "demo.list_view" value: "demo.list_view"
}, { }, {
pId: 102, pId: 102,
text: "bi.virtual_list", text: "bi.virtual_list",
value: "demo.virtual_list" value: "demo.virtual_list"
}, { }, {
pId: 102, pId: 102,
id: 10201, id: 10201,
text: "组合控件" text: "组合控件"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.combo", text: "bi.combo",
value: "demo.combo" value: "demo.combo"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.expander", text: "bi.expander",
value: "demo.expander" value: "demo.expander"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.group_combo", text: "bi.group_combo",
value: "demo.group_combo" value: "demo.group_combo"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.loader", text: "bi.loader",
value: "demo.loader" value: "demo.loader"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.navigation", text: "bi.navigation",
value: "demo.navigation" value: "demo.navigation"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.searcher", text: "bi.searcher",
value: "demo.searcher" value: "demo.searcher"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.switcher", text: "bi.switcher",
value: "demo.switcher" value: "demo.switcher"
}, { }, {
pId: 10201, pId: 10201,
text: "bi.tab", text: "bi.tab",
value: "demo.tab" value: "demo.tab"
}, { }, {
pId: 102, pId: 102,
id: 10202, id: 10202,
text: "弹出层" text: "弹出层"
}, { }, {
pId: 10202, pId: 10202,
text: "bi.layer_float_box", text: "bi.layer_float_box",
value: "demo.layer_float_box" value: "demo.layer_float_box"
}, { }, {
pId: 10202, pId: 10202,
text: "bi.layer_popup", text: "bi.layer_popup",
value: "demo.layer_popup" value: "demo.layer_popup"
}, { }, {
pId: 10202, pId: 10202,
text: "bi.layer_searcher", text: "bi.layer_searcher",
value: "demo.layer_searcher" value: "demo.layer_searcher"
}, { }, {
pId: 1, pId: 1,
text: "widget", text: "widget",
value: "demo.widget" value: "demo.widget"
}, { }, {
pId: 1, pId: 1,
text: "single", text: "single",
value: "demo.single" value: "demo.single"
}, { }, {
pId: 1, pId: 1,
text: "BasicButton", text: "BasicButton",
value: "demo.basic_button" value: "demo.basic_button"
}, { }, {
pId: 1, pId: 1,
text: "NodeButton", text: "NodeButton",
value: "demo.node_button" value: "demo.node_button"
}, { }, {
pId: 1, pId: 1,
text: "pane", text: "pane",
value: "demo.pane" value: "demo.pane"
}]; }];

4
demo/js/config/widget.js

@ -41,4 +41,8 @@ Demo.WIDGET_CONFIG = [{
pId: 4, pId: 4,
text: "bi.relation_view", text: "bi.relation_view",
value: "demo.relation_view" value: "demo.relation_view"
}, {
pId: 4,
text: "bi.interactive_arrangement",
value: "demo.interactive_arrangement"
}]; }];

4
demo/js/north.js

@ -28,13 +28,13 @@ Demo.North = BI.inherit(BI.Widget, {
type: "bi.text_button", type: "bi.text_button",
text: "星空蓝", text: "星空蓝",
handler: function () { handler: function () {
$("body").removeClass("bi-theme-default").addClass("bi-theme-dark"); $("html").removeClass("bi-theme-default").addClass("bi-theme-dark");
} }
}, { }, {
type: "bi.text_button", type: "bi.text_button",
text: "典雅白", text: "典雅白",
handler: function () { handler: function () {
$("body").removeClass("bi-theme-dark").addClass("bi-theme-default"); $("html").removeClass("bi-theme-dark").addClass("bi-theme-default");
} }
}] }]
} }

13
demo/js/widget/demo.interactivearrangement.js

@ -0,0 +1,13 @@
/**
* Created by User on 2017/3/22.
*/
Demo.RelationView = BI.inherit(BI.Widget, {
props: {
},
render: function () {
return {
type: "bi.interactive_arrangement",
};
}
});
BI.shortcut("demo.interactive_arrangement", Demo.RelationView);

2
demo/js/widget/demo.multiselectcombo.js

@ -35,7 +35,7 @@ Demo.MultiSelectCombo = BI.inherit(BI.Widget, {
_itemsCreator: function (options, callback) { _itemsCreator: function (options, callback) {
var self = this; var self = this;
var items = Demo.MULTI_COMBO_ITEMS; var items = Demo.CONSTANTS.ITEMS;
var keywords = (options.keywords || []).slice(); var keywords = (options.keywords || []).slice();
if (options.keyword) { if (options.keyword) {
keywords.push(options.keyword); keywords.push(options.keyword);

2
demo/less/main.less

@ -58,6 +58,6 @@ body {
background-color: @color-bi-background-normal; background-color: @color-bi-background-normal;
} }
body.bi-theme-dark { .bi-theme-dark body {
background-color: @color-bi-background-normal-theme-dark; background-color: @color-bi-background-normal-theme-dark;
} }

9
demo/version.js

@ -2,10 +2,11 @@ Demo = {
version: 1.0 version: 1.0
}; };
BI.i18n = {
"BI-Basic_OK": "确定"
};
BI.servletURL = ""; BI.servletURL = "";
BI.resourceURL = "resource/"; BI.resourceURL = "resource/";
BI.i18n = {}; BI.i18n = {
"BI-Basic_OK": "确定",
"BI-Basic_Sure": "确定",
"BI-Basic_Clears": "清空"
};

162
docs/base.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-chooser-trigger { .bi-color-chooser-trigger {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -9,18 +6,12 @@
-webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset; -webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset;
-moz-box-shadow: 0px 0px 2px 1px #d4dadd inset; -moz-box-shadow: 0px 0px 2px 1px #d4dadd inset;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-picker-button .color-picker-button-mask { .bi-color-picker-button .color-picker-button-mask {
border: 1px solid #1a1a1a; border: 1px solid #1a1a1a;
} }
.bi-theme-dark .bi-color-picker-button .color-picker-button-mask { .bi-theme-dark .bi-color-picker-button .color-picker-button-mask {
border: 1px solid #ffffff; border: 1px solid #ffffff;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-picker-editor .color-picker-editor-display { .bi-color-picker-editor .color-picker-editor-display {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -29,9 +20,6 @@
-webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset; -webkit-box-shadow: 0px 0px 2px 1px #d4dadd inset;
-moz-box-shadow: 0px 0px 2px 1px #d4dadd inset; -moz-box-shadow: 0px 0px 2px 1px #d4dadd inset;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble-combo .button-combo-triangle-wrapper { .bi-bubble-combo .button-combo-triangle-wrapper {
position: fixed !important; position: fixed !important;
} }
@ -67,26 +55,16 @@
border-right: 6px solid transparent; border-right: 6px solid transparent;
border-bottom: 6px solid #3f8ce8; border-bottom: 6px solid #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble-popup-view { .bi-bubble-popup-view {
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-adapt-editor .adapt-editor-text { .bi-adapt-editor .adapt-editor-text {
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/*************BI.SearchEditor******************/ /*************BI.SearchEditor******************/
.bi-search-editor .close-font { .bi-search-editor .close-font {
font-size: 20px; font-size: 20px;
@ -94,9 +72,6 @@
.bi-search-editor .search-font { .bi-search-editor .search-font {
font-size: 20px; font-size: 20px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/*************BI.SearchEditor******************/ /*************BI.SearchEditor******************/
.bi-small-search-editor .bi-editor { .bi-small-search-editor .bi-editor {
font-size: 12px; font-size: 12px;
@ -113,15 +88,9 @@
.bi-small-search-editor .search-font { .bi-small-search-editor .search-font {
font-size: 18px; font-size: 18px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sign-initial-editor .sign-initial-editor-text { .bi-sign-initial-editor .sign-initial-editor-text {
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/* BASICS */ /* BASICS */
.CodeMirror { .CodeMirror {
/* Set height, width, borders, and global font properties here */ /* Set height, width, borders, and global font properties here */
@ -129,12 +98,6 @@
cursor: text; cursor: text;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: #1a1a1a;
background-color: #ffffff;
}
.bi-theme-dark .CodeMirror {
color: #ffffff;
background-color: #242640;
} }
/* PADDING */ /* PADDING */
.CodeMirror-lines { .CodeMirror-lines {
@ -461,13 +424,18 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
margin: 0; margin: 0;
white-space: pre; white-space: pre;
word-wrap: normal; word-wrap: normal;
line-height: 2em;
color: inherit; color: inherit;
z-index: 2; z-index: 2;
position: relative; position: relative;
overflow: visible; overflow: visible;
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
.codemirror-high-line-height {
line-height: 2;
}
.codemirror-low-line-height {
line-height: 1.4;
}
.CodeMirror-wrap pre { .CodeMirror-wrap pre {
word-wrap: break-word; word-wrap: break-word;
white-space: pre-wrap; white-space: pre-wrap;
@ -599,9 +567,6 @@ li.CodeMirror-hint-active {
background: #08f; background: #08f;
color: white; color: white;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-message-title { .bi-message-title {
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
@ -621,16 +586,10 @@ li.CodeMirror-hint-active {
.bi-message-close { .bi-message-close {
font-size: 25px; font-size: 25px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-multi-list-view .bi-button-mask { .bi-multi-list-view .bi-button-mask {
opacity: 0.1; opacity: 0.1;
filter: alpha(opacity=10); filter: alpha(opacity=10);
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-panel { .bi-panel {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
@ -640,36 +599,23 @@ li.CodeMirror-hint-active {
cursor: text; cursor: text;
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-all-count-pager .all-pager-prev { .bi-all-count-pager .all-pager-prev {
font-size: 16px; font-size: 16px;
} }
.bi-all-count-pager .all-pager-next { .bi-all-count-pager .all-pager-next {
font-size: 16px; font-size: 16px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-pager .page-item { .bi-pager .page-item {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-direction-pager .direction-pager-prev { .bi-direction-pager .direction-pager-prev {
font-size: 16px; font-size: 16px;
} }
.bi-direction-pager .direction-pager-next { .bi-direction-pager .direction-pager-next {
font-size: 16px; font-size: 16px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-segment > .center-element { .bi-segment > .center-element {
@ -704,10 +650,6 @@ li.CodeMirror-hint-active {
.bi-theme-dark .bi-segment > .first-element { .bi-theme-dark .bi-segment > .first-element {
border-left: 1px solid #242640; border-left: 1px solid #242640;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-button { .bi-button {
@ -861,59 +803,35 @@ li.CodeMirror-hint-active {
filter: alpha(opacity=20); filter: alpha(opacity=20);
background-color: #1a1a1a; background-color: #1a1a1a;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-single-select-icon-text-item:active .b-font:before, .bi-single-select-icon-text-item:active .b-font:before,
.bi-single-select-icon-text-item.active .b-font:before { .bi-single-select-icon-text-item.active .b-font:before {
color: #3f8ce8; color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-editor { .bi-editor {
font-size: 12px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-multifile-editor .multifile-editor { .bi-multifile-editor .multifile-editor {
text-align: right; text-align: right;
cursor: pointer; cursor: pointer;
font-size: 100px; font-size: 100px;
z-index: 2; z-index: 2;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-shelter-editor .shelter-editor-text { .bi-shelter-editor .shelter-editor-text {
font-size: 12px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sign-editor .sign-editor-text { .bi-sign-editor .sign-editor-text {
font-size: 12px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-textarea-editor { .bi-textarea-editor {
@ -927,17 +845,11 @@ li.CodeMirror-hint-active {
.bi-textarea-editor .textarea-editor-content { .bi-textarea-editor .textarea-editor-content {
border: none; border: none;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-file { .bi-file {
opacity: 0; opacity: 0;
filter: alpha(opacity=0); filter: alpha(opacity=0);
z-index: 2; z-index: 2;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-input { .bi-input {
border: none; border: none;
outline: none; outline: none;
@ -954,10 +866,6 @@ li.CodeMirror-hint-active {
border: none; border: none;
color: #e85050 !important; color: #e85050 !important;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-text { .bi-text {
@ -967,9 +875,6 @@ li.CodeMirror-hint-active {
white-space: nowrap; white-space: nowrap;
word-break: break-word; word-break: break-word;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble { .bi-bubble {
font-size: 14px; font-size: 14px;
} }
@ -980,15 +885,9 @@ li.CodeMirror-hint-active {
background: #fddddd; background: #fddddd;
color: #e85050; color: #e85050;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-tip { .bi-tip {
position: fixed !important; position: fixed !important;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-toast { .bi-toast {
font-size: 14px; font-size: 14px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
@ -1003,9 +902,6 @@ li.CodeMirror-hint-active {
background: #fddddd; background: #fddddd;
color: #e85050; color: #e85050;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-tooltip { .bi-tooltip {
max-width: 250px; max-width: 250px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
@ -1023,9 +919,6 @@ li.CodeMirror-hint-active {
color: #e85050; color: #e85050;
border: 1px solid #f4cbcb; border: 1px solid #f4cbcb;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-collection-table-cell { .bi-collection-table-cell {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
/*Safari3.2+*/ /*Safari3.2+*/
@ -1048,17 +941,11 @@ li.CodeMirror-hint-active {
.bi-theme-dark .bi-collection-table-cell.first-col { .bi-theme-dark .bi-collection-table-cell.first-col {
border-left: 1px solid #525466; border-left: 1px solid #525466;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-quick-collection-table > div > .bi-collection { .bi-quick-collection-table > div > .bi-collection {
overflow: hidden !important; overflow: hidden !important;
overflow-x: hidden !important; overflow-x: hidden !important;
overflow-y: hidden !important; overflow-y: hidden !important;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-table > .first-col { .bi-table > .first-col {
border-left: none; border-left: none;
} }
@ -1137,9 +1024,6 @@ li.CodeMirror-hint-active {
border-top: 1px solid #525466; border-top: 1px solid #525466;
border-left: 1px solid #525466; border-left: 1px solid #525466;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-grid-table-cell { .bi-grid-table-cell {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
/*Safari3.2+*/ /*Safari3.2+*/
@ -1162,9 +1046,6 @@ li.CodeMirror-hint-active {
.bi-theme-dark .bi-grid-table-cell.first-col { .bi-theme-dark .bi-grid-table-cell.first-col {
border-left: 1px solid #525466; border-left: 1px solid #525466;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.scrollbar-layout-main { .scrollbar-layout-main {
box-sizing: border-box; box-sizing: border-box;
outline: none; outline: none;
@ -1278,9 +1159,6 @@ li.CodeMirror-hint-active {
bottom: 0; bottom: 0;
position: absolute; position: absolute;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-resizable-table-cell .resizable-table-cell-resizer-container { .bi-resizable-table-cell .resizable-table-cell-resizer-container {
cursor: ew-resize; cursor: ew-resize;
z-index: 1; z-index: 1;
@ -1289,14 +1167,17 @@ li.CodeMirror-hint-active {
.bi-resizable-table-cell .resizable-table-cell-resizer-container.dragging .resizable-table-cell-resizer-knob { .bi-resizable-table-cell .resizable-table-cell-resizer-container.dragging .resizable-table-cell-resizer-knob {
background-color: #3f8ce8; background-color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-resizable-table-cell .resizable-table-cell-resizer-container.suitable .resizable-table-cell-resizer-knob {
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #58cc7d;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-resizable-table .resizable-table-resizer { .bi-resizable-table .resizable-table-resizer {
cursor: ew-resize; cursor: ew-resize;
z-index: 1; z-index: 1;
background-color: #3f8ce8; background-color: #3f8ce8;
} }
.bi-resizable-table .resizable-table-resizer.suitable {
background-color: #58cc7d;
}
.bi-resizable-table .resizable-table-region-resizer { .bi-resizable-table .resizable-table-region-resizer {
cursor: ew-resize; cursor: ew-resize;
z-index: 1; z-index: 1;
@ -1305,28 +1186,16 @@ li.CodeMirror-hint-active {
.bi-resizable-table .resizable-table-region-resizer.dragging .resizable-table-region-resizer-knob { .bi-resizable-table .resizable-table-region-resizer.dragging .resizable-table-region-resizer-knob {
background-color: #3f8ce8; background-color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-branch-tree .bi-branch-tree-view { .bi-branch-tree .bi-branch-tree-view {
min-width: 300px; min-width: 300px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-trigger .bi-trigger-icon-button { .bi-trigger .bi-trigger-icon-button {
font-size: 16px; font-size: 16px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
.bi-select-text-trigger { .bi-select-text-trigger {
@ -1334,18 +1203,11 @@ li.CodeMirror-hint-active {
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-small-select-text-trigger { .bi-small-select-text-trigger {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
border-radius: 2px; border-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/ /****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**********BI.BIListView*************/ /**********BI.BIListView*************/

70759
docs/base.js

File diff suppressed because it is too large Load Diff

25230
docs/case.js

File diff suppressed because it is too large Load Diff

15202
docs/chart.js

File diff suppressed because it is too large Load Diff

730
docs/core.css

File diff suppressed because it is too large Load Diff

57335
docs/core.js

File diff suppressed because it is too large Load Diff

20
docs/demo.css

@ -1,15 +1,6 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.demo-face .face-config .config-label { .demo-face .face-config .config-label {
font-size: 14px; font-size: 14px;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.layout-bg-white { .layout-bg-white {
background-color: #ffffff; background-color: #ffffff;
} }
@ -54,12 +45,9 @@
body { body {
background-color: #eff1f4; background-color: #eff1f4;
} }
body.bi-theme-dark { .bi-theme-dark body {
background-color: #191B2B; background-color: #191B2B;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.demo-north { .demo-north {
background-color: #3c8dbc; background-color: #3c8dbc;
} }
@ -70,9 +58,3 @@ body.bi-theme-dark {
font-size: 20px; font-size: 20px;
font-weight: 300; font-weight: 300;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/

14007
docs/demo.js

File diff suppressed because one or more lines are too long

184
docs/polyfill.js

@ -1,93 +1,93 @@
if(![].indexOf){ if(![].indexOf){
/** /**
* 检查指定的值是否在数组中 * 检查指定的值是否在数组中
* @param {Object} o 要检查的值 * @param {Object} o 要检查的值
* @return {Number} o在数组中的索引如果不在数组中则返回-1 * @return {Number} o在数组中的索引如果不在数组中则返回-1
*/ */
Array.prototype.indexOf = function (o) { Array.prototype.indexOf = function (o) {
for (var i = 0, len = this.length; i < len; i++) { for (var i = 0, len = this.length; i < len; i++) {
if (_.isEqual(o, this[i])) { if (_.isEqual(o, this[i])) {
return i; return i;
} }
} }
return -1; return -1;
} }
} }
if(![].lastIndexOf){ if(![].lastIndexOf){
/** /**
* 检查指定的值是否在数组中 * 检查指定的值是否在数组中
* ie67不支持数组的这个方法 * ie67不支持数组的这个方法
* @param {Object} o 要检查的值 * @param {Object} o 要检查的值
* @return {Number} o在数组中的索引如果不在数组中则返回-1 * @return {Number} o在数组中的索引如果不在数组中则返回-1
*/ */
Array.prototype.lastIndexOf = function (o) { Array.prototype.lastIndexOf = function (o) {
for (var len = this.length, i = len - 1; i >= 0; i--) { for (var len = this.length, i = len - 1; i >= 0; i--) {
if (_.isEqual(o, this[i])) { if (_.isEqual(o, this[i])) {
return i; return i;
} }
} }
return -1; return -1;
} }
}/** }/**
* 特殊情况 * 特殊情况
* Created by wang on 15/6/23. * Created by wang on 15/6/23.
*/ */
//解决console未定义问题 guy //解决console未定义问题 guy
window.console = window.console || (function () { window.console = window.console || (function () {
var c = {}; var c = {};
c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
= c.clear = c.exception = c.trace = c.assert = function () { = c.clear = c.exception = c.trace = c.assert = function () {
}; };
return c; return c;
})(); })();
/* /*
* 前端缓存 * 前端缓存
*/ */
window.localStorage || (window.localStorage = { window.localStorage || (window.localStorage = {
items: {}, items: {},
setItem: function (k, v) { setItem: function (k, v) {
BI.Cache.addCookie(k, v); BI.Cache.addCookie(k, v);
}, },
getItem: function (k) { getItem: function (k) {
return BI.Cache.getCookie(k); return BI.Cache.getCookie(k);
}, },
removeItem: function (k) { removeItem: function (k) {
BI.Cache.deleteCookie(k); BI.Cache.deleteCookie(k);
}, },
key: function () { key: function () {
}, },
clear: function () { clear: function () {
this.items = {}; this.items = {};
} }
});//修复ie9下sort方法的bug });//修复ie9下sort方法的bug
!function (window) { !function (window) {
var ua = window.navigator.userAgent.toLowerCase(), var ua = window.navigator.userAgent.toLowerCase(),
reg = /msie|applewebkit.+safari/; reg = /msie|applewebkit.+safari/;
if (reg.test(ua)) { if (reg.test(ua)) {
var _sort = Array.prototype.sort; var _sort = Array.prototype.sort;
Array.prototype.sort = function (fn) { Array.prototype.sort = function (fn) {
if (!!fn && typeof fn === 'function') { if (!!fn && typeof fn === 'function') {
if (this.length < 2) { if (this.length < 2) {
return this; return this;
} }
var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0; var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0;
for (; i < l; i++) { for (; i < l; i++) {
for (j = i + 1; j < l; j++) { for (j = i + 1; j < l; j++) {
t = fn.call(this, this[i], this[j]); t = fn.call(this, this[i], this[j]);
r = (typeof t === 'number' ? t : r = (typeof t === 'number' ? t :
!!t ? 1 : 0) > 0; !!t ? 1 : 0) > 0;
if (r === true) { if (r === true) {
tmp = this[i]; tmp = this[i];
this[i] = this[j]; this[i] = this[j];
this[j] = tmp; this[j] = tmp;
} }
} }
} }
return this; return this;
} else { } else {
return _sort.call(this); return _sort.call(this);
} }
}; };
} }
}(window); }(window);

24
docs/resource.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
html, html,
button, button,
input, input,
@ -125,8 +122,16 @@ textarea::-webkit-scrollbar-thumb:hover {
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='icon/loading.gif'); _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='icon/loading.gif');
_background: none; _background: none;
} }
/****** common color(常用颜色,可用于普遍场景) *****/ .auto-color-background {
/**** custom color(自定义颜色,用于特定场景) ****/ background: url('background/auto-color.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='background/auto-color.png');
_background: none;
}
.trans-color-background {
background: url('background/trans-color.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='background/trans-color.png');
_background: none;
}
@font-face { @font-face {
font-family: 'bi'; font-family: 'bi';
src: url('font/iconfont.eot'), /* IE6-IE8 */ url('font/iconfont.woff') format('woff'), /* chrome、firefox */ url('font/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('font/iconfont.svg#svgFontName') format('svg'); src: url('font/iconfont.eot'), /* IE6-IE8 */ url('font/iconfont.woff') format('woff'), /* chrome、firefox */ url('font/iconfont.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('font/iconfont.svg#svgFontName') format('svg');
@ -1246,9 +1251,6 @@ textarea::-webkit-scrollbar-thumb:hover {
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.farbtastic { .farbtastic {
position: relative; position: relative;
} }
@ -1283,9 +1285,6 @@ textarea::-webkit-scrollbar-thumb:hover {
overflow: hidden; overflow: hidden;
background: url("third/farbtastic/marker.png") no-repeat; background: url("third/farbtastic/marker.png") no-repeat;
} }
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-display-tree .ztree * { .bi-display-tree .ztree * {
color: #999999; color: #999999;
} }
@ -1321,9 +1320,6 @@ email: hunter.z@263.net
website: http://code.google.com/p/jquerytree/ website: http://code.google.com/p/jquerytree/
-------------------------------------*/ -------------------------------------*/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.ztree * { .ztree * {
padding: 0; padding: 0;
margin: 0; margin: 0;

956
docs/widget.css

@ -1,540 +1,416 @@
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-arrangement .arrangement-helper {
/****添加计算宽度的--运算符直接需要space****/ background: #3f8ce8;
/****** common color(常用颜色,可用于普遍场景) *****/ z-index: 1000000000;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-arrangement .arrangement-helper { .bi-arrangement .arrangement-block {
background: #3f8ce8; z-index: 1000000000;
z-index: 1000000000; }
} .bi-arrangement .arrangement-drop-container {
.bi-arrangement .arrangement-block { z-index: 1000000000;
z-index: 1000000000; }
} .bi-arrangement .arrangement-drop-container .arrangement-drop-region {
.bi-arrangement .arrangement-drop-container { overflow: hidden;
z-index: 1000000000; }
} .bi-arrangement .arrangement-drop-container .drop-devider {
.bi-arrangement .arrangement-drop-container .arrangement-drop-region { z-index: 1000000001;
overflow: hidden; background: #3f8ce8;
} }
.bi-arrangement .arrangement-drop-container .drop-devider { .bi-arrangement .arrangement-drop-container .top-left,
z-index: 1000000001; .bi-arrangement .arrangement-drop-container .top-right,
background: #3f8ce8; .bi-arrangement .arrangement-drop-container .bottom-left,
} .bi-arrangement .arrangement-drop-container .bottom-right,
.bi-arrangement .arrangement-drop-container .top-left, .bi-arrangement .arrangement-drop-container .top-left-second,
.bi-arrangement .arrangement-drop-container .top-right, .bi-arrangement .arrangement-drop-container .top-right-second,
.bi-arrangement .arrangement-drop-container .bottom-left, .bi-arrangement .arrangement-drop-container .bottom-left-second,
.bi-arrangement .arrangement-drop-container .bottom-right, .bi-arrangement .arrangement-drop-container .bottom-right-second,
.bi-arrangement .arrangement-drop-container .top-left-second, .bi-arrangement .arrangement-drop-container .top-center,
.bi-arrangement .arrangement-drop-container .top-right-second, .bi-arrangement .arrangement-drop-container .bottom-center,
.bi-arrangement .arrangement-drop-container .bottom-left-second, .bi-arrangement .arrangement-drop-container .left-center,
.bi-arrangement .arrangement-drop-container .bottom-right-second, .bi-arrangement .arrangement-drop-container .right-center,
.bi-arrangement .arrangement-drop-container .top-center, .bi-arrangement .arrangement-drop-container .top-center-second,
.bi-arrangement .arrangement-drop-container .bottom-center, .bi-arrangement .arrangement-drop-container .bottom-center-second,
.bi-arrangement .arrangement-drop-container .left-center, .bi-arrangement .arrangement-drop-container .left-center-second,
.bi-arrangement .arrangement-drop-container .right-center, .bi-arrangement .arrangement-drop-container .right-center-second {
.bi-arrangement .arrangement-drop-container .top-center-second, z-index: 1000000001;
.bi-arrangement .arrangement-drop-container .bottom-center-second, background: #3f8ce8;
.bi-arrangement .arrangement-drop-container .left-center-second, }
.bi-arrangement .arrangement-drop-container .right-center-second { .bi-arrangement-droppable {
z-index: 1000000001; z-index: 100000;
background: #3f8ce8; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-adapt-editor .adapt-editor-text {
.bi-arrangement-droppable { font-size: 14px;
z-index: 100000; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ /*************BI.SearchEditor******************/
.bi-adapt-editor .adapt-editor-text { .bi-search-editor {
font-size: 14px; border: 1px solid #d4dadd;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-search-editor .close-font {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 20px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/*************BI.SearchEditor******************/ .bi-search-editor .search-font {
.bi-search-editor { font-size: 20px;
border: 1px solid #d4dadd; }
} /****添加计算宽度的--运算符直接需要space****/
.bi-search-editor .close-font { /****** common color(常用颜色,可用于普遍场景) *****/
font-size: 20px; /**** custom color(自定义颜色,用于特定场景) ****/
} /*************BI.SearchEditor******************/
.bi-search-editor .search-font { .bi-small-search-editor .bi-editor {
font-size: 20px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-small-search-editor .bi-editor .bi-input {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 12px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/*************BI.SearchEditor******************/ .bi-small-search-editor .bi-editor .bi-label {
.bi-small-search-editor .bi-editor { font-size: 12px;
font-size: 12px; }
} .bi-small-search-editor .close-font {
.bi-small-search-editor .bi-editor .bi-input { font-size: 18px;
font-size: 12px; }
} .bi-small-search-editor .search-font {
.bi-small-search-editor .bi-editor .bi-label { font-size: 18px;
font-size: 12px; }
} /****添加计算宽度的--运算符直接需要space****/
.bi-small-search-editor .close-font { /****** common color(常用颜色,可用于普遍场景) *****/
font-size: 18px; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-sign-initial-editor .sign-initial-editor-text {
.bi-small-search-editor .search-font { font-size: 14px;
font-size: 18px; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-sign-style-editor .sign-style-editor-text {
.bi-sign-initial-editor .sign-initial-editor-text { max-width: 100%;
font-size: 14px; font-size: 12px;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-sign-style-editor .sign-style-editor-tip {
/****** common color(常用颜色,可用于普遍场景) *****/ max-width: 100%;
/**** custom color(自定义颜色,用于特定场景) ****/ font-size: 12px;
.bi-sign-style-editor .sign-style-editor-text { color: #808080;
max-width: 100%; }
font-size: 12px; /****添加计算宽度的--运算符直接需要space****/
} /****** common color(常用颜色,可用于普遍场景) *****/
.bi-sign-style-editor .sign-style-editor-tip { /**** custom color(自定义颜色,用于特定场景) ****/
max-width: 100%; .bi-text-editor {
font-size: 12px; border: 1px solid #d4dadd;
color: #808080; }
} /****添加计算宽度的--运算符直接需要space****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ /*************BI.SearchEditor******************/
.bi-text-editor { /****** common color(常用颜色,可用于普遍场景) *****/
border: 1px solid #d4dadd; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-date-trigger {
/****添加计算宽度的--运算符直接需要space****/ -webkit-border-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-border-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ border-radius: 2px;
/*************BI.SearchEditor******************/ }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-down-list-popup .bi-down-list-item .list-item-text {
/****添加计算宽度的--运算符直接需要space****/ max-width: 203px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-date-trigger { /**** custom color(自定义颜色,用于特定场景) ****/
-webkit-border-radius: 2px; .bi-excel-table > div.bottom-right > div > div > table {
-moz-border-radius: 2px; border-right: 1px solid #d4dadd;
border-radius: 2px; }
} .bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table {
/****添加计算宽度的--运算符直接需要space****/ border-right: 1px solid #525466;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-excel-table-header-cell {
/****添加计算宽度的--运算符直接需要space****/ font-weight: bold;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-down-list-popup .bi-down-list-item .list-item-text { /**** custom color(自定义颜色,用于特定场景) ****/
max-width: 203px; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-file-manager-nav-button .file-manager-nav-button-text {
/****添加计算宽度的--运算符直接需要space****/ max-width: 200px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-file-manager-nav-button .file-manager-nav-button-text.active {
.bi-excel-table > div.bottom-right > div > div > table { background-color: #eff1f4;
border-right: 1px solid #d4dadd; color: #999999;
} }
.bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table { .bi-file-manager-nav-button .file-manager-nav-button-triangle {
border-right: 1px solid #525466; z-index: 1;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active {
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #191b2b;
/**** custom color(自定义颜色,用于特定场景) ****/ color: #999999;
.bi-excel-table-header-cell { }
font-weight: bold; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ .bi-fine-tuning-number-editor {
/****** common color(常用颜色,可用于普遍场景) *****/ -webkit-border-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-border-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ border-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-interactive-arrangement .interactive-arrangement-dragtag-line {
/****添加计算宽度的--运算符直接需要space****/ z-index: 1000000000;
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #f07d0a;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/****添加计算宽度的--运算符直接需要space****/ .bi-interactive-arrangement .interactive-arrangement-dragtag-icon {
/****** common color(常用颜色,可用于普遍场景) *****/ z-index: 1000000000;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-file-manager-nav-button .file-manager-nav-button-text { /****** common color(常用颜色,可用于普遍场景) *****/
max-width: 200px; /**** custom color(自定义颜色,用于特定场景) ****/
} /****** common color(常用颜色,可用于普遍场景) *****/
.bi-file-manager-nav-button .file-manager-nav-button-text.active { /**** custom color(自定义颜色,用于特定场景) ****/
background-color: #eff1f4; .bi-month-trigger {
color: #999999; -webkit-border-radius: 2px;
} -moz-border-radius: 2px;
.bi-file-manager-nav-button .file-manager-nav-button-triangle { border-radius: 2px;
z-index: 1; }
} .bi-multi-select-check-pane .multi-select-check-selected {
.bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active { text-decoration: underline;
background-color: #191b2b; }
color: #999999; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ .bi-multi-select-combo .multi-select-trigger-icon-button {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 16px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-select-trigger {
.bi-fine-tuning-number-editor { -webkit-border-radius: 2px 2px 2px 2px;
-webkit-border-radius: 2px; -moz-border-radius: 2px 2px 2px 2px;
-moz-border-radius: 2px; border-radius: 2px 2px 2px 2px;
border-radius: 2px; }
} .bi-multi-select-search-pane .multi-select-toolbar {
/****添加计算宽度的--运算符直接需要space****/ color: #e85050;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-select-check-selected-button {
.bi-interactive-arrangement .interactive-arrangement-dragtag-line { z-index: 1;
z-index: 1000000000; }
background-color: #f07d0a; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
.bi-interactive-arrangement .interactive-arrangement-dragtag-icon { .bi-multi-tree-check-pane .multi-tree-check-selected {
z-index: 1000000000; color: #3f8ce8;
} }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-tree-combo .multi-select-trigger-icon-button {
/****添加计算宽度的--运算符直接需要space****/ font-size: 16px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-multi-tree-popup .popup-view-tree {
/****添加计算宽度的--运算符直接需要space****/ min-height: 170px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-month-trigger { /**** custom color(自定义颜色,用于特定场景) ****/
-webkit-border-radius: 2px; .bi-multi-tree-check-selected-button .trigger-check-selected {
-moz-border-radius: 2px; color: #3f8ce8;
border-radius: 2px; z-index: 1;
} }
/****添加计算宽度的--运算符直接需要space****/ /****** common color(常用颜色,可用于普遍场景) *****/
/****** common color(常用颜色,可用于普遍场景) *****/ /**** custom color(自定义颜色,用于特定场景) ****/
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-numerical-interval .numerical-interval-small-editor {
.bi-multi-select-check-pane .multi-select-check-selected { -moz-border-radius-topleft: 2px;
text-decoration: underline; -webkit-border-top-left-radius: 2px;
} -moz-border-radius-bottomleft: 2px;
/****添加计算宽度的--运算符直接需要space****/ -webkit-border-bottom-left-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ border-top-left-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ border-bottom-left-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ }
/****** common color(常用颜色,可用于普遍场景) *****/ .bi-numerical-interval .numerical-interval-big-editor {
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-border-radius-topright: 2px;
.bi-multi-select-combo .multi-select-trigger-icon-button { -webkit-border-top-right-radius: 2px;
font-size: 16px; -moz-border-radius-bottomright: 2px;
} -webkit-border-bottom-right-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ border-top-right-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ border-bottom-right-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
/****添加计算宽度的--运算符直接需要space****/ .bi-numerical-interval .numerical-interval-big-combo {
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-border-radius-topleft: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ -webkit-border-top-left-radius: 2px;
.bi-multi-select-trigger { -moz-border-radius-bottomleft: 2px;
-webkit-border-radius: 2px 2px 2px 2px; -webkit-border-bottom-left-radius: 2px;
-moz-border-radius: 2px 2px 2px 2px; border-top-left-radius: 2px;
border-radius: 2px 2px 2px 2px; border-bottom-left-radius: 2px;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon {
/****** common color(常用颜色,可用于普遍场景) *****/ font-size: 14px;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-multi-select-search-pane .multi-select-toolbar { .bi-numerical-interval .numerical-interval-small-combo {
color: #e85050; -moz-border-radius-topright: 2px;
} -webkit-border-top-right-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ -moz-border-radius-bottomright: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ -webkit-border-bottom-right-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ border-top-right-radius: 2px;
.bi-multi-select-check-selected-button { border-bottom-right-radius: 2px;
z-index: 1; }
} .bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon {
/****添加计算宽度的--运算符直接需要space****/ font-size: 14px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-numerical-interval.number-error .bi-input {
/****添加计算宽度的--运算符直接需要space****/ color: #e85050;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ /****** common color(常用颜色,可用于普遍场景) *****/
.bi-multi-tree-check-pane .multi-tree-check-selected { /**** custom color(自定义颜色,用于特定场景) ****/
color: #3f8ce8; .bi-page-table-cell {
} -webkit-user-select: initial;
/****添加计算宽度的--运算符直接需要space****/ -khtml-user-select: initial;
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-user-select: initial;
/**** custom color(自定义颜色,用于特定场景) ****/ -ms-user-select: initial;
/****添加计算宽度的--运算符直接需要space****/ -o-user-select: initial;
/****** common color(常用颜色,可用于普遍场景) *****/ user-select: initial;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-multi-tree-combo .multi-select-trigger-icon-button { /****** common color(常用颜色,可用于普遍场景) *****/
font-size: 16px; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-path-chooser .path-chooser-radio {
/****添加计算宽度的--运算符直接需要space****/ z-index: 1;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-path-region .path-region-label {
.bi-multi-tree-popup .popup-view-tree { z-index: 1;
min-height: 170px; }
} .bi-preview-table-cell {
/****添加计算宽度的--运算符直接需要space****/ min-height: 25px;
/****** common color(常用颜色,可用于普遍场景) *****/ min-width: 80px;
/**** custom color(自定义颜色,用于特定场景) ****/ max-width: 220px;
/****添加计算宽度的--运算符直接需要space****/ }
/****** common color(常用颜色,可用于普遍场景) *****/ .bi-preview-table {
/**** custom color(自定义颜色,用于特定场景) ****/ -webkit-user-select: initial;
.bi-multi-tree-check-selected-button .trigger-check-selected { -khtml-user-select: initial;
color: #3f8ce8; -moz-user-select: initial;
z-index: 1; -ms-user-select: initial;
} -o-user-select: initial;
/****添加计算宽度的--运算符直接需要space****/ user-select: initial;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-preview-table > div > table > thead > tr.odd,
/****添加计算宽度的--运算符直接需要space****/ .bi-preview-table > div > div > div > table > thead > tr.odd {
/****** common color(常用颜色,可用于普遍场景) *****/ background-color: #eff1f4;
/**** custom color(自定义颜色,用于特定场景) ****/ }
.bi-numerical-interval .numerical-interval-small-editor { .bi-theme-dark .bi-preview-table > div > table > thead > tr.odd,
-moz-border-radius-topleft: 2px; .bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd {
-webkit-border-top-left-radius: 2px; background-color: #191b2b;
-moz-border-radius-bottomleft: 2px; }
-webkit-border-bottom-left-radius: 2px; .bi-preview-table-header-cell {
border-top-left-radius: 2px; font-weight: bold;
border-bottom-left-radius: 2px; min-height: 25px;
} min-width: 80px;
.bi-numerical-interval .numerical-interval-big-editor { max-width: 220px;
-moz-border-radius-topright: 2px; }
-webkit-border-top-right-radius: 2px; /****** common color(常用颜色,可用于普遍场景) *****/
-moz-border-radius-bottomright: 2px; /**** custom color(自定义颜色,用于特定场景) ****/
-webkit-border-bottom-right-radius: 2px; /****** common color(常用颜色,可用于普遍场景) *****/
border-top-right-radius: 2px; /**** custom color(自定义颜色,用于特定场景) ****/
border-bottom-right-radius: 2px; .bi-quarter-trigger {
} -webkit-border-radius: 2px;
.bi-numerical-interval .numerical-interval-big-combo { -moz-border-radius: 2px;
-moz-border-radius-topleft: 2px; border-radius: 2px;
-webkit-border-top-left-radius: 2px; }
-moz-border-radius-bottomleft: 2px; /****** common color(常用颜色,可用于普遍场景) *****/
-webkit-border-bottom-left-radius: 2px; /**** custom color(自定义颜色,用于特定场景) ****/
border-top-left-radius: 2px; .bi-relation-view-region .relation-view-region-container {
border-bottom-left-radius: 2px; z-index: 1;
} -webkit-border-radius: 2px;
.bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { -moz-border-radius: 2px;
font-size: 14px; border-radius: 2px;
} }
.bi-numerical-interval .numerical-interval-small-combo { .bi-relation-view-region .relation-view-region-container.other-package {
-moz-border-radius-topright: 2px; border-style: dashed;
-webkit-border-top-right-radius: 2px; }
-moz-border-radius-bottomright: 2px; .bi-sequence-table-dynamic-number .sequence-table-title-cell {
-webkit-border-bottom-right-radius: 2px; overflow: hidden;
border-top-right-radius: 2px; overflow-x: hidden;
border-bottom-right-radius: 2px; overflow-y: hidden;
} -webkit-box-sizing: border-box;
.bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { /*Safari3.2+*/
font-size: 14px; -moz-box-sizing: border-box;
} /*Firefox3.5+*/
.bi-numerical-interval.number-error .bi-input { -ms-box-sizing: border-box;
color: #e85050; /*IE8*/
} box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-dynamic-number .sequence-table-number-cell {
/****添加计算宽度的--运算符直接需要space****/ -webkit-box-sizing: border-box;
/****** common color(常用颜色,可用于普遍场景) *****/ /*Safari3.2+*/
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-box-sizing: border-box;
.bi-page-table-cell { /*Firefox3.5+*/
-webkit-user-select: initial; -ms-box-sizing: border-box;
-khtml-user-select: initial; /*IE8*/
-moz-user-select: initial; box-sizing: border-box;
-ms-user-select: initial; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
-o-user-select: initial; }
user-select: initial; .bi-sequence-table-list-number .sequence-table-title-cell {
} overflow: hidden;
/****添加计算宽度的--运算符直接需要space****/ overflow-x: hidden;
/****** common color(常用颜色,可用于普遍场景) *****/ overflow-y: hidden;
/**** custom color(自定义颜色,用于特定场景) ****/ -webkit-box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*Safari3.2+*/
/****** common color(常用颜色,可用于普遍场景) *****/ -moz-box-sizing: border-box;
/**** custom color(自定义颜色,用于特定场景) ****/ /*Firefox3.5+*/
.bi-path-chooser .path-chooser-radio { -ms-box-sizing: border-box;
z-index: 1; /*IE8*/
} box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-sequence-table-list-number .sequence-table-number-cell {
.bi-path-region .path-region-label { -webkit-box-sizing: border-box;
z-index: 1; /*Safari3.2+*/
} -moz-box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*Firefox3.5+*/
/****** common color(常用颜色,可用于普遍场景) *****/ -ms-box-sizing: border-box;
/**** custom color(自定义颜色,用于特定场景) ****/ /*IE8*/
.bi-preview-table-cell { box-sizing: border-box;
min-height: 25px; /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
min-width: 80px; }
max-width: 220px; /****** common color(常用颜色,可用于普遍场景) *****/
} /**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/ .bi-sequence-table-tree-number .sequence-table-title-cell {
/****** common color(常用颜色,可用于普遍场景) *****/ overflow: hidden;
/**** custom color(自定义颜色,用于特定场景) ****/ overflow-x: hidden;
.bi-preview-table { overflow-y: hidden;
-webkit-user-select: initial; -webkit-box-sizing: border-box;
-khtml-user-select: initial; /*Safari3.2+*/
-moz-user-select: initial; -moz-box-sizing: border-box;
-ms-user-select: initial; /*Firefox3.5+*/
-o-user-select: initial; -ms-box-sizing: border-box;
user-select: initial; /*IE8*/
} box-sizing: border-box;
.bi-preview-table > div > table > thead > tr.odd, /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
.bi-preview-table > div > div > div > table > thead > tr.odd { }
background-color: #eff1f4; .bi-sequence-table-tree-number .sequence-table-number-cell {
} -webkit-box-sizing: border-box;
.bi-theme-dark .bi-preview-table > div > table > thead > tr.odd, /*Safari3.2+*/
.bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd { -moz-box-sizing: border-box;
background-color: #191b2b; /*Firefox3.5+*/
} -ms-box-sizing: border-box;
/****添加计算宽度的--运算符直接需要space****/ /*IE8*/
/****** common color(常用颜色,可用于普遍场景) *****/ box-sizing: border-box;
/**** custom color(自定义颜色,用于特定场景) ****/ /*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
.bi-preview-table-header-cell { }
font-weight: bold; /****** common color(常用颜色,可用于普遍场景) *****/
min-height: 25px; /**** custom color(自定义颜色,用于特定场景) ****/
min-width: 80px; /****** common color(常用颜色,可用于普遍场景) *****/
max-width: 220px; /**** custom color(自定义颜色,用于特定场景) ****/
} .bi-year-popup .year-popup-navigation {
/****添加计算宽度的--运算符直接需要space****/ line-height: 30px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-year-popup .year-popup-navigation > .center-element {
/****添加计算宽度的--运算符直接需要space****/ border-left: 1px solid #d4dadd;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-year-popup .year-popup-navigation > .first-element {
/****添加计算宽度的--运算符直接需要space****/ border-left: none;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/ .bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element {
.bi-quarter-trigger { border-left: 1px solid #525466;
-webkit-border-radius: 2px; }
-moz-border-radius: 2px; .bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element {
border-radius: 2px; border-left: none;
} }
/****添加计算宽度的--运算符直接需要space****/ .bi-year-trigger {
/****** common color(常用颜色,可用于普遍场景) *****/ -webkit-border-radius: 2px;
/**** custom color(自定义颜色,用于特定场景) ****/ -moz-border-radius: 2px;
/****添加计算宽度的--运算符直接需要space****/ border-radius: 2px;
/****** common color(常用颜色,可用于普遍场景) *****/ }
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-relation-view-region .relation-view-region-container {
z-index: 1;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-relation-view-region .relation-view-region-container.other-package {
border-style: dashed;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sequence-table-dynamic-number .sequence-table-title-cell {
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
.bi-sequence-table-dynamic-number .sequence-table-number-cell {
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sequence-table-list-number .sequence-table-title-cell {
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
.bi-sequence-table-list-number .sequence-table-number-cell {
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-sequence-table-tree-number .sequence-table-title-cell {
overflow: hidden;
overflow-x: hidden;
overflow-y: hidden;
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
.bi-sequence-table-tree-number .sequence-table-number-cell {
-webkit-box-sizing: border-box;
/*Safari3.2+*/
-moz-box-sizing: border-box;
/*Firefox3.5+*/
-ms-box-sizing: border-box;
/*IE8*/
box-sizing: border-box;
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-year-popup .year-popup-navigation {
line-height: 30px;
color: #3f8ce8;
}
.bi-year-popup .year-popup-navigation > .center-element {
border-left: 1px solid #d4dadd;
}
.bi-year-popup .year-popup-navigation > .first-element {
border-left: none;
}
.bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element {
border-left: 1px solid #525466;
}
.bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element {
border-left: none;
}
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-year-trigger {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}

34239
docs/widget.js

File diff suppressed because it is too large Load Diff

6
src/base/collection/collection.js

@ -166,10 +166,10 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this.renderedCells[index]._height = datum.height; this.renderedCells[index]._height = datum.height;
this.renderedCells[index].el.setHeight(datum.height); this.renderedCells[index].el.setHeight(datum.height);
} }
if (this.renderedCells[index].left !== datum.x) { if (this.renderedCells[index]._left !== datum.x) {
this.renderedCells[index].el.element.css("left", datum.x + "px"); this.renderedCells[index].el.element.css("left", datum.x + "px");
} }
if (this.renderedCells[index].top !== datum.y) { if (this.renderedCells[index]._top !== datum.y) {
this.renderedCells[index].el.element.css("top", datum.y + "px"); this.renderedCells[index].el.element.css("top", datum.y + "px");
} }
renderedCells.push(child = this.renderedCells[index]); renderedCells.push(child = this.renderedCells[index]);
@ -187,6 +187,8 @@ BI.CollectionView = BI.inherit(BI.Widget, {
el: child, el: child,
left: datum.x, left: datum.x,
top: datum.y, top: datum.y,
_left: datum.x,
_top: datum.y,
_width: datum.width, _width: datum.width,
_height: datum.height _height: datum.height
}); });

26
src/base/combination/combo.js

@ -34,17 +34,21 @@ BI.Combo = BI.inherit(BI.Widget, {
this._initCombo(); this._initCombo();
this._initPullDownAction(); this._initPullDownAction();
this.combo.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { this.combo.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
if (self.isEnabled() && this.isEnabled()) { if (self.isEnabled() && self.isValid()) {
if (type === BI.Events.EXPAND) { if (type === BI.Events.EXPAND) {
self._popupView(); self._popupView();
} }
if (type === BI.Events.COLLAPSE) { if (type === BI.Events.COLLAPSE) {
self._hideView(); self._hideView();
} }
if (type === BI.Events.EXPAND || type === BI.Events.COLLAPSE) { if (type === BI.Events.EXPAND) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
self.fireEvent(BI.Combo.EVENT_EXPAND);
}
if (type === BI.Events.COLLAPSE) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
self.isViewVisible() && self.fireEvent(BI.Combo.EVENT_COLLAPSE);
} }
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
self.fireEvent(BI.Combo.EVENT_TRIGGER_CHANGE, obj); self.fireEvent(BI.Combo.EVENT_TRIGGER_CHANGE, obj);
} }
@ -52,12 +56,12 @@ BI.Combo = BI.inherit(BI.Widget, {
}); });
self.element.on("mouseenter." + self.getName(), function (e) { self.element.on("mouseenter." + self.getName(), function (e) {
if (self.isEnabled() && self.combo.isEnabled()) { if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {
self.element.addClass(o.hoverClass); self.element.addClass(o.hoverClass);
} }
}); });
self.element.on("mouseleave." + self.getName(), function (e) { self.element.on("mouseleave." + self.getName(), function (e) {
if (self.isEnabled() && self.combo.isEnabled()) { if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {
self.element.removeClass(o.hoverClass); self.element.removeClass(o.hoverClass);
} }
}); });
@ -104,14 +108,14 @@ BI.Combo = BI.inherit(BI.Widget, {
switch (ev) { switch (ev) {
case "hover": case "hover":
self.element.on("mouseenter." + self.getName(), function (e) { self.element.on("mouseenter." + self.getName(), function (e) {
if (self.isEnabled() && self.combo.isEnabled()) { if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {
self._popupView(); self._popupView();
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.combo); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.combo);
self.fireEvent(BI.Combo.EVENT_EXPAND); self.fireEvent(BI.Combo.EVENT_EXPAND);
} }
}); });
self.element.on("mouseleave." + self.getName(), function (e) { self.element.on("mouseleave." + self.getName(), function (e) {
if (self.isEnabled() && self.combo.isEnabled() && o.toggle === true) { if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) {
self._hideView(); self._hideView();
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo);
self.fireEvent(BI.Combo.EVENT_COLLAPSE); self.fireEvent(BI.Combo.EVENT_COLLAPSE);
@ -121,7 +125,7 @@ BI.Combo = BI.inherit(BI.Widget, {
case "click": case "click":
var debounce = BI.debounce(function (e) { var debounce = BI.debounce(function (e) {
if (self.combo.element.__isMouseInBounds__(e)) { if (self.combo.element.__isMouseInBounds__(e)) {
if (self.isEnabled() && self.combo.isEnabled()) { if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) {
o.toggle ? self._toggle() : self._popupView(); o.toggle ? self._toggle() : self._popupView();
if (self.isViewVisible()) { if (self.isViewVisible()) {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.combo); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.combo);
@ -334,6 +338,7 @@ BI.Combo = BI.inherit(BI.Widget, {
_setEnable: function (arg) { _setEnable: function (arg) {
BI.Combo.superclass._setEnable.apply(this, arguments); BI.Combo.superclass._setEnable.apply(this, arguments);
!arg && this.element.removeClass(this.options.hoverClass);
!arg && this.isViewVisible() && this._hideView(); !arg && this.isViewVisible() && this._hideView();
}, },
@ -370,11 +375,6 @@ BI.Combo = BI.inherit(BI.Widget, {
return this.position; return this.position;
}, },
doBehavior: function () {
this._assertPopupView();
this.popupView && this.popupView.doBehavior.apply(this.popupView, arguments);
},
toggle: function () { toggle: function () {
this._toggle(); this._toggle();
}, },

32
src/base/combination/expander.js

@ -28,20 +28,20 @@ BI.Expander = BI.inherit(BI.Widget, {
this._initExpander(); this._initExpander();
this._initPullDownAction(); this._initPullDownAction();
this.expander.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { this.expander.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
if (type === BI.Events.EXPAND) { if (self.isEnabled() && self.isValid()) {
self._popupView(); if (type === BI.Events.EXPAND) {
} self._popupView();
if (type === BI.Events.COLLAPSE) { }
self._hideView(); if (type === BI.Events.COLLAPSE) {
} self._hideView();
if (self.isEnabled() && this.isEnabled()) { }
if (type === BI.Events.EXPAND) { if (type === BI.Events.EXPAND) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
self.fireEvent(BI.Expander.EVENT_EXPAND); self.fireEvent(BI.Expander.EVENT_EXPAND);
} }
if (type === BI.Events.COLLAPSE) { if (type === BI.Events.COLLAPSE) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
self.fireEvent(BI.Expander.EVENT_COLLAPSE); self.isViewVisible() && self.fireEvent(BI.Expander.EVENT_COLLAPSE);
} }
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
self.fireEvent(BI.Expander.EVENT_TRIGGER_CHANGE, value, obj); self.fireEvent(BI.Expander.EVENT_TRIGGER_CHANGE, value, obj);
@ -50,11 +50,11 @@ BI.Expander = BI.inherit(BI.Widget, {
}); });
this.element.hover(function () { this.element.hover(function () {
if (self.isEnabled() && self.expander.isEnabled()) { if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {
self.element.addClass(o.hoverClass); self.element.addClass(o.hoverClass);
} }
}, function () { }, function () {
if (self.isEnabled() && self.expander.isEnabled()) { if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {
self.element.removeClass(o.hoverClass); self.element.removeClass(o.hoverClass);
} }
}); });
@ -90,13 +90,13 @@ BI.Expander = BI.inherit(BI.Widget, {
switch (e) { switch (e) {
case "hover": case "hover":
self.element[e](function (e) { self.element[e](function (e) {
if (self.isEnabled() && self.expander.isEnabled()) { if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {
self._popupView(); self._popupView();
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, '', self.expander); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, '', self.expander);
self.fireEvent(BI.Expander.EVENT_EXPAND); self.fireEvent(BI.Expander.EVENT_EXPAND);
} }
}, function () { }, function () {
if (self.isEnabled() && self.expander.isEnabled() && o.toggle) { if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid() && o.toggle) {
self._hideView(); self._hideView();
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, '', self.expander); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, '', self.expander);
self.fireEvent(BI.Expander.EVENT_COLLAPSE); self.fireEvent(BI.Expander.EVENT_COLLAPSE);
@ -107,7 +107,7 @@ BI.Expander = BI.inherit(BI.Widget, {
if (e) { if (e) {
self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) { self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) {
if (self.expander.element.__isMouseInBounds__(e)) { if (self.expander.element.__isMouseInBounds__(e)) {
if (self.isEnabled() && self.expander.isEnabled()) { if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) {
o.toggle ? self._toggle() : self._popupView(); o.toggle ? self._toggle() : self._popupView();
if (self.isExpanded()) { if (self.isExpanded()) {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.expander); self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.EXPAND, "", self.expander);
@ -198,6 +198,7 @@ BI.Expander = BI.inherit(BI.Widget, {
_setEnable: function (arg) { _setEnable: function (arg) {
BI.Expander.superclass._setEnable.apply(this, arguments); BI.Expander.superclass._setEnable.apply(this, arguments);
!arg && this.element.removeClass(this.options.hoverClass);
!arg && this.isViewVisible() && this._hideView(); !arg && this.isViewVisible() && this._hideView();
}, },
@ -234,11 +235,6 @@ BI.Expander = BI.inherit(BI.Widget, {
return this.popupView; return this.popupView;
}, },
doBehavior: function () {
//this._assertPopupView();
this.popupView && this.popupView.doBehavior.apply(this.popupView, arguments);
},
getAllLeaves: function () { getAllLeaves: function () {
return this.popupView && this.popupView.getAllLeaves(); return this.popupView && this.popupView.getAllLeaves();
}, },

4
src/base/combination/loader.js

@ -195,10 +195,6 @@ BI.Loader = BI.inherit(BI.Widget, {
this.button_group.populate.apply(this.button_group, arguments); this.button_group.populate.apply(this.button_group, arguments);
}, },
doBehavior: function () {
this.button_group.doBehavior.apply(this.button_group, arguments);
},
setNotSelectedValue: function () { setNotSelectedValue: function () {
this.button_group.setNotSelectedValue.apply(this.button_group, arguments); this.button_group.setNotSelectedValue.apply(this.button_group, arguments);
}, },

14
src/base/combination/switcher.js

@ -28,15 +28,20 @@ BI.Switcher = BI.inherit(BI.Widget, {
this._initSwitcher(); this._initSwitcher();
this._initPullDownAction(); this._initPullDownAction();
this.switcher.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { this.switcher.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
if (self.isEnabled() && this.isEnabled()) { if (self.isEnabled() && self.isValid()) {
if (type === BI.Events.EXPAND) { if (type === BI.Events.EXPAND) {
self._popupView(); self._popupView();
} }
if (type === BI.Events.COLLAPSE) { if (type === BI.Events.COLLAPSE) {
self._hideView(); self._hideView();
} }
if (type === BI.Events.EXPAND || type === BI.Events.COLLAPSE) { if (type === BI.Events.EXPAND) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
self.fireEvent(BI.Switcher.EVENT_EXPAND);
}
if (type === BI.Events.COLLAPSE) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
self.isViewVisible() && self.fireEvent(BI.Switcher.EVENT_COLLAPSE);
} }
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
self.fireEvent(BI.Switcher.EVENT_TRIGGER_CHANGE, value, obj); self.fireEvent(BI.Switcher.EVENT_TRIGGER_CHANGE, value, obj);
@ -234,11 +239,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
this.isViewVisible() && BI.Maskers.show(this.getName()); this.isViewVisible() && BI.Maskers.show(this.getName());
}, },
doBehavior: function () {
this._assertPopupView();
this.popupView && this.popupView.doBehavior.apply(this.popupView, arguments);
},
getAllLeaves: function () { getAllLeaves: function () {
return this.popupView && this.popupView.getAllLeaves(); return this.popupView && this.popupView.getAllLeaves();
}, },

11
src/base/combination/tab.js

@ -93,6 +93,17 @@ BI.Tab = BI.inherit(BI.Widget, {
} }
}, },
removeTab: function (cardname) {
var self = this, o = this.options;
BI.any(this.cardMap, function (name, card) {
if (BI.isEqual(name, (cardname + ""))) {
self.layout.deleteCardByName(name);
delete self.cardMap[name];
return true;
}
});
},
getSelect: function () { getSelect: function () {
return this.curr; return this.curr;
}, },

6
src/base/formula/formulaeditor.js

@ -6,11 +6,12 @@
BI.FormulaEditor = BI.inherit(BI.Single, { BI.FormulaEditor = BI.inherit(BI.Single, {
_defaultConfig: function () { _defaultConfig: function () {
return $.extend(BI.FormulaEditor.superclass._defaultConfig.apply(), { return $.extend(BI.FormulaEditor.superclass._defaultConfig.apply(), {
baseCls: 'bi-formula-editor', baseCls: 'bi-formula-editor bi-card',
watermark: '', watermark: '',
value: '', value: '',
fieldTextValueMap: {}, fieldTextValueMap: {},
showHint: true showHint: true,
lineHeight: 2
}); });
}, },
_init: function () { _init: function () {
@ -22,6 +23,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
lineNumbers: false, lineNumbers: false,
mode: 'formula' mode: 'formula'
}); });
o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height");
this.editor.on("change", function (cm, change) { this.editor.on("change", function (cm, change) {
self._checkWaterMark(); self._checkWaterMark();
if (o.showHint) { if (o.showHint) {

4
src/base/foundation/message.js

@ -12,11 +12,11 @@ $.extend(BI, {
alert: function (title, message, callback) { alert: function (title, message, callback) {
this._show(false, title, message, callback); this._show(false, title, message, callback);
}, },
confirm: function (title, message, callback, min_width) { confirm: function (title, message, callback) {
this._show(true, title, message, callback); this._show(true, title, message, callback);
}, },
prompt: function (title, message, value, callback, min_width) { prompt: function (title, message, value, callback, min_width) {
BI.Msg.prompt(title, message, value, callback, min_width); // BI.Msg.prompt(title, message, value, callback, min_width);
}, },
toast: function (message, level, context) { toast: function (message, level, context) {
context = context || $("body"); context = context || $("body");

6
src/base/grid/grid.js

@ -142,10 +142,10 @@ BI.GridView = BI.inherit(BI.Widget, {
this.renderedCells[index]._height = rowDatum.size; this.renderedCells[index]._height = rowDatum.size;
this.renderedCells[index].el.setHeight(rowDatum.size); this.renderedCells[index].el.setHeight(rowDatum.size);
} }
if (this.renderedCells[index].left !== columnDatum.offset + horizontalOffsetAdjustment) { if (this.renderedCells[index]._left !== columnDatum.offset + horizontalOffsetAdjustment) {
this.renderedCells[index].el.element.css("left", (columnDatum.offset + horizontalOffsetAdjustment) + "px"); this.renderedCells[index].el.element.css("left", (columnDatum.offset + horizontalOffsetAdjustment) + "px");
} }
if (this.renderedCells[index].top !== rowDatum.offset + verticalOffsetAdjustment) { if (this.renderedCells[index]._top !== rowDatum.offset + verticalOffsetAdjustment) {
this.renderedCells[index].el.element.css("top", (rowDatum.offset + verticalOffsetAdjustment) + "px"); this.renderedCells[index].el.element.css("top", (rowDatum.offset + verticalOffsetAdjustment) + "px");
} }
renderedCells.push(child = this.renderedCells[index]); renderedCells.push(child = this.renderedCells[index]);
@ -165,6 +165,8 @@ BI.GridView = BI.inherit(BI.Widget, {
el: child, el: child,
left: columnDatum.offset + horizontalOffsetAdjustment, left: columnDatum.offset + horizontalOffsetAdjustment,
top: rowDatum.offset + verticalOffsetAdjustment, top: rowDatum.offset + verticalOffsetAdjustment,
_left: columnDatum.offset + horizontalOffsetAdjustment,
_top: rowDatum.offset + verticalOffsetAdjustment,
_width: columnDatum.size, _width: columnDatum.size,
_height: rowDatum.size _height: rowDatum.size
}); });

4
src/base/single/button/button.basic.js

@ -127,7 +127,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
$(document).bind("mouseup." + self.getName(), function (e) { $(document).bind("mouseup." + self.getName(), function (e) {
// if (e.button === 0) { // if (e.button === 0) {
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) { if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) {
self.setSelected(!self.isSelected()); // self.setSelected(!self.isSelected());
self._trigger(); self._trigger();
} }
mouseDown = false; mouseDown = false;
@ -274,7 +274,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
setSelected: function (b) { setSelected: function (b) {
var o = this.options; var o = this.options;
o.selected = b; o.selected = b;
if (this.isSelected()) { if (b) {
this.handle().element.addClass("active"); this.handle().element.addClass("active");
} else { } else {
this.handle().element.removeClass("active"); this.handle().element.removeClass("active");

76
src/base/single/editor/editor.code.js

@ -7,9 +7,15 @@
BI.CodeEditor = BI.inherit(BI.Single, { BI.CodeEditor = BI.inherit(BI.Single, {
_defaultConfig: function () { _defaultConfig: function () {
return $.extend(BI.CodeEditor.superclass._defaultConfig.apply(), { return $.extend(BI.CodeEditor.superclass._defaultConfig.apply(), {
baseCls: 'bi-code-editor', baseCls: 'bi-code-editor bi-card',
value: '', value: '',
watermark: "" watermark: "",
lineHeight: 2,
readOnly: false,
//参数显示值构造函数
paramFormatter: function (v) {
return v;
}
}); });
}, },
_init: function () { _init: function () {
@ -18,8 +24,10 @@ BI.CodeEditor = BI.inherit(BI.Single, {
this.editor = CodeMirror(this.element[0], { this.editor = CodeMirror(this.element[0], {
textWrapping: true, textWrapping: true,
lineWrapping: true, lineWrapping: true,
lineNumbers: false lineNumbers: false,
readOnly: o.readOnly
}); });
o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height");
this.editor.on("change", function (cm, change) { this.editor.on("change", function (cm, change) {
BI.nextTick(function () { BI.nextTick(function () {
self.fireEvent(BI.CodeEditor.EVENT_CHANGE) self.fireEvent(BI.CodeEditor.EVENT_CHANGE)
@ -27,12 +35,12 @@ BI.CodeEditor = BI.inherit(BI.Single, {
}); });
this.editor.on("focus", function () { this.editor.on("focus", function () {
watermark.setVisible(false); self.watermark.setVisible(false);
self.fireEvent(BI.CodeEditor.EVENT_FOCUS); self.fireEvent(BI.CodeEditor.EVENT_FOCUS);
}); });
this.editor.on("blur", function () { this.editor.on("blur", function () {
watermark.setVisible(BI.isEmptyString(self.getValue())); self.watermark.setVisible(BI.isEmptyString(self.getValue()));
self.fireEvent(BI.CodeEditor.EVENT_BLUR); self.fireEvent(BI.CodeEditor.EVENT_BLUR);
}); });
@ -41,21 +49,21 @@ BI.CodeEditor = BI.inherit(BI.Single, {
// }); // });
//水印 //水印
var watermark = BI.createWidget({ this.watermark = BI.createWidget({
type: "bi.label", type: "bi.label",
text: o.watermark, text: o.watermark,
cls: "bi-water-mark", cls: "bi-water-mark",
whiteSpace: "nowrap", whiteSpace: "nowrap",
textAlign: "left" textAlign: "left"
}); });
watermark.element.bind( this.watermark.element.bind(
"mousedown", function (e) { "mousedown", function (e) {
self.insertString(""); self.insertString("");
self.editor.focus(); self.editor.focus();
e.stopEvent(); e.stopEvent();
} }
); );
watermark.element.bind("click", function (e) { this.watermark.element.bind("click", function (e) {
self.editor.focus(); self.editor.focus();
e.stopEvent(); e.stopEvent();
}); });
@ -63,7 +71,7 @@ BI.CodeEditor = BI.inherit(BI.Single, {
type: "bi.absolute", type: "bi.absolute",
element: this, element: this,
items: [{ items: [{
el: watermark, el: this.watermark,
top: 0, top: 0,
left: 5 left: 5
}] }]
@ -81,16 +89,32 @@ BI.CodeEditor = BI.inherit(BI.Single, {
this.editor.setOption("readOnly", b === true ? false : "nocursor") this.editor.setOption("readOnly", b === true ? false : "nocursor")
}, },
insertParam: function(param){ _checkWaterMark: function () {
var o = this.options;
if (BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) {
this.watermark && this.watermark.visible();
} else {
this.watermark && this.watermark.invisible();
}
},
insertParam: function (param) {
var value = param;
param = this.options.paramFormatter(param);
var from = this.editor.getCursor(); var from = this.editor.getCursor();
this.editor.replaceSelection(param); this.editor.replaceSelection(param);
var to = this.editor.getCursor(); var to = this.editor.getCursor();
this.editor.markText(from, to, {className: 'param', atomic: true}); var options = {className: 'param', atomic: true};
if (BI.isNotNull(param.match(/^<!.*!>$/))) {
options.className = 'error-param';
}
options.value = value;
this.editor.markText(from, to, options);
this.editor.replaceSelection(" "); this.editor.replaceSelection(" ");
this.editor.focus(); this.editor.focus();
}, },
insertString: function(str){ insertString: function (str) {
this.editor.replaceSelection(str); this.editor.replaceSelection(str);
this.editor.focus(); this.editor.focus();
}, },
@ -102,9 +126,13 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_.forEach(line.markedSpans, function (i, ms) { _.forEach(line.markedSpans, function (i, ms) {
switch (i.marker.className) { switch (i.marker.className) {
case "param": case "param":
case "error-param":
var fieldNameLength = i.to - i.from; var fieldNameLength = i.to - i.from;
value = value.substr(0, i.from + num) + "$\{" + value.substr(i.from + num, fieldNameLength) + "\}" + value.substr(i.to + num, value.length); value = value.substr(0, i.from + num) + "$\{" + i.marker.value + "\}" + value.substr(i.to + num, value.length);
//加上${}的偏移
num += 3; num += 3;
//加上实际值和显示值的长度差的偏移
num += (i.marker.value.length - fieldNameLength);
break; break;
} }
}); });
@ -130,10 +158,28 @@ BI.CodeEditor = BI.inherit(BI.Single, {
} else { } else {
self.insertString(item); self.insertString(item);
} }
}) });
this._checkWaterMark();
},
focus: function () {
this.editor.focus();
},
blur: function () {
this.editor.getInputField().blur();
},
setStyle: function (style) {
this.style = style;
this.element.css(style);
},
getStyle: function () {
return this.style;
}, },
refresh: function(){ refresh: function () {
var self = this; var self = this;
BI.nextTick(function () { BI.nextTick(function () {
self.editor.refresh(); self.editor.refresh();

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

@ -12,7 +12,7 @@ BI.MultifileEditor = BI.inherit(BI.Single, {
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-multifile-editor", baseCls: (conf.baseCls || "") + " bi-multifile-editor",
multiple: false, multiple: false,
maxSize: 1024 * 1024, maxSize: -1,//1024 * 1024
accept: "", accept: "",
url: "" url: ""
}) })

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

@ -7,7 +7,7 @@
BI.TextAreaEditor = BI.inherit(BI.Single, { BI.TextAreaEditor = BI.inherit(BI.Single, {
_defaultConfig: function () { _defaultConfig: function () {
return $.extend(BI.TextAreaEditor.superclass._defaultConfig.apply(), { return $.extend(BI.TextAreaEditor.superclass._defaultConfig.apply(), {
baseCls: 'bi-textarea-editor', baseCls: 'bi-textarea-editor bi-card',
value: '' value: ''
}); });
}, },
@ -19,7 +19,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
tagName: "textarea", tagName: "textarea",
width: "100%", width: "100%",
height: "100%", height: "100%",
cls: "textarea-editor-content display-block bi-card" cls: "bi-textarea textarea-editor-content display-block"
}); });
this.content.element.css({"resize": "none"}); this.content.element.css({"resize": "none"});
BI.createWidget({ BI.createWidget({

9
src/base/single/iframe/iframe.js

@ -30,6 +30,15 @@ BI.Iframe = BI.inherit(BI.Single, {
return this.options.src; return this.options.src;
}, },
setName: function (name) {
this.options.name = name;
this.element.attr("name", name);
},
getName: function () {
return this.options.name;
},
getWidth: function () { getWidth: function () {
return this.options.width return this.options.width
}, },

4
src/base/single/input/file.js

@ -399,7 +399,7 @@
url: "", url: "",
multiple: true, multiple: true,
accept: "", /**'*.jpg; *.zip'**/ accept: "", /**'*.jpg; *.zip'**/
maxSize: 1024 * 1024 maxSize: -1 //1024 * 1024
}) })
}, },
@ -475,7 +475,7 @@
}, 1000); }, 1000);
}; };
_wrap.url = o.url ? o.url : BI.servletURL _wrap.url = o.url ? o.url : BI.servletURL
+ '?op=fr_attach&cmd=ah_upload'; + '?op=fr_attach&cmd=ah_upload';
_wrap.fileType = o.accept; //文件类型限制 _wrap.fileType = o.accept; //文件类型限制
_wrap.attach_array = []; _wrap.attach_array = [];
_wrap.attach_names = []; _wrap.attach_names = [];

4
src/base/single/label/label.js

@ -147,7 +147,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
if (o.whiteSpace == "normal") { if (o.whiteSpace == "normal") {
this.text = BI.createWidget(json); this.text = BI.createWidget(json);
this.text = BI.createWidget({ BI.createWidget({
type: "bi.center_adapt", type: "bi.center_adapt",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -345,7 +345,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
if (o.whiteSpace == "normal") { if (o.whiteSpace == "normal") {
this.text = BI.createWidget(json) this.text = BI.createWidget(json)
this.text = BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: "bi.vertical_adapt",
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,

4
src/base/table/native.scrollbar.js

@ -22,7 +22,7 @@ BI.NativeTableScrollbar = BI.inherit(BI.Widget, {
render: function () { render: function () {
var self = this, o = this.options; var self = this, o = this.options;
//把滚动台size改掉 //把滚动台size改掉
BI.GridTableScrollbar.SIZE = 16; this.element.width(36);
var throttle = BI.throttle(function () { var throttle = BI.throttle(function () {
self.fireEvent(BI.NativeTableScrollbar.EVENT_SCROLL, self.element.scrollTop()); self.fireEvent(BI.NativeTableScrollbar.EVENT_SCROLL, self.element.scrollTop());
@ -98,7 +98,7 @@ BI.NativeTableHorizontalScrollbar = BI.inherit(BI.Widget, {
render: function () { render: function () {
var self = this, o = this.options; var self = this, o = this.options;
//把滚动台size改掉 //把滚动台size改掉
BI.GridTableScrollbar.SIZE = 16; this.element.height(36);
var throttle = BI.throttle(function () { var throttle = BI.throttle(function () {
self.fireEvent(BI.NativeTableScrollbar.EVENT_SCROLL, self.element.scrollLeft()); self.fireEvent(BI.NativeTableScrollbar.EVENT_SCROLL, self.element.scrollLeft());

66
src/base/table/table.collection.js

@ -173,11 +173,26 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
return this.options.isNeedFreeze ? this.options.freezeCols.length : 0; return this.options.isNeedFreeze ? this.options.freezeCols.length : 0;
}, },
_getFreezeHeaderHeight: function () {
var o = this.options;
if (o.header.length * o.headerRowSize >= this._height) {
return 0;
}
return o.header.length * o.headerRowSize;
},
_getActualItems: function () {
var o = this.options;
if (o.header.length * o.headerRowSize >= this._height) {
return o.header.concat(o.items);
}
return o.items;
},
_populateScrollbar: function () { _populateScrollbar: function () {
var o = this.options; var o = this.options;
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0,
summaryColumnSizeArray = [], totalRowSize = o.items.length * o.rowSize; summaryColumnSizeArray = [];
var freezeColLength = this._getFreezeColLength();
BI.each(o.columnSize, function (i, size) { BI.each(o.columnSize, function (i, size) {
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { if (o.isNeedFreeze === true && o.freezeCols.contains(i)) {
totalLeftColumnSize += size; totalLeftColumnSize += size;
@ -191,8 +206,8 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
summaryColumnSizeArray[i] = summaryColumnSizeArray[i - 1] + size; summaryColumnSizeArray[i] = summaryColumnSizeArray[i - 1] + size;
} }
}); });
this.topScrollbar.setContentSize(o.items.length * o.rowSize); this.topScrollbar.setContentSize(this._getActualItems().length * o.rowSize);
this.topScrollbar.setSize(this._height - o.header.length * o.headerRowSize); this.topScrollbar.setSize(this._height - this._getFreezeHeaderHeight());
this.topScrollbar.setPosition(this.bottomRightCollection.getScrollTop()); this.topScrollbar.setPosition(this.bottomRightCollection.getScrollTop());
this.topScrollbar.populate(); this.topScrollbar.populate();
@ -207,7 +222,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
this.rightScrollbar.populate(); this.rightScrollbar.populate();
var items = this.scrollBarLayout.attr("items"); var items = this.scrollBarLayout.attr("items");
items[0].top = o.header.length * o.headerRowSize; items[0].top = this._getFreezeHeaderHeight();
items[1].top = this._height; items[1].top = this._height;
items[2].top = this._height; items[2].top = this._height;
items[2].left = regionSize; items[2].left = regionSize;
@ -218,8 +233,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
_populateTable: function () { _populateTable: function () {
var self = this, o = this.options; var self = this, o = this.options;
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0,
summaryColumnSizeArray = [], totalRowSize = o.items.length * o.rowSize; summaryColumnSizeArray = [];
var freezeColLength = this._getFreezeColLength();
BI.each(o.columnSize, function (i, size) { BI.each(o.columnSize, function (i, size) {
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { if (o.isNeedFreeze === true && o.freezeCols.contains(i)) {
totalLeftColumnSize += size; totalLeftColumnSize += size;
@ -235,13 +249,13 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
}); });
var otlw = regionSize; var otlw = regionSize;
var otlh = o.header.length * o.headerRowSize; var otlh = this._getFreezeHeaderHeight();
var otrw = this._width - regionSize; var otrw = this._width - regionSize;
var otrh = o.header.length * o.headerRowSize; var otrh = this._getFreezeHeaderHeight();
var oblw = regionSize; var oblw = regionSize;
var oblh = this._height - o.header.length * o.headerRowSize; var oblh = this._height - otlh;
var obrw = this._width - regionSize; var obrw = this._width - regionSize;
var obrh = this._height - o.header.length * o.headerRowSize; var obrh = this._height - otrh;
var tlw = otlw + this._scrollBarSize; var tlw = otlw + this._scrollBarSize;
var tlh = otlh + this._scrollBarSize; var tlh = otlh + this._scrollBarSize;
@ -285,9 +299,9 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
var items = this.contextLayout.attr("items"); var items = this.contextLayout.attr("items");
items[1].left = regionSize; items[1].left = regionSize;
items[2].top = o.header.length * o.headerRowSize; items[2].top = this._getFreezeHeaderHeight();
items[3].left = regionSize; items[3].left = regionSize;
items[3].top = o.header.length * o.headerRowSize; items[3].top = this._getFreezeHeaderHeight();
this.contextLayout.attr("items", items); this.contextLayout.attr("items", items);
this.contextLayout.resize(); this.contextLayout.resize();
@ -303,8 +317,8 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
}; };
run(this.topLeftItems, o.header, leftHeader); run(this.topLeftItems, o.header, leftHeader);
run(this.topRightItems, o.header, rightHeader); run(this.topRightItems, o.header, rightHeader);
run(this.bottomLeftItems, o.items, leftItems); run(this.bottomLeftItems, this._getActualItems(), leftItems);
run(this.bottomRightItems, o.items, rightItems); run(this.bottomRightItems, this._getActualItems(), rightItems);
this.topLeftCollection._populate(leftHeader); this.topLeftCollection._populate(leftHeader);
this.topRightCollection._populate(rightHeader); this.topRightCollection._populate(rightHeader);
@ -315,13 +329,23 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
_digest: function () { _digest: function () {
var o = this.options; var o = this.options;
var freezeColLength = this._getFreezeColLength(); var freezeColLength = this._getFreezeColLength();
this.topLeftItems = this._serialize(o.header, 0, freezeColLength, o.headerRowSize, o.columnSize, o.mergeCols); //如果表头位置不够,取消表头冻结
this.topRightItems = this._serialize(o.header, freezeColLength, o.columnSize.length, o.headerRowSize, o.columnSize, true); if (this._getFreezeHeaderHeight() <= 0) {
this.bottomLeftItems = this._serialize(o.items, 0, freezeColLength, o.rowSize, o.columnSize, o.mergeCols); this.topLeftItems = [];
this.bottomRightItems = this._serialize(o.items, freezeColLength, o.columnSize.length, o.rowSize, o.columnSize, o.mergeCols); this.topRightItems = [];
this.bottomLeftItems = this._serialize(this._getActualItems(), 0, freezeColLength, o.rowSize, o.columnSize, o.mergeCols, BI.range(o.header.length));
this.bottomRightItems = this._serialize(this._getActualItems(), freezeColLength, o.columnSize.length, o.rowSize, o.columnSize, o.mergeCols, BI.range(o.header.length));
} else {
this.topLeftItems = this._serialize(o.header, 0, freezeColLength, o.headerRowSize, o.columnSize, o.mergeCols);
this.topRightItems = this._serialize(o.header, freezeColLength, o.columnSize.length, o.headerRowSize, o.columnSize, true);
this.bottomLeftItems = this._serialize(o.items, 0, freezeColLength, o.rowSize, o.columnSize, o.mergeCols);
this.bottomRightItems = this._serialize(o.items, freezeColLength, o.columnSize.length, o.rowSize, o.columnSize, o.mergeCols);
}
}, },
_serialize: function (items, startCol, endCol, rowHeight, columnSize, mergeCols) { _serialize: function (items, startCol, endCol, rowHeight, columnSize, mergeCols, mergeRows) {
mergeCols = mergeCols || [];
mergeRows = mergeRows || [];
var self = this, o = this.options; var self = this, o = this.options;
var result = [], cache = {}, preCol = {}, preRow = {}, map = {}; var result = [], cache = {}, preCol = {}, preRow = {}, map = {};
var summaryColumnSize = []; var summaryColumnSize = [];
@ -371,7 +395,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
} }
cache[i][j] = cols[j]; cache[i][j] = cols[j];
map[i][j] = {}; map[i][j] = {};
if (mergeCols === true || mergeCols.indexOf(j) > -1) { if (mergeCols === true || mergeCols.indexOf(j) > -1 || mergeRows === true || mergeRows.indexOf(i) > -1) {
if (i === 0 && j === startCol) { if (i === 0 && j === startCol) {
createOneEl(0, startCol); createOneEl(0, startCol);
} else if (j === startCol && i > 0) { } else if (j === startCol && i > 0) {

19
src/base/table/table.collection.quick.js

@ -117,8 +117,7 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
_populateTable: function () { _populateTable: function () {
var self = this, o = this.options; var self = this, o = this.options;
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0,
summaryColumnSizeArray = [], totalRowSize = o.items.length * o.rowSize; summaryColumnSizeArray = []
var freezeColLength = this._getFreezeColLength();
BI.each(o.columnSize, function (i, size) { BI.each(o.columnSize, function (i, size) {
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { if (o.isNeedFreeze === true && o.freezeCols.contains(i)) {
totalLeftColumnSize += size; totalLeftColumnSize += size;
@ -134,13 +133,13 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
}); });
var otlw = regionSize; var otlw = regionSize;
var otlh = o.header.length * o.headerRowSize; var otlh = this._getFreezeHeaderHeight();
var otrw = this._width - regionSize; var otrw = this._width - regionSize;
var otrh = o.header.length * o.headerRowSize; var otrh = this._getFreezeHeaderHeight();
var oblw = regionSize; var oblw = regionSize;
var oblh = this._height - o.header.length * o.headerRowSize; var oblh = this._height - otlh;
var obrw = this._width - regionSize; var obrw = this._width - regionSize;
var obrh = this._height - o.header.length * o.headerRowSize; var obrh = this._height - otrh;
this.topLeft.setWidth(otlw); this.topLeft.setWidth(otlw);
this.topLeft.setHeight(otlh); this.topLeft.setHeight(otlh);
@ -162,9 +161,9 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
var items = this.contextLayout.attr("items"); var items = this.contextLayout.attr("items");
items[1].left = regionSize; items[1].left = regionSize;
items[2].top = o.header.length * o.headerRowSize; items[2].top = this._getFreezeHeaderHeight();
items[3].left = regionSize; items[3].left = regionSize;
items[3].top = o.header.length * o.headerRowSize; items[3].top = this._getFreezeHeaderHeight();
this.contextLayout.attr("items", items); this.contextLayout.attr("items", items);
this.contextLayout.resize(); this.contextLayout.resize();
@ -180,8 +179,8 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
}; };
run(this.topLeftItems, o.header, leftHeader); run(this.topLeftItems, o.header, leftHeader);
run(this.topRightItems, o.header, rightHeader); run(this.topRightItems, o.header, rightHeader);
run(this.bottomLeftItems, o.items, leftItems); run(this.bottomLeftItems, this._getActualItems(), leftItems);
run(this.bottomRightItems, o.items, rightItems); run(this.bottomRightItems, this._getActualItems(), rightItems);
this.topLeftCollection.populate(leftHeader); this.topLeftCollection.populate(leftHeader);
this.topRightCollection.populate(rightHeader); this.topRightCollection.populate(rightHeader);

41
src/base/table/table.grid.js

@ -176,11 +176,26 @@ BI.GridTable = BI.inherit(BI.Widget, {
return this.options.isNeedFreeze ? this.options.freezeCols.length : 0; return this.options.isNeedFreeze ? this.options.freezeCols.length : 0;
}, },
_getFreezeHeaderHeight: function () {
var o = this.options;
if (o.header.length * o.headerRowSize >= this._height) {
return 0;
}
return o.header.length * o.headerRowSize;
},
_getActualItems: function () {
var o = this.options;
if (o.header.length * o.headerRowSize >= this._height) {
return o.header.concat(o.items);
}
return o.items;
},
_populateScrollbar: function () { _populateScrollbar: function () {
var o = this.options; var o = this.options;
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0,
summaryColumnSizeArray = [], totalRowSize = o.items.length * o.rowSize; summaryColumnSizeArray = [];
var freezeColLength = this._getFreezeColLength();
BI.each(o.columnSize, function (i, size) { BI.each(o.columnSize, function (i, size) {
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { if (o.isNeedFreeze === true && o.freezeCols.contains(i)) {
totalLeftColumnSize += size; totalLeftColumnSize += size;
@ -194,8 +209,8 @@ BI.GridTable = BI.inherit(BI.Widget, {
summaryColumnSizeArray[i] = summaryColumnSizeArray[i - 1] + size; summaryColumnSizeArray[i] = summaryColumnSizeArray[i - 1] + size;
} }
}); });
this.topScrollbar.setContentSize(o.items.length * o.rowSize); this.topScrollbar.setContentSize(this._getActualItems().length * o.rowSize);
this.topScrollbar.setSize(this._height - o.header.length * o.headerRowSize); this.topScrollbar.setSize(this._height - this._getFreezeHeaderHeight());
this.topScrollbar.setPosition(Math.min(this.bottomLeftGrid.getScrollTop(), this.bottomRightGrid.getScrollTop())); this.topScrollbar.setPosition(Math.min(this.bottomLeftGrid.getScrollTop(), this.bottomRightGrid.getScrollTop()));
this.topScrollbar.populate(); this.topScrollbar.populate();
@ -210,7 +225,7 @@ BI.GridTable = BI.inherit(BI.Widget, {
this.rightScrollbar.populate(); this.rightScrollbar.populate();
var items = this.scrollBarLayout.attr("items"); var items = this.scrollBarLayout.attr("items");
items[0].top = o.header.length * o.headerRowSize; items[0].top = this._getFreezeHeaderHeight();
items[1].top = this._height; items[1].top = this._height;
items[2].top = this._height; items[2].top = this._height;
items[2].left = regionSize; items[2].left = regionSize;
@ -244,7 +259,7 @@ BI.GridTable = BI.inherit(BI.Widget, {
var o = this.options; var o = this.options;
var freezeColLength = this._getFreezeColLength(); var freezeColLength = this._getFreezeColLength();
var leftItems = [], rightItems = []; var leftItems = [], rightItems = [];
BI.each(o.items, function (i, cols) { BI.each(this._getActualItems(), function (i, cols) {
leftItems[i] = []; leftItems[i] = [];
rightItems[i] = []; rightItems[i] = [];
BI.each(cols, function (j, col) { BI.each(cols, function (j, col) {
@ -265,7 +280,7 @@ BI.GridTable = BI.inherit(BI.Widget, {
_populateTable: function () { _populateTable: function () {
var self = this, o = this.options; var self = this, o = this.options;
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0,
summaryColumnSizeArray = [], totalRowSize = o.items.length * o.rowSize; summaryColumnSizeArray = [];
var freezeColLength = this._getFreezeColLength(); var freezeColLength = this._getFreezeColLength();
BI.each(o.columnSize, function (i, size) { BI.each(o.columnSize, function (i, size) {
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { if (o.isNeedFreeze === true && o.freezeCols.contains(i)) {
@ -282,13 +297,13 @@ BI.GridTable = BI.inherit(BI.Widget, {
}); });
var otlw = regionSize; var otlw = regionSize;
var otlh = o.header.length * o.headerRowSize; var otlh = this._getFreezeHeaderHeight();
var otrw = this._width - regionSize; var otrw = this._width - regionSize;
var otrh = o.header.length * o.headerRowSize; var otrh = this._getFreezeHeaderHeight();
var oblw = regionSize; var oblw = regionSize;
var oblh = this._height - o.header.length * o.headerRowSize; var oblh = this._height - otlh;
var obrw = this._width - regionSize; var obrw = this._width - regionSize;
var obrh = this._height - o.header.length * o.headerRowSize; var obrh = this._height - otrh;
var tlw = otlw + this._scrollBarSize; var tlw = otlw + this._scrollBarSize;
var tlh = otlh + this._scrollBarSize; var tlh = otlh + this._scrollBarSize;
@ -341,9 +356,9 @@ BI.GridTable = BI.inherit(BI.Widget, {
var items = this.contextLayout.attr("items"); var items = this.contextLayout.attr("items");
items[1].left = regionSize; items[1].left = regionSize;
items[2].top = o.header.length * o.headerRowSize; items[2].top = this._getFreezeHeaderHeight();
items[3].left = regionSize; items[3].left = regionSize;
items[3].top = o.header.length * o.headerRowSize; items[3].top = this._getFreezeHeaderHeight();
this.contextLayout.attr("items", items); this.contextLayout.attr("items", items);
this.contextLayout.resize(); this.contextLayout.resize();

16
src/base/table/table.grid.quick.js

@ -116,7 +116,7 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
_populateTable: function () { _populateTable: function () {
var self = this, o = this.options; var self = this, o = this.options;
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, summaryColumnSizeArray = [], totalRowSize = o.items.length * o.rowSize; var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, summaryColumnSizeArray = [];
var freezeColLength = this._getFreezeColLength(); var freezeColLength = this._getFreezeColLength();
BI.each(o.columnSize, function (i, size) { BI.each(o.columnSize, function (i, size) {
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { if (o.isNeedFreeze === true && o.freezeCols.contains(i)) {
@ -133,13 +133,13 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
}); });
var otlw = regionSize; var otlw = regionSize;
var otlh = o.header.length * o.headerRowSize; var otlh = this._getFreezeHeaderHeight();
var otrw = this._width - regionSize; var otrw = this._width - regionSize;
var otrh = o.header.length * o.headerRowSize; var otrh = this._getFreezeHeaderHeight();
var oblw = regionSize; var oblw = regionSize;
var oblh = this._height - o.header.length * o.headerRowSize; var oblh = this._height - otlh;
var obrw = this._width - regionSize; var obrw = this._width - regionSize;
var obrh = this._height - o.header.length * o.headerRowSize; var obrh = this._height - otrh;
this.topLeft.setWidth(otlw); this.topLeft.setWidth(otlw);
this.topLeft.setHeight(otlh); this.topLeft.setHeight(otlh);
@ -170,9 +170,9 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
var items = this.contextLayout.attr("items"); var items = this.contextLayout.attr("items");
items[1].left = regionSize; items[1].left = regionSize;
items[2].top = o.header.length * o.headerRowSize; items[2].top = this._getFreezeHeaderHeight();
items[3].left = regionSize; items[3].left = regionSize;
items[3].top = o.header.length * o.headerRowSize; items[3].top = this._getFreezeHeaderHeight();
this.contextLayout.attr("items", items); this.contextLayout.attr("items", items);
this.contextLayout.resize(); this.contextLayout.resize();
@ -192,7 +192,7 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
} }
}); });
}); });
BI.each(o.items, function (i, cols) { BI.each(this._getActualItems(), function (i, cols) {
leftItems[i] = []; leftItems[i] = [];
rightItems[i] = []; rightItems[i] = [];
BI.each(cols, function (j, col) { BI.each(cols, function (j, col) {

209
src/base/table/table.resizable.cell.js

@ -1,96 +1,115 @@
/** /**
* *
* 表格单元格 * 表格单元格
* *
* Created by GUY on 2016/1/12. * Created by GUY on 2016/1/12.
* @class BI.ResizableTableCell * @class BI.ResizableTableCell
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.ResizableTableCell = BI.inherit(BI.Widget, { BI.ResizableTableCell = BI.inherit(BI.Widget, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.ResizableTableCell.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.ResizableTableCell.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-resizable-table-cell", baseCls: "bi-resizable-table-cell",
cell: {}, cell: {},
start: BI.emptyFn, minSize: 15,
resize: BI.emptyFn, // suitableSize,
stop: BI.emptyFn maxSize: Number.MAX_VALUE,
}) start: BI.emptyFn,
}, resize: BI.emptyFn,
stop: BI.emptyFn
_init: function () { })
BI.ResizableTableCell.superclass._init.apply(this, arguments); },
var self = this, o = this.options;
this.cell = BI.createWidget(BI.extend({type: "bi.label"}, o.cell, {width: o.width, height: o.height})); _init: function () {
BI.ResizableTableCell.superclass._init.apply(this, arguments);
var startDrag = false; var self = this, o = this.options;
var size = 0, offset = 0, defaultSize = o.width; this.cell = BI.createWidget(BI.extend({type: "bi.label"}, o.cell, {width: o.width, height: o.height}));
var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX, deltaY) {
if (mouseMoveTracker.isDragging()) { var startDrag = false;
startDrag = true; var size = 0, offset = 0, defaultSize = o.width;
offset += deltaX;
size = BI.clamp(defaultSize + offset, 15, Number.MAX_VALUE); function optimizeSize(s) {
self.handler.element.addClass("dragging"); var optSize = BI.clamp(s, o.minSize, o.maxSize || Number.MAX_VALUE);
o.resize(size); // if (o.suitableSize) {
} // if (Math.abs(o.suitableSize - optSize) < 5) {
}, function () { // optSize = o.suitableSize;
if (startDrag === true) { // self.handler.element.addClass("suitable");
size = BI.clamp(size, 15, Number.MAX_VALUE); // } else {
o.stop(size); // self.handler.element.removeClass("suitable");
size = 0; // }
offset = 0; // }
defaultSize = o.width; return optSize;
self.handler.element.removeClass("dragging"); }
startDrag = false;
} var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX, deltaY) {
mouseMoveTracker.releaseMouseMoves(); if (mouseMoveTracker.isDragging()) {
}, document); startDrag = true;
this.handler = BI.createWidget({ offset += deltaX;
type: "bi.absolute", size = optimizeSize(defaultSize + offset);
cls: "resizable-table-cell-resizer-container", self.handler.element.addClass("dragging");
width: 6, o.resize(size);
items: [{ }
el: { }, function () {
type: "bi.layout", if (startDrag === true) {
cls: "resizable-table-cell-resizer-knob", size = optimizeSize(size);
width: 4 o.stop(size);
}, size = 0;
right: 0, offset = 0;
top: 0, defaultSize = o.width;
bottom: 0 startDrag = false;
}] }
}); self.handler.element.removeClass("dragging");
this.handler.element.on("mousedown", function (event) { self.handler.element.removeClass("suitable");
defaultSize = o.width; mouseMoveTracker.releaseMouseMoves();
mouseMoveTracker.captureMouseMoves(event); }, document);
}); this.handler = BI.createWidget({
BI.createWidget({ type: "bi.absolute",
type: "bi.absolute", cls: "resizable-table-cell-resizer-container",
element: this, width: 6,
items: [{ items: [{
el: this.cell, el: {
left: 0, type: "bi.layout",
right: 0, cls: "resizable-table-cell-resizer-knob",
top: 0, width: 4
bottom: 0 },
}, { right: 0,
el: this.handler, top: 0,
right: 0, bottom: 0
top: 0, }]
bottom: 0 });
}] this.handler.element.on("mousedown", function (event) {
}) defaultSize = o.width;
}, optimizeSize(defaultSize);
mouseMoveTracker.captureMouseMoves(event);
setWidth: function (width) { });
BI.ResizableTableCell.superclass.setWidth.apply(this, arguments); BI.createWidget({
var o = this.options; type: "bi.absolute",
this.cell.setWidth(o.width); element: this,
}, items: [{
el: this.cell,
setHeight: function (height) { left: 0,
BI.ResizableTableCell.superclass.setHeight.apply(this, arguments); right: 0,
var o = this.options; top: 0,
this.cell.setHeight(o.height); bottom: 0
} }, {
}); el: this.handler,
right: 0,
top: 0,
bottom: 0
}]
})
},
setWidth: function (width) {
BI.ResizableTableCell.superclass.setWidth.apply(this, arguments);
var o = this.options;
this.cell.setWidth(o.width);
},
setHeight: function (height) {
BI.ResizableTableCell.superclass.setHeight.apply(this, arguments);
var o = this.options;
this.cell.setHeight(o.height);
}
});
BI.shortcut("bi.resizable_table_cell", BI.ResizableTableCell); BI.shortcut("bi.resizable_table_cell", BI.ResizableTableCell);

15
src/base/table/table.resizable.js

@ -22,6 +22,8 @@ BI.ResizableTable = BI.inherit(BI.Widget, {
mergeCols: [], mergeCols: [],
mergeRule: BI.emptyFn, mergeRule: BI.emptyFn,
columnSize: [], columnSize: [],
minColumnSize: [],
maxColumnSize: [],
freezeCols: [], freezeCols: [],
header: [], header: [],
items: [], items: [],
@ -214,7 +216,14 @@ BI.ResizableTable = BI.inherit(BI.Widget, {
self.resizer.setVisible(true); self.resizer.setVisible(true);
var height = o.headerRowSize + self._getRegionRowSize()[1]; var height = o.headerRowSize + self._getRegionRowSize()[1];
self.resizer.setHeight(height); self.resizer.setHeight(height);
//TODO 不知道为什么加入这段代码会使得列宽调整出问题
// if (o.minColumnSize[j]) {
// if (size === o.minColumnSize[j]) {
// self.resizer.element.addClass("suitable");
// } else {
// self.resizer.element.removeClass("suitable");
// }
// }
self._setResizerPosition(self._getResizerLeft(j) + size, (o.header.length - 1) * o.headerRowSize); self._setResizerPosition(self._getResizerLeft(j) + size, (o.header.length - 1) * o.headerRowSize);
}; };
var stop = function (j, size) { var stop = function (j, size) {
@ -237,6 +246,8 @@ BI.ResizableTable = BI.inherit(BI.Widget, {
result[i][j] = { result[i][j] = {
type: "bi.resizable_table_cell", type: "bi.resizable_table_cell",
cell: col, cell: col,
suitableSize: o.minColumnSize[j],
maxSize: o.maxColumnSize[j],
resize: BI.bind(resize, null, j), resize: BI.bind(resize, null, j),
stop: BI.bind(stop, null, j) stop: BI.bind(stop, null, j)
}; };
@ -246,6 +257,8 @@ BI.ResizableTable = BI.inherit(BI.Widget, {
result[r - 1][j] = { result[r - 1][j] = {
type: "bi.resizable_table_cell", type: "bi.resizable_table_cell",
cell: result[r - 1][j], cell: result[r - 1][j],
suitableSize: o.minColumnSize[j],
maxSize: o.maxColumnSize[j],
resize: BI.bind(resize, null, j), resize: BI.bind(resize, null, j),
stop: BI.bind(stop, null, j) stop: BI.bind(stop, null, j)
}; };

22
src/base/tree/asynctree.js

@ -105,7 +105,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
if (treeNode.checked === true) { if (treeNode.checked === true) {
} else { } else {
var tNode = treeNode; var tNode = treeNode;
var pNode = this._getTree(this.selectedValues, parentValues); var pNode = this._getTree(this.options.paras.selectedValues, parentValues);
if (BI.isNotNull(pNode[name])) { if (BI.isNotNull(pNode[name])) {
delete pNode[name]; delete pNode[name];
} }
@ -113,7 +113,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
parentValues = parentValues.slice(0, parentValues.length - 1); parentValues = parentValues.slice(0, parentValues.length - 1);
tNode = tNode.getParentNode(); tNode = tNode.getParentNode();
if (tNode != null) { if (tNode != null) {
pNode = this._getTree(this.selectedValues, parentValues); pNode = this._getTree(this.options.paras.selectedValues, parentValues);
name = this._getNodeValue(tNode); name = this._getNodeValue(tNode);
delete pNode[name]; delete pNode[name];
} }
@ -127,10 +127,10 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
var self = this, o = this.options; var self = this, o = this.options;
var parentValues = treeNode.parentValues || self._getParentValues(treeNode); var parentValues = treeNode.parentValues || self._getParentValues(treeNode);
var op = BI.extend({}, o.paras, { var op = BI.extend({}, o.paras, {
"id": treeNode.id, id: treeNode.id,
"times": 1, times: 1,
"parentValues": parentValues.concat(this._getNodeValue(treeNode)), parentValues: parentValues.concat(this._getNodeValue(treeNode)),
"checkState": treeNode.getCheckStatus() checkState: treeNode.getCheckStatus()
}); });
var complete = function (d) { var complete = function (d) {
var nodes = d.items || []; var nodes = d.items || [];
@ -178,7 +178,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
}, },
hasChecked: function () { hasChecked: function () {
return !BI.isEmpty(this.selectedValues) || BI.AsyncTree.superclass.hasChecked.apply(this, arguments); return !BI.isEmpty(this.options.paras.selectedValues) || BI.AsyncTree.superclass.hasChecked.apply(this, arguments);
}, },
getValue: function () { getValue: function () {
@ -187,20 +187,18 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
} }
var checkedValues = this._getSelectedValues(); var checkedValues = this._getSelectedValues();
if (BI.isEmpty(checkedValues)) { if (BI.isEmpty(checkedValues)) {
return BI.deepClone(this.selectedValues); return BI.deepClone(this.options.paras.selectedValues);
} }
if (BI.isEmpty(this.selectedValues)) { if (BI.isEmpty(this.options.paras.selectedValues)) {
return checkedValues; return checkedValues;
} }
return this._join(checkedValues, this.selectedValues); return this._join(checkedValues, this.options.paras.selectedValues);
}, },
//生成树方法 //生成树方法
stroke: function (config) { stroke: function (config) {
delete this.options.keyword; delete this.options.keyword;
BI.extend(this.options.paras, config); BI.extend(this.options.paras, config);
//取消选中时使用
this.selectedValues = BI.deepClone(this.options.paras.selectedValues) || {};
var setting = this._configSetting(); var setting = this._configSetting();
this._initTree(setting); this._initTree(setting);
} }

4
src/base/tree/customtree.js

@ -113,10 +113,6 @@ BI.CustomTree = BI.inherit(BI.Widget, {
this.tree.populate.apply(this.tree, args); this.tree.populate.apply(this.tree, args);
}, },
doBehavior: function () {
this.tree.doBehavior.apply(this.tree, arguments);
},
setValue: function (v) { setValue: function (v) {
this.tree && this.tree.setValue(v); this.tree && this.tree.setValue(v);
}, },

8
src/base/tree/parttree.js

@ -45,7 +45,7 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments); BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments);
} else { } else {
//如果选中的值中不存在该值不处理 //如果选中的值中不存在该值不处理
var t = this.selectedValues; var t = this.options.paras.selectedValues;
var p = parentValues.concat(name); var p = parentValues.concat(name);
for (var i = 0, len = p.length; i < len; i++) { for (var i = 0, len = p.length; i < len; i++) {
t = t[p[i]]; t = t[p[i]];
@ -58,11 +58,10 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
} }
o.itemsCreator(BI.extend({}, o.paras, { o.itemsCreator(BI.extend({}, o.paras, {
type: BI.TreeView.REQ_TYPE_SELECT_DATA, type: BI.TreeView.REQ_TYPE_SELECT_DATA,
selectedValues: this.selectedValues,
notSelectedValue: name, notSelectedValue: name,
parentValues: parentValues parentValues: parentValues
}), function (new_values) { }), function (new_values) {
self.selectedValues = new_values; self.options.paras.selectedValues = new_values;
BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments); BI.AsyncTree.superclass._selectTreeNode.apply(self, arguments);
}); });
} }
@ -159,9 +158,6 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
delete o.paras.keyword; delete o.paras.keyword;
BI.extend(o.paras, config); BI.extend(o.paras, config);
delete o.paras.lastSearchValue; delete o.paras.lastSearchValue;
//取消选中时使用
this.selectedValues = BI.deepClone(o.paras.selectedValues) || {};
//delete this.options.paras.selectedValues;
var setting = this._configSetting(); var setting = this._configSetting();
this._initTree(setting, o.paras.keyword); this._initTree(setting, o.paras.keyword);
} }

17
src/base/tree/treeview.js

@ -216,7 +216,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
_getNodeValue: function (node) { _getNodeValue: function (node) {
//去除标红 //去除标红
return node.value == null ? node.text.replace(/<[^>]+>/g, "") : node.value; return node.value == null ? node.text.replace(/<[^>]+>/g, "").replaceAll(" ", " ") : node.value;
}, },
//获取半选框值 //获取半选框值
@ -241,7 +241,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
this._buildTree(map, path); this._buildTree(map, path);
return; return;
} }
var storeValues = BI.deepClone(this.selectedValues); var storeValues = BI.deepClone(this.options.paras.selectedValues);
var treeNode = this._getTree(storeValues, path); var treeNode = this._getTree(storeValues, path);
this._addTreeNode(map, parent, this._getNodeValue(node), treeNode); this._addTreeNode(map, parent, this._getNodeValue(node), treeNode);
}, },
@ -436,6 +436,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
checkAll: function (checked) { checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked); this.nodes && this.nodes.checkAllNodes(checked);
}, },
@ -451,8 +461,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
setSelectedValue: function (value) { setSelectedValue: function (value) {
this.options.paras.selectedValues = value || {}; this.options.paras.selectedValues = BI.deepClone(value || {});
this.selectedValues = BI.deepClone(value) || {};
}, },
updateValue: function (values, param) { updateValue: function (values, param) {

1
src/case/button/treeitem/item.multilayer.icon.treeleaf.js

@ -18,6 +18,7 @@ BI.MultiLayerIconTreeLeafItem = BI.inherit(BI.BasicButton, {
var self = this, o = this.options; var self = this, o = this.options;
this.item = BI.createWidget({ this.item = BI.createWidget({
type: "bi.icon_tree_leaf_item", type: "bi.icon_tree_leaf_item",
cls: "bi-list-item-none",
iconCls: o.iconCls, iconCls: o.iconCls,
id: o.id, id: o.id,
pId: o.pId, pId: o.pId,

2
src/case/calendar/calendar.year.js

@ -9,6 +9,7 @@ BI.YearCalendar = BI.inherit(BI.Widget, {
var conf = BI.YearCalendar.superclass._defaultConfig.apply(this, arguments); var conf = BI.YearCalendar.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: "bi-year-calendar", baseCls: "bi-year-calendar",
behaviors: {},
logic: { logic: {
dynamic: false dynamic: false
}, },
@ -73,6 +74,7 @@ BI.YearCalendar = BI.inherit(BI.Widget, {
this.years = BI.createWidget({ this.years = BI.createWidget({
type: "bi.button_group", type: "bi.button_group",
behaviors: o.behaviors,
items: BI.createItems(items, {}), items: BI.createItems(items, {}),
layouts: [BI.LogicFactory.createLogic("table", BI.extend({}, o.logic, { layouts: [BI.LogicFactory.createLogic("table", BI.extend({}, o.logic, {
columns: 2, columns: 2,

13
src/case/colorchooser/colorchooser.trigger.js

@ -10,7 +10,7 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.ColorChooserTrigger.superclass._defaultConfig.apply(this, arguments); var conf = BI.ColorChooserTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-color-chooser-trigger bi-card", baseCls: (conf.baseCls || "") + " bi-color-chooser-trigger",
height: 30 height: 30
}) })
}, },
@ -18,7 +18,8 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
_init: function () { _init: function () {
BI.ColorChooserTrigger.superclass._init.apply(this, arguments); BI.ColorChooserTrigger.superclass._init.apply(this, arguments);
this.colorContainer = BI.createWidget({ this.colorContainer = BI.createWidget({
type: "bi.layout" type: "bi.layout",
cls: "bi-card color-chooser-trigger-content"
}); });
var down = BI.createWidget({ var down = BI.createWidget({
@ -51,7 +52,13 @@ BI.ColorChooserTrigger = BI.inherit(BI.Trigger, {
setValue: function (color) { setValue: function (color) {
BI.ColorChooserTrigger.superclass.setValue.apply(this, arguments); BI.ColorChooserTrigger.superclass.setValue.apply(this, arguments);
this.colorContainer.element.css("background-color", color); if (color === "") {
this.colorContainer.element.css("background-color", "").removeClass("trans-color-background").addClass("auto-color-background");
} else if (color === "transparent") {
this.colorContainer.element.css("background-color", "").removeClass("auto-color-background").addClass("trans-color-background")
} else {
this.colorContainer.element.css({"background-color": color}).removeClass("auto-color-background").removeClass("trans-color-background");
}
} }
}); });
BI.ColorChooserTrigger.EVENT_CHANGE = "ColorChooserTrigger.EVENT_CHANGE"; BI.ColorChooserTrigger.EVENT_CHANGE = "ColorChooserTrigger.EVENT_CHANGE";

48
src/case/colorchooser/colorpicker/editor.colorpicker.js

@ -40,7 +40,7 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
errorText: BI.i18nText("BI-Color_Picker_Error_Text"), errorText: BI.i18nText("BI-Color_Picker_Error_Text"),
allowBlank: true, allowBlank: true,
value: 255, value: 255,
width: 35, width: 32,
height: 20 height: 20
}); });
BI.each(Ws, function (i, w) { BI.each(Ws, function (i, w) {
@ -56,7 +56,8 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
this.B = Ws[2]; this.B = Ws[2];
this.none = BI.createWidget({ this.none = BI.createWidget({
type: "bi.checkbox" type: "bi.checkbox",
title: BI.i18nText("BI-Basic_Auto")
}); });
this.none.on(BI.Checkbox.EVENT_CHANGE, function () { this.none.on(BI.Checkbox.EVENT_CHANGE, function () {
if (this.isSelected()) { if (this.isSelected()) {
@ -71,6 +72,23 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
} }
}); });
this.transparent = BI.createWidget({
type: "bi.checkbox",
title: BI.i18nText("BI-Transparent_Color")
});
this.transparent.on(BI.Checkbox.EVENT_CHANGE, function () {
if (this.isSelected()) {
self.lastColor = self.getValue();
self.setValue("transparent");
} else {
self.setValue(self.lastColor || "#000000");
}
if (self.R.isValid() && self.G.isValid() && self.B.isValid()) {
self.colorShow.element.css("background-color", self.getValue());
self.fireEvent(BI.ColorPickerEditor.EVENT_CHANGE);
}
});
BI.createWidget({ BI.createWidget({
type: "bi.htape", type: "bi.htape",
element: this, element: this,
@ -80,21 +98,21 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}, { }, {
el: RGB[0], el: RGB[0],
lgap: 10, lgap: 10,
width: 20 width: 16
}, { }, {
el: this.R, el: this.R,
width: 32 width: 32
}, { }, {
el: RGB[1], el: RGB[1],
lgap: 10, lgap: 10,
width: 20 width: 16
}, { }, {
el: this.G, el: this.G,
width: 32 width: 32
}, { }, {
el: RGB[2], el: RGB[2],
lgap: 10, lgap: 10,
width: 20 width: 16
}, { }, {
el: this.B, el: this.B,
width: 32 width: 32
@ -103,18 +121,33 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
type: "bi.center_adapt", type: "bi.center_adapt",
items: [this.none] items: [this.none]
}, },
width: 20 width: 18
}, {
el: {
type: "bi.center_adapt",
items: [this.transparent]
},
width: 18
}] }]
}) })
}, },
setValue: function (color) { setValue: function (color) {
if (color === "transparent") {
this.transparent.setSelected(true);
this.none.setSelected(false);
this.R.setValue("");
this.G.setValue("");
this.B.setValue("");
return;
}
if (!color) { if (!color) {
color = ""; color = "";
this.none.setSelected(true); this.none.setSelected(true);
} else { } else {
this.none.setSelected(false); this.none.setSelected(false);
} }
this.transparent.setSelected(false);
this.colorShow.element.css("background-color", color); this.colorShow.element.css("background-color", color);
var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color)); var json = BI.DOM.rgb2json(BI.DOM.hex2rgb(color));
this.R.setValue(BI.isNull(json.r) ? "" : json.r); this.R.setValue(BI.isNull(json.r) ? "" : json.r);
@ -123,6 +156,9 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, {
}, },
getValue: function () { getValue: function () {
if (this.transparent.isSelected()) {
return "transparent";
}
return BI.DOM.rgb2hex(BI.DOM.json2rgb({ return BI.DOM.rgb2hex(BI.DOM.json2rgb({
r: this.R.getValue(), r: this.R.getValue(),
g: this.G.getValue(), g: this.G.getValue(),

444
src/case/combo/bubblecombo/combo.bubble.js

@ -1,224 +1,222 @@
/** /**
* Created by GUY on 2017/2/8. * Created by GUY on 2017/2/8.
* *
* @class BI.BubbleCombo * @class BI.BubbleCombo
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.BubbleCombo = BI.inherit(BI.Widget, { BI.BubbleCombo = BI.inherit(BI.Widget, {
_const: { _const: {
TRIANGLE_LENGTH: 6 TRIANGLE_LENGTH: 6
}, },
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.BubbleCombo.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.BubbleCombo.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-bubble-combo", baseCls: "bi-bubble-combo",
trigger: "click", trigger: "click",
toggle: true, toggle: true,
direction: "bottom", //top||bottom||left||right||top,left||top,right||bottom,left||bottom,right direction: "bottom", //top||bottom||left||right||top,left||top,right||bottom,left||bottom,right
isDefaultInit: false, isDefaultInit: false,
destroyWhenHide: false, destroyWhenHide: false,
isNeedAdjustHeight: true,//是否需要高度调整 isNeedAdjustHeight: true,//是否需要高度调整
isNeedAdjustWidth: true, isNeedAdjustWidth: true,
stopPropagation: false, stopPropagation: false,
adjustLength: 0,//调整的距离 adjustLength: 0,//调整的距离
// adjustXOffset: 0, // adjustXOffset: 0,
// adjustYOffset: 10, // adjustYOffset: 10,
hideChecker: BI.emptyFn, hideChecker: BI.emptyFn,
offsetStyle: "left", //left,right,center offsetStyle: "left", //left,right,center
el: {}, el: {},
popup: {}, popup: {},
}) })
}, },
_init: function () { _init: function () {
BI.BubbleCombo.superclass._init.apply(this, arguments); BI.BubbleCombo.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.combo = BI.createWidget({ this.combo = BI.createWidget({
type: "bi.combo", type: "bi.combo",
element: this, element: this,
trigger: o.trigger, trigger: o.trigger,
toggle: o.toggle, toggle: o.toggle,
direction: o.direction, direction: o.direction,
isDefaultInit: o.isDefaultInit, isDefaultInit: o.isDefaultInit,
destroyWhenHide: o.destroyWhenHide, destroyWhenHide: o.destroyWhenHide,
isNeedAdjustHeight: o.isNeedAdjustHeight, isNeedAdjustHeight: o.isNeedAdjustHeight,
isNeedAdjustWidth: o.isNeedAdjustWidth, isNeedAdjustWidth: o.isNeedAdjustWidth,
adjustLength: this._getAdjustLength(), adjustLength: this._getAdjustLength(),
stopPropagation: o.stopPropagation, stopPropagation: o.stopPropagation,
adjustXOffset: 0, adjustXOffset: 0,
adjustYOffset: 0, adjustYOffset: 0,
hideChecker: o.hideChecker, hideChecker: o.hideChecker,
offsetStyle: o.offsetStyle, offsetStyle: o.offsetStyle,
el: o.el, el: o.el,
popup: BI.extend({ popup: BI.extend({
type: "bi.bubble_popup_view" type: "bi.bubble_popup_view"
}, o.popup), }, o.popup),
}); });
this.combo.on(BI.Combo.EVENT_TRIGGER_CHANGE, function () { this.combo.on(BI.Combo.EVENT_TRIGGER_CHANGE, function () {
self.fireEvent(BI.BubbleCombo.EVENT_TRIGGER_CHANGE, arguments); self.fireEvent(BI.BubbleCombo.EVENT_TRIGGER_CHANGE, arguments);
}); });
this.combo.on(BI.Combo.EVENT_CHANGE, function () { this.combo.on(BI.Combo.EVENT_CHANGE, function () {
self.fireEvent(BI.BubbleCombo.EVENT_CHANGE, arguments); self.fireEvent(BI.BubbleCombo.EVENT_CHANGE, arguments);
}); });
this.combo.on(BI.Combo.EVENT_EXPAND, function () { this.combo.on(BI.Combo.EVENT_EXPAND, function () {
self.fireEvent(BI.BubbleCombo.EVENT_EXPAND, arguments); self.fireEvent(BI.BubbleCombo.EVENT_EXPAND, arguments);
}); });
this.combo.on(BI.Combo.EVENT_COLLAPSE, function () { this.combo.on(BI.Combo.EVENT_COLLAPSE, function () {
self.fireEvent(BI.BubbleCombo.EVENT_COLLAPSE, arguments); self.fireEvent(BI.BubbleCombo.EVENT_COLLAPSE, arguments);
}); });
this.combo.on(BI.Combo.EVENT_AFTER_INIT, function () { this.combo.on(BI.Combo.EVENT_AFTER_INIT, function () {
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_INIT, arguments); self.fireEvent(BI.BubbleCombo.EVENT_AFTER_INIT, arguments);
}); });
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW, arguments); self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW, arguments);
}); });
this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () { this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () {
self._showTriangle(); self._showTriangle();
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_POPUPVIEW, arguments); self.fireEvent(BI.BubbleCombo.EVENT_AFTER_POPUPVIEW, arguments);
}); });
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () {
self._hideTriangle(); self._hideTriangle();
self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW, arguments); self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW, arguments);
}); });
this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () { this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () {
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_HIDEVIEW, arguments); self.fireEvent(BI.BubbleCombo.EVENT_AFTER_HIDEVIEW, arguments);
}); });
}, },
_getAdjustLength: function () { _getAdjustLength: function () {
return this._const.TRIANGLE_LENGTH + this.options.adjustLength; return this._const.TRIANGLE_LENGTH + this.options.adjustLength;
}, },
_createTriangle: function (direction) { _createTriangle: function (direction) {
var pos = {}, op = {}; var pos = {}, op = {};
var adjustLength = this.options.adjustLength; var adjustLength = this.options.adjustLength;
var offset = this.element.offset(); var offset = this.element.offset();
var left = offset.left, right = offset.left + this.element.outerWidth(); var left = offset.left, right = offset.left + this.element.outerWidth();
var top = offset.top, bottom = offset.top + this.element.outerHeight(); var top = offset.top, bottom = offset.top + this.element.outerHeight();
switch (direction) { switch (direction) {
case "left": case "left":
pos = { pos = {
top: top, top: top,
height: this.element.outerHeight(), height: this.element.outerHeight(),
left: left - adjustLength - this._const.TRIANGLE_LENGTH left: left - adjustLength - this._const.TRIANGLE_LENGTH
}; };
op = {width: this._const.TRIANGLE_LENGTH}; op = {width: this._const.TRIANGLE_LENGTH};
break; break;
case "right": case "right":
pos = { pos = {
top: top, top: top,
height: this.element.outerHeight(), height: this.element.outerHeight(),
left: right + adjustLength left: right + adjustLength
}; };
op = {width: this._const.TRIANGLE_LENGTH}; op = {width: this._const.TRIANGLE_LENGTH};
break; break;
case "top": case "top":
pos = { pos = {
left: left, left: left,
width: this.element.outerWidth(), width: this.element.outerWidth(),
top: top - adjustLength - this._const.TRIANGLE_LENGTH top: top - adjustLength - this._const.TRIANGLE_LENGTH
}; };
op = {height: this._const.TRIANGLE_LENGTH}; op = {height: this._const.TRIANGLE_LENGTH};
break; break;
case "bottom": case "bottom":
pos = { pos = {
left: left, left: left,
width: this.element.outerWidth(), width: this.element.outerWidth(),
top: bottom + adjustLength top: bottom + adjustLength
}; };
op = {height: this._const.TRIANGLE_LENGTH}; op = {height: this._const.TRIANGLE_LENGTH};
break; break;
default: default:
break; break;
} }
this.triangle = BI.createWidget(op, { this.triangle && this.triangle.destroy();
type: "bi.center_adapt", this.triangle = BI.createWidget(op, {
cls: "button-combo-triangle-wrapper", type: "bi.center_adapt",
items: [{ cls: "button-combo-triangle-wrapper",
type: "bi.layout", items: [{
cls: "bubble-combo-triangle-" + direction + " bi-high-light-border" type: "bi.layout",
}] cls: "bubble-combo-triangle-" + direction + " bi-high-light-border"
}); }]
pos.el = this.triangle; });
BI.createWidget({ pos.el = this.triangle;
type: "bi.absolute", BI.createWidget({
element: this, type: "bi.absolute",
items: [pos] element: this,
}) items: [pos]
}, })
},
_createLeftTriangle: function () {
this._createTriangle("left"); _createLeftTriangle: function () {
}, this._createTriangle("left");
},
_createRightTriangle: function () {
this._createTriangle("right"); _createRightTriangle: function () {
}, this._createTriangle("right");
},
_createTopTriangle: function () {
this._createTriangle("top"); _createTopTriangle: function () {
}, this._createTriangle("top");
},
_createBottomTriangle: function () {
this._createTriangle("bottom"); _createBottomTriangle: function () {
}, this._createTriangle("bottom");
},
_showTriangle: function () {
var pos = this.combo.getPopupPosition(); _showTriangle: function () {
switch (pos.dir) { var pos = this.combo.getPopupPosition();
case "left,top": switch (pos.dir) {
case "left,bottom": case "left,top":
this._createLeftTriangle(); case "left,bottom":
this.combo.getView().showLine("right"); this._createLeftTriangle();
break; this.combo.getView().showLine("right");
case "right,top": break;
case "right,bottom": case "right,top":
this._createRightTriangle(); case "right,bottom":
this.combo.getView().showLine("left"); this._createRightTriangle();
break; this.combo.getView().showLine("left");
case "top,left": break;
case "top,right": case "top,left":
this._createTopTriangle(); case "top,right":
this.combo.getView().showLine("bottom"); this._createTopTriangle();
break; this.combo.getView().showLine("bottom");
case "bottom,left": break;
case "bottom,right": case "bottom,left":
this._createBottomTriangle(); case "bottom,right":
this.combo.getView().showLine("top"); this._createBottomTriangle();
break; this.combo.getView().showLine("top");
} break;
}, }
},
_hideTriangle: function () {
this.triangle && this.triangle.destroy(); _hideTriangle: function () {
this.combo.getView() && this.combo.getView().hideLine(); this.triangle && this.triangle.destroy();
}, this.triangle = null;
this.combo.getView() && this.combo.getView().hideLine();
hideView: function () { },
this._hideTriangle();
this.combo && this.combo.hideView(); hideView: function () {
}, this._hideTriangle();
this.combo && this.combo.hideView();
showView: function () { },
this.combo && this.combo.showView();
}, showView: function () {
this.combo && this.combo.showView();
hasView: function () { },
return BI.isNotNull(this.combo.getView());
}, isViewVisible: function () {
return this.combo.isViewVisible();
isViewVisible: function () { }
return this.combo.isViewVisible(); });
}
}); BI.BubbleCombo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";
BI.BubbleCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.BubbleCombo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE"; BI.BubbleCombo.EVENT_EXPAND = "EVENT_EXPAND";
BI.BubbleCombo.EVENT_CHANGE = "EVENT_CHANGE"; BI.BubbleCombo.EVENT_COLLAPSE = "EVENT_COLLAPSE";
BI.BubbleCombo.EVENT_EXPAND = "EVENT_EXPAND"; BI.BubbleCombo.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.BubbleCombo.EVENT_COLLAPSE = "EVENT_COLLAPSE";
BI.BubbleCombo.EVENT_AFTER_INIT = "EVENT_AFTER_INIT";
BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.BubbleCombo.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW";
BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW";
BI.BubbleCombo.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW"; BI.BubbleCombo.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW";
BI.BubbleCombo.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW";
BI.shortcut("bi.bubble_combo", BI.BubbleCombo); BI.shortcut("bi.bubble_combo", BI.BubbleCombo);

4
src/case/layer/pane.list.js

@ -127,10 +127,6 @@ BI.ListPane = BI.inherit(BI.Pane, {
this.button_group.empty(); this.button_group.empty();
}, },
doBehavior: function () {
this.button_group.doBehavior.apply(this.button_group, arguments);
},
setNotSelectedValue: function () { setNotSelectedValue: function () {
this.button_group.setNotSelectedValue.apply(this.button_group, arguments); this.button_group.setNotSelectedValue.apply(this.button_group, arguments);
}, },

4
src/case/list/list.select.js

@ -164,10 +164,6 @@ BI.SelectList = BI.inherit(BI.Widget, {
this.list.element.css({"max-height": h - toolHeight + "px"}) this.list.element.css({"max-height": h - toolHeight + "px"})
}, },
doBehavior: function () {
this.list.doBehavior.apply(this.list, arguments);
},
setNotSelectedValue: function () { setNotSelectedValue: function () {
this.list.setNotSelectedValue.apply(this.list, arguments); this.list.setNotSelectedValue.apply(this.list, arguments);
this._checkAllSelected(); this._checkAllSelected();

4
src/case/loader/loader.lazy.js

@ -54,10 +54,6 @@ BI.LazyLoader = BI.inherit(BI.Widget, {
this.loader.empty(); this.loader.empty();
}, },
doBehavior: function () {
this.loader.doBehavior();
},
setNotSelectedValue: function () { setNotSelectedValue: function () {
this.loader.setNotSelectedValue.apply(this.loader, arguments); this.loader.setNotSelectedValue.apply(this.loader, arguments);
}, },

4
src/case/loader/loader.list.js

@ -148,10 +148,6 @@ BI.ListLoader = BI.inherit(BI.Widget, {
}); });
}, },
doBehavior: function () {
this.button_group.doBehavior.apply(this.button_group, arguments);
},
setNotSelectedValue: function () { setNotSelectedValue: function () {
this.button_group.setNotSelectedValue.apply(this.button_group, arguments); this.button_group.setNotSelectedValue.apply(this.button_group, arguments);
}, },

351
src/case/loader/sort.list.js

@ -1,177 +1,176 @@
/** /**
* Created by GUY on 2016/4/29. * Created by GUY on 2016/4/29.
* *
* @class BI.SortList * @class BI.SortList
* @extends BI.Widget * @extends BI.Widget
*/ */
BI.SortList = BI.inherit(BI.Widget, { BI.SortList = BI.inherit(BI.Widget, {
_defaultConfig: function () { _defaultConfig: function () {
return BI.extend(BI.SortList.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.SortList.superclass._defaultConfig.apply(this, arguments), {
baseCls: "bi-sort-list", baseCls: "bi-sort-list",
isDefaultInit: true,//是否默认初始化数据 isDefaultInit: true,//是否默认初始化数据
//下面是button_group的属性 //下面是button_group的属性
el: { el: {
type: "bi.button_group" type: "bi.button_group"
}, },
items: [], items: [],
itemsCreator: BI.emptyFn, itemsCreator: BI.emptyFn,
onLoaded: BI.emptyFn, onLoaded: BI.emptyFn,
//下面是分页信息 //下面是分页信息
count: false, count: false,
next: {}, next: {},
hasNext: BI.emptyFn hasNext: BI.emptyFn
//containment: this.element, //containment: this.element,
//connectWith: ".bi-sort-list", //connectWith: ".bi-sort-list",
}) })
}, },
_init: function () { _init: function () {
BI.SortList.superclass._init.apply(this, arguments); BI.SortList.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
this.loader = BI.createWidget({ this.loader = BI.createWidget({
type: "bi.list_loader", type: "bi.list_loader",
element: this, element: this,
isDefaultInit: o.isDefaultInit, isDefaultInit: o.isDefaultInit,
el: o.el, el: o.el,
items: this._formatItems(o.items), items: this._formatItems(o.items),
itemsCreator: function (op, callback) { itemsCreator: function (op, callback) {
o.itemsCreator(op, function (items) { o.itemsCreator(op, function (items) {
callback(self._formatItems(items)); callback(self._formatItems(items));
}); });
}, },
onLoaded: o.onLoaded, onLoaded: o.onLoaded,
count: o.count, count: o.count,
next: o.next, next: o.next,
hasNext: o.hasNext hasNext: o.hasNext
}); });
this.loader.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { this.loader.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
if (type === BI.Events.CLICK) { if (type === BI.Events.CLICK) {
self.fireEvent(BI.SortList.EVENT_CHANGE, value, obj); self.fireEvent(BI.SortList.EVENT_CHANGE, value, obj);
} }
}); });
this.loader.element.sortable({ this.loader.element.sortable({
containment: o.containment || this.element, containment: o.containment || this.element,
connectWith: o.connectWith || ".bi-sort-list", connectWith: o.connectWith || ".bi-sort-list",
items: ".sort-item", items: ".sort-item",
cursor: o.cursor || "drag", cursor: o.cursor || "drag",
tolerance: o.tolerance || "intersect", tolerance: o.tolerance || "intersect",
placeholder: { placeholder: {
element: function ($currentItem) { element: function ($currentItem) {
var holder = BI.createWidget({ var holder = BI.createWidget({
type: "bi.layout", type: "bi.layout",
cls: "bi-sortable-holder", cls: "bi-sortable-holder",
height: $currentItem.outerHeight() height: $currentItem.outerHeight()
}); });
holder.element.css({ holder.element.css({
"margin-left": $currentItem.css("margin-left"), "margin-left": $currentItem.css("margin-left"),
"margin-right": $currentItem.css("margin-right"), "margin-right": $currentItem.css("margin-right"),
"margin-top": $currentItem.css("margin-top"), "margin-top": $currentItem.css("margin-top"),
"margin-bottom": $currentItem.css("margin-bottom"), "margin-bottom": $currentItem.css("margin-bottom"),
"margin": $currentItem.css("margin") "margin": $currentItem.css("margin")
}); });
return holder.element; return holder.element;
}, },
update: function () { update: function () {
} }
}, },
start: function (event, ui) { start: function (event, ui) {
}, },
stop: function (event, ui) { stop: function (event, ui) {
self.fireEvent(BI.SortList.EVENT_CHANGE); self.fireEvent(BI.SortList.EVENT_CHANGE);
}, },
over: function (event, ui) { over: function (event, ui) {
} }
}); });
}, },
_formatItems: function (items) { _formatItems: function (items) {
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
item = BI.stripEL(item); item = BI.stripEL(item);
item.cls = item.cls ? item.cls + " sort-item" : "sort-item"; item.cls = item.cls ? item.cls + " sort-item" : "sort-item";
item.attributes = { item.attributes = {
sorted: item.value sorted: item.value
}; };
}); });
return items; return items;
}, },
hasNext: function () { hasNext: function () {
return this.loader.hasNext(); return this.loader.hasNext();
}, },
addItems: function (items) { addItems: function (items) {
this.loader.addItems(items); this.loader.addItems(items);
}, },
populate: function (items) { populate: function (items) {
this.loader.populate.apply(this.loader, arguments); if (items) {
}, arguments[0] = this._formatItems(items);
}
empty: function () { this.loader.populate.apply(this.loader, arguments);
this.loader.empty(); },
},
empty: function () {
doBehavior: function () { this.loader.empty();
this.loader.doBehavior.apply(this.loader, arguments); },
},
setNotSelectedValue: function () {
setNotSelectedValue: function () { this.loader.setNotSelectedValue.apply(this.loader, arguments);
this.loader.setNotSelectedValue.apply(this.loader, arguments); },
},
getNotSelectedValue: function () {
getNotSelectedValue: function () { return this.loader.getNotSelectedValue();
return this.loader.getNotSelectedValue(); },
},
setValue: function () {
setValue: function () { this.loader.setValue.apply(this.loader, arguments);
this.loader.setValue.apply(this.loader, arguments); },
},
getValue: function () {
getValue: function () { return this.loader.getValue();
return this.loader.getValue(); },
},
getAllButtons: function () {
getAllButtons: function () { return this.loader.getAllButtons();
return this.loader.getAllButtons(); },
},
getAllLeaves: function () {
getAllLeaves: function () { return this.loader.getAllLeaves();
return this.loader.getAllLeaves(); },
},
getSelectedButtons: function () {
getSelectedButtons: function () { return this.loader.getSelectedButtons();
return this.loader.getSelectedButtons(); },
},
getNotSelectedButtons: function () {
getNotSelectedButtons: function () { return this.loader.getNotSelectedButtons();
return this.loader.getNotSelectedButtons(); },
},
getIndexByValue: function (value) {
getIndexByValue: function (value) { return this.loader.getIndexByValue(value);
return this.loader.getIndexByValue(value); },
},
getNodeById: function (id) {
getNodeById: function (id) { return this.loader.getNodeById(id);
return this.loader.getNodeById(id); },
},
getNodeByValue: function (value) {
getNodeByValue: function (value) { return this.loader.getNodeByValue(value);
return this.loader.getNodeByValue(value); },
},
getSortedValues: function () {
getSortedValues: function () { return this.loader.element.sortable("toArray", {attribute: "sorted"});
return this.loader.element.sortable("toArray", {attribute: "sorted"}); }
} });
}); BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.sort_list", BI.SortList); BI.shortcut("bi.sort_list", BI.SortList);

5
src/case/pager/pager.all.count.js

@ -26,9 +26,10 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
vgap: 0, vgap: 0,
value: o.curr, value: o.curr,
errorText: BI.i18nText("BI-Please_Input_Positive_Integer"), errorText: BI.i18nText("BI-Please_Input_Positive_Integer"),
width: 30, width: 35,
height: 20 height: 20
}); });
this.pager = BI.createWidget({ this.pager = BI.createWidget({
type: "bi.pager", type: "bi.pager",
width: 36, width: 36,
@ -114,7 +115,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
BI.createWidget({ BI.createWidget({
type: "bi.center_adapt", type: "bi.center_adapt",
element: this, element: this,
columnSize: ["", 30, 40, 36], columnSize: ["", 35, 40, 36],
items: [count, this.editor, this.allPages, this.pager] items: [count, this.editor, this.allPages, this.pager]
}) })
}, },

18
src/case/segment/button.segment.js

@ -7,17 +7,17 @@
*/ */
BI.SegmentButton = BI.inherit(BI.BasicButton, { BI.SegmentButton = BI.inherit(BI.BasicButton, {
_defaultConfig: function() { _defaultConfig: function () {
var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments); var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments);
return BI.extend( conf, { return BI.extend(conf, {
baseCls : (conf.baseCls ||"")+' bi-segment-button bi-list-item-active', baseCls: (conf.baseCls || "") + ' bi-segment-button bi-list-item-active',
shadow: true, shadow: true,
readonly: true, readonly: true,
hgap: 10 hgap: 5
}) })
}, },
_init:function() { _init: function () {
BI.SegmentButton.superclass._init.apply(this, arguments); BI.SegmentButton.superclass._init.apply(this, arguments);
var opts = this.options, self = this; var opts = this.options, self = this;
//if (BI.isNumber(opts.height) && BI.isNull(opts.lineHeight)) { //if (BI.isNumber(opts.height) && BI.isNull(opts.lineHeight)) {
@ -26,7 +26,7 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, {
this.text = BI.createWidget({ this.text = BI.createWidget({
type: "bi.label", type: "bi.label",
element: this, element: this,
height: opts.height-2, height: opts.height - 2,
whiteSpace: opts.whiteSpace, whiteSpace: opts.whiteSpace,
text: opts.text, text: opts.text,
value: opts.value, value: opts.value,
@ -34,16 +34,16 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, {
}) })
}, },
setSelected: function(){ setSelected: function () {
BI.SegmentButton.superclass.setSelected.apply(this, arguments); BI.SegmentButton.superclass.setSelected.apply(this, arguments);
}, },
setText : function(text) { setText: function (text) {
BI.SegmentButton.superclass.setText.apply(this, arguments); BI.SegmentButton.superclass.setText.apply(this, arguments);
this.text.setText(text); this.text.setText(text);
}, },
destroy : function() { destroy: function () {
BI.SegmentButton.superclass.destroy.apply(this, arguments); BI.SegmentButton.superclass.destroy.apply(this, arguments);
} }
}); });

2
src/case/table/table.dynamicsummarylayertree.js

@ -160,7 +160,7 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, {
_recomputeColumnSize: function () { _recomputeColumnSize: function () {
var o = this.options; var o = this.options;
o.regionColumnSize = this.table.getRegionColumnSize(); o.regionColumnSize = this.table.getRegionColumnSize();
var columnSize = this.table.getColumnSize(); var columnSize = this.table.getColumnSize().slice();
if (o.freezeCols.length > 1) { if (o.freezeCols.length > 1) {
for (var i = 0; i < o.freezeCols.length - 1; i++) { for (var i = 0; i < o.freezeCols.length - 1; i++) {
columnSize.splice(1, 0, 0); columnSize.splice(1, 0, 0);

4
src/case/tree/tree.level.js

@ -108,10 +108,6 @@ BI.LevelTree = BI.inherit(BI.Widget, {
this.tree.populate(items); this.tree.populate(items);
}, },
doBehavior: function () {
this.tree.doBehavior.apply(this.tree, arguments);
},
setValue: function (v) { setValue: function (v) {
this.tree.setValue(v); this.tree.setValue(v);
}, },

157
src/case/trigger/trigger.editor.js

@ -1,79 +1,80 @@
/** /**
* 文本输入框trigger * 文本输入框trigger
* *
* Created by GUY on 2015/9/15. * Created by GUY on 2015/9/15.
* @class BI.EditorTrigger * @class BI.EditorTrigger
* @extends BI.Trigger * @extends BI.Trigger
*/ */
BI.EditorTrigger = BI.inherit(BI.Trigger, { BI.EditorTrigger = BI.inherit(BI.Trigger, {
_const: { _const: {
hgap: 4 hgap: 4
}, },
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.EditorTrigger.superclass._defaultConfig.apply(this, arguments); var conf = BI.EditorTrigger.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-editor-trigger bi-border", baseCls: (conf.baseCls || "") + " bi-editor-trigger bi-border",
height: 30, height: 30,
validationChecker: BI.emptyFn, validationChecker: BI.emptyFn,
quitChecker: BI.emptyFn, quitChecker: BI.emptyFn,
allowBlank: false, allowBlank: false,
watermark: "", watermark: "",
errorText: "", errorText: "",
triggerWidth: 30 triggerWidth: 30
}); });
}, },
_init: function () { _init: function () {
this.options.height -= 2; this.options.height -= 2;
BI.EditorTrigger.superclass._init.apply(this, arguments); BI.EditorTrigger.superclass._init.apply(this, arguments);
var self = this, o = this.options, c = this._const; var self = this, o = this.options, c = this._const;
this.editor = BI.createWidget({ this.editor = BI.createWidget({
type: "bi.sign_editor", type: "bi.sign_editor",
height: o.height, height: o.height,
value: o.value, value: o.value,
validationChecker: o.validationChecker, validationChecker: o.validationChecker,
quitChecker: o.quitChecker, quitChecker: o.quitChecker,
mouseOut: false, mouseOut: false,
allowBlank: o.allowBlank, allowBlank: o.allowBlank,
watermark: o.watermark, watermark: o.watermark,
errorText: o.errorText errorText: o.errorText
}); });
this.editor.on(BI.Controller.EVENT_CHANGE, function () { this.editor.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); self.fireEvent(BI.Controller.EVENT_CHANGE, arguments);
}); });
this.editor.on(BI.SignEditor.EVENT_CHANGE, function () { this.editor.on(BI.SignEditor.EVENT_CHANGE, function () {
self.fireEvent(BI.EditorTrigger.EVENT_CHANGE, arguments); self.fireEvent(BI.EditorTrigger.EVENT_CHANGE, arguments);
}); });
BI.createWidget({ BI.createWidget({
element: this, element: this,
type: 'bi.htape', type: 'bi.htape',
items: [ items: [
{ {
el: this.editor el: this.editor
}, { }, {
el: { el: {
type: "bi.trigger_icon_button", type: "bi.trigger_icon_button",
width: o.triggerWidth cls: "bi-border-left",
}, width: o.triggerWidth
width: o.triggerWidth },
} width: o.triggerWidth
] }
}); ]
}, });
},
getValue: function () {
return this.editor.getValue(); getValue: function () {
}, return this.editor.getValue();
},
setValue: function (value) {
this.editor.setValue(value); setValue: function (value) {
}, this.editor.setValue(value);
},
setText: function (text) {
this.editor.setState(text); setText: function (text) {
} this.editor.setState(text);
}); }
BI.EditorTrigger.EVENT_CHANGE = "BI.EditorTrigger.EVENT_CHANGE"; });
BI.EditorTrigger.EVENT_CHANGE = "BI.EditorTrigger.EVENT_CHANGE";
BI.shortcut("bi.editor_trigger", BI.EditorTrigger); BI.shortcut("bi.editor_trigger", BI.EditorTrigger);

1
src/case/trigger/trigger.text.js

@ -31,6 +31,7 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
}); });
this.trigerButton = BI.createWidget({ this.trigerButton = BI.createWidget({
type: "bi.trigger_icon_button", type: "bi.trigger_icon_button",
cls: "bi-border-left",
width: c.triggerWidth width: c.triggerWidth
}); });

93
src/component/treevaluechooser/abstract.treevaluechooser.js

@ -80,7 +80,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
var node = self._getTreeNode(parentValues, k); var node = self._getTreeNode(parentValues, k);
var newParents = BI.clone(parentValues); var newParents = BI.clone(parentValues);
newParents.push(node.value); newParents.push(node.value);
createOneJson(node, BI.last(parentValues), getCount(selected[k], newParents)); createOneJson(node, node.parent && node.parent.id, getCount(selected[k], newParents));
doCheck(newParents, node, selected[k]); doCheck(newParents, node, selected[k]);
}) })
} }
@ -126,22 +126,34 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
function dealWithSelectedValues(selectedValues) { function dealWithSelectedValues(selectedValues) {
var p = parentValues.concat(notSelectedValue); var p = parentValues.concat(notSelectedValue);
//存储的值中存在这个值就把它删掉 //存储的值中存在这个值就把它删掉
//例如选中了中国-江苏-南京, 取消中国或江苏或南京
if (canFindKey(selectedValues, p)) { if (canFindKey(selectedValues, p)) {
//如果搜索的值在父亲链中 //如果搜索的值在父亲链中
if (isSearchValueInParent(p)) { if (isSearchValueInParent(p)) {
//例如选中了 中国-江苏, 搜索江苏, 取消江苏
//例如选中了 中国-江苏, 搜索江苏, 取消中国
self._deleteNode(selectedValues, p); self._deleteNode(selectedValues, p);
} else { } else {
var searched = []; var searched = [];
var finded = search(parentValues, notSelectedValue, [], searched); var finded = search(parentValues, notSelectedValue, [], searched);
if (finded && BI.isNotEmptyArray(searched)) { if (finded && BI.isNotEmptyArray(searched)) {
BI.each(searched, function (i, arr) { BI.each(searched, function (i, arr) {
self._deleteNode(selectedValues, arr); var node = self._getNode(selectedValues, arr);
if (node) {
//例如选中了 中国-江苏-南京,搜索南京,取消中国
self._deleteNode(selectedValues, arr);
} else {
//例如选中了 中国-江苏,搜索南京,取消中国
expandSelectedValue(selectedValues, arr, BI.last(arr));
}
}) })
} }
} }
} }
//存储的值中不存在这个值,但父亲节点是全选的情况 //存储的值中不存在这个值,但父亲节点是全选的情况
//例如选中了中国-江苏,取消南京
//important 选中了中国-江苏,取消了江苏,但是搜索的是南京
if (isChild(selectedValues, p)) { if (isChild(selectedValues, p)) {
var result = [], finded = false; var result = [], finded = false;
//如果parentValues中有匹配的值,说明搜索结果不在当前值下 //如果parentValues中有匹配的值,说明搜索结果不在当前值下
@ -154,29 +166,9 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
} }
if (finded === true) { if (finded === true) {
var next = selectedValues; //去掉点击的节点之后的结果集
BI.each(p, function (i, v) { expandSelectedValue(selectedValues, p, notSelectedValue);
var t = next[v]; //添加去掉搜索的结果集
if (t == null) {
if (BI.isEmpty(next)) {
var split = p.slice(0, i);
var expanded = self._getChildren(split);
BI.each(expanded, function (m, child) {
if (i === p.length - 1 && child.value === notSelectedValue) {
return true;
}
next[child.value] = {};
});
next = next[v];
} else {
next = {};
next[v] = {};
}
} else {
next = t;
}
});
if (result.length > 0) { if (result.length > 0) {
BI.each(result, function (i, strs) { BI.each(result, function (i, strs) {
self._buildTree(selectedValues, strs); self._buildTree(selectedValues, strs);
@ -187,6 +179,51 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
} }
function expandSelectedValue(selectedValues, parents, notSelectedValue) {
var next = selectedValues;
var childrenCount = [];
var path = [];
//去掉点击的节点之后的结果集
BI.some(parents, function (i, v) {
var t = next[v];
if (t == null) {
if (i === 0) {
return true;
}
if (BI.isEmpty(next)) {
var split = parents.slice(0, i);
var expanded = self._getChildren(split);
path.push(split);
childrenCount.push(expanded.length);
//如果只有一个值且取消的就是这个值
if (i === parents.length - 1 && expanded.length === 1 && expanded[0] === notSelectedValue) {
for (var j = childrenCount.length - 1; j >= 0; j--) {
if (childrenCount[j] === 1) {
self._deleteNode(selectedValues, path[j]);
} else {
break;
}
}
} else {
BI.each(expanded, function (m, child) {
if (i === parents.length - 1 && child.value === notSelectedValue) {
return true;
}
next[child.value] = {};
});
}
next = next[v];
} else {
return true;
// next = {};
// next[v] = {};
}
} else {
next = t;
}
});
}
function search(parents, current, result, searched) { function search(parents, current, result, searched) {
var newParents = BI.clone(parents); var newParents = BI.clone(parents);
newParents.push(current); newParents.push(current);
@ -551,14 +588,16 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
var name = values[values.length - 1]; var name = values[values.length - 1];
var p = values.slice(0, values.length - 1); var p = values.slice(0, values.length - 1);
var pNode = this._getNode(selectedValues, p); var pNode = this._getNode(selectedValues, p);
if (pNode[name]) { if (pNode != null && pNode[name]) {
delete pNode[name]; delete pNode[name];
//递归删掉空父节点 //递归删掉空父节点
while (p.length > 0 && BI.isEmpty(pNode)) { while (p.length > 0 && BI.isEmpty(pNode)) {
name = p[p.length - 1]; name = p[p.length - 1];
p = p.slice(0, p.length - 1); p = p.slice(0, p.length - 1);
pNode = this._getNode(selectedValues, p); pNode = this._getNode(selectedValues, p);
delete pNode[name]; if (pNode != null) {
delete pNode[name];
}
} }
} }
}, },

4
src/config.js

@ -87,4 +87,8 @@ $(function () {
return ob; return ob;
} }
}); });
//IE8下滚动条用原生的
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
}); });

2
src/core/alias.js

@ -144,7 +144,7 @@
if (numReg) { if (numReg) {
var num = numReg[0]; var num = numReg[0];
var orilen = num.length; var orilen = num.length;
var newnum = BI.parseInt(num) + 1 + ''; var newnum = parseInt(num) + 1 + '';
//进位到整数部分 //进位到整数部分
if (newnum.length > orilen) { if (newnum.length > orilen) {
newnum = newnum.substr(1); newnum = newnum.substr(1);

30
src/core/behavior/behavior.highlight.js

@ -5,26 +5,34 @@
* @extends BI.Behavior * @extends BI.Behavior
*/ */
BI.HighlightBehavior = BI.inherit(BI.Behavior, { BI.HighlightBehavior = BI.inherit(BI.Behavior, {
_defaultConfig: function() { _defaultConfig: function () {
return BI.extend(BI.HighlightBehavior.superclass._defaultConfig.apply(this, arguments), { return BI.extend(BI.HighlightBehavior.superclass._defaultConfig.apply(this, arguments), {});
});
}, },
_init : function() { _init: function () {
BI.HighlightBehavior.superclass._init.apply(this, arguments); BI.HighlightBehavior.superclass._init.apply(this, arguments);
}, },
doBehavior: function(items){ doBehavior: function (items) {
var args = Array.prototype.slice.call(arguments, 1), var args = Array.prototype.slice.call(arguments, 1),
o = this.options; o = this.options;
BI.each(items, function(i, item){ BI.each(items, function (i, item) {
if(item instanceof BI.Single) { if (item instanceof BI.Single) {
if (o.rule(item.getValue(), item)) { var rule = o.rule(item.getValue(), item);
item.doHighLight.apply(item, args);
function doBe(run) {
if (run === true) {
item.doHighLight.apply(item, args);
} else {
item.unHighLight.apply(item, args);
}
}
if (BI.isFunction(rule)) {
rule(doBe);
} else { } else {
item.unHighLight.apply(item, args); doBe(rule);
} }
} else { } else {
item.doBehavior.apply(item, args); item.doBehavior.apply(item, args);

21
src/core/controller/router.floatbox.js

@ -45,7 +45,10 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, {
var view = this.createView(url, data, viewData, context); var view = this.createView(url, data, viewData, context);
isValid && context.model.addChild(modelData, view.model); isValid && context.model.addChild(modelData, view.model);
view.listenTo(view.model, "destroy", function () { view.listenTo(view.model, "destroy", function () {
self.remove(url); self.remove(url, context);
});
context.on(BI.Events.UNMOUNT, function () {
self.remove(url, context);
}); });
this.store[url].populate(view); this.store[url].populate(view);
this.views[url] = view; this.views[url] = view;
@ -54,19 +57,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, {
BI.nextTick(function () { BI.nextTick(function () {
self.close(url); self.close(url);
// view.end(); // view.end();
var t = void 0, isNew = false, keys; (context.listenEnd.apply(context, isValid ? modelData.split('.') : [modelData]) !== false) && context.populate();
if (isValid) {
keys = modelData.split('.');
BI.each(keys, function (i, k) {
if (i === 0) {
t = context.model.get(k) || (isNew = true);
} else {
t = t[k] || (isNew = true);
}
})
}
isNew && context.model.removeChild(modelData);
!isNew && (context.listenEnd.apply(context, isValid ? keys : [modelData]) !== false) && context.populate();
}, 30) }, 30)
}).on("change:" + view.cid, _.bind(context.notifyParent, context)) }).on("change:" + view.cid, _.bind(context.notifyParent, context))
} }
@ -84,7 +75,7 @@ BI.FloatBoxRouter = BI.inherit(BI.WRouter, {
remove: function (url, context) { remove: function (url, context) {
url = context.rootURL + "/" + url; url = context.rootURL + "/" + url;
if(this.controller){ if (this.controller) {
this.controller.remove(url); this.controller.remove(url);
delete this.store[url]; delete this.store[url];
this.views[url] && this.views[url].model.destroy(); this.views[url] && this.views[url].model.destroy();

6
src/core/events.js

@ -53,6 +53,12 @@ _.extend(BI, {
*/ */
DESTROY: '_DESTROY', DESTROY: '_DESTROY',
/**
* @static
* @property 取消挂载事件
*/
UNMOUNT: '_UNMOUNT',
/** /**
* @static * @static
* @property 清除选择 * @property 清除选择

2
src/core/func/dom.js

@ -19,7 +19,7 @@ BI.extend(jQuery.fn, {
* @private * @private
*/ */
__textKeywordMarked__: function (text, keyword, py) { __textKeywordMarked__: function (text, keyword, py) {
if (!BI.isKey(keyword)) { if (!BI.isKey(keyword) || (text + "").length > 100) {
return this.text((text + "").replaceAll(" ", " ")); return this.text((text + "").replaceAll(" ", " "));
} }
keyword = keyword + ""; keyword = keyword + "";

14
src/core/func/function.js

@ -104,7 +104,7 @@ BI.extend(BI.DOM, {
}, },
isColor: function (color) { isColor: function (color) {
return this.isRGBColor(color) || this.isHexColor(color); return color && (this.isRGBColor(color) || this.isHexColor(color));
}, },
isRGBColor: function (color) { isRGBColor: function (color) {
@ -122,12 +122,12 @@ BI.extend(BI.DOM, {
}, },
isDarkColor: function (hex) { isDarkColor: function (hex) {
if (!hex) { if (!hex || !this.isHexColor(hex)) {
return false; return false;
} }
var rgb = this.rgb2json(this.hex2rgb(hex)); var rgb = this.rgb2json(this.hex2rgb(hex));
var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114); var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 140) { if (grayLevel < 192/**网上给的是140**/) {
return true; return true;
} }
return false; return false;
@ -135,7 +135,7 @@ BI.extend(BI.DOM, {
//获取对比颜色 //获取对比颜色
getContrastColor: function (color) { getContrastColor: function (color) {
if (!color) { if (!color || !this.isColor(color)) {
return ""; return "";
} }
if (this.isDarkColor(color)) { if (this.isDarkColor(color)) {
@ -162,6 +162,9 @@ BI.extend(BI.DOM, {
if (!rgbColour) { if (!rgbColour) {
return {}; return {};
} }
if (!this.isRGBColor(rgbColour)) {
return {};
}
var rgbValues = rgbColour.match(/\d+(\.\d+)?/g); var rgbValues = rgbColour.match(/\d+(\.\d+)?/g);
return { return {
r: BI.parseInt(rgbValues[0]), r: BI.parseInt(rgbValues[0]),
@ -207,6 +210,9 @@ BI.extend(BI.DOM, {
if (!color) { if (!color) {
return ""; return "";
} }
if (!this.isHexColor(color)) {
return color;
}
var tempValue = "rgb(", colorArray; var tempValue = "rgb(", colorArray;
if (color.length === 7) { if (color.length === 7) {

4
src/core/model.js

@ -203,6 +203,10 @@ BI.Model = BI.inherit(BI.M, {
var copy = BI.UUID(), newKeys = BI.clone(keys); var copy = BI.UUID(), newKeys = BI.clone(keys);
keys.length > 1 ? newKeys.unshift(BI.deepClone(p[keys[keys.length - 1]])) : newKeys.unshift(BI.deepClone(g)); keys.length > 1 ? newKeys.unshift(BI.deepClone(p[keys[keys.length - 1]])) : newKeys.unshift(BI.deepClone(g));
var backup = self.similar.apply(self, newKeys); var backup = self.similar.apply(self, newKeys);
if (BI.isKey(backup.id)) {
copy = backup.id;
delete backup.id;
}
keys.length > 1 ? (p[copy] = backup, self[sset](keys[0], g, {silent: true})) : self[sset](copy, backup, {silent: true}); keys.length > 1 ? (p[copy] = backup, self[sset](keys[0], g, {silent: true})) : self[sset](copy, backup, {silent: true});
keys.unshift(copy); keys.unshift(copy);
!BI.has(self._tmp, keys[0]) && self.parent && self.parent._change(self); !BI.has(self._tmp, keys[0]) && self.parent && self.parent._change(self);

15
src/core/utils/detectElementResize.js

@ -18,10 +18,10 @@
_window = this _window = this
} }
var attachEvent = typeof document !== 'undefined' && document.attachEvent; var addEventListener = typeof document !== 'undefined' && document.addEventListener;
var stylesCreated = false; var stylesCreated = false;
if (!attachEvent) { if (addEventListener) {
var requestFrame = (function () { var requestFrame = (function () {
var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame || var raf = _window.requestAnimationFrame || _window.mozRequestAnimationFrame || _window.webkitRequestAnimationFrame ||
function (fn) { function (fn) {
@ -128,8 +128,7 @@
} }
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) element.attachEvent('onresize', fn); if (addEventListener){
else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === 'static') element.style.position = 'relative'; if (getComputedStyle(element).position === 'static') element.style.position = 'relative';
createStyles(); createStyles();
@ -149,17 +148,21 @@
}); });
} }
element.__resizeListeners__.push(fn); element.__resizeListeners__.push(fn);
} else {
element.attachEvent('onresize', fn);
} }
}; };
var removeResizeListener = function (element, fn) { var removeResizeListener = function (element, fn) {
if (attachEvent) element.detachEvent('onresize', fn); if (addEventListener) {
else {
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
if (!element.__resizeListeners__.length) { if (!element.__resizeListeners__.length) {
element.removeEventListener('scroll', scrollListener, true); element.removeEventListener('scroll', scrollListener, true);
element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);
} }
} else {
element.detachEvent('onresize', fn);
} }
}; };

2
src/core/var.js

@ -62,7 +62,7 @@ _.extend(BI, {
Horizontal: "horizontal" Horizontal: "horizontal"
}, },
Selection: { Selection: {
Default: -999, Default: -2,
None: -1, None: -1,
Single: 0, Single: 0,
Multi: 1, Multi: 1,

6
src/core/view.js

@ -10,6 +10,8 @@ BI.View = BI.inherit(BI.V, {
created: null, created: null,
beforeDestroyed: null,
destroyed: null, destroyed: null,
_init: function () { _init: function () {
@ -499,18 +501,22 @@ BI.View = BI.inherit(BI.V, {
}, },
_unMount: function () { _unMount: function () {
this.beforeDestroyed && this.beforeDestroyed();
BI.each(this._cardLayouts, function (name, card) { BI.each(this._cardLayouts, function (name, card) {
card && card._unMount(); card && card._unMount();
}); });
delete this._cardLayouts; delete this._cardLayouts;
delete this._cards; delete this._cards;
this.destroyed && this.destroyed(); this.destroyed && this.destroyed();
this.trigger(BI.Events.UNMOUNT);
this.off(); this.off();
}, },
_destroy: function () { _destroy: function () {
var self = this;
BI.each(this._cardLayouts, function (name, card) { BI.each(this._cardLayouts, function (name, card) {
card && card._unMount(); card && card._unMount();
BI.Layers.remove(name + self.cid);
}); });
delete this._cardLayouts; delete this._cardLayouts;
delete this._cards; delete this._cards;

23
src/core/widget.js

@ -37,6 +37,8 @@ BI.Widget = BI.inherit(BI.OB, {
update: function () { update: function () {
}, },
beforeDestroyed: null,
destroyed: null, destroyed: null,
_init: function () { _init: function () {
@ -198,7 +200,7 @@ BI.Widget = BI.inherit(BI.OB, {
} }
//递归将所有子组件使能 //递归将所有子组件使能
BI.each(this._children, function (i, child) { BI.each(this._children, function (i, child) {
child._setEnable && child._setEnable(enable); !child._manualSetEnable && child._setEnable && child._setEnable(enable);
}); });
}, },
@ -210,7 +212,7 @@ BI.Widget = BI.inherit(BI.OB, {
} }
//递归将所有子组件使有效 //递归将所有子组件使有效
BI.each(this._children, function (i, child) { BI.each(this._children, function (i, child) {
child._setValid && child._setValid(valid); !child._manualSetValid && child._setValid && child._setValid(valid);
}); });
}, },
@ -223,6 +225,7 @@ BI.Widget = BI.inherit(BI.OB, {
}, },
setEnable: function (enable) { setEnable: function (enable) {
this._manualSetEnable = true;
this._setEnable(enable); this._setEnable(enable);
if (enable === true) { if (enable === true) {
this.element.removeClass("base-disabled disabled"); this.element.removeClass("base-disabled disabled");
@ -244,7 +247,7 @@ BI.Widget = BI.inherit(BI.OB, {
}, },
setValid: function (valid) { setValid: function (valid) {
this.options.invalid = !valid; this._manualSetValid = true;
this._setValid(valid); this._setValid(valid);
if (valid === true) { if (valid === true) {
this.element.removeClass("base-invalid invalid"); this.element.removeClass("base-invalid invalid");
@ -253,6 +256,14 @@ BI.Widget = BI.inherit(BI.OB, {
} }
}, },
doBehavior: function () {
var args = arguments;
//递归将所有子组件使有效
BI.each(this._children, function (i, child) {
child.doBehavior && child.doBehavior.apply(child, args);
});
},
getWidth: function () { getWidth: function () {
return this.options.width; return this.options.width;
}, },
@ -387,18 +398,20 @@ BI.Widget = BI.inherit(BI.OB, {
}, },
__d: function () { __d: function () {
this.beforeDestroyed && this.beforeDestroyed();
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
widget._unMount && widget._unMount(); widget._unMount && widget._unMount();
}); });
this._children = {}; this._children = {};
this._parent = null; this._parent = null;
this._isMounted = false; this._isMounted = false;
this.destroyed && this.destroyed();
}, },
_unMount: function () { _unMount: function () {
this.__d(); this.__d();
this.fireEvent(BI.Events.UNMOUNT);
this.purgeListeners(); this.purgeListeners();
this.destroyed && this.destroyed();
}, },
isolate: function () { isolate: function () {
@ -418,14 +431,12 @@ BI.Widget = BI.inherit(BI.OB, {
_destroy: function () { _destroy: function () {
this.__d(); this.__d();
this.destroyed && this.destroyed();
this.element.destroy(); this.element.destroy();
this.purgeListeners(); this.purgeListeners();
}, },
destroy: function () { destroy: function () {
this.__d(); this.__d();
this.destroyed && this.destroyed();
this.element.destroy(); this.element.destroy();
this.fireEvent(BI.Events.DESTROY); this.fireEvent(BI.Events.DESTROY);
this.purgeListeners(); this.purgeListeners();

7
src/core/wrapper/layout/adapt/float.center.js

@ -29,15 +29,20 @@ BI.FloatCenterAdaptLayout = BI.inherit(BI.Layout, {
}, },
mounted: function () { mounted: function () {
var self = this;
var width = this.left.element.outerWidth(), var width = this.left.element.outerWidth(),
height = this.left.element.outerHeight(); height = this.left.element.outerHeight();
this.left.element.width(width).height(height).css("float", "none"); this.left.element.width(width).height(height).css("float", "none");
BI.remove(this._children, function (i, wi) {
if (wi === self.container) {
delete self._children[i];
}
});
BI.createWidget({ BI.createWidget({
type: "bi.center_adapt", type: "bi.center_adapt",
element: this, element: this,
items: [this.left] items: [this.left]
}); });
this.removeWidget(this.container);
}, },
stroke: function (items) { stroke: function (items) {

7
src/core/wrapper/layout/adapt/float.horizontal.js

@ -24,15 +24,20 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, {
}, },
mounted: function () { mounted: function () {
var self = this;
var width = this.left.element.width(), var width = this.left.element.width(),
height = this.left.element.height(); height = this.left.element.height();
this.left.element.width(width).height(height).css("float", "none"); this.left.element.width(width).height(height).css("float", "none");
BI.remove(this._children, function (i, wi) {
if (wi === self.container) {
delete self._children[i];
}
});
BI.createWidget({ BI.createWidget({
type: "bi.horizontal_auto", type: "bi.horizontal_auto",
element: this, element: this,
items: [this.left] items: [this.left]
}); });
this.removeWidget(this.container);
}, },
_addElement: function (i, item) { _addElement: function (i, item) {

3
src/css/base/colorchooser/colorchooser.trigger.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-chooser-trigger { .bi-color-chooser-trigger {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;

3
src/css/base/colorchooser/colorpicker/button.colorpicker.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-picker-button .color-picker-button-mask { .bi-color-picker-button .color-picker-button-mask {
border: 1px solid #1a1a1a; border: 1px solid #1a1a1a;
} }

3
src/css/base/colorchooser/colorpicker/editor.colorpicker.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-color-picker-editor .color-picker-editor-display { .bi-color-picker-editor .color-picker-editor-display {
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;

3
src/css/base/combo/combo.bubble.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble-combo .button-combo-triangle-wrapper { .bi-bubble-combo .button-combo-triangle-wrapper {
position: fixed !important; position: fixed !important;
} }

3
src/css/base/combo/popup.bubble.css

@ -1,6 +1,3 @@
/****添加计算宽度的--运算符直接需要space****/
/****** common color(常用颜色,可用于普遍场景) *****/
/**** custom color(自定义颜色,用于特定场景) ****/
.bi-bubble-popup-view { .bi-bubble-popup-view {
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

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

Loading…
Cancel
Save