@veltra/desktop 1.2.32 → 1.2.33
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/dist/components/batch-edit/batch-edit.vue.d.ts +8 -8
- package/dist/components/cascade/cascade.vue.d.ts +1 -1
- package/dist/components/dual-nav/dual-nav-app.js +17 -4
- package/dist/components/dual-nav/dual-nav-app.js.map +1 -1
- package/dist/components/dual-nav/dual-nav.js +5 -2
- package/dist/components/dual-nav/dual-nav.js.map +1 -1
- package/dist/components/dual-nav/dual-nav.vue.d.ts +4 -3
- package/dist/components/dual-nav/style2.css +22 -0
- package/dist/components/group-nav/group-nav-item.js +40 -0
- package/dist/components/group-nav/group-nav-item.js.map +1 -0
- package/dist/components/group-nav/group-nav.js +47 -0
- package/dist/components/group-nav/group-nav.js.map +1 -0
- package/dist/components/group-nav/group-nav.vue.d.ts +13 -0
- package/dist/components/group-nav/index.d.ts +1 -0
- package/dist/components/group-nav/style.d.ts +1 -0
- package/dist/components/group-nav/style.js +3 -0
- package/dist/components/group-nav/style2.css +119 -0
- package/dist/components/index.d.ts +20 -19
- package/dist/components/index.js +22 -20
- package/dist/components/index.js.map +1 -1
- package/dist/components/multi-tree-select/multi-tree-select.vue.d.ts +1 -1
- package/dist/components/progress-nodes/progress-nodes.vue.d.ts +1 -1
- package/dist/components/steps/steps.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-horizontal.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-vertical.vue.d.ts +2 -2
- package/dist/components/tabs/tabs.vue.d.ts +2 -2
- package/dist/components/textarea/textarea.vue.d.ts +1 -1
- package/dist/components/tree/tree.vue.d.ts +1 -1
- package/dist/components/tree-select/tree-select.vue.d.ts +1 -1
- package/dist/index.d.ts +50 -48
- package/dist/index.js +46 -45
- package/dist/style.js +1 -0
- package/dist/types/dual-nav.d.ts +9 -1
- package/dist/types/group-nav.d.ts +22 -0
- package/dist/types/index.d.ts +3 -2
- package/package.json +6 -6
- package/src/components/dual-nav/dual-nav-app.vue +22 -3
- package/src/components/dual-nav/dual-nav.vue +3 -2
- package/src/components/dual-nav/style.scss +30 -1
- package/src/components/group-nav/group-nav-item.vue +32 -0
- package/src/components/group-nav/group-nav.vue +36 -0
- package/src/components/group-nav/index.ts +1 -0
- package/src/components/group-nav/style.scss +121 -0
- package/src/components/group-nav/style.ts +3 -0
- package/src/components/index.ts +2 -0
- package/src/style.ts +1 -0
- package/src/types/dual-nav.ts +9 -0
- package/src/types/group-nav.ts +20 -0
- package/src/types/index.ts +1 -0
package/src/types/dual-nav.ts
CHANGED
|
@@ -2,6 +2,9 @@ import type { DeconstructValue } from '@veltra/utils'
|
|
|
2
2
|
|
|
3
3
|
import type { NavItem } from './nav'
|
|
4
4
|
|
|
5
|
+
/** 双栏导航左轨变体 */
|
|
6
|
+
export type DualNavRailVariant = 'icon' | 'labeled'
|
|
7
|
+
|
|
5
8
|
/** 双栏导航根级应用项;`description` 在左轨 tooltip 与右栏顶部展示 */
|
|
6
9
|
export interface DualNavRootItem extends NavItem {
|
|
7
10
|
/** 子导航 */
|
|
@@ -14,6 +17,12 @@ export interface DualNavProps {
|
|
|
14
17
|
currentPath?: string
|
|
15
18
|
/** 根级应用导航列表 */
|
|
16
19
|
menus?: DualNavRootItem[]
|
|
20
|
+
/**
|
|
21
|
+
* 左轨变体
|
|
22
|
+
* - `icon`:仅图标(默认)
|
|
23
|
+
* - `labeled`:加宽左轨,图标下方显示菜单名称(最多 4 个字)
|
|
24
|
+
*/
|
|
25
|
+
railVariant?: DualNavRailVariant
|
|
17
26
|
}
|
|
18
27
|
|
|
19
28
|
/** 双栏导航组件定义的事件 */
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { NavItem } from './nav'
|
|
2
|
+
|
|
3
|
+
/** 分组:标题 + 叶子菜单 */
|
|
4
|
+
export interface GroupNavGroup {
|
|
5
|
+
title: string
|
|
6
|
+
children: NavItem[]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** 分组导航组件属性 */
|
|
10
|
+
export interface GroupNavProps {
|
|
11
|
+
/** 当前路径 */
|
|
12
|
+
currentPath?: string
|
|
13
|
+
/** 分组列表(每组仅渲染一层叶子,更深嵌套舍弃) */
|
|
14
|
+
groups?: GroupNavGroup[]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** 分组导航组件定义的事件 */
|
|
18
|
+
export interface GroupNavEmits {
|
|
19
|
+
(e: 'item-click', item: NavItem): void
|
|
20
|
+
}
|
package/src/types/index.ts
CHANGED