@vtx/components 4.0.0-beta.42 → 4.0.0-beta.43
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/es/vtx-import2/index.js
CHANGED
|
@@ -52,10 +52,13 @@ var VtxImport2 = function VtxImport2(props) {
|
|
|
52
52
|
var visible = props.visible,
|
|
53
53
|
close = props.close,
|
|
54
54
|
title = props.title,
|
|
55
|
-
accept = props.accept,
|
|
56
|
-
|
|
55
|
+
_props$accept = props.accept,
|
|
56
|
+
accept = _props$accept === void 0 ? 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv' : _props$accept,
|
|
57
|
+
_props$fileKey = props.fileKey,
|
|
58
|
+
fileKey = _props$fileKey === void 0 ? 'file' : _props$fileKey,
|
|
57
59
|
uploadURL = props.uploadURL,
|
|
58
|
-
postData = props.postData,
|
|
60
|
+
_props$postData = props.postData,
|
|
61
|
+
postData = _props$postData === void 0 ? {} : _props$postData,
|
|
59
62
|
errorURL = props.errorURL,
|
|
60
63
|
templateURL = props.templateURL,
|
|
61
64
|
afterUpload = props.afterUpload,
|
|
@@ -430,11 +433,7 @@ var VtxImport2 = function VtxImport2(props) {
|
|
|
430
433
|
})]
|
|
431
434
|
})));
|
|
432
435
|
};
|
|
433
|
-
VtxImport2.defaultProps = {
|
|
434
|
-
fileKey: 'file',
|
|
435
|
-
accept: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',
|
|
436
|
-
postData: {}
|
|
437
|
-
};
|
|
436
|
+
VtxImport2.defaultProps = {};
|
|
438
437
|
VtxImport2.propTypes = {
|
|
439
438
|
visible: PropTypes.bool,
|
|
440
439
|
templateURL: PropTypes.string,
|
package/lib/vtx-import2/index.js
CHANGED
|
@@ -58,10 +58,13 @@ var VtxImport2 = exports.VtxImport2 = function VtxImport2(props) {
|
|
|
58
58
|
var visible = props.visible,
|
|
59
59
|
close = props.close,
|
|
60
60
|
title = props.title,
|
|
61
|
-
accept = props.accept,
|
|
62
|
-
|
|
61
|
+
_props$accept = props.accept,
|
|
62
|
+
accept = _props$accept === void 0 ? 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv' : _props$accept,
|
|
63
|
+
_props$fileKey = props.fileKey,
|
|
64
|
+
fileKey = _props$fileKey === void 0 ? 'file' : _props$fileKey,
|
|
63
65
|
uploadURL = props.uploadURL,
|
|
64
|
-
postData = props.postData,
|
|
66
|
+
_props$postData = props.postData,
|
|
67
|
+
postData = _props$postData === void 0 ? {} : _props$postData,
|
|
65
68
|
errorURL = props.errorURL,
|
|
66
69
|
templateURL = props.templateURL,
|
|
67
70
|
afterUpload = props.afterUpload,
|
|
@@ -436,11 +439,7 @@ var VtxImport2 = exports.VtxImport2 = function VtxImport2(props) {
|
|
|
436
439
|
})]
|
|
437
440
|
})));
|
|
438
441
|
};
|
|
439
|
-
VtxImport2.defaultProps = {
|
|
440
|
-
fileKey: 'file',
|
|
441
|
-
accept: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',
|
|
442
|
-
postData: {}
|
|
443
|
-
};
|
|
442
|
+
VtxImport2.defaultProps = {};
|
|
444
443
|
VtxImport2.propTypes = {
|
|
445
444
|
visible: _propTypes.default.bool,
|
|
446
445
|
templateURL: _propTypes.default.string,
|