@zat-design/sisyphus-react 3.2.2 → 3.3.0-beta.10
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/README.md +7 -0
- package/dist/index.esm.css +89 -37
- package/es/ProAction/index.less +3 -0
- package/es/ProDownload/index.js +9 -6
- package/es/ProDownload/style/index.less +5 -2
- package/es/ProDrawerForm/index.js +1 -15
- package/es/ProDrawerForm/style/index.less +76 -73
- package/es/ProEditLabel/style/index.less +12 -9
- package/es/ProEditTable/components/RenderField/index.js +6 -4
- package/es/ProEditTable/index.js +37 -22
- package/es/ProEditTable/style/index.less +57 -47
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +3 -3
- package/es/ProEnum/index.js +7 -18
- package/es/ProEnum/propsType.d.ts +1 -0
- package/es/ProEnum/style/index.less +3 -0
- package/es/ProForm/components/base/DatePicker/index.d.ts +2 -2
- package/es/ProForm/components/base/DatePicker/index.js +5 -8
- package/es/ProForm/components/base/RangePicker/index.d.ts +3 -2
- package/es/ProForm/components/base/RangePicker/index.js +3 -5
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/es/ProForm/components/base/TextArea/index.less +4 -3
- package/es/ProForm/components/base/TimePicker/index.js +3 -3
- package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/es/ProForm/components/combination/Container/style/index.less +6 -3
- package/es/ProForm/components/combination/FormList/style/index.less +20 -24
- package/es/ProForm/components/combination/Group/style/index.less +18 -15
- package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
- package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +23 -25
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProRangeLimit/index.js +6 -6
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -4
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
- package/es/ProForm/components/old/ProCertValidity/index.js +16 -16
- package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
- package/es/ProForm/components/render/Render.js +14 -23
- package/es/ProForm/components/render/RenderFields.js +10 -7
- package/es/ProForm/style/index.less +46 -44
- package/es/ProForm/utils/rulesCreator.js +2 -1
- package/es/ProForm/utils/useRules.js +6 -5
- package/es/ProIcon/style/index.less +4 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
- package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
- package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
- package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
- package/es/ProLayout/components/ProFooter/style/index.less +11 -7
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
- package/es/ProLayout/components/ProHeader/index.js +4 -4
- package/es/ProLayout/components/ProHeader/style/index.less +12 -11
- package/es/ProLayout/style/index.less +10 -7
- package/es/ProSelect/index.less +3 -0
- package/es/ProStep/index.js +2 -2
- package/es/ProStep/style/index.less +3 -0
- package/es/ProTable/index.js +15 -7
- package/es/ProTable/style/index.less +76 -54
- package/es/ProTable/utils.d.ts +1 -1
- package/es/ProTable/utils.js +52 -33
- package/es/ProTabs/style/index.less +25 -23
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +7 -6
- package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.js +7 -2
- package/es/ProThemeTools/propsType.d.ts +4 -0
- package/es/ProThemeTools/style/index.less +6 -3
- package/es/ProThemeTools/utils/index.d.ts +1 -1
- package/es/ProThemeTools/utils/index.js +2 -1
- package/es/ProTooltip/style/index.less +3 -0
- package/es/ProTree/components/CloseIcon.js +2 -4
- package/es/ProTree/components/ProTree.js +27 -11
- package/es/ProTree/components/Tree.js +1 -1
- package/es/ProTree/propsType.d.ts +2 -2
- package/es/ProTree/style/index.less +29 -26
- package/es/ProTree/utils.d.ts +6 -0
- package/es/ProTree/utils.js +11 -0
- package/es/ProTreeModal/components/CloseIcon.js +2 -4
- package/es/ProTreeModal/components/Trigger.d.ts +3 -0
- package/es/ProTreeModal/components/Trigger.js +79 -19
- package/es/ProTreeModal/index.js +38 -6
- package/es/ProTreeModal/propsType.d.ts +5 -2
- package/es/ProTreeModal/style/index.less +96 -92
- package/es/ProTreeSelect/index.js +6 -4
- package/es/ProTreeSelect/propsType.d.ts +2 -0
- package/es/ProTreeSelect/style/index.less +25 -22
- package/es/ProUpload/components/DragRender.js +7 -4
- package/es/ProUpload/components/ImageRender.js +8 -5
- package/es/ProUpload/index.js +11 -7
- package/es/ProUpload/style/index.less +13 -4
- package/es/ProViewer/index.js +3 -1
- package/es/ProViewer/style/index.less +6 -3
- package/es/locale/en_US.d.ts +4 -0
- package/es/locale/en_US.js +5 -1
- package/es/locale/index.js +2 -2
- package/es/locale/zh_CN.d.ts +4 -0
- package/es/locale/zh_CN.js +6 -2
- package/es/old/ProCertValidity/index.js +16 -16
- package/es/old/ProCertValidity/propsType.d.ts +4 -4
- package/es/old/ProEditableTable/utils.d.ts +5 -5
- package/es/old/ProEditableTable/utils.js +5 -5
- package/es/style/core/compatible.less +6 -6
- package/es/style/theme/antd.less +272 -253
- package/lib/ProAction/index.less +3 -0
- package/lib/ProDownload/index.js +9 -6
- package/lib/ProDownload/style/index.less +5 -2
- package/lib/ProDrawerForm/index.js +0 -14
- package/lib/ProDrawerForm/style/index.less +76 -73
- package/lib/ProEditLabel/style/index.less +12 -9
- package/lib/ProEditTable/components/RenderField/index.js +6 -4
- package/lib/ProEditTable/index.js +35 -20
- package/lib/ProEditTable/style/index.less +57 -47
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +3 -3
- package/lib/ProEnum/index.js +6 -17
- package/lib/ProEnum/propsType.d.ts +1 -0
- package/lib/ProEnum/style/index.less +3 -0
- package/lib/ProForm/components/base/DatePicker/index.d.ts +2 -2
- package/lib/ProForm/components/base/DatePicker/index.js +5 -8
- package/lib/ProForm/components/base/RangePicker/index.d.ts +3 -2
- package/lib/ProForm/components/base/RangePicker/index.js +4 -4
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/lib/ProForm/components/base/TextArea/index.less +4 -3
- package/lib/ProForm/components/base/TimePicker/index.js +3 -3
- package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/lib/ProForm/components/combination/Container/style/index.less +6 -3
- package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
- package/lib/ProForm/components/combination/Group/style/index.less +18 -15
- package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
- package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +23 -25
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +6 -6
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -4
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
- package/lib/ProForm/components/old/ProCertValidity/index.js +16 -16
- package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
- package/lib/ProForm/components/render/Render.js +14 -23
- package/lib/ProForm/components/render/RenderFields.js +9 -6
- package/lib/ProForm/style/index.less +46 -44
- package/lib/ProForm/utils/rulesCreator.js +2 -1
- package/lib/ProForm/utils/useRules.js +5 -4
- package/lib/ProIcon/style/index.less +4 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
- package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
- package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
- package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
- package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
- package/lib/ProLayout/components/ProHeader/index.js +4 -4
- package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
- package/lib/ProLayout/style/index.less +10 -7
- package/lib/ProSelect/index.less +3 -0
- package/lib/ProStep/index.js +1 -1
- package/lib/ProStep/style/index.less +3 -0
- package/lib/ProTable/index.js +14 -6
- package/lib/ProTable/style/index.less +76 -54
- package/lib/ProTable/utils.d.ts +1 -1
- package/lib/ProTable/utils.js +52 -33
- package/lib/ProTabs/style/index.less +25 -23
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
- package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.js +7 -2
- package/lib/ProThemeTools/propsType.d.ts +4 -0
- package/lib/ProThemeTools/style/index.less +6 -3
- package/lib/ProThemeTools/utils/index.d.ts +1 -1
- package/lib/ProThemeTools/utils/index.js +2 -1
- package/lib/ProTooltip/style/index.less +3 -0
- package/lib/ProTree/components/CloseIcon.js +2 -4
- package/lib/ProTree/components/ProTree.js +26 -10
- package/lib/ProTree/components/Tree.js +1 -1
- package/lib/ProTree/propsType.d.ts +2 -2
- package/lib/ProTree/style/index.less +29 -26
- package/lib/ProTree/utils.d.ts +6 -0
- package/lib/ProTree/utils.js +12 -0
- package/lib/ProTreeModal/components/CloseIcon.js +2 -4
- package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
- package/lib/ProTreeModal/components/Trigger.js +74 -18
- package/lib/ProTreeModal/index.js +38 -6
- package/lib/ProTreeModal/propsType.d.ts +5 -2
- package/lib/ProTreeModal/style/index.less +96 -92
- package/lib/ProTreeSelect/index.js +6 -4
- package/lib/ProTreeSelect/propsType.d.ts +2 -0
- package/lib/ProTreeSelect/style/index.less +25 -22
- package/lib/ProUpload/components/DragRender.js +7 -4
- package/lib/ProUpload/components/ImageRender.js +8 -5
- package/lib/ProUpload/index.js +11 -7
- package/lib/ProUpload/style/index.less +13 -4
- package/lib/ProViewer/index.js +4 -3
- package/lib/ProViewer/style/index.less +6 -3
- package/lib/locale/en_US.d.ts +4 -0
- package/lib/locale/en_US.js +5 -1
- package/lib/locale/index.js +2 -2
- package/lib/locale/zh_CN.d.ts +4 -0
- package/lib/locale/zh_CN.js +6 -2
- package/lib/old/ProCertValidity/index.js +16 -16
- package/lib/old/ProCertValidity/propsType.d.ts +4 -4
- package/lib/old/ProEditableTable/utils.d.ts +5 -5
- package/lib/old/ProEditableTable/utils.js +5 -5
- package/lib/style/core/compatible.less +6 -6
- package/lib/style/theme/antd.less +272 -253
- package/package.json +3 -2
- 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
|
+
|
package/dist/index.esm.css
CHANGED
|
@@ -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:
|
|
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:
|
|
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;
|
|
@@ -1629,6 +1629,12 @@
|
|
|
1629
1629
|
.pro-table .ant-table-tbody .ant-table-cell-fix-right {
|
|
1630
1630
|
background: unset !important;
|
|
1631
1631
|
}
|
|
1632
|
+
.pro-table .ant-table-body .ant-table-tbody .ant-table-row:nth-child(odd).new-cell {
|
|
1633
|
+
background: #d2fff4 !important;
|
|
1634
|
+
}
|
|
1635
|
+
.pro-table .ant-table-body .ant-table-tbody .ant-table-row:nth-child(odd).new-cell td {
|
|
1636
|
+
background: #d2fff4 !important;
|
|
1637
|
+
}
|
|
1632
1638
|
.pro-table .ant-table-body .ant-table-cell .varied-cell {
|
|
1633
1639
|
margin-left: -8px;
|
|
1634
1640
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
@@ -1733,9 +1739,18 @@
|
|
|
1733
1739
|
.pro-table .column-config .right-actions .custom-column-btn {
|
|
1734
1740
|
margin-left: var(--zaui-space-size-sm, 8px);
|
|
1735
1741
|
}
|
|
1736
|
-
.pro-table .
|
|
1742
|
+
.pro-table .pro-table-empty {
|
|
1743
|
+
margin: var(--zaui-space-size-lg, 32px) 0;
|
|
1744
|
+
color: rgba(0, 0, 0, 0.25);
|
|
1745
|
+
font-size: var(--zaui-font-size-md, 14px);
|
|
1746
|
+
text-align: center;
|
|
1747
|
+
}
|
|
1748
|
+
.pro-table .pro-table-empty .empty-image {
|
|
1737
1749
|
height: 80px;
|
|
1738
1750
|
}
|
|
1751
|
+
.pro-table .pro-table-empty .empty-image img {
|
|
1752
|
+
height: 100%;
|
|
1753
|
+
}
|
|
1739
1754
|
.pro-table .ant-table .ant-table-thead > tr > th {
|
|
1740
1755
|
border-bottom: 0;
|
|
1741
1756
|
white-space: nowrap;
|
|
@@ -1937,10 +1952,6 @@ div.pro-textarea-view::after {
|
|
|
1937
1952
|
display: flex;
|
|
1938
1953
|
padding-bottom: 0;
|
|
1939
1954
|
}
|
|
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
1955
|
.pro-form-list .single-delete {
|
|
1945
1956
|
width: 14px !important;
|
|
1946
1957
|
height: 14px !important;
|
|
@@ -1978,6 +1989,7 @@ div.pro-textarea-view::after {
|
|
|
1978
1989
|
}
|
|
1979
1990
|
.pro-form-list-line {
|
|
1980
1991
|
padding: var(--zaui-height-size-md, 16px);
|
|
1992
|
+
padding-bottom: 0;
|
|
1981
1993
|
}
|
|
1982
1994
|
.pro-form-list-line:hover {
|
|
1983
1995
|
background: rgba(0, 0, 0, 0.018);
|
|
@@ -2150,6 +2162,23 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
2150
2162
|
.pro-tree-modal .ant-input-group-wrapper:hover .ant-input-group-addon {
|
|
2151
2163
|
border-color: var(--zaui-brand-hover, #3387ff);
|
|
2152
2164
|
}
|
|
2165
|
+
.pro-modal-select .ant-input-group-wrapper:hover .ant-input-disabled,
|
|
2166
|
+
.pro-tree-modal .ant-input-group-wrapper:hover .ant-input-disabled {
|
|
2167
|
+
border-color: #d9d9d9;
|
|
2168
|
+
}
|
|
2169
|
+
.pro-modal-select .ant-input-group-wrapper:hover .ant-input-disabled + span,
|
|
2170
|
+
.pro-tree-modal .ant-input-group-wrapper:hover .ant-input-disabled + span {
|
|
2171
|
+
border-color: #d9d9d9;
|
|
2172
|
+
}
|
|
2173
|
+
.pro-modal-select .ant-input-group-wrapper:hover .ant-input-disabled + span .close-icon,
|
|
2174
|
+
.pro-tree-modal .ant-input-group-wrapper:hover .ant-input-disabled + span .close-icon {
|
|
2175
|
+
display: none;
|
|
2176
|
+
}
|
|
2177
|
+
.pro-modal-select .pro-tree-modal-input-appoint .ant-input,
|
|
2178
|
+
.pro-tree-modal .pro-tree-modal-input-appoint .ant-input {
|
|
2179
|
+
border-top-left-radius: 0;
|
|
2180
|
+
border-bottom-left-radius: 0;
|
|
2181
|
+
}
|
|
2153
2182
|
.pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input,
|
|
2154
2183
|
.pro-tree-modal .ant-input-group-wrapper-status-error:hover .ant-input,
|
|
2155
2184
|
.pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input-group-addon,
|
|
@@ -3004,6 +3033,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3004
3033
|
-ms-flex-pack: center;
|
|
3005
3034
|
justify-content: center;
|
|
3006
3035
|
}
|
|
3036
|
+
.proupload-modal-preview .ant-modal {
|
|
3037
|
+
width: 600px;
|
|
3038
|
+
}
|
|
3007
3039
|
.pro-tree-select .ant-select-selector .check-mark-icon {
|
|
3008
3040
|
display: none;
|
|
3009
3041
|
}
|
|
@@ -3298,6 +3330,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3298
3330
|
}
|
|
3299
3331
|
.pro-tree-modal-checkbox-close {
|
|
3300
3332
|
padding-left: var(--zaui-space-size-sm, 8px);
|
|
3333
|
+
color: #c5c7cd;
|
|
3301
3334
|
font-size: var(--zaui-font-size-sm, 12px);
|
|
3302
3335
|
}
|
|
3303
3336
|
.pro-tree-modal-tree-node {
|
|
@@ -3799,7 +3832,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3799
3832
|
fill: var(--zaui-aide-text, #909090);
|
|
3800
3833
|
}
|
|
3801
3834
|
.pro-drawer .pro-drawer-close .close-icon:hover {
|
|
3802
|
-
fill: var(--zaui-brand-active, #
|
|
3835
|
+
fill: var(--zaui-brand-active, #005ad9);
|
|
3803
3836
|
}
|
|
3804
3837
|
.pro-drawer .pro-drawer-close .close-icon > div {
|
|
3805
3838
|
height: 20px;
|
|
@@ -3850,7 +3883,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3850
3883
|
left: 0;
|
|
3851
3884
|
z-index: 101;
|
|
3852
3885
|
width: 100%;
|
|
3853
|
-
padding: var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
|
|
3886
|
+
padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) var(--zaui-space-size-lg, 32px);
|
|
3854
3887
|
background-color: var(--zaui-global-bg, #fff);
|
|
3855
3888
|
-webkit-box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3856
3889
|
box-shadow: 8px 2px 8px 0 var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
@@ -3912,10 +3945,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3912
3945
|
z-index: 1;
|
|
3913
3946
|
}
|
|
3914
3947
|
.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
3948
|
position: relative;
|
|
3918
3949
|
z-index: 1;
|
|
3950
|
+
-webkit-box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3951
|
+
box-shadow: -12px 14px 14px -18px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
3919
3952
|
}
|
|
3920
3953
|
.pro-modal-footer-shadow .ant-modal-footer {
|
|
3921
3954
|
position: relative;
|
|
@@ -4039,6 +4072,10 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4039
4072
|
line-height: 1;
|
|
4040
4073
|
content: "*";
|
|
4041
4074
|
}
|
|
4075
|
+
.pro-edit-table .ant-table-scroll-horizontal .ant-table-cell-fix-right-first::after {
|
|
4076
|
+
-webkit-box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
4077
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
|
|
4078
|
+
}
|
|
4042
4079
|
.pro-edit-table .ant-table-content > table .ant-table-summary {
|
|
4043
4080
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
4044
4081
|
color: var(--zaui-text, #343434);
|
|
@@ -4048,10 +4085,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4048
4085
|
.pro-edit-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
|
|
4049
4086
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
4050
4087
|
}
|
|
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
4088
|
.pro-edit-table .ant-table-content > table th.ant-table-selection-column {
|
|
4056
4089
|
width: 48px;
|
|
4057
4090
|
}
|
|
@@ -4120,7 +4153,12 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4120
4153
|
.pro-edit-table .ant-table-tbody > .ant-table-placeholder > td {
|
|
4121
4154
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
4122
4155
|
}
|
|
4123
|
-
.pro-edit-table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row
|
|
4156
|
+
.pro-edit-table .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td,
|
|
4157
|
+
.pro-edit-table .ant-table-tbody .ant-table-row-hover,
|
|
4158
|
+
.pro-edit-table .ant-table-tbody .ant-table-row-hover > td {
|
|
4159
|
+
background: #FAFAFA;
|
|
4160
|
+
}
|
|
4161
|
+
.pro-edit-table .ant-table-tbody > tr:hover:not(.ant-table-placeholder) > td,
|
|
4124
4162
|
.pro-edit-table .ant-table-tbody .ant-table-row-hover,
|
|
4125
4163
|
.pro-edit-table .ant-table-tbody .ant-table-row-hover > td {
|
|
4126
4164
|
background: #FAFAFA;
|
|
@@ -4915,11 +4953,11 @@ input[type='button'] {
|
|
|
4915
4953
|
-webkit-flex: 0 0 var(--zaui-form-label-width, 130px);
|
|
4916
4954
|
-ms-flex: 0 0 var(--zaui-form-label-width, 130px);
|
|
4917
4955
|
flex: 0 0 var(--zaui-form-label-width, 130px);
|
|
4956
|
+
padding-right: calc(var(--zaui-space-size-sm, 8px) * var(--zaui-size, 1));
|
|
4918
4957
|
overflow: initial;
|
|
4919
4958
|
line-height: 1;
|
|
4920
|
-
text-align: var(--zaui-form-align, left);
|
|
4921
4959
|
white-space: pre-wrap;
|
|
4922
|
-
|
|
4960
|
+
text-align: var(--zaui-form-align, left);
|
|
4923
4961
|
}
|
|
4924
4962
|
.ant-form .ant-form-item .ant-form-item-label .ant-form-item-required::after,
|
|
4925
4963
|
.ant-drawer .ant-form-item .ant-form-item-label .ant-form-item-required::after,
|
|
@@ -4934,8 +4972,8 @@ input[type='button'] {
|
|
|
4934
4972
|
.ant-form .ant-form-item .ant-form-item-label > label::after,
|
|
4935
4973
|
.ant-drawer .ant-form-item .ant-form-item-label > label::after,
|
|
4936
4974
|
.ant-modal .ant-form-item .ant-form-item-label > label::after {
|
|
4937
|
-
margin: 0;
|
|
4938
4975
|
display: none;
|
|
4976
|
+
margin: 0;
|
|
4939
4977
|
}
|
|
4940
4978
|
.ant-form .ant-form-item .ant-form-item-label .ant-form-item-required::before,
|
|
4941
4979
|
.ant-drawer .ant-form-item .ant-form-item-label .ant-form-item-required::before,
|
|
@@ -5005,6 +5043,9 @@ input[type='button'] {
|
|
|
5005
5043
|
font-size: calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px));
|
|
5006
5044
|
color: var(--zaui-text, #464646);
|
|
5007
5045
|
}
|
|
5046
|
+
.ant-table .ant-empty-normal {
|
|
5047
|
+
margin: calc(var(--zaui-space-size-lg, 32px) * var(--zaui-size, 1)) 0;
|
|
5048
|
+
}
|
|
5008
5049
|
.ant-table.pro-table-no-stripe .ant-table-tbody .ant-table-row {
|
|
5009
5050
|
background: #fff !important;
|
|
5010
5051
|
}
|
|
@@ -5068,11 +5109,22 @@ input[type='button'] {
|
|
|
5068
5109
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) td {
|
|
5069
5110
|
background: var(--zaui-table-strip-bg, #fafafa);
|
|
5070
5111
|
}
|
|
5112
|
+
.ant-table table .ant-table-thead > tr > th,
|
|
5113
|
+
.ant-table table .ant-table-tbody > tr > td,
|
|
5114
|
+
.ant-table table .ant-table tfoot > tr > th,
|
|
5115
|
+
.ant-table table .ant-table tfoot > tr > td {
|
|
5116
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
5117
|
+
}
|
|
5118
|
+
.ant-table table .ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table,
|
|
5119
|
+
.ant-table table .ant-table-tbody > tr > td > .ant-table-expanded-row-fixed > .ant-table-wrapper:only-child .ant-table {
|
|
5120
|
+
margin-top: calc(var(--zaui-size) * -16px);
|
|
5121
|
+
margin-bottom: calc(var(--zaui-size) * -16px);
|
|
5122
|
+
}
|
|
5071
5123
|
.ant-table.ant-table-scroll-horizontal table .ant-table-thead > tr > th,
|
|
5072
5124
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody > tr > td,
|
|
5073
5125
|
.ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > th,
|
|
5074
5126
|
.ant-table.ant-table-scroll-horizontal table .ant-table tfoot > tr > td {
|
|
5075
|
-
padding: calc(
|
|
5127
|
+
padding: calc(4px + var(--zaui-size) * 8px);
|
|
5076
5128
|
}
|
|
5077
5129
|
.ant-table.ant-table-scroll-horizontal table .ant-table-tbody .ant-table-row:nth-child(even) {
|
|
5078
5130
|
background-color: var(--zaui-table-strip-bg, #fafafa);
|
|
@@ -5111,19 +5163,19 @@ input[type='button'] {
|
|
|
5111
5163
|
background-color: var(--zaui-table-strip-bg, #fafafa) !important;
|
|
5112
5164
|
}
|
|
5113
5165
|
.ant-table .ant-table-cell .ant-btn-link {
|
|
5114
|
-
padding: 0;
|
|
5115
5166
|
height: auto;
|
|
5167
|
+
padding: 0;
|
|
5116
5168
|
-webkit-user-select: text;
|
|
5117
5169
|
-moz-user-select: text;
|
|
5118
5170
|
-ms-user-select: text;
|
|
5119
5171
|
user-select: text;
|
|
5120
5172
|
}
|
|
5121
5173
|
.ant-table .ant-table-cell a {
|
|
5174
|
+
color: var(--zaui-brand, #006aff);
|
|
5122
5175
|
-webkit-user-select: text;
|
|
5123
5176
|
-moz-user-select: text;
|
|
5124
5177
|
-ms-user-select: text;
|
|
5125
5178
|
user-select: text;
|
|
5126
|
-
color: var(--zaui-brand, #006aFF);
|
|
5127
5179
|
}
|
|
5128
5180
|
.ant-table.ant-table-fixed-header .ant-table-tbody .ant-table-row:nth-child(even) td {
|
|
5129
5181
|
background: #ffffff !important;
|
|
@@ -5139,13 +5191,13 @@ input[type='button'] {
|
|
|
5139
5191
|
color: var(--zaui-text, #464646);
|
|
5140
5192
|
}
|
|
5141
5193
|
.ant-tabs .ant-tabs-nav-list.ant-tabs-card .ant-tabs-tab {
|
|
5142
|
-
padding: 8px var(--zaui-space-size-md, 16px);
|
|
5143
5194
|
margin-right: 10px;
|
|
5195
|
+
padding: 8px var(--zaui-space-size-md, 16px);
|
|
5144
5196
|
}
|
|
5145
5197
|
.ant-tabs .ant-tabs-nav-list .ant-tabs-tab {
|
|
5146
5198
|
font-size: calc(var(--zaui-font-size, 14px) + var(--zaui-base-font-size, 0px));
|
|
5147
|
-
padding: 12px var(--zaui-space-size-md, 16px);
|
|
5148
5199
|
margin-left: 0;
|
|
5200
|
+
padding: 12px var(--zaui-space-size-md, 16px);
|
|
5149
5201
|
}
|
|
5150
5202
|
.ant-tabs .ant-tabs-nav {
|
|
5151
5203
|
margin-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1));
|
|
@@ -5154,8 +5206,8 @@ input[type='button'] {
|
|
|
5154
5206
|
font-size: var(--zaui-font-size-lg, 16px);
|
|
5155
5207
|
}
|
|
5156
5208
|
.ant-tabs.ant-tabs-card .ant-tabs-tab {
|
|
5157
|
-
padding: 8px calc(var(--zaui-space-size-md, 16px)*var(--zaui-size, 1)) !important;
|
|
5158
5209
|
margin-right: 10px !important;
|
|
5210
|
+
padding: 8px calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
|
|
5159
5211
|
}
|
|
5160
5212
|
.ant-tabs.ant-tabs-card .ant-tabs-nav .ant-tabs-tab-btn {
|
|
5161
5213
|
font-size: var(--zaui-font-size, 14px);
|
|
@@ -5185,7 +5237,7 @@ input[type='button'] {
|
|
|
5185
5237
|
.ant-btn.ant-btn-link[disabled]:hover,
|
|
5186
5238
|
.ant-btn.ant-btn-link[disabled]:focus,
|
|
5187
5239
|
.ant-btn.ant-btn-link[disabled]:active {
|
|
5188
|
-
color: #
|
|
5240
|
+
color: #bcbcbc;
|
|
5189
5241
|
text-shadow: none;
|
|
5190
5242
|
background: none;
|
|
5191
5243
|
border-color: none;
|
|
@@ -5388,10 +5440,10 @@ input[type='button'] {
|
|
|
5388
5440
|
position: absolute;
|
|
5389
5441
|
right: 16px;
|
|
5390
5442
|
bottom: 1px;
|
|
5391
|
-
margin-bottom: 0;
|
|
5392
|
-
background: #fff;
|
|
5393
5443
|
width: calc(100% - 18px);
|
|
5444
|
+
margin-bottom: 0;
|
|
5394
5445
|
text-align: right;
|
|
5446
|
+
background: #fff;
|
|
5395
5447
|
}
|
|
5396
5448
|
.ant-space.ant-space-vertical {
|
|
5397
5449
|
display: -webkit-box;
|
package/es/ProAction/index.less
CHANGED
package/es/ProDownload/index.js
CHANGED
|
@@ -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", "
|
|
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
|
|
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
|
|
122
|
+
return _ref2.apply(this, arguments);
|
|
120
123
|
};
|
|
121
124
|
}();
|
|
122
125
|
var cls = classNames(className, {
|
|
@@ -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,
|
|
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,
|