@vtx/components 3.1.97 → 3.1.99
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/lib/_util/filterSpecialCharacters.js +44 -55
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +4 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getToken.js +15 -7
- package/lib/_util/getToken.js.map +1 -1
- package/lib/_util/getUrlParam.js +8 -1
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/isFunction.js +1 -0
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js +1 -0
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/useColSize.js +12 -2
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js +3 -0
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +39 -23
- package/lib/_util/useSet.js.map +1 -1
- package/lib/config.js +2 -1
- package/lib/config.js.map +1 -1
- package/lib/index.js +29 -0
- package/lib/index.js.map +1 -1
- package/lib/style/index.less +2 -2
- package/lib/style/themes/compact.less +1 -1
- package/lib/style/themes/dark.less +9 -9
- package/lib/style/themes/default.less +7 -7
- package/lib/style/themes/index.less +1 -1
- package/lib/style/themes/variable.less +5 -5
- package/lib/vtx-color-picker/index.js +28 -11
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js +2 -0
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js +2 -0
- package/lib/vtx-color-picker/style/index.js.map +1 -1
- package/lib/vtx-combogrid/Combogrid.js +86 -46
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js +58 -32
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js +7 -0
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js +7 -0
- package/lib/vtx-combogrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/Alert.js +14 -5
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +76 -37
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/ResizeableTitle.js +15 -3
- package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
- package/lib/vtx-datagrid/index.js +186 -115
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +38 -7
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js +10 -0
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.js +10 -0
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-date-picker/QdatePicker.js +51 -21
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js +65 -24
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js +7 -1
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js +1 -0
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js +1 -0
- package/lib/vtx-date-picker/style/index.js.map +1 -1
- package/lib/vtx-date-picker/style/index.less +39 -39
- package/lib/vtx-editor/index.js +28 -9
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js +1 -0
- package/lib/vtx-editor/style/css.js.map +1 -1
- package/lib/vtx-editor/style/index.js +1 -0
- package/lib/vtx-editor/style/index.js.map +1 -1
- package/lib/vtx-editor/style/index.less +8 -8
- package/lib/vtx-ellipsis-text/index.js +27 -14
- package/lib/vtx-ellipsis-text/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/css.js +1 -0
- package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.js +1 -0
- package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/index.less +13 -13
- package/lib/vtx-export/index.js +69 -36
- package/lib/vtx-export/index.js.map +1 -1
- package/lib/vtx-export/style/css.js +5 -0
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js +5 -0
- package/lib/vtx-export/style/index.js.map +1 -1
- package/lib/vtx-export-async/History.js +100 -59
- package/lib/vtx-export-async/History.js.map +1 -1
- package/lib/vtx-export-async/index.js +105 -64
- package/lib/vtx-export-async/index.js.map +1 -1
- package/lib/vtx-export-async/style/css.js.map +1 -1
- package/lib/vtx-export-async/style/index.js.map +1 -1
- package/lib/vtx-export-async/util.js +13 -2
- package/lib/vtx-export-async/util.js.map +1 -1
- package/lib/vtx-form-layout/Card.js +33 -11
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js +11 -5
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js +34 -12
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Pane.js +9 -3
- package/lib/vtx-form-layout/Pane.js.map +1 -1
- package/lib/vtx-form-layout/Row.js +8 -1
- package/lib/vtx-form-layout/Row.js.map +1 -1
- package/lib/vtx-form-layout/context.js +4 -1
- package/lib/vtx-form-layout/context.js.map +1 -1
- package/lib/vtx-form-layout/demo/Modal.less +43 -43
- package/lib/vtx-form-layout/index.js +24 -9
- package/lib/vtx-form-layout/index.js.map +1 -1
- package/lib/vtx-form-layout/style/css.js +7 -0
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js +7 -0
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-form-layout/style/index.less +216 -216
- package/lib/vtx-image/Image.js +113 -73
- package/lib/vtx-image/Image.js.map +1 -1
- package/lib/vtx-image/Preview.js +59 -30
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js +47 -17
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-image/index.js +11 -4
- package/lib/vtx-image/index.js.map +1 -1
- package/lib/vtx-image/style/css.js +1 -0
- package/lib/vtx-image/style/css.js.map +1 -1
- package/lib/vtx-image/style/index.js +1 -0
- package/lib/vtx-image/style/index.js.map +1 -1
- package/lib/vtx-import/index.js +78 -45
- package/lib/vtx-import/index.js.map +1 -1
- package/lib/vtx-import/result.js +28 -10
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js +3 -0
- package/lib/vtx-import/style/css.js.map +1 -1
- package/lib/vtx-import/style/index.js +3 -0
- package/lib/vtx-import/style/index.js.map +1 -1
- package/lib/vtx-import/style/index.less +8 -8
- package/lib/vtx-import2/CheckResult.js +8 -1
- package/lib/vtx-import2/CheckResult.js.map +1 -1
- package/lib/vtx-import2/Content.js +33 -11
- package/lib/vtx-import2/Content.js.map +1 -1
- package/lib/vtx-import2/DownloadSvg.js +6 -1
- package/lib/vtx-import2/DownloadSvg.js.map +1 -1
- package/lib/vtx-import2/ImportResult.js +14 -7
- package/lib/vtx-import2/ImportResult.js.map +1 -1
- package/lib/vtx-import2/UploadSvg.js +6 -1
- package/lib/vtx-import2/UploadSvg.js.map +1 -1
- package/lib/vtx-import2/index.js +107 -51
- package/lib/vtx-import2/index.js.map +1 -1
- package/lib/vtx-import2/style/css.js +3 -0
- package/lib/vtx-import2/style/css.js.map +1 -1
- package/lib/vtx-import2/style/index.js +3 -0
- package/lib/vtx-import2/style/index.js.map +1 -1
- package/lib/vtx-import2/style/index.less +102 -102
- package/lib/vtx-input/TextArea.js +27 -10
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js +45 -20
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js +1 -0
- package/lib/vtx-input/style/css.js.map +1 -1
- package/lib/vtx-input/style/index.js +1 -0
- package/lib/vtx-input/style/index.js.map +1 -1
- package/lib/vtx-input/style/index.less +24 -24
- package/lib/vtx-input/useLength.js +20 -7
- package/lib/vtx-input/useLength.js.map +1 -1
- package/lib/vtx-modal/Title.js +8 -2
- package/lib/vtx-modal/Title.js.map +1 -1
- package/lib/vtx-modal/index.js +82 -49
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js +1 -0
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js +1 -0
- package/lib/vtx-modal/style/index.js.map +1 -1
- package/lib/vtx-page-layout/Basic.js +8 -3
- package/lib/vtx-page-layout/Basic.js.map +1 -1
- package/lib/vtx-page-layout/Content.js +26 -15
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/Pane.js +12 -3
- package/lib/vtx-page-layout/Pane.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +60 -30
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js +22 -11
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js +51 -23
- package/lib/vtx-page-layout/container.js.map +1 -1
- package/lib/vtx-page-layout/index.js +10 -1
- package/lib/vtx-page-layout/index.js.map +1 -1
- package/lib/vtx-page-layout/style/css.js.map +1 -1
- package/lib/vtx-page-layout/style/index.js.map +1 -1
- package/lib/vtx-page-layout/style/index.less +138 -138
- package/lib/vtx-rps-frame/index.js +57 -37
- package/lib/vtx-rps-frame/index.js.map +1 -1
- package/lib/vtx-rps-frame/style/css.js.map +1 -1
- package/lib/vtx-rps-frame/style/index.js.map +1 -1
- package/lib/vtx-scrollable-row/index.js +64 -30
- package/lib/vtx-scrollable-row/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/css.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.js.map +1 -1
- package/lib/vtx-scrollable-row/style/index.less +113 -113
- package/lib/vtx-search/VtxCol.js +26 -7
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js +14 -7
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +106 -61
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js +4 -0
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.js +4 -0
- package/lib/vtx-search/style/index.js.map +1 -1
- package/lib/vtx-search-map-input/index.js +93 -58
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js +2 -0
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js +2 -0
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +91 -39
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js +8 -0
- package/lib/vtx-select/style/css.js.map +1 -1
- package/lib/vtx-select/style/index.js +8 -0
- package/lib/vtx-select/style/index.js.map +1 -1
- package/lib/vtx-select/style/index.less +68 -68
- package/lib/vtx-signature/index.js +33 -18
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js +2 -0
- package/lib/vtx-signature/style/css.js.map +1 -1
- package/lib/vtx-signature/style/index.js +2 -0
- package/lib/vtx-signature/style/index.js.map +1 -1
- package/lib/vtx-signature/style/index.less +33 -33
- package/lib/vtx-split-pane/Pane.js +22 -11
- package/lib/vtx-split-pane/Pane.js.map +1 -1
- package/lib/vtx-split-pane/Resizer.js +39 -19
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +107 -51
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/index.js +6 -1
- package/lib/vtx-split-pane/index.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js +3 -0
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- package/lib/vtx-split-pane/style/index.js +3 -0
- package/lib/vtx-split-pane/style/index.js.map +1 -1
- package/lib/vtx-split-pane/style/index.less +76 -76
- package/lib/vtx-statistics-column/Back.js +9 -2
- package/lib/vtx-statistics-column/Back.js.map +1 -1
- package/lib/vtx-statistics-column/Item.js +30 -14
- package/lib/vtx-statistics-column/Item.js.map +1 -1
- package/lib/vtx-statistics-column/Total.js +30 -14
- package/lib/vtx-statistics-column/Total.js.map +1 -1
- package/lib/vtx-statistics-column/context.js +4 -1
- package/lib/vtx-statistics-column/context.js.map +1 -1
- package/lib/vtx-statistics-column/index.js +18 -1
- package/lib/vtx-statistics-column/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/css.js +1 -0
- package/lib/vtx-statistics-column/style/css.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.js +1 -0
- package/lib/vtx-statistics-column/style/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/index.less +59 -59
- package/lib/vtx-time-picker/index.js +18 -4
- package/lib/vtx-time-picker/index.js.map +1 -1
- package/lib/vtx-time-picker/style/css.js.map +1 -1
- package/lib/vtx-time-picker/style/index.js.map +1 -1
- package/lib/vtx-tree/index.js +114 -49
- package/lib/vtx-tree/index.js.map +1 -1
- package/lib/vtx-tree/style/css.js +2 -0
- package/lib/vtx-tree/style/css.js.map +1 -1
- package/lib/vtx-tree/style/index.js +2 -0
- package/lib/vtx-tree/style/index.js.map +1 -1
- package/lib/vtx-tree/utils.js +27 -6
- package/lib/vtx-tree/utils.js.map +1 -1
- package/lib/vtx-tree-select/index.js +71 -27
- package/lib/vtx-tree-select/index.js.map +1 -1
- package/lib/vtx-tree-select/style/css.js +3 -0
- package/lib/vtx-tree-select/style/css.js.map +1 -1
- package/lib/vtx-tree-select/style/index.js +3 -0
- package/lib/vtx-tree-select/style/index.js.map +1 -1
- package/lib/vtx-upload/FilePreview.js +33 -15
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/index.js +156 -79
- package/lib/vtx-upload/index.js.map +1 -1
- package/lib/vtx-upload/style/css.js +6 -0
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js +6 -0
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-upload/style/index.less +61 -61
- package/lib/vtx-wang-editor/index.js +116 -74
- package/lib/vtx-wang-editor/index.js.map +1 -1
- package/lib/vtx-wang-editor/style/css.js +1 -0
- package/lib/vtx-wang-editor/style/css.js.map +1 -1
- package/lib/vtx-wang-editor/style/index.js +1 -0
- package/lib/vtx-wang-editor/style/index.js.map +1 -1
- package/lib/vtx-wang-editor/style/index.less +12 -12
- package/lib/vtx-wang-editor/wangEditorUtil.js +136 -75
- package/lib/vtx-wang-editor/wangEditorUtil.js.map +1 -1
- package/lib/vtx-ztree/index.js +119 -69
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js +1 -0
- package/lib/vtx-ztree/style/css.js.map +1 -1
- package/lib/vtx-ztree/style/index.js +1 -0
- package/lib/vtx-ztree/style/index.js.map +1 -1
- package/lib/vtx-ztree/style/index.less +45 -45
- package/lib/vtx-ztree-select/index.js +143 -74
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js +3 -0
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js +3 -0
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.less +109 -109
- package/package.json +121 -121
package/lib/vtx-import/result.js
CHANGED
|
@@ -4,29 +4,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _modal = _interopRequireDefault(require("antd/lib/modal"));
|
|
11
|
+
|
|
9
12
|
var _button = _interopRequireDefault(require("antd/lib/button"));
|
|
13
|
+
|
|
10
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
11
16
|
var _useSet3 = _interopRequireDefault(require("../_util/useSet"));
|
|
17
|
+
|
|
12
18
|
var _vtxDatagrid = _interopRequireDefault(require("../vtx-datagrid"));
|
|
19
|
+
|
|
13
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
14
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
+
|
|
15
24
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
|
|
16
26
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
|
|
17
28
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
|
|
19
|
-
function
|
|
29
|
+
|
|
30
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
|
+
|
|
32
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
|
+
|
|
20
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
|
|
21
36
|
function VtxImportResult(props) {
|
|
22
37
|
var _useSet = (0, _useSet3["default"])({
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
visible: props.visible || false,
|
|
39
|
+
dataSource: props.dataSource || [],
|
|
40
|
+
columns: props.columns,
|
|
41
|
+
modalWidth: props.modalWidth
|
|
42
|
+
}),
|
|
43
|
+
_useSet2 = _slicedToArray(_useSet, 1),
|
|
44
|
+
state = _useSet2[0];
|
|
45
|
+
|
|
30
46
|
var modalProps = {
|
|
31
47
|
bodyStyle: {
|
|
32
48
|
backgroundColor: '#f8f8f8'
|
|
@@ -68,6 +84,7 @@ function VtxImportResult(props) {
|
|
|
68
84
|
toolbar: false
|
|
69
85
|
}, newTableProps))));
|
|
70
86
|
}
|
|
87
|
+
|
|
71
88
|
VtxImportResult.propTypes = {
|
|
72
89
|
visible: _propTypes["default"].bool,
|
|
73
90
|
dataSource: _propTypes["default"].array,
|
|
@@ -75,5 +92,6 @@ VtxImportResult.propTypes = {
|
|
|
75
92
|
modalWidth: _propTypes["default"].number,
|
|
76
93
|
hideVisible: _propTypes["default"].func
|
|
77
94
|
};
|
|
78
|
-
var _default =
|
|
95
|
+
var _default = VtxImportResult;
|
|
96
|
+
exports["default"] = _default;
|
|
79
97
|
//# sourceMappingURL=result.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.js","names":["
|
|
1
|
+
{"version":3,"file":"result.js","names":["VtxImportResult","props","useSet","visible","dataSource","columns","modalWidth","state","modalProps","bodyStyle","backgroundColor","title","onCancel","hideVisible","width","maskClosable","footer","newTableProps","startIndex","size","headFootHeight","pagination","autoFit","maxHeight","overflow","propTypes","PropTypes","bool","array","number","func"],"sources":["vtx-import/result.jsx"],"sourcesContent":["import React from 'react';\nimport Modal from 'antd/lib/modal';\nimport Button from 'antd/lib/button';\nimport PropTypes from 'prop-types';\nimport useSet from '../_util/useSet';\nimport VtxDatagrid from '../vtx-datagrid';\n\nfunction VtxImportResult(props) {\n const [state] = useSet({\n visible: props.visible || false,\n dataSource: props.dataSource || [],\n columns: props.columns,\n modalWidth: props.modalWidth,\n });\n const modalProps = {\n bodyStyle: {\n backgroundColor: '#f8f8f8',\n },\n visible: state.visible,\n title: '导入结果',\n onCancel: () => {\n if (typeof props.hideVisible === 'function') {\n props.hideVisible();\n }\n },\n width: state.modalWidth,\n maskClosable: false,\n footer: [\n <Button\n key=\"closeWindow\"\n onClick={() => {\n if (typeof props.hideVisible === 'function') {\n props.hideVisible();\n }\n }}\n >\n 关闭\n </Button>,\n ],\n };\n const newTableProps = {\n columns: state.columns,\n dataSource: state.dataSource,\n startIndex: 1,\n size: 'small',\n headFootHeight: 50,\n pagination: false,\n autoFit: false,\n };\n return (\n <Modal {...modalProps}>\n <div style={{ maxHeight: 600, width: '100%', overflow: 'auto' }}>\n <VtxDatagrid toolbar={false} {...newTableProps} />\n </div>\n </Modal>\n );\n}\nVtxImportResult.propTypes = {\n visible: PropTypes.bool,\n dataSource: PropTypes.array,\n columns: PropTypes.array,\n modalWidth: PropTypes.number,\n hideVisible: PropTypes.func,\n};\nexport default VtxImportResult;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;AAEA,SAASA,eAAT,CAAyBC,KAAzB,EAAgC;EAC5B,cAAgB,IAAAC,mBAAA,EAAO;IACnBC,OAAO,EAAEF,KAAK,CAACE,OAAN,IAAiB,KADP;IAEnBC,UAAU,EAAEH,KAAK,CAACG,UAAN,IAAoB,EAFb;IAGnBC,OAAO,EAAEJ,KAAK,CAACI,OAHI;IAInBC,UAAU,EAAEL,KAAK,CAACK;EAJC,CAAP,CAAhB;EAAA;EAAA,IAAOC,KAAP;;EAMA,IAAMC,UAAU,GAAG;IACfC,SAAS,EAAE;MACPC,eAAe,EAAE;IADV,CADI;IAIfP,OAAO,EAAEI,KAAK,CAACJ,OAJA;IAKfQ,KAAK,EAAE,MALQ;IAMfC,QAAQ,EAAE,oBAAM;MACZ,IAAI,OAAOX,KAAK,CAACY,WAAb,KAA6B,UAAjC,EAA6C;QACzCZ,KAAK,CAACY,WAAN;MACH;IACJ,CAVc;IAWfC,KAAK,EAAEP,KAAK,CAACD,UAXE;IAYfS,YAAY,EAAE,KAZC;IAafC,MAAM,EAAE,cACJ,gCAAC,kBAAD;MACI,GAAG,EAAC,aADR;MAEI,OAAO,EAAE,mBAAM;QACX,IAAI,OAAOf,KAAK,CAACY,WAAb,KAA6B,UAAjC,EAA6C;UACzCZ,KAAK,CAACY,WAAN;QACH;MACJ;IANL,kBADI;EAbO,CAAnB;EA0BA,IAAMI,aAAa,GAAG;IAClBZ,OAAO,EAAEE,KAAK,CAACF,OADG;IAElBD,UAAU,EAAEG,KAAK,CAACH,UAFA;IAGlBc,UAAU,EAAE,CAHM;IAIlBC,IAAI,EAAE,OAJY;IAKlBC,cAAc,EAAE,EALE;IAMlBC,UAAU,EAAE,KANM;IAOlBC,OAAO,EAAE;EAPS,CAAtB;EASA,oBACI,gCAAC,iBAAD,EAAWd,UAAX,eACI;IAAK,KAAK,EAAE;MAAEe,SAAS,EAAE,GAAb;MAAkBT,KAAK,EAAE,MAAzB;MAAiCU,QAAQ,EAAE;IAA3C;EAAZ,gBACI,gCAAC,uBAAD;IAAa,OAAO,EAAE;EAAtB,GAAiCP,aAAjC,EADJ,CADJ,CADJ;AAOH;;AACDjB,eAAe,CAACyB,SAAhB,GAA4B;EACxBtB,OAAO,EAAEuB,qBAAA,CAAUC,IADK;EAExBvB,UAAU,EAAEsB,qBAAA,CAAUE,KAFE;EAGxBvB,OAAO,EAAEqB,qBAAA,CAAUE,KAHK;EAIxBtB,UAAU,EAAEoB,qBAAA,CAAUG,MAJE;EAKxBhB,WAAW,EAAEa,qBAAA,CAAUI;AALC,CAA5B;eAOe9B,e"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","names":[
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["vtx-import/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\nimport 'antd/lib/button/style';\nimport 'antd/lib/message/style';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["vtx-import/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\nimport 'antd/lib/button/style';\nimport 'antd/lib/message/style';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
-
@prefix-cls: vtx-datagrid;
|
|
3
|
-
|
|
4
|
-
.@{prefix-cls} when(@theme=default) {
|
|
5
|
-
&-modal {
|
|
6
|
-
background-color: '#f8f8f8';
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
@import (reference) '~antd/lib/style/themes/index.less';
|
|
2
|
+
@prefix-cls: vtx-datagrid;
|
|
3
|
+
|
|
4
|
+
.@{prefix-cls} when(@theme=default) {
|
|
5
|
+
&-modal {
|
|
6
|
+
background-color: '#f8f8f8';
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -4,10 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
9
12
|
var _icons = require("@ant-design/icons");
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
11
16
|
var CheckResult = function CheckResult(_ref) {
|
|
12
17
|
var checkResult = _ref.checkResult;
|
|
13
18
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -32,8 +37,10 @@ var CheckResult = function CheckResult(_ref) {
|
|
|
32
37
|
className: "vtx-import2-result-error-tips"
|
|
33
38
|
}, "\u4E0B\u8F7D\u6587\u4EF6\uFF0C\u67E5\u770B\u5BFC\u5165\u5931\u8D25\u539F\u56E0")));
|
|
34
39
|
};
|
|
40
|
+
|
|
35
41
|
CheckResult.propTypes = {
|
|
36
42
|
checkResult: _propTypes["default"].bool
|
|
37
43
|
};
|
|
38
|
-
var _default =
|
|
44
|
+
var _default = CheckResult;
|
|
45
|
+
exports["default"] = _default;
|
|
39
46
|
//# sourceMappingURL=CheckResult.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckResult.js","names":["
|
|
1
|
+
{"version":3,"file":"CheckResult.js","names":["CheckResult","checkResult","color","fontSize","propTypes","PropTypes","bool"],"sources":["vtx-import2/CheckResult.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { CloseCircleFilled, CheckCircleFilled } from '@ant-design/icons';\n\nconst CheckResult = ({ checkResult }) => {\n return (\n <div className=\"vtx-import2-result-warp\">\n {checkResult ? (\n <>\n <CheckCircleFilled style={{ color: '#52C41A', fontSize: '80px' }} />\n <span className=\"vtx-import2-result\">校验成功</span>\n <span className=\"vtx-import2-result-success-tips\">本次共计0条数据</span>\n </>\n ) : (\n <>\n <CloseCircleFilled style={{ color: '#ff4d4f', fontSize: '80px' }} />\n <span className=\"vtx-import2-result\">校验失败</span>\n <span className=\"vtx-import2-result-error-tips\">\n 下载文件,查看导入失败原因\n </span>\n </>\n )}\n </div>\n );\n};\n\nCheckResult.propTypes = {\n checkResult: PropTypes.bool,\n};\n\nexport default CheckResult;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAc,OAAqB;EAAA,IAAlBC,WAAkB,QAAlBA,WAAkB;EACrC,oBACI;IAAK,SAAS,EAAC;EAAf,GACKA,WAAW,gBACR,+EACI,gCAAC,wBAAD;IAAmB,KAAK,EAAE;MAAEC,KAAK,EAAE,SAAT;MAAoBC,QAAQ,EAAE;IAA9B;EAA1B,EADJ,eAEI;IAAM,SAAS,EAAC;EAAhB,8BAFJ,eAGI;IAAM,SAAS,EAAC;EAAhB,iDAHJ,CADQ,gBAOR,+EACI,gCAAC,wBAAD;IAAmB,KAAK,EAAE;MAAED,KAAK,EAAE,SAAT;MAAoBC,QAAQ,EAAE;IAA9B;EAA1B,EADJ,eAEI;IAAM,SAAS,EAAC;EAAhB,8BAFJ,eAGI;IAAM,SAAS,EAAC;EAAhB,oFAHJ,CARR,CADJ;AAmBH,CApBD;;AAsBAH,WAAW,CAACI,SAAZ,GAAwB;EACpBH,WAAW,EAAEI,qBAAA,CAAUC;AADH,CAAxB;eAIeN,W"}
|
|
@@ -1,42 +1,62 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
9
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
10
14
|
var _CloseCircleFilled = _interopRequireDefault(require("@ant-design/icons/CloseCircleFilled"));
|
|
15
|
+
|
|
11
16
|
var _UploadSvg = _interopRequireDefault(require("./UploadSvg"));
|
|
17
|
+
|
|
12
18
|
var _DownloadSvg = _interopRequireDefault(require("./DownloadSvg"));
|
|
19
|
+
|
|
13
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
|
|
15
|
-
function
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
16
26
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
27
|
+
|
|
17
28
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
|
|
18
30
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
31
|
+
|
|
19
32
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
33
|
+
|
|
20
34
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
21
|
-
|
|
35
|
+
|
|
36
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
37
|
+
|
|
22
38
|
var Content = function Content(_ref) {
|
|
23
39
|
var accept = _ref.accept,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
40
|
+
fileKey = _ref.fileKey,
|
|
41
|
+
setFileList = _ref.setFileList,
|
|
42
|
+
fileList = _ref.fileList,
|
|
43
|
+
templateURL = _ref.templateURL,
|
|
44
|
+
customText = _ref.customText,
|
|
45
|
+
TextEnum = _ref.TextEnum;
|
|
30
46
|
var fileInputRef = (0, _react.useRef)();
|
|
47
|
+
|
|
31
48
|
var onClick = function onClick() {
|
|
32
49
|
fileInputRef.current && fileInputRef.current.click();
|
|
33
50
|
};
|
|
51
|
+
|
|
34
52
|
var onFileChange = function onFileChange() {
|
|
35
53
|
setFileList(fileInputRef.current.files);
|
|
36
54
|
};
|
|
55
|
+
|
|
37
56
|
var onDeleteFileList = function onDeleteFileList() {
|
|
38
57
|
setFileList([]);
|
|
39
58
|
};
|
|
59
|
+
|
|
40
60
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
61
|
className: "vtx-import2-content-box"
|
|
42
62
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -79,6 +99,7 @@ var Content = function Content(_ref) {
|
|
|
79
99
|
value: fileList.length === 0 ? '' : fileList[0].fileName
|
|
80
100
|
})));
|
|
81
101
|
};
|
|
102
|
+
|
|
82
103
|
Content.propTypes = {
|
|
83
104
|
accept: _propTypes["default"].string,
|
|
84
105
|
fileKey: _propTypes["default"].string,
|
|
@@ -87,5 +108,6 @@ Content.propTypes = {
|
|
|
87
108
|
setFileList: _propTypes["default"].func,
|
|
88
109
|
customText: _propTypes["default"].string
|
|
89
110
|
};
|
|
90
|
-
var _default =
|
|
111
|
+
var _default = Content;
|
|
112
|
+
exports["default"] = _default;
|
|
91
113
|
//# sourceMappingURL=Content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","names":["
|
|
1
|
+
{"version":3,"file":"Content.js","names":["Content","accept","fileKey","setFileList","fileList","templateURL","customText","TextEnum","fileInputRef","useRef","onClick","current","click","onFileChange","files","onDeleteFileList","normalTemplateInfoText","length","normalSelectFileInfoText","normalReChooseFileText","map","file","name","color","cursor","display","fileName","propTypes","PropTypes","string","any","func"],"sources":["vtx-import2/Content.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useRef } from 'react';\nimport CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';\nimport UploadSvg from './UploadSvg';\nimport DownloadSvg from './DownloadSvg';\nconst Content = ({ accept, fileKey, setFileList, fileList, templateURL, customText, TextEnum }) => {\n const fileInputRef = useRef();\n const onClick = () => {\n fileInputRef.current && fileInputRef.current.click();\n };\n\n const onFileChange = () => {\n setFileList(fileInputRef.current.files);\n };\n\n const onDeleteFileList = () => {\n setFileList([]);\n };\n\n return (\n <div>\n <div className=\"vtx-import2-content-box\">\n <span className=\"vtx-import2-content-mark\">1</span>\n <DownloadSvg />\n <a className=\"vtx-import2-download\" href={templateURL}>\n {TextEnum.normalTemplateInfoText}\n </a>\n </div>\n <div className=\"vtx-import2-content-box\">\n <span className=\"vtx-import2-content-mark\">2</span>\n <UploadSvg />\n <div className=\"vtx-import2-file-list\">\n <a onClick={onClick} className=\"vtx-import2-text\">\n {fileList.length === 0 ? (customText||TextEnum.normalSelectFileInfoText) : TextEnum.normalReChooseFileText}\n </a>\n {[...fileList].map(file => (\n <div key={file.name} className=\"vtx-import2-file-item\">\n <span className=\"vtx-import2-file-name\">{file.name}</span>\n <CloseCircleFilled\n fill=\"#c0c0c0\"\n onClick={onDeleteFileList}\n style={{ color: '#c0c0c0', cursor: 'pointer' }}\n />\n </div>\n ))}\n </div>\n <input\n type=\"file\"\n name={fileKey}\n accept={accept}\n ref={fileInputRef}\n style={{ display: 'none' }}\n onChange={onFileChange}\n value={fileList.length === 0 ? '' : fileList[0].fileName}\n />\n </div>\n </div>\n );\n};\n\nContent.propTypes = {\n accept: PropTypes.string,\n fileKey: PropTypes.string,\n templateURL: PropTypes.string,\n fileList: PropTypes.any,\n setFileList: PropTypes.func,\n customText: PropTypes.string,\n};\n\nexport default Content;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;AACA,IAAMA,OAAO,GAAG,SAAVA,OAAU,OAAmF;EAAA,IAAhFC,MAAgF,QAAhFA,MAAgF;EAAA,IAAxEC,OAAwE,QAAxEA,OAAwE;EAAA,IAA/DC,WAA+D,QAA/DA,WAA+D;EAAA,IAAlDC,QAAkD,QAAlDA,QAAkD;EAAA,IAAxCC,WAAwC,QAAxCA,WAAwC;EAAA,IAA3BC,UAA2B,QAA3BA,UAA2B;EAAA,IAAfC,QAAe,QAAfA,QAAe;EAC/F,IAAMC,YAAY,GAAG,IAAAC,aAAA,GAArB;;EACA,IAAMC,OAAO,GAAG,SAAVA,OAAU,GAAM;IAClBF,YAAY,CAACG,OAAb,IAAwBH,YAAY,CAACG,OAAb,CAAqBC,KAArB,EAAxB;EACH,CAFD;;EAIA,IAAMC,YAAY,GAAG,SAAfA,YAAe,GAAM;IACvBV,WAAW,CAACK,YAAY,CAACG,OAAb,CAAqBG,KAAtB,CAAX;EACH,CAFD;;EAIA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,GAAM;IAC3BZ,WAAW,CAAC,EAAD,CAAX;EACH,CAFD;;EAIA,oBACI,0DACI;IAAK,SAAS,EAAC;EAAf,gBACI;IAAM,SAAS,EAAC;EAAhB,OADJ,eAEI,gCAAC,uBAAD,OAFJ,eAGI;IAAG,SAAS,EAAC,sBAAb;IAAoC,IAAI,EAAEE;EAA1C,GACKE,QAAQ,CAACS,sBADd,CAHJ,CADJ,eAQI;IAAK,SAAS,EAAC;EAAf,gBACI;IAAM,SAAS,EAAC;EAAhB,OADJ,eAEI,gCAAC,qBAAD,OAFJ,eAGI;IAAK,SAAS,EAAC;EAAf,gBACI;IAAG,OAAO,EAAEN,OAAZ;IAAqB,SAAS,EAAC;EAA/B,GACKN,QAAQ,CAACa,MAAT,KAAoB,CAApB,GAAyBX,UAAU,IAAEC,QAAQ,CAACW,wBAA9C,GAA0EX,QAAQ,CAACY,sBADxF,CADJ,EAIK,mBAAIf,QAAJ,EAAcgB,GAAd,CAAkB,UAAAC,IAAI;IAAA,oBACnB;MAAK,GAAG,EAAEA,IAAI,CAACC,IAAf;MAAqB,SAAS,EAAC;IAA/B,gBACI;MAAM,SAAS,EAAC;IAAhB,GAAyCD,IAAI,CAACC,IAA9C,CADJ,eAEI,gCAAC,6BAAD;MACI,IAAI,EAAC,SADT;MAEI,OAAO,EAAEP,gBAFb;MAGI,KAAK,EAAE;QAAEQ,KAAK,EAAE,SAAT;QAAoBC,MAAM,EAAE;MAA5B;IAHX,EAFJ,CADmB;EAAA,CAAtB,CAJL,CAHJ,eAkBI;IACI,IAAI,EAAC,MADT;IAEI,IAAI,EAAEtB,OAFV;IAGI,MAAM,EAAED,MAHZ;IAII,GAAG,EAAEO,YAJT;IAKI,KAAK,EAAE;MAAEiB,OAAO,EAAE;IAAX,CALX;IAMI,QAAQ,EAAEZ,YANd;IAOI,KAAK,EAAET,QAAQ,CAACa,MAAT,KAAoB,CAApB,GAAwB,EAAxB,GAA6Bb,QAAQ,CAAC,CAAD,CAAR,CAAYsB;EAPpD,EAlBJ,CARJ,CADJ;AAuCH,CArDD;;AAuDA1B,OAAO,CAAC2B,SAAR,GAAoB;EAChB1B,MAAM,EAAE2B,qBAAA,CAAUC,MADF;EAEhB3B,OAAO,EAAE0B,qBAAA,CAAUC,MAFH;EAGhBxB,WAAW,EAAEuB,qBAAA,CAAUC,MAHP;EAIhBzB,QAAQ,EAAEwB,qBAAA,CAAUE,GAJJ;EAKhB3B,WAAW,EAAEyB,qBAAA,CAAUG,IALP;EAMhBzB,UAAU,EAAEsB,qBAAA,CAAUC;AANN,CAApB;eASe7B,O"}
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
9
12
|
var DownloadSvg = function DownloadSvg() {
|
|
10
13
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -42,5 +45,7 @@ var DownloadSvg = function DownloadSvg() {
|
|
|
42
45
|
transform: "translate(-245.202 -228.578)"
|
|
43
46
|
}));
|
|
44
47
|
};
|
|
45
|
-
|
|
48
|
+
|
|
49
|
+
var _default = DownloadSvg;
|
|
50
|
+
exports["default"] = _default;
|
|
46
51
|
//# sourceMappingURL=DownloadSvg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadSvg.js","names":["
|
|
1
|
+
{"version":3,"file":"DownloadSvg.js","names":["DownloadSvg","flexShrink"],"sources":["vtx-import2/DownloadSvg.jsx"],"sourcesContent":["import React from 'react';\n\nconst DownloadSvg = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n style={{ flexShrink: 0 }}\n >\n <defs></defs>\n <path\n className=\"a\"\n fill=\"#e3fff3\"\n d=\"M88.358,82.88m-24,0a24,24,0,1,0,24-24A24,24,0,0,0,64.358,82.88Z\"\n transform=\"translate(-64.358 -58.88)\"\n />\n <path\n className=\"b\"\n fill=\"#05c46d\"\n d=\"M281.991,241.484H269.017a1.041,1.041,0,0,1-.714-.284l-2.955-2.784a1.036,1.036,0,0,0-.714-.284h-5.676a3.583,3.583,0,0,0-3.572,3.593v21.5a3.583,3.583,0,0,0,3.572,3.593h23.031a3.583,3.583,0,0,0,3.571-3.593V245.079a3.58,3.58,0,0,0-3.569-3.6Zm-6,15.429-4.2,4.074a1.934,1.934,0,0,1-2.681.016l-4.123-3.9a1.967,1.967,0,0,1-.084-2.765,1.936,1.936,0,0,1,2.749-.085l.864.817v-5.571a1.945,1.945,0,1,1,3.889,0v5.465l.888-.861a1.934,1.934,0,0,1,2.749.049A1.969,1.969,0,0,1,275.986,256.913Z\"\n transform=\"translate(-245.153 -228.623)\"\n />\n <path\n className=\"c\"\n fill=\"#1dce75\"\n d=\"M285.563,245.08a3.583,3.583,0,0,0-3.572-3.593H269.018a1.041,1.041,0,0,1-.714-.284l-2.955-2.787a1.036,1.036,0,0,0-.714-.284h-5.676a3.583,3.583,0,0,0-3.572,3.593v21.5a3.583,3.583,0,0,0,3.572,3.593h8.859a24,24,0,0,0,17.743-16.047V245.08Zm-9.577,11.834-4.2,4.074a1.933,1.933,0,0,1-2.681.016l-4.123-3.9a1.967,1.967,0,0,1-.084-2.765,1.936,1.936,0,0,1,2.749-.085l.864.817V249.5a1.945,1.945,0,1,1,3.889,0v5.465l.888-.861a1.934,1.934,0,0,1,2.749.049A1.969,1.969,0,0,1,275.987,256.913Z\"\n transform=\"translate(-245.154 -228.623)\"\n />\n <path\n className=\"d\"\n fill=\"#3cd38e\"\n d=\"M269.017,241.464a1.044,1.044,0,0,1-.714-.282l-2.955-2.768a1.039,1.039,0,0,0-.714-.282h-5.676a3.572,3.572,0,0,0-3.572,3.571v16.959c.3.011.6.019.9.019a23.842,23.842,0,0,0,8.743-1.649l-.052-.049a1.944,1.944,0,1,1,2.664-2.833l.864.812v-5.535a1.945,1.945,0,1,1,3.889,0v3.015a23.932,23.932,0,0,0,6.852-10.975H269.017Z\"\n transform=\"translate(-245.179 -228.563)\"\n />\n <path\n className=\"e\"\n fill=\"#48e1aa\"\n d=\"M268.791,241.436a1.016,1.016,0,0,1-.486-.255l-2.958-2.768a1.039,1.039,0,0,0-.714-.282h-5.676a3.572,3.572,0,0,0-3.572,3.571v7.963a23.884,23.884,0,0,0,13.406-8.229Z\"\n transform=\"translate(-245.202 -228.578)\"\n />\n </svg>\n );\n};\n\nexport default DownloadSvg;\n"],"mappings":";;;;;;;AAAA;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAc,GAAM;EACtB,oBACI;IACI,KAAK,EAAC,4BADV;IAEI,KAAK,EAAC,IAFV;IAGI,MAAM,EAAC,IAHX;IAII,OAAO,EAAC,WAJZ;IAKI,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAd;EALX,gBAOI,6CAPJ,eAQI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,iEAHN;IAII,SAAS,EAAC;EAJd,EARJ,eAcI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,6dAHN;IAII,SAAS,EAAC;EAJd,EAdJ,eAoBI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,6dAHN;IAII,SAAS,EAAC;EAJd,EApBJ,eA0BI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,yTAHN;IAII,SAAS,EAAC;EAJd,EA1BJ,eAgCI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,oKAHN;IAII,SAAS,EAAC;EAJd,EAhCJ,CADJ;AAyCH,CA1CD;;eA4CeD,W"}
|
|
@@ -4,18 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
9
12
|
var _icons = require("@ant-design/icons");
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
11
16
|
var ImportResult = function ImportResult(_ref) {
|
|
12
17
|
var result = _ref.result,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
errorFile = _ref.errorFile,
|
|
19
|
+
errorURL = _ref.errorURL,
|
|
20
|
+
errorDownloadName = _ref.errorDownloadName,
|
|
21
|
+
count = _ref.count,
|
|
22
|
+
token = _ref.token,
|
|
23
|
+
TextEnum = _ref.TextEnum;
|
|
19
24
|
var url = errorURL && errorFile && "".concat(errorURL, "?fileName=").concat(errorFile, "&downloadName=").concat(errorDownloadName || '', "&token=").concat(token);
|
|
20
25
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
26
|
className: "vtx-import2-result-warp"
|
|
@@ -40,6 +45,7 @@ var ImportResult = function ImportResult(_ref) {
|
|
|
40
45
|
href: url
|
|
41
46
|
}, TextEnum.resultFailReasonDownText)));
|
|
42
47
|
};
|
|
48
|
+
|
|
43
49
|
ImportResult.propTypes = {
|
|
44
50
|
result: _propTypes["default"].bool,
|
|
45
51
|
errorURL: _propTypes["default"].string,
|
|
@@ -48,5 +54,6 @@ ImportResult.propTypes = {
|
|
|
48
54
|
errorDownloadName: _propTypes["default"].string,
|
|
49
55
|
count: _propTypes["default"].any
|
|
50
56
|
};
|
|
51
|
-
var _default =
|
|
57
|
+
var _default = ImportResult;
|
|
58
|
+
exports["default"] = _default;
|
|
52
59
|
//# sourceMappingURL=ImportResult.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportResult.js","names":["
|
|
1
|
+
{"version":3,"file":"ImportResult.js","names":["ImportResult","result","errorFile","errorURL","errorDownloadName","count","token","TextEnum","url","color","fontSize","resultSuccessText","resultInfoTotalText","resultInfoDataText","resultFailText","resultFailReasonDownText","propTypes","PropTypes","bool","string","any"],"sources":["vtx-import2/ImportResult.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { CheckCircleFilled, CloseCircleFilled } from '@ant-design/icons';\n\nconst ImportResult = ({ result, errorFile, errorURL, errorDownloadName, count, token, TextEnum }) => {\n const url =\n errorURL &&\n errorFile &&\n `${errorURL}?fileName=${errorFile}&downloadName=${errorDownloadName || ''}&token=${token}`;\n return (\n <div className=\"vtx-import2-result-warp\">\n {result ? (\n <>\n <CheckCircleFilled style={{ color: '#52C41A', fontSize: '80px' }} />\n <span className=\"vtx-import2-result\">{TextEnum.resultSuccessText}</span>\n {count !== null && (\n <span className=\"vtx-import2-result-success-tips\">\n {TextEnum.resultInfoTotalText}{count}{TextEnum.resultInfoDataText}\n </span>\n )}\n </>\n ) : (\n <>\n <CloseCircleFilled style={{ color: '#ff4d4f', fontSize: '80px' }} />\n <span className=\"vtx-import2-result\">{TextEnum.resultFailText}</span>\n {url && (\n <a className=\"vtx-import2-result-error-tips\" href={url}>\n {TextEnum.resultFailReasonDownText}\n </a>\n )}\n </>\n )}\n </div>\n );\n};\n\nImportResult.propTypes = {\n result: PropTypes.bool,\n errorURL: PropTypes.string,\n token: PropTypes.string,\n errorFile: PropTypes.string,\n errorDownloadName: PropTypes.string,\n count: PropTypes.any,\n};\n\nexport default ImportResult;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,IAAMA,YAAY,GAAG,SAAfA,YAAe,OAAgF;EAAA,IAA7EC,MAA6E,QAA7EA,MAA6E;EAAA,IAArEC,SAAqE,QAArEA,SAAqE;EAAA,IAA1DC,QAA0D,QAA1DA,QAA0D;EAAA,IAAhDC,iBAAgD,QAAhDA,iBAAgD;EAAA,IAA7BC,KAA6B,QAA7BA,KAA6B;EAAA,IAAtBC,KAAsB,QAAtBA,KAAsB;EAAA,IAAfC,QAAe,QAAfA,QAAe;EACjG,IAAMC,GAAG,GACLL,QAAQ,IACRD,SADA,cAEGC,QAFH,uBAEwBD,SAFxB,2BAEkDE,iBAAiB,IAAI,EAFvE,oBAEmFE,KAFnF,CADJ;EAIA,oBACI;IAAK,SAAS,EAAC;EAAf,GACKL,MAAM,gBACH,+EACI,gCAAC,wBAAD;IAAmB,KAAK,EAAE;MAAEQ,KAAK,EAAE,SAAT;MAAoBC,QAAQ,EAAE;IAA9B;EAA1B,EADJ,eAEI;IAAM,SAAS,EAAC;EAAhB,GAAsCH,QAAQ,CAACI,iBAA/C,CAFJ,EAGKN,KAAK,KAAK,IAAV,iBACG;IAAM,SAAS,EAAC;EAAhB,GACKE,QAAQ,CAACK,mBADd,EACmCP,KADnC,EAC0CE,QAAQ,CAACM,kBADnD,CAJR,CADG,gBAWH,+EACI,gCAAC,wBAAD;IAAmB,KAAK,EAAE;MAAEJ,KAAK,EAAE,SAAT;MAAoBC,QAAQ,EAAE;IAA9B;EAA1B,EADJ,eAEI;IAAM,SAAS,EAAC;EAAhB,GAAsCH,QAAQ,CAACO,cAA/C,CAFJ,EAGKN,GAAG,iBACA;IAAG,SAAS,EAAC,+BAAb;IAA6C,IAAI,EAAEA;EAAnD,GACKD,QAAQ,CAACQ,wBADd,CAJR,CAZR,CADJ;AAyBH,CA9BD;;AAgCAf,YAAY,CAACgB,SAAb,GAAyB;EACrBf,MAAM,EAAEgB,qBAAA,CAAUC,IADG;EAErBf,QAAQ,EAAEc,qBAAA,CAAUE,MAFC;EAGrBb,KAAK,EAAEW,qBAAA,CAAUE,MAHI;EAIrBjB,SAAS,EAAEe,qBAAA,CAAUE,MAJA;EAKrBf,iBAAiB,EAAEa,qBAAA,CAAUE,MALR;EAMrBd,KAAK,EAAEY,qBAAA,CAAUG;AANI,CAAzB;eASepB,Y"}
|
|
@@ -4,8 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
9
12
|
var UploadSvg = function UploadSvg() {
|
|
10
13
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
11
14
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -42,5 +45,7 @@ var UploadSvg = function UploadSvg() {
|
|
|
42
45
|
transform: "translate(-228.139 -228.577)"
|
|
43
46
|
}));
|
|
44
47
|
};
|
|
45
|
-
|
|
48
|
+
|
|
49
|
+
var _default = UploadSvg;
|
|
50
|
+
exports["default"] = _default;
|
|
46
51
|
//# sourceMappingURL=UploadSvg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadSvg.js","names":["
|
|
1
|
+
{"version":3,"file":"UploadSvg.js","names":["UploadSvg","flexShrink"],"sources":["vtx-import2/UploadSvg.jsx"],"sourcesContent":["import React from 'react';\n\nconst UploadSvg = () => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 48 48\"\n style={{ flexShrink: 0 }}\n >\n <defs></defs>\n <path\n className=\"a\"\n fill=\"#e9ecff\"\n d=\"M91.072,82.88m-24,0a24,24,0,1,0,24-24A24,24,0,0,0,67.072,82.88Z\"\n transform=\"translate(-67.072 -58.88)\"\n />\n <path\n className=\"b\"\n fill=\"#6c6cea\"\n d=\"M263.967,241.484H250.918a1.05,1.05,0,0,1-.718-.284l-2.972-2.784a1.045,1.045,0,0,0-.718-.284H240.8a3.593,3.593,0,0,0-3.592,3.593v21.5a3.593,3.593,0,0,0,3.592,3.593h23.163a3.593,3.593,0,0,0,3.592-3.593V245.079a3.59,3.59,0,0,0-3.589-3.6Zm-5.881,13.44a1.952,1.952,0,0,1-2.764.049l-.893-.861v5.465a1.956,1.956,0,1,1-3.911,0V254l-.869.817a1.955,1.955,0,1,1-2.68-2.847l4.146-3.9a1.953,1.953,0,0,1,2.7.016l4.223,4.074a1.951,1.951,0,0,1,.052,2.765Z\"\n transform=\"translate(-228.184 -228.623)\"\n />\n <path\n className=\"c\"\n fill=\"#757bf2\"\n d=\"M267.558,245.08a3.593,3.593,0,0,0-3.592-3.593H250.918a1.05,1.05,0,0,1-.718-.284l-2.972-2.787a1.045,1.045,0,0,0-.718-.284H240.8a3.593,3.593,0,0,0-3.592,3.593v21.5a3.593,3.593,0,0,0,3.592,3.593h10.7a24.089,24.089,0,0,0,16.05-18.307V245.08Zm-9.473,9.845a1.953,1.953,0,0,1-2.764.049l-.893-.861v5.465a1.956,1.956,0,1,1-3.911,0V254l-.869.817a1.955,1.955,0,1,1-2.68-2.847l4.146-3.9a1.953,1.953,0,0,1,2.7.016l4.223,4.074a1.951,1.951,0,0,1,.052,2.765Z\"\n transform=\"translate(-228.184 -228.623)\"\n />\n <path\n className=\"d\"\n fill=\"#8486f8\"\n d=\"M250.841,241.464a1.044,1.044,0,0,1-.714-.282l-2.955-2.768a1.039,1.039,0,0,0-.714-.282h-5.676a3.572,3.572,0,0,0-3.571,3.571v17.662l.147,0a23.808,23.808,0,0,0,13.088-3.9v-1.562l-.864.812a1.943,1.943,0,1,1-2.664-2.83l4.123-3.881a1.942,1.942,0,0,1,2.681.016l2.371,2.287a23.835,23.835,0,0,0,4.416-8.851h-9.666Z\"\n transform=\"translate(-228.121 -228.561)\"\n />\n <path\n className=\"e\"\n fill=\"#8d92f8\"\n d=\"M250.442,241.382a1.072,1.072,0,0,1-.315-.2l-2.955-2.768a1.039,1.039,0,0,0-.714-.282h-5.676a3.572,3.572,0,0,0-3.571,3.571v8.477a23.93,23.93,0,0,0,13.232-8.8Z\"\n transform=\"translate(-228.139 -228.577)\"\n />\n </svg>\n );\n};\n\nexport default UploadSvg;\n"],"mappings":";;;;;;;AAAA;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,GAAM;EACpB,oBACI;IACI,KAAK,EAAC,4BADV;IAEI,KAAK,EAAC,IAFV;IAGI,MAAM,EAAC,IAHX;IAII,OAAO,EAAC,WAJZ;IAKI,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAd;EALX,gBAOI,6CAPJ,eAQI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,iEAHN;IAII,SAAS,EAAC;EAJd,EARJ,eAcI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,ybAHN;IAII,SAAS,EAAC;EAJd,EAdJ,eAoBI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,4bAHN;IAII,SAAS,EAAC;EAJd,EApBJ,eA0BI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,mTAHN;IAII,SAAS,EAAC;EAJd,EA1BJ,eAgCI;IACI,SAAS,EAAC,GADd;IAEI,IAAI,EAAC,SAFT;IAGI,CAAC,EAAC,8JAHN;IAII,SAAS,EAAC;EAJd,EAhCJ,CADJ;AAyCH,CA1CD;;eA4CeD,S"}
|