@zat-design/sisyphus-react 4.6.3 → 4.6.4-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.
|
@@ -24,18 +24,6 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.pro-container {
|
|
27
|
-
.pro-collapse {
|
|
28
|
-
.pro-collapse-panel {
|
|
29
|
-
.@{ant-prefix}-collapse-header {
|
|
30
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
31
|
-
}
|
|
32
|
-
&.@{ant-prefix}-collapse-item-active {
|
|
33
|
-
.@{ant-prefix}-collapse-header {
|
|
34
|
-
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
27
|
.pro-collapse-content {
|
|
40
28
|
margin: 0;
|
|
41
29
|
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
@@ -88,6 +76,10 @@
|
|
|
88
76
|
}
|
|
89
77
|
|
|
90
78
|
&.pro-form-view {
|
|
79
|
+
.pro-container {
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
|
|
91
83
|
.pro-group {
|
|
92
84
|
.@{ant-prefix}-space-item,
|
|
93
85
|
.pro-form-view-container {
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&.pro-collapse-level2 {
|
|
78
|
+
border-radius: 0;
|
|
78
79
|
background: var(--zaui-base-bg, #ffffff);
|
|
79
80
|
.pro-collapse-panel {
|
|
80
81
|
margin-bottom: 0;
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
.pro-collapse-level2-collapse {
|
|
118
|
+
border-radius: 0;
|
|
117
119
|
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
118
120
|
&.@{ant-prefix}-collapse-item-active {
|
|
119
121
|
margin-bottom: 0;
|
package/es/ProLayout/index.js
CHANGED
|
@@ -146,19 +146,20 @@ const ProLayout = (props) => {
|
|
|
146
146
|
return {
|
|
147
147
|
...tabs,
|
|
148
148
|
onTabChange: (activeKey, activeTab, allTabs) => {
|
|
149
|
-
var _a2, _b, _c, _d, _e;
|
|
149
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
150
150
|
if (!allTabs || allTabs.length === 0) {
|
|
151
151
|
setState({ selectedPath: "##EMPTY##" });
|
|
152
|
+
(_a2 = tabs.onTabChange) == null ? void 0 : _a2.call(tabs, activeKey, activeTab, allTabs ?? []);
|
|
152
153
|
return;
|
|
153
154
|
}
|
|
154
|
-
const menuCodeSource = (
|
|
155
|
+
const menuCodeSource = (_b = activeTab == null ? void 0 : activeTab.menuCodeSource) == null ? void 0 : _b.trim();
|
|
155
156
|
const sourceMenu = menuCodeSource ? flattenMenuData(menuDataSource.menus).find((menu) => menu.code === menuCodeSource) : void 0;
|
|
156
157
|
const sourcePath = (sourceMenu == null ? void 0 : sourceMenu.redirectUrl) || (sourceMenu == null ? void 0 : sourceMenu.url) || (sourceMenu == null ? void 0 : sourceMenu.router);
|
|
157
|
-
const targetPath = sourcePath || (activeTab == null ? void 0 : activeTab.url) || ((
|
|
158
|
+
const targetPath = sourcePath || (activeTab == null ? void 0 : activeTab.url) || ((_c = activeTab == null ? void 0 : activeTab.menuItem) == null ? void 0 : _c.router) || ((_d = activeTab == null ? void 0 : activeTab.menuItem) == null ? void 0 : _d.redirectUrl) || ((_e = activeTab == null ? void 0 : activeTab.menuItem) == null ? void 0 : _e.url);
|
|
158
159
|
if (targetPath && targetPath !== selectedPath) {
|
|
159
160
|
setState({ selectedPath: targetPath });
|
|
160
161
|
}
|
|
161
|
-
(
|
|
162
|
+
(_f = tabs.onTabChange) == null ? void 0 : _f.call(tabs, activeKey, activeTab, allTabs);
|
|
162
163
|
}
|
|
163
164
|
};
|
|
164
165
|
}, [isTabsLayout, menuDataSource.menus, tabs, selectedPath]);
|