@zat-design/sisyphus-react 4.5.3 → 4.5.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProConfigProvider/index.js +5 -1
- package/es/ProEditTable/components/RenderField/index.js +29 -17
- package/es/ProEditTable/components/RenderField/tools.js +5 -13
- package/es/ProEditTable/utils/index.js +2 -3
- package/es/ProEditTable/utils/tools.js +19 -0
- package/es/ProEditTable/utils/useShouldUpdateForTable.js +4 -3
- package/es/ProEnum/hooks/useEnumRequest.js +7 -14
- package/es/ProEnum/index.js +12 -1
- package/es/ProEnum/utils/index.js +34 -0
- package/es/ProForm/hooks/useForm.js +24 -11
- package/es/ProTable/components/RenderTabs/index.js +35 -20
- package/es/ProTable/style/index.less +5 -0
- package/es/ProThemeTools/component/ProTools/index.js +15 -64
- package/es/ProThemeTools/component/ProTools/style/index.less +0 -67
- package/es/ProTree/components/ProTree.js +3 -1
- package/package.json +2 -2
|
@@ -35,73 +35,6 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.pro-theme-color {
|
|
39
|
-
display: flex;
|
|
40
|
-
|
|
41
|
-
li {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
width: 38px;
|
|
46
|
-
height: 38px;
|
|
47
|
-
margin-right: 34px;
|
|
48
|
-
color: #fff;
|
|
49
|
-
background: #fff;
|
|
50
|
-
border: 6px solid #fff;
|
|
51
|
-
border-radius: 50%;
|
|
52
|
-
|
|
53
|
-
span {
|
|
54
|
-
font-size: var(--zaui-font-size, 14px);
|
|
55
|
-
vertical-align: -7px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:nth-child(1) {
|
|
59
|
-
background: #006aff;
|
|
60
|
-
|
|
61
|
-
&.active,
|
|
62
|
-
&:hover {
|
|
63
|
-
border-color: #d6e7ff;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:nth-child(2) {
|
|
68
|
-
background: #00bc70;
|
|
69
|
-
|
|
70
|
-
&.active,
|
|
71
|
-
&:hover {
|
|
72
|
-
border-color: #e0f5e8;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&:nth-child(3) {
|
|
77
|
-
background: #ff8c16;
|
|
78
|
-
|
|
79
|
-
&.active,
|
|
80
|
-
&:hover {
|
|
81
|
-
border-color: #ffecdd;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:nth-child(4) {
|
|
86
|
-
background: #a00f20;
|
|
87
|
-
|
|
88
|
-
&.active,
|
|
89
|
-
&:hover {
|
|
90
|
-
border-color: #f2dbdb;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
&:nth-child(5) {
|
|
94
|
-
margin-right: 0;
|
|
95
|
-
background: #31af96;
|
|
96
|
-
|
|
97
|
-
&.active,
|
|
98
|
-
&:hover {
|
|
99
|
-
border-color: #f2dbdb;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
38
|
.anticon-question-circle {
|
|
106
39
|
color: var(--zaui-brand, #006aff);
|
|
107
40
|
}
|
|
@@ -111,7 +111,9 @@ const ProTree = props => {
|
|
|
111
111
|
...useRequest?.options
|
|
112
112
|
});
|
|
113
113
|
useDeepCompareEffect(() => {
|
|
114
|
-
|
|
114
|
+
// 显式传入数组(含空数组 [])时都同步到内部 state,
|
|
115
|
+
// 否则删除最后一个节点后 dataSource 变为 [] 时树数据不会被清空。
|
|
116
|
+
if (Array.isArray(dataSource)) {
|
|
115
117
|
const allKey = getAllKeys(dataSource, fieldNames);
|
|
116
118
|
setState({
|
|
117
119
|
treeData: dataSource,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.5-beta.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"es",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@typescript-eslint/parser": "^7.18.0",
|
|
141
141
|
"@umijs/fabric": "^2.8.1",
|
|
142
142
|
"@umijs/test": "^3.0.5",
|
|
143
|
-
"@zat-design/sisyphus-login": "4.0.
|
|
143
|
+
"@zat-design/sisyphus-login": "4.0.2",
|
|
144
144
|
"ahooks": "3.9.5",
|
|
145
145
|
"babel-plugin-import": "^1.13.8",
|
|
146
146
|
"babel-plugin-lodash": "^3.3.4",
|