wargerm 0.7.23 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +42 -6
- package/dist/index.esm.css +42 -6
- package/dist/index.esm.js +18 -18
- package/dist/index.js +18 -18
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -65972,12 +65972,6 @@ html[data-prefers-color='sd'] .ant-select-arrow {
|
|
65972
65972
|
html[data-prefers-color='sd'] .ant-select-item-option-content {
|
65973
65973
|
text-align: center;
|
65974
65974
|
}
|
65975
|
-
html[data-prefers-color='sd'] .ant-select-item-option-content ::before {
|
65976
|
-
content: '√';
|
65977
|
-
width: 6px;
|
65978
|
-
height: 6px;
|
65979
|
-
border: 1px solid red;
|
65980
|
-
}
|
65981
65975
|
html[data-prefers-color='sd'] .ant-select-tree {
|
65982
65976
|
background-color: #fff;
|
65983
65977
|
color: #768cad;
|
@@ -66071,6 +66065,48 @@ html[data-prefers-color='sd'] .ant-pagination-item-ellipsis {
|
|
66071
66065
|
html[data-prefers-color='sd'] .ant-pagination-options-quick-jumper input {
|
66072
66066
|
background: #f4f4f4;
|
66073
66067
|
}
|
66068
|
+
html[data-prefers-color='sd'] .ant-table-cell div a {
|
66069
|
+
color: #1890ff;
|
66070
|
+
text-align: center;
|
66071
|
+
}
|
66072
|
+
html[data-prefers-color='sd'] .ant-table-thead > tr > th {
|
66073
|
+
background: rgba(157, 176, 195, 0.14) !important;
|
66074
|
+
color: rgba(0, 0, 0, 0.85);
|
66075
|
+
border-right: 1px solid transparent !important;
|
66076
|
+
border-bottom: 1px solid transparent !important;
|
66077
|
+
border-top: 1px solid transparent !important;
|
66078
|
+
}
|
66079
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td:first-child {
|
66080
|
+
border-left: none !important;
|
66081
|
+
}
|
66082
|
+
html[data-prefers-color='sd'] .ant-table-thead > tr > th:first-child {
|
66083
|
+
border-left: none !important;
|
66084
|
+
}
|
66085
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td {
|
66086
|
+
border-bottom: none !important;
|
66087
|
+
}
|
66088
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td {
|
66089
|
+
border-right: 1px solid transparent !important;
|
66090
|
+
}
|
66091
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr.ant-table-row:hover > td,
|
66092
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
66093
|
+
background: rgba(157, 176, 195, 0.14) !important;
|
66094
|
+
color: rgba(0, 0, 0, 0.85) !important;
|
66095
|
+
}
|
66096
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr.ant-table-row:hover {
|
66097
|
+
box-shadow: none;
|
66098
|
+
}
|
66099
|
+
html[data-prefers-color='sd'] .ant-table-wrapper .ant-table.ant-table-bordered > .ant-table-container {
|
66100
|
+
-webkit-border-start: 1px solid transparent;
|
66101
|
+
border-inline-start: 1px solid transparent;
|
66102
|
+
}
|
66103
|
+
html[data-prefers-color='sd'] .ant-table-thead > tr > th.ant-table-cell-fix-right {
|
66104
|
+
background: #f1f4f7 !important;
|
66105
|
+
}
|
66106
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr.ant-table-row:hover > td.ant-table-cell-fix-right,
|
66107
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td.ant-table-cell-row-hover .ant-table-cell-fix-right {
|
66108
|
+
background: rgb(241 244 247) !important;
|
66109
|
+
}
|
66074
66110
|
html[data-prefers-color='sd'] .ant-cascader:not(.ant-cascader-customize-input) .ant-cascader-cascaderor {
|
66075
66111
|
position: relative;
|
66076
66112
|
background-color: #f4f4f4;
|
package/dist/index.esm.css
CHANGED
@@ -65972,12 +65972,6 @@ html[data-prefers-color='sd'] .ant-select-arrow {
|
|
65972
65972
|
html[data-prefers-color='sd'] .ant-select-item-option-content {
|
65973
65973
|
text-align: center;
|
65974
65974
|
}
|
65975
|
-
html[data-prefers-color='sd'] .ant-select-item-option-content ::before {
|
65976
|
-
content: '√';
|
65977
|
-
width: 6px;
|
65978
|
-
height: 6px;
|
65979
|
-
border: 1px solid red;
|
65980
|
-
}
|
65981
65975
|
html[data-prefers-color='sd'] .ant-select-tree {
|
65982
65976
|
background-color: #fff;
|
65983
65977
|
color: #768cad;
|
@@ -66071,6 +66065,48 @@ html[data-prefers-color='sd'] .ant-pagination-item-ellipsis {
|
|
66071
66065
|
html[data-prefers-color='sd'] .ant-pagination-options-quick-jumper input {
|
66072
66066
|
background: #f4f4f4;
|
66073
66067
|
}
|
66068
|
+
html[data-prefers-color='sd'] .ant-table-cell div a {
|
66069
|
+
color: #1890ff;
|
66070
|
+
text-align: center;
|
66071
|
+
}
|
66072
|
+
html[data-prefers-color='sd'] .ant-table-thead > tr > th {
|
66073
|
+
background: rgba(157, 176, 195, 0.14) !important;
|
66074
|
+
color: rgba(0, 0, 0, 0.85);
|
66075
|
+
border-right: 1px solid transparent !important;
|
66076
|
+
border-bottom: 1px solid transparent !important;
|
66077
|
+
border-top: 1px solid transparent !important;
|
66078
|
+
}
|
66079
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td:first-child {
|
66080
|
+
border-left: none !important;
|
66081
|
+
}
|
66082
|
+
html[data-prefers-color='sd'] .ant-table-thead > tr > th:first-child {
|
66083
|
+
border-left: none !important;
|
66084
|
+
}
|
66085
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td {
|
66086
|
+
border-bottom: none !important;
|
66087
|
+
}
|
66088
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td {
|
66089
|
+
border-right: 1px solid transparent !important;
|
66090
|
+
}
|
66091
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr.ant-table-row:hover > td,
|
66092
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
66093
|
+
background: rgba(157, 176, 195, 0.14) !important;
|
66094
|
+
color: rgba(0, 0, 0, 0.85) !important;
|
66095
|
+
}
|
66096
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr.ant-table-row:hover {
|
66097
|
+
box-shadow: none;
|
66098
|
+
}
|
66099
|
+
html[data-prefers-color='sd'] .ant-table-wrapper .ant-table.ant-table-bordered > .ant-table-container {
|
66100
|
+
-webkit-border-start: 1px solid transparent;
|
66101
|
+
border-inline-start: 1px solid transparent;
|
66102
|
+
}
|
66103
|
+
html[data-prefers-color='sd'] .ant-table-thead > tr > th.ant-table-cell-fix-right {
|
66104
|
+
background: #f1f4f7 !important;
|
66105
|
+
}
|
66106
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr.ant-table-row:hover > td.ant-table-cell-fix-right,
|
66107
|
+
html[data-prefers-color='sd'] .ant-table-tbody > tr > td.ant-table-cell-row-hover .ant-table-cell-fix-right {
|
66108
|
+
background: rgb(241 244 247) !important;
|
66109
|
+
}
|
66074
66110
|
html[data-prefers-color='sd'] .ant-cascader:not(.ant-cascader-customize-input) .ant-cascader-cascaderor {
|
66075
66111
|
position: relative;
|
66076
66112
|
background-color: #f4f4f4;
|
package/dist/index.esm.js
CHANGED
@@ -472,10 +472,10 @@ var eventEmitterOverall = new EventEmitter();
|
|
472
472
|
/*
|
473
473
|
* @Author: lijin
|
474
474
|
* @Date: 2022-07-22 14:29:31
|
475
|
-
* @LastEditTime:
|
475
|
+
* @LastEditTime: 2023-09-14 15:17:43
|
476
476
|
* @LastEditors: lijin
|
477
477
|
* @Description:
|
478
|
-
* @FilePath: \wargerm
|
478
|
+
* @FilePath: \wargerm\src\hooks\useEventEmitter.tsx
|
479
479
|
* 可以输入预定的版权声明、个性签名、空行等
|
480
480
|
*/
|
481
481
|
function useEventEmitter(options) {
|
@@ -488,15 +488,11 @@ function useEventEmitter(options) {
|
|
488
488
|
|
489
489
|
if (!ref.current) {
|
490
490
|
ref.current = eventEmitterOptions.global ? ref.current = eventEmitterOverall : ref.current = new EventEmitter();
|
491
|
-
}
|
491
|
+
} // useEffect(() => {
|
492
|
+
// return () => ref.current?.clear();
|
493
|
+
// }, []);
|
492
494
|
|
493
|
-
useEffect(function () {
|
494
|
-
return function () {
|
495
|
-
var _ref$current;
|
496
495
|
|
497
|
-
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.clear();
|
498
|
-
};
|
499
|
-
}, []);
|
500
496
|
return ref.current;
|
501
497
|
}
|
502
498
|
|
@@ -2428,19 +2424,23 @@ function Index$1(_ref, ref) {
|
|
2428
2424
|
};
|
2429
2425
|
|
2430
2426
|
var beforeUploadIn = function beforeUploadIn(file) {
|
2431
|
-
var
|
2427
|
+
var defaultHandler = function defaultHandler(file) {
|
2428
|
+
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
2432
2429
|
|
2433
|
-
|
2434
|
-
|
2435
|
-
|
2430
|
+
if (!isJpgOrPng) {
|
2431
|
+
message.error('You can only upload JPG/PNG file!');
|
2432
|
+
}
|
2436
2433
|
|
2437
|
-
|
2434
|
+
var isLt2M = file.size / 1024 / 1024 < 2;
|
2438
2435
|
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2436
|
+
if (!isLt2M) {
|
2437
|
+
message.error('Image must smaller than 2MB!');
|
2438
|
+
}
|
2439
|
+
|
2440
|
+
return isJpgOrPng && isLt2M;
|
2441
|
+
};
|
2442
2442
|
|
2443
|
-
return beforeUpload ? beforeUpload(file) :
|
2443
|
+
return beforeUpload ? beforeUpload(file) : defaultHandler(file);
|
2444
2444
|
};
|
2445
2445
|
|
2446
2446
|
var handleChange = /*#__PURE__*/function () {
|
package/dist/index.js
CHANGED
@@ -516,10 +516,10 @@ var eventEmitterOverall = new EventEmitter();
|
|
516
516
|
/*
|
517
517
|
* @Author: lijin
|
518
518
|
* @Date: 2022-07-22 14:29:31
|
519
|
-
* @LastEditTime:
|
519
|
+
* @LastEditTime: 2023-09-14 15:17:43
|
520
520
|
* @LastEditors: lijin
|
521
521
|
* @Description:
|
522
|
-
* @FilePath: \wargerm
|
522
|
+
* @FilePath: \wargerm\src\hooks\useEventEmitter.tsx
|
523
523
|
* 可以输入预定的版权声明、个性签名、空行等
|
524
524
|
*/
|
525
525
|
function useEventEmitter(options) {
|
@@ -532,15 +532,11 @@ function useEventEmitter(options) {
|
|
532
532
|
|
533
533
|
if (!ref.current) {
|
534
534
|
ref.current = eventEmitterOptions.global ? ref.current = eventEmitterOverall : ref.current = new EventEmitter();
|
535
|
-
}
|
535
|
+
} // useEffect(() => {
|
536
|
+
// return () => ref.current?.clear();
|
537
|
+
// }, []);
|
536
538
|
|
537
|
-
React.useEffect(function () {
|
538
|
-
return function () {
|
539
|
-
var _ref$current;
|
540
539
|
|
541
|
-
return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.clear();
|
542
|
-
};
|
543
|
-
}, []);
|
544
540
|
return ref.current;
|
545
541
|
}
|
546
542
|
|
@@ -2472,19 +2468,23 @@ function Index$1(_ref, ref) {
|
|
2472
2468
|
};
|
2473
2469
|
|
2474
2470
|
var beforeUploadIn = function beforeUploadIn(file) {
|
2475
|
-
var
|
2471
|
+
var defaultHandler = function defaultHandler(file) {
|
2472
|
+
var isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
|
2476
2473
|
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2474
|
+
if (!isJpgOrPng) {
|
2475
|
+
antd.message.error('You can only upload JPG/PNG file!');
|
2476
|
+
}
|
2480
2477
|
|
2481
|
-
|
2478
|
+
var isLt2M = file.size / 1024 / 1024 < 2;
|
2482
2479
|
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2480
|
+
if (!isLt2M) {
|
2481
|
+
antd.message.error('Image must smaller than 2MB!');
|
2482
|
+
}
|
2483
|
+
|
2484
|
+
return isJpgOrPng && isLt2M;
|
2485
|
+
};
|
2486
2486
|
|
2487
|
-
return beforeUpload ? beforeUpload(file) :
|
2487
|
+
return beforeUpload ? beforeUpload(file) : defaultHandler(file);
|
2488
2488
|
};
|
2489
2489
|
|
2490
2490
|
var handleChange = /*#__PURE__*/function () {
|