@vtj/ui 0.12.48 → 0.12.50

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.
@@ -5,6 +5,7 @@ import { DraggableOptions, ResizableOptions } from '../..';
5
5
  import { IconParam } from '../icon';
6
6
  import { UseMouseSourceType, Position } from '@vueuse/core';
7
7
  import { ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, ContainerProps } from '../container';
8
+ import { PanelBadge } from '../panel';
8
9
  import { OnCleanup } from '@vue/reactivity';
9
10
  import { HeaderProps } from '../header';
10
11
  import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext, ComponentSize, FormItemValidateState, FormRules } from 'element-plus';
@@ -296,6 +297,7 @@ declare function __VLS_template(): {
296
297
  type: BooleanConstructor;
297
298
  };
298
299
  }>>> | null | undefined;
300
+ readonly badge?: PanelBadge | undefined;
299
301
  readonly width?: string | number | undefined;
300
302
  readonly height?: string | number | undefined;
301
303
  readonly shadow?: "none" | "hover" | "always" | undefined;
@@ -566,6 +568,9 @@ declare function __VLS_template(): {
566
568
  $emit: (event: string, ...args: any[]) => void;
567
569
  $el: any;
568
570
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
571
+ badge: {
572
+ type: PropType<PanelBadge>;
573
+ };
569
574
  fit: {
570
575
  type: BooleanConstructor;
571
576
  default: boolean;
@@ -635,6 +640,9 @@ declare function __VLS_template(): {
635
640
  border: boolean;
636
641
  card: boolean;
637
642
  }> & Omit<Readonly< ExtractPropTypes<{
643
+ badge: {
644
+ type: PropType<PanelBadge>;
645
+ };
638
646
  fit: {
639
647
  type: BooleanConstructor;
640
648
  default: boolean;
@@ -3142,6 +3150,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
3142
3150
  type: BooleanConstructor;
3143
3151
  };
3144
3152
  }>>> | null | undefined;
3153
+ readonly badge?: PanelBadge | undefined;
3145
3154
  readonly width?: string | number | undefined;
3146
3155
  readonly height?: string | number | undefined;
3147
3156
  readonly shadow?: "none" | "hover" | "always" | undefined;
@@ -3412,6 +3421,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
3412
3421
  $emit: (event: string, ...args: any[]) => void;
3413
3422
  $el: any;
3414
3423
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
3424
+ badge: {
3425
+ type: PropType<PanelBadge>;
3426
+ };
3415
3427
  fit: {
3416
3428
  type: BooleanConstructor;
3417
3429
  default: boolean;
@@ -3481,6 +3493,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
3481
3493
  border: boolean;
3482
3494
  card: boolean;
3483
3495
  }> & Omit<Readonly< ExtractPropTypes<{
3496
+ badge: {
3497
+ type: PropType<PanelBadge>;
3498
+ };
3484
3499
  fit: {
3485
3500
  type: BooleanConstructor;
3486
3501
  default: boolean;
@@ -1,7 +1,7 @@
1
1
  import { DialogGridProps } from './types';
2
2
  import { VxeTableConstructor, VxeGridConstructor, VxeTableProps, VxeGridEventProps, VxeGridSlots, VxeTableDataRow, SlotVNodeType, VxeGridInstance } from 'vxe-table';
3
3
  import { ComponentInternalInstance, VNode, RendererNode, RendererElement, DefineComponent, ShallowRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, PublicProps } from 'vue';
4
- import { BaseSize, DialogMode, IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, HeaderProps, ContainerProps, GridColumns, GridCustomInfo, GridLoader, GridCellRenders, GridEditRenders, GridFilterRenders, GridSortableEvent, GridSortableOptions } from '..';
4
+ import { BaseSize, DialogMode, IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, PanelBadge, HeaderProps, ContainerProps, GridColumns, GridCustomInfo, GridLoader, GridCellRenders, GridEditRenders, GridFilterRenders, GridSortableEvent, GridSortableOptions } from '..';
5
5
  import { DraggableOptions, ResizableOptions } from '../..';
6
6
  import { UseMouseSourceType, Position } from '@vueuse/core';
7
7
  import { OnCleanup } from '@vue/reactivity';
@@ -311,6 +311,7 @@ declare function __VLS_template(): {
311
311
  type: BooleanConstructor;
312
312
  };
313
313
  }>>> | null | undefined;
314
+ readonly badge?: PanelBadge | undefined;
314
315
  readonly width?: string | number | undefined;
315
316
  readonly height?: string | number | undefined;
316
317
  readonly shadow?: "none" | "hover" | "always" | undefined;
@@ -581,6 +582,9 @@ declare function __VLS_template(): {
581
582
  $emit: (event: string, ...args: any[]) => void;
582
583
  $el: any;
583
584
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
585
+ badge: {
586
+ type: PropType<PanelBadge>;
587
+ };
584
588
  fit: {
585
589
  type: BooleanConstructor;
586
590
  default: boolean;
@@ -650,6 +654,9 @@ declare function __VLS_template(): {
650
654
  border: boolean;
651
655
  card: boolean;
652
656
  }> & Omit<Readonly< ExtractPropTypes<{
657
+ badge: {
658
+ type: PropType<PanelBadge>;
659
+ };
653
660
  fit: {
654
661
  type: BooleanConstructor;
655
662
  default: boolean;
@@ -2766,6 +2773,7 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
2766
2773
  type: BooleanConstructor;
2767
2774
  };
2768
2775
  }>>> | null | undefined;
2776
+ readonly badge?: PanelBadge | undefined;
2769
2777
  readonly width?: string | number | undefined;
2770
2778
  readonly height?: string | number | undefined;
2771
2779
  readonly shadow?: "none" | "hover" | "always" | undefined;
@@ -3036,6 +3044,9 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
3036
3044
  $emit: (event: string, ...args: any[]) => void;
3037
3045
  $el: any;
3038
3046
  $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
3047
+ badge: {
3048
+ type: PropType<PanelBadge>;
3049
+ };
3039
3050
  fit: {
3040
3051
  type: BooleanConstructor;
3041
3052
  default: boolean;
@@ -3105,6 +3116,9 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
3105
3116
  border: boolean;
3106
3117
  card: boolean;
3107
3118
  }> & Omit<Readonly< ExtractPropTypes<{
3119
+ badge: {
3120
+ type: PropType<PanelBadge>;
3121
+ };
3108
3122
  fit: {
3109
3123
  type: BooleanConstructor;
3110
3124
  default: boolean;
@@ -1,6 +1,7 @@
1
1
  import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, Ref, PublicProps } from 'vue';
2
2
  import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, ContainerProps } from '../container';
3
3
  import { OnCleanup } from '@vue/reactivity';
4
+ import { PanelBadge } from './types';
4
5
  import { BaseSize } from '../shared';
5
6
  import { HeaderProps } from '../header';
6
7
  declare function __VLS_template(): {
@@ -268,6 +269,9 @@ declare function __VLS_template(): {
268
269
  };
269
270
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
270
271
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
272
+ badge: {
273
+ type: PropType<PanelBadge>;
274
+ };
271
275
  fit: {
272
276
  type: BooleanConstructor;
273
277
  default: boolean;
@@ -307,6 +311,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
307
311
  }>, {
308
312
  bodyRef: Ref<any, any>;
309
313
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
314
+ badge: {
315
+ type: PropType<PanelBadge>;
316
+ };
310
317
  fit: {
311
318
  type: BooleanConstructor;
312
319
  default: boolean;
@@ -1,7 +1,18 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ComponentPropsType, BaseSize } from '../shared';
3
3
  import { HeaderProps, ContainerProps } from '../';
4
+ export type PanelBadgeType = 'success' | 'primary' | 'warning' | 'danger';
5
+ export interface PanelBadge {
6
+ type: PanelBadgeType;
7
+ text: String;
8
+ }
4
9
  export declare const panelProps: {
10
+ /**
11
+ * 右上角标记
12
+ */
13
+ badge: {
14
+ type: PropType<PanelBadge>;
15
+ };
5
16
  /**
6
17
  * 宽高自适应
7
18
  */
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/ui
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.12.47
5
+ * @version 0.12.49
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.47";
8
+ export declare const version = "0.12.49";