Browse Source

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

es6
windy 6 years ago
parent
commit
18f5138a85
  1. 2
      dist/base.css
  2. 15
      dist/base.js
  3. 4
      dist/bundle.css
  4. 34
      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. 34
      dist/fineui.js
  10. 19
      dist/utils.js
  11. 15
      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;

15
dist/base.js vendored

@ -15409,14 +15409,12 @@ 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: {
items: [{
type: "bi.absolute",
items: [{
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, {
@ -15433,9 +15431,7 @@ BI.Popover = BI.inherit(BI.Widget, {
right: 0,
bottom: 0
}]
}
},
east: {
}, {
el: {
type: "bi.icon_button",
cls: "bi-message-close close-font",
@ -15444,9 +15440,8 @@ BI.Popover = BI.inherit(BI.Widget, {
self.close();
}
},
width: 60
}
}
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;

34
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,14 +51439,12 @@ 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: {
items: [{
type: "bi.absolute",
items: [{
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, {
@ -51444,9 +51461,7 @@ BI.Popover = BI.inherit(BI.Widget, {
right: 0,
bottom: 0
}]
}
},
east: {
}, {
el: {
type: "bi.icon_button",
cls: "bi-message-close close-font",
@ -51455,9 +51470,8 @@ BI.Popover = BI.inherit(BI.Widget, {
self.close();
}
},
width: 60
}
}
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;

34
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,14 +51660,12 @@ 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: {
items: [{
type: "bi.absolute",
items: [{
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, {
@ -51665,9 +51682,7 @@ BI.Popover = BI.inherit(BI.Widget, {
right: 0,
bottom: 0
}]
}
},
east: {
}, {
el: {
type: "bi.icon_button",
cls: "bi-message-close close-font",
@ -51676,9 +51691,8 @@ BI.Popover = BI.inherit(BI.Widget, {
self.close();
}
},
width: 60
}
}
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)) {
// 原值为空,返回空字符

15
src/base/layer/layer.popover.js

@ -45,14 +45,12 @@ 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: {
items: [{
type: "bi.absolute",
items: [{
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, {
@ -69,9 +67,7 @@ BI.Popover = BI.inherit(BI.Widget, {
right: 0,
bottom: 0
}]
}
},
east: {
}, {
el: {
type: "bi.icon_button",
cls: "bi-message-close close-font",
@ -80,9 +76,8 @@ BI.Popover = BI.inherit(BI.Widget, {
self.close();
}
},
width: 60
}
}
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