guy 7 years ago
parent
commit
490d8ed6a9
  1. 34
      demo/js/case/pager/demo.direction_pager.js
  2. 1
      demo/js/widget/table/demo.page_table.js
  3. 88
      dist/_fineui.min.js
  4. 1
      dist/base.js
  5. 11
      dist/bundle.js
  6. 88
      dist/bundle.min.js
  7. 10
      dist/core.js
  8. 35
      dist/demo.js
  9. 88
      dist/fineui.min.js
  10. 1
      src/base/single/button/button.basic.js
  11. 10
      src/core/inject.js
  12. 10
      utils/utils.js

34
demo/js/case/pager/demo.direction_pager.js

@ -3,14 +3,46 @@ Demo.Func = BI.inherit(BI.Widget, {
baseCls: "demo-func"
},
mounted: function () {
this.pager.populate();
},
render: function () {
var self = this;
BI.createWidget({
type: "bi.vertical",
hgap: 200,
vgap: 50,
element: this,
items: [{
type: "bi.direction_pager"
type: "bi.direction_pager",
ref: function (_ref) {
self.pager = _ref;
},
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
hasPrev: function (v) {
return v > 1;
},
hasNext: function () {
return true;
},
firstPage: 1
},
vertical: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
hasPrev: function (v) {
return v > 1;
},
hasNext: function () {
return true;
},
firstPage: 1
}
}]
});
}

1
demo/js/widget/table/demo.page_table.js

@ -190,6 +190,7 @@ Demo.Func = BI.inherit(BI.Widget, {
crossHeader: crossHeader,
crossItems: crossItems
});
table1.populate();
// table1.populate(items, header, crossItems, crossHeader);
BI.createWidget({
type: "bi.absolute",

88
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/base.js vendored

@ -904,6 +904,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
if (o.action) {
BI.Actions.runAction(o.action, o);
}
BI.Actions.runGlobalAction(o);
}
},

11
dist/bundle.js vendored

@ -28800,7 +28800,12 @@ BI.extend(BI.DOM, {
};
var actions = {};
var globalAction;
BI.action = function (type, actionFn) {
if (BI.isFunction(type)) {
globalAction = type;
return;
}
if (!actions[type]) {
actions[type] = [];
}
@ -28861,7 +28866,7 @@ BI.extend(BI.DOM, {
console.error(e);
}
}
}
};
}(afns));
}
}
@ -28921,6 +28926,9 @@ BI.extend(BI.DOM, {
BI.each(actions[type], function (i, act) {
act(config);
});
},
runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments);
}
};
})();
@ -36412,6 +36420,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
if (o.action) {
BI.Actions.runAction(o.action, o);
}
BI.Actions.runGlobalAction(o);
}
},

88
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/core.js vendored

@ -28800,7 +28800,12 @@ BI.extend(BI.DOM, {
};
var actions = {};
var globalAction;
BI.action = function (type, actionFn) {
if (BI.isFunction(type)) {
globalAction = type;
return;
}
if (!actions[type]) {
actions[type] = [];
}
@ -28861,7 +28866,7 @@ BI.extend(BI.DOM, {
console.error(e);
}
}
}
};
}(afns));
}
}
@ -28921,6 +28926,9 @@ BI.extend(BI.DOM, {
BI.each(actions[type], function (i, act) {
act(config);
});
},
runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments);
}
};
})();

35
dist/demo.js vendored

@ -2797,14 +2797,46 @@ BI.shortcut("demo.all_count_pager", Demo.Func);Demo.Func = BI.inherit(BI.Widget,
baseCls: "demo-func"
},
mounted: function () {
this.pager.populate();
},
render: function () {
var self = this;
BI.createWidget({
type: "bi.vertical",
hgap: 200,
vgap: 50,
element: this,
items: [{
type: "bi.direction_pager"
type: "bi.direction_pager",
ref: function (_ref) {
self.pager = _ref;
},
horizontal: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
hasPrev: function (v) {
return v > 1;
},
hasNext: function () {
return true;
},
firstPage: 1
},
vertical: {
pages: false, // 总页数
curr: 1, // 初始化当前页, pages为数字时可用
hasPrev: function (v) {
return v > 1;
},
hasNext: function () {
return true;
},
firstPage: 1
}
}]
});
}
@ -13646,6 +13678,7 @@ BI.shortcut("demo.slider", Demo.Slider);Demo.Func = BI.inherit(BI.Widget, {
crossHeader: crossHeader,
crossItems: crossItems
});
table1.populate();
// table1.populate(items, header, crossItems, crossHeader);
BI.createWidget({
type: "bi.absolute",

88
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

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

@ -303,6 +303,7 @@ BI.BasicButton = BI.inherit(BI.Single, {
if (o.action) {
BI.Actions.runAction(o.action, o);
}
BI.Actions.runGlobalAction(o);
}
},

10
src/core/inject.js

@ -53,7 +53,12 @@
};
var actions = {};
var globalAction;
BI.action = function (type, actionFn) {
if (BI.isFunction(type)) {
globalAction = type;
return;
}
if (!actions[type]) {
actions[type] = [];
}
@ -114,7 +119,7 @@
console.error(e);
}
}
}
};
}(afns));
}
}
@ -174,6 +179,9 @@
BI.each(actions[type], function (i, act) {
act(config);
});
},
runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments);
}
};
})();

10
utils/utils.js

@ -13239,7 +13239,12 @@ _.extend(BI.OB.prototype, {
};
var actions = {};
var globalAction;
BI.action = function (type, actionFn) {
if (BI.isFunction(type)) {
globalAction = type;
return;
}
if (!actions[type]) {
actions[type] = [];
}
@ -13300,7 +13305,7 @@ _.extend(BI.OB.prototype, {
console.error(e);
}
}
}
};
}(afns));
}
}
@ -13360,6 +13365,9 @@ _.extend(BI.OB.prototype, {
BI.each(actions[type], function (i, act) {
act(config);
});
},
runGlobalAction: function () {
globalAction && globalAction.apply(null, arguments);
}
};
})();

Loading…
Cancel
Save