Browse Source

Merge branch 'master' of ssh://cloud.finedevelop.com:7999/~windy/fineui

# Conflicts:
#	dist/bundle.min.js
#	dist/fineui.min.js
#	dist/utils.min.js
es6
windy 6 years ago
parent
commit
03c53d58d4
  1. 2
      Gruntfile.js
  2. 8
      dist/base.css
  3. 20
      dist/base.js
  4. 8
      dist/bundle.css
  5. 54
      dist/bundle.js
  6. 2
      dist/bundle.min.css
  7. 13
      dist/case.js
  8. 21
      dist/core.js
  9. 8
      dist/fineui.css
  10. 54
      dist/fineui.js
  11. 2
      dist/fineui.min.css
  12. 53
      dist/fineui_without_jquery_polyfill.js
  13. 10
      src/base/collection/collection.js
  14. 10
      src/base/grid/grid.js
  15. 2
      src/case/combo/bubblecombo/popup.bubble.js
  16. 2
      src/case/layer/panel.js
  17. 0
      src/core/platform/web/ajax.js
  18. 0
      src/core/platform/web/config.js
  19. 0
      src/core/platform/web/detectElementResize.js
  20. 1
      src/core/platform/web/dom.js
  21. 0
      src/core/platform/web/eventlistener.js
  22. 0
      src/core/platform/web/function.js
  23. 0
      src/core/platform/web/jquery/_jquery.js
  24. 0
      src/core/platform/web/jquery/event.js
  25. 0
      src/core/platform/web/jquery/extend.js
  26. 0
      src/core/platform/web/jquery/fn.js
  27. 0
      src/core/platform/web/load.js
  28. 20
      src/core/wrapper/layout.js
  29. 5
      src/css/base/combo/combo.css
  30. 3
      src/css/base/layer/panel.css
  31. 3
      src/less/base/combo/combo.searchtextvalue.less
  32. 1
      src/less/base/layer/panel.less

2
Gruntfile.js

