px-jspreadsheet-ce 0.0.19 → 0.0.20
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.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/internal.js +1 -1
- package/src/utils/worksheets.js +2 -0
package/dist/index.js
CHANGED
|
@@ -1802,7 +1802,7 @@ const createCell = function (i, j, value) {
|
|
|
1802
1802
|
// Wrap option
|
|
1803
1803
|
if ((!config || config.wordWrap != false) && (obj.options.wordWrap == true || (config && config.wordWrap == true) || td.innerHTML.length > 200)) {
|
|
1804
1804
|
td.style.overflowWrap = 'break-word';
|
|
1805
|
-
td.style.whiteSpace = '
|
|
1805
|
+
td.style.whiteSpace = 'pre-wrap';
|
|
1806
1806
|
}
|
|
1807
1807
|
|
|
1808
1808
|
// Overflow
|
|
@@ -5347,7 +5347,7 @@ const editor_closeEditor = function (cell, save) {
|
|
|
5347
5347
|
}
|
|
5348
5348
|
|
|
5349
5349
|
// Ignore changes if the value is the same
|
|
5350
|
-
if (obj.options.data[y][x]
|
|
5350
|
+
if (obj.options.data[y][x] === value) {
|
|
5351
5351
|
cell.innerHTML = obj.edition[1];
|
|
5352
5352
|
} else {
|
|
5353
5353
|
obj.setValue(cell, value); // update cell
|
|
@@ -7661,6 +7661,12 @@ const setRowData = function (rowNumber, data, force) {
|
|
|
7661
7661
|
}
|
|
7662
7662
|
};
|
|
7663
7663
|
|
|
7664
|
+
const getRowLength = function () {
|
|
7665
|
+
const obj = this;
|
|
7666
|
+
|
|
7667
|
+
return obj.options.data.length;
|
|
7668
|
+
};
|
|
7669
|
+
|
|
7664
7670
|
;// ./src/utils/version.js
|
|
7665
7671
|
// Basic version information
|
|
7666
7672
|
/* harmony default export */ var utils_version = ({
|
|
@@ -10887,6 +10893,8 @@ const deleteWorksheet = function (position) {
|
|
|
10887
10893
|
app.unmount();
|
|
10888
10894
|
});
|
|
10889
10895
|
|
|
10896
|
+
obj.vueApps = [];
|
|
10897
|
+
|
|
10890
10898
|
obj.content.onscroll = null;
|
|
10891
10899
|
obj.content.onwheel = null;
|
|
10892
10900
|
obj.searchInput.onfocus = null;
|