ls-pro-common 1.0.82 → 1.0.83
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 +28 -22
- package/dist/common.js +1 -1
- package/dist/common.min.css +28 -22
- package/dist/common.min.js +1 -1
- package/es/components/common.less +63 -68
- package/es/utils/index.d.ts +1 -1
- package/es/utils/index.js +9 -1
- package/lib/components/common.less +63 -68
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +8 -1
- package/package.json +3 -2
|
@@ -1,69 +1,64 @@
|
|
|
1
1
|
body {
|
|
2
|
-
--ant-primary-color
|
|
3
|
-
--ant-primary-color-hover
|
|
4
|
-
--ant-primary-color-active
|
|
5
|
-
--ant-primary-color-outline
|
|
6
|
-
--ant-primary-1
|
|
7
|
-
--ant-primary-2
|
|
8
|
-
--ant-primary-3
|
|
9
|
-
--ant-primary-4
|
|
10
|
-
--ant-primary-5
|
|
11
|
-
--ant-primary-6
|
|
12
|
-
--ant-primary-7
|
|
13
|
-
--ant-primary-color-deprecated-pure
|
|
14
|
-
--ant-primary-color-deprecated-l-35
|
|
15
|
-
--ant-primary-color-deprecated-l-20
|
|
16
|
-
--ant-primary-color-deprecated-t-20
|
|
17
|
-
--ant-primary-color-deprecated-t-50
|
|
18
|
-
--ant-primary-color-deprecated-f-12
|
|
19
|
-
--ant-primary-color-active-deprecated-f-30: rgba(
|
|
20
|
-
--ant-primary-color-active-deprecated-d-02: #
|
|
21
|
-
--ant-success-color
|
|
22
|
-
--ant-success-color-hover
|
|
23
|
-
--ant-success-color-active
|
|
24
|
-
--ant-success-color-outline
|
|
25
|
-
--ant-success-color-deprecated-bg
|
|
26
|
-
--ant-success-color-deprecated-border
|
|
27
|
-
--ant-error-color
|
|
28
|
-
--ant-error-color-hover
|
|
29
|
-
--ant-error-color-active
|
|
30
|
-
--ant-error-color-outline
|
|
31
|
-
--ant-error-color-deprecated-bg
|
|
32
|
-
--ant-error-color-deprecated-border
|
|
33
|
-
--ant-warning-color
|
|
34
|
-
--ant-warning-color-hover
|
|
35
|
-
--ant-warning-color-active
|
|
36
|
-
--ant-warning-color-outline
|
|
37
|
-
--ant-warning-color-deprecated-bg
|
|
38
|
-
--ant-warning-color-deprecated-border
|
|
39
|
-
--ant-info-color
|
|
40
|
-
--ant-info-color-deprecated-bg
|
|
41
|
-
--ant-info-color-deprecated-border
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// --ant-primary-
|
|
49
|
-
// --ant-primary-
|
|
50
|
-
// --ant-primary-
|
|
51
|
-
// --ant-primary-
|
|
52
|
-
// --ant-primary-
|
|
53
|
-
// --ant-primary-
|
|
54
|
-
// --ant-primary-
|
|
55
|
-
// --ant-primary-
|
|
56
|
-
// --ant-primary-
|
|
57
|
-
// --ant-primary-
|
|
58
|
-
// --ant-primary-
|
|
59
|
-
// --ant-primary-color-deprecated-
|
|
60
|
-
// --ant-primary-color-deprecated-
|
|
61
|
-
// --ant-primary-color-deprecated-
|
|
62
|
-
// --ant-primary-color-deprecated-t-20 : #618ff8;
|
|
63
|
-
// --ant-primary-color-deprecated-t-50 : #9cb9fb;
|
|
64
|
-
// --ant-primary-color-deprecated-f-12 : rgba(57, 115, 246, 0.12);
|
|
65
|
-
// --ant-primary-color-active-deprecated-f-30: rgba(240, 247, 255, 0.3);
|
|
66
|
-
// --ant-primary-color-active-deprecated-d-02: #e6f2ff;
|
|
2
|
+
--ant-primary-color: #1869ed;
|
|
3
|
+
--ant-primary-color-hover: #418efa;
|
|
4
|
+
--ant-primary-color-active: #0a4cc7;
|
|
5
|
+
--ant-primary-color-outline: rgba(24, 105, 237, 0.2);
|
|
6
|
+
--ant-primary-1: #e6f4ff;
|
|
7
|
+
--ant-primary-2: #bddfff;
|
|
8
|
+
--ant-primary-3: #94c8ff;
|
|
9
|
+
--ant-primary-4: #6baeff;
|
|
10
|
+
--ant-primary-5: #418efa;
|
|
11
|
+
--ant-primary-6: #1869ed;
|
|
12
|
+
--ant-primary-7: #0a4cc7;
|
|
13
|
+
--ant-primary-color-deprecated-pure: #bed5fa;
|
|
14
|
+
--ant-primary-color-deprecated-l-35: #bed5fa;
|
|
15
|
+
--ant-primary-color-deprecated-l-20: #77a6f4;
|
|
16
|
+
--ant-primary-color-deprecated-t-20: #4687f1;
|
|
17
|
+
--ant-primary-color-deprecated-t-50: #8cb4f6;
|
|
18
|
+
--ant-primary-color-deprecated-f-12: rgba(24, 105, 237, 0.12);
|
|
19
|
+
--ant-primary-color-active-deprecated-f-30: rgba(230, 244, 255, 0.3);
|
|
20
|
+
--ant-primary-color-active-deprecated-d-02: #dcf0ff;
|
|
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: #1869ed;
|
|
40
|
+
--ant-info-color-deprecated-bg: #e6f4ff;
|
|
41
|
+
--ant-info-color-deprecated-border: #94c8ff;
|
|
42
|
+
|
|
43
|
+
// --ant-primary-color : #4997E6;
|
|
44
|
+
// --ant-primary-color-hover : #74b7f2;
|
|
45
|
+
// --ant-primary-color-active : #3475bf;
|
|
46
|
+
// --ant-primary-color-outline : rgba(73, 151, 230, 0.2);
|
|
47
|
+
// --ant-primary-1 : #f0faff;
|
|
48
|
+
// --ant-primary-2 : #f0f9ff;
|
|
49
|
+
// --ant-primary-3 : #ccebff;
|
|
50
|
+
// --ant-primary-4 : #a3d7ff;
|
|
51
|
+
// --ant-primary-5 : #74b7f2;
|
|
52
|
+
// --ant-primary-6 : #4997E6;
|
|
53
|
+
// --ant-primary-7 : #3475bf;
|
|
54
|
+
// --ant-primary-color-deprecated-pure : #e6f1fc;
|
|
55
|
+
// --ant-primary-color-deprecated-l-35 : #e6f1fc;
|
|
56
|
+
// --ant-primary-color-deprecated-l-20 : #a3caf2;
|
|
57
|
+
// --ant-primary-color-deprecated-t-20 : #6daceb;
|
|
58
|
+
// --ant-primary-color-deprecated-t-50 : #a4cbf3;
|
|
59
|
+
// --ant-primary-color-deprecated-f-12 : rgba(73, 151, 230, 0.12);
|
|
60
|
+
// --ant-primary-color-active-deprecated-f-30: rgba(240, 250, 255, 0.3);
|
|
61
|
+
// --ant-primary-color-active-deprecated-d-02: #e6f7ff;
|
|
67
62
|
// --ant-success-color : #52c41a;
|
|
68
63
|
// --ant-success-color-hover : #73d13d;
|
|
69
64
|
// --ant-success-color-active : #389e0d;
|
|
@@ -82,9 +77,9 @@ body {
|
|
|
82
77
|
// --ant-warning-color-outline : rgba(250, 173, 20, 0.2);
|
|
83
78
|
// --ant-warning-color-deprecated-bg : #fffbe6;
|
|
84
79
|
// --ant-warning-color-deprecated-border : #ffe58f;
|
|
85
|
-
// --ant-info-color : #
|
|
86
|
-
// --ant-info-color-deprecated-bg : #
|
|
87
|
-
// --ant-info-color-deprecated-border : #
|
|
80
|
+
// --ant-info-color : #4997E6;
|
|
81
|
+
// --ant-info-color-deprecated-bg : #f0faff;
|
|
82
|
+
// --ant-info-color-deprecated-border : #ccebff;
|
|
88
83
|
}
|
|
89
84
|
|
|
90
85
|
.dtl-layout {
|
package/es/utils/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export declare const debounce: (fn: Function, delay?: number) => () => void;
|
|
|
171
171
|
* @param delay 限时
|
|
172
172
|
* @returns function
|
|
173
173
|
*/
|
|
174
|
-
export declare const throttle: (fn: Function, delay?: number) => () => void;
|
|
174
|
+
export declare const throttle: (fn: Function, delay?: number) => (...args: any[]) => void;
|
|
175
175
|
/**
|
|
176
176
|
* 绑定事件
|
|
177
177
|
* @param eventName 事件名
|
package/es/utils/index.js
CHANGED
|
@@ -6,6 +6,9 @@ import _Modal from "antd/es/modal";
|
|
|
6
6
|
import "antd/es/message/style";
|
|
7
7
|
import _message from "antd/es/message";
|
|
8
8
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
9
|
+
|
|
10
|
+
var _this = this;
|
|
11
|
+
|
|
9
12
|
import ReactDOM from 'react-dom';
|
|
10
13
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
11
14
|
import { dateFormat, toGatewayUrl } from 'ls-pro-table';
|
|
@@ -526,10 +529,15 @@ export var throttle = function throttle(fn) {
|
|
|
526
529
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
527
530
|
var t = Date.now();
|
|
528
531
|
return function () {
|
|
532
|
+
var me = _this;
|
|
529
533
|
var now = Date.now();
|
|
530
534
|
|
|
531
535
|
if (now - t > delay) {
|
|
532
|
-
|
|
536
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
537
|
+
args[_key] = arguments[_key];
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
fn.apply(me, args);
|
|
533
541
|
t = now;
|
|
534
542
|
}
|
|
535
543
|
};
|
|
@@ -1,69 +1,64 @@
|
|
|
1
1
|
body {
|
|
2
|
-
--ant-primary-color
|
|
3
|
-
--ant-primary-color-hover
|
|
4
|
-
--ant-primary-color-active
|
|
5
|
-
--ant-primary-color-outline
|
|
6
|
-
--ant-primary-1
|
|
7
|
-
--ant-primary-2
|
|
8
|
-
--ant-primary-3
|
|
9
|
-
--ant-primary-4
|
|
10
|
-
--ant-primary-5
|
|
11
|
-
--ant-primary-6
|
|
12
|
-
--ant-primary-7
|
|
13
|
-
--ant-primary-color-deprecated-pure
|
|
14
|
-
--ant-primary-color-deprecated-l-35
|
|
15
|
-
--ant-primary-color-deprecated-l-20
|
|
16
|
-
--ant-primary-color-deprecated-t-20
|
|
17
|
-
--ant-primary-color-deprecated-t-50
|
|
18
|
-
--ant-primary-color-deprecated-f-12
|
|
19
|
-
--ant-primary-color-active-deprecated-f-30: rgba(
|
|
20
|
-
--ant-primary-color-active-deprecated-d-02: #
|
|
21
|
-
--ant-success-color
|
|
22
|
-
--ant-success-color-hover
|
|
23
|
-
--ant-success-color-active
|
|
24
|
-
--ant-success-color-outline
|
|
25
|
-
--ant-success-color-deprecated-bg
|
|
26
|
-
--ant-success-color-deprecated-border
|
|
27
|
-
--ant-error-color
|
|
28
|
-
--ant-error-color-hover
|
|
29
|
-
--ant-error-color-active
|
|
30
|
-
--ant-error-color-outline
|
|
31
|
-
--ant-error-color-deprecated-bg
|
|
32
|
-
--ant-error-color-deprecated-border
|
|
33
|
-
--ant-warning-color
|
|
34
|
-
--ant-warning-color-hover
|
|
35
|
-
--ant-warning-color-active
|
|
36
|
-
--ant-warning-color-outline
|
|
37
|
-
--ant-warning-color-deprecated-bg
|
|
38
|
-
--ant-warning-color-deprecated-border
|
|
39
|
-
--ant-info-color
|
|
40
|
-
--ant-info-color-deprecated-bg
|
|
41
|
-
--ant-info-color-deprecated-border
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// --ant-primary-
|
|
49
|
-
// --ant-primary-
|
|
50
|
-
// --ant-primary-
|
|
51
|
-
// --ant-primary-
|
|
52
|
-
// --ant-primary-
|
|
53
|
-
// --ant-primary-
|
|
54
|
-
// --ant-primary-
|
|
55
|
-
// --ant-primary-
|
|
56
|
-
// --ant-primary-
|
|
57
|
-
// --ant-primary-
|
|
58
|
-
// --ant-primary-
|
|
59
|
-
// --ant-primary-color-deprecated-
|
|
60
|
-
// --ant-primary-color-deprecated-
|
|
61
|
-
// --ant-primary-color-deprecated-
|
|
62
|
-
// --ant-primary-color-deprecated-t-20 : #618ff8;
|
|
63
|
-
// --ant-primary-color-deprecated-t-50 : #9cb9fb;
|
|
64
|
-
// --ant-primary-color-deprecated-f-12 : rgba(57, 115, 246, 0.12);
|
|
65
|
-
// --ant-primary-color-active-deprecated-f-30: rgba(240, 247, 255, 0.3);
|
|
66
|
-
// --ant-primary-color-active-deprecated-d-02: #e6f2ff;
|
|
2
|
+
--ant-primary-color: #1869ed;
|
|
3
|
+
--ant-primary-color-hover: #418efa;
|
|
4
|
+
--ant-primary-color-active: #0a4cc7;
|
|
5
|
+
--ant-primary-color-outline: rgba(24, 105, 237, 0.2);
|
|
6
|
+
--ant-primary-1: #e6f4ff;
|
|
7
|
+
--ant-primary-2: #bddfff;
|
|
8
|
+
--ant-primary-3: #94c8ff;
|
|
9
|
+
--ant-primary-4: #6baeff;
|
|
10
|
+
--ant-primary-5: #418efa;
|
|
11
|
+
--ant-primary-6: #1869ed;
|
|
12
|
+
--ant-primary-7: #0a4cc7;
|
|
13
|
+
--ant-primary-color-deprecated-pure: #bed5fa;
|
|
14
|
+
--ant-primary-color-deprecated-l-35: #bed5fa;
|
|
15
|
+
--ant-primary-color-deprecated-l-20: #77a6f4;
|
|
16
|
+
--ant-primary-color-deprecated-t-20: #4687f1;
|
|
17
|
+
--ant-primary-color-deprecated-t-50: #8cb4f6;
|
|
18
|
+
--ant-primary-color-deprecated-f-12: rgba(24, 105, 237, 0.12);
|
|
19
|
+
--ant-primary-color-active-deprecated-f-30: rgba(230, 244, 255, 0.3);
|
|
20
|
+
--ant-primary-color-active-deprecated-d-02: #dcf0ff;
|
|
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: #1869ed;
|
|
40
|
+
--ant-info-color-deprecated-bg: #e6f4ff;
|
|
41
|
+
--ant-info-color-deprecated-border: #94c8ff;
|
|
42
|
+
|
|
43
|
+
// --ant-primary-color : #4997E6;
|
|
44
|
+
// --ant-primary-color-hover : #74b7f2;
|
|
45
|
+
// --ant-primary-color-active : #3475bf;
|
|
46
|
+
// --ant-primary-color-outline : rgba(73, 151, 230, 0.2);
|
|
47
|
+
// --ant-primary-1 : #f0faff;
|
|
48
|
+
// --ant-primary-2 : #f0f9ff;
|
|
49
|
+
// --ant-primary-3 : #ccebff;
|
|
50
|
+
// --ant-primary-4 : #a3d7ff;
|
|
51
|
+
// --ant-primary-5 : #74b7f2;
|
|
52
|
+
// --ant-primary-6 : #4997E6;
|
|
53
|
+
// --ant-primary-7 : #3475bf;
|
|
54
|
+
// --ant-primary-color-deprecated-pure : #e6f1fc;
|
|
55
|
+
// --ant-primary-color-deprecated-l-35 : #e6f1fc;
|
|
56
|
+
// --ant-primary-color-deprecated-l-20 : #a3caf2;
|
|
57
|
+
// --ant-primary-color-deprecated-t-20 : #6daceb;
|
|
58
|
+
// --ant-primary-color-deprecated-t-50 : #a4cbf3;
|
|
59
|
+
// --ant-primary-color-deprecated-f-12 : rgba(73, 151, 230, 0.12);
|
|
60
|
+
// --ant-primary-color-active-deprecated-f-30: rgba(240, 250, 255, 0.3);
|
|
61
|
+
// --ant-primary-color-active-deprecated-d-02: #e6f7ff;
|
|
67
62
|
// --ant-success-color : #52c41a;
|
|
68
63
|
// --ant-success-color-hover : #73d13d;
|
|
69
64
|
// --ant-success-color-active : #389e0d;
|
|
@@ -82,9 +77,9 @@ body {
|
|
|
82
77
|
// --ant-warning-color-outline : rgba(250, 173, 20, 0.2);
|
|
83
78
|
// --ant-warning-color-deprecated-bg : #fffbe6;
|
|
84
79
|
// --ant-warning-color-deprecated-border : #ffe58f;
|
|
85
|
-
// --ant-info-color : #
|
|
86
|
-
// --ant-info-color-deprecated-bg : #
|
|
87
|
-
// --ant-info-color-deprecated-border : #
|
|
80
|
+
// --ant-info-color : #4997E6;
|
|
81
|
+
// --ant-info-color-deprecated-bg : #f0faff;
|
|
82
|
+
// --ant-info-color-deprecated-border : #ccebff;
|
|
88
83
|
}
|
|
89
84
|
|
|
90
85
|
.dtl-layout {
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ export declare const debounce: (fn: Function, delay?: number) => () => void;
|
|
|
171
171
|
* @param delay 限时
|
|
172
172
|
* @returns function
|
|
173
173
|
*/
|
|
174
|
-
export declare const throttle: (fn: Function, delay?: number) => () => void;
|
|
174
|
+
export declare const throttle: (fn: Function, delay?: number) => (...args: any[]) => void;
|
|
175
175
|
/**
|
|
176
176
|
* 绑定事件
|
|
177
177
|
* @param eventName 事件名
|
package/lib/utils/index.js
CHANGED
|
@@ -67,6 +67,8 @@ var _http = require("../http");
|
|
|
67
67
|
|
|
68
68
|
var _react = _interopRequireDefault(require("react"));
|
|
69
69
|
|
|
70
|
+
var _this = void 0;
|
|
71
|
+
|
|
70
72
|
/**
|
|
71
73
|
* 设置文档title
|
|
72
74
|
* @param {*} title
|
|
@@ -661,10 +663,15 @@ var throttle = function throttle(fn) {
|
|
|
661
663
|
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
662
664
|
var t = Date.now();
|
|
663
665
|
return function () {
|
|
666
|
+
var me = _this;
|
|
664
667
|
var now = Date.now();
|
|
665
668
|
|
|
666
669
|
if (now - t > delay) {
|
|
667
|
-
|
|
670
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
671
|
+
args[_key] = arguments[_key];
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
fn.apply(me, args);
|
|
668
675
|
t = now;
|
|
669
676
|
}
|
|
670
677
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ls-pro-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
4
4
|
"description": "ls-pro-common",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd",
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ant-design/icons": "^4.3.0",
|
|
30
|
-
"ls-pro-table": "2.62.
|
|
30
|
+
"ls-pro-table": "2.62.62",
|
|
31
31
|
"ls-pro-form": "1.52.34",
|
|
32
|
+
"ls-pro-description":"^1.10.33",
|
|
32
33
|
"@babel/runtime": "^7.16.3",
|
|
33
34
|
"classnames": "^2.2.6",
|
|
34
35
|
"moment": "^2.27.0",
|