@manohub/ui 1.0.9 → 1.1.0

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.
Files changed (55) hide show
  1. package/README.md +3 -3
  2. package/dist/components/button/index.d.ts +74 -20
  3. package/dist/components/button/index.js +59 -14
  4. package/dist/components/button/segmented.d.ts +122 -0
  5. package/dist/components/button/segmented.js +99 -0
  6. package/dist/components/capsule/index.d.ts +2 -2
  7. package/dist/components/card/index.js +1 -1
  8. package/dist/components/filter/index.d.ts +3 -3
  9. package/dist/components/form/index.d.ts +1 -1
  10. package/dist/components/input/index.d.ts +6 -6
  11. package/dist/components/input/number-input.d.ts +1 -1
  12. package/dist/components/list/index.d.ts +19 -0
  13. package/dist/components/list/list-shared.d.ts +196 -0
  14. package/dist/components/list/list-shared.js +143 -0
  15. package/dist/components/list/list.d.ts +221 -0
  16. package/dist/components/list/list.js +131 -0
  17. package/dist/components/{tree/index.d.ts → list/tree.d.ts} +33 -33
  18. package/dist/components/{tree/index.js → list/tree.js} +23 -62
  19. package/dist/components/list-view/index.d.ts +7 -7
  20. package/dist/components/notice/index.d.ts +1 -1
  21. package/dist/components/panel/index.d.ts +39 -84
  22. package/dist/components/panel/index.js +18 -32
  23. package/dist/components/radio/index.d.ts +233 -118
  24. package/dist/components/radio/index.js +146 -150
  25. package/dist/components/select/index.d.ts +1 -1
  26. package/dist/components/select/index.js +6 -3
  27. package/dist/components/select/select-panel.d.ts +20 -0
  28. package/dist/components/select/select-panel.js +8 -1
  29. package/dist/components/select/select-tree-filter.d.ts +9 -9
  30. package/dist/components/select/select-tree.d.ts +23 -23
  31. package/dist/components/select/select-tree.js +16 -3
  32. package/dist/components/select/select-trigger.d.ts +43 -1
  33. package/dist/components/select/select-trigger.js +22 -5
  34. package/dist/components/steps/index.d.ts +4 -4
  35. package/dist/components/table/index.d.ts +4 -4
  36. package/dist/components/table/index.js +1 -1
  37. package/dist/components/tabs/index.js +1 -1
  38. package/dist/components/tag/index.d.ts +1 -1
  39. package/dist/index.d.ts +3 -4
  40. package/dist/index.js +5 -3
  41. package/dist/styles/components/button.css +107 -33
  42. package/dist/styles/components/{tree.css → list.css} +24 -24
  43. package/dist/styles/components/{tree.tokens.css → list.tokens.css} +5 -5
  44. package/dist/styles/components/pagination.css +3 -3
  45. package/dist/styles/components/panel.css +2 -9
  46. package/dist/styles/components/radio.css +21 -20
  47. package/dist/styles/components/select.css +2 -2
  48. package/dist/styles/components/select.tokens.css +2 -2
  49. package/dist/styles/index.css +2 -3
  50. package/dist/utils/vnode-children.d.ts +10 -0
  51. package/dist/utils/vnode-children.js +26 -0
  52. package/package.json +2 -2
  53. package/dist/components/nav/index.d.ts +0 -299
  54. package/dist/components/nav/index.js +0 -174
  55. package/dist/styles/components/nav.css +0 -48
