@neatui/css 5.1.4 → 5.1.5

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/GUIDE.md CHANGED
@@ -1346,6 +1346,7 @@ hidden // display: none
1346
1346
 
1347
1347
  // Flex 子项
1348
1348
  flex-block // flex: 1
1349
+ flex-fill // flex: 1,不裁切(overflow 不变,min-width: 0)
1349
1350
  flex-auto // flex: auto
1350
1351
  flex-none // flex: none
1351
1352
  ```
@@ -55,6 +55,8 @@ value 规定输入字段的默认值。
55
55
  flex-grow: 1;
56
56
  // 未知原因如果不设宽度会把 ui-form-subffix 挤出框外
57
57
  width: 100%;
58
+ // 输入框默认最小宽度是内容宽度(size 约 20 字),窄栏里会把整个框撑出容器
59
+ min-width: 0;
58
60
  height: 100%;
59
61
  padding: 0 0.25em;
60
62
  border: 0;
package/core/flex.scss CHANGED
@@ -20,6 +20,11 @@
20
20
  flex: 1;
21
21
  overflow: hidden;
22
22
  }
23
+ // 占满剩余空间但不裁切(浮在外面的提示、负外边距的栅格不会被切掉),min-width 0 让内容可收缩
24
+ .#{$med}flex-fill {
25
+ flex: 1;
26
+ min-width: 0;
27
+ }
23
28
  .#{$med}flex-grow {
24
29
  flex-grow: 1;
25
30
  flex-shrink: 0;
package/dist/neatui.css CHANGED
@@ -15487,6 +15487,11 @@ td[ui-col],th[ui-col]{
15487
15487
  overflow:hidden;
15488
15488
  }
15489
15489
 
15490
+ .flex-fill{
15491
+ flex:1;
15492
+ min-width:0;
15493
+ }
15494
+
15490
15495
  .flex-grow{
15491
15496
  flex-grow:1;
15492
15497
  flex-shrink:0;
@@ -15778,6 +15783,10 @@ td[ui-col],th[ui-col]{
15778
15783
  flex:1;
15779
15784
  overflow:hidden;
15780
15785
  }
15786
+ .pad\:flex-fill{
15787
+ flex:1;
15788
+ min-width:0;
15789
+ }
15781
15790
  .pad\:flex-grow{
15782
15791
  flex-grow:1;
15783
15792
  flex-shrink:0;
@@ -16060,6 +16069,10 @@ td[ui-col],th[ui-col]{
16060
16069
  flex:1;
16061
16070
  overflow:hidden;
16062
16071
  }
16072
+ .mob\:flex-fill{
16073
+ flex:1;
16074
+ min-width:0;
16075
+ }
16063
16076
  .mob\:flex-grow{
16064
16077
  flex-grow:1;
16065
16078
  flex-shrink:0;
@@ -22583,6 +22596,7 @@ body [ui-btn~="@b"][ui-btn~=b][ui-btn~=":underline"]:hover{
22583
22596
  flex-grow:1;
22584
22597
  flex-shrink:1;
22585
22598
  height:100%;
22599
+ min-width:0;
22586
22600
  overflow:hidden;
22587
22601
  padding:0 .25em;
22588
22602
  text-overflow:ellipsis;