@cyberpunk-vue/components 1.6.0 → 1.7.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 (51) hide show
  1. package/dist/button/index.d.ts +30 -0
  2. package/dist/button/index.d.ts.map +1 -1
  3. package/dist/button/src/button.d.ts +17 -0
  4. package/dist/button/src/button.d.ts.map +1 -1
  5. package/dist/button/src/button.vue.d.ts +18 -0
  6. package/dist/button/src/button.vue.d.ts.map +1 -1
  7. package/dist/card/index.d.ts +3 -3
  8. package/dist/card/src/card.vue.d.ts +1 -1
  9. package/dist/dropdown/index.d.ts +3 -3
  10. package/dist/dropdown/src/dropdown.vue.d.ts +1 -1
  11. package/dist/empty/index.d.ts +137 -0
  12. package/dist/empty/index.d.ts.map +1 -0
  13. package/dist/empty/src/empty.d.ts +63 -0
  14. package/dist/empty/src/empty.d.ts.map +1 -0
  15. package/dist/empty/src/empty.vue.d.ts +78 -0
  16. package/dist/empty/src/empty.vue.d.ts.map +1 -0
  17. package/dist/empty/src/instance.d.ts +3 -0
  18. package/dist/empty/src/instance.d.ts.map +1 -0
  19. package/dist/image/index.d.ts +60 -0
  20. package/dist/image/index.d.ts.map +1 -1
  21. package/dist/image/src/image.d.ts +36 -1
  22. package/dist/image/src/image.d.ts.map +1 -1
  23. package/dist/image/src/image.vue.d.ts +36 -0
  24. package/dist/image/src/image.vue.d.ts.map +1 -1
  25. package/dist/image-preview/index.d.ts +116 -0
  26. package/dist/image-preview/index.d.ts.map +1 -0
  27. package/dist/image-preview/src/image-preview.d.ts +99 -0
  28. package/dist/image-preview/src/image-preview.d.ts.map +1 -0
  29. package/dist/image-preview/src/image-preview.vue.d.ts +112 -0
  30. package/dist/image-preview/src/image-preview.vue.d.ts.map +1 -0
  31. package/dist/image-preview/src/instance.d.ts +3 -0
  32. package/dist/image-preview/src/instance.d.ts.map +1 -0
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.ts +2 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.mjs +4712 -3753
  37. package/dist/loading/index.d.ts +9 -0
  38. package/dist/loading/index.d.ts.map +1 -1
  39. package/dist/loading/src/loading.d.ts +17 -0
  40. package/dist/loading/src/loading.d.ts.map +1 -1
  41. package/dist/loading/src/loading.vue.d.ts +9 -0
  42. package/dist/loading/src/loading.vue.d.ts.map +1 -1
  43. package/dist/popover/src/popover.vue.d.ts +1 -1
  44. package/dist/tree/src/tree.vue.d.ts.map +1 -1
  45. package/dist/upload/index.d.ts +61 -1
  46. package/dist/upload/index.d.ts.map +1 -1
  47. package/dist/upload/src/upload.d.ts +37 -0
  48. package/dist/upload/src/upload.d.ts.map +1 -1
  49. package/dist/upload/src/upload.vue.d.ts +38 -2
  50. package/dist/upload/src/upload.vue.d.ts.map +1 -1
  51. package/package.json +4 -4
@@ -30,6 +30,10 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
30
30
  readonly type: import('vue').PropType<import('.').ButtonVariant>;
31
31
  readonly default: "solid";
32
32
  };
33
+ readonly dimmed: {
34
+ readonly type: BooleanConstructor;
35
+ readonly default: false;
36
+ };
33
37
  readonly disabled: {
34
38
  readonly type: BooleanConstructor;
35
39
  readonly default: false;
@@ -58,6 +62,10 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
58
62
  readonly type: BooleanConstructor;
59
63
  readonly default: false;
60
64
  };
