bkui-vue 0.0.3-beta.2-4 → 0.0.3-beta.2-5
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +6 -1
- package/dist/index.umd.js +1 -1
- package/lib/table/index.js +2 -2
- package/package.json +1 -1
package/lib/table/index.js
CHANGED
@@ -2955,10 +2955,10 @@ var getRowText = function getRowText(row, key, format) {
|
|
2955
2955
|
format.forEach(function (reg) {
|
2956
2956
|
if (typeof reg === 'function') {
|
2957
2957
|
result = reg(result, row, key);
|
2958
|
-
} else {
|
2958
|
+
} else if (typeof result === 'string') {
|
2959
2959
|
var _matches$;
|
2960
2960
|
var matches = result.match(typeof reg === 'string' ? getRegExp(reg) : reg);
|
2961
|
-
result = (_matches$ = matches[1]) !== null && _matches$ !== void 0 ? _matches$ : result;
|
2961
|
+
result = (_matches$ = matches === null || matches === void 0 ? void 0 : matches[1]) !== null && _matches$ !== void 0 ? _matches$ : result;
|
2962
2962
|
}
|
2963
2963
|
});
|
2964
2964
|
if (/^-?\d+.?\d*$/.test(result)) {
|