guava-ui 0.2.9 → 0.3.1

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.
@@ -1,32 +1,52 @@
1
+ import { AllowDropFunction } from 'element-plus/es/components/tree/src/tree.type';
2
+ import { AllowedComponentProps } from 'vue';
1
3
  import { App } from 'vue';
4
+ import { Attrs } from 'vue';
2
5
  import { ButtonType } from 'element-plus';
3
6
  import { CascaderOption } from 'element-plus';
7
+ import { ComponentCustomProperties } from 'vue';
8
+ import { ComponentCustomProps } from 'vue';
4
9
  import { ComponentInternalInstance } from 'vue';
5
10
  import { ComponentOptions } from 'vue';
11
+ import { ComponentOptionsBase } from 'vue';
6
12
  import { ComponentOptionsMixin } from 'vue';
7
13
  import { ComponentProvideOptions } from 'vue';
14
+ import { ComponentPublicInstance } from 'vue';
8
15
  import { ComponentSize } from 'element-plus';
9
16
  import { Composer } from '../vue-i18n/dist/vue-i18n.cjs.js';
10
17
  import { ComputedOptions } from 'vue';
11
18
  import { CSSProperties } from 'vue';
12
19
  import { DatePickerType } from 'element-plus';
20
+ import { DebuggerEvent } from 'vue';
13
21
  import { DefineComponent } from 'vue';
22
+ import { DialogBeforeCloseFn } from 'element-plus';
23
+ import { DialogTransition } from 'element-plus';
24
+ import { DrawerProps } from 'element-plus';
14
25
  import { ExtractPropTypes } from 'vue';
15
26
  import { FilterNodeMethodFunction } from 'element-plus/es/components/tree/src/tree.type';
16
27
  import { FormInstance } from 'element-plus';
28
+ import { GlobalComponents } from 'vue';
29
+ import { GlobalDirectives } from 'vue';
30
+ import { IconPropType } from 'element-plus/es/utils/vue/icon';
17
31
  import { JSX } from 'vue/jsx-runtime';
18
32
  import { LoadFunction } from 'element-plus/es/components/tree/src/tree.type';
19
33
  import { MethodOptions } from 'vue';
34
+ import { nextTick } from 'vue';
35
+ import { OnCleanup } from '@vue/reactivity';
20
36
  import { Pinia } from 'pinia';
21
37
  import { PropType } from 'vue';
22
38
  import { PublicProps } from 'vue';
23
39
  import { RenderContentFunction } from 'element-plus/es/components/tree/src/tree.type';
40
+ import { Slot } from 'vue';
24
41
  import { TableInstance } from 'element-plus';
25
42
  import { TreeComponentProps } from 'element-plus/es/components/tree/src/tree.type';
26
43
  import { TreeOptionProps } from 'element-plus';
27
44
  import { ValidatorFunction } from 'vue-types/dist/types';
45
+ import { VNodeProps } from 'vue';
28
46
  import { VueTypesInterface } from 'vue-types';
29
47
  import { VueTypeValidableDef } from 'vue-types';
48
+ import { WatchOptions } from 'vue';
49
+ import { WatchStopHandle } from 'vue';
30
50
 
