Browse Source

BI-34259 弹窗按钮统一调整

es6
王瑞 6 years ago
parent
commit
04eeb2d982
  1. 52
      dist/bundle.ie.js
  2. 10
      dist/bundle.ie.min.js
  3. 52
      dist/bundle.js
  4. 12
      dist/bundle.min.js
  5. 52
      dist/case.js
  6. 52
      dist/fineui.ie.js
  7. 10
      dist/fineui.ie.min.js
  8. 52
      dist/fineui.js
  9. 12
      dist/fineui.min.js
  10. 52
      dist/fineui_without_jquery_polyfill.js
  11. 2
      dist/utils.min.js
  12. 52
      src/case/combo/bubblecombo/popup.bubble.js

52
dist/bundle.ie.js vendored

@ -52592,7 +52592,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -52603,9 +52606,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -52638,11 +52641,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -52663,22 +52688,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

10
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

52
dist/bundle.js vendored

@ -52996,7 +52996,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -53007,9 +53010,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -53042,11 +53045,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -53067,22 +53092,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

12
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

52
dist/case.js vendored

@ -4068,7 +4068,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -4079,9 +4082,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -4114,11 +4117,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -4139,22 +4164,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

52
dist/fineui.ie.js vendored

@ -52834,7 +52834,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -52845,9 +52848,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -52880,11 +52883,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -52905,22 +52930,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

10
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

52
dist/fineui.js vendored

@ -53238,7 +53238,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -53249,9 +53252,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -53284,11 +53287,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -53309,22 +53334,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

12
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

52
dist/fineui_without_jquery_polyfill.js vendored

@ -36316,7 +36316,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -36327,9 +36330,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -36362,11 +36365,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -36387,22 +36412,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

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

@ -82,7 +82,10 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
_defaultConfig: function () {
return BI.extend(BI.BubblePopupBarView.superclass._defaultConfig.apply(this, arguments), {
extraCls: "bi-bubble-bar-popup-view",
buttons: [{value: BI.i18nText("BI-Basic_Cancel"), ghost: true}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
ghost: true
}, {value: BI.i18nText(BI.i18nText("BI-Basic_Sure"))}]
});
},
_init: function () {
@ -93,9 +96,9 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
var items = [];
BI.each(o.buttons, function (i, buttonOpt) {
if(BI.isWidget(buttonOpt)) {
if (BI.isWidget(buttonOpt)) {
items.push(buttonOpt);
}else{
} else {
items.push(BI.extend({
type: "bi.button",
height: 30,
@ -128,11 +131,33 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-text-bubble-bar-popup-view",
text: "",
width: 250
width: 250,
buttons: [{
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore"
}, {
value: BI.i18nText("BI-Basic_Sure")
}]
},
render: function(){
render: function () {
var self = this, o = this.options;
var buttons = BI.map(o.buttons, function (index, buttonOpt) {
if (BI.isWidget(buttonOpt)) {
return buttonOpt;
}
if (buttonOpt.value) {
buttonOpt.value = BI.i18nText(buttonOpt.value);
}
return BI.extend({
type: "bi.button",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, buttonOpt.level !== "ignore");
}
}, buttonOpt);
});
return {
type: "bi.bubble_bar_popup_view",
ref: function () {
@ -153,22 +178,7 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
tgap: 25,
bgap: 10
},
buttons: [{
type: "bi.button",
value: BI.i18nText("BI-Basic_Cancel"),
level: "ignore",
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, false);
}
}, {
type: "bi.button",
value: BI.i18nText("BI-Basic_Sure"),
height: 24,
handler: function () {
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, true);
}
}]
buttons: buttons
};
},

Loading…
Cancel
Save