Browse Source

BI-29639 && BI-24431 FineUI中需要encodeURIComponent需要对特殊字符编码

es6
windy 6 years ago
parent
commit
18f5138a85
  1. 2
      dist/base.css
  2. 59
      dist/base.js
  3. 4
      dist/bundle.css
  4. 78
      dist/bundle.js
  5. 2
      dist/core.css
  6. 19
      dist/core.js
  7. 2
      dist/core_without_normalize.css
  8. 4
      dist/fineui.css
  9. 78
      dist/fineui.js
  10. 19
      dist/utils.js
  11. 59
      src/base/layer/layer.popover.js
  12. 19
      src/core/alias.js
  13. 2
      src/css/base/foundation/bi.css
  14. 2
      src/css/core/utils/common.css
  15. 2
      src/less/base/foundation/bi.message.less
  16. 2
      src/less/core/utils/common.less

2
dist/base.css vendored

@ -1034,6 +1034,8 @@ li.CodeMirror-hint-active {
.bi-message-title {
font-size: 14px;
cursor: pointer;
background-color: #F2F4F7;
color: #3d4d66;
}
.bi-message-text {
font-size: 16px;

59
dist/base.js vendored

@ -15409,44 +15409,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
},

4
dist/bundle.css vendored

@ -408,7 +408,7 @@ textarea {
border-radius: 2px;
}
.bi-font-bold {
font-weight: 600;
font-weight: 700;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
@ -2887,6 +2887,8 @@ li.CodeMirror-hint-active {
.bi-message-title {
font-size: 14px;
cursor: pointer;
background-color: #F2F4F7;
color: #3d4d66;
}
.bi-message-text {
font-size: 16px;

78
dist/bundle.js vendored

@ -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
},

2
dist/core.css vendored

@ -408,7 +408,7 @@ textarea {
border-radius: 2px;
}
.bi-font-bold {
font-weight: 600;
font-weight: 700;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;

19
dist/core.js vendored

@ -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)) {
// 原值为空,返回空字符

2
dist/core_without_normalize.css vendored

@ -127,7 +127,7 @@ textarea {
border-radius: 2px;
}
.bi-font-bold {
font-weight: 600;
font-weight: 700;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;

4
dist/fineui.css vendored

@ -408,7 +408,7 @@ textarea {
border-radius: 2px;
}
.bi-font-bold {
font-weight: 600;
font-weight: 700;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
@ -2887,6 +2887,8 @@ li.CodeMirror-hint-active {
.bi-message-title {
font-size: 14px;
cursor: pointer;
background-color: #F2F4F7;
color: #3d4d66;
}
.bi-message-text {
font-size: 16px;

78
dist/fineui.js vendored

@ -26552,6 +26552,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)) {
// 原值为空,返回空字符
@ -51641,44 +51660,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
},

19
dist/utils.js vendored

@ -13136,6 +13136,25 @@ _.extend(BI.OB.prototype, {
})(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)) {
// 原值为空,返回空字符

59
src/base/layer/layer.popover.js

@ -45,44 +45,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
},

19
src/core/alias.js

@ -575,6 +575,25 @@
})(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)) {
// 原值为空,返回空字符

2
src/css/base/foundation/bi.css

@ -1,6 +1,8 @@
.bi-message-title {
font-size: 14px;
cursor: pointer;
background-color: #F2F4F7;
color: #3d4d66;
}
.bi-message-text {
font-size: 16px;

2
src/css/core/utils/common.css

@ -127,7 +127,7 @@ textarea {
border-radius: 2px;
}
.bi-font-bold {
font-weight: 600;
font-weight: 700;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;

2
src/less/base/foundation/bi.message.less

@ -3,6 +3,8 @@
.bi-message-title {
font-size: 14px;
cursor: pointer;
background-color: @color-bi-background-light-gray;
color: @color-bi-text-normal;
}
.bi-message-text {

2
src/less/core/utils/common.less

@ -148,7 +148,7 @@ textarea {
}
.bi-font-bold {
font-weight: 600;
font-weight: 700;
}
.bi-theme-dark {

Loading…
Cancel
Save