Browse Source

Merge pull request #713 in VISUAL/fineui from ~FRANK.QIU/fineui:master to master

* commit '3640889730a8f7d973a2320479e10534e95785a8':
  build
  限制makeFirstPY多音字处理的长度
es6
Frank.Qiu 6 years ago
parent
commit
9d1d3fd1ce
  1. 10
      dist/bundle.js
  2. 46
      dist/bundle.min.js
  3. 10
      dist/core.js
  4. 10
      dist/fineui.js
  5. 46
      dist/fineui.min.js
  6. 10
      dist/fineui_without_jquery_polyfill.js
  7. 10
      dist/utils.js
  8. 4
      dist/utils.min.js
  9. 10
      src/core/utils/chinesePY.js

10
dist/bundle.js vendored

@ -13185,17 +13185,21 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
};
var _mkPYRslt = function (arr) {
var arrRslt = [""], k;
var arrRslt = [""], k, multiLen = 0;
for (var i = 0, len = arr.length; i < len; i++) {
var str = arr[i];
var strlen = str.length;
if (strlen == 1) {
// 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14
// 超过14个多音字之后,后面的都用第一个拼音
if (strlen == 1 || multiLen > 14) {
var tmpStr = str.substring(0, 1);
for (k = 0; k < arrRslt.length; k++) {
arrRslt[k] += str;
arrRslt[k] += tmpStr;
}
} else {
var tmpArr = arrRslt.slice(0);
arrRslt = [];
multiLen ++;
for (k = 0; k < strlen; k++) {
// 复制一个相同的arrRslt
var tmp = tmpArr.slice(0);

46
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/core.js vendored

@ -13185,17 +13185,21 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
};
var _mkPYRslt = function (arr) {
var arrRslt = [""], k;
var arrRslt = [""], k, multiLen = 0;
for (var i = 0, len = arr.length; i < len; i++) {
var str = arr[i];
var strlen = str.length;
if (strlen == 1) {
// 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14
// 超过14个多音字之后,后面的都用第一个拼音
if (strlen == 1 || multiLen > 14) {
var tmpStr = str.substring(0, 1);
for (k = 0; k < arrRslt.length; k++) {
arrRslt[k] += str;
arrRslt[k] += tmpStr;
}
} else {
var tmpArr = arrRslt.slice(0);
arrRslt = [];
multiLen ++;
for (k = 0; k < strlen; k++) {
// 复制一个相同的arrRslt
var tmp = tmpArr.slice(0);

10
dist/fineui.js vendored

@ -13427,17 +13427,21 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
};
var _mkPYRslt = function (arr) {
var arrRslt = [""], k;
var arrRslt = [""], k, multiLen = 0;
for (var i = 0, len = arr.length; i < len; i++) {
var str = arr[i];
var strlen = str.length;
if (strlen == 1) {
// 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14
// 超过14个多音字之后,后面的都用第一个拼音
if (strlen == 1 || multiLen > 14) {
var tmpStr = str.substring(0, 1);
for (k = 0; k < arrRslt.length; k++) {
arrRslt[k] += str;
arrRslt[k] += tmpStr;
}
} else {
var tmpArr = arrRslt.slice(0);
arrRslt = [];
multiLen ++;
for (k = 0; k < strlen; k++) {
// 复制一个相同的arrRslt
var tmp = tmpArr.slice(0);

46
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/fineui_without_jquery_polyfill.js vendored

@ -13185,17 +13185,21 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
};
var _mkPYRslt = function (arr) {
var arrRslt = [""], k;
var arrRslt = [""], k, multiLen = 0;
for (var i = 0, len = arr.length; i < len; i++) {
var str = arr[i];
var strlen = str.length;
if (strlen == 1) {
// 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14
// 超过14个多音字之后,后面的都用第一个拼音
if (strlen == 1 || multiLen > 14) {
var tmpStr = str.substring(0, 1);
for (k = 0; k < arrRslt.length; k++) {
arrRslt[k] += str;
arrRslt[k] += tmpStr;
}
} else {
var tmpArr = arrRslt.slice(0);
arrRslt = [];
multiLen ++;
for (k = 0; k < strlen; k++) {
// 复制一个相同的arrRslt
var tmp = tmpArr.slice(0);

10
dist/utils.js vendored

@ -14463,17 +14463,21 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
};
var _mkPYRslt = function (arr) {
var arrRslt = [""], k;
var arrRslt = [""], k, multiLen = 0;
for (var i = 0, len = arr.length; i < len; i++) {
var str = arr[i];
var strlen = str.length;
if (strlen == 1) {
// 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14
// 超过14个多音字之后,后面的都用第一个拼音
if (strlen == 1 || multiLen > 14) {
var tmpStr = str.substring(0, 1);
for (k = 0; k < arrRslt.length; k++) {
arrRslt[k] += str;
arrRslt[k] += tmpStr;
}
} else {
var tmpArr = arrRslt.slice(0);
arrRslt = [];
multiLen ++;
for (k = 0; k < strlen; k++) {
// 复制一个相同的arrRslt
var tmp = tmpArr.slice(0);

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

10
src/core/utils/chinesePY.js

@ -388,17 +388,21 @@
};
var _mkPYRslt = function (arr) {
var arrRslt = [""], k;
var arrRslt = [""], k, multiLen = 0;
for (var i = 0, len = arr.length; i < len; i++) {
var str = arr[i];
var strlen = str.length;
if (strlen == 1) {
// 多音字过多的情况下,指数增长会造成浏览器卡死,超过20完全卡死,18勉强能用,考虑到不同性能最好是16或者14
// 超过14个多音字之后,后面的都用第一个拼音
if (strlen == 1 || multiLen > 14) {
var tmpStr = str.substring(0, 1);
for (k = 0; k < arrRslt.length; k++) {
arrRslt[k] += str;
arrRslt[k] += tmpStr;
}
} else {
var tmpArr = arrRslt.slice(0);
arrRslt = [];
multiLen ++;
for (k = 0; k < strlen; k++) {
// 复制一个相同的arrRslt
var tmp = tmpArr.slice(0);

Loading…
Cancel
Save