ls-pro-common 1.0.44 → 1.0.45
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/common.css +58 -0
- package/dist/common.js +1 -1
- package/dist/common.min.css +58 -0
- package/dist/common.min.js +1 -1
- package/es/components/common.less +59 -1
- package/es/hooks/useDtl/index.js +2 -2
- package/es/hooks/useSingle/index.js +2 -2
- package/lib/components/common.less +59 -1
- package/lib/hooks/useDtl/index.js +1 -1
- package/lib/hooks/useSingle/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--ant-primary-color: #4997E6;
|
|
3
|
+
--ant-primary-color-hover: #74b7f2;
|
|
4
|
+
--ant-primary-color-active: #3475bf;
|
|
5
|
+
--ant-primary-color-outline: rgba(73, 151, 230, 0.2);
|
|
6
|
+
--ant-primary-1: #f0faff;
|
|
7
|
+
--ant-primary-2: #f0f9ff;
|
|
8
|
+
--ant-primary-3: #ccebff;
|
|
9
|
+
--ant-primary-4: #a3d7ff;
|
|
10
|
+
--ant-primary-5: #74b7f2;
|
|
11
|
+
--ant-primary-6: #4997E6;
|
|
12
|
+
--ant-primary-7: #3475bf;
|
|
13
|
+
--ant-primary-color-deprecated-pure: #e6f1fc;
|
|
14
|
+
--ant-primary-color-deprecated-l-35: #e6f1fc;
|
|
15
|
+
--ant-primary-color-deprecated-l-20: #a3caf2;
|
|
16
|
+
--ant-primary-color-deprecated-t-20: #6daceb;
|
|
17
|
+
--ant-primary-color-deprecated-t-50: #a4cbf3;
|
|
18
|
+
--ant-primary-color-deprecated-f-12: rgba(73, 151, 230, 0.12);
|
|
19
|
+
--ant-primary-color-active-deprecated-f-30: rgba(240, 250, 255, 0.3);
|
|
20
|
+
--ant-primary-color-active-deprecated-d-02: #e6f7ff;
|
|
21
|
+
--ant-success-color: #52c41a;
|
|
22
|
+
--ant-success-color-hover: #73d13d;
|
|
23
|
+
--ant-success-color-active: #389e0d;
|
|
24
|
+
--ant-success-color-outline: rgba(82, 196, 26, 0.2);
|
|
25
|
+
--ant-success-color-deprecated-bg: #f6ffed;
|
|
26
|
+
--ant-success-color-deprecated-border: #b7eb8f;
|
|
27
|
+
--ant-error-color: #ff4d4f;
|
|
28
|
+
--ant-error-color-hover: #ff7875;
|
|
29
|
+
--ant-error-color-active: #d9363e;
|
|
30
|
+
--ant-error-color-outline: rgba(255, 77, 79, 0.2);
|
|
31
|
+
--ant-error-color-deprecated-bg: #fff2f0;
|
|
32
|
+
--ant-error-color-deprecated-border: #ffccc7;
|
|
33
|
+
--ant-warning-color: #faad14;
|
|
34
|
+
--ant-warning-color-hover: #ffc53d;
|
|
35
|
+
--ant-warning-color-active: #d48806;
|
|
36
|
+
--ant-warning-color-outline: rgba(250, 173, 20, 0.2);
|
|
37
|
+
--ant-warning-color-deprecated-bg: #fffbe6;
|
|
38
|
+
--ant-warning-color-deprecated-border: #ffe58f;
|
|
39
|
+
--ant-info-color: #4997E6;
|
|
40
|
+
--ant-info-color-deprecated-bg: #f0faff;
|
|
41
|
+
--ant-info-color-deprecated-border: #ccebff;
|
|
42
|
+
}
|
|
43
|
+
|
|
1
44
|
.dtl-layout {
|
|
2
45
|
position : absolute;
|
|
3
46
|
top : 0;
|
|
@@ -86,4 +129,19 @@
|
|
|
86
129
|
text-align : center;
|
|
87
130
|
padding-top: 20%;
|
|
88
131
|
background : #fff;
|
|
89
|
-
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ant-btn {
|
|
135
|
+
border-radius: 4px;
|
|
136
|
+
border-color : var(--ant-primary-color);
|
|
137
|
+
color : var(--ant-primary-color);
|
|
138
|
+
|
|
139
|
+
&:active {
|
|
140
|
+
border-color: var(--ant-primary-color-hover);
|
|
141
|
+
color : var(--ant-primary-color-hover);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ant-btn-primary {
|
|
146
|
+
color: #fff;
|
|
147
|
+
}
|
package/es/hooks/useDtl/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
8
8
|
var _excluded = ["current", "pageSize"];
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { useState, useRef, useCallback, useMemo } from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import { PlusCircleOutlined, EditOutlined, DeleteOutlined, ImportOutlined, ExportOutlined } from '@ant-design/icons';
|
|
12
12
|
import { showConfirm, showWarn, showError, showSuccess } from '../../utils';
|
|
13
13
|
import { httpPost } from '../../http';
|
|
14
14
|
|
|
@@ -968,7 +968,7 @@ function useDtl(dtlParam) {
|
|
|
968
968
|
return onAddDtl();
|
|
969
969
|
},
|
|
970
970
|
disabled: btnDisabled('add'),
|
|
971
|
-
icon: /*#__PURE__*/React.createElement(
|
|
971
|
+
icon: /*#__PURE__*/React.createElement(PlusCircleOutlined, null)
|
|
972
972
|
}, "\u65B0\u589E") : false, (toolConfig === null || toolConfig === void 0 ? void 0 : toolConfig.edit) && !isAudit() ? /*#__PURE__*/React.createElement(_Button, {
|
|
973
973
|
key: "edit",
|
|
974
974
|
disabled: btnDisabled('edit'),
|
|
@@ -8,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
8
8
|
var _excluded = ["current", "pageSize"];
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { useState, useRef, useMemo, useCallback } from 'react';
|
|
11
|
-
import {
|
|
11
|
+
import { PlusCircleOutlined, EditOutlined, DeleteOutlined, ImportOutlined, ExportOutlined, CheckOutlined } from '@ant-design/icons';
|
|
12
12
|
import { showConfirm, showWarn, showSuccess, showError } from '../../utils';
|
|
13
13
|
import { httpPost } from '../../http';
|
|
14
14
|
import usePermission from '../usePermission';
|
|
@@ -718,7 +718,7 @@ function useSingle(inParam) {
|
|
|
718
718
|
return onAdd(null);
|
|
719
719
|
},
|
|
720
720
|
disabled: btnDisabled('add'),
|
|
721
|
-
icon: /*#__PURE__*/React.createElement(
|
|
721
|
+
icon: /*#__PURE__*/React.createElement(PlusCircleOutlined, null)
|
|
722
722
|
}, "\u65B0\u589E") : false, (toolConfig === null || toolConfig === void 0 ? void 0 : toolConfig.edit) && checkRight(4) ? /*#__PURE__*/React.createElement(_Button, {
|
|
723
723
|
key: "edit",
|
|
724
724
|
disabled: btnDisabled('edit'),
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--ant-primary-color: #4997E6;
|
|
3
|
+
--ant-primary-color-hover: #74b7f2;
|
|
4
|
+
--ant-primary-color-active: #3475bf;
|
|
5
|
+
--ant-primary-color-outline: rgba(73, 151, 230, 0.2);
|
|
6
|
+
--ant-primary-1: #f0faff;
|
|
7
|
+
--ant-primary-2: #f0f9ff;
|
|
8
|
+
--ant-primary-3: #ccebff;
|
|
9
|
+
--ant-primary-4: #a3d7ff;
|
|
10
|
+
--ant-primary-5: #74b7f2;
|
|
11
|
+
--ant-primary-6: #4997E6;
|
|
12
|
+
--ant-primary-7: #3475bf;
|
|
13
|
+
--ant-primary-color-deprecated-pure: #e6f1fc;
|
|
14
|
+
--ant-primary-color-deprecated-l-35: #e6f1fc;
|
|
15
|
+
--ant-primary-color-deprecated-l-20: #a3caf2;
|
|
16
|
+
--ant-primary-color-deprecated-t-20: #6daceb;
|
|
17
|
+
--ant-primary-color-deprecated-t-50: #a4cbf3;
|
|
18
|
+
--ant-primary-color-deprecated-f-12: rgba(73, 151, 230, 0.12);
|
|
19
|
+
--ant-primary-color-active-deprecated-f-30: rgba(240, 250, 255, 0.3);
|
|
20
|
+
--ant-primary-color-active-deprecated-d-02: #e6f7ff;
|
|
21
|
+
--ant-success-color: #52c41a;
|
|
22
|
+
--ant-success-color-hover: #73d13d;
|
|
23
|
+
--ant-success-color-active: #389e0d;
|
|
24
|
+
--ant-success-color-outline: rgba(82, 196, 26, 0.2);
|
|
25
|
+
--ant-success-color-deprecated-bg: #f6ffed;
|
|
26
|
+
--ant-success-color-deprecated-border: #b7eb8f;
|
|
27
|
+
--ant-error-color: #ff4d4f;
|
|
28
|
+
--ant-error-color-hover: #ff7875;
|
|
29
|
+
--ant-error-color-active: #d9363e;
|
|
30
|
+
--ant-error-color-outline: rgba(255, 77, 79, 0.2);
|
|
31
|
+
--ant-error-color-deprecated-bg: #fff2f0;
|
|
32
|
+
--ant-error-color-deprecated-border: #ffccc7;
|
|
33
|
+
--ant-warning-color: #faad14;
|
|
34
|
+
--ant-warning-color-hover: #ffc53d;
|
|
35
|
+
--ant-warning-color-active: #d48806;
|
|
36
|
+
--ant-warning-color-outline: rgba(250, 173, 20, 0.2);
|
|
37
|
+
--ant-warning-color-deprecated-bg: #fffbe6;
|
|
38
|
+
--ant-warning-color-deprecated-border: #ffe58f;
|
|
39
|
+
--ant-info-color: #4997E6;
|
|
40
|
+
--ant-info-color-deprecated-bg: #f0faff;
|
|
41
|
+
--ant-info-color-deprecated-border: #ccebff;
|
|
42
|
+
}
|
|
43
|
+
|
|
1
44
|
.dtl-layout {
|
|
2
45
|
position : absolute;
|
|
3
46
|
top : 0;
|
|
@@ -86,4 +129,19 @@
|
|
|
86
129
|
text-align : center;
|
|
87
130
|
padding-top: 20%;
|
|
88
131
|
background : #fff;
|
|
89
|
-
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ant-btn {
|
|
135
|
+
border-radius: 4px;
|
|
136
|
+
border-color : var(--ant-primary-color);
|
|
137
|
+
color : var(--ant-primary-color);
|
|
138
|
+
|
|
139
|
+
&:active {
|
|
140
|
+
border-color: var(--ant-primary-color-hover);
|
|
141
|
+
color : var(--ant-primary-color-hover);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ant-btn-primary {
|
|
146
|
+
color: #fff;
|
|
147
|
+
}
|
|
@@ -989,7 +989,7 @@ function useDtl(dtlParam) {
|
|
|
989
989
|
return onAddDtl();
|
|
990
990
|
},
|
|
991
991
|
disabled: btnDisabled('add'),
|
|
992
|
-
icon: /*#__PURE__*/_react.default.createElement(_icons.
|
|
992
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.PlusCircleOutlined, null)
|
|
993
993
|
}, "\u65B0\u589E") : false, (toolConfig === null || toolConfig === void 0 ? void 0 : toolConfig.edit) && !isAudit() ? /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
994
994
|
key: "edit",
|
|
995
995
|
disabled: btnDisabled('edit'),
|
|
@@ -739,7 +739,7 @@ function useSingle(inParam) {
|
|
|
739
739
|
return onAdd(null);
|
|
740
740
|
},
|
|
741
741
|
disabled: btnDisabled('add'),
|
|
742
|
-
icon: /*#__PURE__*/_react.default.createElement(_icons.
|
|
742
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.PlusCircleOutlined, null)
|
|
743
743
|
}, "\u65B0\u589E") : false, (toolConfig === null || toolConfig === void 0 ? void 0 : toolConfig.edit) && checkRight(4) ? /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
744
744
|
key: "edit",
|
|
745
745
|
disabled: btnDisabled('edit'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ls-pro-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.45",
|
|
4
4
|
"description": "ls-pro-common",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ant-design/icons": "^4.3.0",
|
|
31
|
-
"ls-pro-table": "2.62.
|
|
31
|
+
"ls-pro-table": "2.62.35",
|
|
32
32
|
"ls-pro-form": "1.52.27",
|
|
33
33
|
"@babel/runtime": "^7.16.3",
|
|
34
34
|
"classnames": "^2.2.6",
|