@zat-design/sisyphus-react 3.2.2 → 3.3.0

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 (170) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +82 -37
  3. package/es/ProAction/index.less +3 -0
  4. package/es/ProDownload/index.js +9 -6
  5. package/es/ProDownload/style/index.less +5 -2
  6. package/es/ProDrawerForm/index.js +1 -15
  7. package/es/ProDrawerForm/style/index.less +76 -73
  8. package/es/ProEditLabel/style/index.less +12 -9
  9. package/es/ProEditTable/index.js +8 -4
  10. package/es/ProEditTable/style/index.less +57 -47
  11. package/es/ProEditTable/utils/config.d.ts +1 -1
  12. package/es/ProEditTable/utils/config.js +3 -3
  13. package/es/ProEnum/style/index.less +3 -0
  14. package/es/ProForm/components/base/DatePicker/index.js +0 -3
  15. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  16. package/es/ProForm/components/base/TextArea/index.less +4 -3
  17. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  18. package/es/ProForm/components/combination/Container/style/index.less +6 -3
  19. package/es/ProForm/components/combination/FormList/style/index.less +20 -24
  20. package/es/ProForm/components/combination/Group/style/index.less +18 -15
  21. package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  22. package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
  23. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
  24. package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  25. package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  26. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  27. package/es/ProForm/components/render/RenderFields.js +4 -5
  28. package/es/ProForm/style/index.less +46 -44
  29. package/es/ProIcon/style/index.less +4 -1
  30. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  31. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  32. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  33. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  34. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
  35. package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
  36. package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
  37. package/es/ProLayout/components/ProFooter/style/index.less +11 -7
  38. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  39. package/es/ProLayout/components/ProHeader/style/index.less +12 -11
  40. package/es/ProLayout/style/index.less +10 -7
  41. package/es/ProSelect/index.less +3 -0
  42. package/es/ProStep/style/index.less +3 -0
  43. package/es/ProTable/index.js +15 -7
  44. package/es/ProTable/style/index.less +76 -54
  45. package/es/ProTable/utils.d.ts +1 -1
  46. package/es/ProTable/utils.js +38 -19
  47. package/es/ProTabs/style/index.less +25 -23
  48. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  49. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  50. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  51. package/es/ProThemeTools/index.d.ts +1 -1
  52. package/es/ProThemeTools/index.js +7 -2
  53. package/es/ProThemeTools/propsType.d.ts +4 -0
  54. package/es/ProThemeTools/style/index.less +6 -3
  55. package/es/ProThemeTools/utils/index.d.ts +1 -1
  56. package/es/ProThemeTools/utils/index.js +2 -1
  57. package/es/ProTooltip/style/index.less +3 -0
  58. package/es/ProTree/components/CloseIcon.js +2 -4
  59. package/es/ProTree/components/ProTree.js +27 -11
  60. package/es/ProTree/components/Tree.js +1 -1
  61. package/es/ProTree/propsType.d.ts +2 -2
  62. package/es/ProTree/style/index.less +29 -26
  63. package/es/ProTree/utils.d.ts +6 -0
  64. package/es/ProTree/utils.js +11 -0
  65. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  66. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  67. package/es/ProTreeModal/components/Trigger.js +79 -19
  68. package/es/ProTreeModal/index.js +38 -6
  69. package/es/ProTreeModal/propsType.d.ts +5 -2
  70. package/es/ProTreeModal/style/index.less +11 -8
  71. package/es/ProTreeSelect/index.js +6 -4
  72. package/es/ProTreeSelect/propsType.d.ts +2 -0
  73. package/es/ProTreeSelect/style/index.less +25 -22
  74. package/es/ProUpload/components/DragRender.js +7 -4
  75. package/es/ProUpload/components/ImageRender.js +5 -1
  76. package/es/ProUpload/index.js +11 -7
  77. package/es/ProUpload/style/index.less +13 -4
  78. package/es/ProViewer/index.js +3 -1
  79. package/es/ProViewer/style/index.less +6 -3
  80. package/es/locale/en_US.d.ts +4 -0
  81. package/es/locale/en_US.js +5 -1
  82. package/es/locale/zh_CN.d.ts +4 -0
  83. package/es/locale/zh_CN.js +6 -2
  84. package/es/style/core/compatible.less +6 -6
  85. package/es/style/theme/antd.less +272 -253
  86. package/lib/ProAction/index.less +3 -0
  87. package/lib/ProDownload/index.js +9 -6
  88. package/lib/ProDownload/style/index.less +5 -2
  89. package/lib/ProDrawerForm/index.js +0 -14
  90. package/lib/ProDrawerForm/style/index.less +76 -73
  91. package/lib/ProEditLabel/style/index.less +12 -9
  92. package/lib/ProEditTable/index.js +6 -2
  93. package/lib/ProEditTable/style/index.less +57 -47
  94. package/lib/ProEditTable/utils/config.d.ts +1 -1
  95. package/lib/ProEditTable/utils/config.js +3 -3
  96. package/lib/ProEnum/style/index.less +3 -0
  97. package/lib/ProForm/components/base/DatePicker/index.js +0 -3
  98. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  99. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  100. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  101. package/lib/ProForm/components/combination/Container/style/index.less +6 -3
  102. package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
  103. package/lib/ProForm/components/combination/Group/style/index.less +18 -15
  104. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  105. package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
  106. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
  107. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  108. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  109. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  110. package/lib/ProForm/components/render/RenderFields.js +4 -5
  111. package/lib/ProForm/style/index.less +46 -44
  112. package/lib/ProIcon/style/index.less +4 -1
  113. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  114. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  115. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  116. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  117. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
  118. package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
  119. package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
  120. package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
  121. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  122. package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
  123. package/lib/ProLayout/style/index.less +10 -7
  124. package/lib/ProSelect/index.less +3 -0
  125. package/lib/ProStep/style/index.less +3 -0
  126. package/lib/ProTable/index.js +14 -6
  127. package/lib/ProTable/style/index.less +76 -54
  128. package/lib/ProTable/utils.d.ts +1 -1
  129. package/lib/ProTable/utils.js +38 -19
  130. package/lib/ProTabs/style/index.less +25 -23
  131. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  132. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  133. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  134. package/lib/ProThemeTools/index.d.ts +1 -1
  135. package/lib/ProThemeTools/index.js +7 -2
  136. package/lib/ProThemeTools/propsType.d.ts +4 -0
  137. package/lib/ProThemeTools/style/index.less +6 -3
  138. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  139. package/lib/ProThemeTools/utils/index.js +2 -1
  140. package/lib/ProTooltip/style/index.less +3 -0
  141. package/lib/ProTree/components/CloseIcon.js +2 -4
  142. package/lib/ProTree/components/ProTree.js +26 -10
  143. package/lib/ProTree/components/Tree.js +1 -1
  144. package/lib/ProTree/propsType.d.ts +2 -2
  145. package/lib/ProTree/style/index.less +29 -26
  146. package/lib/ProTree/utils.d.ts +6 -0
  147. package/lib/ProTree/utils.js +12 -0
  148. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  149. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  150. package/lib/ProTreeModal/components/Trigger.js +74 -18
  151. package/lib/ProTreeModal/index.js +38 -6
  152. package/lib/ProTreeModal/propsType.d.ts +5 -2
  153. package/lib/ProTreeModal/style/index.less +11 -8
  154. package/lib/ProTreeSelect/index.js +6 -4
  155. package/lib/ProTreeSelect/propsType.d.ts +2 -0
  156. package/lib/ProTreeSelect/style/index.less +25 -22
  157. package/lib/ProUpload/components/DragRender.js +7 -4
  158. package/lib/ProUpload/components/ImageRender.js +5 -1
  159. package/lib/ProUpload/index.js +11 -7
  160. package/lib/ProUpload/style/index.less +13 -4
  161. package/lib/ProViewer/index.js +4 -3
  162. package/lib/ProViewer/style/index.less +6 -3
  163. package/lib/locale/en_US.d.ts +4 -0
  164. package/lib/locale/en_US.js +5 -1
  165. package/lib/locale/zh_CN.d.ts +4 -0
  166. package/lib/locale/zh_CN.js +6 -2
  167. package/lib/style/core/compatible.less +6 -6
  168. package/lib/style/theme/antd.less +272 -253
  169. package/package.json +1 -1
  170. package/typings.d.ts +0 -6
