@cyberpunk-vue/components 1.9.23 → 1.9.25
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/dialog/index.d.ts +61 -0
- package/dist/dialog/src/dialog.d.ts +32 -0
- package/dist/dialog/src/dialog.vue.d.ts +37 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +316 -221
- package/dist/menu/index.d.ts +15 -0
- package/dist/menu/src/menu.d.ts +14 -0
- package/dist/menu/src/menu.vue.d.ts +9 -0
- package/dist/menu-nav/index.d.ts +9 -0
- package/dist/menu-nav/src/menu-nav.d.ts +9 -1
- package/dist/menu-nav/src/menu-nav.vue.d.ts +9 -0
- package/package.json +4 -4
package/dist/menu/index.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export declare const CpMenu: import('../utils').SFCWithInstall<{
|
|
|
27
27
|
readonly type: import('vue').PropType<import('.').MenuVariant>;
|
|
28
28
|
readonly default: "solid";
|
|
29
29
|
};
|
|
30
|
+
readonly size: {
|
|
31
|
+
readonly type: import('vue').PropType<import('.').MenuSize>;
|
|
32
|
+
readonly default: "md";
|
|
33
|
+
};
|
|
30
34
|
readonly defaultActive: {
|
|
31
35
|
readonly type: StringConstructor;
|
|
32
36
|
readonly default: "";
|
|
@@ -64,6 +68,7 @@ export declare const CpMenu: import('../utils').SFCWithInstall<{
|
|
|
64
68
|
close: (index: string, indexPath: string[]) => void;
|
|
65
69
|
open: (index: string, indexPath: string[]) => void;
|
|
66
70
|
}, import('vue').PublicProps, {
|
|
71
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
67
72
|
readonly mode: import('.').MenuMode;
|
|
68
73
|
readonly type: import('.').MenuType;
|
|
69
74
|
readonly color: string;
|
|
@@ -94,6 +99,10 @@ export declare const CpMenu: import('../utils').SFCWithInstall<{
|
|
|
94
99
|
readonly type: import('vue').PropType<import('.').MenuVariant>;
|
|
95
100
|
readonly default: "solid";
|
|
96
101
|
};
|
|
102
|
+
readonly size: {
|
|
103
|
+
readonly type: import('vue').PropType<import('.').MenuSize>;
|
|
104
|
+
readonly default: "md";
|
|
105
|
+
};
|
|
97
106
|
readonly defaultActive: {
|
|
98
107
|
readonly type: StringConstructor;
|
|
99
108
|
readonly default: "";
|
|
@@ -127,6 +136,7 @@ export declare const CpMenu: import('../utils').SFCWithInstall<{
|
|
|
127
136
|
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
128
137
|
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
129
138
|
}>, {}, {}, {}, {}, {
|
|
139
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
130
140
|
readonly mode: import('.').MenuMode;
|
|
131
141
|
readonly type: import('.').MenuType;
|
|
132
142
|
readonly color: string;
|
|
@@ -154,6 +164,10 @@ export declare const CpMenu: import('../utils').SFCWithInstall<{
|
|
|
154
164
|
readonly type: import('vue').PropType<import('.').MenuVariant>;
|
|
155
165
|
readonly default: "solid";
|
|
156
166
|
};
|
|
167
|
+
readonly size: {
|
|
168
|
+
readonly type: import('vue').PropType<import('.').MenuSize>;
|
|
169
|
+
readonly default: "md";
|
|
170
|
+
};
|
|
157
171
|
readonly defaultActive: {
|
|
158
172
|
readonly type: StringConstructor;
|
|
159
173
|
readonly default: "";
|
|
@@ -191,6 +205,7 @@ export declare const CpMenu: import('../utils').SFCWithInstall<{
|
|
|
191
205
|
close: (index: string, indexPath: string[]) => void;
|
|
192
206
|
open: (index: string, indexPath: string[]) => void;
|
|
193
207
|
}, string, {
|
|
208
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
194
209
|
readonly mode: import('.').MenuMode;
|
|
195
210
|
readonly type: import('.').MenuType;
|
|
196
211
|
readonly color: string;
|
package/dist/menu/src/menu.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Size } from '@cyberpunk-vue/hooks';
|
|
2
3
|
/**
|
|
3
4
|
* Menu 颜色类型
|
|
4
5
|
*/
|
|
@@ -22,6 +23,7 @@ export type MenuShape = 'clip' | 'no-clip' | 'round' | 'circle';
|
|
|
22
23
|
* - `note` - 透明背景 + 发光条高亮(旧默认样式)
|
|
23
24
|
*/
|
|
24
25
|
export type MenuVariant = 'solid' | 'outline' | 'note';
|
|
26
|
+
export type MenuSize = Size;
|
|
25
27
|
/**
|
|
26
28
|
* CpMenu 组件 Props 定义
|
|
27
29
|
*
|
|
@@ -114,6 +116,18 @@ export declare const menuProps: {
|
|
|
114
116
|
readonly type: PropType<MenuVariant>;
|
|
115
117
|
readonly default: "solid";
|
|
116
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* 菜单尺寸
|
|
121
|
+
* - `sm` - 更紧凑的字号与行高
|
|
122
|
+
* - `md` - 默认尺寸
|
|
123
|
+
* - `lg` - 更大的字号与行高
|
|
124
|
+
* - 也支持数字 (px) 或带单位字符串 (如 '1rem')
|
|
125
|
+
* @default 'md'
|
|
126
|
+
*/
|
|
127
|
+
readonly size: {
|
|
128
|
+
readonly type: PropType<MenuSize>;
|
|
129
|
+
readonly default: "md";
|
|
130
|
+
};
|
|
117
131
|
/**
|
|
118
132
|
* 默认激活的菜单项 index。
|
|
119
133
|
* 支持前缀匹配:传入 `/model-specs/xxx` 会自动匹配 `index="/model-specs"` 的菜单项,
|
|
@@ -20,6 +20,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
20
20
|
readonly type: import('vue').PropType<import('./menu').MenuVariant>;
|
|
21
21
|
readonly default: "solid";
|
|
22
22
|
};
|
|
23
|
+
readonly size: {
|
|
24
|
+
readonly type: import('vue').PropType<import('./menu').MenuSize>;
|
|
25
|
+
readonly default: "md";
|
|
26
|
+
};
|
|
23
27
|
readonly defaultActive: {
|
|
24
28
|
readonly type: StringConstructor;
|
|
25
29
|
readonly default: "";
|
|
@@ -65,6 +69,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
65
69
|
readonly type: import('vue').PropType<import('./menu').MenuVariant>;
|
|
66
70
|
readonly default: "solid";
|
|
67
71
|
};
|
|
72
|
+
readonly size: {
|
|
73
|
+
readonly type: import('vue').PropType<import('./menu').MenuSize>;
|
|
74
|
+
readonly default: "md";
|
|
75
|
+
};
|
|
68
76
|
readonly defaultActive: {
|
|
69
77
|
readonly type: StringConstructor;
|
|
70
78
|
readonly default: "";
|
|
@@ -98,6 +106,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
98
106
|
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
99
107
|
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
100
108
|
}>, {
|
|
109
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
101
110
|
readonly mode: import('./menu').MenuMode;
|
|
102
111
|
readonly type: import('./menu').MenuType;
|
|
103
112
|
readonly color: string;
|
package/dist/menu-nav/index.d.ts
CHANGED
|
@@ -19,6 +19,10 @@ export declare const CpMenuNav: import('../utils').SFCWithInstall<import('vue').
|
|
|
19
19
|
readonly type: import('vue').PropType<import('..').MenuMode>;
|
|
20
20
|
readonly default: "vertical";
|
|
21
21
|
};
|
|
22
|
+
readonly size: {
|
|
23
|
+
readonly type: import('vue').PropType<import('..').MenuSize>;
|
|
24
|
+
readonly default: "md";
|
|
25
|
+
};
|
|
22
26
|
readonly defaultActive: {
|
|
23
27
|
readonly type: StringConstructor;
|
|
24
28
|
readonly default: "";
|
|
@@ -68,6 +72,10 @@ export declare const CpMenuNav: import('../utils').SFCWithInstall<import('vue').
|
|
|
68
72
|
readonly type: import('vue').PropType<import('..').MenuMode>;
|
|
69
73
|
readonly default: "vertical";
|
|
70
74
|
};
|
|
75
|
+
readonly size: {
|
|
76
|
+
readonly type: import('vue').PropType<import('..').MenuSize>;
|
|
77
|
+
readonly default: "md";
|
|
78
|
+
};
|
|
71
79
|
readonly defaultActive: {
|
|
72
80
|
readonly type: StringConstructor;
|
|
73
81
|
readonly default: "";
|
|
@@ -109,6 +117,7 @@ export declare const CpMenuNav: import('../utils').SFCWithInstall<import('vue').
|
|
|
109
117
|
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
110
118
|
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
111
119
|
}>, {
|
|
120
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
112
121
|
readonly mode: import('..').MenuMode;
|
|
113
122
|
readonly type: import('..').MenuType;
|
|
114
123
|
readonly color: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { IconValue } from '../../icon/src/icon';
|
|
3
|
-
import { MenuType, MenuMode, MenuShape, MenuVariant } from '../../menu/src/menu';
|
|
3
|
+
import { MenuType, MenuMode, MenuShape, MenuVariant, MenuSize } from '../../menu/src/menu';
|
|
4
4
|
/**
|
|
5
5
|
* 菜单项数据结构
|
|
6
6
|
*
|
|
@@ -68,6 +68,14 @@ export declare const menuNavProps: {
|
|
|
68
68
|
readonly type: PropType<MenuMode>;
|
|
69
69
|
readonly default: "vertical";
|
|
70
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* 菜单尺寸
|
|
73
|
+
* @default 'md'
|
|
74
|
+
*/
|
|
75
|
+
readonly size: {
|
|
76
|
+
readonly type: PropType<MenuSize>;
|
|
77
|
+
readonly default: "md";
|
|
78
|
+
};
|
|
71
79
|
/**
|
|
72
80
|
* 默认激活项 index
|
|
73
81
|
* @default ''
|
|
@@ -8,6 +8,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
8
8
|
readonly type: import('vue').PropType<import('../../menu').MenuMode>;
|
|
9
9
|
readonly default: "vertical";
|
|
10
10
|
};
|
|
11
|
+
readonly size: {
|
|
12
|
+
readonly type: import('vue').PropType<import('../../menu').MenuSize>;
|
|
13
|
+
readonly default: "md";
|
|
14
|
+
};
|
|
11
15
|
readonly defaultActive: {
|
|
12
16
|
readonly type: StringConstructor;
|
|
13
17
|
readonly default: "";
|
|
@@ -57,6 +61,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
57
61
|
readonly type: import('vue').PropType<import('../../menu').MenuMode>;
|
|
58
62
|
readonly default: "vertical";
|
|
59
63
|
};
|
|
64
|
+
readonly size: {
|
|
65
|
+
readonly type: import('vue').PropType<import('../../menu').MenuSize>;
|
|
66
|
+
readonly default: "md";
|
|
67
|
+
};
|
|
60
68
|
readonly defaultActive: {
|
|
61
69
|
readonly type: StringConstructor;
|
|
62
70
|
readonly default: "";
|
|
@@ -98,6 +106,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
98
106
|
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
99
107
|
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
100
108
|
}>, {
|
|
109
|
+
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
101
110
|
readonly mode: import('../../menu').MenuMode;
|
|
102
111
|
readonly type: import('../../menu').MenuType;
|
|
103
112
|
readonly color: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.25",
|
|
4
4
|
"description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"vue": "^3.5.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cyberpunk-vue/hooks": "1.9.
|
|
27
|
-
"@cyberpunk-vue/
|
|
28
|
-
"@cyberpunk-vue/
|
|
26
|
+
"@cyberpunk-vue/hooks": "1.9.25",
|
|
27
|
+
"@cyberpunk-vue/constants": "1.9.25",
|
|
28
|
+
"@cyberpunk-vue/theme-chalk": "1.9.25"
|
|
29
29
|
},
|
|
30
30
|
"author": "Juxest",
|
|
31
31
|
"license": "MIT",
|