@zat-design/sisyphus-react 3.4.13 → 3.5.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.
- package/LICENSE +201 -21
- package/dist/index.esm.css +60 -0
- package/dist/less.esm.css +60 -0
- package/es/ProEditTable/components/DndWrapper/index.js +1 -0
- package/es/ProEditTable/index.d.ts +1 -1
- package/es/ProEditTable/index.js +8 -3
- package/es/ProEditTable/propsType.d.ts +1 -0
- package/es/ProForm/components/combination/ProNumberRange/index.js +28 -7
- package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -2
- package/es/ProForm/utils/valueType.d.ts +0 -6
- package/es/ProForm/utils/valueType.js +30 -2
- package/es/ProLayout/index.js +6 -2
- package/es/ProLayout/propTypes.d.ts +4 -0
- package/es/ProSelect/index.js +52 -45
- package/es/ProSelect/index.less +6 -0
- package/es/ProTable/components/DndWrapper/index.d.ts +15 -0
- package/es/ProTable/components/DndWrapper/index.js +94 -0
- package/es/ProTable/components/index.d.ts +1 -0
- package/es/ProTable/components/index.js +2 -1
- package/es/ProTable/index.d.ts +3 -0
- package/es/ProTable/index.js +177 -74
- package/es/ProTable/propsType.d.ts +5 -1
- package/es/ProTable/style/index.less +90 -0
- package/es/ProTree/utils.d.ts +1 -1
- package/es/ProTree/utils.js +1 -1
- package/es/ProTreeModal/index.js +10 -4
- package/es/ProTreeModal/style/index.less +1 -0
- package/lib/ProEditTable/components/DndWrapper/index.js +1 -0
- package/lib/ProEditTable/index.d.ts +1 -1
- package/lib/ProEditTable/index.js +8 -3
- package/lib/ProEditTable/propsType.d.ts +1 -0
- package/lib/ProForm/components/combination/ProNumberRange/index.js +28 -7
- package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -2
- package/lib/ProForm/utils/valueType.d.ts +0 -6
- package/lib/ProForm/utils/valueType.js +30 -2
- package/lib/ProLayout/index.js +6 -2
- package/lib/ProLayout/propTypes.d.ts +4 -0
- package/lib/ProSelect/index.js +54 -45
- package/lib/ProSelect/index.less +6 -0
- package/lib/ProTable/components/DndWrapper/index.d.ts +15 -0
- package/lib/ProTable/components/DndWrapper/index.js +101 -0
- package/lib/ProTable/components/index.d.ts +1 -0
- package/lib/ProTable/components/index.js +15 -1
- package/lib/ProTable/index.d.ts +3 -0
- package/lib/ProTable/index.js +173 -70
- package/lib/ProTable/propsType.d.ts +5 -1
- package/lib/ProTable/style/index.less +90 -0
- package/lib/ProTree/utils.d.ts +1 -1
- package/lib/ProTree/utils.js +1 -1
- package/lib/ProTreeModal/index.js +10 -4
- package/lib/ProTreeModal/style/index.less +1 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024 open-dev
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/index.esm.css
CHANGED
|
@@ -1780,6 +1780,62 @@
|
|
|
1780
1780
|
.ant-tabs-dropdown-menu .pro-tabs-card .pro-tabs-card-right img {
|
|
1781
1781
|
width: 48px;
|
|
1782
1782
|
}
|
|
1783
|
+
.pro-table.pro-table-draggable-only .ant-table-tbody .anticon {
|
|
1784
|
+
margin-right: 0;
|
|
1785
|
+
}
|
|
1786
|
+
.pro-table .ant-table-content > table .ant-table-summary {
|
|
1787
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1788
|
+
color: var(--zaui-text, #343434);
|
|
1789
|
+
font-weight: 600;
|
|
1790
|
+
}
|
|
1791
|
+
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-left,
|
|
1792
|
+
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
|
|
1793
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1794
|
+
}
|
|
1795
|
+
.pro-table .ant-table-content > table th.ant-table-selection-column {
|
|
1796
|
+
width: 48px;
|
|
1797
|
+
}
|
|
1798
|
+
.pro-table .ant-table-content > table td .pro-form-view-container_nowrap {
|
|
1799
|
+
white-space: normal;
|
|
1800
|
+
}
|
|
1801
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
|
|
1802
|
+
position: static;
|
|
1803
|
+
top: 0;
|
|
1804
|
+
display: inline-block;
|
|
1805
|
+
text-indent: -8px;
|
|
1806
|
+
color: #ff5050;
|
|
1807
|
+
font-size: var(--zaui-font-size-md, 14px);
|
|
1808
|
+
line-height: 1;
|
|
1809
|
+
content: "*";
|
|
1810
|
+
}
|
|
1811
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-left .pro-edit-table-title::after {
|
|
1812
|
+
width: auto;
|
|
1813
|
+
position: static;
|
|
1814
|
+
top: 0;
|
|
1815
|
+
display: inline-block;
|
|
1816
|
+
margin-left: var(--zaui-space-size-xs, 4px);
|
|
1817
|
+
color: #ff5050;
|
|
1818
|
+
font-size: 14px;
|
|
1819
|
+
line-height: 1;
|
|
1820
|
+
content: "*";
|
|
1821
|
+
}
|
|
1822
|
+
.pro-table .drag-wrapper {
|
|
1823
|
+
display: -webkit-box;
|
|
1824
|
+
display: -webkit-flex;
|
|
1825
|
+
display: -ms-flexbox;
|
|
1826
|
+
display: flex;
|
|
1827
|
+
width: 20px;
|
|
1828
|
+
}
|
|
1829
|
+
.pro-table .drag-wrapper .anticon {
|
|
1830
|
+
cursor: pointer;
|
|
1831
|
+
margin-right: 12px;
|
|
1832
|
+
}
|
|
1833
|
+
.pro-table .drag-wrapper .anticon .drag-icon {
|
|
1834
|
+
margin-right: 0;
|
|
1835
|
+
}
|
|
1836
|
+
.pro-table .drag-wrapper.no-check .anticon {
|
|
1837
|
+
margin-right: 0;
|
|
1838
|
+
}
|
|
1783
1839
|
.pro-table.pro-table-bordered .ant-table .ant-table-thead > tr > th {
|
|
1784
1840
|
border-bottom: 1px solid #f0f0f0;
|
|
1785
1841
|
}
|
|
@@ -2082,6 +2138,9 @@
|
|
|
2082
2138
|
.ant-dropdown-placement-bottomLeft .ant-dropdown-menu-vertical.ant-dropdown-menu-light .ant-dropdown-menu-item-only-child:hover {
|
|
2083
2139
|
background: rgba(0, 106, 255, 0.08);
|
|
2084
2140
|
}
|
|
2141
|
+
.pro-edit-table-drag table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
|
2142
|
+
text-align: right;
|
|
2143
|
+
}
|
|
2085
2144
|
.pro-tooltip {
|
|
2086
2145
|
cursor: pointer;
|
|
2087
2146
|
}
|
|
@@ -3472,6 +3531,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3472
3531
|
}
|
|
3473
3532
|
.pro-tree-modal-box-header:first-child {
|
|
3474
3533
|
color: #616161;
|
|
3534
|
+
border-radius: 8px 0 0 8px;
|
|
3475
3535
|
}
|
|
3476
3536
|
.pro-tree-modal-box-header .ant-btn-link {
|
|
3477
3537
|
padding: 0;
|
package/dist/less.esm.css
CHANGED
|
@@ -1780,6 +1780,62 @@
|
|
|
1780
1780
|
.ant-tabs-dropdown-menu .pro-tabs-card .pro-tabs-card-right img {
|
|
1781
1781
|
width: 48px;
|
|
1782
1782
|
}
|
|
1783
|
+
.pro-table.pro-table-draggable-only .ant-table-tbody .anticon {
|
|
1784
|
+
margin-right: 0;
|
|
1785
|
+
}
|
|
1786
|
+
.pro-table .ant-table-content > table .ant-table-summary {
|
|
1787
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1788
|
+
color: var(--zaui-text, #343434);
|
|
1789
|
+
font-weight: 600;
|
|
1790
|
+
}
|
|
1791
|
+
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-left,
|
|
1792
|
+
.pro-table .ant-table-content > table .ant-table-summary .ant-table-cell-fix-right {
|
|
1793
|
+
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
1794
|
+
}
|
|
1795
|
+
.pro-table .ant-table-content > table th.ant-table-selection-column {
|
|
1796
|
+
width: 48px;
|
|
1797
|
+
}
|
|
1798
|
+
.pro-table .ant-table-content > table td .pro-form-view-container_nowrap {
|
|
1799
|
+
white-space: normal;
|
|
1800
|
+
}
|
|
1801
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
|
|
1802
|
+
position: static;
|
|
1803
|
+
top: 0;
|
|
1804
|
+
display: inline-block;
|
|
1805
|
+
text-indent: -8px;
|
|
1806
|
+
color: #ff5050;
|
|
1807
|
+
font-size: var(--zaui-font-size-md, 14px);
|
|
1808
|
+
line-height: 1;
|
|
1809
|
+
content: "*";
|
|
1810
|
+
}
|
|
1811
|
+
.pro-table .ant-table-content > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-left .pro-edit-table-title::after {
|
|
1812
|
+
width: auto;
|
|
1813
|
+
position: static;
|
|
1814
|
+
top: 0;
|
|
1815
|
+
display: inline-block;
|
|
1816
|
+
margin-left: var(--zaui-space-size-xs, 4px);
|
|
1817
|
+
color: #ff5050;
|
|
1818
|
+
font-size: 14px;
|
|
1819
|
+
line-height: 1;
|
|
1820
|
+
content: "*";
|
|
1821
|
+
}
|
|
1822
|
+
.pro-table .drag-wrapper {
|
|
1823
|
+
display: -webkit-box;
|
|
1824
|
+
display: -webkit-flex;
|
|
1825
|
+
display: -ms-flexbox;
|
|
1826
|
+
display: flex;
|
|
1827
|
+
width: 20px;
|
|
1828
|
+
}
|
|
1829
|
+
.pro-table .drag-wrapper .anticon {
|
|
1830
|
+
cursor: pointer;
|
|
1831
|
+
margin-right: 12px;
|
|
1832
|
+
}
|
|
1833
|
+
.pro-table .drag-wrapper .anticon .drag-icon {
|
|
1834
|
+
margin-right: 0;
|
|
1835
|
+
}
|
|
1836
|
+
.pro-table .drag-wrapper.no-check .anticon {
|
|
1837
|
+
margin-right: 0;
|
|
1838
|
+
}
|
|
1783
1839
|
.pro-table.pro-table-bordered .ant-table .ant-table-thead > tr > th {
|
|
1784
1840
|
border-bottom: 1px solid #f0f0f0;
|
|
1785
1841
|
}
|
|
@@ -2082,6 +2138,9 @@
|
|
|
2082
2138
|
.ant-dropdown-placement-bottomLeft .ant-dropdown-menu-vertical.ant-dropdown-menu-light .ant-dropdown-menu-item-only-child:hover {
|
|
2083
2139
|
background: rgba(0, 106, 255, 0.08);
|
|
2084
2140
|
}
|
|
2141
|
+
.pro-edit-table-drag table tr th.ant-table-selection-column.ant-table-cell-fix-left {
|
|
2142
|
+
text-align: right;
|
|
2143
|
+
}
|
|
2085
2144
|
.pro-tooltip {
|
|
2086
2145
|
cursor: pointer;
|
|
2087
2146
|
}
|
|
@@ -3472,6 +3531,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
3472
3531
|
}
|
|
3473
3532
|
.pro-tree-modal-box-header:first-child {
|
|
3474
3533
|
color: #616161;
|
|
3534
|
+
border-radius: 8px 0 0 8px;
|
|
3475
3535
|
}
|
|
3476
3536
|
.pro-tree-modal-box-header .ant-btn-link {
|
|
3477
3537
|
padding: 0;
|
|
@@ -36,6 +36,7 @@ export var Row = function Row(props) {
|
|
|
36
36
|
}, attributes), {}, {
|
|
37
37
|
children: React.Children.map(children, function (child) {
|
|
38
38
|
if (child.key === 'RC_TABLE_KEY') {
|
|
39
|
+
console.log('走这里么', child.key);
|
|
39
40
|
var _ref = (child === null || child === void 0 ? void 0 : child.props) || {},
|
|
40
41
|
render = _ref.render,
|
|
41
42
|
record = _ref.record,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProEditTableProps, ProEditTableRefProps } from './propsType';
|
|
3
|
-
declare const ForwardProEditTable: React.ForwardRefExoticComponent<ProEditTableProps<any> & React.RefAttributes<ProEditTableRefProps>>;
|
|
3
|
+
declare const ForwardProEditTable: React.ForwardRefExoticComponent<Omit<ProEditTableProps<any>, "ref"> & React.RefAttributes<ProEditTableRefProps>>;
|
|
4
4
|
export default ForwardProEditTable;
|
package/es/ProEditTable/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
9
9
|
import "antd/es/form/style";
|
|
10
10
|
import _Form from "antd/es/form";
|
|
11
11
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
12
|
-
var _excluded = ["value", "onChange", "className", "columns", "type", "mode", "stripe", "draggable", "disabled", "insertType", "emptyBtnText", "actionWidth", "actionProps", "toolbarProps", "rowSelection", "onlyOneLineMsg", "deletePoConfirmMsg", "mulDeletePoConfirmMsg", "requiredAlign", "summary", "max", "headerRender", "pagination", "originalValues", "originalDiffTip", "rowKey", "rowDisabled", "footerRender"];
|
|
12
|
+
var _excluded = ["value", "onChange", "className", "columns", "type", "mode", "stripe", "draggable", "disabled", "insertType", "emptyBtnText", "actionWidth", "actionProps", "toolbarProps", "rowSelection", "onlyOneLineMsg", "deletePoConfirmMsg", "mulDeletePoConfirmMsg", "requiredAlign", "summary", "max", "headerRender", "pagination", "originalValues", "originalDiffTip", "rowKey", "rowDisabled", "footerRender", "scroll"];
|
|
13
13
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
15
15
|
import { get, isArray } from 'lodash';
|
|
@@ -51,6 +51,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
51
51
|
rowKey = _ref.rowKey,
|
|
52
52
|
rowDisabled = _ref.rowDisabled,
|
|
53
53
|
footerRender = _ref.footerRender,
|
|
54
|
+
scroll = _ref.scroll,
|
|
54
55
|
resetProps = _objectWithoutProperties(_ref, _excluded);
|
|
55
56
|
// 上下文form
|
|
56
57
|
var contentForm = _Form.useFormInstance();
|
|
@@ -295,7 +296,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
295
296
|
}
|
|
296
297
|
}
|
|
297
298
|
}, [value]);
|
|
298
|
-
useImperativeHandle(ref, function () {
|
|
299
|
+
useImperativeHandle((resetProps === null || resetProps === void 0 ? void 0 : resetProps.ref) || ref, function () {
|
|
299
300
|
return {
|
|
300
301
|
getInternalState: function getInternalState() {
|
|
301
302
|
return state;
|
|
@@ -346,7 +347,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
346
347
|
pageSize: page.pageSize,
|
|
347
348
|
showSizeChanger: false,
|
|
348
349
|
showQuickJumper: true,
|
|
349
|
-
total: value.length,
|
|
350
|
+
total: value === null || value === void 0 ? void 0 : value.length,
|
|
350
351
|
showTotal: function showTotal(total) {
|
|
351
352
|
var _locale$ProEditTable;
|
|
352
353
|
if (!total) return;
|
|
@@ -357,6 +358,10 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
357
358
|
onChange: handlePageChange
|
|
358
359
|
}, pagination) : false,
|
|
359
360
|
rowKey: "rowKey",
|
|
361
|
+
scroll: {
|
|
362
|
+
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
363
|
+
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
364
|
+
},
|
|
360
365
|
summary: _summary
|
|
361
366
|
}))]
|
|
362
367
|
}), !isView && (value === null || value === void 0 ? void 0 : value.length) ? _jsx("div", {
|
|
@@ -17,6 +17,7 @@ var formatAmount = tools.formatAmount,
|
|
|
17
17
|
formatPercent = tools.formatPercent,
|
|
18
18
|
formatPerMill = tools.formatPerMill;
|
|
19
19
|
var ProNumberRange = function ProNumberRange(props) {
|
|
20
|
+
var _valueProps, _valueProps2, _valueProps3, _valueProps4;
|
|
20
21
|
var _props$value = props.value,
|
|
21
22
|
value = _props$value === void 0 ? [] : _props$value,
|
|
22
23
|
_props$onChange = props.onChange,
|
|
@@ -134,8 +135,26 @@ var ProNumberRange = function ProNumberRange(props) {
|
|
|
134
135
|
}
|
|
135
136
|
};
|
|
136
137
|
break;
|
|
138
|
+
// 百分比
|
|
139
|
+
case 'percentage':
|
|
140
|
+
valueProps = {
|
|
141
|
+
min: 0,
|
|
142
|
+
max: 100,
|
|
143
|
+
step: 1
|
|
144
|
+
};
|
|
145
|
+
break;
|
|
146
|
+
// 千分比
|
|
147
|
+
case 'permillage':
|
|
148
|
+
valueProps = {
|
|
149
|
+
min: 0,
|
|
150
|
+
max: 1000,
|
|
151
|
+
step: 1
|
|
152
|
+
};
|
|
153
|
+
break;
|
|
137
154
|
default:
|
|
138
|
-
valueProps = {
|
|
155
|
+
valueProps = {
|
|
156
|
+
max: 999999999999
|
|
157
|
+
};
|
|
139
158
|
}
|
|
140
159
|
}
|
|
141
160
|
/**
|
|
@@ -157,15 +176,16 @@ var ProNumberRange = function ProNumberRange(props) {
|
|
|
157
176
|
className: "range-left",
|
|
158
177
|
value: (value === null || value === void 0 ? void 0 : value[0]) || range[0],
|
|
159
178
|
placeholder: "".concat(locale.ProForm.inputPlaceholder),
|
|
160
|
-
min: min,
|
|
161
|
-
max: (value === null || value === void 0 ? void 0 : value[1]) || max || range[1],
|
|
162
179
|
precision: precision,
|
|
163
180
|
disabled: getDisabled(disabled, 0),
|
|
164
181
|
onChange: function onChange(e) {
|
|
165
182
|
firstHandleChange(e);
|
|
166
183
|
},
|
|
167
184
|
addonBefore: addonBefore
|
|
168
|
-
}, valueProps),
|
|
185
|
+
}, valueProps), {}, {
|
|
186
|
+
min: min || ((_valueProps = valueProps) === null || _valueProps === void 0 ? void 0 : _valueProps.min),
|
|
187
|
+
max: (value === null || value === void 0 ? void 0 : value[1]) || range[1] || max || ((_valueProps2 = valueProps) === null || _valueProps2 === void 0 ? void 0 : _valueProps2.max)
|
|
188
|
+
}, childProps === null || childProps === void 0 ? void 0 : childProps[0])), _jsx(_Input, {
|
|
169
189
|
className: classnames({
|
|
170
190
|
'range-split': true,
|
|
171
191
|
'range-split-disabled': !!disabled
|
|
@@ -176,15 +196,16 @@ var ProNumberRange = function ProNumberRange(props) {
|
|
|
176
196
|
className: "range-right",
|
|
177
197
|
value: (value === null || value === void 0 ? void 0 : value[1]) || range[1],
|
|
178
198
|
placeholder: "".concat(locale.ProForm.inputPlaceholder),
|
|
179
|
-
min: (value === null || value === void 0 ? void 0 : value[0]) || min || range[0],
|
|
180
|
-
max: max,
|
|
181
199
|
precision: precision,
|
|
182
200
|
disabled: getDisabled(disabled, 1),
|
|
183
201
|
onChange: function onChange(e) {
|
|
184
202
|
lastHandleChange(e);
|
|
185
203
|
},
|
|
186
204
|
addonAfter: addonAfter
|
|
187
|
-
}, valueProps),
|
|
205
|
+
}, valueProps), {}, {
|
|
206
|
+
max: max || ((_valueProps3 = valueProps) === null || _valueProps3 === void 0 ? void 0 : _valueProps3.max),
|
|
207
|
+
min: (value === null || value === void 0 ? void 0 : value[0]) || range[0] || min || ((_valueProps4 = valueProps) === null || _valueProps4 === void 0 ? void 0 : _valueProps4.min)
|
|
208
|
+
}, childProps === null || childProps === void 0 ? void 0 : childProps[1]))]
|
|
188
209
|
});
|
|
189
210
|
};
|
|
190
211
|
export default ProNumberRange;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProFormOtherProps } from '../../../propsType';
|
|
3
|
-
export type ValueTypeEnum = 'percentage' | 'permillage' | 'thousandth';
|
|
4
3
|
export interface ProNumberRangeProps {
|
|
5
4
|
/**
|
|
6
5
|
* @description 组件的值,[最小值,最大值]
|
|
@@ -46,7 +45,7 @@ export interface ProNumberRangeProps {
|
|
|
46
45
|
* @description 值类型,回显时区分金额与百分比
|
|
47
46
|
* @default '-'
|
|
48
47
|
*/
|
|
49
|
-
valueType?:
|
|
48
|
+
valueType?: 'percentage' | 'permillage' | 'thousandth';
|
|
50
49
|
/**
|
|
51
50
|
* @description 空值查看时默认展示内容
|
|
52
51
|
* @default '-'
|
|
@@ -34,9 +34,6 @@ declare const _default: {
|
|
|
34
34
|
type: any;
|
|
35
35
|
valueType: any;
|
|
36
36
|
}) => {
|
|
37
|
-
normalize?: undefined;
|
|
38
|
-
getValueProps?: undefined;
|
|
39
|
-
} | {
|
|
40
37
|
normalize: (value: any) => any;
|
|
41
38
|
getValueProps: (value: any) => {
|
|
42
39
|
value: any;
|
|
@@ -47,9 +44,6 @@ declare const _default: {
|
|
|
47
44
|
type: any;
|
|
48
45
|
valueType: any;
|
|
49
46
|
}) => {
|
|
50
|
-
normalize?: undefined;
|
|
51
|
-
getValueProps?: undefined;
|
|
52
|
-
} | {
|
|
53
47
|
normalize: (value: any) => any;
|
|
54
48
|
getValueProps: (value: any) => {
|
|
55
49
|
value: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import Big from 'big.js';
|
|
3
|
+
import { isEqual } from 'lodash';
|
|
3
4
|
import { transforms } from '@zat-design/utils';
|
|
4
5
|
var transformDate = transforms.transformDate,
|
|
5
6
|
transformSwitch = transforms.transformSwitch;
|
|
@@ -13,8 +14,35 @@ var transformRatio = function transformRatio(_ref) {
|
|
|
13
14
|
precision = _ref$precision === void 0 ? 2 : _ref$precision,
|
|
14
15
|
valueType = _ref.valueType;
|
|
15
16
|
if (type === 'ProNumberRange' && ['permillage', 'percentage'].includes(valueType)) {
|
|
16
|
-
|
|
17
|
-
return {
|
|
17
|
+
var ref = null;
|
|
18
|
+
return {
|
|
19
|
+
normalize: function normalize(value) {
|
|
20
|
+
if (!value || !value.some(function (item) {
|
|
21
|
+
return item;
|
|
22
|
+
})) {
|
|
23
|
+
return {};
|
|
24
|
+
}
|
|
25
|
+
return [(value[0] || value[0] === 0) && Number.isFinite(value[0] - 0) ? Big(value[0] - 0).div(Math.pow(10, precision)).toNumber() : null, (value[1] || value[1] === 0) && Number.isFinite(value[1] - 0) ? Big(value[1] - 0).div(Math.pow(10, precision)).toNumber() : null];
|
|
26
|
+
},
|
|
27
|
+
getValueProps: function getValueProps(value) {
|
|
28
|
+
if (!value || !value.some(function (item) {
|
|
29
|
+
return item;
|
|
30
|
+
})) {
|
|
31
|
+
return {
|
|
32
|
+
value: []
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
if (isEqual(ref, value)) {
|
|
36
|
+
return {
|
|
37
|
+
value: [(value[0] || value[0] === 0) && Number.isFinite(value[0] - 0) ? Big(value[0] - 0).times(Math.pow(10, precision)).toNumber() : null, (value[1] || value[1] === 0) && Number.isFinite(value[1] - 0) ? Big(value[1] - 0).times(Math.pow(10, precision)).toNumber() : null]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
ref = value;
|
|
41
|
+
return {
|
|
42
|
+
value: [(value[0] || value[0] === 0) && Number.isFinite(value[0] - 0) ? Big(value[0] - 0).times(Math.pow(10, precision)).toNumber() : null, (value[1] || value[1] === 0) && Number.isFinite(value[1] - 0) ? Big(value[1] - 0).times(Math.pow(10, precision)).toNumber() : null]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
18
46
|
}
|
|
19
47
|
return {
|
|
20
48
|
normalize: function normalize(value) {
|
package/es/ProLayout/index.js
CHANGED
|
@@ -25,7 +25,8 @@ var ProLayout = function ProLayout(props) {
|
|
|
25
25
|
headerNotice = props.headerNotice,
|
|
26
26
|
noticeIn = props.notice,
|
|
27
27
|
dataSource = props.dataSource,
|
|
28
|
-
theme = props.theme
|
|
28
|
+
theme = props.theme,
|
|
29
|
+
onCollapsedChange = props.onCollapsedChange;
|
|
29
30
|
var _useSetState = useSetState({
|
|
30
31
|
notice: headerNotice || noticeIn,
|
|
31
32
|
menus: [],
|
|
@@ -86,7 +87,10 @@ var ProLayout = function ProLayout(props) {
|
|
|
86
87
|
dataSource: menus,
|
|
87
88
|
notice: notice,
|
|
88
89
|
collapsed: collapsed,
|
|
89
|
-
onToggle:
|
|
90
|
+
onToggle: function onToggle() {
|
|
91
|
+
toggle();
|
|
92
|
+
onCollapsedChange && onCollapsedChange(!collapsed);
|
|
93
|
+
}
|
|
90
94
|
})), _jsx("div", {
|
|
91
95
|
className: "pro-layout-content",
|
|
92
96
|
style: _objectSpread(_objectSpread({}, contentStyle), {}, {
|
|
@@ -51,6 +51,10 @@ export interface ProLayoutProps {
|
|
|
51
51
|
contentStyle?: CSSProperties;
|
|
52
52
|
waterMarkProps?: ProWaterMarkProps;
|
|
53
53
|
theme?: themeEnum;
|
|
54
|
+
/**
|
|
55
|
+
* 折叠回调事件
|
|
56
|
+
*/
|
|
57
|
+
onCollapsedChange?: (collapsed: any) => void;
|
|
54
58
|
[key: string]: any;
|
|
55
59
|
}
|
|
56
60
|
export interface ProLayoutStates {
|