package/README.md CHANGED
@@ -91,3 +91,10 @@ render(<App />, document.getElementById('root'));
91
91
  4. release: "yarn build:types & yarn build:es && yarn build:lib && npm publish" 打包 3 个文件进行发布
92
92
  5. 执行 yarn build 成功
93
93
  6. 执行 yarn release
94
+
95
+
96
+ ### 发布
97
+
98
+ npm publish --registry https://registry.npmjs.org --access=public
99
+
100
+
@@ -789,14 +789,14 @@
789
789
  }
790
790
  .pro-footer {
791
791
  position: fixed;
792
- bottom: 0;
793
792
  right: 0;
793
+ bottom: 0;
794
+ z-index: 101;
794
795
  width: 100%;
795
- padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
796
+ padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) var(--zaui-space-size-lg, 32px);
796
797
  background: var(--zaui-base-bg, #ffffff);
797
798
  -webkit-box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
798
799
  box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
799
- z-index: 101;
800
800
  }
801
801
  .back-button-container.ant-btn {
802
802
  color: var(--zaui-text);
@@ -817,7 +817,7 @@
817
817
  }
818
818
  .pro-header {
819
819
  background-color: var(--zaui-base-bg, #ffffff);
820
- padding: 24px 0 0 0;
820
+ padding: 16px 0 0 0 !important;
821
821
  }
822
822
  .pro-header.pro-header-no-back.pro-header-has-describe .pro-header-top {
823
823
  padding-left: var(--zaui-space-size-md, 16px);
@@ -1536,7 +1536,7 @@
1536
1536
  }
1537
1537
  .pro-tabs .pro-tabs-card {
1538
1538
  width: 200px;
1539
- padding: 14px 16px 14px 24px;
1539
+ padding: calc(9px * var(--zaui-size, 1)) 16px calc(9px * var(--zaui-size, 1)) 24px;
1540
1540
  border: 1px solid var(--zaui-line, #dddddd);
1541
1541
  border-left: none;
1542
1542
  }
@@ -1545,14 +1545,14 @@
1545
1545
  text-shadow: none;
1546
1546
  }
1547
1547
  .pro-tabs .pro-tabs-card .pro-tabs-card-left .pro-tabs-card-left-total {
1548
- font-size: var(--zaui-font-size-lg-title, 24px);
1549
- font-weight: 600;
1550
1548
  color: var(--zaui-text, #343434);
1549
+ font-weight: 600;
1550
+ font-size: var(--zaui-font-size-lg-title, 24px);
1551
1551
  }
1552
1552
  .pro-tabs .pro-tabs-card .pro-tabs-card-left .pro-tabs-card-left-label {
1553
- font-size: var(--zaui-font-size, 14px);
1554
- font-weight: 400;
1555
1553
  color: var(--aui-text, #343434);
1554
+ font-weight: 400;
1555
+ font-size: var(--zaui-font-size, 14px);
1556
1556
  }
1557
1557
  .pro-tabs .pro-tabs-card .pro-tabs-card-right {
1558
1558
  display: -webkit-box;
@@ -1564,9 +1564,9 @@
1564
1564
  width: 48px;
1565
1565
  }
1566
1566
  .pro-tabs-tab .pro-tabs-card .ant-tag {
1567
- border-radius: 10px;
1568
- padding: 0 var(--zaui-space-size-xs, 4px);
1569
1567
  margin-right: 0;
1568
+ padding: 0 var(--zaui-space-size-xs, 4px);
1569
+ border-radius: 10px;
1570
1570
  }
1571
1571
  .pro-tabs-tab .pro-tabs-card .ant-space-item {
1572
1572
  display: -webkit-box;
@@ -1733,9 +1733,18 @@
1733
1733
  .pro-table .column-config .right-actions .custom-column-btn {
1734
1734
  margin-left: var(--zaui-space-size-sm, 8px);
1735
1735
  }
1736
- .pro-table .ant-empty .ant-empty-image {
1736
+ .pro-table .pro-table-empty {
1737
+ margin: var(--zaui-space-size-lg, 32px) 0;
1738
+ color: rgba(0, 0, 0, 0.25);
1739
+ font-size: var(--zaui-font-size-md, 14px);
1740
+ text-align: center;
1741
+ }
1742
+ .pro-table .pro-table-empty .empty-image {
1737
1743
  height: 80px;
1738
1744
  }
1745
+ .pro-table .pro-table-empty .empty-image img {
1746
+ height: 100%;
1747
+ }
1739
1748
  .pro-table .ant-table .ant-table-thead > tr > th {
1740
1749
  border-bottom: 0;
1741
1750
  white-space: nowrap;
@@ -1937,10 +1946,6 @@ div.pro-textarea-view::after {
1937
1946
  display: flex;
1938
1947
  padding-bottom: 0;
1939
1948
  }
1940
- .pro-form-list.pro-form-list-last .pro-form-list-drag-handle,
1941
- .pro-form-list.pro-form-list-last .ant-form-item {
1942
- margin-bottom: 0 !important;
1943
- }
1944
1949
  .pro-form-list .single-delete {
1945
1950
  width: 14px !important;
1946
1951
  height: 14px !important;
@@ -1978,6 +1983,7 @@ div.pro-textarea-view::after {
1978
1983
  }
1979
1984
  .pro-form-list-line {
1980
1985
  padding: var(--zaui-height-size-md, 16px);
1986
+ padding-bottom: 0;
1981
1987
  }
1982
1988
  .pro-form-list-line:hover {
1983
1989
  background: rgba(0, 0, 0, 0.018);
@@ -2150,6 +2156,23 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2150
2156
  .pro-tree-modal .ant-input-group-wrapper:hover .ant-input-group-addon {
2151
2157
  border-color: var(--zaui-brand-hover, #3387ff);
2152
2158
  }
2159
+ .pro-modal-select .ant-input-group-wrapper:hover .ant-input-disabled,
2160
+ .pro-tree-modal .ant-input-group-wrapper:hover .ant-input-disabled {
2161
+ border-color: #d9d9d9;
2162
+ }
2163
+ .pro-modal-select .ant-input-group-wrapper:hover .ant-input-disabled + span,
2164
+ .pro-tree-modal .ant-input-group-wrapper:hover .ant-input-disabled + span {
2165
+ border-color: #d9d9d9;
2166
+ }
2167
+ .pro-modal-select .ant-input-group-wrapper:hover .ant-input-disabled + span .close-icon,
2168
+ .pro-tree-modal .ant-input-group-wrapper:hover .ant-input-disabled + span .close-icon {
2169
+ display: none;
2170
+ }
2171
+ .pro-modal-select .pro-tree-modal-input-appoint .ant-input,
2172
+ .pro-tree-modal .pro-tree-modal-input-appoint .ant-input {
2173
+ border-top-left-radius: 0;
2174
+ border-bottom-left-radius: 0;
2175
+ }
2153
2176
  .pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input,
2154
2177
  .pro-tree-modal .ant-input-group-wrapper-status-error:hover .ant-input,
2155
2178
  .pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input-group-addon,
@@ -3004,6 +3027,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3004
3027
  -ms-flex-pack: center;
3005
3028
  justify-content: center;
3006
3029
  }
3030
+ .proupload-modal-preview .ant-modal {
3031
+ width: 600px;
3032
+ }
3007
3033
  .pro-tree-select .ant-select-selector .check-mark-icon {
3008
3034
  display: none;
3009
3035
  }
@@ -3799,7 +3825,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3799
3825
  fill: var(--zaui-aide-text, #909090);
3800
3826
  }
3801
3827
  .pro-drawer .pro-drawer-close .close-icon:hover {
3802
- fill: var(--zaui-brand-active, #005AD9);
3828
+ fill: var(--zaui-brand-active, #005ad9);
3803
3829
  }
3804
3830
  .pro-drawer .pro-drawer-close .close-icon > div {
3805
3831
  height: 20px;
@@ -3850,7 +3876,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3850
3876
  left: 0;
3851
3877
  z-index: 101;
3852
3878
  width: 100%;
3853
- padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
3879
+ padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) var(--zaui-space-size-lg, 32px);
3854
3880
  background-color: var(--zaui-global-bg, #fff);
3855
3881
  -webkit-box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
3856
3882
  box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
@@ -3912,10 +3938,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3912
3938
  z-index: 1;
3913
3939
  }
3914
3940
  .pro-modal-scrolling .ant-modal-header {
3915
- -webkit-box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
3916
- box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
3917
3941
  position: relative;
3918
3942
  z-index: 1;
3943
+ -webkit-box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
3944
+ box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
3919
3945
  }
3920
3946
  .pro-modal-footer-shadow .ant-modal-footer {
3921
3947
  position: relative;
@@ -4039,6 +4065,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4039
4065
  line-height: 1;
4040
4066
  content: "*";
4041
4067
  }
4068
+ .pro-edit-table .ant-table-scroll-horizontal .ant-table-cell-fix-right-first::after {
4069
+ -webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
4070
+ box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
4071
+ }
4042
4072
  .pro-edit-table .ant-table-content > table .ant-table-summary {
4043
4073
  background-color: var(--zaui-table-header-bg, #f2f3f5);
4044
4074
  color: var(--zaui-text, #343434);
@@ -4048,10 +4078,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4048
4078
  .pro-edit-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
4049
4079
  background-color: var(--zaui-table-header-bg, #f2f3f5);
4050
4080
  }
4051
- .pro-edit-table .ant-table-content > table .ant-table-cell-fix-right-first::after {
4052
- -webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
4053
- box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
4054
- }
4055
4081
  .pro-edit-table .ant-table-content > table th.ant-table-selection-column {
4056
4082
  width: 48px;
4057
4083
  }
@@ -4120,7 +4146,12 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4120
4146
  .pro-edit-table .ant-table-tbody > .ant-table-placeholder > td {
4121
4147
  background-color: var(--zaui-base-bg, #ffffff);
4122
4148
  }
4123
- .pro-edit-table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row, .ant-table-placeholder) > td,
4149
+ .pro-edit-table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td,
4150
+ .pro-edit-table .ant-table-tbody .ant-table-row-hover,
4151
+ .pro-edit-table .ant-table-tbody .ant-table-row-hover > td {
4152
+ background: #FAFAFA;
4153
+ }
4154
+ .pro-edit-table .ant-table-tbody > tr:hover:not(.ant-table-placeholder) > td,
4124
4155
  .pro-edit-table .ant-table-tbody .ant-table-row-hover,
4125
4156
  .pro-edit-table .ant-table-tbody .ant-table-row-hover > td {
4126
4157
  background: #FAFAFA;
@@ -4915,11 +4946,11 @@ input[type='button'] {
4915
4946
  -webkit-flex: 0 0 var(--zaui-form-label-width, 130px);
4916
4947
  -ms-flex: 0 0 var(--zaui-form-label-width, 130px);
4917
4948
  flex: 0 0 var(--zaui-form-label-width, 130px);
4949
+ padding-right: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1));
4918
4950
  overflow: initial;
4919
4951
  line-height: 1;
4920
- text-align: var(--zaui-form-align, left);
4921
4952
  white-space: pre-wrap;
4922
- padding-right: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1));
4953
+ text-align: var(--zaui-form-align, left);
4923
4954
  }
4924
4955
  .ant-form .ant-form-item .ant-form-item-label .ant-form-item-required::after,
4925
4956
  .ant-drawer .ant-form-item .ant-form-item-label .ant-form-item-required::after,
@@ -4934,8 +4965,8 @@ input[type='button'] {
4934
4965
  .ant-form .ant-form-item .ant-form-item-label > label::after,
4935
4966
  .ant-drawer .ant-form-item .ant-form-item-label > label::after,
4936
4967
  .ant-modal .ant-form-item .ant-form-item-label > label::after {
4937
- margin: 0;
4938
4968
  display: none;
4969
+ margin: 0;
4939
4970
  }
4940
4971
  .ant-form .ant-form-item .ant-form-item-label .ant-form-item-required::before,
4941
4972
  .ant-drawer .ant-form-item .ant-form-item-label .ant-form-item-required::before,
@@ -5005,6 +5036,9 @@ input[type='button'] {
5005
5036
  font-size: calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px));
5006
5037
  color: var(--zaui-text, #464646);
5007
5038
  }
5039
+ .ant-table .ant-empty-normal {
5040
+ margin: calc(var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1)) 0;
5041
+ }
5008
5042
  .ant-table.pro-table-no-stripe .ant-table-tbody .ant-table-row {
5009
5043
  background: #fff !important;
5010
5044
  }
@@ -5068,11 +5102,22 @@ input[type='button'] {
5068
5102
  .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td {
5069
5103
  background: var(--zaui-table-strip-bg, #fafafa);
5070
5104
  }
5105
+ .ant-table table .ant-table-thead > tr > th,
5106
+ .ant-table table .ant-table-tbody > tr > td,
5107
+ .ant-table table .ant-table tfoot > tr > th,
5108
+ .ant-table table .ant-table tfoot > tr > td {
5109
+ padding: calc(4px + var(--zaui-size) * 8px);
5110
+ }
5111
+ .ant-table table .ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table,
5112
+ .ant-table table .ant-table-tbody > tr > td > .ant-table-expanded-row-fixed > .ant-table-wrapper:only-child .ant-table {
5113
+ margin-top: calc(var(--zaui-size) * -16px);
5114
+ margin-bottom: calc(var(--zaui-size) * -16px);
5115
+ }
5071
5116
  .ant-table.ant-table-scroll-horizontal table .ant-table-thead > tr > th,
5072
5117
  .ant-table.ant-table-scroll-horizontal table .ant-table-tbody > tr > td,
5073
5118
  .ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > th,
5074
5119
  .ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > td {
5075
- padding: calc(5px + var(--zaui-size) * 8px) 16px;
5120
+ padding: calc(4px + var(--zaui-size) * 8px);
5076
5121
  }
5077
5122
  .ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) {
5078
5123
  background-color: var(--zaui-table-strip-bg, #fafafa);
@@ -5111,19 +5156,19 @@ input[type='button'] {
5111
5156
  background-color: var(--zaui-table-strip-bg, #fafafa) !important;
5112
5157
  }
5113
5158
  .ant-table .ant-table-cell .ant-btn-link {
5114
- padding: 0;
5115
5159
  height: auto;
5160
+ padding: 0;
5116
5161
  -webkit-user-select: text;
5117
5162
  -moz-user-select: text;
5118
5163
  -ms-user-select: text;
5119
5164
  user-select: text;
5120
5165
  }
5121
5166
  .ant-table .ant-table-cell a {
5167
+ color: var(--zaui-brand, #006aff);
5122
5168
  -webkit-user-select: text;
5123
5169
  -moz-user-select: text;
5124
5170
  -ms-user-select: text;
5125
5171
  user-select: text;
5126
- color: var(--zaui-brand, #006aFF);
5127
5172
  }
5128
5173
  .ant-table.ant-table-fixed-header .ant-table-tbody .ant-table-row:nth-child(even) td {
5129
5174
  background: #ffffff !important;
@@ -5139,13 +5184,13 @@ input[type='button'] {
5139
5184
  color: var(--zaui-text, #464646);
5140
5185
  }
5141
5186
  .ant-tabs .ant-tabs-nav-list.ant-tabs-card .ant-tabs-tab {
5142
- padding: 8px var(--zaui-space-size-md, 16px);
5143
5187
  margin-right: 10px;
5188
+ padding: 8px var(--zaui-space-size-md, 16px);
5144
5189
  }
5145
5190
  .ant-tabs .ant-tabs-nav-list .ant-tabs-tab {
5146
5191
  font-size: calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px));
5147
- padding: 12px var(--zaui-space-size-md, 16px);
5148
5192
  margin-left: 0;
5193
+ padding: 12px var(--zaui-space-size-md, 16px);
5149
5194
  }
5150
5195
  .ant-tabs .ant-tabs-nav {
5151
5196
  margin-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1));
@@ -5154,8 +5199,8 @@ input[type='button'] {
5154
5199
  font-size: var(--zaui-font-size-lg, 16px);
5155
5200
  }
5156
5201
  .ant-tabs.ant-tabs-card .ant-tabs-tab {
5157
- padding: 8px calc(var(--zaui-space-size-md, 16px)*var(--zaui-size, 1)) !important;
5158
5202
  margin-right: 10px !important;
5203
+ padding: 8px calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
5159
5204
  }
5160
5205
  .ant-tabs.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-btn {
5161
5206
  font-size: var(--zaui-font-size, 14px);
@@ -5185,7 +5230,7 @@ input[type='button'] {
5185
5230
  .ant-btn.ant-btn-link[disabled]:hover,
5186
5231
  .ant-btn.ant-btn-link[disabled]:focus,
5187
5232
  .ant-btn.ant-btn-link[disabled]:active {
5188
- color: #BCBCBC;
5233
+ color: #bcbcbc;
5189
5234
  text-shadow: none;
5190
5235
  background: none;
5191
5236
  border-color: none;
@@ -5388,10 +5433,10 @@ input[type='button'] {
5388
5433
  position: absolute;
5389
5434
  right: 16px;
5390
5435
  bottom: 1px;
5391
- margin-bottom: 0;
5392
- background: #fff;
5393
5436
  width: calc(100% - 18px);
5437
+ margin-bottom: 0;
5394
5438
  text-align: right;
5439
+ background: #fff;
5395
5440
  }
5396
5441
  .ant-space.ant-space-vertical {
5397
5442
  display: -webkit-box;
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-action-view-tile {
2
5
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
3
6
  color : #666;
@@ -1,16 +1,17 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
1
  import "antd/es/button/style";
3
2
  import _Button from "antd/es/button";
4
3
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
5
4
  import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
5
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
6
6
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
7
7
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
8
- var _excluded = ["source", "action", "url", "method", "params", "fileName", "headers", "children", "onFinish", "beforeDownload", "className", "transformResponse"];
8
+ var _excluded = ["source", "action", "url", "method", "params", "fileName", "children", "onFinish", "beforeDownload", "className", "transformResponse"];
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import { useSetState } from 'ahooks';
11
11
  import classNames from 'classnames';
12
12
  import _, { isFunction } from 'lodash';
13
13
  import { BlobMakeFile, DownloadRequest } from './utils';
14
+ import { useProConfig } from '../ProConfigProvider';
14
15
  var ProDownload = function ProDownload(props) {
15
16
  var source = props.source,
16
17
  action = props.action,
@@ -18,7 +19,6 @@ var ProDownload = function ProDownload(props) {
18
19
  method = props.method,
19
20
  params = props.params,
20
21
  fileName = props.fileName,
21
- headers = props.headers,
22
22
  children = props.children,
23
23
  onFinish = props.onFinish,
24
24
  beforeDownload = props.beforeDownload,
@@ -31,8 +31,11 @@ var ProDownload = function ProDownload(props) {
31
31
  _useSetState2 = _slicedToArray(_useSetState, 2),
32
32
  loading = _useSetState2[0].loading,
33
33
  setState = _useSetState2[1];
34
+ var _ref = useProConfig('ProDownload') || {},
35
+ headers = _ref.headers;
36
+ defaultProps.headers = _objectSpread(_objectSpread({}, headers), defaultProps.headers);
34
37
  var handDownload = /*#__PURE__*/function () {
35
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
38
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
36
39
  var _params;
37
40
  return _regeneratorRuntime().wrap(function _callee$(_context) {
38
41
  while (1) switch (_context.prev = _context.next) {
@@ -87,7 +90,7 @@ var ProDownload = function ProDownload(props) {
87
90
  return DownloadRequest({
88
91
  url: url || action,
89
92
  method: method,
90
- headers: headers,
93
+ headers: defaultProps.headers,
91
94
  params: _params,
92
95
  transformResponse: transformResponse,
93
96
  fileName: fileName,
@@ -116,7 +119,7 @@ var ProDownload = function ProDownload(props) {
116
119
  }, _callee, null, [[14, 19, 23, 26]]);
117
120
  }));
118
121
  return function handDownload() {
119
- return _ref.apply(this, arguments);
122
+ return _ref2.apply(this, arguments);
120
123
  };
121
124
  }();
122
125
  var cls = classNames(className, {
@@ -1,7 +1,10 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-download {
2
5
 
3
- &.ant-btn-link,
4
- &.ant-btn-text {
6
+ &.@{ant-prefix}-btn-link,
7
+ &.@{ant-prefix}-btn-text {
5
8
  padding: 0;
6
9
  }
7
10
  }
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  var _locale$ProDrawerForm3;
4
4
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
5
- import { forwardRef, useEffect, useImperativeHandle, useMemo } from 'react';
5
+ import { forwardRef, useImperativeHandle, useMemo } from 'react';
6
6
  import { ProDrawer, ProModal } from './components';
7
7
  import ProForm from '../ProForm';
8
8
  import { transformBySize } from './utils';
@@ -50,20 +50,6 @@ var ProDrawerForm = /*#__PURE__*/forwardRef(function (props, ref) {
50
50
  Modal: ProModal
51
51
  }[showType];
52
52
  }, [showType]);
53
- var removeStyle = function removeStyle() {
54
- var styleTags = document.getElementsByTagName('style');
55
- for (var i = 0; i < styleTags.length; i++) {
56
- var rcUtilKey = styleTags[i].getAttribute('rc-util-key');
57
- if ((rcUtilKey === null || rcUtilKey === void 0 ? void 0 : rcUtilKey.indexOf('rc-util-locker')) === 0) {
58
- styleTags[i].remove();
59
- }
60
- }
61
- };
62
- useEffect(function () {
63
- if (!visible) {
64
- removeStyle();
65
- }
66
- }, [visible]);
67
53
  return _jsx(_Fragment, {
68
54
  children: visible ? _jsx(Com, _objectSpread(_objectSpread({}, props), {}, {
69
55
  isView: isView,
@@ -1,82 +1,86 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-drawer {
2
5
  .pro-drawer-close {
3
- position : absolute;
4
- top : 6px;
5
- left : -34px;
6
- display : flex;
7
- align-items : center;
6
+ position: absolute;
7
+ top: 6px;
8
+ left: -34px;
9
+ display: flex;
10
+ align-items: center;
8
11
  justify-content: center;
9
- width : 32px;
10
- height : 38px;
11
- color : var(--zaui-global-bg, #fff);
12
- cursor : pointer;
12
+ width: 32px;
13
+ height: 38px;
14
+ color: var(--zaui-global-bg, #fff);
15
+ cursor: pointer;
13
16
 
14
17
  .close-icon {
15
- position : relative;
16
- left : 2px;
17
- z-index : 1;
18
+ position: relative;
19
+ left: 2px;
20
+ z-index: 1;
18
21
  font-size: var(--zaui-font-size-lg, 16px);
19
22
  transform: translateZ(100px);
20
- fill : var(--zaui-aide-text, #909090);
23
+ fill: var(--zaui-aide-text, #909090);
21
24
 
22
25
  &:hover {
23
- fill: var(--zaui-brand-active, #005AD9);
26
+ fill: var(--zaui-brand-active, #005ad9);
24
27
  }
25
28
 
26
- >div {
29
+ > div {
27
30
  height: 20px;
28
31
  }
29
32
  }
30
33
  }
31
34
 
32
35
  .pro-drawer-close::after {
33
- position : absolute;
34
- top : 0;
35
- right : 0;
36
- bottom : 0;
37
- left : 0;
36
+ position: absolute;
37
+ top: 0;
38
+ right: 0;
39
+ bottom: 0;
40
+ left: 0;
38
41
  background-color: var(--zaui-global-bg, #fff);
39
- border-radius : 4px 0px 0px 4px;
40
- transform : perspective(0.15em) rotateY(-2deg);
41
- content : '';
42
+ border-radius: 4px 0px 0px 4px;
43
+ transform: perspective(0.15em) rotateY(-2deg);
44
+ content: '';
42
45
  }
43
46
 
44
47
  .pro-drawer-title {
45
- position : absolute;
46
- top : 0;
47
- left : 0;
48
- width : 100%;
49
- height : 64px;
50
- padding : var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
51
- color : var(--zaui-text, #343434);
52
- font-weight : 600;
53
- font-size : var(--zaui-font-size-xxl, 20px);
48
+ position: absolute;
49
+ top: 0;
50
+ left: 0;
51
+ width: 100%;
52
+ height: 64px;
53
+ padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
54
+ color: var(--zaui-text, #343434);
55
+ font-weight: 600;
56
+ font-size: var(--zaui-font-size-xxl, 20px);
54
57
  background-color: var(--zaui-global-bg, #fff);
55
58
  }
56
59
 
57
60
  .pro-drawer-scrolling {
58
- z-index : 1;
61
+ z-index: 1;
59
62
  box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
60
63
  }
61
64
 
62
65
  .pro-drawer-content {
63
- flex : 1;
64
- width : 100%;
65
- padding : var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
66
+ flex: 1;
67
+ width: 100%;
68
+ padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
66
69
  padding-top: 0;
67
- overflow-x : hidden;
68
- overflow-y : auto;
70
+ overflow-x: hidden;
71
+ overflow-y: auto;
69
72
  }
70
73
 
71
74
  .pro-drawer-footer {
72
- position : absolute;
73
- bottom : 0;
74
- left : 0;
75
- z-index : 101;
76
- width : 100%;
77
- padding : var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
75
+ position: absolute;
76
+ bottom: 0;
77
+ left: 0;
78
+ z-index: 101;
79
+ width: 100%;
80
+ padding: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
81
+ var(--zaui-space-size-lg, 32px);
78
82
  background-color: var(--zaui-global-bg, #fff);
79
- box-shadow : 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
83
+ box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
80
84
 
81
85
  button {
82
86
  margin-right: var(--zaui-space-size-sm, 8px);
@@ -87,24 +91,24 @@
87
91
  }
88
92
  }
89
93
 
90
- .ant-drawer-body {
91
- height : 100vh;
92
- padding : 0;
94
+ .@{ant-prefix}-drawer-body {
95
+ height: 100vh;
96
+ padding: 0;
93
97
  overflow-y: hidden;
94
98
  }
95
99
 
96
- .ant-drawer-content {
100
+ .@{ant-prefix}-drawer-content {
97
101
  position: static;
98
102
  }
99
103
 
100
- .ant-drawer-close {
104
+ .@{ant-prefix}-drawer-close {
101
105
  display: none;
102
106
  }
103
107
  }
104
108
 
105
109
  .pro-modal {
106
- .ant-modal-close {
107
- .ant-modal-close-x {
110
+ .@{ant-prefix}-modal-close {
111
+ .@{ant-prefix}-modal-close-x {
108
112
  .close-icon {
109
113
  fill: var(--zaui-aide-text, #909090);
110
114
 
@@ -115,40 +119,39 @@
115
119
  }
116
120
  }
117
121
 
118
- .ant-modal-header {
119
- padding : var(--zaui-space-size-md, 16px);
122
+ .@{ant-prefix}-modal-header {
123
+ padding: var(--zaui-space-size-md, 16px);
120
124
  border-bottom: none;
121
125
 
122
- .ant-modal-title {
126
+ .@{ant-prefix}-modal-title {
123
127
  font-weight: 600;
124
128
  }
125
129
  }
126
130
 
127
- .ant-modal-footer {
128
- padding : var(--zaui-space-size-md, 16px);
131
+ .@{ant-prefix}-modal-footer {
132
+ padding: var(--zaui-space-size-md, 16px);
129
133
  border-top: none;
130
134
 
131
135
  .pro-modal-footer {
132
- display : flex;
136
+ display: flex;
133
137
  justify-content: space-between;
134
138
  }
135
139
  }
136
140
 
137
- .ant-modal-content {
138
- .ant-modal-body {
139
- max-height : 450px;
140
- padding : 0 var(--zaui-space-size-md, 16px);
141
+ .@{ant-prefix}-modal-content {
142
+ .@{ant-prefix}-modal-body {
143
+ max-height: 450px;
144
+ padding: 0 var(--zaui-space-size-md, 16px);
141
145
  padding-top: 0;
142
- overflow : auto;
146
+ overflow: auto;
143
147
  }
144
148
  }
145
-
146
149
  }
147
150
 
148
151
  .pro-modal-no-footer {
149
- .ant-modal-content {
150
- .ant-modal-body {
151
- padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
152
+ .@{ant-prefix}-modal-content {
153
+ .@{ant-prefix}-modal-body {
154
+ padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
152
155
  }
153
156
  }
154
157
  }
@@ -156,17 +159,17 @@
156
159
  .pro-modal-scrolling {
157
160
  z-index: 1;
158
161
 
159
- .ant-modal-header {
162
+ .@{ant-prefix}-modal-header {
163
+ position: relative;
164
+ z-index: 1;
160
165
  box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
161
- position : relative;
162
- z-index : 1;
163
166
  }
164
167
  }
165
168
 
166
169
  .pro-modal-footer-shadow {
167
- .ant-modal-footer {
168
- position : relative;
169
- z-index : 1;
170
+ .@{ant-prefix}-modal-footer {
171
+ position: relative;
172
+ z-index: 1;
170
173
  box-shadow: 3px 2px 12px 0px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
171
174
  }
172
175
  }