@cyberpunk-vue/components 1.9.24 → 1.10.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.
- 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 +165 -97
- 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/dist/segmented/index.d.ts +15 -4
- package/dist/segmented/src/segmented.d.ts +17 -2
- package/dist/segmented/src/segmented.vue.d.ts +15 -4
- package/package.json +4 -4
|
@@ -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;
|
|
@@ -47,11 +47,16 @@ export declare const CpSegmented: import('../utils').SFCWithInstall<import('vue'
|
|
|
47
47
|
readonly type: BooleanConstructor;
|
|
48
48
|
readonly default: false;
|
|
49
49
|
};
|
|
50
|
+
readonly clearable: {
|
|
51
|
+
readonly type: BooleanConstructor;
|
|
52
|
+
readonly default: false;
|
|
53
|
+
};
|
|
50
54
|
}>, {
|
|
51
55
|
updateIndicator: () => void;
|
|
52
56
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
-
|
|
54
|
-
|
|
57
|
+
clear: () => void;
|
|
58
|
+
change: (value: import('.').SegmentedValueType | undefined) => void;
|
|
59
|
+
"update:modelValue": (value: import('.').SegmentedValueType | undefined) => void;
|
|
55
60
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
56
61
|
readonly modelValue: {
|
|
57
62
|
readonly type: import('vue').PropType<import('.').SegmentedValueType>;
|
|
@@ -89,9 +94,14 @@ export declare const CpSegmented: import('../utils').SFCWithInstall<import('vue'
|
|
|
89
94
|
readonly type: BooleanConstructor;
|
|
90
95
|
readonly default: false;
|
|
91
96
|
};
|
|
97
|
+
readonly clearable: {
|
|
98
|
+
readonly type: BooleanConstructor;
|
|
99
|
+
readonly default: false;
|
|
100
|
+
};
|
|
92
101
|
}>> & Readonly<{
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
onClear?: (() => any) | undefined;
|
|
103
|
+
onChange?: ((value: import('.').SegmentedValueType | undefined) => any) | undefined;
|
|
104
|
+
"onUpdate:modelValue"?: ((value: import('.').SegmentedValueType | undefined) => any) | undefined;
|
|
95
105
|
}>, {
|
|
96
106
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
97
107
|
readonly type: import('.').SegmentedType;
|
|
@@ -101,6 +111,7 @@ export declare const CpSegmented: import('../utils').SFCWithInstall<import('vue'
|
|
|
101
111
|
readonly block: boolean;
|
|
102
112
|
readonly shape: import('.').SegmentedShape;
|
|
103
113
|
readonly modelValue: import('.').SegmentedValueType;
|
|
114
|
+
readonly clearable: boolean;
|
|
104
115
|
readonly options: (string | number | import('.').SegmentedOption)[];
|
|
105
116
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
106
117
|
trackRef: HTMLDivElement;
|
|
@@ -143,6 +143,15 @@ export declare const segmentedProps: {
|
|
|
143
143
|
readonly type: BooleanConstructor;
|
|
144
144
|
readonly default: false;
|
|
145
145
|
};
|
|
146
|
+
/**
|
|
147
|
+
* 是否允许清空选中项
|
|
148
|
+
* 启用后可通过再次点击已选项或按 Esc 键清空
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
readonly clearable: {
|
|
152
|
+
readonly type: BooleanConstructor;
|
|
153
|
+
readonly default: false;
|
|
154
|
+
};
|
|
146
155
|
};
|
|
147
156
|
export type SegmentedProps = ExtractPropTypes<typeof segmentedProps>;
|
|
148
157
|
/**
|
|
@@ -151,11 +160,17 @@ export type SegmentedProps = ExtractPropTypes<typeof segmentedProps>;
|
|
|
151
160
|
export declare const segmentedEmits: {
|
|
152
161
|
/**
|
|
153
162
|
* 值变化时触发 (v-model 绑定)
|
|
163
|
+
* 启用 clearable 并清空时值为 undefined
|
|
154
164
|
*/
|
|
155
|
-
'update:modelValue': (value: SegmentedValueType) => value is string | number;
|
|
165
|
+
'update:modelValue': (value: SegmentedValueType | undefined) => value is string | number | undefined;
|
|
156
166
|
/**
|
|
157
167
|
* 值变化时触发
|
|
168
|
+
* 启用 clearable 并清空时值为 undefined
|
|
169
|
+
*/
|
|
170
|
+
change: (value: SegmentedValueType | undefined) => value is string | number | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* 清空选中项时触发(需启用 clearable)
|
|
158
173
|
*/
|
|
159
|
-
|
|
174
|
+
clear: () => boolean;
|
|
160
175
|
};
|
|
161
176
|
export type SegmentedEmits = typeof segmentedEmits;
|
|
@@ -36,12 +36,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
36
36
|
readonly type: BooleanConstructor;
|
|
37
37
|
readonly default: false;
|
|
38
38
|
};
|
|
39
|
+
readonly clearable: {
|
|
40
|
+
readonly type: BooleanConstructor;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
39
43
|
}>, {
|
|
40
44
|
/** @description 更新滑块位置 */
|
|
41
45
|
updateIndicator: () => void;
|
|
42
46
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
-
|
|
44
|
-
|
|
47
|
+
clear: () => void;
|
|
48
|
+
change: (value: SegmentedValueType | undefined) => void;
|
|
49
|
+
"update:modelValue": (value: SegmentedValueType | undefined) => void;
|
|
45
50
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
51
|
readonly modelValue: {
|
|
47
52
|
readonly type: import('vue').PropType<SegmentedValueType>;
|
|
@@ -79,9 +84,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
79
84
|
readonly type: BooleanConstructor;
|
|
80
85
|
readonly default: false;
|
|
81
86
|
};
|
|
87
|
+
readonly clearable: {
|
|
88
|
+
readonly type: BooleanConstructor;
|
|
89
|
+
readonly default: false;
|
|
90
|
+
};
|
|
82
91
|
}>> & Readonly<{
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
onClear?: (() => any) | undefined;
|
|
93
|
+
onChange?: ((value: SegmentedValueType | undefined) => any) | undefined;
|
|
94
|
+
"onUpdate:modelValue"?: ((value: SegmentedValueType | undefined) => any) | undefined;
|
|
85
95
|
}>, {
|
|
86
96
|
readonly size: import('@cyberpunk-vue/hooks').Size;
|
|
87
97
|
readonly type: import('./segmented').SegmentedType;
|
|
@@ -91,6 +101,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
91
101
|
readonly block: boolean;
|
|
92
102
|
readonly shape: import('./segmented').SegmentedShape;
|
|
93
103
|
readonly modelValue: SegmentedValueType;
|
|
104
|
+
readonly clearable: boolean;
|
|
94
105
|
readonly options: (string | number | SegmentedOption)[];
|
|
95
106
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
96
107
|
trackRef: HTMLDivElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberpunk-vue/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
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.
|
|
27
|
-
"@cyberpunk-vue/theme-chalk": "1.
|
|
28
|
-
"@cyberpunk-vue/constants": "1.
|
|
26
|
+
"@cyberpunk-vue/hooks": "1.10.0",
|
|
27
|
+
"@cyberpunk-vue/theme-chalk": "1.10.0",
|
|
28
|
+
"@cyberpunk-vue/constants": "1.10.0"
|
|
29
29
|
},
|
|
30
30
|
"author": "Juxest",
|
|
31
31
|
"license": "MIT",
|