@cyberpunk-vue/components 1.13.6 → 1.13.8

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.
@@ -79,14 +79,18 @@ export declare const CpPagination: import('../utils').SFCWithInstall<{
79
79
  };
80
80
  }>> & Readonly<{
81
81
  onChange?: ((page: number) => any) | undefined;
82
+ "onCurrent-change"?: ((page: number) => any) | undefined;
82
83
  "onUpdate:currentPage"?: ((page: number) => any) | undefined;
83
84
  "onUpdate:pageSize"?: ((size: number) => any) | undefined;
84
85
  onSizeChange?: ((size: number) => any) | undefined;
86
+ "onSize-change"?: ((size: number) => any) | undefined;
85
87
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
86
88
  change: (page: number) => void;
89
+ "current-change": (page: number) => void;
87
90
  "update:currentPage": (page: number) => void;
88
91
  "update:pageSize": (size: number) => void;
89
92
  sizeChange: (size: number) => void;
93
+ "size-change": (size: number) => void;
90
94
  }, import('vue').PublicProps, {
91
95
  readonly size: import('@cyberpunk-vue/hooks').Size;
92
96
  readonly total: number;
@@ -174,9 +178,11 @@ export declare const CpPagination: import('../utils').SFCWithInstall<{
174
178
  };
175
179
  }>> & Readonly<{
176
180
  onChange?: ((page: number) => any) | undefined;
181
+ "onCurrent-change"?: ((page: number) => any) | undefined;
177
182
  "onUpdate:currentPage"?: ((page: number) => any) | undefined;
178
183
  "onUpdate:pageSize"?: ((size: number) => any) | undefined;
179
184
  onSizeChange?: ((size: number) => any) | undefined;
185
+ "onSize-change"?: ((size: number) => any) | undefined;
180
186
  }>, {}, {}, {}, {}, {
181
187
  readonly size: import('@cyberpunk-vue/hooks').Size;
182
188
  readonly total: number;
@@ -261,14 +267,18 @@ export declare const CpPagination: import('../utils').SFCWithInstall<{
261
267
  };
262
268
  }>> & Readonly<{
263
269
  onChange?: ((page: number) => any) | undefined;
270
+ "onCurrent-change"?: ((page: number) => any) | undefined;
264
271
  "onUpdate:currentPage"?: ((page: number) => any) | undefined;
265
272
  "onUpdate:pageSize"?: ((size: number) => any) | undefined;
266
273
  onSizeChange?: ((size: number) => any) | undefined;
274
+ "onSize-change"?: ((size: number) => any) | undefined;
267
275
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
268
276
  change: (page: number) => void;
277
+ "current-change": (page: number) => void;
269
278
  "update:currentPage": (page: number) => void;
270
279
  "update:pageSize": (size: number) => void;
271
280
  sizeChange: (size: number) => void;
281
+ "size-change": (size: number) => void;
272
282
  }, string, {
273
283
  readonly size: import('@cyberpunk-vue/hooks').Size;
274
284
  readonly total: number;
@@ -21,8 +21,9 @@ export type PaginationSize = Size;
21
21
  * - `pager` — 页码按钮组
22
22
  * - `next` — 下一页按钮
23
23
  * - `jumper` — 页码跳转输入框
24
+ * - `spacer` — 弹性占位
24
25
  */
25
- export type PaginationLayout = 'total' | 'sizes' | 'prev' | 'pager' | 'next' | 'jumper';
26
+ export type PaginationLayout = 'total' | 'sizes' | 'prev' | 'pager' | 'next' | 'jumper' | 'spacer';
26
27
  /**
27
28
  * CpPagination 组件 Props 定义
28
29
  *
@@ -88,7 +89,7 @@ export declare const paginationProps: {
88
89
  };
89
90
  /**
90
91
  * 布局配置,逗号分隔
91
- * 可选模块: total, sizes, prev, pager, next, jumper
92
+ * 可选模块: total, sizes, prev, pager, next, jumper, spacer
92
93
  * @default 'prev, pager, next'
93
94
  */
94
95
  readonly layout: {
@@ -183,7 +184,11 @@ export declare const paginationEmits: {
183
184
  'update:pageSize': (size: number) => boolean;
184
185
  /** 页码变化事件(同 update:currentPage,便于监听) */
185
186
  change: (page: number) => boolean;
187
+ /** 当前页码变化事件 */
188
+ 'current-change': (page: number) => boolean;
186
189
  /** 每页条数变化事件 */
187
190
  sizeChange: (size: number) => boolean;
191
+ /** 每页条数变化事件 */
192
+ 'size-change': (size: number) => boolean;
188
193
  };
189
194
  export type PaginationEmits = typeof paginationEmits;
@@ -140,9 +140,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
140
140
  };
141
141
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
142
142
  change: (page: number) => void;
143
+ "current-change": (page: number) => void;
143
144
  "update:currentPage": (page: number) => void;
144
145
  "update:pageSize": (size: number) => void;
145
146
  sizeChange: (size: number) => void;
147
+ "size-change": (size: number) => void;
146
148
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
147
149
  readonly currentPage: {
148
150
  readonly type: NumberConstructor;
@@ -207,9 +209,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
207
209
  };
208
210
  }>> & Readonly<{
209
211
  onChange?: ((page: number) => any) | undefined;
212
+ "onCurrent-change"?: ((page: number) => any) | undefined;
210
213
  "onUpdate:currentPage"?: ((page: number) => any) | undefined;
211
214
  "onUpdate:pageSize"?: ((size: number) => any) | undefined;
212
215
  onSizeChange?: ((size: number) => any) | undefined;
216
+ "onSize-change"?: ((size: number) => any) | undefined;
213
217
  }>, {
214
218
  readonly size: import('@cyberpunk-vue/hooks').Size;
215
219
  readonly total: number;
@@ -174,11 +174,12 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
174
174
  readonly placement: import('@floating-ui/dom').Placement;
175
175
  readonly confirm: boolean | undefined;
176
176
  readonly valueFormat: string;
177
+ readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
178
+ readonly disabledDate: (date: Date) => boolean;
177
179
  readonly startPlaceholder: string;
178
180
  readonly endPlaceholder: string;
179
181
  readonly rangeSeparator: string;
180
182
  readonly editable: boolean;
181
- readonly disabledDate: (date: Date) => boolean;
182
183
  readonly disabledHours: import('../date-picker/src/picker').DisabledTimeResolver;
183
184
  readonly disabledMinutes: import('../date-picker/src/picker').DisabledTimeResolver;
184
185
  readonly disabledSeconds: import('../date-picker/src/picker').DisabledTimeResolver;
@@ -187,7 +188,6 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
187
188
  readonly secondStep: number;
188
189
  readonly showSeconds: boolean;
189
190
  readonly shortcuts: import('../date-picker/src/picker').PickerShortcut[];
190
- readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
191
191
  readonly defaultTime: string | [string, string];
192
192
  readonly unlinkPanels: boolean;
193
193
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -360,11 +360,12 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
360
360
  readonly placement: import('@floating-ui/dom').Placement;
361
361
  readonly confirm: boolean | undefined;
362
362
  readonly valueFormat: string;
363
+ readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
364
+ readonly disabledDate: (date: Date) => boolean;
363
365
  readonly startPlaceholder: string;
364
366
  readonly endPlaceholder: string;
365
367
  readonly rangeSeparator: string;
366
368
  readonly editable: boolean;
367
- readonly disabledDate: (date: Date) => boolean;
368
369
  readonly disabledHours: import('../date-picker/src/picker').DisabledTimeResolver;
369
370
  readonly disabledMinutes: import('../date-picker/src/picker').DisabledTimeResolver;
370
371
  readonly disabledSeconds: import('../date-picker/src/picker').DisabledTimeResolver;
@@ -373,7 +374,6 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
373
374
  readonly secondStep: number;
374
375
  readonly showSeconds: boolean;
375
376
  readonly shortcuts: import('../date-picker/src/picker').PickerShortcut[];
376
- readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
377
377
  readonly defaultTime: string | [string, string];
378
378
  readonly unlinkPanels: boolean;
379
379
  }>;