65
+ readonly decoration: {
66
+ readonly type: BooleanConstructor;
67
+ readonly default: true;
68
+ };
61
69
  readonly loadingPlaceholder: {
62
70
  readonly type: BooleanConstructor;
63
71
  readonly default: false;
@@ -118,6 +126,7 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
118
126
  readonly size: import('@cyberpunk-vue/hooks').Size;
119
127
  readonly type: import('.').ButtonType;
120
128
  readonly variant: import('.').ButtonVariant;
129
+ readonly dimmed: boolean;
121
130
  readonly disabled: boolean;
122
131
  readonly loading: boolean;
123
132
  readonly block: boolean;
@@ -125,6 +134,7 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
125
134
  readonly color: string;
126
135
  readonly shape: "clip" | "no-clip" | "round" | "circle";
127
136
  readonly dashed: boolean;
137
+ readonly decoration: boolean;
128
138
  readonly loadingPlaceholder: boolean;
129
139
  readonly loadingDisabled: boolean;
130
140
  readonly textColor: string;
@@ -158,6 +168,10 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
158
168
  readonly type: import('vue').PropType<import('.').ButtonVariant>;
159
169
  readonly default: "solid";
160
170
  };
171
+ readonly dimmed: {
172
+ readonly type: BooleanConstructor;
173
+ readonly default: false;
174
+ };
161
175
  readonly disabled: {
162
176
  readonly type: BooleanConstructor;
163
177
  readonly default: false;
@@ -186,6 +200,10 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
186
200
  readonly type: BooleanConstructor;
187
201
  readonly default: false;
188
202
  };
203
+ readonly decoration: {
204
+ readonly type: BooleanConstructor;
205
+ readonly default: true;
206
+ };
189
207
  readonly loadingPlaceholder: {
190
208
  readonly type: BooleanConstructor;
191
209
  readonly default: false;
@@ -244,6 +262,7 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
244
262
  readonly size: import('@cyberpunk-vue/hooks').Size;
245
263
  readonly type: import('.').ButtonType;
246
264
  readonly variant: import('.').ButtonVariant;
265
+ readonly dimmed: boolean;
247
266
  readonly disabled: boolean;
248
267
  readonly loading: boolean;
249
268
  readonly block: boolean;
@@ -251,6 +270,7 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
251
270
  readonly color: string;
252
271
  readonly shape: "clip" | "no-clip" | "round" | "circle";
253
272
  readonly dashed: boolean;
273
+ readonly decoration: boolean;
254
274
  readonly loadingPlaceholder: boolean;
255
275
  readonly loadingDisabled: boolean;
256
276
  readonly textColor: string;
@@ -281,6 +301,10 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
281
301
  readonly type: import('vue').PropType<import('.').ButtonVariant>;
282
302
  readonly default: "solid";
283
303
  };
304
+ readonly dimmed: {
305
+ readonly type: BooleanConstructor;
306
+ readonly default: false;
307
+ };
284
308
  readonly disabled: {
285
309
  readonly type: BooleanConstructor;
286
310
  readonly default: false;
@@ -309,6 +333,10 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
309
333
  readonly type: BooleanConstructor;
310
334
  readonly default: false;
311
335
  };
