|
|
|
@ -26331,6 +26331,25 @@ BI.ShowAction = BI.inherit(BI.Action, {
|
|
|
|
|
})(jo); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
BI.encodeURIComponent = function (url) { |
|
|
|
|
BI.specialCharsMap = BI.specialCharsMap || {}; |
|
|
|
|
url = url.replaceAll(BI.keys(BI.specialCharsMap || []).join("|"), function (str) { |
|
|
|
|
return BI.specialCharsMap[str] || str; |
|
|
|
|
}); |
|
|
|
|
return window.encodeURIComponent(url); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
BI.decodeURIComponent = function (url) { |
|
|
|
|
var reserveSpecialCharsMap = {}; |
|
|
|
|
BI.each(BI.specialCharsMap, function (initialChar, encodeChar) { |
|
|
|
|
reserveSpecialCharsMap[encodeChar] = initialChar; |
|
|
|
|
}); |
|
|
|
|
url = url.replaceAll(BI.keys(reserveSpecialCharsMap || []).join("|"), function (str) { |
|
|
|
|
return reserveSpecialCharsMap[str] || str; |
|
|
|
|
}); |
|
|
|
|
return window.decodeURIComponent(url); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
BI.contentFormat = function (cv, fmt) { |
|
|
|
|
if (isEmpty(cv)) { |
|
|
|
|
// 原值为空,返回空字符
|
|
|
|
@ -51420,44 +51439,39 @@ BI.Popover = BI.inherit(BI.Widget, {
|
|
|
|
|
var items = { |
|
|
|
|
north: { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.border", |
|
|
|
|
type: "bi.htape", |
|
|
|
|
cls: "bi-message-title bi-background", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.dragger = _ref; |
|
|
|
|
}, |
|
|
|
|
items: { |
|
|
|
|
center: { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, { |
|
|
|
|
extraCls: "bi-font-bold" |
|
|
|
|
}) : { |
|
|
|
|
type: "bi.label", |
|
|
|
|
cls: "bi-font-bold", |
|
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
|
text: o.header, |
|
|
|
|
textAlign: "left" |
|
|
|
|
}, |
|
|
|
|
left: 20, |
|
|
|
|
top: 0, |
|
|
|
|
right: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
east: { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "bi-message-close close-font", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, { |
|
|
|
|
extraCls: "bi-font-bold" |
|
|
|
|
}) : { |
|
|
|
|
type: "bi.label", |
|
|
|
|
cls: "bi-font-bold", |
|
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
|
handler: function () { |
|
|
|
|
self.close(); |
|
|
|
|
} |
|
|
|
|
text: o.header, |
|
|
|
|
textAlign: "left" |
|
|
|
|
}, |
|
|
|
|
width: 60 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
left: 20, |
|
|
|
|
top: 0, |
|
|
|
|
right: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "bi-message-close close-font", |
|
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
|
handler: function () { |
|
|
|
|
self.close(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
width: 56 |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
height: this._constant.HEADER_HEIGHT |
|
|
|
|
}, |
|
|
|
|