@vtx/components 3.1.8 → 3.1.11
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/CHANGELOG.md +1097 -0
- package/README.md +19 -19
- package/lib/_util/filterSpecialCharacters.js +6 -6
- package/lib/_util/filterSpecialCharacters.js.map +1 -1
- package/lib/_util/getComponentProps.js +1 -1
- package/lib/_util/getComponentProps.js.map +1 -1
- package/lib/_util/getUrlParam.js.map +1 -1
- package/lib/_util/isFunction.js.map +1 -1
- package/lib/_util/isObject.js.map +1 -1
- package/lib/_util/useColSize.js.map +1 -1
- package/lib/_util/useInterval.js.map +1 -1
- package/lib/_util/useSet.js +2 -2
- package/lib/_util/useSet.js.map +1 -1
- package/lib/config.js.map +1 -1
- package/lib/index.js +58 -42
- package/lib/index.js.map +1 -1
- package/lib/style/index.css +0 -0
- package/lib/style/index.less +2 -0
- package/lib/style/themes/compact.css +0 -0
- package/lib/style/themes/compact.less +1 -0
- package/lib/style/themes/dark.css +0 -0
- package/lib/style/themes/dark.less +7 -0
- package/lib/style/themes/default.css +0 -0
- package/lib/style/themes/default.less +5 -0
- package/lib/style/themes/index.css +0 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/style/themes/variable.css +0 -0
- package/lib/style/themes/variable.less +5 -0
- package/lib/vtx-color-picker/index.js +2 -2
- package/lib/vtx-color-picker/index.js.map +1 -1
- package/lib/vtx-color-picker/style/css.js.map +1 -1
- package/lib/vtx-color-picker/style/index.js.map +1 -1
- package/lib/vtx-color-picker/style/index.less +12 -12
- package/lib/vtx-combogrid/Combogrid.js +4 -4
- package/lib/vtx-combogrid/Combogrid.js.map +1 -1
- package/lib/vtx-combogrid/index.js +2 -2
- package/lib/vtx-combogrid/index.js.map +1 -1
- package/lib/vtx-combogrid/style/css.js.map +1 -1
- package/lib/vtx-combogrid/style/index.js.map +1 -1
- package/lib/vtx-combogrid/style/index.less +29 -29
- package/lib/vtx-datagrid/Alert.js.map +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js +1 -1
- package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
- package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
- package/lib/vtx-datagrid/index.js +4 -4
- package/lib/vtx-datagrid/index.js.map +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js +1 -1
- package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
- package/lib/vtx-datagrid/style/css.js.map +1 -1
- package/lib/vtx-datagrid/style/index.css +3 -3
- package/lib/vtx-datagrid/style/index.js.map +1 -1
- package/lib/vtx-datagrid/style/index.less +193 -198
- package/lib/vtx-date-picker/QdatePicker.js +2 -2
- package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
- package/lib/vtx-date-picker/generatePicker.js +11 -11
- package/lib/vtx-date-picker/generatePicker.js.map +1 -1
- package/lib/vtx-date-picker/index.js.map +1 -1
- package/lib/vtx-date-picker/style/css.js.map +1 -1
- package/lib/vtx-date-picker/style/index.js.map +1 -1
- package/lib/vtx-date-picker/style/index.less +38 -38
- package/lib/vtx-editor/index.js +2 -2
- package/lib/vtx-editor/index.js.map +1 -1
- package/lib/vtx-editor/style/css.js.map +1 -1
- 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 +3 -3
- package/lib/vtx-ellipsis-text/index.js.map +1 -1
- package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
- 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 +8 -8
- package/lib/vtx-export/index.js.map +1 -1
- package/lib/vtx-export/style/css.js.map +1 -1
- package/lib/vtx-export/style/index.js.map +1 -1
- package/lib/vtx-export/style/index.less +6 -6
- package/lib/vtx-form-layout/Card.js +1 -1
- package/lib/vtx-form-layout/Card.js.map +1 -1
- package/lib/vtx-form-layout/Divider.js.map +1 -1
- package/lib/vtx-form-layout/FormItem.js +2 -2
- package/lib/vtx-form-layout/FormItem.js.map +1 -1
- package/lib/vtx-form-layout/Pane.js.map +1 -1
- package/lib/vtx-form-layout/Row.js.map +1 -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.map +1 -1
- package/lib/vtx-form-layout/style/css.js.map +1 -1
- package/lib/vtx-form-layout/style/index.js.map +1 -1
- package/lib/vtx-form-layout/style/index.less +211 -211
- package/lib/vtx-image/Image.js +1 -1
- package/lib/vtx-image/Image.js.map +1 -1
- package/lib/vtx-image/Preview.js +3 -3
- package/lib/vtx-image/Preview.js.map +1 -1
- package/lib/vtx-image/PreviewGroup.js +2 -2
- package/lib/vtx-image/PreviewGroup.js.map +1 -1
- package/lib/vtx-image/index.js +1 -1
- package/lib/vtx-image/index.js.map +1 -1
- package/lib/vtx-image/style/css.js.map +1 -1
- package/lib/vtx-image/style/index.js.map +1 -1
- package/lib/vtx-image/style/index.less +63 -63
- package/lib/vtx-import/index.js +2 -2
- package/lib/vtx-import/index.js.map +1 -1
- package/lib/vtx-import/result.js +1 -1
- package/lib/vtx-import/result.js.map +1 -1
- package/lib/vtx-import/style/css.js.map +1 -1
- 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 +46 -0
- package/lib/vtx-import2/CheckResult.js.map +1 -0
- package/lib/vtx-import2/Content.js +110 -0
- package/lib/vtx-import2/Content.js.map +1 -0
- package/lib/vtx-import2/DownloadSvg.js +51 -0
- package/lib/vtx-import2/DownloadSvg.js.map +1 -0
- package/lib/vtx-import2/ImportResult.js +52 -0
- package/lib/vtx-import2/ImportResult.js.map +1 -0
- package/lib/vtx-import2/UploadSvg.js +51 -0
- package/lib/vtx-import2/UploadSvg.js.map +1 -0
- package/lib/vtx-import2/index.js +223 -0
- package/lib/vtx-import2/index.js.map +1 -0
- package/lib/vtx-import2/style/css.js +10 -0
- package/lib/vtx-import2/style/css.js.map +1 -0
- package/lib/vtx-import2/style/index.css +125 -0
- package/lib/vtx-import2/style/index.js +10 -0
- package/lib/vtx-import2/style/index.js.map +1 -0
- package/lib/vtx-import2/style/index.less +102 -0
- package/lib/vtx-input/TextArea.js +2 -2
- package/lib/vtx-input/TextArea.js.map +1 -1
- package/lib/vtx-input/index.js +4 -4
- package/lib/vtx-input/index.js.map +1 -1
- package/lib/vtx-input/style/css.js.map +1 -1
- 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.map +1 -1
- package/lib/vtx-modal/Title.js.map +1 -1
- package/lib/vtx-modal/index.js +5 -5
- package/lib/vtx-modal/index.js.map +1 -1
- package/lib/vtx-modal/style/css.js.map +1 -1
- package/lib/vtx-modal/style/index.js.map +1 -1
- package/lib/vtx-modal/style/index.less +95 -95
- package/lib/vtx-page-layout/Basic.js +2 -2
- package/lib/vtx-page-layout/Basic.js.map +1 -1
- package/lib/vtx-page-layout/Content.js +2 -2
- package/lib/vtx-page-layout/Content.js.map +1 -1
- package/lib/vtx-page-layout/Pane.js.map +1 -1
- package/lib/vtx-page-layout/TableLayout.js +13 -13
- package/lib/vtx-page-layout/TableLayout.js.map +1 -1
- package/lib/vtx-page-layout/TableWrap.js +2 -2
- package/lib/vtx-page-layout/TableWrap.js.map +1 -1
- package/lib/vtx-page-layout/container.js +12 -12
- package/lib/vtx-page-layout/container.js.map +1 -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 +9 -6
- 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-rps-frame/style/index.less +8 -8
- package/lib/vtx-scrollable-row/index.js +4 -4
- 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 +2 -2
- package/lib/vtx-search/VtxCol.js.map +1 -1
- package/lib/vtx-search/VtxRow.js.map +1 -1
- package/lib/vtx-search/index.js +3 -3
- package/lib/vtx-search/index.js.map +1 -1
- package/lib/vtx-search/style/css.js.map +1 -1
- package/lib/vtx-search/style/index.js.map +1 -1
- package/lib/vtx-search/style/index.less +83 -83
- package/lib/vtx-search-map-input/index.js +13 -7
- package/lib/vtx-search-map-input/index.js.map +1 -1
- package/lib/vtx-search-map-input/style/css.js.map +1 -1
- package/lib/vtx-search-map-input/style/index.js.map +1 -1
- package/lib/vtx-select/index.js +4 -4
- package/lib/vtx-select/index.js.map +1 -1
- package/lib/vtx-select/style/css.js.map +1 -1
- 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 +1 -1
- package/lib/vtx-signature/index.js.map +1 -1
- package/lib/vtx-signature/style/css.js.map +1 -1
- 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 +3 -3
- package/lib/vtx-split-pane/Pane.js.map +1 -1
- package/lib/vtx-split-pane/Resizer.js +4 -4
- package/lib/vtx-split-pane/Resizer.js.map +1 -1
- package/lib/vtx-split-pane/SplitPane.js +5 -5
- package/lib/vtx-split-pane/SplitPane.js.map +1 -1
- package/lib/vtx-split-pane/index.js.map +1 -1
- package/lib/vtx-split-pane/style/css.js.map +1 -1
- 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 +1 -1
- package/lib/vtx-statistics-column/Back.js.map +1 -1
- package/lib/vtx-statistics-column/Item.js +3 -3
- package/lib/vtx-statistics-column/Item.js.map +1 -1
- package/lib/vtx-statistics-column/Total.js +3 -3
- package/lib/vtx-statistics-column/Total.js.map +1 -1
- package/lib/vtx-statistics-column/context.js.map +1 -1
- package/lib/vtx-statistics-column/index.js.map +1 -1
- package/lib/vtx-statistics-column/style/css.js.map +1 -1
- 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 +1 -1
- 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-upload/FilePreview.js +2 -2
- package/lib/vtx-upload/FilePreview.js.map +1 -1
- package/lib/vtx-upload/index.js +17 -6
- package/lib/vtx-upload/index.js.map +1 -1
- package/lib/vtx-upload/style/css.js.map +1 -1
- package/lib/vtx-upload/style/index.js.map +1 -1
- package/lib/vtx-upload/style/index.less +61 -61
- package/lib/vtx-ztree/index.js +10 -10
- package/lib/vtx-ztree/index.js.map +1 -1
- package/lib/vtx-ztree/style/css.js.map +1 -1
- 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 +8 -8
- package/lib/vtx-ztree-select/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/css.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.js.map +1 -1
- package/lib/vtx-ztree-select/style/index.less +74 -74
- package/package.json +123 -123
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var UploadSvg = function UploadSvg() {
|
|
13
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
width: "48",
|
|
16
|
+
height: "48",
|
|
17
|
+
viewBox: "0 0 48 48",
|
|
18
|
+
style: {
|
|
19
|
+
flexShrink: 0
|
|
20
|
+
}
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement("defs", null), /*#__PURE__*/_react["default"].createElement("path", {
|
|
22
|
+
className: "a",
|
|
23
|
+
fill: "#e9ecff",
|
|
24
|
+
d: "M91.072,82.88m-24,0a24,24,0,1,0,24-24A24,24,0,0,0,67.072,82.88Z",
|
|
25
|
+
transform: "translate(-67.072 -58.88)"
|
|
26
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
27
|
+
className: "b",
|
|
28
|
+
fill: "#6c6cea",
|
|
29
|
+
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",
|
|
30
|
+
transform: "translate(-228.184 -228.623)"
|
|
31
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
32
|
+
className: "c",
|
|
33
|
+
fill: "#757bf2",
|
|
34
|
+
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",
|
|
35
|
+
transform: "translate(-228.184 -228.623)"
|
|
36
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
37
|
+
className: "d",
|
|
38
|
+
fill: "#8486f8",
|
|
39
|
+
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",
|
|
40
|
+
transform: "translate(-228.121 -228.561)"
|
|
41
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
42
|
+
className: "e",
|
|
43
|
+
fill: "#8d92f8",
|
|
44
|
+
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",
|
|
45
|
+
transform: "translate(-228.139 -228.577)"
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var _default = UploadSvg;
|
|
50
|
+
exports["default"] = _default;
|
|
51
|
+
//# sourceMappingURL=UploadSvg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UploadSvg.js","names":["UploadSvg","flexShrink"],"sources":["vtx-import2/UploadSvg.jsx"],"sourcesContent":["import React from 'react';\r\n\r\nconst UploadSvg = () => {\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"48\"\r\n height=\"48\"\r\n viewBox=\"0 0 48 48\"\r\n style={{ flexShrink: 0 }}\r\n >\r\n <defs></defs>\r\n <path\r\n className=\"a\"\r\n fill=\"#e9ecff\"\r\n d=\"M91.072,82.88m-24,0a24,24,0,1,0,24-24A24,24,0,0,0,67.072,82.88Z\"\r\n transform=\"translate(-67.072 -58.88)\"\r\n />\r\n <path\r\n className=\"b\"\r\n fill=\"#6c6cea\"\r\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\"\r\n transform=\"translate(-228.184 -228.623)\"\r\n />\r\n <path\r\n className=\"c\"\r\n fill=\"#757bf2\"\r\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\"\r\n transform=\"translate(-228.184 -228.623)\"\r\n />\r\n <path\r\n className=\"d\"\r\n fill=\"#8486f8\"\r\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\"\r\n transform=\"translate(-228.121 -228.561)\"\r\n />\r\n <path\r\n className=\"e\"\r\n fill=\"#8d92f8\"\r\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\"\r\n transform=\"translate(-228.139 -228.577)\"\r\n />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default UploadSvg;\r\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"}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
|
|
16
|
+
var _Content = _interopRequireDefault(require("./Content"));
|
|
17
|
+
|
|
18
|
+
var _ImportResult = _interopRequireDefault(require("./ImportResult"));
|
|
19
|
+
|
|
20
|
+
var _ahooks = require("ahooks");
|
|
21
|
+
|
|
22
|
+
var _utils = require("@vtx/utils");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
+
|
|
32
|
+
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."); }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
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
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
+
|
|
42
|
+
var _getUrlParam = (0, _utils.getUrlParam)(),
|
|
43
|
+
token = _getUrlParam.token;
|
|
44
|
+
|
|
45
|
+
var VtxImport2 = function VtxImport2(props) {
|
|
46
|
+
var visible = props.visible,
|
|
47
|
+
close = props.close,
|
|
48
|
+
title = props.title,
|
|
49
|
+
accept = props.accept,
|
|
50
|
+
fileKey = props.fileKey,
|
|
51
|
+
uploadURL = props.uploadURL,
|
|
52
|
+
postData = props.postData,
|
|
53
|
+
errorURL = props.errorURL,
|
|
54
|
+
templateURL = props.templateURL,
|
|
55
|
+
afterUpload = props.afterUpload,
|
|
56
|
+
errorDownloadName = props.errorDownloadName;
|
|
57
|
+
|
|
58
|
+
var _useState = (0, _react.useState)(0),
|
|
59
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
+
status = _useState2[0],
|
|
61
|
+
setStatus = _useState2[1];
|
|
62
|
+
|
|
63
|
+
var _useState3 = (0, _react.useState)(false),
|
|
64
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
65
|
+
result = _useState4[0],
|
|
66
|
+
setResult = _useState4[1];
|
|
67
|
+
|
|
68
|
+
var _useState5 = (0, _react.useState)(5),
|
|
69
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
70
|
+
countdown = _useState6[0],
|
|
71
|
+
setCountdown = _useState6[1];
|
|
72
|
+
|
|
73
|
+
var _useState7 = (0, _react.useState)([]),
|
|
74
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
75
|
+
fileList = _useState8[0],
|
|
76
|
+
setFileList = _useState8[1];
|
|
77
|
+
|
|
78
|
+
var _useState9 = (0, _react.useState)(undefined),
|
|
79
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
80
|
+
interval = _useState10[0],
|
|
81
|
+
setInterval = _useState10[1];
|
|
82
|
+
|
|
83
|
+
var _useState11 = (0, _react.useState)(''),
|
|
84
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
85
|
+
errorFile = _useState12[0],
|
|
86
|
+
setErrorFile = _useState12[1];
|
|
87
|
+
|
|
88
|
+
var _useState13 = (0, _react.useState)(false),
|
|
89
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
90
|
+
uploading = _useState14[0],
|
|
91
|
+
setUploading = _useState14[1];
|
|
92
|
+
|
|
93
|
+
(0, _ahooks.useInterval)(function () {
|
|
94
|
+
if (countdown === 0) {
|
|
95
|
+
return close();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
setCountdown(countdown - 1);
|
|
99
|
+
}, interval); // 获取上传地址(拼接参数)
|
|
100
|
+
|
|
101
|
+
var getPostURL = function getPostURL() {
|
|
102
|
+
var postUrl = uploadURL;
|
|
103
|
+
var postArray = [];
|
|
104
|
+
|
|
105
|
+
for (var k in postData) {
|
|
106
|
+
if (postData[k] !== undefined && postData[k] !== null && postData[k] !== '') {
|
|
107
|
+
postArray.push("".concat(k, "=").concat(encodeURIComponent(postData[k])));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return postArray.length > 0 ? "".concat(postUrl, "?").concat(postArray.join('&')) : postUrl;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
var dealResult = function dealResult(response) {
|
|
115
|
+
setUploading(false);
|
|
116
|
+
var parseData = JSON.parse(response);
|
|
117
|
+
setStatus(1);
|
|
118
|
+
|
|
119
|
+
if (typeof props.afterUpload === 'function') {
|
|
120
|
+
afterUpload(parseData);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (parseData.result === 0) {
|
|
124
|
+
setResult(true);
|
|
125
|
+
setCountdown(5);
|
|
126
|
+
setInterval(1000);
|
|
127
|
+
} else if (parseData.result === 1) {
|
|
128
|
+
setResult(false);
|
|
129
|
+
|
|
130
|
+
if (parseData.data) {
|
|
131
|
+
setErrorFile(parseData.data);
|
|
132
|
+
} else {
|
|
133
|
+
_antd.message.error((parseData === null || parseData === void 0 ? void 0 : parseData.msg) || '服务器异常');
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
var onUpload = function onUpload() {
|
|
139
|
+
if (fileList.length === 0) {
|
|
140
|
+
return _antd.message.info('请选择需要上传的文件');
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
setUploading(true);
|
|
144
|
+
var postUrl = getPostURL();
|
|
145
|
+
var fmd = new FormData();
|
|
146
|
+
fmd.append(fileKey, fileList[0]);
|
|
147
|
+
var request = new XMLHttpRequest();
|
|
148
|
+
request.open('POST', postUrl);
|
|
149
|
+
request.setRequestHeader('Authorization', token ? "Bear ".concat(token) : '');
|
|
150
|
+
request.setRequestHeader('access_token', token ? "".concat(token) : '');
|
|
151
|
+
|
|
152
|
+
request.onreadystatechange = function (e) {
|
|
153
|
+
if (e.target.readyState == 4) {
|
|
154
|
+
dealResult(e.target.response);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
request.send(fmd);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
var againUpload = function againUpload() {
|
|
162
|
+
setStatus(0);
|
|
163
|
+
setInterval(undefined);
|
|
164
|
+
setFileList([]);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
var modelProps = {
|
|
168
|
+
visible: visible,
|
|
169
|
+
width: 392,
|
|
170
|
+
maskClosable: false,
|
|
171
|
+
footer: [/*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
172
|
+
key: "closeWindow",
|
|
173
|
+
onClick: close
|
|
174
|
+
}, "\u5173\u95ED".concat(status === 1 && result ? '(' + countdown + ')' : '')), (status === 0 || status === 1 && !result) && /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
175
|
+
key: "uploadSubmit",
|
|
176
|
+
type: "primary",
|
|
177
|
+
loading: uploading,
|
|
178
|
+
onClick: status === 0 ? onUpload : againUpload
|
|
179
|
+
}, status === 0 ? '上传' : result ? "\u5BFC\u5165(".concat(countdown, ")") : '再次上传')],
|
|
180
|
+
onCancel: close,
|
|
181
|
+
title: /*#__PURE__*/_react["default"].createElement("div", {
|
|
182
|
+
className: "vtx-import2-modal-header-title"
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
184
|
+
className: "vtx-import2-modal-header-text"
|
|
185
|
+
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
186
|
+
className: "vtx-import2-modal-header-subtitle"
|
|
187
|
+
}, "\u5BFC\u5165"))
|
|
188
|
+
};
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, modelProps, status === 0 ? /*#__PURE__*/_react["default"].createElement(_Content["default"], {
|
|
190
|
+
fileList: fileList,
|
|
191
|
+
setFileList: setFileList,
|
|
192
|
+
accept: accept,
|
|
193
|
+
fileKey: fileKey,
|
|
194
|
+
templateURL: templateURL
|
|
195
|
+
}) : /*#__PURE__*/_react["default"].createElement(_ImportResult["default"], {
|
|
196
|
+
result: result,
|
|
197
|
+
errorFile: errorFile,
|
|
198
|
+
errorURL: errorURL,
|
|
199
|
+
errorDownloadName: errorDownloadName
|
|
200
|
+
}));
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
VtxImport2.defaultProps = {
|
|
204
|
+
fileKey: 'file',
|
|
205
|
+
accept: 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',
|
|
206
|
+
postData: {}
|
|
207
|
+
};
|
|
208
|
+
VtxImport2.propTypes = {
|
|
209
|
+
visible: _propTypes["default"].bool,
|
|
210
|
+
templateURL: _propTypes["default"].string,
|
|
211
|
+
uploadURL: _propTypes["default"].string,
|
|
212
|
+
title: _propTypes["default"].string,
|
|
213
|
+
postData: _propTypes["default"].object,
|
|
214
|
+
fileKey: _propTypes["default"].string,
|
|
215
|
+
accept: _propTypes["default"].string,
|
|
216
|
+
close: _propTypes["default"].func,
|
|
217
|
+
errorURL: _propTypes["default"].string,
|
|
218
|
+
errorDownloadName: _propTypes["default"].string,
|
|
219
|
+
afterUpload: _propTypes["default"].func
|
|
220
|
+
};
|
|
221
|
+
var _default = VtxImport2;
|
|
222
|
+
exports["default"] = _default;
|
|
223
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["getUrlParam","token","VtxImport2","props","visible","close","title","accept","fileKey","uploadURL","postData","errorURL","templateURL","afterUpload","errorDownloadName","useState","status","setStatus","result","setResult","countdown","setCountdown","fileList","setFileList","undefined","interval","setInterval","errorFile","setErrorFile","uploading","setUploading","useInterval","getPostURL","postUrl","postArray","k","push","encodeURIComponent","length","join","dealResult","response","parseData","JSON","parse","data","message","error","msg","onUpload","info","fmd","FormData","append","request","XMLHttpRequest","open","setRequestHeader","onreadystatechange","e","target","readyState","send","againUpload","modelProps","width","maskClosable","footer","onCancel","defaultProps","propTypes","PropTypes","bool","string","object","func"],"sources":["vtx-import2/index.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Button, message, Modal } from 'antd';\r\nimport Content from './Content';\r\nimport { useState } from 'react';\r\nimport ImportResult from './ImportResult';\r\nimport { useInterval } from 'ahooks';\r\nimport { getUrlParam } from '@vtx/utils';\r\n\r\nconst { token } = getUrlParam();\r\n\r\nconst VtxImport2 = props => {\r\n const {\r\n visible,\r\n close,\r\n title,\r\n accept,\r\n fileKey,\r\n uploadURL,\r\n postData,\r\n errorURL,\r\n templateURL,\r\n afterUpload,\r\n errorDownloadName,\r\n } = props;\r\n const [status, setStatus] = useState(0);\r\n const [result, setResult] = useState(false);\r\n const [countdown, setCountdown] = useState(5);\r\n const [fileList, setFileList] = useState([]);\r\n const [interval, setInterval] = useState(undefined);\r\n const [errorFile, setErrorFile] = useState('');\r\n const [uploading, setUploading] = useState(false);\r\n useInterval(() => {\r\n if (countdown === 0) {\r\n return close();\r\n }\r\n setCountdown(countdown - 1);\r\n }, interval);\r\n\r\n // 获取上传地址(拼接参数)\r\n const getPostURL = () => {\r\n const postUrl = uploadURL;\r\n const postArray = [];\r\n for (const k in postData) {\r\n if (postData[k] !== undefined && postData[k] !== null && postData[k] !== '') {\r\n postArray.push(`${k}=${encodeURIComponent(postData[k])}`);\r\n }\r\n }\r\n return postArray.length > 0 ? `${postUrl}?${postArray.join('&')}` : postUrl;\r\n };\r\n\r\n const dealResult = response => {\r\n setUploading(false);\r\n const parseData = JSON.parse(response);\r\n setStatus(1);\r\n if (typeof props.afterUpload === 'function') {\r\n afterUpload(parseData);\r\n }\r\n if (parseData.result === 0) {\r\n setResult(true);\r\n setCountdown(5);\r\n setInterval(1000);\r\n } else if (parseData.result === 1) {\r\n setResult(false);\r\n if (parseData.data) {\r\n setErrorFile(parseData.data);\r\n } else {\r\n message.error(parseData?.msg || '服务器异常');\r\n }\r\n }\r\n };\r\n\r\n const onUpload = () => {\r\n if (fileList.length === 0) {\r\n return message.info('请选择需要上传的文件');\r\n }\r\n setUploading(true);\r\n const postUrl = getPostURL();\r\n const fmd = new FormData();\r\n fmd.append(fileKey, fileList[0]);\r\n const request = new XMLHttpRequest();\r\n request.open('POST', postUrl);\r\n\r\n request.setRequestHeader('Authorization', token ? `Bear ${token}` : '');\r\n request.setRequestHeader('access_token', token ? `${token}` : '');\r\n request.onreadystatechange = e => {\r\n if (e.target.readyState == 4) {\r\n dealResult(e.target.response);\r\n }\r\n };\r\n\r\n request.send(fmd);\r\n };\r\n\r\n const againUpload = () => {\r\n setStatus(0);\r\n setInterval(undefined);\r\n setFileList([]);\r\n };\r\n\r\n const modelProps = {\r\n visible,\r\n width: 392,\r\n maskClosable: false,\r\n footer: [\r\n <Button key=\"closeWindow\" onClick={close}>\r\n {`关闭${status === 1 && result ? '(' + countdown + ')' : ''}`}\r\n </Button>,\r\n (status === 0 || (status === 1 && !result)) && (\r\n <Button\r\n key=\"uploadSubmit\"\r\n type=\"primary\"\r\n loading={uploading}\r\n onClick={status === 0 ? onUpload : againUpload}\r\n >\r\n {status === 0 ? '上传' : result ? `导入(${countdown})` : '再次上传'}\r\n </Button>\r\n ),\r\n ],\r\n onCancel: close,\r\n title: (\r\n <div className=\"vtx-import2-modal-header-title\">\r\n <span className=\"vtx-import2-modal-header-text\">{title}</span>\r\n <span className=\"vtx-import2-modal-header-subtitle\">导入</span>\r\n </div>\r\n ),\r\n };\r\n return (\r\n <Modal {...modelProps}>\r\n {status === 0 ? (\r\n <Content\r\n fileList={fileList}\r\n setFileList={setFileList}\r\n accept={accept}\r\n fileKey={fileKey}\r\n templateURL={templateURL}\r\n />\r\n ) : (\r\n <ImportResult\r\n result={result}\r\n errorFile={errorFile}\r\n errorURL={errorURL}\r\n errorDownloadName={errorDownloadName}\r\n />\r\n )}\r\n </Modal>\r\n );\r\n};\r\n\r\nVtxImport2.defaultProps = {\r\n fileKey: 'file',\r\n accept:\r\n 'application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv',\r\n postData: {},\r\n};\r\n\r\nVtxImport2.propTypes = {\r\n visible: PropTypes.bool,\r\n templateURL: PropTypes.string,\r\n uploadURL: PropTypes.string,\r\n title: PropTypes.string,\r\n postData: PropTypes.object,\r\n fileKey: PropTypes.string,\r\n accept: PropTypes.string,\r\n close: PropTypes.func,\r\n errorURL: PropTypes.string,\r\n errorDownloadName: PropTypes.string,\r\n afterUpload: PropTypes.func,\r\n};\r\n\r\nexport default VtxImport2;\r\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;AAEA,mBAAkB,IAAAA,kBAAA,GAAlB;AAAA,IAAQC,KAAR,gBAAQA,KAAR;;AAEA,IAAMC,UAAU,GAAG,SAAbA,UAAa,CAAAC,KAAK,EAAI;EACxB,IACIC,OADJ,GAYID,KAZJ,CACI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D,MAAM,EACF,qGAHkB;EAItBG,QAAQ,EAAE;AAJY,CAA1B;AAOAR,UAAU,CAACoE,SAAX,GAAuB;EACnBlE,OAAO,EAAEmE,qBAAA,CAAUC,IADA;EAEnB5D,WAAW,EAAE2D,qBAAA,CAAUE,MAFJ;EAGnBhE,SAAS,EAAE8D,qBAAA,CAAUE,MAHF;EAInBnE,KAAK,EAAEiE,qBAAA,CAAUE,MAJE;EAKnB/D,QAAQ,EAAE6D,qBAAA,CAAUG,MALD;EAMnBlE,OAAO,EAAE+D,qBAAA,CAAUE,MANA;EAOnBlE,MAAM,EAAEgE,qBAAA,CAAUE,MAPC;EAQnBpE,KAAK,EAAEkE,qBAAA,CAAUI,IARE;EASnBhE,QAAQ,EAAE4D,qBAAA,CAAUE,MATD;EAUnB3D,iBAAiB,EAAEyD,qBAAA,CAAUE,MAVV;EAWnB5D,WAAW,EAAE0D,qBAAA,CAAUI;AAXJ,CAAvB;eAcezE,U"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","names":[],"sources":["vtx-import2/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\r\nimport 'antd/lib/button/style';\r\nimport 'antd/lib/message/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.vtx-datagrid-modal {
|
|
2
|
+
background-color: '#f8f8f8';
|
|
3
|
+
}
|
|
4
|
+
.vtx-import2-modal-header-title {
|
|
5
|
+
color: rgba(0, 0, 0, 0.85);
|
|
6
|
+
}
|
|
7
|
+
.vtx-import2-modal-header-title .vtx-import2-modal-header-text {
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
}
|
|
10
|
+
.vtx-import2-modal-header-title .vtx-import2-modal-header-subtitle {
|
|
11
|
+
font-weight: 700;
|
|
12
|
+
}
|
|
13
|
+
.vtx-import2-modal-header-title .vtx-import2-modal-header-subtitle::before {
|
|
14
|
+
margin: 0 4px;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
content: '>';
|
|
17
|
+
}
|
|
18
|
+
.vtx-import2-content-box {
|
|
19
|
+
position: relative;
|
|
20
|
+
display: -webkit-box;
|
|
21
|
+
display: -ms-flexbox;
|
|
22
|
+
display: flex;
|
|
23
|
+
-webkit-box-align: center;
|
|
24
|
+
-ms-flex-align: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
height: 80px;
|
|
27
|
+
padding: 16px 16px 16px 48px;
|
|
28
|
+
color: #1890ff;
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
background-color: #f5f5f5;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
}
|
|
33
|
+
.vtx-import2-content-box .vtx-import2-download {
|
|
34
|
+
margin-left: 16px;
|
|
35
|
+
}
|
|
36
|
+
.vtx-import2-content-box .vtx-import2-file-list {
|
|
37
|
+
display: -webkit-box;
|
|
38
|
+
display: -ms-flexbox;
|
|
39
|
+
display: flex;
|
|
40
|
+
-webkit-box-orient: vertical;
|
|
41
|
+
-webkit-box-direction: normal;
|
|
42
|
+
-ms-flex-direction: column;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
-webkit-box-pack: justify;
|
|
45
|
+
-ms-flex-pack: justify;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
width: 100%;
|
|
48
|
+
margin-left: 16px;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
}
|
|
53
|
+
.vtx-import2-content-box .vtx-import2-file-list .vtx-import2-text {
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
.vtx-import2-content-box .vtx-import2-file-list .vtx-import2-file-item {
|
|
57
|
+
display: -webkit-box;
|
|
58
|
+
display: -ms-flexbox;
|
|
59
|
+
display: flex;
|
|
60
|
+
-webkit-box-align: center;
|
|
61
|
+
-ms-flex-align: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
-webkit-box-pack: justify;
|
|
64
|
+
-ms-flex-pack: justify;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
color: rgba(0, 0, 0, 0.65);
|
|
67
|
+
}
|
|
68
|
+
.vtx-import2-content-box .vtx-import2-file-list .vtx-import2-file-item .vtx-import2-file-name {
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
}
|
|
73
|
+
.vtx-import2-content-box:first-child {
|
|
74
|
+
margin-bottom: 20px;
|
|
75
|
+
}
|
|
76
|
+
.vtx-import2-content-box .vtx-import2-content-mark {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
display: -webkit-box;
|
|
81
|
+
display: -ms-flexbox;
|
|
82
|
+
display: flex;
|
|
83
|
+
-webkit-box-align: center;
|
|
84
|
+
-ms-flex-align: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
-webkit-box-pack: center;
|
|
87
|
+
-ms-flex-pack: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
width: 28px;
|
|
90
|
+
height: 22px;
|
|
91
|
+
color: #fff;
|
|
92
|
+
background-color: #1890ff;
|
|
93
|
+
border: 1px solid #1890ff;
|
|
94
|
+
border-radius: 4px 0;
|
|
95
|
+
opacity: 0.6;
|
|
96
|
+
}
|
|
97
|
+
.vtx-import2-result-warp {
|
|
98
|
+
display: -webkit-box;
|
|
99
|
+
display: -ms-flexbox;
|
|
100
|
+
display: flex;
|
|
101
|
+
-webkit-box-orient: vertical;
|
|
102
|
+
-webkit-box-direction: normal;
|
|
103
|
+
-ms-flex-direction: column;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
-webkit-box-align: center;
|
|
106
|
+
-ms-flex-align: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
padding: 12px 0;
|
|
109
|
+
}
|
|
110
|
+
.vtx-import2-result-warp .vtx-import2-result {
|
|
111
|
+
margin-top: 20px;
|
|
112
|
+
margin-bottom: 12px;
|
|
113
|
+
color: rgba(0, 0, 0, 0.85);
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
font-size: 24px;
|
|
116
|
+
}
|
|
117
|
+
.vtx-import2-result-warp .vtx-import2-result-success-tips {
|
|
118
|
+
color: rgba(0, 0, 0, 0.45);
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
}
|
|
121
|
+
.vtx-import2-result-warp .vtx-import2-result-error-tips {
|
|
122
|
+
color: #1890ff;
|
|
123
|
+
font-size: 14px;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["vtx-import2/style/index.js"],"sourcesContent":["import 'antd/lib/modal/style';\r\nimport 'antd/lib/button/style';\r\nimport 'antd/lib/message/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
}
|
|
9
|
+
.vtx-import2-modal-header-title {
|
|
10
|
+
color: @text-color;
|
|
11
|
+
.vtx-import2-modal-header-text {
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
}
|
|
14
|
+
.vtx-import2-modal-header-subtitle {
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
&::before {
|
|
17
|
+
margin: 0 4px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
content: '>';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.vtx-import2-content-box {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
height: 80px;
|
|
29
|
+
padding: 16px 16px 16px 48px;
|
|
30
|
+
color: @primary-color;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
background-color: #f5f5f5;
|
|
33
|
+
border-radius: 4px;
|
|
34
|
+
.vtx-import2-download {
|
|
35
|
+
margin-left: 16px;
|
|
36
|
+
}
|
|
37
|
+
.vtx-import2-file-list {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
width: 100%;
|
|
42
|
+
margin-left: 16px;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
.vtx-import2-text {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
.vtx-import2-file-item {
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
color: fade(@black, 65%);
|
|
54
|
+
.vtx-import2-file-name {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&:first-child {
|
|
62
|
+
margin-bottom: 20px;
|
|
63
|
+
}
|
|
64
|
+
.vtx-import2-content-mark {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
width: 28px;
|
|
72
|
+
height: 22px;
|
|
73
|
+
color: @text-color-inverse;
|
|
74
|
+
background-color: @primary-color;
|
|
75
|
+
border: 1px solid @primary-color;
|
|
76
|
+
border-radius: 4px 0;
|
|
77
|
+
opacity: 0.6;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.vtx-import2-result-warp {
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
align-items: center;
|
|
85
|
+
padding: 12px 0;
|
|
86
|
+
.vtx-import2-result {
|
|
87
|
+
margin-top: 20px;
|
|
88
|
+
margin-bottom: 12px;
|
|
89
|
+
color: fade(@black, 85%);
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
font-size: 24px;
|
|
92
|
+
}
|
|
93
|
+
.vtx-import2-result-success-tips {
|
|
94
|
+
color: fade(@black, 45%);
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
}
|
|
97
|
+
.vtx-import2-result-error-tips {
|
|
98
|
+
color: @primary-color;
|
|
99
|
+
font-size: 14px;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - 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
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
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
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
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); }
|
|
27
27
|
|
|
28
28
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
29
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"TextArea.js","names":["TextArea","forwardRef","props","ref","maxLength","showCount","placeholder","rest","len","useLength","value","render","propTypes","PropTypes","number","string","bool"],"sources":["vtx-input/TextArea.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Input from 'antd/lib/input';\r\nimport useLength from './useLength';\r\n\r\nconst TextArea = forwardRef((props, ref) => {\r\n const { maxLength = 200, showCount = true, placeholder = '请输入', ...rest } = props;\r\n const len = useLength(props.value, { showCount });\r\n\r\n let render = (\r\n <Input.TextArea placeholder={placeholder} maxLength={maxLength} {...rest} ref={ref} />\r\n );\r\n\r\n showCount &&\r\n 'value' in props &&\r\n (render = (\r\n <div className=\"vtx-input-textarea\" data-count={`${len}/${maxLength}`}>\r\n {render}\r\n </div>\r\n ));\r\n return render;\r\n});\r\n\r\nexport default TextArea;\r\n\r\nTextArea.propTypes = {\r\n maxLength: PropTypes.number,\r\n value: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typeof(obj) { "@babel/helpers - 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
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -31,11 +31,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
function _extends() { _extends = Object.assign
|
|
34
|
+
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); }
|
|
35
35
|
|
|
36
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
36
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
37
37
|
|
|
38
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
38
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39
39
|
|
|
40
40
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
41
|
|