336
+ readonly decoration: {
337
+ readonly type: BooleanConstructor;
338
+ readonly default: true;
339
+ };
312
340
  readonly loadingPlaceholder: {
313
341
  readonly type: BooleanConstructor;
314
342
  readonly default: false;
@@ -369,6 +397,7 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
369
397
  readonly size: import('@cyberpunk-vue/hooks').Size;
370
398
  readonly type: import('.').ButtonType;
371
399
  readonly variant: import('.').ButtonVariant;
400
+ readonly dimmed: boolean;
372
401
  readonly disabled: boolean;
373
402
  readonly loading: boolean;
374
403
  readonly block: boolean;
@@ -376,6 +405,7 @@ export declare const CpButton: import('../utils').SFCWithInstall<{
376
405
  readonly color: string;
377
406
  readonly shape: "clip" | "no-clip" | "round" | "circle";
378
407
  readonly dashed: boolean;
408
+ readonly decoration: boolean;
379
409
  readonly loadingPlaceholder: boolean;
380
410
  readonly loadingDisabled: boolean;
381
411
  readonly textColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../button/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsB,CAAA;AAC3C,eAAe,QAAQ,CAAA;AAEvB,cAAc,cAAc,CAAA;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../button/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsB,CAAA;AAC3C,eAAe,QAAQ,CAAA;AAEvB,cAAc,cAAc,CAAA;AAC5B,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
@@ -83,6 +83,15 @@ export declare const buttonProps: {
83
83
  readonly type: PropType<ButtonVariant>;
84
84
  readonly default: "solid";
85
85
  };
86
+ /**
87
+ * 是否为减淡模式
88
+ * 减淡模式下组件默认以无色彩(default)外观展示,仅在 hover 时显示主题色
89
+ * @default false
90
+ */
91
+ readonly dimmed: {
92
+ readonly type: BooleanConstructor;
93
+ readonly default: false;
94
+ };
86
95
  /**
87
96
  * 是否禁用按钮
88
97
  * 禁用后按钮不可点击,样式变为灰色
@@ -152,6 +161,14 @@ export declare const buttonProps: {
152
161
  readonly type: BooleanConstructor;
153
162
  readonly default: false;
154
163
  };
164
+ /**
165
+ * 是否显示装饰块 (仅在 shape="clip" 时有效)
166
+ * @default true
167
+ */
168
+ readonly decoration: {
169
+ readonly type: BooleanConstructor;
170
+ readonly default: true;
171
+ };
155
172
  /**
156
173
  * 是否为 Loading 预留空间
157
174
  * 开启后按钮宽度固定,Loading 出现/消失时不会导致布局抖动
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../button/src/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAA;AAE7B;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,WAAW;IACpB;;;;OAIG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;OAIG;;uBAE2B,QAAQ,CAAC,UAAU,CAAC;;;IAGlD;;;;OAIG;;uBAEiB,QAAQ,CAAC,aAAa,CAAC;;;IAG3C;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;;;OAMG;;uBAEiB,QAAQ,CAAC,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAG3D;;;;;OAKG;;;;;IAKH;;;;;;;OAOG;;uBAEiB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AED,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA"}
@@ -22,6 +22,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
22
22
  readonly type: import('vue').PropType<import('./button').ButtonVariant>;
23
23
  readonly default: "solid";
24
24
  };
25
+ readonly dimmed: {
26
+ readonly type: BooleanConstructor;
27
+ readonly default: false;
28
+ };
25
29
  readonly disabled: {
26
30
  readonly type: BooleanConstructor;
27
31
  readonly default: false;
@@ -50,6 +54,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
50
54
  readonly type: BooleanConstructor;
51
55
  readonly default: false;
52
56
  };
57
+ readonly decoration: {
58
+ readonly type: BooleanConstructor;
59
+ readonly default: true;
60
+ };
53
61
  readonly loadingPlaceholder: {
54
62
  readonly type: BooleanConstructor;
55
63
  readonly default: false;
@@ -117,6 +125,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
117
125
  readonly type: import('vue').PropType<import('./button').ButtonVariant>;
118
126
  readonly default: "solid";
119
127
  };
128
+ readonly dimmed: {
129
+ readonly type: BooleanConstructor;
130
+ readonly default: false;
131
+ };
120
132
  readonly disabled: {
121
133
  readonly type: BooleanConstructor;
122
134
  readonly default: false;
@@ -145,6 +157,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
145
157
  readonly type: BooleanConstructor;
146
158
  readonly default: false;
147
159
  };
160
+ readonly decoration: {
161
+ readonly type: BooleanConstructor;
162
+ readonly default: true;
163
+ };
148
164
  readonly loadingPlaceholder: {
149
165
  readonly type: BooleanConstructor;
150
166
  readonly default: false;
@@ -203,6 +219,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
203
219
  readonly size: import('@cyberpunk-vue/hooks').Size;
204
220
  readonly type: import('./button').ButtonType;
205
221
  readonly variant: import('./button').ButtonVariant;
222
+ readonly dimmed: boolean;
206
223
  readonly disabled: boolean;
207
224
  readonly loading: boolean;
208
225
  readonly block: boolean;
@@ -210,6 +227,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
210
227
  readonly color: string;
211
228
  readonly shape: "clip" | "no-clip" | "round" | "circle";
212
229
  readonly dashed: boolean;
230
+ readonly decoration: boolean;
213
231
  readonly loadingPlaceholder: boolean;
214
232
  readonly loadingDisabled: boolean;
215
233
  readonly textColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../button/src/button.vue"],"names":[],"mappings":"AAqRA,iBAAS,cAAc;WAyJT,OAAO,IAA6B;;wBAZrB,GAAG;yBACF,GAAG;wBACJ,GAAG;;;;EAe/B;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../button/src/button.vue"],"names":[],"mappings":"AAqVA,iBAAS,cAAc;WAyJT,OAAO,IAA6B;;wBAZrB,GAAG;yBACF,GAAG;wBACJ,GAAG;;;;EAe/B;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -127,6 +127,7 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
127
127
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
128
128
  readonly type: import('.').CardType;
129
129
  readonly variant: import('.').CardVariant;
130
+ readonly dimmed: boolean;
130
131
  readonly color: string;
131
132
  readonly shape: import('.').CardShape;
132
133
  readonly title: string;
@@ -144,7 +145,6 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
144
145
  readonly actionColor: string;
145
146
  readonly actionBlur: string | number;
146
147
  readonly bgColor: string;
147
- readonly dimmed: boolean;
148
148
  readonly dimmedDuration: import('@cyberpunk-vue/hooks').DurationValue;
149
149
  readonly triggerImageHover: boolean;
150
150
  readonly hoverScale: boolean;
@@ -262,6 +262,7 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
262
262
  }>> & Readonly<{}>, {}, {}, {}, {}, {
263
263
  readonly type: import('.').CardType;
264
264
  readonly variant: import('.').CardVariant;
265
+ readonly dimmed: boolean;
265
266
  readonly color: string;
266
267
  readonly shape: import('.').CardShape;
267
268
  readonly title: string;
@@ -279,7 +280,6 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
279
280
  readonly actionColor: string;
280
281
  readonly actionBlur: string | number;
281
282
  readonly bgColor: string;
282
- readonly dimmed: boolean;
283
283
  readonly dimmedDuration: import('@cyberpunk-vue/hooks').DurationValue;
284
284
  readonly triggerImageHover: boolean;
285
285
  readonly hoverScale: boolean;
@@ -394,6 +394,7 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
394
394
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
395
395
  readonly type: import('.').CardType;
396
396
  readonly variant: import('.').CardVariant;
397
+ readonly dimmed: boolean;
397
398
  readonly color: string;
398
399
  readonly shape: import('.').CardShape;
399
400
  readonly title: string;
@@ -411,7 +412,6 @@ export declare const CpCard: import('../utils').SFCWithInstall<{
411
412
  readonly actionColor: string;
412
413
  readonly actionBlur: string | number;
413
414
  readonly bgColor: string;
414
- readonly dimmed: boolean;
415
415
  readonly dimmedDuration: import('@cyberpunk-vue/hooks').DurationValue;
416
416
  readonly triggerImageHover: boolean;
417
417
  readonly hoverScale: boolean;
@@ -224,6 +224,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
224
224
  }>> & Readonly<{}>, {
225
225
  readonly type: import('./card').CardType;
226
226
  readonly variant: import('./card').CardVariant;
227
+ readonly dimmed: boolean;
227
228
  readonly color: string;
228
229
  readonly shape: import('./card').CardShape;
229
230
  readonly title: string;
@@ -241,7 +242,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
241
242
  readonly actionColor: string;
242
243
  readonly actionBlur: string | number;
243
244
  readonly bgColor: string;
244
- readonly dimmed: boolean;
245
245
  readonly dimmedDuration: import('@cyberpunk-vue/hooks').DurationValue;
246
246
  readonly triggerImageHover: boolean;
247
247
  readonly hoverScale: boolean;
@@ -136,8 +136,8 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
136
136
  readonly maxHeight: number;
137
137
  readonly inline: boolean;
138
138
  readonly inactiveColor: string;
139
- readonly placement: import('.').DropdownPlacement;
140
139
  readonly teleportTo: string | HTMLElement;
140
+ readonly placement: import('.').DropdownPlacement;
141
141
  readonly options: import('.').DropdownOption[];
142
142
  readonly filterPlaceholder: string;
143
143
  readonly filterable: boolean;
@@ -268,8 +268,8 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
268
268
  readonly maxHeight: number;
269
269
  readonly inline: boolean;
270
270
  readonly inactiveColor: string;
271
- readonly placement: import('.').DropdownPlacement;
272
271
  readonly teleportTo: string | HTMLElement;
272
+ readonly placement: import('.').DropdownPlacement;
273
273
  readonly options: import('.').DropdownOption[];
274
274
  readonly filterPlaceholder: string;
275
275
  readonly filterable: boolean;
@@ -399,8 +399,8 @@ export declare const CpDropdown: import('../utils').SFCWithInstall<{
399
399
  readonly maxHeight: number;
400
400
  readonly inline: boolean;
401
401
  readonly inactiveColor: string;
402
- readonly placement: import('.').DropdownPlacement;
403
402
  readonly teleportTo: string | HTMLElement;
403
+ readonly placement: import('.').DropdownPlacement;
404
404
  readonly options: import('.').DropdownOption[];
405
405
  readonly filterPlaceholder: string;
406
406
  readonly filterable: boolean;
@@ -227,8 +227,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
227
227
  readonly maxHeight: number;
228
228
  readonly inline: boolean;
229
229
  readonly inactiveColor: string;
230
- readonly placement: import('./dropdown').DropdownPlacement;
231
230
  readonly teleportTo: string | HTMLElement;
231
+ readonly placement: import('./dropdown').DropdownPlacement;
232
232
  readonly options: DropdownOption[];
233
233
  readonly filterPlaceholder: string;
234
234
  readonly filterable: boolean;
@@ -0,0 +1,137 @@
1
+ /**
2
+ * CpEmpty 赛博朋克风格空状态组件
3
+ *
4
+ * 用于无数据、无搜索结果、网络错误等场景的占位展示。
5
+ * 组件始终撑满父容器,水平+垂直居中。
6
+ *
7
+ * @example
8
+ * ```vue
9
+ * <CpEmpty />
10
+ * <CpEmpty title="无搜索结果" description="请尝试不同的关键词" />
11
+ * <CpEmpty type="primary">
12
+ * <CpButton type="primary">刷新</CpButton>
13
+ * </CpEmpty>
14
+ * ```
15
+ *
16
+ * @see {@link EmptyProps} 查看所有可用属性
17
+ */
18
+ export declare const CpEmpty: import('../utils').SFCWithInstall<{
19
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
20
+ readonly title: {
21
+ readonly type: StringConstructor;
22
+ readonly default: "暂无数据";
23
+ };
24
+ readonly description: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "";
27
+ };
28
+ readonly icon: {
29
+ readonly type: import('vue').PropType<string | import('vue').Component>;
30
+ readonly default: "";
31
+ };
32
+ readonly imageSize: {
33
+ readonly type: NumberConstructor;
34
+ readonly default: 64;
35
+ };
36
+ readonly type: {
37
+ readonly type: import('vue').PropType<import('.').EmptyType>;
38
+ readonly default: "default";
39
+ };
40
+ readonly color: {
41
+ readonly type: StringConstructor;
42
+ readonly default: "";
43
+ };
44
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
45
+ readonly type: import('.').EmptyType;
46
+ readonly color: string;
47
+ readonly icon: string | import('vue').Component;
48
+ readonly title: string;
49
+ readonly description: string;
50
+ readonly imageSize: number;
51
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
52
+ P: {};
53
+ B: {};
54
+ D: {};
55
+ C: {};
56
+ M: {};
57
+ Defaults: {};
58
+ }, Readonly<import('vue').ExtractPropTypes<{
59
+ readonly title: {
60
+ readonly type: StringConstructor;
61
+ readonly default: "暂无数据";
62
+ };
63
+ readonly description: {
64
+ readonly type: StringConstructor;
65
+ readonly default: "";
66
+ };
67
+ readonly icon: {
68
+ readonly type: import('vue').PropType<string | import('vue').Component>;
69
+ readonly default: "";
70
+ };
71
+ readonly imageSize: {
72
+ readonly type: NumberConstructor;
73
+ readonly default: 64;
74
+ };
75
+ readonly type: {
76
+ readonly type: import('vue').PropType<import('.').EmptyType>;
77
+ readonly default: "default";
78
+ };
79
+ readonly color: {
80
+ readonly type: StringConstructor;
81
+ readonly default: "";
82
+ };
83
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
84
+ readonly type: import('.').EmptyType;
85
+ readonly color: string;
86
+ readonly icon: string | import('vue').Component;
87
+ readonly title: string;
88
+ readonly description: string;
89
+ readonly imageSize: number;
90
+ }>;
91
+ __isFragment?: never;
92
+ __isTeleport?: never;
93
+ __isSuspense?: never;
94
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
95
+ readonly title: {
96
+ readonly type: StringConstructor;
97
+ readonly default: "暂无数据";
98
+ };
99
+ readonly description: {
100
+ readonly type: StringConstructor;
101
+ readonly default: "";
102
+ };
103
+ readonly icon: {
104
+ readonly type: import('vue').PropType<string | import('vue').Component>;
105
+ readonly default: "";
106
+ };
107
+ readonly imageSize: {
108
+ readonly type: NumberConstructor;
109
+ readonly default: 64;
110
+ };
111
+ readonly type: {
112
+ readonly type: import('vue').PropType<import('.').EmptyType>;
113
+ readonly default: "default";
114
+ };
115
+ readonly color: {
116
+ readonly type: StringConstructor;
117
+ readonly default: "";
118
+ };
119
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
120
+ readonly type: import('.').EmptyType;
121
+ readonly color: string;
122
+ readonly icon: string | import('vue').Component;
123
+ readonly title: string;
124
+ readonly description: string;
125
+ readonly imageSize: number;
126
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
127
+ $slots: {
128
+ icon?(_: {}): any;
129
+ title?(_: {}): any;
130
+ description?(_: {}): any;
131
+ default?(_: {}): any;
132
+ };
133
+ })>;
134
+ export default CpEmpty;
135
+ export * from './src/empty';
136
+ export type { CpEmptyInstance } from './src/instance';
137
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../empty/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqB,CAAA;AACzC,eAAe,OAAO,CAAA;AAEtB,cAAc,aAAa,CAAA;AAC3B,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,63 @@
1
+ import { Component, ExtractPropTypes, PropType } from 'vue';
2
+ /**
3
+ * 空状态颜色类型
4
+ */
5
+ export type EmptyType = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'default';
6
+ /**
7
+ * CpEmpty 组件 Props 定义
8
+ *
9
+ * @description 赛博朋克风格空状态组件,用于无数据、无搜索结果等场景。
10
+ * 组件始终撑满父容器,水平+垂直居中展示。
11
+ */
12
+ export declare const emptyProps: {
13
+ /**
14
+ * 标题文本(粗体大字)
15
+ * @default '暂无数据'
16
+ */
17
+ readonly title: {
18
+ readonly type: StringConstructor;
19
+ readonly default: "暂无数据";
20
+ };
21
+ /**
22
+ * 描述/副标题文本(次要灰色小字)
23
+ * @default ''
24
+ */
25
+ readonly description: {
26
+ readonly type: StringConstructor;
27
+ readonly default: "";
28
+ };
29
+ /**
30
+ * 自定义图标名称(使用 CpIcon)
31
+ * @default ''
32
+ */
33
+ readonly icon: {
34
+ readonly type: PropType<string | Component>;
35
+ readonly default: "";
36
+ };
37
+ /**
38
+ * 图标尺寸 (px)
39
+ * @default 64
40
+ */
41
+ readonly imageSize: {
42
+ readonly type: NumberConstructor;
43
+ readonly default: 64;
44
+ };
45
+ /**
46
+ * 颜色类型
47
+ * @default 'default'
48
+ */
49
+ readonly type: {
50
+ readonly type: PropType<EmptyType>;
51
+ readonly default: "default";
52
+ };
53
+ /**
54
+ * 自定义颜色(覆盖 type)
55
+ * @default ''
56
+ */
57
+ readonly color: {
58
+ readonly type: StringConstructor;
59
+ readonly default: "";
60
+ };
61
+ };
62
+ export type EmptyProps = ExtractPropTypes<typeof emptyProps>;
63
+ //# sourceMappingURL=empty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../empty/src/empty.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAExF;;;;;GAKG;AACH,eAAO,MAAM,UAAU;IACnB;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;uBAE2B,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;IAI1D;;;OAGG;;;;;IAMH;;;OAGG;;uBAEiB,QAAQ,CAAC,SAAS,CAAC;;;IAIvC;;;OAGG;;;;;CAKG,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAA"}
@@ -0,0 +1,78 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ icon?(_: {}): any;
5
+ title?(_: {}): any;
6
+ description?(_: {}): any;
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: HTMLDivElement;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
14
+ readonly title: {
15
+ readonly type: StringConstructor;
16
+ readonly default: "暂无数据";
17
+ };
18
+ readonly description: {
19
+ readonly type: StringConstructor;
20
+ readonly default: "";
21
+ };
22
+ readonly icon: {
23
+ readonly type: import('vue').PropType<string | import('vue').Component>;
24
+ readonly default: "";
25
+ };
26
+ readonly imageSize: {
27
+ readonly type: NumberConstructor;
28
+ readonly default: 64;
29
+ };
30
+ readonly type: {
31
+ readonly type: import('vue').PropType<import('./empty').EmptyType>;
32
+ readonly default: "default";
33
+ };
34
+ readonly color: {
35
+ readonly type: StringConstructor;
36
+ readonly default: "";
37
+ };
38
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
39
+ readonly title: {
40
+ readonly type: StringConstructor;
41
+ readonly default: "暂无数据";
42
+ };
43
+ readonly description: {
44
+ readonly type: StringConstructor;
45
+ readonly default: "";
46
+ };
47
+ readonly icon: {
48
+ readonly type: import('vue').PropType<string | import('vue').Component>;
49
+ readonly default: "";
50
+ };
51
+ readonly imageSize: {
52
+ readonly type: NumberConstructor;
53
+ readonly default: 64;
54
+ };
55
+ readonly type: {
56
+ readonly type: import('vue').PropType<import('./empty').EmptyType>;
57
+ readonly default: "default";
58
+ };
59
+ readonly color: {
60
+ readonly type: StringConstructor;
61
+ readonly default: "";
62
+ };
63
+ }>> & Readonly<{}>, {
64
+ readonly type: import('./empty').EmptyType;
65
+ readonly color: string;
66
+ readonly icon: string | import('vue').Component;
67
+ readonly title: string;
68
+ readonly description: string;
69
+ readonly imageSize: number;
70
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
71
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
72
+ export default _default;
73
+ type __VLS_WithTemplateSlots<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };
78
+ //# sourceMappingURL=empty.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.vue.d.ts","sourceRoot":"","sources":["../../../empty/src/empty.vue"],"names":[],"mappings":"AAoIA,iBAAS,cAAc;WAoIT,OAAO,IAA6B;;sBAbxB,GAAG;uBACF,GAAG;6BACG,GAAG;yBACP,GAAG;;;;EAe/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { default as CpEmpty } from './empty.vue';
2
+ export type CpEmptyInstance = InstanceType<typeof CpEmpty> & unknown;
3
+ //# sourceMappingURL=instance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../empty/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,aAAa,CAAA;AAEtC,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,GAAG,OAAO,CAAA"}