ls-pro-common 1.1.1 → 1.1.2

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.
Files changed (42) hide show
  1. package/dist/common.css +65 -1
  2. package/dist/common.js +1 -1
  3. package/dist/common.js.LICENSE.txt +5 -3
  4. package/dist/common.min.css +65 -1
  5. package/dist/common.min.js +1 -1
  6. package/dist/common.min.js.LICENSE.txt +5 -3
  7. package/es/components/AreaCascader.js +35 -48
  8. package/es/components/AreaCascaderPanel.js +55 -85
  9. package/es/components/DescritionCard.js +14 -19
  10. package/es/components/DtlLayout.js +25 -38
  11. package/es/components/IconSelector.js +27 -50
  12. package/es/components/ImageSelector.js +89 -139
  13. package/es/components/InputMultiLine.js +33 -45
  14. package/es/components/InputTable.js +118 -160
  15. package/es/components/Loading.js +3 -6
  16. package/es/components/common.less +63 -0
  17. package/es/hooks/useDtl/index.js +676 -947
  18. package/es/hooks/usePermission/index.js +0 -9
  19. package/es/hooks/useSingle/index.js +417 -595
  20. package/es/http/index.js +107 -151
  21. package/es/index.js +0 -1
  22. package/es/service/BaseService.js +121 -195
  23. package/es/utils/index.js +12 -111
  24. package/lib/components/404.js +1 -6
  25. package/lib/components/AreaCascader.js +37 -63
  26. package/lib/components/AreaCascaderPanel.js +57 -105
  27. package/lib/components/DescritionCard.js +16 -33
  28. package/lib/components/DtlLayout.js +27 -49
  29. package/lib/components/IconSelector.js +29 -64
  30. package/lib/components/ImageSelector.js +91 -162
  31. package/lib/components/InputMultiLine.js +35 -61
  32. package/lib/components/InputTable.js +120 -185
  33. package/lib/components/Loading.js +4 -16
  34. package/lib/components/common.less +63 -0
  35. package/lib/hooks/useDtl/index.js +677 -963
  36. package/lib/hooks/usePermission/index.js +0 -12
  37. package/lib/hooks/useSingle/index.js +418 -610
  38. package/lib/http/index.js +105 -160
  39. package/lib/index.js +2 -21
  40. package/lib/service/BaseService.js +121 -201
  41. package/lib/utils/index.js +13 -209
  42. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
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,8 @@ 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
+
22
24
  /** @license React v16.13.1
23
25
  * react-is.production.min.js
24
26
  *
@@ -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;
@@ -1342,7 +1401,7 @@ mark {
1342
1401
  text-align: center;
1343
1402
  text-transform: none;
1344
1403
  vertical-align: -0.125em;
1345
- text-rendering: optimizeLegibility;
1404
+ text-rendering: optimizelegibility;
1346
1405
  -webkit-font-smoothing: antialiased;
1347
1406
  -moz-osx-font-smoothing: grayscale;
1348
1407
  }
@@ -1358,6 +1417,10 @@ mark {
1358
1417
  .anticon .anticon-icon {
1359
1418
  display: block;
1360
1419
  }
1420
+ .anticon > .anticon {
1421
+ line-height: 0;
1422
+ vertical-align: 0;
1423
+ }
1361
1424
  .anticon[tabindex] {
1362
1425
  cursor: pointer;
1363
1426
  }
@@ -2399,6 +2462,7 @@ html {
2399
2462
  height: 100%;
2400
2463
  display: flex;
2401
2464
  flex-direction: column;
2465
+ overflow-x: hidden;
2402
2466
  }
2403
2467
  .ant-pro-table-srcoll .ant-card .ant-table-wrapper {
2404
2468
  flex: 1;