31
51
  declare type __VLS_Props = {
32
52
  iconType?: string;
@@ -53,11 +73,11 @@ export { confirm_2 as confirm }
53
73
  export declare const crud: {
54
74
  fetchData: (fetch: AsyncFn, data: any) => Promise<any>;
55
75
  submit: (fetch: AsyncFn, data: any, hasMsg?: boolean, msg?: string) => Promise<any>;
56
- fetchTable: (tabNode: TableInstance, fetch: AsyncFn, data: any) => Promise<{}>;
76
+ fetchTable: (fetch: AsyncFn, data: any, tabNode?: TableInstance | null) => Promise<{}>;
57
77
  save: (fmNode: FormInstance, fetch: AsyncFn, check?: boolean, msg?: string) => Promise<false | Recordable<any> | null>;
58
78
  update: (fmNode: FormInstance, id: number, fetch: Async2Fn, check?: boolean, msg?: string) => Promise<false | Recordable<any>>;
59
79
  search: (fmNode: FormInstance, tabNode: TableInstance, fetch: AsyncFn) => Promise<{}>;
60
- searchNoFm: (tabNode: any, fetch: AsyncFn, data: any) => Promise<{}>;
80
+ searchNoFm: (tabNode: TableInstance, fetch: AsyncFn, data: any) => Promise<{}>;
61
81
  toNewPageSearch: (tabNode: ComponentInternalInstance | null, filterConditions: Recordable<any>, fetch: AsyncFn, pageInfo: PageInfo) => Promise<false | Recordable<any>>;
62
82
  insertResult: (searchData: Recordable<any>, result: any) => boolean | undefined;
63
83
  updateResult: (searchData: any, result: any, rownums: number) => boolean;
@@ -86,6 +106,7 @@ export declare const dateFormatConfig: {
86
106
  week: {
87
107
  placeholder: string;
88
108
  dateFormat: string;
109
+ valueFormat: string;
89
110
  };
90
111
  month: {
91
112
  placeholder: string;
@@ -125,6 +146,8 @@ export declare const generateKey: (num: number) => string;
125
146
 
126
147
  export declare const getDomCssProp: (prop: string, dom?: HTMLElement) => string;
127
148
 
149
+ export declare const getFormModel: (fmNode: FormInstance | null | undefined) => Recordable<any>;
150
+
128
151
  export declare const getVNodeName: (vnode: any) => string;
129
152
 
130
153
  export declare const getVNodeText: (vnode: any) => string;
@@ -358,10 +381,10 @@ onConfirm?: ((...args: any[]) => any) | undefined;
358
381
  link: boolean;
359
382
  size: "" | "small" | "default" | "large";
360
383
  type: "" | "default" | "primary" | "success" | "warning" | "danger" | "info" | "text";
384
+ disabled: string | boolean;
361
385
  text: string;
362
386
  icon: string;
363
387
  confirm: string | boolean;
364
- disabled: string | boolean;
365
388
  nativeType: string;
366
389
  loading: boolean;
367
390
  visible: boolean;
@@ -559,8 +582,8 @@ size: "" | "small" | "default" | "large";
559
582
  placeholder: string;
560
583
  vref: string;
561
584
  id: string;
562
- trigger: string;
563
585
  disabled: boolean;
586
+ trigger: string;
564
587
  visible: boolean;
565
588
  options: CascaderOption[];
566
589
  multiple: boolean;
@@ -644,8 +667,8 @@ onChange?: ((...args: any[]) => any) | undefined;
644
667
  value: TCheckboxValueType;
645
668
  size: "" | "small" | "default" | "large";
646
669
  vref: string;
647
- label: TCheckboxValueType;
648
670
  disabled: boolean;
671
+ label: TCheckboxValueType;
649
672
  visible: boolean;
650
673
  border: boolean;
651
674
  indeterminate: boolean;
@@ -737,8 +760,8 @@ name: string;
737
760
  value: TCheckboxButtonValue;
738
761
  size: "small" | "default" | "large";
739
762
  vref: string;
740
- label: TCheckboxButtonValue;
741
763
  disabled: boolean;
764
+ label: TCheckboxButtonValue;
742
765
  visible: boolean;
743
766
  border: boolean;
744
767
  indeterminate: boolean;
@@ -812,8 +835,8 @@ value: TCheckboxGroupType;
812
835
  size: "small" | "default" | "large";
813
836
  vref: string;
814
837
  max: number;
815
- label: string;
816
838
  disabled: boolean;
839
+ label: string;
817
840
  min: number;
818
841
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
819
842
 
@@ -970,7 +993,7 @@ default: () => never[];
970
993
  };
971
994
  disabledDate: {
972
995
  type: FunctionConstructor;
973
- default: () => void;
996
+ default: undefined;
974
997
  };
975
998
  editable: {
976
999
  type: BooleanConstructor;
@@ -980,6 +1003,10 @@ unlink: {
980
1003
  type: BooleanConstructor;
981
1004
  default: boolean;
982
1005
  };
1006
+ showWeekNumber: {
1007
+ type: BooleanConstructor;
1008
+ default: boolean;
1009
+ };
983
1010
  }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "pick" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "pick" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
984
1011
  vref: {
985
1012
  type: StringConstructor;
@@ -1047,7 +1074,7 @@ default: () => never[];
1047
1074
  };
1048
1075
  disabledDate: {
1049
1076
  type: FunctionConstructor;
1050
- default: () => void;
1077
+ default: undefined;
1051
1078
  };
1052
1079
  editable: {
1053
1080
  type: BooleanConstructor;
@@ -1057,6 +1084,10 @@ unlink: {
1057
1084
  type: BooleanConstructor;
1058
1085
  default: boolean;
1059
1086
  };
1087
+ showWeekNumber: {
1088
+ type: BooleanConstructor;
1089
+ default: boolean;
1090
+ };
1060
1091
  }>> & Readonly<{
1061
1092
  onFocus?: ((...args: any[]) => any) | undefined;
1062
1093
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -1084,6 +1115,7 @@ valueFormat: string;
1084
1115
  rangeSeparator: string;
1085
1116
  startPlaceholder: string;
1086
1117
  endPlaceholder: string;
1118
+ showWeekNumber: boolean;
1087
1119
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1088
1120
 
1089
1121
  export declare const GvDialog: DefineComponent<ExtractPropTypes< {
@@ -1364,13 +1396,196 @@ export declare const GvExpandMenu: DefineComponent<ExtractPropTypes< {
1364
1396
  collapse: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1365
1397
  default: boolean;
1366
1398
  };
1399
+ isShow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1400
+ default: boolean;
1401
+ };
1367
1402
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1368
1403
  collapse: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1369
1404
  default: boolean;
1370
1405
  };
1406
+ isShow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1407
+ default: boolean;
1408
+ };
1371
1409
  }>> & Readonly<{}>, {
1372
1410
  collapse: boolean;
1373
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1411
+ isShow: boolean;
1412
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
1413
+ expandMenuRef: ({
1414
+ $: ComponentInternalInstance;
1415
+ $data: {};
1416
+ $props: {
1417
+ readonly direction?: "ltr" | "rtl" | "ttb" | "btt" | undefined;
1418
+ readonly resizable?: boolean | undefined;
1419
+ readonly size?: string | number | undefined;
1420
+ readonly withHeader?: boolean | undefined;
1421
+ readonly modalFade?: boolean | undefined;
1422
+ readonly headerAriaLevel?: string | undefined;
1423
+ readonly appendToBody?: boolean | undefined;
1424
+ readonly appendTo?: (string | HTMLElement) | undefined;
1425
+ readonly beforeClose?: DialogBeforeCloseFn | undefined;
1426
+ readonly destroyOnClose?: boolean | undefined;
1427
+ readonly closeOnClickModal?: boolean | undefined;
1428
+ readonly closeOnPressEscape?: boolean | undefined;
1429
+ readonly lockScroll?: boolean | undefined;
1430
+ readonly modal?: boolean | undefined;
1431
+ readonly modalPenetrable?: boolean | undefined;
1432
+ readonly openDelay?: number | undefined;
1433
+ readonly closeDelay?: number | undefined;
1434
+ readonly top?: string | undefined;
1435
+ readonly modelValue?: boolean | undefined;
1436
+ readonly modalClass?: string | undefined;
1437
+ readonly width?: string | number | undefined;
1438
+ readonly zIndex?: number | undefined;
1439
+ readonly trapFocus?: boolean | undefined;
1440
+ readonly transition?: DialogTransition | undefined;
1441
+ readonly center?: boolean | undefined;
1442
+ readonly alignCenter?: boolean | undefined;
1443
+ readonly closeIcon?: IconPropType | undefined;
1444
+ readonly draggable?: boolean | undefined;
1445
+ readonly overflow?: boolean | undefined;
1446
+ readonly fullscreen?: boolean | undefined;
1447
+ readonly headerClass?: string | undefined;
1448
+ readonly bodyClass?: string | undefined;
1449
+ readonly footerClass?: string | undefined;
1450
+ readonly showClose?: boolean | undefined;
1451
+ readonly title?: string | undefined;
1452
+ readonly ariaLevel?: string | undefined;
1453
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
1454
+ readonly onResize?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
1455
+ readonly onOpen?: (() => any) | undefined | undefined;
1456
+ readonly onClose?: (() => any) | undefined | undefined;
1457
+ readonly onOpened?: (() => any) | undefined | undefined;
1458
+ readonly onClosed?: (() => any) | undefined | undefined;
1459
+ readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
1460
+ readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
1461
+ readonly "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
1462
+ readonly "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
1463
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1464
+ $attrs: Attrs;
1465
+ $refs: {
1466
+ [x: string]: unknown;
1467
+ };
1468
+ $slots: Readonly<{
1469
+ [name: string]: Slot<any> | undefined;
1470
+ }>;
1471
+ $root: ComponentPublicInstance | null;
1472
+ $parent: ComponentPublicInstance | null;
1473
+ $host: Element | null;
1474
+ $emit: ((event: "close") => void) & ((event: "resize", evt: MouseEvent, size: number) => void) & ((event: "open") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void) & ((event: "resize-start", evt: MouseEvent, size: number) => void) & ((event: "resize-end", evt: MouseEvent, size: number) => void);
1475
+ $el: any;
1476
+ $options: ComponentOptionsBase<Readonly<DrawerProps> & Readonly<{
1477
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1478
+ onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
1479
+ onOpen?: (() => any) | undefined;
1480
+ onClose?: (() => any) | undefined;
1481
+ onOpened?: (() => any) | undefined;
1482
+ onClosed?: (() => any) | undefined;
1483
+ onOpenAutoFocus?: (() => any) | undefined;
1484
+ onCloseAutoFocus?: (() => any) | undefined;
1485
+ "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
1486
+ "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
1487
+ }>, {
1488
+ handleClose: () => void;
1489
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1490
+ "update:modelValue": (value: boolean) => void;
1491
+ resize: (evt: MouseEvent, size: number) => void;
1492
+ open: () => void;
1493
+ close: () => void;
1494
+ opened: () => void;
1495
+ closed: () => void;
1496
+ openAutoFocus: () => void;
1497
+ closeAutoFocus: () => void;
1498
+ "resize-start": (evt: MouseEvent, size: number) => void;
1499
+ "resize-end": (evt: MouseEvent, size: number) => void;
1500
+ }, string, {
1501
+ size: string | number;
1502
+ title: string;
1503
+ direction: "ltr" | "rtl" | "ttb" | "btt";
1504
+ appendTo: string | HTMLElement;
1505
+ transition: DialogTransition;
1506
+ overflow: boolean;
1507
+ closeOnClickModal: boolean;
1508
+ closeOnPressEscape: boolean;
1509
+ lockScroll: boolean;
1510
+ modal: boolean;
1511
+ openDelay: number;
1512
+ closeDelay: number;
1513
+ headerAriaLevel: string;
1514
+ alignCenter: boolean;
1515
+ draggable: boolean;
1516
+ showClose: boolean;
1517
+ ariaLevel: string;
1518
+ withHeader: boolean;
1519
+ modalFade: boolean;
1520
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1521
+ beforeCreate?: (() => void) | (() => void)[];
1522
+ created?: (() => void) | (() => void)[];
1523
+ beforeMount?: (() => void) | (() => void)[];
1524
+ mounted?: (() => void) | (() => void)[];
1525
+ beforeUpdate?: (() => void) | (() => void)[];
1526
+ updated?: (() => void) | (() => void)[];
1527
+ activated?: (() => void) | (() => void)[];
1528
+ deactivated?: (() => void) | (() => void)[];
1529
+ beforeDestroy?: (() => void) | (() => void)[];
1530
+ beforeUnmount?: (() => void) | (() => void)[];
1531
+ destroyed?: (() => void) | (() => void)[];
1532
+ unmounted?: (() => void) | (() => void)[];
1533
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1534
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1535
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1536
+ };
1537
+ $forceUpdate: () => void;
1538
+ $nextTick: nextTick;
1539
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1540
+ } & Readonly<{
1541
+ size: string | number;
1542
+ title: string;
1543
+ direction: "ltr" | "rtl" | "ttb" | "btt";
1544
+ appendTo: string | HTMLElement;
1545
+ transition: DialogTransition;
1546
+ overflow: boolean;
1547
+ closeOnClickModal: boolean;
1548
+ closeOnPressEscape: boolean;
1549
+ lockScroll: boolean;
1550
+ modal: boolean;
1551
+ openDelay: number;
1552
+ closeDelay: number;
1553
+ headerAriaLevel: string;
1554
+ alignCenter: boolean;
1555
+ draggable: boolean;
1556
+ showClose: boolean;
1557
+ ariaLevel: string;
1558
+ withHeader: boolean;
1559
+ modalFade: boolean;
1560
+ }> & Omit<Readonly<DrawerProps> & Readonly<{
1561
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1562
+ onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
1563
+ onOpen?: (() => any) | undefined;
1564
+ onClose?: (() => any) | undefined;
1565
+ onOpened?: (() => any) | undefined;
1566
+ onClosed?: (() => any) | undefined;
1567
+ onOpenAutoFocus?: (() => any) | undefined;
1568
+ onCloseAutoFocus?: (() => any) | undefined;
1569
+ "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
1570
+ "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
1571
+ }>, "size" | "transition" | "title" | "showClose" | "appendTo" | "handleClose" | "direction" | "draggable" | "withHeader" | "modalFade" | "headerAriaLevel" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "alignCenter" | "overflow" | "ariaLevel"> & {
1572
+ handleClose: () => void;
1573
+ } & {} & ComponentCustomProperties & {} & {
1574
+ $slots: {
1575
+ header?: (props: {
1576
+ close: () => void;
1577
+ titleId: string;
1578
+ titleClass: string;
1579
+ }) => any;
1580
+ } & {
1581
+ title?: (props: {}) => any;
1582
+ } & {
1583
+ default?: (props: {}) => any;
1584
+ } & {
1585
+ footer?: (props: {}) => any;
1586
+ };
1587
+ }) | null;
1588
+ }, HTMLDivElement>;
1374
1589
 
1375
1590
  export declare const GvForm: DefineComponent<ExtractPropTypes< {
1376
1591
  refForm: {
@@ -1512,7 +1727,7 @@ default: string;
1512
1727
  };
1513
1728
  size: {
1514
1729
  type: PropType<ComponentSize>;
1515
- default: undefined;
1730
+ default: string;
1516
1731
  };
1517
1732
  disabled: {
1518
1733
  type: BooleanConstructor;
@@ -1585,7 +1800,7 @@ default: string;
1585
1800
  };
1586
1801
  size: {
1587
1802
  type: PropType<ComponentSize>;
1588
- default: undefined;
1803
+ default: string;
1589
1804
  };
1590
1805
  disabled: {
1591
1806
  type: BooleanConstructor;
@@ -1721,7 +1936,7 @@ position: {
1721
1936
  type: StringConstructor;
1722
1937
  default: undefined;
1723
1938
  };
1724
- }>, JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1939
+ }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "keydown" | "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1725
1940
  vref: {
1726
1941
  type: StringConstructor;
1727
1942
  default: string;
@@ -1802,8 +2017,8 @@ placeholder: string;
1802
2017
  vref: string;
1803
2018
  max: number;
1804
2019
  id: string;
1805
- position: string;
1806
2020
  disabled: boolean;
2021
+ position: string;
1807
2022
  visible: boolean;
1808
2023
  step: number;
1809
2024
  min: number;
@@ -2001,8 +2216,8 @@ name: string;
2001
2216
  value: TRadioValue;
2002
2217
  size: "" | "small" | "default" | "large";
2003
2218
  vref: string;
2004
- label: TRadioValue;
2005
2219
  disabled: boolean;
2220
+ label: TRadioValue;
2006
2221
  border: boolean;
2007
2222
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2008
2223
 
@@ -2055,8 +2270,8 @@ onChange?: ((...args: any[]) => any) | undefined;
2055
2270
  name: string;
2056
2271
  value: string | number | boolean;
2057
2272
  vref: string;
2058
- label: string;
2059
2273
  disabled: boolean;
2274
+ label: string;
2060
2275
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2061
2276
 
2062
2277
  export declare const GvRadioGroup: DefineComponent<ExtractPropTypes< {
@@ -2365,8 +2580,8 @@ size: "" | "small" | "default" | "large";
2365
2580
  placeholder: string;
2366
2581
  vref: string;
2367
2582
  id: string;
2368
- label: string;
2369
2583
  disabled: boolean;
2584
+ label: string;
2370
2585
  visible: boolean;
2371
2586
  multiple: boolean;
2372
2587
  modelValue: string | unknown[] | Record<string, unknown>;
@@ -2606,7 +2821,7 @@ type: BooleanConstructor;
2606
2821
  required: false;
2607
2822
  default: boolean;
2608
2823
  };
2609
- }>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "row-dblclick"[], "row-dblclick", PublicProps, Readonly<ExtractPropTypes< {
2824
+ }>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("row-dblclick" | "row-click")[], "row-dblclick" | "row-click", PublicProps, Readonly<ExtractPropTypes< {
2610
2825
  refTable: {
2611
2826
  type: StringConstructor;
2612
2827
  required: false;
@@ -2764,6 +2979,7 @@ default: boolean;
2764
2979
  };
2765
2980
  }>> & Readonly<{
2766
2981
  "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
2982
+ "onRow-click"?: ((...args: any[]) => any) | undefined;
2767
2983
  }>, {
2768
2984
  size: "" | "small" | "default" | "large";
2769
2985
  maxHeight: string | number | undefined;
@@ -2864,21 +3080,25 @@ default: boolean;
2864
3080
  "onTab-click"?: ((...args: any[]) => any) | undefined;
2865
3081
  }>, {
2866
3082
  name: string;
3083
+ disabled: boolean;
2867
3084
  label: string;
2868
3085
  maxHeight: string | number;
2869
- disabled: boolean;
2870
3086
  visible: boolean;
2871
3087
  autoHeight: boolean;
2872
3088
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2873
3089
 
2874
3090
  export declare const GvTabs: DefineComponent<ExtractPropTypes< {
2875
3091
  tabPosition: {
2876
- type: StringConstructor;
3092
+ type: PropType<"left" | "right" | "bottom" | "top">;
2877
3093
  default: string;
2878
3094
  };
2879
- value: {
3095
+ defaultValue: {
2880
3096
  type: PropType<number | string>;
2881
- default: undefined;
3097
+ default: number;
3098
+ };
3099
+ modelValue: {
3100
+ type: PropType<number | string>;
3101
+ default: number;
2882
3102
  };
2883
3103
  type: {
2884
3104
  type: PropType<"card" | "border-card">;
@@ -2894,12 +3114,16 @@ default: undefined;
2894
3114
  };
2895
3115
  }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "tab-click"[], "tab-click", PublicProps, Readonly<ExtractPropTypes< {
2896
3116
  tabPosition: {
2897
- type: StringConstructor;
3117
+ type: PropType<"left" | "right" | "bottom" | "top">;
2898
3118
  default: string;
2899
3119
  };
2900
- value: {
3120
+ defaultValue: {
2901
3121
  type: PropType<number | string>;
2902
- default: undefined;
3122
+ default: number;
3123
+ };
3124
+ modelValue: {
3125
+ type: PropType<number | string>;
3126
+ default: number;
2903
3127
  };
2904
3128
  type: {
2905
3129
  type: PropType<"card" | "border-card">;
@@ -2916,10 +3140,11 @@ default: undefined;
2916
3140
  }>> & Readonly<{
2917
3141
  "onTab-click"?: ((...args: any[]) => any) | undefined;
2918
3142
  }>, {
2919
- value: string | number;
2920
3143
  type: "card" | "border-card";
3144
+ modelValue: string | number;
2921
3145
  closable: boolean;
2922
- tabPosition: string;
3146
+ defaultValue: string | number;
3147
+ tabPosition: "right" | "bottom" | "left" | "top";
2923
3148
  tabMaxHeight: string | number;
2924
3149
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2925
3150
 
@@ -3204,6 +3429,10 @@ draggable: {
3204
3429
  type: BooleanConstructor;
3205
3430
  default: boolean;
3206
3431
  };
3432
+ allowDrop: {
3433
+ type: PropType<AllowDropFunction>;
3434
+ default: undefined;
3435
+ };
3207
3436
  defaultExpandedKeys: {
3208
3437
  type: PropType<(string | number)[]>;
3209
3438
  default: () => never[];
@@ -3236,7 +3465,7 @@ renderContent: {
3236
3465
  type: PropType<RenderContentFunction>;
3237
3466
  default: undefined;
3238
3467
  };
3239
- }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("check" | "check-change" | "node-click" | "node-collapse" | "node-expand" | "node-drop")[], "check" | "check-change" | "node-click" | "node-collapse" | "node-expand" | "node-drop", PublicProps, Readonly<ExtractPropTypes< {
3468
+ }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("check" | "node-click" | "node-expand" | "node-collapse" | "check-change" | "node-drop")[], "check" | "node-click" | "node-expand" | "node-collapse" | "check-change" | "node-drop", PublicProps, Readonly<ExtractPropTypes< {
3240
3469
  treeData: {
3241
3470
  type: PropType<TreeData[]>;
3242
3471
  default: () => never[];
@@ -3265,6 +3494,10 @@ draggable: {
3265
3494
  type: BooleanConstructor;
3266
3495
  default: boolean;
3267
3496
  };
3497
+ allowDrop: {
3498
+ type: PropType<AllowDropFunction>;
3499
+ default: undefined;
3500
+ };
3268
3501
  defaultExpandedKeys: {
3269
3502
  type: PropType<(string | number)[]>;
3270
3503
  default: () => never[];
@@ -3298,11 +3531,11 @@ type: PropType<RenderContentFunction>;
3298
3531
  default: undefined;
3299
3532
  };
3300
3533
  }>> & Readonly<{
3301
- "onNode-expand"?: ((...args: any[]) => any) | undefined;
3302
- "onCheck-change"?: ((...args: any[]) => any) | undefined;
3534
+ onCheck?: ((...args: any[]) => any) | undefined;
3303
3535
  "onNode-click"?: ((...args: any[]) => any) | undefined;
3536
+ "onNode-expand"?: ((...args: any[]) => any) | undefined;
3304
3537
  "onNode-collapse"?: ((...args: any[]) => any) | undefined;
3305
- onCheck?: ((...args: any[]) => any) | undefined;
3538
+ "onCheck-change"?: ((...args: any[]) => any) | undefined;
3306
3539
  "onNode-drop"?: ((...args: any[]) => any) | undefined;
3307
3540
  }>, {
3308
3541
  lazy: boolean;
@@ -3312,14 +3545,15 @@ defaultExpandAll: boolean;
3312
3545
  treeProps: TreeOptionProps;
3313
3546
  iconClass: string;
3314
3547
  checkOnClickNode: boolean;
3548
+ treeData: TreeData[];
3315
3549
  nodeKey: string;
3316
- expandOnClickNode: boolean;
3317
- defaultCheckedKeys: (string | number)[];
3318
- defaultExpandedKeys: (string | number)[];
3319
- renderContent: RenderContentFunction;
3320
3550
  showCheckbox: boolean;
3551
+ allowDrop: AllowDropFunction;
3552
+ defaultExpandedKeys: (string | number)[];
3553
+ defaultCheckedKeys: (string | number)[];
3554
+ expandOnClickNode: boolean;
3321
3555
  filterNodeMethod: FilterNodeMethodFunction;
3322
- treeData: TreeData[];
3556
+ renderContent: RenderContentFunction;
3323
3557
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3324
3558
 
3325
3559
  export declare const hasClass: (ele: HTMLElement, cls: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guava-ui",
3
- "version": "0.2.9",
3
+ "version": "0.3.1",
4
4
  "description": "vue3 & element-plus & typesScript & vite UI platform",
5
5
  "author": "Andy <xukaixing@hotmail.com>",
6
6
  "license": "Apache-2.0",