schummar-table 0.38.0 → 0.38.1
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/cjs/index.js +8 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +8 -6
- package/dist/es/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2163,20 +2163,22 @@ function calcProps(props) {
|
|
|
2163
2163
|
const rowDetails = props.rowDetails instanceof Function || Array.isArray(props.rowDetails) ? cache("rowDetails", props.rowDetails) : props.rowDetails;
|
|
2164
2164
|
let copy;
|
|
2165
2165
|
if (props.enableExport === true || props.enableExport instanceof Object && props.enableExport.copy === true) {
|
|
2166
|
-
copy = {
|
|
2167
|
-
separator: " "
|
|
2168
|
-
};
|
|
2166
|
+
copy = {};
|
|
2169
2167
|
} else if (props.enableExport && props.enableExport.copy instanceof Object) {
|
|
2170
2168
|
copy = props.enableExport.copy;
|
|
2171
2169
|
}
|
|
2170
|
+
if (copy) {
|
|
2171
|
+
copy.separator ?? (copy.separator = " ");
|
|
2172
|
+
}
|
|
2172
2173
|
let download;
|
|
2173
2174
|
if (props.enableExport === true || props.enableExport instanceof Object && props.enableExport.download === true) {
|
|
2174
|
-
download = {
|
|
2175
|
-
sepPrefix: true
|
|
2176
|
-
};
|
|
2175
|
+
download = {};
|
|
2177
2176
|
} else if (props.enableExport && props.enableExport.download instanceof Object) {
|
|
2178
2177
|
download = props.enableExport.download;
|
|
2179
2178
|
}
|
|
2179
|
+
if (download) {
|
|
2180
|
+
download.sepPrefix ?? (download.sepPrefix = true);
|
|
2181
|
+
}
|
|
2180
2182
|
const enableExport = {
|
|
2181
2183
|
copy,
|
|
2182
2184
|
download
|