cloud-business 0.1.124-13 → 0.1.124-14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cloud-business.js +10 -22
- package/cloud-business.min.js +4 -4
- package/package.json +1 -1
package/cloud-business.js
CHANGED
|
@@ -13958,12 +13958,11 @@
|
|
|
13958
13958
|
align: 'right',
|
|
13959
13959
|
width: '160px',
|
|
13960
13960
|
template: function template(checklistQuantity) {
|
|
13961
|
-
var reg = new RegExp('(\\d)(?=(\\d{3})+(?:\\.\\d+)?$)', 'g');
|
|
13962
13961
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
13963
13962
|
style: {
|
|
13964
13963
|
paddingRight: 10
|
|
13965
13964
|
}
|
|
13966
|
-
}, +checklistQuantity >= 0 ? checklistQuantity.toString().replace(
|
|
13965
|
+
}, +checklistQuantity >= 0 ? checklistQuantity.toString().replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, '$1,') : '--');
|
|
13967
13966
|
}
|
|
13968
13967
|
}, {
|
|
13969
13968
|
key: 'creatorName',
|
|
@@ -14760,12 +14759,11 @@
|
|
|
14760
14759
|
align: 'right',
|
|
14761
14760
|
width: 160,
|
|
14762
14761
|
render: function render(checklistQuantity) {
|
|
14763
|
-
var reg = new RegExp('(\\d)(?=(\\d{3})+(?:\\.\\d+)?$)', 'g');
|
|
14764
14762
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14765
14763
|
style: {
|
|
14766
14764
|
paddingRight: 10
|
|
14767
14765
|
}
|
|
14768
|
-
}, +checklistQuantity >= 0 ? checklistQuantity.toString().replace(
|
|
14766
|
+
}, +checklistQuantity >= 0 ? checklistQuantity.toString().replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g, '$1,') : '--');
|
|
14769
14767
|
}
|
|
14770
14768
|
}, {
|
|
14771
14769
|
dataIndex: 'creatorName',
|
|
@@ -34130,8 +34128,7 @@
|
|
|
34130
34128
|
};
|
|
34131
34129
|
_this.thousandAndDecimal = function (num) {
|
|
34132
34130
|
if (num) {
|
|
34133
|
-
|
|
34134
|
-
return parseFloat(num).toFixed(2).replace(reg, '$1,');
|
|
34131
|
+
return parseFloat(num).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,');
|
|
34135
34132
|
} else {
|
|
34136
34133
|
return '0.00';
|
|
34137
34134
|
}
|
|
@@ -111459,18 +111456,10 @@
|
|
|
111459
111456
|
};
|
|
111460
111457
|
_this.handleInsertKeywordAndText = function (content, keyword) {
|
|
111461
111458
|
var _ref2;
|
|
111462
|
-
var
|
|
111463
|
-
|
|
111464
|
-
|
|
111465
|
-
|
|
111466
|
-
var arr = (_ref2 = []).concat.apply(_ref2, _toConsumableArray(content.split(reg1).map(function (item) {
|
|
111467
|
-
return item.split(/_œœ/);
|
|
111468
|
-
}))).map(function (item) {
|
|
111469
|
-
if (item.includes('œœ_')) {
|
|
111470
|
-
return "".concat(item, "_\u0153\u0153");
|
|
111471
|
-
}
|
|
111472
|
-
return item;
|
|
111473
|
-
}).filter(Boolean);
|
|
111459
|
+
var reg = new RegExp('(?<=_œœ)');
|
|
111460
|
+
var arr = (_ref2 = []).concat.apply(_ref2, _toConsumableArray(content.split(/(?=œœ_)/).map(function (item) {
|
|
111461
|
+
return item.split(reg);
|
|
111462
|
+
})));
|
|
111474
111463
|
arr.forEach(function (item) {
|
|
111475
111464
|
if (item.includes('œœ_[')) {
|
|
111476
111465
|
var type = item.match(/œœ_\[.*?]/g)[0].replace(/œœ_\[|]/g, '');
|
|
@@ -112427,8 +112416,7 @@
|
|
|
112427
112416
|
_this.originalPreviewText = [];
|
|
112428
112417
|
_this.originalTotalChars = 0;
|
|
112429
112418
|
_this.getPureEditorText = function (editorText) {
|
|
112430
|
-
|
|
112431
|
-
return editorText.replace(reg, '');
|
|
112419
|
+
return editorText.replace(/\(.*?\)(?=_œœ)/g, '');
|
|
112432
112420
|
};
|
|
112433
112421
|
_this.getPureText = function (editorText) {
|
|
112434
112422
|
return editorText.replace(/œœ_.*?_œœ|þ_enter_þ/g, '');
|
|
@@ -146353,7 +146341,7 @@
|
|
|
146353
146341
|
}
|
|
146354
146342
|
// 检验当前运行环境
|
|
146355
146343
|
if (typeof window === 'undefined') {
|
|
146356
|
-
console.warn('cloud-business@0.1.124-
|
|
146344
|
+
console.warn('cloud-business@0.1.124-14 仅支持在浏览器环境进行使用!');
|
|
146357
146345
|
}
|
|
146358
146346
|
var bodys = document.getElementsByTagName('body')[0];
|
|
146359
146347
|
var colors = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -146363,7 +146351,7 @@
|
|
|
146363
146351
|
bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
|
|
146364
146352
|
}
|
|
146365
146353
|
}
|
|
146366
|
-
var version = '0.1.124-
|
|
146354
|
+
var version = '0.1.124-14';
|
|
146367
146355
|
|
|
146368
146356
|
exports.AreaSelector = AreaSelector;
|
|
146369
146357
|
exports.AreaSelectorNew = AreaSelector$1;
|