lumen-plus 0.0.7 → 0.0.9

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.
@@ -58,6 +58,19 @@
58
58
  // Fit - 当设置 fit 时表格撑满容器(默认行为)
59
59
  // 不设置 fit 时表格按内容宽度,可出现滚动条
60
60
 
61
+ // 非 fit 模式下按内容宽度渲染表格,超出时显示水平滚动条
62
+ &:not(.#{$namespace}-table--fit) {
63
+ .#{$namespace}-table__table {
64
+ table-layout: auto;
65
+ width: max-content;
66
+ }
67
+
68
+ .#{$namespace}-table__inner-wrapper {
69
+ overflow-x: auto;
70
+ -webkit-overflow-scrolling: touch;
71
+ }
72
+ }
73
+
61
74
  // Highlight current row
62
75
  @include m('highlight-current-row') {
63
76
  .#{$namespace}-table__row {
@@ -78,6 +91,7 @@
78
91
  // 单表格结构
79
92
  @include e('table') {
80
93
  width: 100%;
94
+ min-width: max-content;
81
95
  table-layout: fixed;
82
96
  border-collapse: separate;
83
97
  border-spacing: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumen-plus",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Lumen Plus - Complete Svelte 5 UI Component Library",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",