@zat-design/sisyphus-react 3.13.1-beta.1 → 3.13.1-beta.3
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/es/ProIcon/index.js
CHANGED
@@ -135,6 +135,9 @@ var ProIcon = function ProIcon(props) {
|
|
135
135
|
}, rotateStyle), style)
|
136
136
|
};
|
137
137
|
var icon = !src ? _jsx("svg", _objectSpread(_objectSpread({}, svgProps), {}, {
|
138
|
+
style: _objectSpread({
|
139
|
+
color: color
|
140
|
+
}, svgProps === null || svgProps === void 0 ? void 0 : svgProps.style),
|
138
141
|
onClick: onClick,
|
139
142
|
"aria-hidden": "true",
|
140
143
|
children: _jsx("use", {
|
@@ -151,13 +154,13 @@ var ProIcon = function ProIcon(props) {
|
|
151
154
|
actionMap: actionMap,
|
152
155
|
primaryColor: isQiankun ? qiankunPrimaryColor : primaryColor
|
153
156
|
});
|
157
|
+
if (color) {
|
158
|
+
svg.setAttribute('fill', color);
|
159
|
+
}
|
154
160
|
}
|
155
161
|
}));
|
156
162
|
var RenderIcon = _jsx("span", _objectSpread(_objectSpread({
|
157
|
-
className: "anticon"
|
158
|
-
style: {
|
159
|
-
color: color
|
160
|
-
}
|
163
|
+
className: "anticon"
|
161
164
|
}, reset), {}, {
|
162
165
|
children: _jsx(_Tooltip, {
|
163
166
|
title: iconText,
|
@@ -139,6 +139,8 @@ var ProCollapse = function ProCollapse(props) {
|
|
139
139
|
var rect = proCollapseNoTitles[0].getBoundingClientRect();
|
140
140
|
if ((rect === null || rect === void 0 ? void 0 : rect.height) < window.innerHeight - rect.top) {
|
141
141
|
proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + 16, "px)");
|
142
|
+
} else {
|
143
|
+
proCollapseNoTitles[0].style.minHeight = 'auto';
|
142
144
|
}
|
143
145
|
if (proFooterNode) {
|
144
146
|
proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + proFooterNode.offsetHeight + 16, "px)");
|
package/lib/ProIcon/index.js
CHANGED
@@ -137,6 +137,9 @@ var ProIcon = function ProIcon(props) {
|
|
137
137
|
}, rotateStyle), style)
|
138
138
|
};
|
139
139
|
var icon = !src ? (0, _jsxRuntime.jsx)("svg", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, svgProps), {}, {
|
140
|
+
style: (0, _objectSpread2.default)({
|
141
|
+
color: color
|
142
|
+
}, svgProps === null || svgProps === void 0 ? void 0 : svgProps.style),
|
140
143
|
onClick: onClick,
|
141
144
|
"aria-hidden": "true",
|
142
145
|
children: (0, _jsxRuntime.jsx)("use", {
|
@@ -153,13 +156,13 @@ var ProIcon = function ProIcon(props) {
|
|
153
156
|
actionMap: actionMap,
|
154
157
|
primaryColor: isQiankun ? qiankunPrimaryColor : primaryColor
|
155
158
|
});
|
159
|
+
if (color) {
|
160
|
+
svg.setAttribute('fill', color);
|
161
|
+
}
|
156
162
|
}
|
157
163
|
}));
|
158
164
|
var RenderIcon = (0, _jsxRuntime.jsx)("span", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
159
|
-
className: "anticon"
|
160
|
-
style: {
|
161
|
-
color: color
|
162
|
-
}
|
165
|
+
className: "anticon"
|
163
166
|
}, reset), {}, {
|
164
167
|
children: (0, _jsxRuntime.jsx)(_antd.Tooltip, {
|
165
168
|
title: iconText,
|
@@ -141,6 +141,8 @@ var ProCollapse = function ProCollapse(props) {
|
|
141
141
|
var rect = proCollapseNoTitles[0].getBoundingClientRect();
|
142
142
|
if ((rect === null || rect === void 0 ? void 0 : rect.height) < window.innerHeight - rect.top) {
|
143
143
|
proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + 16, "px)");
|
144
|
+
} else {
|
145
|
+
proCollapseNoTitles[0].style.minHeight = 'auto';
|
144
146
|
}
|
145
147
|
if (proFooterNode) {
|
146
148
|
proCollapseNoTitles[0].style.minHeight = "calc(100vh - ".concat(rect.top + proFooterNode.offsetHeight + 16, "px)");
|