@manohub/ui 1.2.8 → 1.2.10
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.
|
@@ -271,13 +271,11 @@
|
|
|
271
271
|
|
|
272
272
|
/* 显式档(`Form.Item` 的 `align`):样式认不出形态的自绘内容(卡片组 / 表格 / 富文本)写 start;
|
|
273
273
|
要强制回到默认的中线对齐写 center(两者都压过上面的自动判定)。
|
|
274
|
-
`start`
|
|
274
|
+
⚠️ 显式 `start` **不带**文本域那 9px 上内距 —— 那枚补偿只属于文本域壳的内距;自绘块的顶边就是
|
|
275
|
+
内容顶边,补了反而把 label 推低(缺陷:只读长文本行)。 */
|
|
275
276
|
.mh-form-item.mh-form-item--align-start {
|
|
276
277
|
align-items: start;
|
|
277
278
|
}
|
|
278
|
-
.mh-form-item.mh-form-item--align-start > .mh-form-item__label {
|
|
279
|
-
padding-top: var(--ui-form-label-padding-top);
|
|
280
|
-
}
|
|
281
279
|
.mh-form-item.mh-form-item--align-center {
|
|
282
280
|
align-items: center;
|
|
283
281
|
}
|
|
@@ -28,11 +28,16 @@
|
|
|
28
28
|
align-items: flex-end;
|
|
29
29
|
justify-content: space-between;
|
|
30
30
|
gap: var(--ui-space-4);
|
|
31
|
+
/* 窄视口 / 150% 缩放:右位放不下时整行换到下一行,**标题不被压扁**。
|
|
32
|
+
缺这条时右侧筛选(固定宽、flex-shrink:0)会把标题挤到一字一行(缺陷:应用管理页头)。 */
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
row-gap: var(--ui-space-2);
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
.mh-page__header-text {
|
|
34
38
|
min-width: 0;
|
|
35
|
-
|
|
39
|
+
/* `auto` 基准:标题先按内容宽参与分配,空间不够时由父级换行,而不是缩到 min-content(一字一行) */
|
|
40
|
+
flex: 1 1 auto;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.mh-page__header-title-row {
|
|
@@ -40,12 +45,14 @@
|
|
|
40
45
|
align-items: center;
|
|
41
46
|
/* 设计稿:图标 26 宽 + 10 间距 → 文字起点 36 */
|
|
42
47
|
gap: 10px;
|
|
48
|
+
min-width: 0;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
.mh-page__header-icon {
|
|
46
52
|
display: inline-flex;
|
|
47
53
|
align-items: center;
|
|
48
54
|
color: var(--ui-primary);
|
|
55
|
+
flex: none;
|
|
49
56
|
}
|
|
50
57
|
|
|
51
58
|
.mh-page__header-icon svg {
|
|
@@ -65,6 +72,10 @@
|
|
|
65
72
|
display: flex;
|
|
66
73
|
align-items: center;
|
|
67
74
|
gap: var(--ui-space-3);
|
|
75
|
+
/* 极窄时控件自身换行(如两个 240 筛选 + 两颗按钮),并靠右对齐 */
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
max-width: 100%;
|
|
68
79
|
}
|
|
69
80
|
|
|
70
81
|
.mh-page__header-title {
|
|
@@ -73,6 +84,11 @@
|
|
|
73
84
|
font-weight: var(--ui-weight-semibold);
|
|
74
85
|
line-height: 28px;
|
|
75
86
|
color: var(--ui-base-content);
|
|
87
|
+
/* 标题永远单行:空间不足时省略,不拆成一字一行(中文标题逐字换行的直接原因) */
|
|
88
|
+
min-width: 0; /* 作为 flex item 允许收缩,ellipsis 才生效 */
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
text-overflow: ellipsis;
|
|
76
92
|
}
|
|
77
93
|
|
|
78
94
|
/* 页头副标题(`subTitle`):标题下一行的次要说明,取 caption 档字号与次要色。间距只用 `margin-top: 4` —— 页头条
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manohub/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "AIHub 自绘组件层:不依赖 farris 的手写 Vue TSX 组件 + 自带令牌层(Farris 规范视觉 · daisyUI 式语义令牌 · shadcn 式 API 词汇)。",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vue": "^3.5.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@manohub/icon": "^1.2.
|
|
38
|
+
"@manohub/icon": "^1.2.10"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^24.0.0",
|