@@ -550,11 +550,12 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
550
550
  readonly placement: import('@floating-ui/dom').Placement;
551
551
  readonly confirm: boolean | undefined;
552
552
  readonly valueFormat: string;
553
+ readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
554
+ readonly disabledDate: (date: Date) => boolean;
553
555
  readonly startPlaceholder: string;
554
556
  readonly endPlaceholder: string;
555
557
  readonly rangeSeparator: string;
556
558
  readonly editable: boolean;
557
- readonly disabledDate: (date: Date) => boolean;
558
559
  readonly disabledHours: import('../date-picker/src/picker').DisabledTimeResolver;
559
560
  readonly disabledMinutes: import('../date-picker/src/picker').DisabledTimeResolver;
560
561
  readonly disabledSeconds: import('../date-picker/src/picker').DisabledTimeResolver;
@@ -563,7 +564,6 @@ export declare const CpTimePicker: import('../utils').SFCWithInstall<{
563
564
  readonly secondStep: number;
564
565
  readonly showSeconds: boolean;
565
566
  readonly shortcuts: import('../date-picker/src/picker').PickerShortcut[];
566
- readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
567
567
  readonly defaultTime: string | [string, string];
568
568
  readonly unlinkPanels: boolean;
569
569
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -320,11 +320,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
320
320
  readonly placement: import('@floating-ui/dom').Placement;
321
321
  readonly confirm: boolean | undefined;
322
322
  readonly valueFormat: string;
323
+ readonly defaultValue: import('..').PickerValueItem;
324
+ readonly disabledDate: (date: Date) => boolean;
323
325
  readonly startPlaceholder: string;
324
326
  readonly endPlaceholder: string;
325
327
  readonly rangeSeparator: string;
326
328
  readonly editable: boolean;
327
- readonly disabledDate: (date: Date) => boolean;
328
329
  readonly disabledHours: import('..').DisabledTimeResolver;
329
330
  readonly disabledMinutes: import('..').DisabledTimeResolver;
330
331
  readonly disabledSeconds: import('..').DisabledTimeResolver;
@@ -333,7 +334,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
333
334
  readonly secondStep: number;
334
335
  readonly showSeconds: boolean;
335
336
  readonly shortcuts: import('..').PickerShortcut[];
336
- readonly defaultValue: import('..').PickerValueItem;
337
337
  readonly defaultTime: string | [string, string];
338
338
  readonly unlinkPanels: boolean;
339
339
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyberpunk-vue/components",
3
- "version": "1.13.6",
3
+ "version": "1.13.8",
4
4
  "description": "Cyberpunk Vue components - A futuristic Vue 3 component library",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -25,9 +25,9 @@
25
25
  "dependencies": {
26
26
  "@floating-ui/dom": "^1.7.6",
27
27
  "dayjs": "^1.11.20",
28
- "@cyberpunk-vue/hooks": "1.13.6",
29
- "@cyberpunk-vue/constants": "1.13.6",
30
- "@cyberpunk-vue/theme-chalk": "1.13.6"
28
+ "@cyberpunk-vue/hooks": "1.13.8",
29
+ "@cyberpunk-vue/constants": "1.13.8",
30
+ "@cyberpunk-vue/theme-chalk": "1.13.8"
31
31
  },
32
32
  "author": "Juxest",
33
33
  "license": "MIT",