@yilianjituan/yilian_dgerm 1.0.3 → 1.0.5
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/.eslintrc.js +0 -0
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/business/Entry/index.d.ts +0 -0
- package/dist/business/Entry/index.interface.d.ts +0 -0
- package/dist/business/Entry/index.interface.js +0 -0
- package/dist/business/Entry/index.js +0 -0
- package/dist/business/Entry/index.scss +0 -0
- package/dist/business/TestBtn/index.d.ts +0 -0
- package/dist/business/TestBtn/index.interface.d.ts +0 -0
- package/dist/business/TestBtn/index.interface.js +0 -0
- package/dist/business/TestBtn/index.js +0 -0
- package/dist/commonAxios/Axios.d.ts +0 -0
- package/dist/commonAxios/Axios.js +0 -0
- package/dist/commonAxios/http.d.ts +0 -0
- package/dist/commonAxios/http.js +0 -0
- package/dist/commonAxios/index.d.ts +0 -0
- package/dist/commonAxios/index.js +0 -0
- package/dist/commonAxios/juicer.d.ts +0 -0
- package/dist/commonAxios/juicer.js +0 -0
- package/dist/commonData/address.d.ts +0 -0
- package/dist/commonData/address.js +0 -0
- package/dist/commonImg/ic_im_no_archives_new.png +0 -0
- package/dist/commonType/globalEnum.d.ts +0 -0
- package/dist/commonType/globalEnum.js +0 -0
- package/dist/commonType/globalFun.d.ts +0 -0
- package/dist/commonType/globalFun.js +0 -0
- package/dist/components/BigImage/index.d.ts +0 -0
- package/dist/components/BigImage/index.interface.d.ts +0 -0
- package/dist/components/BigImage/index.interface.js +0 -0
- package/dist/components/BigImage/index.js +0 -0
- package/dist/components/CustomButtonModal/index.d.ts +0 -0
- package/dist/components/CustomButtonModal/index.interface.d.ts +0 -0
- package/dist/components/CustomButtonModal/index.interface.js +0 -0
- package/dist/components/CustomButtonModal/index.js +0 -0
- package/dist/components/DateTimePicker/index.d.ts +0 -0
- package/dist/components/DateTimePicker/index.interface.d.ts +0 -0
- package/dist/components/DateTimePicker/index.interface.js +0 -0
- package/dist/components/DateTimePicker/index.js +3 -2
- package/dist/components/DropDownSelect/index.d.ts +0 -0
- package/dist/components/DropDownSelect/index.interface.d.ts +0 -0
- package/dist/components/DropDownSelect/index.interface.js +0 -0
- package/dist/components/DropDownSelect/index.js +0 -0
- package/dist/components/EmptyDom/index.d.ts +0 -0
- package/dist/components/EmptyDom/index.interface.d.ts +0 -0
- package/dist/components/EmptyDom/index.interface.js +0 -0
- package/dist/components/EmptyDom/index.js +0 -0
- package/dist/components/Entry/index.d.ts +0 -0
- package/dist/components/Entry/index.interface.d.ts +0 -0
- package/dist/components/Entry/index.interface.js +0 -0
- package/dist/components/Entry/index.js +0 -0
- package/dist/components/Entry/index.scss +0 -0
- package/dist/components/ExportExcels/ExportExcels.scss +0 -0
- package/dist/components/ExportExcels/index.d.ts +0 -0
- package/dist/components/ExportExcels/index.interface.d.ts +0 -0
- package/dist/components/ExportExcels/index.interface.js +0 -0
- package/dist/components/ExportExcels/index.js +0 -0
- package/dist/components/FileUpload/fileUtil.d.ts +0 -0
- package/dist/components/FileUpload/fileUtil.js +0 -0
- package/dist/components/FileUpload/index.d.ts +2 -2
- package/dist/components/FileUpload/index.interface.d.ts +1 -1
- package/dist/components/FileUpload/index.interface.js +0 -0
- package/dist/components/FileUpload/index.js +10 -10
- package/dist/components/FileUpload/index.scss +0 -0
- package/dist/components/FilterRadio/index.d.ts +0 -0
- package/dist/components/FilterRadio/index.interface.d.ts +0 -0
- package/dist/components/FilterRadio/index.interface.js +0 -0
- package/dist/components/FilterRadio/index.js +0 -0
- package/dist/components/FilterRadio/index.scss +0 -0
- package/dist/components/MyBtn/index.d.ts +0 -0
- package/dist/components/MyBtn/index.interface.d.ts +0 -0
- package/dist/components/MyBtn/index.interface.js +0 -0
- package/dist/components/MyBtn/index.js +0 -0
- package/dist/components/NumberInput/index.d.ts +0 -0
- package/dist/components/NumberInput/index.interface.d.ts +0 -0
- package/dist/components/NumberInput/index.interface.js +0 -0
- package/dist/components/NumberInput/index.js +0 -0
- package/dist/components/NumberInput/index.scss +0 -0
- package/dist/components/OcrCommon/index.config.d.ts +0 -0
- package/dist/components/OcrCommon/index.config.js +0 -0
- package/dist/components/OcrCommon/index.d.ts +0 -0
- package/dist/components/OcrCommon/index.interface.d.ts +0 -0
- package/dist/components/OcrCommon/index.interface.js +0 -0
- package/dist/components/OcrCommon/index.js +1 -1
- package/dist/components/OcrCommon/index.scss +0 -0
- package/dist/components/PageTemplate/index.d.ts +0 -0
- package/dist/components/PageTemplate/index.interface.d.ts +4 -3
- package/dist/components/PageTemplate/index.interface.js +0 -0
- package/dist/components/PageTemplate/index.js +60 -30
- package/dist/components/PageTemplate/index.scss +48 -0
- package/dist/components/PageTemplate/resizable/index.d.ts +0 -0
- package/dist/components/PageTemplate/resizable/index.js +48 -11
- package/dist/components/PageTemplate/resizable/index.scss +41 -0
- package/dist/components/ReactEcharts/index.d.ts +0 -0
- package/dist/components/ReactEcharts/index.interface.d.ts +0 -0
- package/dist/components/ReactEcharts/index.interface.js +0 -0
- package/dist/components/ReactEcharts/index.js +0 -0
- package/dist/components/SelectMax/index.d.ts +0 -0
- package/dist/components/SelectMax/index.interface.d.ts +0 -0
- package/dist/components/SelectMax/index.interface.js +0 -0
- package/dist/components/SelectMax/index.js +0 -0
- package/dist/components/SelectPosition/index.d.ts +0 -0
- package/dist/components/SelectPosition/index.interface.d.ts +0 -0
- package/dist/components/SelectPosition/index.interface.js +0 -0
- package/dist/components/SelectPosition/index.js +0 -0
- package/dist/components/SelectPosition/index.scss +0 -0
- package/dist/components/SuperCascader/index.d.ts +0 -0
- package/dist/components/SuperCascader/index.interface.d.ts +0 -0
- package/dist/components/SuperCascader/index.interface.js +0 -0
- package/dist/components/SuperCascader/index.js +0 -0
- package/dist/components/SuperInput/index.d.ts +0 -0
- package/dist/components/SuperInput/index.interface.d.ts +0 -0
- package/dist/components/SuperInput/index.interface.js +0 -0
- package/dist/components/SuperInput/index.js +0 -0
- package/dist/components/TabsMode/index.d.ts +0 -0
- package/dist/components/TabsMode/index.interface.d.ts +0 -0
- package/dist/components/TabsMode/index.interface.js +0 -0
- package/dist/components/TabsMode/index.js +0 -0
- package/dist/components/TypographyText/index.d.ts +0 -0
- package/dist/components/TypographyText/index.interface.d.ts +0 -0
- package/dist/components/TypographyText/index.interface.js +0 -0
- package/dist/components/TypographyText/index.js +0 -0
- package/dist/components/TypographyText/index.scss +0 -0
- package/dist/components/VideoProgressModal/index.d.ts +0 -0
- package/dist/components/VideoProgressModal/index.interface.d.ts +0 -0
- package/dist/components/VideoProgressModal/index.interface.js +0 -0
- package/dist/components/VideoProgressModal/index.js +0 -0
- package/dist/components/VideoProgressModal/index.scss +0 -0
- package/dist/components/YLModal/index.d.ts +0 -0
- package/dist/components/YLModal/index.interface.d.ts +0 -0
- package/dist/components/YLModal/index.interface.js +0 -0
- package/dist/components/YLModal/index.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/react-app-env.d.ts +0 -0
- package/dist/utils/common.d.ts +2 -2
- package/dist/utils/common.js +17 -16
- package/dist/utils/index.d.ts +0 -0
- package/dist/utils/index.js +0 -0
- package/dist/utils/notificationHelper.d.ts +0 -0
- package/dist/utils/notificationHelper.js +0 -0
- package/dist/utils/responseMessage.d.ts +0 -0
- package/dist/utils/responseMessage.js +0 -0
- package/dist/utils/userSessionActions.d.ts +0 -0
- package/dist/utils/userSessionActions.js +0 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -61
package/.eslintrc.js
CHANGED
|
File without changes
|
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commonAxios/http.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,10 +2,11 @@ var _excluded = ["type", "tlTimeLimit", "format"];
|
|
|
2
2
|
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); }
|
|
3
3
|
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; }
|
|
4
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import
|
|
6
|
-
import { DatePicker, TimePicker } from "antd";
|
|
5
|
+
import { DatePicker, TimePicker } from 'antd';
|
|
7
6
|
import dayjs from 'dayjs';
|
|
7
|
+
import React from 'react';
|
|
8
8
|
var RangePicker = DatePicker.RangePicker;
|
|
9
|
+
|
|
9
10
|
// 基于antd,具体参照antd
|
|
10
11
|
var Index = function Index(props) {
|
|
11
12
|
var _props$type = props.type,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -22,13 +22,13 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
22
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
23
|
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; }
|
|
24
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
|
-
import { CloseOutlined, DeleteOutlined, PlusOutlined } from
|
|
25
|
+
import { CloseOutlined, DeleteOutlined, PlusOutlined } from '@ant-design/icons';
|
|
26
26
|
import { useUpdateEffect } from 'ahooks';
|
|
27
|
-
import { Form, Image, message, Tooltip, Upload } from
|
|
28
|
-
import heic2any from
|
|
29
|
-
import React, { useEffect, useState } from
|
|
30
|
-
import "./index.scss";
|
|
27
|
+
import { Form, Image, message, Tooltip, Upload } from 'antd';
|
|
28
|
+
import heic2any from 'heic2any';
|
|
29
|
+
import React, { useEffect, useState } from 'react';
|
|
31
30
|
import { acceptListTypes, acceptTypes, dataChange, documentExtensions, fileChange, fileExtensions, imageListChange, videoFormats } from "./fileUtil";
|
|
31
|
+
import "./index.scss";
|
|
32
32
|
var AliyunOSSUpload = function AliyunOSSUpload(props) {
|
|
33
33
|
var value = props.value,
|
|
34
34
|
formOnChange = props.onChange,
|
|
@@ -208,7 +208,7 @@ var AliyunOSSUpload = function AliyunOSSUpload(props) {
|
|
|
208
208
|
_context.next = 32;
|
|
209
209
|
break;
|
|
210
210
|
}
|
|
211
|
-
message.error(
|
|
211
|
+
message.error('上传失败');
|
|
212
212
|
event === null || event === void 0 || event.onError({
|
|
213
213
|
errorMessage: '上传失败',
|
|
214
214
|
uploadStatus: 'error'
|
|
@@ -251,7 +251,7 @@ var AliyunOSSUpload = function AliyunOSSUpload(props) {
|
|
|
251
251
|
}).then(function (blob) {
|
|
252
252
|
return heic2any({
|
|
253
253
|
blob: blob,
|
|
254
|
-
toType:
|
|
254
|
+
toType: 'image/jpeg',
|
|
255
255
|
quality: 0.5 // cuts the quality and size by half
|
|
256
256
|
});
|
|
257
257
|
}).then(function (conversionResult) {
|
|
@@ -295,7 +295,7 @@ var AliyunOSSUpload = function AliyunOSSUpload(props) {
|
|
|
295
295
|
onClick: function onClick() {
|
|
296
296
|
return actions.remove(file);
|
|
297
297
|
}
|
|
298
|
-
}, /*#__PURE__*/React.createElement(DeleteOutlined, null),
|
|
298
|
+
}, /*#__PURE__*/React.createElement(DeleteOutlined, null), ' '), originNode) : /*#__PURE__*/React.createElement(Tooltip, {
|
|
299
299
|
title: (file === null || file === void 0 ? void 0 : file.name) || ''
|
|
300
300
|
}, " ", originNode, " "));
|
|
301
301
|
},
|
|
@@ -303,11 +303,11 @@ var AliyunOSSUpload = function AliyunOSSUpload(props) {
|
|
|
303
303
|
onChange: onChange,
|
|
304
304
|
fileList: fileList
|
|
305
305
|
}, otherUploadProps);
|
|
306
|
-
return /*#__PURE__*/React.createElement(Upload, uploadProp, fileList.length < maxCount && /*#__PURE__*/React.createElement("div", null, uploadButton || /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
306
|
+
return /*#__PURE__*/React.createElement(Upload, uploadProp, fileList.length < maxCount && /*#__PURE__*/React.createElement("div", null, uploadButton || /*#__PURE__*/React.createElement(React.Fragment, null, ' ', /*#__PURE__*/React.createElement(PlusOutlined, null), " ", /*#__PURE__*/React.createElement("div", {
|
|
307
307
|
style: {
|
|
308
308
|
marginTop: 8
|
|
309
309
|
}
|
|
310
|
-
}, "\u4E0A\u4F20"),
|
|
310
|
+
}, "\u4E0A\u4F20"), ' ')));
|
|
311
311
|
};
|
|
312
312
|
var Index = function Index(props) {
|
|
313
313
|
var formProps = props.formProps,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -86,7 +86,7 @@ var Index = function Index(props) {
|
|
|
86
86
|
useEffect(function () {
|
|
87
87
|
if (!url) return;
|
|
88
88
|
handleOcr();
|
|
89
|
-
}, [url]);
|
|
89
|
+
}, [url === null || url === void 0 ? void 0 : url.url]);
|
|
90
90
|
var removeDom = function removeDom() {
|
|
91
91
|
var ocrLoadingDiv = document.querySelector('.ocr_loading');
|
|
92
92
|
if (ocrLoadingDiv) {
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MethodEnum } from '../../commonType/globalEnum';
|
|
3
3
|
export interface IPageTemPropsData {
|
|
4
4
|
http: any;
|
|
5
5
|
ref?: any;
|
|
@@ -21,6 +21,7 @@ export interface IPageTemPropsData {
|
|
|
21
21
|
afterRequest?: typeEmptyFunc;
|
|
22
22
|
afterReset?: typeEmptyFunc;
|
|
23
23
|
beforeSearch?: typeEmptyFunc;
|
|
24
|
+
afterExport?: typeEmptyFunc;
|
|
24
25
|
beforeExport?: typeEmptyFunc;
|
|
25
26
|
afterErrorRequest?: typeEmptyFunc;
|
|
26
27
|
columns: IColumnsProps[];
|
|
@@ -38,7 +39,7 @@ export interface IColumnsProps {
|
|
|
38
39
|
title: string;
|
|
39
40
|
dataIndex?: string;
|
|
40
41
|
render?: typeEmptyFunc | ((text: string | number, record: any, index: string | number) => any);
|
|
41
|
-
[name: string]: typeEmptyFunc | string | boolean | undefined | number;
|
|
42
|
+
[name: string]: typeEmptyFunc | string | boolean | undefined | number | any;
|
|
42
43
|
}
|
|
43
44
|
export interface IFilterProps {
|
|
44
45
|
component: string | Element | ReactNode;
|
|
File without changes
|
|
@@ -34,10 +34,10 @@ import ExportExcels from "../ExportExcels";
|
|
|
34
34
|
import FilterRadio from "../FilterRadio";
|
|
35
35
|
import SelectMax from "../SelectMax";
|
|
36
36
|
import "./index.scss";
|
|
37
|
-
import { mergedColumns, ResizableTitle } from "./resizable";
|
|
38
37
|
var FormItem = Form.Item;
|
|
39
38
|
var RangePicker = DatePicker.RangePicker;
|
|
40
39
|
var PageTemplate = function PageTemplate(props, ref) {
|
|
40
|
+
var _document$querySelect3;
|
|
41
41
|
var _Form$useForm = Form.useForm(),
|
|
42
42
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
43
43
|
form = _Form$useForm2[0];
|
|
@@ -61,6 +61,7 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
61
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
62
|
dataSource = _useState2[0],
|
|
63
63
|
setDataSource = _useState2[1];
|
|
64
|
+
var dataSourceRef = useRef([]);
|
|
64
65
|
var _useState3 = useState(false),
|
|
65
66
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
66
67
|
tableLoading = _useState4[0],
|
|
@@ -69,7 +70,7 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
69
70
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
70
71
|
total = _useState6[0],
|
|
71
72
|
setTotal = _useState6[1]; // 总数
|
|
72
|
-
var pageSizeRef = useRef(
|
|
73
|
+
var pageSizeRef = useRef(20); //每页条数
|
|
73
74
|
var _useState7 = useState(1),
|
|
74
75
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
75
76
|
current = _useState8[0],
|
|
@@ -92,7 +93,17 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
92
93
|
additionalExport = _useState16[0],
|
|
93
94
|
setAdditionalExport = _useState16[1]; // 额外的按钮
|
|
94
95
|
var tableRef = useRef(null); // 引用 Table 外层容器
|
|
95
|
-
|
|
96
|
+
var _useState17 = useState(null),
|
|
97
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
98
|
+
tableHeight = _useState18[0],
|
|
99
|
+
setTableHeight = _useState18[1];
|
|
100
|
+
useEffect(function () {
|
|
101
|
+
var _document$querySelect;
|
|
102
|
+
if ((_document$querySelect = document.querySelector('.ant-table-small')) !== null && _document$querySelect !== void 0 && _document$querySelect.clientHeight) {
|
|
103
|
+
var _document$querySelect2;
|
|
104
|
+
setTableHeight((((_document$querySelect2 = document.querySelector('.ant-table-small')) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 0) - 40);
|
|
105
|
+
}
|
|
106
|
+
}, [(_document$querySelect3 = document.querySelector('.ant-table-small')) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight]);
|
|
96
107
|
useImperativeHandle(ref, function () {
|
|
97
108
|
return {
|
|
98
109
|
onSearch: function onSearch(param) {
|
|
@@ -125,29 +136,41 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
125
136
|
var _props$searchOnLoad = props.searchOnLoad,
|
|
126
137
|
searchOnLoad = _props$searchOnLoad === void 0 ? true : _props$searchOnLoad,
|
|
127
138
|
pageSize = props.pageSize;
|
|
128
|
-
pageSizeRef.current = pageSize ||
|
|
139
|
+
pageSizeRef.current = pageSize || 20;
|
|
129
140
|
if (searchOnLoad) {
|
|
130
141
|
_onSearch(1);
|
|
131
142
|
}
|
|
132
143
|
}, [props.url && props.url.url]);
|
|
133
144
|
useEffect(function () {
|
|
145
|
+
if (!props.columns) return;
|
|
146
|
+
var _columns = _toConsumableArray(props.columns);
|
|
134
147
|
if (addNo) {
|
|
135
148
|
// 默认添加序号
|
|
136
149
|
var initColumn = {
|
|
137
150
|
title: '序号',
|
|
138
151
|
dataIndex: '',
|
|
139
152
|
key: 'rowIndex',
|
|
140
|
-
width: 70,
|
|
141
153
|
align: 'center',
|
|
142
154
|
fixed: 'left',
|
|
155
|
+
minWidth: 70,
|
|
156
|
+
ellipsis: {
|
|
157
|
+
showTitle: false
|
|
158
|
+
},
|
|
143
159
|
render: function render(_, __, index) {
|
|
144
160
|
return (current - 1) * pageSizeRef.current + index + 1;
|
|
145
161
|
}
|
|
146
162
|
};
|
|
147
|
-
|
|
148
|
-
return;
|
|
163
|
+
_columns = [initColumn].concat(_toConsumableArray(_columns));
|
|
149
164
|
}
|
|
150
|
-
|
|
165
|
+
_columns = _columns.map(function (item) {
|
|
166
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
167
|
+
minWidth: item.minWidth || item.title.length * 20 + 20,
|
|
168
|
+
ellipsis: item.ellipsis || true,
|
|
169
|
+
align: item.align || 'center',
|
|
170
|
+
fixed: item.fixed || (['action', 'operation', 'handle', 'handle_box'].includes(item.dataIndex) ? 'right' : ['rowIndex'].includes(item.key) ? 'left' : undefined)
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
setColumns(_columns);
|
|
151
174
|
}, [props.columns, current, pageSizeRef.current]);
|
|
152
175
|
var _onSearch = function _onSearch() {
|
|
153
176
|
var current = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
@@ -205,9 +228,10 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
205
228
|
result = _context.sent;
|
|
206
229
|
_ref3 = result || {}, totalElements = _ref3.totalElements, content = _ref3.content;
|
|
207
230
|
setDataSource(content || []);
|
|
231
|
+
dataSourceRef.current = content || [];
|
|
208
232
|
setTotal(totalElements || '');
|
|
209
233
|
setCurrent(current);
|
|
210
|
-
case
|
|
234
|
+
case 8:
|
|
211
235
|
case "end":
|
|
212
236
|
return _context.stop();
|
|
213
237
|
}
|
|
@@ -318,15 +342,22 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
318
342
|
* 导出
|
|
319
343
|
*/
|
|
320
344
|
var exportList = function exportList() {
|
|
321
|
-
if (dataSource.length === 0) {
|
|
322
|
-
message.error('暂无数据,无法导出!');
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
setIsSpinLoading(true);
|
|
326
345
|
_onSearch();
|
|
327
|
-
|
|
328
|
-
// 需要等待搜索结束
|
|
329
346
|
setTimeout(function () {
|
|
347
|
+
var _props$afterExport = props.afterExport,
|
|
348
|
+
afterExport = _props$afterExport === void 0 ? function (val) {
|
|
349
|
+
return val;
|
|
350
|
+
} : _props$afterExport;
|
|
351
|
+
if (dataSourceRef.current.length === 0) {
|
|
352
|
+
message.error('暂无数据,无法导出!');
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
var params = form.getFieldsValue();
|
|
356
|
+
paramsRef.current = afterExport(_objectSpread(_objectSpread({}, paramsRef.current), params));
|
|
357
|
+
if (!paramsRef.current) return;
|
|
358
|
+
setIsSpinLoading(true);
|
|
359
|
+
|
|
360
|
+
// 需要等待搜索结束
|
|
330
361
|
exportApi(paramsRef.current).then(function (item) {
|
|
331
362
|
if (item.status === 200) {
|
|
332
363
|
exportCompile(item);
|
|
@@ -408,7 +439,7 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
408
439
|
onChange: _onSearch,
|
|
409
440
|
current: current,
|
|
410
441
|
total: total,
|
|
411
|
-
pageSizeOptions: ['
|
|
442
|
+
pageSizeOptions: ['20', '50', '200', '1000'],
|
|
412
443
|
showSizeChanger: true,
|
|
413
444
|
showQuickJumper: true,
|
|
414
445
|
onShowSizeChange: onShowSizeChange
|
|
@@ -418,21 +449,20 @@ var PageTemplate = function PageTemplate(props, ref) {
|
|
|
418
449
|
style: {
|
|
419
450
|
marginTop: 10
|
|
420
451
|
},
|
|
421
|
-
scroll:
|
|
422
|
-
x:
|
|
423
|
-
|
|
452
|
+
scroll: {
|
|
453
|
+
x: 1500,
|
|
454
|
+
y: tableHeight || undefined
|
|
455
|
+
},
|
|
424
456
|
bordered: true,
|
|
425
|
-
dataSource: dataSource
|
|
457
|
+
dataSource: dataSource,
|
|
458
|
+
size: "small"
|
|
426
459
|
}, tableProps, {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
columns: mergedColumns(columns, tableRef, function (_columns) {
|
|
434
|
-
return setColumns(_columns);
|
|
435
|
-
})
|
|
460
|
+
columns: columns,
|
|
461
|
+
tableLayout: (tableProps === null || tableProps === void 0 ? void 0 : tableProps.tableLayout) || 'auto'
|
|
462
|
+
// components={{ header: { cell: ResizableTitle } }}
|
|
463
|
+
// columns={mergedColumns(columns, tableRef, (_columns) =>
|
|
464
|
+
// setColumns(_columns),
|
|
465
|
+
// )}
|
|
436
466
|
}))), isSpinLoading && /*#__PURE__*/React.createElement(ExportExcels, exportProps));
|
|
437
467
|
};
|
|
438
468
|
export default /*#__PURE__*/forwardRef(PageTemplate);
|
|
@@ -105,4 +105,52 @@
|
|
|
105
105
|
.radioInfos {
|
|
106
106
|
margin-left: 10px;
|
|
107
107
|
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.page-template {
|
|
111
|
+
flex: 1;
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
|
|
116
|
+
.page-template__content {
|
|
117
|
+
flex: 1;
|
|
118
|
+
display: flex;
|
|
119
|
+
overflow: hidden;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
|
|
122
|
+
.ant-table-wrapper {
|
|
123
|
+
flex: 1;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
|
|
126
|
+
.ant-spin-nested-loading {
|
|
127
|
+
height: 100%;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
|
|
130
|
+
.ant-spin-container {
|
|
131
|
+
height: 100%;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
|
|
136
|
+
.ant-table-small {
|
|
137
|
+
flex: 1;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
|
|
140
|
+
.ant-table-body {
|
|
141
|
+
max-height: none !important;
|
|
142
|
+
flex: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ant-table-container {
|
|
146
|
+
height: 100%;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
108
156
|
}
|
|
File without changes
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var _excluded = ["onResize", "width", "isEnd"],
|
|
2
2
|
_excluded2 = ["components", "columns", "dataSource", "tableLayout"];
|
|
3
3
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
|
+
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."); }
|
|
6
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
4
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
9
|
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."); }
|
|
6
10
|
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); }
|
|
@@ -16,7 +20,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
16
20
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
17
21
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
22
|
import { Table } from 'antd';
|
|
19
|
-
import React, { useEffect, useRef } from 'react';
|
|
23
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
20
24
|
import { Resizable } from 'react-resizable';
|
|
21
25
|
import "./index.scss";
|
|
22
26
|
/**
|
|
@@ -155,18 +159,42 @@ var ResizableTitle = function ResizableTitle(props) {
|
|
|
155
159
|
}, /*#__PURE__*/React.createElement("th", restProps));
|
|
156
160
|
};
|
|
157
161
|
var CustomTable = function CustomTable(props) {
|
|
162
|
+
var _document$querySelect3;
|
|
158
163
|
var components = props.components,
|
|
159
164
|
columns = props.columns,
|
|
160
165
|
dataSource = props.dataSource,
|
|
161
166
|
tableLayout = props.tableLayout,
|
|
162
167
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
163
168
|
var tableRef = useRef(null); // 引用 Table 外层容器
|
|
164
|
-
var
|
|
165
|
-
|
|
166
|
-
column =
|
|
167
|
-
setColumn =
|
|
169
|
+
var _useState = useState(columns),
|
|
170
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
171
|
+
column = _useState2[0],
|
|
172
|
+
setColumn = _useState2[1];
|
|
173
|
+
var _useState3 = useState(null),
|
|
174
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
175
|
+
tableHeight = _useState4[0],
|
|
176
|
+
setTableHeight = _useState4[1];
|
|
168
177
|
useEffect(function () {
|
|
169
|
-
|
|
178
|
+
var _document$querySelect;
|
|
179
|
+
if ((_document$querySelect = document.querySelector('.ant-table-small')) !== null && _document$querySelect !== void 0 && _document$querySelect.clientHeight) {
|
|
180
|
+
var _document$querySelect2;
|
|
181
|
+
setTableHeight((((_document$querySelect2 = document.querySelector('.ant-table-small')) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 0) - 40);
|
|
182
|
+
}
|
|
183
|
+
}, [(_document$querySelect3 = document.querySelector('.ant-table-small')) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight]);
|
|
184
|
+
useEffect(function () {
|
|
185
|
+
if (!columns || columns.length === 0) {
|
|
186
|
+
return; // 如果 columns 为空或长度为0,直接返回
|
|
187
|
+
}
|
|
188
|
+
var _columns = _toConsumableArray(columns);
|
|
189
|
+
_columns = _columns.map(function (item) {
|
|
190
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
191
|
+
minWidth: item.minWidth || item.title.length * 20 + 20,
|
|
192
|
+
ellipsis: item.ellipsis || true,
|
|
193
|
+
align: item.align || 'center',
|
|
194
|
+
fixed: item.fixed || (['action', 'operation', 'handle', 'handle_box'].includes(item.dataIndex) ? 'right' : ['rowIndex'].includes(item.key) ? 'left' : undefined)
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
setColumn(_columns);
|
|
170
198
|
}, [dataSource, columns]);
|
|
171
199
|
var customComponents = _objectSpread({
|
|
172
200
|
header: _objectSpread({
|
|
@@ -174,12 +202,21 @@ var CustomTable = function CustomTable(props) {
|
|
|
174
202
|
}, components === null || components === void 0 ? void 0 : components.header)
|
|
175
203
|
}, components);
|
|
176
204
|
return /*#__PURE__*/React.createElement("div", {
|
|
205
|
+
className: "custom-ant-table",
|
|
177
206
|
ref: tableRef
|
|
178
|
-
}, /*#__PURE__*/React.createElement(Table, _extends({
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
207
|
+
}, /*#__PURE__*/React.createElement(Table, _extends({
|
|
208
|
+
size: "small"
|
|
209
|
+
}, restProps, {
|
|
210
|
+
scroll: {
|
|
211
|
+
x: 1500,
|
|
212
|
+
y: tableHeight || undefined
|
|
213
|
+
}
|
|
214
|
+
// columns={mergedColumns(column as any, tableRef, (_columns) => setColumn(_columns as any)) as any}
|
|
215
|
+
,
|
|
216
|
+
columns: column
|
|
217
|
+
// components={customComponents}
|
|
218
|
+
,
|
|
219
|
+
components: components,
|
|
183
220
|
dataSource: dataSource || [],
|
|
184
221
|
tableLayout: tableLayout || 'auto'
|
|
185
222
|
})));
|
|
@@ -22,4 +22,45 @@
|
|
|
22
22
|
.react-resizable {
|
|
23
23
|
word-wrap: break-word !important;
|
|
24
24
|
word-break: break-all !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.custom-ant-table {
|
|
28
|
+
flex: 1;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
|
|
33
|
+
.ant-table-wrapper {
|
|
34
|
+
flex: 1;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
|
|
37
|
+
.ant-spin-nested-loading {
|
|
38
|
+
height: 100%;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
|
|
41
|
+
.ant-spin-container {
|
|
42
|
+
height: 100%;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
|
|
47
|
+
.ant-table-small {
|
|
48
|
+
flex: 1;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
|
|
51
|
+
.ant-table-body {
|
|
52
|
+
max-height: none !important;
|
|
53
|
+
flex: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ant-table-container {
|
|
57
|
+
height: 100%;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
25
66
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/react-app-env.d.ts
CHANGED
|
File without changes
|
package/dist/utils/common.d.ts
CHANGED
package/dist/utils/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { message } from
|
|
1
|
+
import { message } from 'antd';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* UTF8编码转成汉字字符串
|
|
@@ -8,22 +8,22 @@ export function revertUTF8(szInput) {
|
|
|
8
8
|
var x,
|
|
9
9
|
wch,
|
|
10
10
|
wch1,
|
|
11
|
-
wch2 =
|
|
12
|
-
szRet =
|
|
11
|
+
wch2 = '',
|
|
12
|
+
szRet = '';
|
|
13
13
|
for (x = 0; x < szInput.length; x++) {
|
|
14
|
-
if (szInput.charAt(x) ===
|
|
14
|
+
if (szInput.charAt(x) === '%') {
|
|
15
15
|
wch = parseInt(szInput.charAt(++x) + szInput.charAt(++x), 16);
|
|
16
16
|
if (!wch) {
|
|
17
17
|
break;
|
|
18
18
|
}
|
|
19
19
|
if (!(wch & 0x80)) {
|
|
20
|
-
// eslint-disable-next-line
|
|
20
|
+
// eslint-disable-next-line
|
|
21
21
|
wch = wch;
|
|
22
22
|
} else if (!(wch & 0x20)) {
|
|
23
23
|
x++;
|
|
24
24
|
wch1 = parseInt(szInput.charAt(++x) + szInput.charAt(++x), 16);
|
|
25
|
-
wch = (wch &
|
|
26
|
-
wch1 = wch1 &
|
|
25
|
+
wch = (wch & 0x1f) << 6;
|
|
26
|
+
wch1 = wch1 & 0x3f;
|
|
27
27
|
wch = wch + wch1;
|
|
28
28
|
} else {
|
|
29
29
|
x++;
|
|
@@ -32,11 +32,11 @@ export function revertUTF8(szInput) {
|
|
|
32
32
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
wch2 = parseInt(szInput.charAt(++x) + szInput.charAt(++x), 16);
|
|
35
|
-
wch = (wch &
|
|
36
|
-
wch1 = (wch1 &
|
|
35
|
+
wch = (wch & 0x0f) << 12;
|
|
36
|
+
wch1 = (wch1 & 0x3f) << 6;
|
|
37
37
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
wch2 = wch2 &
|
|
39
|
+
wch2 = wch2 & 0x3f;
|
|
40
40
|
wch = wch + wch1 + wch2;
|
|
41
41
|
}
|
|
42
42
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -49,8 +49,8 @@ export function revertUTF8(szInput) {
|
|
|
49
49
|
return szRet;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* 导出编译
|
|
53
|
-
*/
|
|
52
|
+
* 导出编译
|
|
53
|
+
*/
|
|
54
54
|
export function exportCompile(res) {
|
|
55
55
|
var data = res.data;
|
|
56
56
|
// 有可能下载失败,设置了responseType: 'blob',axios会把data强制转为blob
|
|
@@ -66,12 +66,13 @@ export function exportCompile(res) {
|
|
|
66
66
|
try {
|
|
67
67
|
var resData = JSON.parse(e.target.result); // this.result为FileReader获取blob数据转换为json后的数据,即后台返回的原始数据
|
|
68
68
|
// 如果执行到这里,说明下载报错了,进行后续处理
|
|
69
|
-
if (resData.result ===
|
|
69
|
+
if (resData.result === 'NULL') {
|
|
70
70
|
message.error('无数据无法导出,请确认后操作');
|
|
71
71
|
} else {
|
|
72
72
|
message.error(resData.message);
|
|
73
73
|
}
|
|
74
74
|
} catch (err) {
|
|
75
|
+
var _res$headers$content;
|
|
75
76
|
// 下载正常处理
|
|
76
77
|
var fileName = res.headers['content-disposition'];
|
|
77
78
|
// 获取文件名
|
|
@@ -90,12 +91,12 @@ export function exportCompile(res) {
|
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
92
93
|
var blob = new Blob([res.data], {
|
|
93
|
-
type:
|
|
94
|
+
type: ''
|
|
94
95
|
});
|
|
95
96
|
var objectUrl = URL.createObjectURL(blob);
|
|
96
|
-
var a = document.createElement(
|
|
97
|
+
var a = document.createElement('a');
|
|
97
98
|
a.href = objectUrl;
|
|
98
|
-
a.download = revertUTF8(res.headers['content-disposition'].split('=')[1]);
|
|
99
|
+
a.download = revertUTF8((_res$headers$content = res.headers['content-disposition']) === null || _res$headers$content === void 0 ? void 0 : _res$headers$content.split('=')[1]);
|
|
99
100
|
a.click();
|
|
100
101
|
}
|
|
101
102
|
};
|
package/dist/utils/index.d.ts
CHANGED
|
File without changes
|
package/dist/utils/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# [1.0.0](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v0.0.1-alpha.47...v1.0.0) (2025-03-06)
|
|
2
|
-
|
|
3
|
-
### Features
|
|
4
|
-
|
|
5
|
-
- 时间组件添加 showTime 判断,用来兼容 showTime === false 的情况 ([c365fc3](https://git.yljt.cn:522/web-module/yl_dgerm/commits/c365fc350bb7154bdebd7dc1ab69bccd5a8f5c7b))
|
|
6
|
-
|
|
7
|
-
## [0.0.1-alpha.47](https://git.yljt.cn:522/web-module/yl_dgerm/compare/v0.0.1-alpha.39...v0.0.1-alpha.47) (2025-02-25)
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
- YLModal 拖拽方案修改 ([4d0135](https://git.yljt.cn/web-module/yl_dgerm/-/commit/4d0135edc8bbf1acff4c66d6ebff3d9f7f1fc0f7))
|
|
12
|
-
|
|
13
|
-
### Bug Fixes
|
|
14
|
-
|
|
15
|
-
- 修复 DropDownSelect 组件 ([40cf036](https://git.yljt.cn:522/web-module/yl_dgerm/commits/40cf03694b74d59e863e561830e10045074c49c7))
|
|
16
|
-
|
|
17
|
-
## [0.0.1-alpha.39](https://git.yljt.cn:522/web-module/yl_dgerm/compare/eced17d51f298c04b61797eaea829549ed2c4bfa...v0.0.1-alpha.39) (2024-12-04)
|
|
18
|
-
|
|
19
|
-
### Bug Fixes
|
|
20
|
-
|
|
21
|
-
- 版本修改 ([db121a2](https://git.yljt.cn:522/web-module/yl_dgerm/commits/db121a29a55e964bd8c2f54e74b51dd9961f93a8))
|
|
22
|
-
- 变量名称优化 ([3efe62f](https://git.yljt.cn:522/web-module/yl_dgerm/commits/3efe62f5037660137e01e2ad00b48345c93998d7))
|
|
23
|
-
- 封装 ocr 通用组件 ([de37c47](https://git.yljt.cn:522/web-module/yl_dgerm/commits/de37c476c1c70f3b17a264260c887342c0942095))
|
|
24
|
-
- 更新版本号 ([bb49068](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bb49068c4aec1a75a095b5cbbc84885237fc6305))
|
|
25
|
-
- 更新版本号 ([22008e6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/22008e6823a236515e88ff587ba998c23d0ea446))
|
|
26
|
-
- 清空粘贴板 ([0a38d1e](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0a38d1ef8f9df314e68aff6265a9d4707a5ed152))
|
|
27
|
-
- 删除 html ([8bececc](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8bececc59c80b0e98841f29f197896a95391fe60))
|
|
28
|
-
- 删除 jest ([bdbd693](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bdbd693aa37c48f46310f94796ad51ac14c4b389))
|
|
29
|
-
- 文档维护 ([bd96292](https://git.yljt.cn:522/web-module/yl_dgerm/commits/bd9629247a451d22ca708cb9c6ca21026cfc9235))
|
|
30
|
-
- 文档维护 ([0794420](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0794420b9fff50e5e497a49bcab898d61556bd9d))
|
|
31
|
-
- 文档维护 ([9503527](https://git.yljt.cn:522/web-module/yl_dgerm/commits/95035277799162ccb76fcaa82d877760114cf1da))
|
|
32
|
-
- 文档维护 ([e4d15d4](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e4d15d4e86cfa79be49a46d7175adf59e9bbe2ca))
|
|
33
|
-
- 文档维护 ([303a5b6](https://git.yljt.cn:522/web-module/yl_dgerm/commits/303a5b60aef5b62463e95ca1ad62fa9f5699e072))
|
|
34
|
-
- 文档维护 ([b695706](https://git.yljt.cn:522/web-module/yl_dgerm/commits/b695706fd17290320f0b797b413612a617acc386))
|
|
35
|
-
- 文档维护 ([95dc2da](https://git.yljt.cn:522/web-module/yl_dgerm/commits/95dc2dae2d23e7141216ebd2bb86a33bac8099c8))
|
|
36
|
-
- 文档维护 ([5523d28](https://git.yljt.cn:522/web-module/yl_dgerm/commits/5523d28f00a8527a131a409ea3fd23a8fa5f8b05))
|
|
37
|
-
- 文档维护 ([8418bc2](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8418bc288628080a93cfd504b11ac91505527573))
|
|
38
|
-
- 文档维护 ([0ca0a06](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0ca0a06cce9c842b5f8b8a6e77883ae07c8d9d18))
|
|
39
|
-
- 文档维护 ([6303e90](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6303e90100ea4cb545a3dfdbc591b0af74e6c124))
|
|
40
|
-
- 新版 ocr ([466896c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/466896cbd5cdf8e67d66a3a6bdbdd8ab6f3bb5d9))
|
|
41
|
-
- 修复 ocr ([b5e1e6d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/b5e1e6d3b4b456f674d49f653695ff976e52bf9c))
|
|
42
|
-
- 修复 ocr ([873297b](https://git.yljt.cn:522/web-module/yl_dgerm/commits/873297bd74ce73baebd33b9e5131ec36a1789646))
|
|
43
|
-
- 修复 ocr 样式 ([a5e2805](https://git.yljt.cn:522/web-module/yl_dgerm/commits/a5e2805007f0746918a9c0788c05221e9209e425))
|
|
44
|
-
- 修改版本号 ([7979da1](https://git.yljt.cn:522/web-module/yl_dgerm/commits/7979da1e60320e2c4ac393976986dfb8c01a168c))
|
|
45
|
-
- 修改名称 ([77d7d7d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/77d7d7d174b79913b421208bb3e3408a5b61494a))
|
|
46
|
-
- 修改配置文件 ([3f1b7fa](https://git.yljt.cn:522/web-module/yl_dgerm/commits/3f1b7fa71c46fa09fe61b398429887aec356728d))
|
|
47
|
-
- 修改 favicon ([eced17d](https://git.yljt.cn:522/web-module/yl_dgerm/commits/eced17d51f298c04b61797eaea829549ed2c4bfa))
|
|
48
|
-
- 引入 jest 测试单元 ([9da3ee1](https://git.yljt.cn:522/web-module/yl_dgerm/commits/9da3ee178c7d2665b8da6dc61754e2fade1da02b))
|
|
49
|
-
- 组件梳理 ([8148b07](https://git.yljt.cn:522/web-module/yl_dgerm/commits/8148b07d054339c9b381eeba0a5554fc783dc8b3))
|
|
50
|
-
- config 配置 ([5615a1c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/5615a1c763a6b834abefa8dcd29bb5e9debcbffb))
|
|
51
|
-
- config 配置 ([2504b67](https://git.yljt.cn:522/web-module/yl_dgerm/commits/2504b678703d5fc1bb679f949a348d6b5090da2f))
|
|
52
|
-
- config 配置 ([6f44588](https://git.yljt.cn:522/web-module/yl_dgerm/commits/6f44588e05fcd808c069e0f26e4c6e1da2923c89))
|
|
53
|
-
- jsdom 降版本 ([e37a38c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/e37a38c4ff90f4ed24f52aaf0b3f5265e10f1ccc))
|
|
54
|
-
- jsdom 降版本 ([0b9dd48](https://git.yljt.cn:522/web-module/yl_dgerm/commits/0b9dd4871c5aff303c8c3eb1bb2e2da794861b76))
|
|
55
|
-
- jsdom 降版本 ([23d8f01](https://git.yljt.cn:522/web-module/yl_dgerm/commits/23d8f0188014fcee865396aaf665d06ede41929a))
|
|
56
|
-
- ocr 添加依赖 ([d23cd95](https://git.yljt.cn:522/web-module/yl_dgerm/commits/d23cd95f033fbd9ff4659e481136f87d0f5dbd8f))
|
|
57
|
-
- ocr 通用组件增加请求回调勾子 ([99951c9](https://git.yljt.cn:522/web-module/yl_dgerm/commits/99951c945fee863200909e135bead9e8110ca1bf))
|
|
58
|
-
- ocr 修复 ([42264e7](https://git.yljt.cn:522/web-module/yl_dgerm/commits/42264e76c39d9c1490d086b7a7b751edb6f7143c))
|
|
59
|
-
- test-library 降版本 ([1f93a8c](https://git.yljt.cn:522/web-module/yl_dgerm/commits/1f93a8caabe91943f534f19c3514bc3bae7951cb))
|
|
60
|
-
- test-library 降版本 ([03a5423](https://git.yljt.cn:522/web-module/yl_dgerm/commits/03a542314ce9736ec5a0faa8f0ee42243395e56f))
|
|
61
|
-
- title 文案修复 ([ed69177](https://git.yljt.cn:522/web-module/yl_dgerm/commits/ed69177cc96b63bc7a3bdeff483aa5a946f285dd))
|