@zat-design/sisyphus-react 3.13.20-beta.5 → 3.13.20-beta.7
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/ProTabs/index.js +8 -0
- package/es/ProTabs/style/index.less +10 -4
- package/lib/ProTabs/index.js +8 -0
- package/lib/ProTabs/style/index.less +10 -4
- package/package.json +1 -1
package/es/ProTabs/index.js
CHANGED
@@ -95,6 +95,14 @@ var ProTabs = (props, ref) => {
|
|
95
95
|
}
|
96
96
|
fetchFunction.run(params);
|
97
97
|
}, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options]);
|
98
|
+
|
99
|
+
// dataSource变化时,更新selectList
|
100
|
+
useDeepCompareEffect(() => {
|
101
|
+
if (!(dataSource !== null && dataSource !== void 0 && dataSource.length)) {
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
setSelectList(dataSource);
|
105
|
+
}, [dataSource]);
|
98
106
|
useImperativeHandle(ref, () => ({
|
99
107
|
useRequestRef: fetchFunction
|
100
108
|
}));
|
@@ -13,19 +13,25 @@
|
|
13
13
|
}
|
14
14
|
}
|
15
15
|
}
|
16
|
+
.@{ant-prefix}-tabs-nav-list {
|
17
|
+
div[data-node-key='1'] {
|
18
|
+
margin-left: 0 !important;
|
19
|
+
}
|
20
|
+
}
|
16
21
|
.@{ant-prefix}-tabs-tab {
|
17
|
-
margin-
|
22
|
+
margin-left: 10px !important;
|
18
23
|
background: #ffffff !important;
|
19
24
|
border-radius: 8px !important;
|
20
25
|
&.@{ant-prefix}-tabs-tab-active {
|
21
26
|
background: var(--ant-primary-1) !important;
|
22
|
-
|
27
|
+
.pro-tabs-card {
|
28
|
+
border-color: var(--ant-primary-color) !important;
|
29
|
+
}
|
23
30
|
}
|
24
31
|
.pro-tabs-card {
|
25
32
|
width: 100%;
|
26
33
|
padding: 8px 12px !important;
|
27
|
-
border:
|
28
|
-
border: 1px solid #E7E7E7 !important;
|
34
|
+
border: 1px solid #e7e7e7 !important;
|
29
35
|
border-radius: 8px !important;
|
30
36
|
}
|
31
37
|
}
|
package/lib/ProTabs/index.js
CHANGED
@@ -103,6 +103,14 @@ var ProTabs = (props, ref) => {
|
|
103
103
|
}
|
104
104
|
fetchFunction.run(params);
|
105
105
|
}, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.options]);
|
106
|
+
|
107
|
+
// dataSource变化时,更新selectList
|
108
|
+
(0, _ahooks.useDeepCompareEffect)(() => {
|
109
|
+
if (!(dataSource !== null && dataSource !== void 0 && dataSource.length)) {
|
110
|
+
return;
|
111
|
+
}
|
112
|
+
setSelectList(dataSource);
|
113
|
+
}, [dataSource]);
|
106
114
|
(0, _react.useImperativeHandle)(ref, () => ({
|
107
115
|
useRequestRef: fetchFunction
|
108
116
|
}));
|
@@ -13,19 +13,25 @@
|
|
13
13
|
}
|
14
14
|
}
|
15
15
|
}
|
16
|
+
.@{ant-prefix}-tabs-nav-list {
|
17
|
+
div[data-node-key='1'] {
|
18
|
+
margin-left: 0 !important;
|
19
|
+
}
|
20
|
+
}
|
16
21
|
.@{ant-prefix}-tabs-tab {
|
17
|
-
margin-
|
22
|
+
margin-left: 10px !important;
|
18
23
|
background: #ffffff !important;
|
19
24
|
border-radius: 8px !important;
|
20
25
|
&.@{ant-prefix}-tabs-tab-active {
|
21
26
|
background: var(--ant-primary-1) !important;
|
22
|
-
|
27
|
+
.pro-tabs-card {
|
28
|
+
border-color: var(--ant-primary-color) !important;
|
29
|
+
}
|
23
30
|
}
|
24
31
|
.pro-tabs-card {
|
25
32
|
width: 100%;
|
26
33
|
padding: 8px 12px !important;
|
27
|
-
border:
|
28
|
-
border: 1px solid #E7E7E7 !important;
|
34
|
+
border: 1px solid #e7e7e7 !important;
|
29
35
|
border-radius: 8px !important;
|
30
36
|
}
|
31
37
|
}
|