guy 7 years ago
parent
commit
99b9170338
  1. 46
      bi/core.js
  2. 30
      bi/widget.js
  3. 76
      dist/bundle.js
  4. 88
      dist/bundle.min.js
  5. 46
      dist/core.js
  6. 30
      dist/widget.js
  7. 45
      src/core/proto/jquery.compact.js
  8. 30
      src/widget/arrangement/arrangement.js

46
bi/core.js

@ -21189,51 +21189,7 @@ Function.prototype.after = function (func) {
func.apply(this, arguments); func.apply(this, arguments);
return ret; return ret;
} }
};//缓存this.element的操作数据 };if (jQuery) {
if (jQuery) {
function wrap(prefix, name) {
return "_bi-widget" + prefix + name;
}
(function ($) {
var css = $.fn.css;
$.fn.css = function (name, value) {
if (this._isWidget === true) {
var key;
//this.element不允许get样式
if (BI.isPlainObject(name)) {
for (key in name) {
this.css(key, name[key]);
}
return this;
}
key = wrap("css", name);
if (this[key] !== value) {
css.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return css.apply(this, arguments);
};
$.each(["width", "height"], function (index, name) {
var fn = $.fn[name];
$.fn[name] = function (value) {
if (this._isWidget === true && arguments.length === 1) {
var key = wrap("", name);
if (this[key] !== value) {
fn.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return fn.apply(this, arguments);
}
})
})(jQuery);
}if (jQuery) {
(function ($) { (function ($) {
// richer:容器在其各个边缘留出的空间 // richer:容器在其各个边缘留出的空间
if (!$.fn.insets) { if (!$.fn.insets) {

30
bi/widget.js

@ -1072,30 +1072,12 @@ BI.Arrangement = BI.inherit(BI.Widget, {
_applyRegion: function (regions) { _applyRegion: function (regions) {
var self = this, o = this.options; var self = this, o = this.options;
BI.each(regions || this.regions, function (i, region) { BI.each(regions || this.regions, function (i, region) {
if (region.el._left !== region.left) { region.el.element.css({
region.el.element.css({ left: region.left,
left: region.left top: region.top,
}); width: region.width,
region.el._left = region.left; height: region.height
} });
if (region.el._top !== region.top) {
region.el.element.css({
top: region.top
});
region.el._top = region.top;
}
if (region.el._width !== region.width) {
region.el.element.css({
width: region.width
});
region.el._width = region.width;
}
if (region.el._height !== region.height) {
region.el.element.css({
height: region.height
});
region.el._height = region.height;
}
}); });
this._applyContainer(); this._applyContainer();
this.ratio = this.getLayoutRatio(); this.ratio = this.getLayoutRatio();

76
dist/bundle.js vendored

@ -21240,51 +21240,7 @@ Function.prototype.after = function (func) {
func.apply(this, arguments); func.apply(this, arguments);
return ret; return ret;
} }
};//缓存this.element的操作数据 };if (jQuery) {
if (jQuery) {
function wrap(prefix, name) {
return "_bi-widget" + prefix + name;
}
(function ($) {
var css = $.fn.css;
$.fn.css = function (name, value) {
if (this._isWidget === true) {
var key;
//this.element不允许get样式
if (BI.isPlainObject(name)) {
for (key in name) {
this.css(key, name[key]);
}
return this;
}
key = wrap("css", name);
if (this[key] !== value) {
css.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return css.apply(this, arguments);
};
$.each(["width", "height"], function (index, name) {
var fn = $.fn[name];
$.fn[name] = function (value) {
if (this._isWidget === true && arguments.length === 1) {
var key = wrap("", name);
if (this[key] !== value) {
fn.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return fn.apply(this, arguments);
}
})
})(jQuery);
}if (jQuery) {
(function ($) { (function ($) {
// richer:容器在其各个边缘留出的空间 // richer:容器在其各个边缘留出的空间
if (!$.fn.insets) { if (!$.fn.insets) {
@ -76168,30 +76124,12 @@ BI.Arrangement = BI.inherit(BI.Widget, {
_applyRegion: function (regions) { _applyRegion: function (regions) {
var self = this, o = this.options; var self = this, o = this.options;
BI.each(regions || this.regions, function (i, region) { BI.each(regions || this.regions, function (i, region) {
if (region.el._left !== region.left) { region.el.element.css({
region.el.element.css({ left: region.left,
left: region.left top: region.top,
}); width: region.width,
region.el._left = region.left; height: region.height
} });
if (region.el._top !== region.top) {
region.el.element.css({
top: region.top
});
region.el._top = region.top;
}
if (region.el._width !== region.width) {
region.el.element.css({
width: region.width
});
region.el._width = region.width;
}
if (region.el._height !== region.height) {
region.el.element.css({
height: region.height
});
region.el._height = region.height;
}
}); });
this._applyContainer(); this._applyContainer();
this.ratio = this.getLayoutRatio(); this.ratio = this.getLayoutRatio();

88
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

46
dist/core.js vendored

@ -21189,51 +21189,7 @@ Function.prototype.after = function (func) {
func.apply(this, arguments); func.apply(this, arguments);
return ret; return ret;
} }
};//缓存this.element的操作数据 };if (jQuery) {
if (jQuery) {
function wrap(prefix, name) {
return "_bi-widget" + prefix + name;
}
(function ($) {
var css = $.fn.css;
$.fn.css = function (name, value) {
if (this._isWidget === true) {
var key;
//this.element不允许get样式
if (BI.isPlainObject(name)) {
for (key in name) {
this.css(key, name[key]);
}
return this;
}
key = wrap("css", name);
if (this[key] !== value) {
css.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return css.apply(this, arguments);
};
$.each(["width", "height"], function (index, name) {
var fn = $.fn[name];
$.fn[name] = function (value) {
if (this._isWidget === true && arguments.length === 1) {
var key = wrap("", name);
if (this[key] !== value) {
fn.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return fn.apply(this, arguments);
}
})
})(jQuery);
}if (jQuery) {
(function ($) { (function ($) {
// richer:容器在其各个边缘留出的空间 // richer:容器在其各个边缘留出的空间
if (!$.fn.insets) { if (!$.fn.insets) {

30
dist/widget.js vendored

@ -1072,30 +1072,12 @@ BI.Arrangement = BI.inherit(BI.Widget, {
_applyRegion: function (regions) { _applyRegion: function (regions) {
var self = this, o = this.options; var self = this, o = this.options;
BI.each(regions || this.regions, function (i, region) { BI.each(regions || this.regions, function (i, region) {
if (region.el._left !== region.left) { region.el.element.css({
region.el.element.css({ left: region.left,
left: region.left top: region.top,
}); width: region.width,
region.el._left = region.left; height: region.height
} });
if (region.el._top !== region.top) {
region.el.element.css({
top: region.top
});
region.el._top = region.top;
}
if (region.el._width !== region.width) {
region.el.element.css({
width: region.width
});
region.el._width = region.width;
}
if (region.el._height !== region.height) {
region.el.element.css({
height: region.height
});
region.el._height = region.height;
}
}); });
this._applyContainer(); this._applyContainer();
this.ratio = this.getLayoutRatio(); this.ratio = this.getLayoutRatio();

45
src/core/proto/jquery.compact.js

@ -1,45 +0,0 @@
//缓存this.element的操作数据
if (jQuery) {
function wrap(prefix, name) {
return "_bi-widget" + prefix + name;
}
(function ($) {
var css = $.fn.css;
$.fn.css = function (name, value) {
if (this._isWidget === true) {
var key;
//this.element不允许get样式
if (BI.isPlainObject(name)) {
for (key in name) {
this.css(key, name[key]);
}
return this;
}
key = wrap("css", name);
if (this[key] !== value) {
css.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return css.apply(this, arguments);
};
$.each(["width", "height"], function (index, name) {
var fn = $.fn[name];
$.fn[name] = function (value) {
if (this._isWidget === true && arguments.length === 1) {
var key = wrap("", name);
if (this[key] !== value) {
fn.apply(this, arguments);
this[key] = value;
return this;
}
return this;
}
return fn.apply(this, arguments);
}
})
})(jQuery);
}

30
src/widget/arrangement/arrangement.js

@ -272,30 +272,12 @@ BI.Arrangement = BI.inherit(BI.Widget, {
_applyRegion: function (regions) { _applyRegion: function (regions) {
var self = this, o = this.options; var self = this, o = this.options;
BI.each(regions || this.regions, function (i, region) { BI.each(regions || this.regions, function (i, region) {
if (region.el._left !== region.left) { region.el.element.css({
region.el.element.css({ left: region.left,
left: region.left top: region.top,
}); width: region.width,
region.el._left = region.left; height: region.height
} });
if (region.el._top !== region.top) {
region.el.element.css({
top: region.top
});
region.el._top = region.top;
}
if (region.el._width !== region.width) {
region.el.element.css({
width: region.width
});
region.el._width = region.width;
}
if (region.el._height !== region.height) {
region.el.element.css({
height: region.height
});
region.el._height = region.height;
}
}); });
this._applyContainer(); this._applyContainer();
this.ratio = this.getLayoutRatio(); this.ratio = this.getLayoutRatio();

Loading…
Cancel
Save