ls-pro-common 1.1.1 → 1.1.3
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 +66 -3
- package/dist/common.js +1 -1
- package/dist/common.js.LICENSE.txt +14 -3
- package/dist/common.min.css +66 -3
- package/dist/common.min.js +1 -1
- package/dist/common.min.js.LICENSE.txt +14 -3
- package/es/components/AreaCascader.js +35 -48
- package/es/components/AreaCascaderPanel.js +55 -85
- package/es/components/DescritionCard.js +14 -19
- package/es/components/DtlLayout.js +25 -38
- package/es/components/IconSelector.js +27 -50
- package/es/components/ImageSelector.js +89 -139
- package/es/components/InputMultiLine.js +33 -45
- package/es/components/InputTable.js +118 -160
- package/es/components/Loading.js +3 -6
- package/es/components/Permission.d.ts +6 -0
- package/es/components/Permission.js +10 -0
- package/es/components/common.less +63 -0
- package/es/hooks/useDtl/index.d.ts +2 -2
- package/es/hooks/useDtl/index.js +685 -950
- package/es/hooks/usePermission/index.js +0 -9
- package/es/hooks/useSingle/index.d.ts +3 -3
- package/es/hooks/useSingle/index.js +431 -603
- package/es/http/index.js +116 -154
- package/es/index.d.ts +4 -2
- package/es/index.js +2 -2
- package/es/service/BaseService.js +121 -195
- package/es/utils/index.d.ts +9 -22
- package/es/utils/index.js +63 -181
- package/lib/components/404.js +1 -6
- package/lib/components/AreaCascader.js +37 -63
- package/lib/components/AreaCascaderPanel.js +57 -105
- package/lib/components/DescritionCard.js +16 -33
- package/lib/components/DtlLayout.js +27 -49
- package/lib/components/IconSelector.js +29 -64
- package/lib/components/ImageSelector.js +91 -162
- package/lib/components/InputMultiLine.js +35 -61
- package/lib/components/InputTable.js +120 -185
- package/lib/components/Loading.js +4 -16
- package/lib/components/Permission.d.ts +6 -0
- package/lib/components/Permission.js +18 -0
- package/lib/components/common.less +63 -0
- package/lib/hooks/useDtl/index.d.ts +2 -2
- package/lib/hooks/useDtl/index.js +686 -966
- package/lib/hooks/usePermission/index.js +0 -12
- package/lib/hooks/useSingle/index.d.ts +3 -3
- package/lib/hooks/useSingle/index.js +432 -618
- package/lib/http/index.js +114 -163
- package/lib/index.d.ts +4 -2
- package/lib/index.js +9 -21
- package/lib/service/BaseService.js +121 -201
- package/lib/utils/index.d.ts +9 -22
- package/lib/utils/index.js +85 -290
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
@@ -19,6 +19,17 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
19
19
|
PERFORMANCE OF THIS SOFTWARE.
|
|
20
20
|
***************************************************************************** */
|
|
21
21
|
|
|
22
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @license
|
|
26
|
+
* Lodash <https://lodash.com/>
|
|
27
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
28
|
+
* Released under MIT license <https://lodash.com/license>
|
|
29
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
30
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
31
|
+
*/
|
|
32
|
+
|
|
22
33
|
/** @license React v16.13.1
|
|
23
34
|
* react-is.production.min.js
|
|
24
35
|
*
|
package/dist/common.min.css
CHANGED
|
@@ -40,6 +40,64 @@ body {
|
|
|
40
40
|
--ant-info-color-deprecated-bg: #e6f4ff;
|
|
41
41
|
--ant-info-color-deprecated-border: #94c8ff;
|
|
42
42
|
}
|
|
43
|
+
body.theme-yellow {
|
|
44
|
+
--ant-primary-color: #fa8500;
|
|
45
|
+
--ant-primary-color-hover: #ffa229;
|
|
46
|
+
--ant-primary-color-active: #d46a00;
|
|
47
|
+
--ant-primary-color-outline: rgba(250, 133, 0, 0.2);
|
|
48
|
+
--ant-primary-bg: #fff;
|
|
49
|
+
--ant-primary-side: #fff7e6;
|
|
50
|
+
--ant-primary-0: #ffd9ad;
|
|
51
|
+
--ant-primary-1: #fff7e6;
|
|
52
|
+
--ant-primary-2: #ffe0a3;
|
|
53
|
+
--ant-primary-3: #ffce7a;
|
|
54
|
+
--ant-primary-4: #ffba52;
|
|
55
|
+
--ant-primary-5: #ffa229;
|
|
56
|
+
--ant-primary-6: #fa8500;
|
|
57
|
+
--ant-primary-7: #d46a00;
|
|
58
|
+
--ant-primary-color-deprecated-pure: #ffd9ad;
|
|
59
|
+
--ant-primary-color-deprecated-l-35: #ffd9ad;
|
|
60
|
+
--ant-primary-color-deprecated-l-20: #ffb561;
|
|
61
|
+
--ant-primary-color-deprecated-t-20: #fb9d33;
|
|
62
|
+
--ant-primary-color-deprecated-t-50: #fdc280;
|
|
63
|
+
--ant-primary-color-deprecated-f-12: rgba(250, 133, 0, 0.12);
|
|
64
|
+
--ant-primary-color-active-deprecated-f-30: rgba(255, 247, 230, 0.3);
|
|
65
|
+
--ant-primary-color-active-deprecated-d-02: #fff4dc;
|
|
66
|
+
--ant-success-color: #52c41a;
|
|
67
|
+
--ant-success-color-hover: #73d13d;
|
|
68
|
+
--ant-success-color-active: #389e0d;
|
|
69
|
+
--ant-success-color-outline: rgba(82, 196, 26, 0.2);
|
|
70
|
+
--ant-success-color-deprecated-bg: #f6ffed;
|
|
71
|
+
--ant-success-color-deprecated-border: #b7eb8f;
|
|
72
|
+
--ant-error-color: #ff4d4f;
|
|
73
|
+
--ant-error-color-hover: #ff7875;
|
|
74
|
+
--ant-error-color-active: #d9363e;
|
|
75
|
+
--ant-error-color-outline: rgba(255, 77, 79, 0.2);
|
|
76
|
+
--ant-error-color-deprecated-bg: #fff2f0;
|
|
77
|
+
--ant-error-color-deprecated-border: #ffccc7;
|
|
78
|
+
--ant-warning-color: #faad14;
|
|
79
|
+
--ant-warning-color-hover: #ffc53d;
|
|
80
|
+
--ant-warning-color-active: #d48806;
|
|
81
|
+
--ant-warning-color-outline: rgba(250, 173, 20, 0.2);
|
|
82
|
+
--ant-warning-color-deprecated-bg: #fffbe6;
|
|
83
|
+
--ant-warning-color-deprecated-border: #ffe58f;
|
|
84
|
+
--ant-info-color: #fa8500;
|
|
85
|
+
--ant-info-color-deprecated-bg: #fff7e6;
|
|
86
|
+
--ant-info-color-deprecated-border: #ffce7a;
|
|
87
|
+
--antd-wave-shadow-color: #fa8500;
|
|
88
|
+
}
|
|
89
|
+
body.theme-yellow .ant-table-cell a,
|
|
90
|
+
body.theme-yellow .ant-pro-table-alert-info-content a {
|
|
91
|
+
color: var(--ant-primary-color);
|
|
92
|
+
}
|
|
93
|
+
body.theme-yellow .ant-table-cell a:hover,
|
|
94
|
+
body.theme-yellow .ant-pro-table-alert-info-content a:hover {
|
|
95
|
+
color: var(--ant-primary-color-hover);
|
|
96
|
+
}
|
|
97
|
+
body.theme-yellow .ant-table-cell a:active,
|
|
98
|
+
body.theme-yellow .ant-pro-table-alert-info-content a:active {
|
|
99
|
+
color: var(--ant-primary-color-active);
|
|
100
|
+
}
|
|
43
101
|
.dtl-layout {
|
|
44
102
|
position: absolute;
|
|
45
103
|
top: 0;
|
|
@@ -373,6 +431,7 @@ a:hover {
|
|
|
373
431
|
height: 100%;
|
|
374
432
|
display: flex;
|
|
375
433
|
flex-direction: column;
|
|
434
|
+
overflow-x: hidden;
|
|
376
435
|
}
|
|
377
436
|
.ant-pro-table-srcoll .ant-card .ant-table-wrapper {
|
|
378
437
|
flex: 1;
|
|
@@ -470,7 +529,6 @@ a:hover {
|
|
|
470
529
|
.ls-pro-table-mini .ant-table.ant-table-small tfoot > tr > th,
|
|
471
530
|
.ls-pro-table-mini .ant-table.ant-table-small tfoot > tr > td {
|
|
472
531
|
padding: 7px 5px;
|
|
473
|
-
font-size: 12px;
|
|
474
532
|
}
|
|
475
533
|
.ls-pro-table-mini .ant-table.ant-table-small .ant-table-title:first-child,
|
|
476
534
|
.ls-pro-table-mini .ant-table.ant-table-small .ant-table-footer:first-child,
|
|
@@ -1342,7 +1400,7 @@ mark {
|
|
|
1342
1400
|
text-align: center;
|
|
1343
1401
|
text-transform: none;
|
|
1344
1402
|
vertical-align: -0.125em;
|
|
1345
|
-
text-rendering:
|
|
1403
|
+
text-rendering: optimizelegibility;
|
|
1346
1404
|
-webkit-font-smoothing: antialiased;
|
|
1347
1405
|
-moz-osx-font-smoothing: grayscale;
|
|
1348
1406
|
}
|
|
@@ -1358,6 +1416,10 @@ mark {
|
|
|
1358
1416
|
.anticon .anticon-icon {
|
|
1359
1417
|
display: block;
|
|
1360
1418
|
}
|
|
1419
|
+
.anticon > .anticon {
|
|
1420
|
+
line-height: 0;
|
|
1421
|
+
vertical-align: 0;
|
|
1422
|
+
}
|
|
1361
1423
|
.anticon[tabindex] {
|
|
1362
1424
|
cursor: pointer;
|
|
1363
1425
|
}
|
|
@@ -2399,6 +2461,7 @@ html {
|
|
|
2399
2461
|
height: 100%;
|
|
2400
2462
|
display: flex;
|
|
2401
2463
|
flex-direction: column;
|
|
2464
|
+
overflow-x: hidden;
|
|
2402
2465
|
}
|
|
2403
2466
|
.ant-pro-table-srcoll .ant-card .ant-table-wrapper {
|
|
2404
2467
|
flex: 1;
|
|
@@ -2496,7 +2559,6 @@ html {
|
|
|
2496
2559
|
.ls-pro-table-mini .ant-table.ant-table-small tfoot > tr > th,
|
|
2497
2560
|
.ls-pro-table-mini .ant-table.ant-table-small tfoot > tr > td {
|
|
2498
2561
|
padding: 7px 5px;
|
|
2499
|
-
font-size: 12px;
|
|
2500
2562
|
}
|
|
2501
2563
|
.ls-pro-table-mini .ant-table.ant-table-small .ant-table-title:first-child,
|
|
2502
2564
|
.ls-pro-table-mini .ant-table.ant-table-small .ant-table-footer:first-child,
|
|
@@ -2753,6 +2815,7 @@ html {
|
|
|
2753
2815
|
|
|
2754
2816
|
.ant-pro-table-list-toolbar {
|
|
2755
2817
|
line-height: 1;
|
|
2818
|
+
min-height: 44px;
|
|
2756
2819
|
}
|
|
2757
2820
|
.ant-pro-table-list-toolbar-container {
|
|
2758
2821
|
display: flex;
|