diff --git a/Gruntfile.js b/Gruntfile.js index 051b6f171c..bcdd9cec75 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -214,7 +214,7 @@ module.exports = function (grunt) { uglify: { options: { - banner: "/*! <%= pkg.name %> */\n" + banner: "/*! <%= pkg.name %> <%= grunt.template.today(\"dd-mm-yyyy\") %> */\n" }, dist: { files: { diff --git a/dist/base.css b/dist/base.css index 5de2d4bdf5..9a5dcf603d 100644 --- a/dist/base.css +++ b/dist/base.css @@ -1941,7 +1941,7 @@ ul.ztree.zTreeDragUL { box-shadow: 0 1px 5px 0 rgba(35, 46, 64, 0.2); } .bi-popup-view .list-view-toolbar { - line-height: 30px; + line-height: 24px; } .bi-popup-view .list-view-toolbar > .center-element { border-left: 1px solid #e8eaed; diff --git a/dist/base.js b/dist/base.js index fb96a85136..2085f46eb5 100644 --- a/dist/base.js +++ b/dist/base.js @@ -246,7 +246,7 @@ BI.Pane = BI.inherit(BI.Widget, { height: 25 }); BI.createWidget({ - type: "bi.vertical", + type: "bi.absolute_center_adapt", element: this, items: [this._tipText], bgap: 25 @@ -15694,7 +15694,7 @@ BI.PopupView = BI.inherit(BI.Widget, { return BI.createWidget({ type: "bi.center", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(o.buttons, { once: false, shadow: true, @@ -15717,7 +15717,7 @@ BI.PopupView = BI.inherit(BI.Widget, { }, resetHeight: function (h) { - var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 30) : 0, + var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 24) : 0, tabHeight = this.tab ? (this.tab.attr("height") || 25) : 0, toolHeight = ((this.tool && this.tool.attr("height")) || 25) * ((this.tool && this.tool.isVisible()) ? 1 : 0); this.view.resetHeight ? this.view.resetHeight(h - tbHeight - tabHeight - toolHeight - 2) : diff --git a/dist/bundle.css b/dist/bundle.css index cc3c763ab1..b69d50cbae 100644 --- a/dist/bundle.css +++ b/dist/bundle.css @@ -3729,7 +3729,7 @@ ul.ztree.zTreeDragUL { box-shadow: 0 1px 5px 0 rgba(35, 46, 64, 0.2); } .bi-popup-view .list-view-toolbar { - line-height: 30px; + line-height: 24px; } .bi-popup-view .list-view-toolbar > .center-element { border-left: 1px solid #e8eaed; @@ -3882,7 +3882,7 @@ ul.ztree.zTreeDragUL { border-radius: 2px 2px 2px 2px; } .bi-multi-select-search-pane .multi-select-toolbar { - color: #ff4949; + color: #faaa39; } .bi-multi-select-check-selected-button { z-index: 1; diff --git a/dist/bundle.js b/dist/bundle.js index 6f47e8f79c..4a781af1b7 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -36017,7 +36017,7 @@ BI.Pane = BI.inherit(BI.Widget, { height: 25 }); BI.createWidget({ - type: "bi.vertical", + type: "bi.absolute_center_adapt", element: this, items: [this._tipText], bgap: 25 @@ -51465,7 +51465,7 @@ BI.PopupView = BI.inherit(BI.Widget, { return BI.createWidget({ type: "bi.center", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(o.buttons, { once: false, shadow: true, @@ -51488,7 +51488,7 @@ BI.PopupView = BI.inherit(BI.Widget, { }, resetHeight: function (h) { - var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 30) : 0, + var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 24) : 0, tabHeight = this.tab ? (this.tab.attr("height") || 25) : 0, toolHeight = ((this.tool && this.tool.attr("height")) || 25) * ((this.tool && this.tool.isVisible()) ? 1 : 0); this.view.resetHeight ? this.view.resetHeight(h - tbHeight - tabHeight - toolHeight - 2) : @@ -78146,7 +78146,7 @@ BI.IconCombo = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.IconCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-icon-combo", - width: 28, + width: 24, height: 24, el: {}, popup: {}, @@ -78311,7 +78311,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { el: {}, items: [], iconCls: "", - width: 28, + width: 24, height: 24, isShowDown: true, value: "" @@ -78330,7 +78330,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { cls: "icon-combo-trigger-icon", iconCls: iconCls, disableSelected: true, - width: o.isShowDown ? o.width - 12 : o.width, + width: o.isShowDown ? o.width - 2 : o.width, height: o.height, iconWidth: o.iconWidth, iconHeight: o.iconHeight, @@ -81019,7 +81019,7 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, { this.buttongroup = BI.createWidget({ type: "bi.button_group", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(text, { type: "bi.text_button", once: false, @@ -90242,7 +90242,8 @@ BI.DownListPopup = BI.inherit(BI.Pane, { BI.createWidget({ type: "bi.vertical", element: this, - items: [this.popup] + items: [this.popup], + vgap: 5 }); }, @@ -90269,7 +90270,6 @@ BI.DownListPopup = BI.inherit(BI.Pane, { item.el.height = self.constants.height; item.el.iconCls2 = self.constants.nextIcon; item.popup = { - lgap: 4, el: { type: "bi.button_tree", chooseType: 0, @@ -90278,6 +90278,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, { }] }, + vgap: 5, maxHeight: 378 }; item.el.childValues = []; @@ -96598,9 +96599,10 @@ BI.shortcut("bi.multilayer_single_tree_mid_tree_leaf_item", BI.MultiLayerSingleT BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { constants: { - height: 24, + height: 12, lgap: 10, - tgap: 5 + tgap: 10, + bgap: 5 }, _defaultConfig: function () { @@ -96659,7 +96661,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { items: [{ height: this.constants.height, el: { - type: "bi.left", + type: "bi.vertical_adapt", cls: "multi-select-continue-select", items: [ { @@ -96667,18 +96669,18 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { type: "bi.label", text: BI.i18nText("BI-Selected_Data") }, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }, { el: this.continueSelect, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }] - } + }, + tgap: this.constants.tgap }, { height: "fill", - el: this.display + el: this.display, + tgap: this.constants.bgap }] }); }, @@ -96821,10 +96823,10 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -97205,10 +97207,10 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -97583,10 +97585,10 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -101922,7 +101924,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { signalError: "signalBubble", editorWidth: 114, columns: 5, - width: 30, + width: 24, rows: 1, numberErrorCls: "number-error", border: 1, @@ -101934,7 +101936,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { extraCls: "bi-number-interval", - height: 25, + height: 24, validation: "valid", closeMin: true }); @@ -103722,10 +103724,10 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 2, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, allValueGetter: function () { @@ -105971,7 +105973,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, { type: "bi.label", invisible: true, text: BI.i18nText("BI-Click_Blank_To_Select"), - cls: "single-select-toolbar", + cls: "multi-select-toolbar", height: this.constants.height }); @@ -107132,7 +107134,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { itemsCreator: o.itemsCreator, valueFormatter: o.valueFormatter, logic: { - dynamic: false + dynamic: true }, // onLoaded: o.onLoaded, el: {}, diff --git a/dist/case.js b/dist/case.js index 724574c695..ae535fb2f7 100644 --- a/dist/case.js +++ b/dist/case.js @@ -5646,7 +5646,7 @@ BI.IconCombo = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.IconCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-icon-combo", - width: 28, + width: 24, height: 24, el: {}, popup: {}, @@ -5811,7 +5811,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { el: {}, items: [], iconCls: "", - width: 28, + width: 24, height: 24, isShowDown: true, value: "" @@ -5830,7 +5830,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { cls: "icon-combo-trigger-icon", iconCls: iconCls, disableSelected: true, - width: o.isShowDown ? o.width - 12 : o.width, + width: o.isShowDown ? o.width - 2 : o.width, height: o.height, iconWidth: o.iconWidth, iconHeight: o.iconHeight, @@ -8519,7 +8519,7 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, { this.buttongroup = BI.createWidget({ type: "bi.button_group", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(text, { type: "bi.text_button", once: false, diff --git a/dist/fineui.css b/dist/fineui.css index 40a3e7780f..a93f4b56c8 100644 --- a/dist/fineui.css +++ b/dist/fineui.css @@ -3729,7 +3729,7 @@ ul.ztree.zTreeDragUL { box-shadow: 0 1px 5px 0 rgba(35, 46, 64, 0.2); } .bi-popup-view .list-view-toolbar { - line-height: 30px; + line-height: 24px; } .bi-popup-view .list-view-toolbar > .center-element { border-left: 1px solid #e8eaed; @@ -3882,7 +3882,7 @@ ul.ztree.zTreeDragUL { border-radius: 2px 2px 2px 2px; } .bi-multi-select-search-pane .multi-select-toolbar { - color: #ff4949; + color: #faaa39; } .bi-multi-select-check-selected-button { z-index: 1; diff --git a/dist/fineui.js b/dist/fineui.js index 93e27f14bd..e4ff2c6e26 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -36266,7 +36266,7 @@ BI.Pane = BI.inherit(BI.Widget, { height: 25 }); BI.createWidget({ - type: "bi.vertical", + type: "bi.absolute_center_adapt", element: this, items: [this._tipText], bgap: 25 @@ -51714,7 +51714,7 @@ BI.PopupView = BI.inherit(BI.Widget, { return BI.createWidget({ type: "bi.center", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(o.buttons, { once: false, shadow: true, @@ -51737,7 +51737,7 @@ BI.PopupView = BI.inherit(BI.Widget, { }, resetHeight: function (h) { - var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 30) : 0, + var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 24) : 0, tabHeight = this.tab ? (this.tab.attr("height") || 25) : 0, toolHeight = ((this.tool && this.tool.attr("height")) || 25) * ((this.tool && this.tool.isVisible()) ? 1 : 0); this.view.resetHeight ? this.view.resetHeight(h - tbHeight - tabHeight - toolHeight - 2) : @@ -78395,7 +78395,7 @@ BI.IconCombo = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.IconCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-icon-combo", - width: 28, + width: 24, height: 24, el: {}, popup: {}, @@ -78560,7 +78560,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { el: {}, items: [], iconCls: "", - width: 28, + width: 24, height: 24, isShowDown: true, value: "" @@ -78579,7 +78579,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { cls: "icon-combo-trigger-icon", iconCls: iconCls, disableSelected: true, - width: o.isShowDown ? o.width - 12 : o.width, + width: o.isShowDown ? o.width - 2 : o.width, height: o.height, iconWidth: o.iconWidth, iconHeight: o.iconHeight, @@ -81268,7 +81268,7 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, { this.buttongroup = BI.createWidget({ type: "bi.button_group", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(text, { type: "bi.text_button", once: false, @@ -90491,7 +90491,8 @@ BI.DownListPopup = BI.inherit(BI.Pane, { BI.createWidget({ type: "bi.vertical", element: this, - items: [this.popup] + items: [this.popup], + vgap: 5 }); }, @@ -90518,7 +90519,6 @@ BI.DownListPopup = BI.inherit(BI.Pane, { item.el.height = self.constants.height; item.el.iconCls2 = self.constants.nextIcon; item.popup = { - lgap: 4, el: { type: "bi.button_tree", chooseType: 0, @@ -90527,6 +90527,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, { }] }, + vgap: 5, maxHeight: 378 }; item.el.childValues = []; @@ -96847,9 +96848,10 @@ BI.shortcut("bi.multilayer_single_tree_mid_tree_leaf_item", BI.MultiLayerSingleT BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { constants: { - height: 24, + height: 12, lgap: 10, - tgap: 5 + tgap: 10, + bgap: 5 }, _defaultConfig: function () { @@ -96908,7 +96910,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { items: [{ height: this.constants.height, el: { - type: "bi.left", + type: "bi.vertical_adapt", cls: "multi-select-continue-select", items: [ { @@ -96916,18 +96918,18 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { type: "bi.label", text: BI.i18nText("BI-Selected_Data") }, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }, { el: this.continueSelect, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }] - } + }, + tgap: this.constants.tgap }, { height: "fill", - el: this.display + el: this.display, + tgap: this.constants.bgap }] }); }, @@ -97070,10 +97072,10 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -97454,10 +97456,10 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -97832,10 +97834,10 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -102171,7 +102173,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { signalError: "signalBubble", editorWidth: 114, columns: 5, - width: 30, + width: 24, rows: 1, numberErrorCls: "number-error", border: 1, @@ -102183,7 +102185,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { extraCls: "bi-number-interval", - height: 25, + height: 24, validation: "valid", closeMin: true }); @@ -103971,10 +103973,10 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 2, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, allValueGetter: function () { @@ -106220,7 +106222,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, { type: "bi.label", invisible: true, text: BI.i18nText("BI-Click_Blank_To_Select"), - cls: "single-select-toolbar", + cls: "multi-select-toolbar", height: this.constants.height }); @@ -107381,7 +107383,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { itemsCreator: o.itemsCreator, valueFormatter: o.valueFormatter, logic: { - dynamic: false + dynamic: true }, // onLoaded: o.onLoaded, el: {}, diff --git a/dist/widget.css b/dist/widget.css index a704ad9b9a..aef8e72ffd 100644 --- a/dist/widget.css +++ b/dist/widget.css @@ -137,7 +137,7 @@ border-radius: 2px 2px 2px 2px; } .bi-multi-select-search-pane .multi-select-toolbar { - color: #ff4949; + color: #faaa39; } .bi-multi-select-check-selected-button { z-index: 1; diff --git a/dist/widget.js b/dist/widget.js index 12fb23286e..86d554cbd1 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -2554,7 +2554,8 @@ BI.DownListPopup = BI.inherit(BI.Pane, { BI.createWidget({ type: "bi.vertical", element: this, - items: [this.popup] + items: [this.popup], + vgap: 5 }); }, @@ -2581,7 +2582,6 @@ BI.DownListPopup = BI.inherit(BI.Pane, { item.el.height = self.constants.height; item.el.iconCls2 = self.constants.nextIcon; item.popup = { - lgap: 4, el: { type: "bi.button_tree", chooseType: 0, @@ -2590,6 +2590,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, { }] }, + vgap: 5, maxHeight: 378 }; item.el.childValues = []; @@ -8910,9 +8911,10 @@ BI.shortcut("bi.multilayer_single_tree_mid_tree_leaf_item", BI.MultiLayerSingleT BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { constants: { - height: 24, + height: 12, lgap: 10, - tgap: 5 + tgap: 10, + bgap: 5 }, _defaultConfig: function () { @@ -8971,7 +8973,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { items: [{ height: this.constants.height, el: { - type: "bi.left", + type: "bi.vertical_adapt", cls: "multi-select-continue-select", items: [ { @@ -8979,18 +8981,18 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { type: "bi.label", text: BI.i18nText("BI-Selected_Data") }, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }, { el: this.continueSelect, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }] - } + }, + tgap: this.constants.tgap }, { height: "fill", - el: this.display + el: this.display, + tgap: this.constants.bgap }] }); }, @@ -9133,10 +9135,10 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -9517,10 +9519,10 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -9895,10 +9897,10 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, @@ -14234,7 +14236,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { signalError: "signalBubble", editorWidth: 114, columns: 5, - width: 30, + width: 24, rows: 1, numberErrorCls: "number-error", border: 1, @@ -14246,7 +14248,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { extraCls: "bi-number-interval", - height: 25, + height: 24, validation: "valid", closeMin: true }); @@ -16034,10 +16036,10 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 2, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, allValueGetter: function () { @@ -18283,7 +18285,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, { type: "bi.label", invisible: true, text: BI.i18nText("BI-Click_Blank_To_Select"), - cls: "single-select-toolbar", + cls: "multi-select-toolbar", height: this.constants.height }); @@ -19444,7 +19446,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { itemsCreator: o.itemsCreator, valueFormatter: o.valueFormatter, logic: { - dynamic: false + dynamic: true }, // onLoaded: o.onLoaded, el: {}, diff --git a/src/base/layer/layer.popup.js b/src/base/layer/layer.popup.js index f73c82f2b7..b7f964db34 100644 --- a/src/base/layer/layer.popup.js +++ b/src/base/layer/layer.popup.js @@ -129,7 +129,7 @@ BI.PopupView = BI.inherit(BI.Widget, { return BI.createWidget({ type: "bi.center", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(o.buttons, { once: false, shadow: true, @@ -152,7 +152,7 @@ BI.PopupView = BI.inherit(BI.Widget, { }, resetHeight: function (h) { - var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 30) : 0, + var tbHeight = this.toolbar ? (this.toolbar.attr("height") || 24) : 0, tabHeight = this.tab ? (this.tab.attr("height") || 25) : 0, toolHeight = ((this.tool && this.tool.attr("height")) || 25) * ((this.tool && this.tool.isVisible()) ? 1 : 0); this.view.resetHeight ? this.view.resetHeight(h - tbHeight - tabHeight - toolHeight - 2) : diff --git a/src/base/pane.js b/src/base/pane.js index 14b7207513..49c91e58fc 100644 --- a/src/base/pane.js +++ b/src/base/pane.js @@ -41,7 +41,7 @@ BI.Pane = BI.inherit(BI.Widget, { height: 25 }); BI.createWidget({ - type: "bi.vertical", + type: "bi.absolute_center_adapt", element: this, items: [this._tipText], bgap: 25 diff --git a/src/case/combo/iconcombo/combo.icon.js b/src/case/combo/iconcombo/combo.icon.js index 84185a4f8e..409e1a0032 100644 --- a/src/case/combo/iconcombo/combo.icon.js +++ b/src/case/combo/iconcombo/combo.icon.js @@ -8,7 +8,7 @@ BI.IconCombo = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.IconCombo.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-icon-combo", - width: 28, + width: 24, height: 24, el: {}, popup: {}, diff --git a/src/case/combo/iconcombo/trigger.iconcombo.js b/src/case/combo/iconcombo/trigger.iconcombo.js index 7d1c4431ac..e6042f337a 100644 --- a/src/case/combo/iconcombo/trigger.iconcombo.js +++ b/src/case/combo/iconcombo/trigger.iconcombo.js @@ -11,7 +11,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { el: {}, items: [], iconCls: "", - width: 28, + width: 24, height: 24, isShowDown: true, value: "" @@ -30,7 +30,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { cls: "icon-combo-trigger-icon", iconCls: iconCls, disableSelected: true, - width: o.isShowDown ? o.width - 12 : o.width, + width: o.isShowDown ? o.width - 2 : o.width, height: o.height, iconWidth: o.iconWidth, iconHeight: o.iconHeight, diff --git a/src/case/layer/layer.multipopup.js b/src/case/layer/layer.multipopup.js index 15834e60c5..b063a758cf 100644 --- a/src/case/layer/layer.multipopup.js +++ b/src/case/layer/layer.multipopup.js @@ -35,7 +35,7 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, { this.buttongroup = BI.createWidget({ type: "bi.button_group", cls: "list-view-toolbar bi-high-light bi-border-top", - height: 30, + height: 24, items: BI.createItems(text, { type: "bi.text_button", once: false, diff --git a/src/css/base/view/popupview.css b/src/css/base/view/popupview.css index 991d0bf928..bb4ae6c3ba 100644 --- a/src/css/base/view/popupview.css +++ b/src/css/base/view/popupview.css @@ -17,7 +17,7 @@ box-shadow: 0 1px 5px 0 rgba(35, 46, 64, 0.2); } .bi-popup-view .list-view-toolbar { - line-height: 30px; + line-height: 24px; } .bi-popup-view .list-view-toolbar > .center-element { border-left: 1px solid #e8eaed; diff --git a/src/css/widget/multiselect/search/multiselect.css b/src/css/widget/multiselect/search/multiselect.css index f34e916ad8..3d881ba360 100644 --- a/src/css/widget/multiselect/search/multiselect.css +++ b/src/css/widget/multiselect/search/multiselect.css @@ -1,3 +1,3 @@ .bi-multi-select-search-pane .multi-select-toolbar { - color: #ff4949; + color: #faaa39; } diff --git a/src/less/base/view/popupview.less b/src/less/base/view/popupview.less index a0158de34e..cd1697eb1b 100644 --- a/src/less/base/view/popupview.less +++ b/src/less/base/view/popupview.less @@ -14,7 +14,7 @@ .box-shadow(0 1px 5px 0, fade(@color-bi-background-black, 20)); } & .list-view-toolbar { - line-height: 30px; + line-height: 24px; & > .center-element { border-left: 1px solid @color-bi-border-line; } diff --git a/src/less/widget/multiselect/search/multiselect.search.pane.less b/src/less/widget/multiselect/search/multiselect.search.pane.less index 58df8e0726..6f31a3dcb3 100644 --- a/src/less/widget/multiselect/search/multiselect.search.pane.less +++ b/src/less/widget/multiselect/search/multiselect.search.pane.less @@ -3,6 +3,6 @@ .bi-multi-select-search-pane{ .multi-select-toolbar{ - color: @color-bi-text-failure; + color: @color-bi-text-redmark; } } \ No newline at end of file diff --git a/src/widget/downlist/popup.downlist.js b/src/widget/downlist/popup.downlist.js index f9974604a4..1de6027770 100644 --- a/src/widget/downlist/popup.downlist.js +++ b/src/widget/downlist/popup.downlist.js @@ -70,7 +70,8 @@ BI.DownListPopup = BI.inherit(BI.Pane, { BI.createWidget({ type: "bi.vertical", element: this, - items: [this.popup] + items: [this.popup], + vgap: 5 }); }, @@ -97,7 +98,6 @@ BI.DownListPopup = BI.inherit(BI.Pane, { item.el.height = self.constants.height; item.el.iconCls2 = self.constants.nextIcon; item.popup = { - lgap: 4, el: { type: "bi.button_tree", chooseType: 0, @@ -106,6 +106,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, { }] }, + vgap: 5, maxHeight: 378 }; item.el.childValues = []; diff --git a/src/widget/multiselect/check/multiselect.check.pane.js b/src/widget/multiselect/check/multiselect.check.pane.js index 217fdc64ac..d9b2b8b9cc 100644 --- a/src/widget/multiselect/check/multiselect.check.pane.js +++ b/src/widget/multiselect/check/multiselect.check.pane.js @@ -6,9 +6,10 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { constants: { - height: 24, + height: 12, lgap: 10, - tgap: 5 + tgap: 10, + bgap: 5 }, _defaultConfig: function () { @@ -67,7 +68,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { items: [{ height: this.constants.height, el: { - type: "bi.left", + type: "bi.vertical_adapt", cls: "multi-select-continue-select", items: [ { @@ -75,18 +76,18 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, { type: "bi.label", text: BI.i18nText("BI-Selected_Data") }, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }, { el: this.continueSelect, - lgap: this.constants.lgap, - tgap: this.constants.tgap + lgap: this.constants.lgap }] - } + }, + tgap: this.constants.tgap }, { height: "fill", - el: this.display + el: this.display, + tgap: this.constants.bgap }] }); }, diff --git a/src/widget/multiselect/multiselect.combo.js b/src/widget/multiselect/multiselect.combo.js index ed7b16a8fb..cb2cba8aea 100644 --- a/src/widget/multiselect/multiselect.combo.js +++ b/src/widget/multiselect/multiselect.combo.js @@ -37,10 +37,10 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, diff --git a/src/widget/multiselect/multiselect.insert.combo.js b/src/widget/multiselect/multiselect.insert.combo.js index 56ebf08a5c..e824477b21 100644 --- a/src/widget/multiselect/multiselect.insert.combo.js +++ b/src/widget/multiselect/multiselect.insert.combo.js @@ -34,10 +34,10 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, diff --git a/src/widget/multiselect/multiselect.insert.combo.nobar.js b/src/widget/multiselect/multiselect.insert.combo.nobar.js index e647b5457d..b3a4382d7e 100644 --- a/src/widget/multiselect/multiselect.insert.combo.nobar.js +++ b/src/widget/multiselect/multiselect.insert.combo.nobar.js @@ -37,10 +37,10 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 1, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, valueFormatter: o.valueFormatter, diff --git a/src/widget/numberinterval/numberinterval.js b/src/widget/numberinterval/numberinterval.js index 243f10e6c9..8059254752 100644 --- a/src/widget/numberinterval/numberinterval.js +++ b/src/widget/numberinterval/numberinterval.js @@ -11,7 +11,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { signalError: "signalBubble", editorWidth: 114, columns: 5, - width: 30, + width: 24, rows: 1, numberErrorCls: "number-error", border: 1, @@ -23,7 +23,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { extraCls: "bi-number-interval", - height: 25, + height: 24, validation: "valid", closeMin: true }); diff --git a/src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js b/src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js index e97a8b3e95..e170da4176 100644 --- a/src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js +++ b/src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js @@ -39,10 +39,10 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { // adapter: this.popup, masker: { offset: { - left: 1, - top: 1, - right: 2, - bottom: 33 + left: 0, + top: 0, + right: 0, + bottom: 26 } }, allValueGetter: function () { diff --git a/src/widget/singleselect/search/singleselect.search.pane.js b/src/widget/singleselect/search/singleselect.search.pane.js index e02897d630..8e79732524 100644 --- a/src/widget/singleselect/search/singleselect.search.pane.js +++ b/src/widget/singleselect/search/singleselect.search.pane.js @@ -30,7 +30,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, { type: "bi.label", invisible: true, text: BI.i18nText("BI-Click_Blank_To_Select"), - cls: "single-select-toolbar", + cls: "multi-select-toolbar", height: this.constants.height }); diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index c5a79a85f0..4af977ef89 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -28,7 +28,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { itemsCreator: o.itemsCreator, valueFormatter: o.valueFormatter, logic: { - dynamic: false + dynamic: true }, // onLoaded: o.onLoaded, el: {},