@zat-design/sisyphus-react 4.3.1 → 4.3.2

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.
@@ -310,26 +310,20 @@ const ProIcon = props => {
310
310
  children: /*#__PURE__*/_jsx(Tooltip, {
311
311
  title: iconText,
312
312
  children: buttonIcon && !willBeWrappedByButton ? /*#__PURE__*/_jsx(Button, {
313
+ className: "pro-icon-btn-inner",
313
314
  style: {
314
315
  width: size,
315
- height: size,
316
- border: 'none',
317
- borderRadius: 0,
318
- padding: 0,
319
- verticalAlign: 'baseline'
316
+ height: size
320
317
  },
321
318
  type: "text",
322
319
  icon: icon,
323
320
  ...buttonProps
324
321
  }) : /*#__PURE__*/_jsx(Space, {
325
322
  children: /*#__PURE__*/_jsx("span", {
323
+ className: "pro-icon-wrapper",
326
324
  style: {
327
325
  width: size,
328
- height: size,
329
- border: 'none',
330
- borderRadius: 0,
331
- padding: 0,
332
- verticalAlign: 'baseline'
326
+ height: size
333
327
  },
334
328
  children: icon
335
329
  })
@@ -12,6 +12,17 @@
12
12
  }
13
13
  }
14
14
 
15
+ // 内层图标容器(buttonIcon=false 时的 span,buttonIcon=true 时的 Button)
16
+ // 静态样式统一在此,动态 width/height 通过内联 style 传入
17
+ .pro-icon-wrapper,
18
+ .pro-icon-btn-inner {
19
+ display: inline-block;
20
+ border: none;
21
+ border-radius: 0;
22
+ padding: 0;
23
+ vertical-align: baseline;
24
+ }
25
+
15
26
  .pro-icon-btn {
16
27
  .anticon {
17
28
  display: inline-block;
@@ -20,8 +31,6 @@
20
31
  &.@{ant-prefix}-btn-icon-only {
21
32
  width: auto;
22
33
  height: auto;
23
- padding: 0;
24
34
  vertical-align: 0;
25
- border: 0;
26
35
  }
27
36
  }
@@ -165,8 +165,9 @@
165
165
  background: transparent !important;
166
166
 
167
167
  .@{ant-prefix}-menu-title-content div {
168
- .pro-layout-icon {
169
- color: var(--zaui-text, #343434);
168
+ .pro-layout-icon,
169
+ .anticon {
170
+ color: var(--zaui-text, #343434) !important;
170
171
  }
171
172
 
172
173
  h2 {
@@ -365,7 +365,7 @@
365
365
  .pro-layout-content {
366
366
  margin: 0 !important;
367
367
  background: #fff;
368
- border-top: none;
368
+ border: none;
369
369
  }
370
370
  }
371
371
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "es",