@ -126,7 +126,7 @@ module.exports = function (grunt) {
"src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js",
"!src/core/platform/dom/**/*.js",
"!src/core/platform/web/**/*.js",
"src/data/data.js",
"src/data/**/*.js",

8
dist/base.css vendored

@ -526,6 +526,11 @@
.bi-search-text-value-combo .trigger-icon-button {
font-size: 16px;
}
.bi-search-text-value-combo .search-text-value-trigger {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-search-text-value-combo.combo-error .bi-search-text-value-trigger .bi-text-button {
color: #ff4949;
}
@ -622,9 +627,6 @@
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-panel .panel-title {
background-color: #F2F4F7;
}
.bi-panel .panel-title .panel-title-text {
cursor: text;
font-size: 14px;

20
dist/base.js vendored

@ -2596,11 +2596,13 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this._calculateSizeAndPositionData();
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -5338,11 +5340,13 @@ BI.GridView = BI.inherit(BI.Widget, {
if (o.items.length > 0) {
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},

8
dist/bundle.css vendored

@ -2480,6 +2480,11 @@ textarea {
.bi-search-text-value-combo .trigger-icon-button {
font-size: 16px;
}
.bi-search-text-value-combo .search-text-value-trigger {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-search-text-value-combo.combo-error .bi-search-text-value-trigger .bi-text-button {
color: #ff4949;
}
@ -2576,9 +2581,6 @@ textarea {
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-panel .panel-title {
background-color: #F2F4F7;
}
.bi-panel .panel-title .panel-title-text {
cursor: text;
font-size: 14px;

54
dist/bundle.js vendored

@ -14976,10 +14976,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
});
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
prependItems: function (items) {
@ -14995,10 +14997,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
}
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
getValue: function () {
@ -19149,6 +19153,7 @@ BI.prepares.push(function () {
toElement.on(eventKey, handler);
});
});
toElement.data(fromElement.data());
var fromChildren = fromElement.children(), toChildren = toElement.children();
if(fromChildren.length !== toChildren.length) {
throw new Error("不匹配");
@ -37947,11 +37952,13 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this._calculateSizeAndPositionData();
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -40689,11 +40696,13 @@ BI.GridView = BI.inherit(BI.Widget, {
if (o.items.length > 0) {
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -52876,7 +52885,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true,
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
@ -52905,7 +52914,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}
});
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);/**
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);
/**
* Created by Young's on 2016/4/28.
*/
BI.EditorIconCheckCombo = BI.inherit(BI.Widget, {
@ -53563,7 +53573,8 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
});
BI.SearchTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);/**
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);
/**
* Created by Windy on 2018/2/5.
*/
BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
@ -55892,7 +55903,7 @@ BI.Panel = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-border-bottom",
cls: "panel-title bi-header-background bi-border-bottom",
height: 29,
items: {
left: [this.text],
@ -55911,7 +55922,8 @@ BI.Panel = BI.inherit(BI.Widget, {
});
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE";
BI.shortcut("bi.panel", BI.Panel);BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
BI.shortcut("bi.panel", BI.Panel);
BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
props: {
extraCls: "bi-line-segment-button bi-list-item-effect",

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

13
dist/case.js vendored

@ -4142,7 +4142,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true,
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
@ -4171,7 +4171,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}
});
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);/**
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);
/**
* Created by Young's on 2016/4/28.
*/
BI.EditorIconCheckCombo = BI.inherit(BI.Widget, {
@ -4829,7 +4830,8 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
});
BI.SearchTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);/**
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);
/**
* Created by Windy on 2018/2/5.
*/
BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
@ -7158,7 +7160,7 @@ BI.Panel = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-border-bottom",
cls: "panel-title bi-header-background bi-border-bottom",
height: 29,
items: {
left: [this.text],
@ -7177,7 +7179,8 @@ BI.Panel = BI.inherit(BI.Widget, {
});
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE";
BI.shortcut("bi.panel", BI.Panel);BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
BI.shortcut("bi.panel", BI.Panel);
BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
props: {
extraCls: "bi-line-segment-button bi-list-item-effect",

21
dist/core.js vendored

@ -14976,10 +14976,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
});
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
prependItems: function (items) {
@ -14995,10 +14997,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
}
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
getValue: function () {
@ -19149,6 +19153,7 @@ BI.prepares.push(function () {
toElement.on(eventKey, handler);
});
});
toElement.data(fromElement.data());
var fromChildren = fromElement.children(), toChildren = toElement.children();
if(fromChildren.length !== toChildren.length) {
throw new Error("不匹配");

8
dist/fineui.css vendored

@ -2480,6 +2480,11 @@ textarea {
.bi-search-text-value-combo .trigger-icon-button {
font-size: 16px;
}
.bi-search-text-value-combo .search-text-value-trigger {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-search-text-value-combo.combo-error .bi-search-text-value-trigger .bi-text-button {
color: #ff4949;
}
@ -2576,9 +2581,6 @@ textarea {
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-panel .panel-title {
background-color: #F2F4F7;
}
.bi-panel .panel-title .panel-title-text {
cursor: text;
font-size: 14px;

54
dist/fineui.js vendored

@ -15218,10 +15218,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
});
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
prependItems: function (items) {
@ -15237,10 +15239,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
}
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
getValue: function () {
@ -19391,6 +19395,7 @@ BI.prepares.push(function () {
toElement.on(eventKey, handler);
});
});
toElement.data(fromElement.data());
var fromChildren = fromElement.children(), toChildren = toElement.children();
if(fromChildren.length !== toChildren.length) {
throw new Error("不匹配");
@ -38189,11 +38194,13 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this._calculateSizeAndPositionData();
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -40931,11 +40938,13 @@ BI.GridView = BI.inherit(BI.Widget, {
if (o.items.length > 0) {
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -53118,7 +53127,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true,
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
@ -53147,7 +53156,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}
});
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);/**
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);
/**
* Created by Young's on 2016/4/28.
*/
BI.EditorIconCheckCombo = BI.inherit(BI.Widget, {
@ -53805,7 +53815,8 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
});
BI.SearchTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);/**
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);
/**
* Created by Windy on 2018/2/5.
*/
BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
@ -56134,7 +56145,7 @@ BI.Panel = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-border-bottom",
cls: "panel-title bi-header-background bi-border-bottom",
height: 29,
items: {
left: [this.text],
@ -56153,7 +56164,8 @@ BI.Panel = BI.inherit(BI.Widget, {
});
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE";
BI.shortcut("bi.panel", BI.Panel);BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
BI.shortcut("bi.panel", BI.Panel);
BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
props: {
extraCls: "bi-line-segment-button bi-list-item-effect",

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

53
dist/fineui_without_jquery_polyfill.js vendored

@ -14722,10 +14722,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
});
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
prependItems: function (items) {
@ -14741,10 +14743,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
}
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
getValue: function () {
@ -25857,11 +25861,13 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this._calculateSizeAndPositionData();
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -28599,11 +28605,13 @@ BI.GridView = BI.inherit(BI.Widget, {
if (o.items.length > 0) {
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},
@ -36053,7 +36061,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true,
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
@ -36082,7 +36090,8 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
}
});
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);/**
BI.shortcut("bi.text_bubble_bar_popup_view", BI.TextBubblePopupBarView);
/**
* Created by Young's on 2016/4/28.
*/
BI.EditorIconCheckCombo = BI.inherit(BI.Widget, {
@ -36740,7 +36749,8 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
});
BI.SearchTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);/**
BI.shortcut("bi.search_text_value_combo", BI.SearchTextValueCombo);
/**
* Created by Windy on 2018/2/5.
*/
BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
@ -39069,7 +39079,7 @@ BI.Panel = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-border-bottom",
cls: "panel-title bi-header-background bi-border-bottom",
height: 29,
items: {
left: [this.text],
@ -39088,7 +39098,8 @@ BI.Panel = BI.inherit(BI.Widget, {
});
BI.Panel.EVENT_CHANGE = "Panel.EVENT_CHANGE";
BI.shortcut("bi.panel", BI.Panel);BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
BI.shortcut("bi.panel", BI.Panel);
BI.LinearSegmentButton = BI.inherit(BI.BasicButton, {
props: {
extraCls: "bi-line-segment-button bi-list-item-effect",

10
src/base/collection/collection.js

@ -59,11 +59,13 @@ BI.CollectionView = BI.inherit(BI.Widget, {
this._calculateSizeAndPositionData();
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},

10
src/base/grid/grid.js

@ -61,11 +61,13 @@ BI.GridView = BI.inherit(BI.Widget, {
if (o.items.length > 0) {
this._populate();
}
},
mounted: function () {
var o = this.options;
if (o.scrollLeft !== 0 || o.scrollTop !== 0) {
BI.nextTick(function () {
self.element.scrollTop(o.scrollTop);
self.element.scrollLeft(o.scrollLeft);
});
this.element.scrollTop(o.scrollTop);
this.element.scrollLeft(o.scrollLeft);
}
},

2
src/case/combo/bubblecombo/popup.bubble.js

@ -156,7 +156,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true,
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);

2
src/case/layer/panel.js

@ -57,7 +57,7 @@ BI.Panel = BI.inherit(BI.Widget, {
return {
el: {
type: "bi.left_right_vertical_adapt",
cls: "panel-title bi-border-bottom",
cls: "panel-title bi-header-background bi-border-bottom",
height: 29,
items: {
left: [this.text],

0
src/core/platform/dom/ajax.js → src/core/platform/web/ajax.js

0
src/core/platform/dom/config.js → src/core/platform/web/config.js

0
src/core/platform/dom/detectElementResize.js → src/core/platform/web/detectElementResize.js

1
src/core/platform/dom/dom.js → src/core/platform/web/dom.js

@ -15,6 +15,7 @@
toElement.on(eventKey, handler);
});
});
toElement.data(fromElement.data());
var fromChildren = fromElement.children(), toChildren = toElement.children();
if(fromChildren.length !== toChildren.length) {
throw new Error("不匹配");

0
src/core/platform/dom/eventlistener.js → src/core/platform/web/eventlistener.js

0
src/core/platform/dom/function.js → src/core/platform/web/function.js

0
src/core/platform/dom/jquery/_jquery.js → src/core/platform/web/jquery/_jquery.js vendored

0
src/core/platform/dom/jquery/event.js → src/core/platform/web/jquery/event.js vendored

0
src/core/platform/dom/jquery/extend.js → src/core/platform/web/jquery/extend.js vendored

0
src/core/platform/dom/jquery/fn.js → src/core/platform/web/jquery/fn.js vendored

0
src/core/platform/dom/load.js → src/core/platform/web/load.js

20
src/core/wrapper/layout.js

@ -307,10 +307,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
});
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().append(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
prependItems: function (items) {
@ -326,10 +328,12 @@ BI.Layout = BI.inherit(BI.Widget, {
added.push(w);
fragment.appendChild(w.element[0]);
}
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
if (this._isMounted) {
this._getWrapper().prepend(fragment);
BI.each(added, function (i, w) {
w._mount();
});
}
},
getValue: function () {

5
src/css/base/combo/combo.css

@ -105,6 +105,11 @@
.bi-search-text-value-combo .trigger-icon-button {
font-size: 16px;
}
.bi-search-text-value-combo .search-text-value-trigger {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-search-text-value-combo.combo-error .bi-search-text-value-trigger .bi-text-button {
color: #ff4949;
}

3
src/css/base/layer/panel.css

@ -3,9 +3,6 @@
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-panel .panel-title {
background-color: #F2F4F7;
}
.bi-panel .panel-title .panel-title-text {
cursor: text;
font-size: 14px;

3
src/less/base/combo/combo.searchtextvalue.less

@ -4,6 +4,9 @@
& .trigger-icon-button{
font-size: 16px;
}
& .search-text-value-trigger{
.border-radius(2px);
}
&.combo-error {
& .bi-search-text-value-trigger{
& .bi-text-button {

1
src/less/base/layer/panel.less

@ -3,7 +3,6 @@
.bi-panel{
.border-radius(2px);
.panel-title{
background-color: @color-bi-background-light-gray;
& .panel-title-text{
cursor: text;
font-size: @font-size-14;

Loading…
Cancel
Save