@@ -0,0 +1,26 @@
1
+ import { Fragment } from "vue";
2
+ const isFragment = (child) => !!child && typeof child === "object" && child.type === Fragment;
3
+ function flattenChildren(raw) {
4
+ const out = [];
5
+ const push = (child) => {
6
+ if (Array.isArray(child)) {
7
+ for (const item of child) {
8
+ push(item);
9
+ }
10
+ return;
11
+ }
12
+ if (isFragment(child)) {
13
+ push(child.children);
14
+ return;
15
+ }
16
+ if (child === null || child === void 0 || child === false || child === true || child === "") {
17
+ return;
18
+ }
19
+ out.push(child);
20
+ };
21
+ push(raw);
22
+ return out;
23
+ }
24
+ export {
25
+ flattenChildren
26
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manohub/ui",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
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.0.9"
38
+ "@manohub/icon": "^1.1.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^24.0.0",
@@ -1,299 +0,0 @@
1
- import { type PropType } from 'vue';
2
- import { type TreeNode } from '../tree';
3
- /** 导航形态:`tree` 层级导航(可展开)/ `list` 扁平导航 */
4
- export type NavVariant = 'tree' | 'list';
5
- /**
6
- * 侧栏导航(单列、固定宽、内滚):**`tree` / `list` 两态,行渲染完全复用 `Tree`**。
7
- *
8
- * ## 为什么不是 `Tree` 的一个 prop
9
- * `Tree` 是**展示件**(层级数据怎么显示);导航是另一种语义:选中驱动右侧内容、单列固定宽、外壳自己滚动。两者对**行**
10
- * 的几何要求完全一致,故本件不重写行渲染 —— 数据、展开态、选中态、缩进、三态全部交给 `Tree`(不存在第二棵树);两态
11
- * 的差异只有一处:`variant="list"` 隐藏箭头占位(扁平导航没有层级)。
12
- *
13
- * ## 滚动归属 / 宽度
14
- * 根件 `overflow: hidden`,**只有 `mh-nav__body` 滚**(与 `Panel.Body` 同一口径)。缺省**填满所在栏**
15
- * (`width: var(--mh-nav-width, 100%)`)—— 列宽由 `Page.Split` 的侧栏列或外层布局决定,不重复锁一个可能与栏宽不符的
16
- * 数;独立使用需要固定宽时传 `width`(px 数字)。
17
- *
18
- * ## 行尾操作 / 图标
19
- * `renderActions` 直接透传给 `Tree`(默认隐藏、行悬浮或行内获得焦点时显形、点击不冒泡)—— 应用侧只给节点,不要自己写
20
- * 显隐 CSS,也不要塞进 `renderNode`(那是常驻附加内容)。导航项图标走 `renderIcon`,**不要**用 `renderLabel` 拼
21
- * 「图标 + 文字」:标签槽承担省略号与行内对齐,图标进去会被裁掉、也不成列。
22
- *
23
- * 用法见 `docs/demos/nav/`(每个维度一份可运行样例;文档页 `docs/components/nav.md`)。
24
- */
25
- export declare const Nav: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
26
- /** 导航形态:`tree`(默认,层级 + 箭头)/ `list`(扁平,无箭头占位) */
27
- variant: {
28
- type: PropType<NavVariant>;
29
- default: string;
30
- };
31
- /** 导航节点(`list` 态传扁平数组);结构与 `Tree` 同 */
32
- nodes: {
33
- type: PropType<TreeNode[]>;
34
- required: true;
35
- };
36
- /** 节点主键:字段名或取值函数 */
37
- rowKey: {
38
- type: PropType<string | ((node: TreeNode) => string)>;
39
- required: true;
40
- };
41
- /** 标签字段名(默认 'label') */
42
- labelKey: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- /** 子节点字段名(默认 'children') */
47
- childrenKey: {
48
- type: StringConstructor;
49
- default: string;
50
- };
51
- /** 受控选中(行主键值) */
52
- selected: {
53
- type: StringConstructor;
54
- default: undefined;
55
- };
56
- /** 选中回调:给的是**节点对象**(不是主键值),口径同 `Tree` */
57
- onSelect: {
58
- type: PropType<(node: TreeNode) => void>;
59
- default: undefined;
60
- };
61
- /** 受控展开集(传了就完全受控) */
62
- expandedKeys: {
63
- type: PropType<string[]>;
64
- default: undefined;
65
- };
66
- /** 非受控展开初值 */
67
- defaultExpandedKeys: {
68
- type: PropType<string[]>;
69
- default: () => never[];
70
- };
71
- onExpandChange: {
72
- type: PropType<(keys: string[]) => void>;
73
- default: undefined;
74
- };
75
- /** 行尾操作区(新增 / 重命名 / 删除…):悬浮显形 + 点击不冒泡,见 `Tree.renderActions` */
76
- renderActions: {
77
- type: PropType<(node: TreeNode) => unknown>;
78
- default: undefined;
79
- };
80
- /** 导航项图标(标签前的一位图标):见 `Tree.renderIcon`(侧栏图标走这一位,不要塞进 `renderLabel`) */
81
- renderIcon: {
82
- type: PropType<(node: TreeNode) => unknown>;
83
- default: undefined;
84
- };
85
- /** 展开 / 收起箭头字形:见 `Tree.renderCaret`(`list` 态箭头位被隐藏,传了也不显形) */
86
- renderCaret: {
87
- type: PropType<(node: TreeNode, expanded: boolean) => unknown>;
88
- default: undefined;
89
- };
90
- /** 侧栏标题(可选;不传则只有导航体) */
91
- title: {
92
- type: StringConstructor;
93
- default: undefined;
94
- };
95
- /** 侧栏宽度(px 数字):只下发 `--mh-nav-width`;**不传则填满所在栏**(列宽归 `Page.Split` / 外层布局) */
96
- width: {
97
- type: NumberConstructor;
98
- default: undefined;
99
- };
100
- /** 尺寸档:`md`(行高 30,默认)/ `sm`(紧凑 28) */
101
- size: {
102
- type: PropType<"md" | "sm">;
103
- default: string;
104
- };
105
- loading: {
106
- type: BooleanConstructor;
107
- default: boolean;
108
- };
109
- /** 空态文案 */
110
- empty: {
111
- type: StringConstructor;
112
- default: string;
113
- };
114
- /** 空态操作按钮(如「新建」);与 `onEmptyAction` 同时传才渲染 */
115
- emptyActionText: {
116
- type: StringConstructor;
117
- default: undefined;
118
- };
119
- onEmptyAction: {
120
- type: PropType<() => void>;
121
- default: undefined;
122
- };
123
- /**
124
- * 错误态(truthy 即触发)。**构造器顺序同 `Tree.error`:`String` 必须排在 `Boolean` 前** —— 顺序写反时,成功态传的
125
- * 空字符串会被 Vue 的布尔转换判成 `true`,侧栏永远停在错误态。
126
- */
127
- error: {
128
- type: PropType<any>;
129
- default: undefined;
130
- };
131
- /** 错误态标题(默认「加载失败」) */
132
- errorTitle: {
133
- type: StringConstructor;
134
- default: string;
135
- };
136
- /** 错误态操作按钮(如「重试」);与 `onErrorAction` 同时传才渲染 */
137
- errorActionText: {
138
- type: StringConstructor;
139
- default: undefined;
140
- };
141
- onErrorAction: {
142
- type: PropType<() => void>;
143
- default: undefined;
144
- };
145
- /** 右侧分隔线(侧栏与内容区之间;贴在页面容器里时用) */
146
- bordered: {
147
- type: BooleanConstructor;
148
- default: boolean;
149
- };
150
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
151
- /** 导航形态:`tree`(默认,层级 + 箭头)/ `list`(扁平,无箭头占位) */
152
- variant: {
153
- type: PropType<NavVariant>;
154
- default: string;
155
- };
156
- /** 导航节点(`list` 态传扁平数组);结构与 `Tree` 同 */
157
- nodes: {
158
- type: PropType<TreeNode[]>;
159
- required: true;
160
- };
161
- /** 节点主键:字段名或取值函数 */
162
- rowKey: {
163
- type: PropType<string | ((node: TreeNode) => string)>;
164
- required: true;
165
- };
166
- /** 标签字段名(默认 'label') */
167
- labelKey: {
168
- type: StringConstructor;
169
- default: string;
170
- };
171
- /** 子节点字段名(默认 'children') */
172
- childrenKey: {
173
- type: StringConstructor;
174
- default: string;
175
- };
176
- /** 受控选中(行主键值) */
177
- selected: {
178
- type: StringConstructor;
179
- default: undefined;
180
- };
181
- /** 选中回调:给的是**节点对象**(不是主键值),口径同 `Tree` */
182
- onSelect: {
183
- type: PropType<(node: TreeNode) => void>;
184
- default: undefined;
185
- };
186
- /** 受控展开集(传了就完全受控) */
187
- expandedKeys: {
188
- type: PropType<string[]>;
189
- default: undefined;
190
- };
191
- /** 非受控展开初值 */
192
- defaultExpandedKeys: {
193
- type: PropType<string[]>;
194
- default: () => never[];
195
- };
196
- onExpandChange: {
197
- type: PropType<(keys: string[]) => void>;
198
- default: undefined;
199
- };
200
- /** 行尾操作区(新增 / 重命名 / 删除…):悬浮显形 + 点击不冒泡,见 `Tree.renderActions` */
201
- renderActions: {
202
- type: PropType<(node: TreeNode) => unknown>;
203
- default: undefined;
204
- };
205
- /** 导航项图标(标签前的一位图标):见 `Tree.renderIcon`(侧栏图标走这一位,不要塞进 `renderLabel`) */
206
- renderIcon: {
207
- type: PropType<(node: TreeNode) => unknown>;
208
- default: undefined;
209
- };
210
- /** 展开 / 收起箭头字形:见 `Tree.renderCaret`(`list` 态箭头位被隐藏,传了也不显形) */
211
- renderCaret: {
212
- type: PropType<(node: TreeNode, expanded: boolean) => unknown>;
213
- default: undefined;
214
- };
215
- /** 侧栏标题(可选;不传则只有导航体) */
216
- title: {
217
- type: StringConstructor;
218
- default: undefined;
219
- };
220
- /** 侧栏宽度(px 数字):只下发 `--mh-nav-width`;**不传则填满所在栏**(列宽归 `Page.Split` / 外层布局) */
221
- width: {
222
- type: NumberConstructor;
223
- default: undefined;
224
- };
225
- /** 尺寸档:`md`(行高 30,默认)/ `sm`(紧凑 28) */
226
- size: {
227
- type: PropType<"md" | "sm">;
228
- default: string;
229
- };
230
- loading: {
231
- type: BooleanConstructor;
232
- default: boolean;
233
- };
234
- /** 空态文案 */
235
- empty: {
236
- type: StringConstructor;
237
- default: string;
238
- };
239
- /** 空态操作按钮(如「新建」);与 `onEmptyAction` 同时传才渲染 */
240
- emptyActionText: {
241
- type: StringConstructor;
242
- default: undefined;
243
- };
244
- onEmptyAction: {
245
- type: PropType<() => void>;
246
- default: undefined;
247
- };
248
- /**
249
- * 错误态(truthy 即触发)。**构造器顺序同 `Tree.error`:`String` 必须排在 `Boolean` 前** —— 顺序写反时,成功态传的
250
- * 空字符串会被 Vue 的布尔转换判成 `true`,侧栏永远停在错误态。
251
- */
252
- error: {
253
- type: PropType<any>;
254
- default: undefined;
255
- };
256
- /** 错误态标题(默认「加载失败」) */
257
- errorTitle: {
258
- type: StringConstructor;
259
- default: string;
260
- };
261
- /** 错误态操作按钮(如「重试」);与 `onErrorAction` 同时传才渲染 */
262
- errorActionText: {
263
- type: StringConstructor;
264
- default: undefined;
265
- };
266
- onErrorAction: {
267
- type: PropType<() => void>;
268
- default: undefined;
269
- };
270
- /** 右侧分隔线(侧栏与内容区之间;贴在页面容器里时用) */
271
- bordered: {
272
- type: BooleanConstructor;
273
- default: boolean;
274
- };
275
- }>> & Readonly<{}>, {
276
- size: "sm" | "md";
277
- title: string;
278
- onSelect: (node: TreeNode) => void;
279
- error: any;
280
- loading: boolean;
281
- width: number;
282
- variant: NavVariant;
283
- selected: string;
284
- empty: string;
285
- errorTitle: string;
286
- emptyActionText: string;
287
- onEmptyAction: () => void;
288
- errorActionText: string;
289
- onErrorAction: () => void;
290
- labelKey: string;
291
- childrenKey: string;
292
- renderCaret: (node: TreeNode, expanded: boolean) => unknown;
293
- renderIcon: (node: TreeNode) => unknown;
294
- renderActions: (node: TreeNode) => unknown;
295
- expandedKeys: string[];
296
- defaultExpandedKeys: string[];
297
- onExpandChange: (keys: string[]) => void;
298
- bordered: boolean;
299
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,174 +0,0 @@
1
- import { defineComponent, createVNode } from "vue";
2
- import { Tree } from "../tree/index.js";
3
- const Nav = /* @__PURE__ */ defineComponent({
4
- name: "Nav",
5
- inheritAttrs: false,
6
- props: {
7
- /** 导航形态:`tree`(默认,层级 + 箭头)/ `list`(扁平,无箭头占位) */
8
- variant: {
9
- type: String,
10
- default: "tree"
11
- },
12
- /** 导航节点(`list` 态传扁平数组);结构与 `Tree` 同 */
13
- nodes: {
14
- type: Array,
15
- required: true
16
- },
17
- /** 节点主键:字段名或取值函数 */
18
- rowKey: {
19
- type: [String, Function],
20
- required: true
21
- },
22
- /** 标签字段名(默认 'label') */
23
- labelKey: {
24
- type: String,
25
- default: "label"
26
- },
27
- /** 子节点字段名(默认 'children') */
28
- childrenKey: {
29
- type: String,
30
- default: "children"
31
- },
32
- /** 受控选中(行主键值) */
33
- selected: {
34
- type: String,
35
- default: void 0
36
- },
37
- /** 选中回调:给的是**节点对象**(不是主键值),口径同 `Tree` */
38
- onSelect: {
39
- type: Function,
40
- default: void 0
41
- },
42
- /** 受控展开集(传了就完全受控) */
43
- expandedKeys: {
44
- type: Array,
45
- default: void 0
46
- },
47
- /** 非受控展开初值 */
48
- defaultExpandedKeys: {
49
- type: Array,
50
- default: () => []
51
- },
52
- onExpandChange: {
53
- type: Function,
54
- default: void 0
55
- },
56
- /** 行尾操作区(新增 / 重命名 / 删除…):悬浮显形 + 点击不冒泡,见 `Tree.renderActions` */
57
- renderActions: {
58
- type: Function,
59
- default: void 0
60
- },
61
- /** 导航项图标(标签前的一位图标):见 `Tree.renderIcon`(侧栏图标走这一位,不要塞进 `renderLabel`) */
62
- renderIcon: {
63
- type: Function,
64
- default: void 0
65
- },
66
- /** 展开 / 收起箭头字形:见 `Tree.renderCaret`(`list` 态箭头位被隐藏,传了也不显形) */
67
- renderCaret: {
68
- type: Function,
69
- default: void 0
70
- },
71
- /** 侧栏标题(可选;不传则只有导航体) */
72
- title: {
73
- type: String,
74
- default: void 0
75
- },
76
- /** 侧栏宽度(px 数字):只下发 `--mh-nav-width`;**不传则填满所在栏**(列宽归 `Page.Split` / 外层布局) */
77
- width: {
78
- type: Number,
79
- default: void 0
80
- },
81
- /** 尺寸档:`md`(行高 30,默认)/ `sm`(紧凑 28) */
82
- size: {
83
- type: String,
84
- default: "md"
85
- },
86
- loading: {
87
- type: Boolean,
88
- default: false
89
- },
90
- /** 空态文案 */
91
- empty: {
92
- type: String,
93
- default: "暂无数据"
94
- },
95
- /** 空态操作按钮(如「新建」);与 `onEmptyAction` 同时传才渲染 */
96
- emptyActionText: {
97
- type: String,
98
- default: void 0
99
- },
100
- onEmptyAction: {
101
- type: Function,
102
- default: void 0
103
- },
104
- /**
105
- * 错误态(truthy 即触发)。**构造器顺序同 `Tree.error`:`String` 必须排在 `Boolean` 前** —— 顺序写反时,成功态传的
106
- * 空字符串会被 Vue 的布尔转换判成 `true`,侧栏永远停在错误态。
107
- */
108
- error: {
109
- type: [String, Boolean, Object, Number, Array],
110
- default: void 0
111
- },
112
- /** 错误态标题(默认「加载失败」) */
113
- errorTitle: {
114
- type: String,
115
- default: "加载失败"
116
- },
117
- /** 错误态操作按钮(如「重试」);与 `onErrorAction` 同时传才渲染 */
118
- errorActionText: {
119
- type: String,
120
- default: void 0
121
- },
122
- onErrorAction: {
123
- type: Function,
124
- default: void 0
125
- },
126
- /** 右侧分隔线(侧栏与内容区之间;贴在页面容器里时用) */
127
- bordered: {
128
- type: Boolean,
129
- default: false
130
- }
131
- },
132
- setup(props, {
133
- attrs
134
- }) {
135
- return () => {
136
- const style = props.width === void 0 ? attrs.style : [attrs.style, {
137
- "--mh-nav-width": `${props.width}px`
138
- }];
139
- return createVNode("nav", {
140
- "class": ["mh-nav", props.variant === "list" ? "mh-nav--list" : "", props.bordered ? "mh-nav--bordered" : "", attrs.class].filter(Boolean).join(" "),
141
- "style": style
142
- }, [props.title ? createVNode("div", {
143
- "class": "mh-nav__title"
144
- }, [props.title]) : null, createVNode("div", {
145
- "class": "mh-nav__body"
146
- }, [createVNode(Tree, {
147
- "nodes": props.nodes,
148
- "rowKey": props.rowKey,
149
- "labelKey": props.labelKey,
150
- "childrenKey": props.childrenKey,
151
- "selected": props.selected,
152
- "onSelect": props.onSelect,
153
- "expandedKeys": props.expandedKeys,
154
- "defaultExpandedKeys": props.defaultExpandedKeys,
155
- "onExpandChange": props.onExpandChange,
156
- "renderActions": props.renderActions,
157
- "renderIcon": props.renderIcon,
158
- "renderCaret": props.renderCaret,
159
- "size": props.size,
160
- "loading": props.loading,
161
- "empty": props.empty,
162
- "emptyActionText": props.emptyActionText,
163
- "onEmptyAction": props.onEmptyAction,
164
- "error": props.error,
165
- "errorTitle": props.errorTitle,
166
- "errorActionText": props.errorActionText,
167
- "onErrorAction": props.onErrorAction
168
- }, null)])]);
169
- };
170
- }
171
- });
172
- export {
173
- Nav
174
- };
@@ -1,48 +0,0 @@
1
- /**
2
- * Nav(侧栏导航:list / tree 两态,行渲染复用 Tree)。
3
- *
4
- * 依据:@aihub/theme 的 pages/tree-page.css(导航区 12/14)+ components/tree.css(行几何)。
5
- */
6
-
7
- /* ===== Nav(侧栏导航:list / tree 两态,行渲染复用 Tree)=====
8
- 根件不滚(滚动归导航体)。宽度只认 --mh-nav-width(组件按 `width` prop 下发,缺省填满所在栏),
9
- 与 .mh-tree 的缩进同一手法:几何载荷走变量,公式留在 CSS。 */
10
-
11
- .mh-nav {
12
- display: flex;
13
- flex-direction: column;
14
- /* 缺省填满所在栏:列宽归 Page.Split / 外层布局(导航件不重复锁一个可能与栏宽不符的数) */
15
- width: var(--mh-nav-width, 100%);
16
- min-width: 0;
17
- height: 100%;
18
- overflow: hidden;
19
- }
20
-
21
- .mh-nav__title {
22
- flex-shrink: 0;
23
- padding: var(--ui-space-2);
24
- font-size: var(--ui-font-body);
25
- line-height: var(--ui-line-body);
26
- font-weight: var(--ui-weight-semibold);
27
- color: var(--ui-base-content);
28
- }
29
-
30
- /* 导航体:侧栏内滚动的唯一归属(同 Panel.Body 的口径) */
31
-
32
- .mh-nav__body {
33
- flex: 1 1 auto;
34
- min-height: 0;
35
- overflow-y: auto;
36
- padding: var(--ui-space-1) 0;
37
- }
38
-
39
- /* list 态:扁平导航没有层级,隐藏箭头占位(那一段留给树对齐用) */
40
-
41
- .mh-nav--list .mh-tree__caret {
42
- display: none;
43
- }
44
-
45
- /* ===== 右侧分隔线(侧栏贴在页面容器里时用) ===== */
46
- .mh-nav--bordered {
47
- border-right: 1px solid var(--ui-base-300);
48
- }