@zjpcy/simple-design 1.8.27 → 1.8.29

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.
@@ -1 +1 @@
1
- "use strict";var e=require("tslib"),t=require("react/jsx-runtime"),i=function(i){var r=i.children,o=i.layout,n=void 0===o?"horizontal":o,a=i.direction,l=i.justify,s=void 0===l?"flex-start":l,c=i.align,u=void 0===c?"stretch":c,d=i.wrap,f=void 0===d?"nowrap":d,p=i.gap,v=i.style,x=void 0===v?{}:v,m=a||("column"===n?"column":"row");return t.jsx("div",{className:"flex",style:e.__assign({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:s,alignItems:u,flexWrap:f,flexDirection:m},x),children:r})};module.exports=i;
1
+ "use strict";var i=require("tslib"),t=require("react/jsx-runtime"),e=function(e){var r=e.children,n=e.layout,o=void 0===n?"horizontal":n,a=e.direction,l=e.justify,s=void 0===l?"flex-start":l,c=e.align,u=void 0===c?"stretch":c,d=e.wrap,m=void 0===d?"nowrap":d,x=e.gap,f=e.style,p=void 0===f?{}:f,v=a||("column"===o?"column":"row");return t.jsx("div",{className:"flex",style:i.__assign({minWidth:0,maxWidth:"100%",gap:"number"==typeof x?"".concat(x,"px"):x,justifyContent:s,alignItems:u,flexWrap:m,flexDirection:v},p),children:r})};module.exports=e;
@@ -4132,6 +4132,11 @@ html, body {
4132
4132
  .flex {
4133
4133
  display: flex;
4134
4134
  box-sizing: border-box;
4135
+ /* 确保Flex容器在父元素(如Table单元格)中能够正确收缩 */
4136
+ /* min-width: 0 允许flex容器在table-layout: fixed的表格中正确收缩 */
4137
+ min-width: 0;
4138
+ /* max-width: 100% 确保不会超出父容器宽度 */
4139
+ max-width: 100%;
4135
4140
  }
4136
4141
 
4137
4142
  .flex > * {
@@ -8418,6 +8423,8 @@ html, body {
8418
8423
  hyphens: auto;
8419
8424
  transition: background-color var(--zjpcy-transition-duration, 0.2s) var(--zjpcy-transition-timing-function, ease-in-out);
8420
8425
  color: var(--zjpcy-text-color-secondary, rgba(0, 0, 0, 0.65));
8426
+ /* 防止单元格内容溢出到相邻列 */
8427
+ overflow: hidden;
8421
8428
  }
8422
8429
 
8423
8430
  /* 表格行悬停效果 */
@@ -15140,6 +15147,8 @@ html, body {
15140
15147
  transition: all 0.2s ease;
15141
15148
  background-color: var(--tag-bg-color, #f5f5f5);
15142
15149
  color: var(--tag-text-color, #333);
15150
+ flex-shrink: 0;
15151
+ flex-wrap: wrap;
15143
15152
  }
15144
15153
 
15145
15154
  /* 尺寸样式 */
@@ -1 +1 @@
1
- import{__assign as t}from"tslib";import{jsx as o}from"react/jsx-runtime";var r=function(r){var i=r.children,e=r.layout,a=void 0===e?"horizontal":e,n=r.direction,l=r.justify,c=void 0===l?"flex-start":l,s=r.align,f=void 0===s?"stretch":s,d=r.wrap,m=void 0===d?"nowrap":d,p=r.gap,u=r.style,v=void 0===u?{}:u,x=n||("column"===a?"column":"row");return o("div",{className:"flex",style:t({gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:c,alignItems:f,flexWrap:m,flexDirection:x},v),children:i})};export{r as default};
1
+ import{__assign as t}from"tslib";import{jsx as i}from"react/jsx-runtime";var o=function(o){var r=o.children,e=o.layout,a=void 0===e?"horizontal":e,n=o.direction,l=o.justify,c=void 0===l?"flex-start":l,d=o.align,m=void 0===d?"stretch":d,s=o.wrap,f=void 0===s?"nowrap":s,p=o.gap,u=o.style,v=void 0===u?{}:u,x=n||("column"===a?"column":"row");return i("div",{className:"flex",style:t({minWidth:0,maxWidth:"100%",gap:"number"==typeof p?"".concat(p,"px"):p,justifyContent:c,alignItems:m,flexWrap:f,flexDirection:x},v),children:r})};export{o as default};
package/dist/es/index.css CHANGED
@@ -4132,6 +4132,11 @@ html, body {
4132
4132
  .flex {
4133
4133
  display: flex;
4134
4134
  box-sizing: border-box;
4135
+ /* 确保Flex容器在父元素(如Table单元格)中能够正确收缩 */
4136
+ /* min-width: 0 允许flex容器在table-layout: fixed的表格中正确收缩 */
4137
+ min-width: 0;
4138
+ /* max-width: 100% 确保不会超出父容器宽度 */
4139
+ max-width: 100%;
4135
4140
  }
4136
4141
 
4137
4142
  .flex > * {
@@ -8418,6 +8423,8 @@ html, body {
8418
8423
  hyphens: auto;
8419
8424
  transition: background-color var(--zjpcy-transition-duration, 0.2s) var(--zjpcy-transition-timing-function, ease-in-out);
8420
8425
  color: var(--zjpcy-text-color-secondary, rgba(0, 0, 0, 0.65));
8426
+ /* 防止单元格内容溢出到相邻列 */
8427
+ overflow: hidden;
8421
8428
  }
8422
8429
 
8423
8430
  /* 表格行悬停效果 */
@@ -15140,6 +15147,8 @@ html, body {
15140
15147
  transition: all 0.2s ease;
15141
15148
  background-color: var(--tag-bg-color, #f5f5f5);
15142
15149
  color: var(--tag-text-color, #333);
15150
+ flex-shrink: 0;
15151
+ flex-wrap: wrap;
15143
15152
  }
15144
15153
 
15145
15154
  /* 尺寸样式 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjpcy/simple-design",
3
- "version": "1.8.27",
3
+ "version": "1.8.29",
4
4
  "description": "zjpcy Studio Design System - React Component Library",
5
5
  "main": "dist/cjs/components/index.js",
6
6
  "module": "dist/es/components/index.js",