Browse Source

无JIRA任务 action不把title当参数传出去

es6
windy 6 years ago
parent
commit
2e9945de5e
  1. 86
      dist/_fineui.min.js
  2. 12
      dist/base.js
  3. 12
      dist/bundle.js
  4. 30
      dist/bundle.min.js
  5. 12
      dist/fineui.js
  6. 86
      dist/fineui.min.js
  7. 14
      src/base/single/single.js

86
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/base.js vendored

@ -348,15 +348,21 @@ BI.Single = BI.inherit(BI.Widget, {
_showToolTip: function (e, opt) { _showToolTip: function (e, opt) {
opt || (opt = {}); opt || (opt = {});
var self = this; var self = this, o = this.options;
var type = this.getTipType() || (this.isEnabled() ? "success" : "warning"); var type = this.getTipType() || (this.isEnabled() ? "success" : "warning");
var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle()); var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle());
if (BI.isKey(title)) { if (BI.isKey(title)) {
BI.Tooltips.show(e, this.getName(), title, type, this, opt); BI.Tooltips.show(e, this.getName(), title, type, this, opt);
if (opt.action) { if (opt.action) {
BI.Actions.runAction(opt.action, "hover", opt, title); BI.Actions.runAction(opt.action, "hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
BI.Actions.runGlobalAction("hover", opt, title); BI.Actions.runGlobalAction("hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
}, },

12
dist/bundle.js vendored

@ -36153,15 +36153,21 @@ BI.Single = BI.inherit(BI.Widget, {
_showToolTip: function (e, opt) { _showToolTip: function (e, opt) {
opt || (opt = {}); opt || (opt = {});
var self = this; var self = this, o = this.options;
var type = this.getTipType() || (this.isEnabled() ? "success" : "warning"); var type = this.getTipType() || (this.isEnabled() ? "success" : "warning");
var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle()); var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle());
if (BI.isKey(title)) { if (BI.isKey(title)) {
BI.Tooltips.show(e, this.getName(), title, type, this, opt); BI.Tooltips.show(e, this.getName(), title, type, this, opt);
if (opt.action) { if (opt.action) {
BI.Actions.runAction(opt.action, "hover", opt, title); BI.Actions.runAction(opt.action, "hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
BI.Actions.runGlobalAction("hover", opt, title); BI.Actions.runGlobalAction("hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
}, },

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/fineui.js vendored

@ -36402,15 +36402,21 @@ BI.Single = BI.inherit(BI.Widget, {
_showToolTip: function (e, opt) { _showToolTip: function (e, opt) {
opt || (opt = {}); opt || (opt = {});
var self = this; var self = this, o = this.options;
var type = this.getTipType() || (this.isEnabled() ? "success" : "warning"); var type = this.getTipType() || (this.isEnabled() ? "success" : "warning");
var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle()); var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle());
if (BI.isKey(title)) { if (BI.isKey(title)) {
BI.Tooltips.show(e, this.getName(), title, type, this, opt); BI.Tooltips.show(e, this.getName(), title, type, this, opt);
if (opt.action) { if (opt.action) {
BI.Actions.runAction(opt.action, "hover", opt, title); BI.Actions.runAction(opt.action, "hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
BI.Actions.runGlobalAction("hover", opt, title); BI.Actions.runGlobalAction("hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
}, },

86
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

14
src/base/single/single.js

@ -25,15 +25,21 @@ BI.Single = BI.inherit(BI.Widget, {
_showToolTip: function (e, opt) { _showToolTip: function (e, opt) {
opt || (opt = {}); opt || (opt = {});
var self = this; var self = this, o = this.options;
var type = this.getTipType() || (this.isEnabled() ? "success" : "warning"); var type = this.getTipType() || (this.isEnabled() ? "success" : "warning");
var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle()); var title = type === "success" ? this.getTitle() : (this.getWarningTitle() || this.getTitle());
if (BI.isKey(title)) { if (BI.isKey(title)) {
BI.Tooltips.show(e, this.getName(), title, type, this, opt); BI.Tooltips.show(e, this.getName(), title, type, this, opt);
if (opt.action) { if (opt.action) {
BI.Actions.runAction(opt.action, "hover", opt, title); BI.Actions.runAction(opt.action, "hover", BI.extend({}, opt, {
} title: o.title,
BI.Actions.runGlobalAction("hover", opt, title); warningTitle: o.warningTitle
}));
}
BI.Actions.runGlobalAction("hover", BI.extend({}, opt, {
title: o.title,
warningTitle: o.warningTitle
}));
} }
}, },

Loading…
Cancel
Save