z-ui-pc 1.1.20 → 1.2.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/components.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2282 -65
- package/dist/index.js +5092 -2606
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,15 +7,21 @@ import { CascaderProps } from 'element-plus/es/components/cascader-panel/src/nod
|
|
|
7
7
|
import { cascaderProps } from 'element-plus/es/components/cascader/src/cascader';
|
|
8
8
|
import { CascaderValue } from 'element-plus';
|
|
9
9
|
import { ColProps } from 'element-plus';
|
|
10
|
+
import { Column } from 'element-plus';
|
|
11
|
+
import { ColumnAlignment } from 'element-plus';
|
|
10
12
|
import { Component } from 'vue';
|
|
13
|
+
import { ComponentCustomProperties } from 'vue';
|
|
11
14
|
import { ComponentCustomProps } from 'vue';
|
|
15
|
+
import { ComponentInternalInstance } from 'vue';
|
|
12
16
|
import { ComponentOptionsBase } from 'vue';
|
|
13
17
|
import { ComponentOptionsMixin } from 'vue';
|
|
14
18
|
import { ComponentProvideOptions } from 'vue';
|
|
15
19
|
import { ComponentPublicInstance } from 'vue';
|
|
16
20
|
import { ComputedRef } from 'vue';
|
|
17
21
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
22
|
+
import { CSSProperties } from 'vue';
|
|
18
23
|
import { DatePickerProps } from 'element-plus';
|
|
24
|
+
import { DebuggerEvent } from 'vue';
|
|
19
25
|
import { default as default_2 } from 'lodash';
|
|
20
26
|
import { DefineComponent } from 'vue';
|
|
21
27
|
import { Directive } from 'vue';
|
|
@@ -39,17 +45,26 @@ import { h } from 'vue';
|
|
|
39
45
|
|
|
40
46
|
|
|
41
47
|
|
|
48
|
+
|
|
49
|
+
import { InputAutoSize } from 'element-plus';
|
|
42
50
|
import { InputEmits } from 'element-plus';
|
|
43
51
|
import { InputProps } from 'element-plus';
|
|
44
52
|
|
|
45
53
|
|
|
46
54
|
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
47
58
|
import { JSX } from 'vue/jsx-runtime';
|
|
48
59
|
import { ManipulateType } from 'dayjs';
|
|
49
60
|
import { MessageBoxData } from 'element-plus';
|
|
50
61
|
import { MessageOptions } from 'element-plus';
|
|
62
|
+
import { nextTick } from 'vue';
|
|
63
|
+
import { Omit as Omit_2 } from 'lodash';
|
|
64
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
51
65
|
import { PaginationProps } from 'element-plus';
|
|
52
66
|
import { Plugin as Plugin_2 } from 'vue';
|
|
67
|
+
import { PropType } from 'vue';
|
|
53
68
|
import { PublicProps } from 'vue';
|
|
54
69
|
import { RadioGroupProps } from 'element-plus';
|
|
55
70
|
import { Raw } from 'vue';
|
|
@@ -57,12 +72,22 @@ import { Ref } from 'vue';
|
|
|
57
72
|
import { RowProps } from 'element-plus';
|
|
58
73
|
import { SelectProps } from 'element-plus/es/components/select/src/select';
|
|
59
74
|
import { ShallowRef } from 'vue';
|
|
75
|
+
import { ShallowUnwrapRef } from 'vue';
|
|
76
|
+
import { Slot } from 'vue';
|
|
77
|
+
import { StyleValue } from 'vue';
|
|
60
78
|
import { SwitchProps } from 'element-plus';
|
|
61
|
-
|
|
79
|
+
|
|
80
|
+
import { TableColumnCtx } from 'element-plus';
|
|
81
|
+
import { TableColumnCtx as TableColumnCtx_2 } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
62
82
|
import { TableProps } from 'element-plus';
|
|
83
|
+
import { TableV2PropsPublic } from 'element-plus';
|
|
84
|
+
|
|
63
85
|
|
|
64
86
|
import { VNode } from 'vue';
|
|
65
87
|
import { VNodeProps } from 'vue';
|
|
88
|
+
import { WatchOptions } from 'vue';
|
|
89
|
+
import { WatchStopHandle } from 'vue';
|
|
90
|
+
|
|
66
91
|
|
|
67
92
|
export declare function $alert(content: string, options?: ElMessageBoxOptions): Promise<MessageBoxData>;
|
|
68
93
|
|
|
@@ -135,28 +160,22 @@ showArrow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
|
135
160
|
on: TEvent;
|
|
136
161
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
137
162
|
|
|
138
|
-
declare type __VLS_Props =
|
|
139
|
-
src: string | TAny;
|
|
140
|
-
alt?: string;
|
|
141
|
-
tips?: string;
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
declare type __VLS_Props_2 = IBaseDateProps;
|
|
163
|
+
declare type __VLS_Props = IBaseDateProps;
|
|
145
164
|
|
|
146
|
-
declare type
|
|
165
|
+
declare type __VLS_Props_2 = IBaseDateRangeAndSelectGroupProps;
|
|
147
166
|
|
|
148
|
-
declare type
|
|
167
|
+
declare type __VLS_Props_3 = IGroupSelectInputAttrs & {
|
|
149
168
|
on?: TEvent & Partial<InputEmits>;
|
|
150
169
|
modelValue: [string?, string?];
|
|
151
170
|
};
|
|
152
171
|
|
|
153
172
|
declare type __VLS_PublicProps = {
|
|
154
173
|
"dynamicExpression"?: TUndefinable<IDynamicExpression>;
|
|
155
|
-
} &
|
|
174
|
+
} & __VLS_Props;
|
|
156
175
|
|
|
157
176
|
declare type __VLS_PublicProps_2 = {
|
|
158
177
|
"dynamicExpression"?: TUndefinable<IDynamicExpression>;
|
|
159
|
-
} &
|
|
178
|
+
} & __VLS_Props_2;
|
|
160
179
|
|
|
161
180
|
declare function __VLS_template(): {
|
|
162
181
|
attrs: Partial<{}>;
|
|
@@ -250,13 +269,15 @@ declare namespace allComponents {
|
|
|
250
269
|
installer_5 as ZEmpty,
|
|
251
270
|
installer_6 as ZForm,
|
|
252
271
|
installer_7 as ZHorizontalStep,
|
|
253
|
-
installer_8 as
|
|
254
|
-
installer_9 as
|
|
255
|
-
installer_10 as
|
|
256
|
-
installer_11 as
|
|
257
|
-
installer_12 as
|
|
258
|
-
installer_13 as
|
|
259
|
-
installer_14 as
|
|
272
|
+
installer_8 as ZOperationIconButton,
|
|
273
|
+
installer_9 as ZPlusBold,
|
|
274
|
+
installer_10 as ZShowToTags,
|
|
275
|
+
installer_11 as ZTable,
|
|
276
|
+
installer_12 as ZTableLinkButton,
|
|
277
|
+
installer_13 as ZTableV2,
|
|
278
|
+
installer_14 as ZTipsFormItem,
|
|
279
|
+
installer_15 as ZTransitionFadeHeight,
|
|
280
|
+
installer_16 as ZTransitionFadeSlide
|
|
260
281
|
}
|
|
261
282
|
}
|
|
262
283
|
|
|
@@ -654,7 +675,1046 @@ inputWidth: string;
|
|
|
654
675
|
|
|
655
676
|
export declare const BaseRadio: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
656
677
|
|
|
657
|
-
export declare const BaseSearchInput: DefineComponent<IBaseSearchInputProps, {
|
|
678
|
+
export declare const BaseSearchInput: DefineComponent<IBaseSearchInputProps, {
|
|
679
|
+
focus: () => void;
|
|
680
|
+
inputRef: Ref<({
|
|
681
|
+
$: ComponentInternalInstance;
|
|
682
|
+
$data: {};
|
|
683
|
+
$props: Partial<{
|
|
684
|
+
readonly disabled: boolean;
|
|
685
|
+
readonly id: string;
|
|
686
|
+
readonly type: string;
|
|
687
|
+
readonly modelValue: string | number | null | undefined;
|
|
688
|
+
readonly tabindex: string | number;
|
|
689
|
+
readonly readonly: boolean;
|
|
690
|
+
readonly autosize: InputAutoSize;
|
|
691
|
+
readonly autocomplete: string;
|
|
692
|
+
readonly containerRole: string;
|
|
693
|
+
readonly validateEvent: boolean;
|
|
694
|
+
readonly inputStyle: StyleValue;
|
|
695
|
+
readonly rows: number;
|
|
696
|
+
readonly inputmode: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
697
|
+
readonly clearable: boolean;
|
|
698
|
+
readonly showPassword: boolean;
|
|
699
|
+
readonly showWordLimit: boolean;
|
|
700
|
+
readonly autofocus: boolean;
|
|
701
|
+
}> & Omit<{
|
|
702
|
+
readonly modelValue: string | number | null;
|
|
703
|
+
readonly autocomplete: string;
|
|
704
|
+
readonly disabled: boolean;
|
|
705
|
+
readonly clearable: boolean;
|
|
706
|
+
readonly validateEvent: boolean;
|
|
707
|
+
readonly tabindex: string | number;
|
|
708
|
+
readonly type: string;
|
|
709
|
+
readonly autosize: InputAutoSize;
|
|
710
|
+
readonly readonly: boolean;
|
|
711
|
+
readonly showPassword: boolean;
|
|
712
|
+
readonly showWordLimit: boolean;
|
|
713
|
+
readonly inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
714
|
+
readonly autofocus: boolean;
|
|
715
|
+
readonly rows: number;
|
|
716
|
+
readonly size?: ("" | "small" | "default" | "large") | undefined;
|
|
717
|
+
readonly name?: string | undefined;
|
|
718
|
+
readonly form?: string | undefined;
|
|
719
|
+
readonly ariaLabel?: string | undefined;
|
|
720
|
+
readonly id?: string | undefined;
|
|
721
|
+
readonly placeholder?: string | undefined;
|
|
722
|
+
readonly suffixIcon?: (string | Component) | undefined;
|
|
723
|
+
readonly inputmode?: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
724
|
+
readonly maxlength?: (string | number) | undefined;
|
|
725
|
+
readonly minlength?: (string | number) | undefined;
|
|
726
|
+
readonly resize?: ("none" | "both" | "horizontal" | "vertical") | undefined;
|
|
727
|
+
readonly formatter?: Function | undefined;
|
|
728
|
+
readonly parser?: Function | undefined;
|
|
729
|
+
readonly prefixIcon?: (string | Component) | undefined;
|
|
730
|
+
readonly containerRole?: string | undefined;
|
|
731
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
732
|
+
onChange?: ((value: string) => any) | undefined | undefined;
|
|
733
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
734
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
735
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
736
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
737
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
738
|
+
onInput?: ((value: string) => any) | undefined | undefined;
|
|
739
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
740
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
741
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
742
|
+
onClear?: (() => any) | undefined | undefined;
|
|
743
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "modelValue" | "id" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "type" | "inputmode" | "autosize" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "autofocus" | "rows">;
|
|
744
|
+
$attrs: {
|
|
745
|
+
[x: string]: unknown;
|
|
746
|
+
};
|
|
747
|
+
$refs: {
|
|
748
|
+
[x: string]: unknown;
|
|
749
|
+
};
|
|
750
|
+
$slots: Readonly<{
|
|
751
|
+
[name: string]: Slot<any> | undefined;
|
|
752
|
+
}>;
|
|
753
|
+
$root: ComponentPublicInstance | null;
|
|
754
|
+
$parent: ComponentPublicInstance | null;
|
|
755
|
+
$host: Element | null;
|
|
756
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
757
|
+
$el: any;
|
|
758
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
759
|
+
readonly inputmode: {
|
|
760
|
+
readonly type: PropType<"text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
|
|
761
|
+
readonly required: false;
|
|
762
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
763
|
+
__epPropKey: true;
|
|
764
|
+
} & {
|
|
765
|
+
readonly default: undefined;
|
|
766
|
+
};
|
|
767
|
+
readonly name: StringConstructor;
|
|
768
|
+
readonly ariaLabel: StringConstructor;
|
|
769
|
+
readonly id: {
|
|
770
|
+
readonly type: PropType<string>;
|
|
771
|
+
readonly required: false;
|
|
772
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
773
|
+
__epPropKey: true;
|
|
774
|
+
} & {
|
|
775
|
+
readonly default: undefined;
|
|
776
|
+
};
|
|
777
|
+
readonly size: {
|
|
778
|
+
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
779
|
+
readonly required: false;
|
|
780
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
781
|
+
__epPropKey: true;
|
|
782
|
+
};
|
|
783
|
+
readonly disabled: BooleanConstructor;
|
|
784
|
+
readonly modelValue: {
|
|
785
|
+
readonly type: PropType<string | number | null | undefined>;
|
|
786
|
+
readonly required: false;
|
|
787
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
788
|
+
__epPropKey: true;
|
|
789
|
+
} & {
|
|
790
|
+
readonly default: "";
|
|
791
|
+
};
|
|
792
|
+
readonly maxlength: {
|
|
793
|
+
readonly type: PropType<string | number>;
|
|
794
|
+
readonly required: false;
|
|
795
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
796
|
+
__epPropKey: true;
|
|
797
|
+
};
|
|
798
|
+
readonly minlength: {
|
|
799
|
+
readonly type: PropType<string | number>;
|
|
800
|
+
readonly required: false;
|
|
801
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
802
|
+
__epPropKey: true;
|
|
803
|
+
};
|
|
804
|
+
readonly type: {
|
|
805
|
+
readonly type: PropType<string>;
|
|
806
|
+
readonly required: false;
|
|
807
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
808
|
+
__epPropKey: true;
|
|
809
|
+
} & {
|
|
810
|
+
readonly default: "text";
|
|
811
|
+
};
|
|
812
|
+
readonly resize: {
|
|
813
|
+
readonly type: PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
814
|
+
readonly required: false;
|
|
815
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
816
|
+
__epPropKey: true;
|
|
817
|
+
};
|
|
818
|
+
readonly autosize: {
|
|
819
|
+
readonly type: PropType<InputAutoSize>;
|
|
820
|
+
readonly required: false;
|
|
821
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
822
|
+
__epPropKey: true;
|
|
823
|
+
} & {
|
|
824
|
+
readonly default: false;
|
|
825
|
+
};
|
|
826
|
+
readonly autocomplete: {
|
|
827
|
+
readonly type: PropType<string>;
|
|
828
|
+
readonly required: false;
|
|
829
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
830
|
+
__epPropKey: true;
|
|
831
|
+
} & {
|
|
832
|
+
readonly default: "off";
|
|
833
|
+
};
|
|
834
|
+
readonly formatter: {
|
|
835
|
+
readonly type: PropType<Function>;
|
|
836
|
+
readonly required: false;
|
|
837
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
838
|
+
__epPropKey: true;
|
|
839
|
+
};
|
|
840
|
+
readonly parser: {
|
|
841
|
+
readonly type: PropType<Function>;
|
|
842
|
+
readonly required: false;
|
|
843
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
844
|
+
__epPropKey: true;
|
|
845
|
+
};
|
|
846
|
+
readonly placeholder: {
|
|
847
|
+
readonly type: PropType<string>;
|
|
848
|
+
readonly required: false;
|
|
849
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
850
|
+
__epPropKey: true;
|
|
851
|
+
};
|
|
852
|
+
readonly form: {
|
|
853
|
+
readonly type: PropType<string>;
|
|
854
|
+
readonly required: false;
|
|
855
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
856
|
+
__epPropKey: true;
|
|
857
|
+
};
|
|
858
|
+
readonly readonly: BooleanConstructor;
|
|
859
|
+
readonly clearable: BooleanConstructor;
|
|
860
|
+
readonly showPassword: BooleanConstructor;
|
|
861
|
+
readonly showWordLimit: BooleanConstructor;
|
|
862
|
+
readonly suffixIcon: {
|
|
863
|
+
readonly type: PropType<string | Component>;
|
|
864
|
+
readonly required: false;
|
|
865
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
866
|
+
__epPropKey: true;
|
|
867
|
+
};
|
|
868
|
+
readonly prefixIcon: {
|
|
869
|
+
readonly type: PropType<string | Component>;
|
|
870
|
+
readonly required: false;
|
|
871
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
872
|
+
__epPropKey: true;
|
|
873
|
+
};
|
|
874
|
+
readonly containerRole: {
|
|
875
|
+
readonly type: PropType<string>;
|
|
876
|
+
readonly required: false;
|
|
877
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
878
|
+
__epPropKey: true;
|
|
879
|
+
} & {
|
|
880
|
+
readonly default: undefined;
|
|
881
|
+
};
|
|
882
|
+
readonly tabindex: {
|
|
883
|
+
readonly type: PropType<string | number>;
|
|
884
|
+
readonly required: false;
|
|
885
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
886
|
+
__epPropKey: true;
|
|
887
|
+
} & {
|
|
888
|
+
readonly default: 0;
|
|
889
|
+
};
|
|
890
|
+
readonly validateEvent: {
|
|
891
|
+
readonly type: PropType<boolean>;
|
|
892
|
+
readonly required: false;
|
|
893
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
894
|
+
__epPropKey: true;
|
|
895
|
+
} & {
|
|
896
|
+
readonly default: true;
|
|
897
|
+
};
|
|
898
|
+
readonly inputStyle: {
|
|
899
|
+
readonly type: PropType<StyleValue>;
|
|
900
|
+
readonly required: false;
|
|
901
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
902
|
+
__epPropKey: true;
|
|
903
|
+
} & {
|
|
904
|
+
readonly default: () => {};
|
|
905
|
+
};
|
|
906
|
+
readonly autofocus: BooleanConstructor;
|
|
907
|
+
readonly rows: {
|
|
908
|
+
readonly type: PropType<number>;
|
|
909
|
+
readonly required: false;
|
|
910
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
911
|
+
__epPropKey: true;
|
|
912
|
+
} & {
|
|
913
|
+
readonly default: 2;
|
|
914
|
+
};
|
|
915
|
+
}>> & {
|
|
916
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
917
|
+
onChange?: ((value: string) => any) | undefined;
|
|
918
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
919
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
920
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
921
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
922
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
923
|
+
onInput?: ((value: string) => any) | undefined;
|
|
924
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
925
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
926
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
927
|
+
onClear?: (() => any) | undefined;
|
|
928
|
+
}, {
|
|
929
|
+
input: ShallowRef<HTMLInputElement | undefined>;
|
|
930
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
931
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
932
|
+
textareaStyle: ComputedRef<StyleValue>;
|
|
933
|
+
autosize: Ref<InputAutoSize>;
|
|
934
|
+
isComposing: Ref<boolean>;
|
|
935
|
+
focus: () => void | undefined;
|
|
936
|
+
blur: () => void | undefined;
|
|
937
|
+
select: () => void;
|
|
938
|
+
clear: () => void;
|
|
939
|
+
resizeTextarea: () => void;
|
|
940
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
941
|
+
input: (value: string) => void;
|
|
942
|
+
clear: () => void;
|
|
943
|
+
"update:modelValue": (value: string) => void;
|
|
944
|
+
change: (value: string) => void;
|
|
945
|
+
blur: (evt: FocusEvent) => void;
|
|
946
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
947
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
948
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
949
|
+
focus: (evt: FocusEvent) => void;
|
|
950
|
+
keydown: (evt: Event | KeyboardEvent) => void;
|
|
951
|
+
mouseenter: (evt: MouseEvent) => void;
|
|
952
|
+
mouseleave: (evt: MouseEvent) => void;
|
|
953
|
+
}, string, {
|
|
954
|
+
readonly disabled: boolean;
|
|
955
|
+
readonly id: string;
|
|
956
|
+
readonly type: string;
|
|
957
|
+
readonly modelValue: string | number | null | undefined;
|
|
958
|
+
readonly tabindex: string | number;
|
|
959
|
+
readonly readonly: boolean;
|
|
960
|
+
readonly autosize: InputAutoSize;
|
|
961
|
+
readonly autocomplete: string;
|
|
962
|
+
readonly containerRole: string;
|
|
963
|
+
readonly validateEvent: boolean;
|
|
964
|
+
readonly inputStyle: StyleValue;
|
|
965
|
+
readonly rows: number;
|
|
966
|
+
readonly inputmode: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
967
|
+
readonly clearable: boolean;
|
|
968
|
+
readonly showPassword: boolean;
|
|
969
|
+
readonly showWordLimit: boolean;
|
|
970
|
+
readonly autofocus: boolean;
|
|
971
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
972
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
973
|
+
created?: (() => void) | (() => void)[];
|
|
974
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
975
|
+
mounted?: (() => void) | (() => void)[];
|
|
976
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
977
|
+
updated?: (() => void) | (() => void)[];
|
|
978
|
+
activated?: (() => void) | (() => void)[];
|
|
979
|
+
deactivated?: (() => void) | (() => void)[];
|
|
980
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
981
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
982
|
+
destroyed?: (() => void) | (() => void)[];
|
|
983
|
+
unmounted?: (() => void) | (() => void)[];
|
|
984
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
985
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
986
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
987
|
+
};
|
|
988
|
+
$forceUpdate: () => void;
|
|
989
|
+
$nextTick: nextTick;
|
|
990
|
+
$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;
|
|
991
|
+
} & Readonly<{
|
|
992
|
+
readonly disabled: boolean;
|
|
993
|
+
readonly id: string;
|
|
994
|
+
readonly type: string;
|
|
995
|
+
readonly modelValue: string | number | null | undefined;
|
|
996
|
+
readonly tabindex: string | number;
|
|
997
|
+
readonly readonly: boolean;
|
|
998
|
+
readonly autosize: InputAutoSize;
|
|
999
|
+
readonly autocomplete: string;
|
|
1000
|
+
readonly containerRole: string;
|
|
1001
|
+
readonly validateEvent: boolean;
|
|
1002
|
+
readonly inputStyle: StyleValue;
|
|
1003
|
+
readonly rows: number;
|
|
1004
|
+
readonly inputmode: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
1005
|
+
readonly clearable: boolean;
|
|
1006
|
+
readonly showPassword: boolean;
|
|
1007
|
+
readonly showWordLimit: boolean;
|
|
1008
|
+
readonly autofocus: boolean;
|
|
1009
|
+
}> & Omit<Readonly<ExtractPropTypes< {
|
|
1010
|
+
readonly inputmode: {
|
|
1011
|
+
readonly type: PropType<"text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
|
|
1012
|
+
readonly required: false;
|
|
1013
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1014
|
+
__epPropKey: true;
|
|
1015
|
+
} & {
|
|
1016
|
+
readonly default: undefined;
|
|
1017
|
+
};
|
|
1018
|
+
readonly name: StringConstructor;
|
|
1019
|
+
readonly ariaLabel: StringConstructor;
|
|
1020
|
+
readonly id: {
|
|
1021
|
+
readonly type: PropType<string>;
|
|
1022
|
+
readonly required: false;
|
|
1023
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1024
|
+
__epPropKey: true;
|
|
1025
|
+
} & {
|
|
1026
|
+
readonly default: undefined;
|
|
1027
|
+
};
|
|
1028
|
+
readonly size: {
|
|
1029
|
+
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
1030
|
+
readonly required: false;
|
|
1031
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1032
|
+
__epPropKey: true;
|
|
1033
|
+
};
|
|
1034
|
+
readonly disabled: BooleanConstructor;
|
|
1035
|
+
readonly modelValue: {
|
|
1036
|
+
readonly type: PropType<string | number | null | undefined>;
|
|
1037
|
+
readonly required: false;
|
|
1038
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1039
|
+
__epPropKey: true;
|
|
1040
|
+
} & {
|
|
1041
|
+
readonly default: "";
|
|
1042
|
+
};
|
|
1043
|
+
readonly maxlength: {
|
|
1044
|
+
readonly type: PropType<string | number>;
|
|
1045
|
+
readonly required: false;
|
|
1046
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1047
|
+
__epPropKey: true;
|
|
1048
|
+
};
|
|
1049
|
+
readonly minlength: {
|
|
1050
|
+
readonly type: PropType<string | number>;
|
|
1051
|
+
readonly required: false;
|
|
1052
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1053
|
+
__epPropKey: true;
|
|
1054
|
+
};
|
|
1055
|
+
readonly type: {
|
|
1056
|
+
readonly type: PropType<string>;
|
|
1057
|
+
readonly required: false;
|
|
1058
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1059
|
+
__epPropKey: true;
|
|
1060
|
+
} & {
|
|
1061
|
+
readonly default: "text";
|
|
1062
|
+
};
|
|
1063
|
+
readonly resize: {
|
|
1064
|
+
readonly type: PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
1065
|
+
readonly required: false;
|
|
1066
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1067
|
+
__epPropKey: true;
|
|
1068
|
+
};
|
|
1069
|
+
readonly autosize: {
|
|
1070
|
+
readonly type: PropType<InputAutoSize>;
|
|
1071
|
+
readonly required: false;
|
|
1072
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1073
|
+
__epPropKey: true;
|
|
1074
|
+
} & {
|
|
1075
|
+
readonly default: false;
|
|
1076
|
+
};
|
|
1077
|
+
readonly autocomplete: {
|
|
1078
|
+
readonly type: PropType<string>;
|
|
1079
|
+
readonly required: false;
|
|
1080
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1081
|
+
__epPropKey: true;
|
|
1082
|
+
} & {
|
|
1083
|
+
readonly default: "off";
|
|
1084
|
+
};
|
|
1085
|
+
readonly formatter: {
|
|
1086
|
+
readonly type: PropType<Function>;
|
|
1087
|
+
readonly required: false;
|
|
1088
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1089
|
+
__epPropKey: true;
|
|
1090
|
+
};
|
|
1091
|
+
readonly parser: {
|
|
1092
|
+
readonly type: PropType<Function>;
|
|
1093
|
+
readonly required: false;
|
|
1094
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1095
|
+
__epPropKey: true;
|
|
1096
|
+
};
|
|
1097
|
+
readonly placeholder: {
|
|
1098
|
+
readonly type: PropType<string>;
|
|
1099
|
+
readonly required: false;
|
|
1100
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1101
|
+
__epPropKey: true;
|
|
1102
|
+
};
|
|
1103
|
+
readonly form: {
|
|
1104
|
+
readonly type: PropType<string>;
|
|
1105
|
+
readonly required: false;
|
|
1106
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1107
|
+
__epPropKey: true;
|
|
1108
|
+
};
|
|
1109
|
+
readonly readonly: BooleanConstructor;
|
|
1110
|
+
readonly clearable: BooleanConstructor;
|
|
1111
|
+
readonly showPassword: BooleanConstructor;
|
|
1112
|
+
readonly showWordLimit: BooleanConstructor;
|
|
1113
|
+
readonly suffixIcon: {
|
|
1114
|
+
readonly type: PropType<string | Component>;
|
|
1115
|
+
readonly required: false;
|
|
1116
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1117
|
+
__epPropKey: true;
|
|
1118
|
+
};
|
|
1119
|
+
readonly prefixIcon: {
|
|
1120
|
+
readonly type: PropType<string | Component>;
|
|
1121
|
+
readonly required: false;
|
|
1122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1123
|
+
__epPropKey: true;
|
|
1124
|
+
};
|
|
1125
|
+
readonly containerRole: {
|
|
1126
|
+
readonly type: PropType<string>;
|
|
1127
|
+
readonly required: false;
|
|
1128
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1129
|
+
__epPropKey: true;
|
|
1130
|
+
} & {
|
|
1131
|
+
readonly default: undefined;
|
|
1132
|
+
};
|
|
1133
|
+
readonly tabindex: {
|
|
1134
|
+
readonly type: PropType<string | number>;
|
|
1135
|
+
readonly required: false;
|
|
1136
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1137
|
+
__epPropKey: true;
|
|
1138
|
+
} & {
|
|
1139
|
+
readonly default: 0;
|
|
1140
|
+
};
|
|
1141
|
+
readonly validateEvent: {
|
|
1142
|
+
readonly type: PropType<boolean>;
|
|
1143
|
+
readonly required: false;
|
|
1144
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1145
|
+
__epPropKey: true;
|
|
1146
|
+
} & {
|
|
1147
|
+
readonly default: true;
|
|
1148
|
+
};
|
|
1149
|
+
readonly inputStyle: {
|
|
1150
|
+
readonly type: PropType<StyleValue>;
|
|
1151
|
+
readonly required: false;
|
|
1152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1153
|
+
__epPropKey: true;
|
|
1154
|
+
} & {
|
|
1155
|
+
readonly default: () => {};
|
|
1156
|
+
};
|
|
1157
|
+
readonly autofocus: BooleanConstructor;
|
|
1158
|
+
readonly rows: {
|
|
1159
|
+
readonly type: PropType<number>;
|
|
1160
|
+
readonly required: false;
|
|
1161
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1162
|
+
__epPropKey: true;
|
|
1163
|
+
} & {
|
|
1164
|
+
readonly default: 2;
|
|
1165
|
+
};
|
|
1166
|
+
}>> & {
|
|
1167
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1168
|
+
onChange?: ((value: string) => any) | undefined;
|
|
1169
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
1170
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
1171
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
1172
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
1173
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
1174
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1175
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
1176
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
1177
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
1178
|
+
onClear?: (() => any) | undefined;
|
|
1179
|
+
}, "clear" | "input" | "select" | "textarea" | "modelValue" | "id" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "type" | "inputmode" | "autosize" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "autofocus" | "rows" | "blur" | "focus" | "ref" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef< {
|
|
1180
|
+
input: ShallowRef<HTMLInputElement | undefined>;
|
|
1181
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1182
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
1183
|
+
textareaStyle: ComputedRef<StyleValue>;
|
|
1184
|
+
autosize: Ref<InputAutoSize>;
|
|
1185
|
+
isComposing: Ref<boolean>;
|
|
1186
|
+
focus: () => void | undefined;
|
|
1187
|
+
blur: () => void | undefined;
|
|
1188
|
+
select: () => void;
|
|
1189
|
+
clear: () => void;
|
|
1190
|
+
resizeTextarea: () => void;
|
|
1191
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1192
|
+
$slots: {
|
|
1193
|
+
prepend?(_: {}): any;
|
|
1194
|
+
prefix?(_: {}): any;
|
|
1195
|
+
suffix?(_: {}): any;
|
|
1196
|
+
append?(_: {}): any;
|
|
1197
|
+
};
|
|
1198
|
+
}) | undefined, ({
|
|
1199
|
+
$: ComponentInternalInstance;
|
|
1200
|
+
$data: {};
|
|
1201
|
+
$props: Partial<{
|
|
1202
|
+
readonly disabled: boolean;
|
|
1203
|
+
readonly id: string;
|
|
1204
|
+
readonly type: string;
|
|
1205
|
+
readonly modelValue: string | number | null | undefined;
|
|
1206
|
+
readonly tabindex: string | number;
|
|
1207
|
+
readonly readonly: boolean;
|
|
1208
|
+
readonly autosize: InputAutoSize;
|
|
1209
|
+
readonly autocomplete: string;
|
|
1210
|
+
readonly containerRole: string;
|
|
1211
|
+
readonly validateEvent: boolean;
|
|
1212
|
+
readonly inputStyle: StyleValue;
|
|
1213
|
+
readonly rows: number;
|
|
1214
|
+
readonly inputmode: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
1215
|
+
readonly clearable: boolean;
|
|
1216
|
+
readonly showPassword: boolean;
|
|
1217
|
+
readonly showWordLimit: boolean;
|
|
1218
|
+
readonly autofocus: boolean;
|
|
1219
|
+
}> & Omit<{
|
|
1220
|
+
readonly modelValue: string | number | null;
|
|
1221
|
+
readonly autocomplete: string;
|
|
1222
|
+
readonly disabled: boolean;
|
|
1223
|
+
readonly clearable: boolean;
|
|
1224
|
+
readonly validateEvent: boolean;
|
|
1225
|
+
readonly tabindex: string | number;
|
|
1226
|
+
readonly type: string;
|
|
1227
|
+
readonly autosize: InputAutoSize;
|
|
1228
|
+
readonly readonly: boolean;
|
|
1229
|
+
readonly showPassword: boolean;
|
|
1230
|
+
readonly showWordLimit: boolean;
|
|
1231
|
+
readonly inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
1232
|
+
readonly autofocus: boolean;
|
|
1233
|
+
readonly rows: number;
|
|
1234
|
+
readonly size?: ("" | "small" | "default" | "large") | undefined;
|
|
1235
|
+
readonly name?: string | undefined;
|
|
1236
|
+
readonly form?: string | undefined;
|
|
1237
|
+
readonly ariaLabel?: string | undefined;
|
|
1238
|
+
readonly id?: string | undefined;
|
|
1239
|
+
readonly placeholder?: string | undefined;
|
|
1240
|
+
readonly suffixIcon?: (string | Component) | undefined;
|
|
1241
|
+
readonly inputmode?: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
1242
|
+
readonly maxlength?: (string | number) | undefined;
|
|
1243
|
+
readonly minlength?: (string | number) | undefined;
|
|
1244
|
+
readonly resize?: ("none" | "both" | "horizontal" | "vertical") | undefined;
|
|
1245
|
+
readonly formatter?: Function | undefined;
|
|
1246
|
+
readonly parser?: Function | undefined;
|
|
1247
|
+
readonly prefixIcon?: (string | Component) | undefined;
|
|
1248
|
+
readonly containerRole?: string | undefined;
|
|
1249
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
1250
|
+
onChange?: ((value: string) => any) | undefined | undefined;
|
|
1251
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
1252
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
1253
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
1254
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
1255
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
1256
|
+
onInput?: ((value: string) => any) | undefined | undefined;
|
|
1257
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
1258
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
1259
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
1260
|
+
onClear?: (() => any) | undefined | undefined;
|
|
1261
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "modelValue" | "id" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "type" | "inputmode" | "autosize" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "autofocus" | "rows">;
|
|
1262
|
+
$attrs: {
|
|
1263
|
+
[x: string]: unknown;
|
|
1264
|
+
};
|
|
1265
|
+
$refs: {
|
|
1266
|
+
[x: string]: unknown;
|
|
1267
|
+
};
|
|
1268
|
+
$slots: Readonly<{
|
|
1269
|
+
[name: string]: Slot<any> | undefined;
|
|
1270
|
+
}>;
|
|
1271
|
+
$root: ComponentPublicInstance | null;
|
|
1272
|
+
$parent: ComponentPublicInstance | null;
|
|
1273
|
+
$host: Element | null;
|
|
1274
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "change", value: string) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void);
|
|
1275
|
+
$el: any;
|
|
1276
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
|
|
1277
|
+
readonly inputmode: {
|
|
1278
|
+
readonly type: PropType<"text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
|
|
1279
|
+
readonly required: false;
|
|
1280
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1281
|
+
__epPropKey: true;
|
|
1282
|
+
} & {
|
|
1283
|
+
readonly default: undefined;
|
|
1284
|
+
};
|
|
1285
|
+
readonly name: StringConstructor;
|
|
1286
|
+
readonly ariaLabel: StringConstructor;
|
|
1287
|
+
readonly id: {
|
|
1288
|
+
readonly type: PropType<string>;
|
|
1289
|
+
readonly required: false;
|
|
1290
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1291
|
+
__epPropKey: true;
|
|
1292
|
+
} & {
|
|
1293
|
+
readonly default: undefined;
|
|
1294
|
+
};
|
|
1295
|
+
readonly size: {
|
|
1296
|
+
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
1297
|
+
readonly required: false;
|
|
1298
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1299
|
+
__epPropKey: true;
|
|
1300
|
+
};
|
|
1301
|
+
readonly disabled: BooleanConstructor;
|
|
1302
|
+
readonly modelValue: {
|
|
1303
|
+
readonly type: PropType<string | number | null | undefined>;
|
|
1304
|
+
readonly required: false;
|
|
1305
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1306
|
+
__epPropKey: true;
|
|
1307
|
+
} & {
|
|
1308
|
+
readonly default: "";
|
|
1309
|
+
};
|
|
1310
|
+
readonly maxlength: {
|
|
1311
|
+
readonly type: PropType<string | number>;
|
|
1312
|
+
readonly required: false;
|
|
1313
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1314
|
+
__epPropKey: true;
|
|
1315
|
+
};
|
|
1316
|
+
readonly minlength: {
|
|
1317
|
+
readonly type: PropType<string | number>;
|
|
1318
|
+
readonly required: false;
|
|
1319
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1320
|
+
__epPropKey: true;
|
|
1321
|
+
};
|
|
1322
|
+
readonly type: {
|
|
1323
|
+
readonly type: PropType<string>;
|
|
1324
|
+
readonly required: false;
|
|
1325
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1326
|
+
__epPropKey: true;
|
|
1327
|
+
} & {
|
|
1328
|
+
readonly default: "text";
|
|
1329
|
+
};
|
|
1330
|
+
readonly resize: {
|
|
1331
|
+
readonly type: PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
1332
|
+
readonly required: false;
|
|
1333
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1334
|
+
__epPropKey: true;
|
|
1335
|
+
};
|
|
1336
|
+
readonly autosize: {
|
|
1337
|
+
readonly type: PropType<InputAutoSize>;
|
|
1338
|
+
readonly required: false;
|
|
1339
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1340
|
+
__epPropKey: true;
|
|
1341
|
+
} & {
|
|
1342
|
+
readonly default: false;
|
|
1343
|
+
};
|
|
1344
|
+
readonly autocomplete: {
|
|
1345
|
+
readonly type: PropType<string>;
|
|
1346
|
+
readonly required: false;
|
|
1347
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1348
|
+
__epPropKey: true;
|
|
1349
|
+
} & {
|
|
1350
|
+
readonly default: "off";
|
|
1351
|
+
};
|
|
1352
|
+
readonly formatter: {
|
|
1353
|
+
readonly type: PropType<Function>;
|
|
1354
|
+
readonly required: false;
|
|
1355
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1356
|
+
__epPropKey: true;
|
|
1357
|
+
};
|
|
1358
|
+
readonly parser: {
|
|
1359
|
+
readonly type: PropType<Function>;
|
|
1360
|
+
readonly required: false;
|
|
1361
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1362
|
+
__epPropKey: true;
|
|
1363
|
+
};
|
|
1364
|
+
readonly placeholder: {
|
|
1365
|
+
readonly type: PropType<string>;
|
|
1366
|
+
readonly required: false;
|
|
1367
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1368
|
+
__epPropKey: true;
|
|
1369
|
+
};
|
|
1370
|
+
readonly form: {
|
|
1371
|
+
readonly type: PropType<string>;
|
|
1372
|
+
readonly required: false;
|
|
1373
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1374
|
+
__epPropKey: true;
|
|
1375
|
+
};
|
|
1376
|
+
readonly readonly: BooleanConstructor;
|
|
1377
|
+
readonly clearable: BooleanConstructor;
|
|
1378
|
+
readonly showPassword: BooleanConstructor;
|
|
1379
|
+
readonly showWordLimit: BooleanConstructor;
|
|
1380
|
+
readonly suffixIcon: {
|
|
1381
|
+
readonly type: PropType<string | Component>;
|
|
1382
|
+
readonly required: false;
|
|
1383
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1384
|
+
__epPropKey: true;
|
|
1385
|
+
};
|
|
1386
|
+
readonly prefixIcon: {
|
|
1387
|
+
readonly type: PropType<string | Component>;
|
|
1388
|
+
readonly required: false;
|
|
1389
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1390
|
+
__epPropKey: true;
|
|
1391
|
+
};
|
|
1392
|
+
readonly containerRole: {
|
|
1393
|
+
readonly type: PropType<string>;
|
|
1394
|
+
readonly required: false;
|
|
1395
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1396
|
+
__epPropKey: true;
|
|
1397
|
+
} & {
|
|
1398
|
+
readonly default: undefined;
|
|
1399
|
+
};
|
|
1400
|
+
readonly tabindex: {
|
|
1401
|
+
readonly type: PropType<string | number>;
|
|
1402
|
+
readonly required: false;
|
|
1403
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1404
|
+
__epPropKey: true;
|
|
1405
|
+
} & {
|
|
1406
|
+
readonly default: 0;
|
|
1407
|
+
};
|
|
1408
|
+
readonly validateEvent: {
|
|
1409
|
+
readonly type: PropType<boolean>;
|
|
1410
|
+
readonly required: false;
|
|
1411
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1412
|
+
__epPropKey: true;
|
|
1413
|
+
} & {
|
|
1414
|
+
readonly default: true;
|
|
1415
|
+
};
|
|
1416
|
+
readonly inputStyle: {
|
|
1417
|
+
readonly type: PropType<StyleValue>;
|
|
1418
|
+
readonly required: false;
|
|
1419
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1420
|
+
__epPropKey: true;
|
|
1421
|
+
} & {
|
|
1422
|
+
readonly default: () => {};
|
|
1423
|
+
};
|
|
1424
|
+
readonly autofocus: BooleanConstructor;
|
|
1425
|
+
readonly rows: {
|
|
1426
|
+
readonly type: PropType<number>;
|
|
1427
|
+
readonly required: false;
|
|
1428
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1429
|
+
__epPropKey: true;
|
|
1430
|
+
} & {
|
|
1431
|
+
readonly default: 2;
|
|
1432
|
+
};
|
|
1433
|
+
}>> & {
|
|
1434
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1435
|
+
onChange?: ((value: string) => any) | undefined;
|
|
1436
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
1437
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
1438
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
1439
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
1440
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
1441
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1442
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
1443
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
1444
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
1445
|
+
onClear?: (() => any) | undefined;
|
|
1446
|
+
}, {
|
|
1447
|
+
input: ShallowRef<HTMLInputElement | undefined>;
|
|
1448
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1449
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
1450
|
+
textareaStyle: ComputedRef<StyleValue>;
|
|
1451
|
+
autosize: Ref<InputAutoSize>;
|
|
1452
|
+
isComposing: Ref<boolean>;
|
|
1453
|
+
focus: () => void | undefined;
|
|
1454
|
+
blur: () => void | undefined;
|
|
1455
|
+
select: () => void;
|
|
1456
|
+
clear: () => void;
|
|
1457
|
+
resizeTextarea: () => void;
|
|
1458
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1459
|
+
input: (value: string) => void;
|
|
1460
|
+
clear: () => void;
|
|
1461
|
+
"update:modelValue": (value: string) => void;
|
|
1462
|
+
change: (value: string) => void;
|
|
1463
|
+
blur: (evt: FocusEvent) => void;
|
|
1464
|
+
compositionend: (evt: CompositionEvent) => void;
|
|
1465
|
+
compositionstart: (evt: CompositionEvent) => void;
|
|
1466
|
+
compositionupdate: (evt: CompositionEvent) => void;
|
|
1467
|
+
focus: (evt: FocusEvent) => void;
|
|
1468
|
+
keydown: (evt: Event | KeyboardEvent) => void;
|
|
1469
|
+
mouseenter: (evt: MouseEvent) => void;
|
|
1470
|
+
mouseleave: (evt: MouseEvent) => void;
|
|
1471
|
+
}, string, {
|
|
1472
|
+
readonly disabled: boolean;
|
|
1473
|
+
readonly id: string;
|
|
1474
|
+
readonly type: string;
|
|
1475
|
+
readonly modelValue: string | number | null | undefined;
|
|
1476
|
+
readonly tabindex: string | number;
|
|
1477
|
+
readonly readonly: boolean;
|
|
1478
|
+
readonly autosize: InputAutoSize;
|
|
1479
|
+
readonly autocomplete: string;
|
|
1480
|
+
readonly containerRole: string;
|
|
1481
|
+
readonly validateEvent: boolean;
|
|
1482
|
+
readonly inputStyle: StyleValue;
|
|
1483
|
+
readonly rows: number;
|
|
1484
|
+
readonly inputmode: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
1485
|
+
readonly clearable: boolean;
|
|
1486
|
+
readonly showPassword: boolean;
|
|
1487
|
+
readonly showWordLimit: boolean;
|
|
1488
|
+
readonly autofocus: boolean;
|
|
1489
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1490
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1491
|
+
created?: (() => void) | (() => void)[];
|
|
1492
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1493
|
+
mounted?: (() => void) | (() => void)[];
|
|
1494
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1495
|
+
updated?: (() => void) | (() => void)[];
|
|
1496
|
+
activated?: (() => void) | (() => void)[];
|
|
1497
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1498
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1499
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1500
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1501
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1502
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1503
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1504
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1505
|
+
};
|
|
1506
|
+
$forceUpdate: () => void;
|
|
1507
|
+
$nextTick: nextTick;
|
|
1508
|
+
$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;
|
|
1509
|
+
} & Readonly<{
|
|
1510
|
+
readonly disabled: boolean;
|
|
1511
|
+
readonly id: string;
|
|
1512
|
+
readonly type: string;
|
|
1513
|
+
readonly modelValue: string | number | null | undefined;
|
|
1514
|
+
readonly tabindex: string | number;
|
|
1515
|
+
readonly readonly: boolean;
|
|
1516
|
+
readonly autosize: InputAutoSize;
|
|
1517
|
+
readonly autocomplete: string;
|
|
1518
|
+
readonly containerRole: string;
|
|
1519
|
+
readonly validateEvent: boolean;
|
|
1520
|
+
readonly inputStyle: StyleValue;
|
|
1521
|
+
readonly rows: number;
|
|
1522
|
+
readonly inputmode: "text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
1523
|
+
readonly clearable: boolean;
|
|
1524
|
+
readonly showPassword: boolean;
|
|
1525
|
+
readonly showWordLimit: boolean;
|
|
1526
|
+
readonly autofocus: boolean;
|
|
1527
|
+
}> & Omit<Readonly<ExtractPropTypes< {
|
|
1528
|
+
readonly inputmode: {
|
|
1529
|
+
readonly type: PropType<"text" | "none" | "search" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined>;
|
|
1530
|
+
readonly required: false;
|
|
1531
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1532
|
+
__epPropKey: true;
|
|
1533
|
+
} & {
|
|
1534
|
+
readonly default: undefined;
|
|
1535
|
+
};
|
|
1536
|
+
readonly name: StringConstructor;
|
|
1537
|
+
readonly ariaLabel: StringConstructor;
|
|
1538
|
+
readonly id: {
|
|
1539
|
+
readonly type: PropType<string>;
|
|
1540
|
+
readonly required: false;
|
|
1541
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1542
|
+
__epPropKey: true;
|
|
1543
|
+
} & {
|
|
1544
|
+
readonly default: undefined;
|
|
1545
|
+
};
|
|
1546
|
+
readonly size: {
|
|
1547
|
+
readonly type: PropType<"" | "small" | "default" | "large">;
|
|
1548
|
+
readonly required: false;
|
|
1549
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1550
|
+
__epPropKey: true;
|
|
1551
|
+
};
|
|
1552
|
+
readonly disabled: BooleanConstructor;
|
|
1553
|
+
readonly modelValue: {
|
|
1554
|
+
readonly type: PropType<string | number | null | undefined>;
|
|
1555
|
+
readonly required: false;
|
|
1556
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1557
|
+
__epPropKey: true;
|
|
1558
|
+
} & {
|
|
1559
|
+
readonly default: "";
|
|
1560
|
+
};
|
|
1561
|
+
readonly maxlength: {
|
|
1562
|
+
readonly type: PropType<string | number>;
|
|
1563
|
+
readonly required: false;
|
|
1564
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1565
|
+
__epPropKey: true;
|
|
1566
|
+
};
|
|
1567
|
+
readonly minlength: {
|
|
1568
|
+
readonly type: PropType<string | number>;
|
|
1569
|
+
readonly required: false;
|
|
1570
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1571
|
+
__epPropKey: true;
|
|
1572
|
+
};
|
|
1573
|
+
readonly type: {
|
|
1574
|
+
readonly type: PropType<string>;
|
|
1575
|
+
readonly required: false;
|
|
1576
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1577
|
+
__epPropKey: true;
|
|
1578
|
+
} & {
|
|
1579
|
+
readonly default: "text";
|
|
1580
|
+
};
|
|
1581
|
+
readonly resize: {
|
|
1582
|
+
readonly type: PropType<"none" | "both" | "horizontal" | "vertical">;
|
|
1583
|
+
readonly required: false;
|
|
1584
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1585
|
+
__epPropKey: true;
|
|
1586
|
+
};
|
|
1587
|
+
readonly autosize: {
|
|
1588
|
+
readonly type: PropType<InputAutoSize>;
|
|
1589
|
+
readonly required: false;
|
|
1590
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1591
|
+
__epPropKey: true;
|
|
1592
|
+
} & {
|
|
1593
|
+
readonly default: false;
|
|
1594
|
+
};
|
|
1595
|
+
readonly autocomplete: {
|
|
1596
|
+
readonly type: PropType<string>;
|
|
1597
|
+
readonly required: false;
|
|
1598
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1599
|
+
__epPropKey: true;
|
|
1600
|
+
} & {
|
|
1601
|
+
readonly default: "off";
|
|
1602
|
+
};
|
|
1603
|
+
readonly formatter: {
|
|
1604
|
+
readonly type: PropType<Function>;
|
|
1605
|
+
readonly required: false;
|
|
1606
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1607
|
+
__epPropKey: true;
|
|
1608
|
+
};
|
|
1609
|
+
readonly parser: {
|
|
1610
|
+
readonly type: PropType<Function>;
|
|
1611
|
+
readonly required: false;
|
|
1612
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1613
|
+
__epPropKey: true;
|
|
1614
|
+
};
|
|
1615
|
+
readonly placeholder: {
|
|
1616
|
+
readonly type: PropType<string>;
|
|
1617
|
+
readonly required: false;
|
|
1618
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1619
|
+
__epPropKey: true;
|
|
1620
|
+
};
|
|
1621
|
+
readonly form: {
|
|
1622
|
+
readonly type: PropType<string>;
|
|
1623
|
+
readonly required: false;
|
|
1624
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1625
|
+
__epPropKey: true;
|
|
1626
|
+
};
|
|
1627
|
+
readonly readonly: BooleanConstructor;
|
|
1628
|
+
readonly clearable: BooleanConstructor;
|
|
1629
|
+
readonly showPassword: BooleanConstructor;
|
|
1630
|
+
readonly showWordLimit: BooleanConstructor;
|
|
1631
|
+
readonly suffixIcon: {
|
|
1632
|
+
readonly type: PropType<string | Component>;
|
|
1633
|
+
readonly required: false;
|
|
1634
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1635
|
+
__epPropKey: true;
|
|
1636
|
+
};
|
|
1637
|
+
readonly prefixIcon: {
|
|
1638
|
+
readonly type: PropType<string | Component>;
|
|
1639
|
+
readonly required: false;
|
|
1640
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1641
|
+
__epPropKey: true;
|
|
1642
|
+
};
|
|
1643
|
+
readonly containerRole: {
|
|
1644
|
+
readonly type: PropType<string>;
|
|
1645
|
+
readonly required: false;
|
|
1646
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1647
|
+
__epPropKey: true;
|
|
1648
|
+
} & {
|
|
1649
|
+
readonly default: undefined;
|
|
1650
|
+
};
|
|
1651
|
+
readonly tabindex: {
|
|
1652
|
+
readonly type: PropType<string | number>;
|
|
1653
|
+
readonly required: false;
|
|
1654
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1655
|
+
__epPropKey: true;
|
|
1656
|
+
} & {
|
|
1657
|
+
readonly default: 0;
|
|
1658
|
+
};
|
|
1659
|
+
readonly validateEvent: {
|
|
1660
|
+
readonly type: PropType<boolean>;
|
|
1661
|
+
readonly required: false;
|
|
1662
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1663
|
+
__epPropKey: true;
|
|
1664
|
+
} & {
|
|
1665
|
+
readonly default: true;
|
|
1666
|
+
};
|
|
1667
|
+
readonly inputStyle: {
|
|
1668
|
+
readonly type: PropType<StyleValue>;
|
|
1669
|
+
readonly required: false;
|
|
1670
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1671
|
+
__epPropKey: true;
|
|
1672
|
+
} & {
|
|
1673
|
+
readonly default: () => {};
|
|
1674
|
+
};
|
|
1675
|
+
readonly autofocus: BooleanConstructor;
|
|
1676
|
+
readonly rows: {
|
|
1677
|
+
readonly type: PropType<number>;
|
|
1678
|
+
readonly required: false;
|
|
1679
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1680
|
+
__epPropKey: true;
|
|
1681
|
+
} & {
|
|
1682
|
+
readonly default: 2;
|
|
1683
|
+
};
|
|
1684
|
+
}>> & {
|
|
1685
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1686
|
+
onChange?: ((value: string) => any) | undefined;
|
|
1687
|
+
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
1688
|
+
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
1689
|
+
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
1690
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
1691
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
1692
|
+
onInput?: ((value: string) => any) | undefined;
|
|
1693
|
+
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
1694
|
+
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
1695
|
+
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
1696
|
+
onClear?: (() => any) | undefined;
|
|
1697
|
+
}, "clear" | "input" | "select" | "textarea" | "modelValue" | "id" | "autocomplete" | "disabled" | "clearable" | "validateEvent" | "tabindex" | "type" | "inputmode" | "autosize" | "readonly" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "autofocus" | "rows" | "blur" | "focus" | "ref" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef< {
|
|
1698
|
+
input: ShallowRef<HTMLInputElement | undefined>;
|
|
1699
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1700
|
+
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
1701
|
+
textareaStyle: ComputedRef<StyleValue>;
|
|
1702
|
+
autosize: Ref<InputAutoSize>;
|
|
1703
|
+
isComposing: Ref<boolean>;
|
|
1704
|
+
focus: () => void | undefined;
|
|
1705
|
+
blur: () => void | undefined;
|
|
1706
|
+
select: () => void;
|
|
1707
|
+
clear: () => void;
|
|
1708
|
+
resizeTextarea: () => void;
|
|
1709
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1710
|
+
$slots: {
|
|
1711
|
+
prepend?(_: {}): any;
|
|
1712
|
+
prefix?(_: {}): any;
|
|
1713
|
+
suffix?(_: {}): any;
|
|
1714
|
+
append?(_: {}): any;
|
|
1715
|
+
};
|
|
1716
|
+
}) | undefined>;
|
|
1717
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
658
1718
|
"update:modelValue": (value: any) => any;
|
|
659
1719
|
change: (value: string) => any;
|
|
660
1720
|
suffixClick: () => any;
|
|
@@ -665,7 +1725,9 @@ onSuffixClick?: (() => any) | undefined;
|
|
|
665
1725
|
}>, {
|
|
666
1726
|
readonly validateEvent: boolean;
|
|
667
1727
|
on: TEvent & Partial<InputEmits>;
|
|
668
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1728
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1729
|
+
inputRef: unknown;
|
|
1730
|
+
}, any>;
|
|
669
1731
|
|
|
670
1732
|
export declare const BaseSelect: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
671
1733
|
|
|
@@ -1123,11 +2185,11 @@ export declare const getEmojiRegex: () => RegExp;
|
|
|
1123
2185
|
*/
|
|
1124
2186
|
export declare const getRecentDateRange: (days: number, format?: string, type?: ManipulateType) => string[];
|
|
1125
2187
|
|
|
1126
|
-
export declare const GroupSelectInput: DefineComponent<
|
|
2188
|
+
export declare const GroupSelectInput: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1127
2189
|
"update:modelValue": (args_0: string[]) => any;
|
|
1128
2190
|
change: (args_0: [(string | undefined)?, (string | undefined)?]) => any;
|
|
1129
2191
|
suffixClick: (args_0: string) => any;
|
|
1130
|
-
}, string, PublicProps, Readonly<
|
|
2192
|
+
}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
|
|
1131
2193
|
"onUpdate:modelValue"?: ((args_0: string[]) => any) | undefined;
|
|
1132
2194
|
onChange?: ((args_0: [(string | undefined)?, (string | undefined)?]) => any) | undefined;
|
|
1133
2195
|
onSuffixClick?: ((args_0: string) => any) | undefined;
|
|
@@ -1384,7 +2446,7 @@ declare interface IBaseSearchInputProps extends Partial<InputProps> {
|
|
|
1384
2446
|
on?: TEvent & Partial<InputEmits>;
|
|
1385
2447
|
}
|
|
1386
2448
|
|
|
1387
|
-
export declare interface IBaseTableColumn<T extends TObj = TObj> extends Partial<Omit<
|
|
2449
|
+
export declare interface IBaseTableColumn<T extends TObj = TObj> extends Partial<Omit<TableColumnCtx_2<T>, "prop" | "renderHeader" | "type" | "fixed">> {
|
|
1388
2450
|
type?: "default" | "selection" | "index" | "expand" | string;
|
|
1389
2451
|
_render?: (_: typeof h, params: T & {
|
|
1390
2452
|
$index: number;
|
|
@@ -1731,6 +2793,115 @@ export declare interface IEllipsisTooltipConfig {
|
|
|
1731
2793
|
maxHeight?: string;
|
|
1732
2794
|
}
|
|
1733
2795
|
|
|
2796
|
+
/**
|
|
2797
|
+
* el table 的实例
|
|
2798
|
+
* 如果直接使用 typeof ElTable 会导致打包类型报错
|
|
2799
|
+
*/
|
|
2800
|
+
export declare interface IElTableInstance {
|
|
2801
|
+
/**
|
|
2802
|
+
* 用于多选表格,清空用户的选择
|
|
2803
|
+
*/
|
|
2804
|
+
clearSelection(): void;
|
|
2805
|
+
/**
|
|
2806
|
+
* 返回当前选中的行
|
|
2807
|
+
*/
|
|
2808
|
+
getSelectionRows(): TAny_2[];
|
|
2809
|
+
/**
|
|
2810
|
+
* 用于多选表格,切换某一行的选中状态, 如果使用了第二个参数,则可直接设置这一行选中与否
|
|
2811
|
+
* @param row 要切换选中状态的行
|
|
2812
|
+
* @param selected 是否选中,如果设置则直接设置选中状态
|
|
2813
|
+
* @param ignoreSelectable 是否忽略选中状态
|
|
2814
|
+
*/
|
|
2815
|
+
toggleRowSelection(row: TAny_2, selected?: boolean, ignoreSelectable?: boolean): void;
|
|
2816
|
+
/**
|
|
2817
|
+
* 用于多选表格,切换全选和全不选
|
|
2818
|
+
*/
|
|
2819
|
+
toggleAllSelection(): void;
|
|
2820
|
+
/**
|
|
2821
|
+
* 用于可扩展的表格或树表格,如果某行被扩展,则切换。 使用第二个参数,您可以直接设置该行应该被扩展或折叠。
|
|
2822
|
+
* @param row 要切换展开状态的行
|
|
2823
|
+
* @param expanded 是否展开,如果设置则直接设置展开状态
|
|
2824
|
+
*/
|
|
2825
|
+
toggleRowExpansion(row: TAny_2, expanded?: boolean): void;
|
|
2826
|
+
/**
|
|
2827
|
+
* 用于单选表格,设定某一行为选中行, 如果调用时不加参数,则会取消目前高亮行的选中状态。
|
|
2828
|
+
* @param row 要选中的行,如果不传参数则取消当前选中的行
|
|
2829
|
+
*/
|
|
2830
|
+
setCurrentRow(row?: TAny_2): void;
|
|
2831
|
+
/**
|
|
2832
|
+
* 清空排序条件,数据会恢复成未排序的状态
|
|
2833
|
+
*/
|
|
2834
|
+
clearSort(): void;
|
|
2835
|
+
/**
|
|
2836
|
+
* 传入由columnKey 组成的数组以清除指定列的过滤条件。 如果没有参数,清除所有过滤器
|
|
2837
|
+
* @param columnKeys 由columnKey组成的数组,用于清除指定列的过滤条件。如果不传,则清除所有过滤器
|
|
2838
|
+
*/
|
|
2839
|
+
clearFilter(columnKeys?: string[]): void;
|
|
2840
|
+
/**
|
|
2841
|
+
* 对 Table 进行重新布局。 当表格可见性变化时,您可能需要调用此方法以获得正确的布局
|
|
2842
|
+
*/
|
|
2843
|
+
doLayout(): void;
|
|
2844
|
+
/**
|
|
2845
|
+
* 手动排序表格。 参数 prop 属性指定排序列,order 指定排序顺序。
|
|
2846
|
+
* @param prop 排序列的 prop
|
|
2847
|
+
* @param order 排序顺序,'ascending' 或 'descending'
|
|
2848
|
+
*/
|
|
2849
|
+
sort(prop: string, order: "ascending" | "descending"): void;
|
|
2850
|
+
/**
|
|
2851
|
+
* 滚动到一组特定坐标
|
|
2852
|
+
* @param options 滚动选项
|
|
2853
|
+
* @param yCord 垂直坐标
|
|
2854
|
+
*/
|
|
2855
|
+
scrollTo(options: number | ScrollToOptions, yCord?: number): void;
|
|
2856
|
+
/**
|
|
2857
|
+
* 设置垂直滚动位置
|
|
2858
|
+
* @param top 垂直滚动位置
|
|
2859
|
+
*/
|
|
2860
|
+
setScrollTop(top: number): void;
|
|
2861
|
+
/**
|
|
2862
|
+
* 设置水平滚动位置
|
|
2863
|
+
* @param left 水平滚动位置
|
|
2864
|
+
*/
|
|
2865
|
+
setScrollLeft(left?: number): void;
|
|
2866
|
+
/**
|
|
2867
|
+
* 使用给定的滚动策略滚动至指定行
|
|
2868
|
+
* @description el-table-v2 专属
|
|
2869
|
+
* @param row
|
|
2870
|
+
* @param strategy
|
|
2871
|
+
*/
|
|
2872
|
+
scrollToRow(row: number, strategy?: "center" | "end" | "start" | "smart"): void;
|
|
2873
|
+
/**
|
|
2874
|
+
* 获取表列的 context
|
|
2875
|
+
*/
|
|
2876
|
+
columns: TAny_2[];
|
|
2877
|
+
/**
|
|
2878
|
+
* 适用于 lazy Table, 需要设置 rowKey, 更新 key children
|
|
2879
|
+
* @param key 行的 key
|
|
2880
|
+
* @param data 子节点数据
|
|
2881
|
+
*/
|
|
2882
|
+
updateKeyChildren(key: string, data: TAny_2[]): void;
|
|
2883
|
+
/**
|
|
2884
|
+
* 组件根 DOM 元素
|
|
2885
|
+
*/
|
|
2886
|
+
$el: HTMLElement;
|
|
2887
|
+
/**
|
|
2888
|
+
* 组件属性
|
|
2889
|
+
*/
|
|
2890
|
+
$props: Record<string, TAny_2>;
|
|
2891
|
+
/**
|
|
2892
|
+
* 组件插槽
|
|
2893
|
+
*/
|
|
2894
|
+
$slots: Record<string, TAny_2>;
|
|
2895
|
+
/**
|
|
2896
|
+
* 组件属性 (包含未声明的属性)
|
|
2897
|
+
*/
|
|
2898
|
+
$attrs: Record<string, TAny_2>;
|
|
2899
|
+
/**
|
|
2900
|
+
* 组件发射的事件
|
|
2901
|
+
*/
|
|
2902
|
+
$emit: (event: string, ...args: TAny_2[]) => void;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
1734
2905
|
/**
|
|
1735
2906
|
* 分组的列的数据
|
|
1736
2907
|
*/
|
|
@@ -1827,15 +2998,19 @@ declare const installer: {
|
|
|
1827
2998
|
};
|
|
1828
2999
|
export default installer;
|
|
1829
3000
|
|
|
1830
|
-
declare const installer_10 = withInstallComponent(
|
|
3001
|
+
declare const installer_10 = withInstallComponent(ZShowToTags, "ZShowToTags");
|
|
3002
|
+
|
|
3003
|
+
declare const installer_11 = withInstallComponent(ZTable, "ZTable");
|
|
1831
3004
|
|
|
1832
|
-
declare const
|
|
3005
|
+
declare const installer_12 = withInstallComponent(ZTableLinkButton, "ZTableLinkButton");
|
|
1833
3006
|
|
|
1834
|
-
declare const
|
|
3007
|
+
declare const installer_13 = withInstallComponent(ZTableV2, "ZTableV2");
|
|
1835
3008
|
|
|
1836
|
-
declare const
|
|
3009
|
+
declare const installer_14 = withInstallComponent(ZTipsFormItem, "ZTipsFormItem");
|
|
1837
3010
|
|
|
1838
|
-
declare const
|
|
3011
|
+
declare const installer_15 = withInstallComponent(ZTransitionFadeHeight, "ZTransitionFadeHeight");
|
|
3012
|
+
|
|
3013
|
+
declare const installer_16 = withInstallComponent(ZTransitionFadeSlide, "ZTransitionFadeSlide");
|
|
1839
3014
|
|
|
1840
3015
|
declare const installer_2 = withInstallComponent(ZAutoTooltip, "ZAutoTooltip");
|
|
1841
3016
|
|
|
@@ -1849,9 +3024,9 @@ declare const installer_6 = withInstallComponent(ZForm, "ZForm");
|
|
|
1849
3024
|
|
|
1850
3025
|
declare const installer_7 = withInstallComponent(ZHorizontalStep, "ZHorizontalStep");
|
|
1851
3026
|
|
|
1852
|
-
declare const installer_8 = withInstallComponent(
|
|
3027
|
+
declare const installer_8 = withInstallComponent(ZOperationIconButton, "ZOperationIconButton");
|
|
1853
3028
|
|
|
1854
|
-
declare const installer_9 = withInstallComponent(
|
|
3029
|
+
declare const installer_9 = withInstallComponent(ZPlusBold, "ZPlusBold");
|
|
1855
3030
|
|
|
1856
3031
|
export declare interface IOpenDialogOptions {
|
|
1857
3032
|
/**
|
|
@@ -1882,6 +3057,30 @@ declare interface IProps_2 extends TBaseSelectAttrs, Partial<Omit<SelectProps, "
|
|
|
1882
3057
|
on?: TEvent;
|
|
1883
3058
|
}
|
|
1884
3059
|
|
|
3060
|
+
/**
|
|
3061
|
+
* tableColumn 中 用于通过 options 渲染列的结构
|
|
3062
|
+
*/
|
|
3063
|
+
export declare interface IRenderToOptionType {
|
|
3064
|
+
/**
|
|
3065
|
+
* 展示的文本
|
|
3066
|
+
*/
|
|
3067
|
+
label?: string;
|
|
3068
|
+
/**
|
|
3069
|
+
* 值
|
|
3070
|
+
*/
|
|
3071
|
+
value?: TAllType;
|
|
3072
|
+
/**
|
|
3073
|
+
* 字体颜色
|
|
3074
|
+
* @description 会自动把字体颜色变化
|
|
3075
|
+
*/
|
|
3076
|
+
_color?: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* 状态颜色
|
|
3079
|
+
* @description 会给内容添加状态标识
|
|
3080
|
+
*/
|
|
3081
|
+
_status?: string;
|
|
3082
|
+
}
|
|
3083
|
+
|
|
1885
3084
|
/**
|
|
1886
3085
|
* 判断当前时间是否大于现在
|
|
1887
3086
|
* @param time
|
|
@@ -1930,6 +3129,41 @@ export declare interface IStyle {
|
|
|
1930
3129
|
className?: string;
|
|
1931
3130
|
}
|
|
1932
3131
|
|
|
3132
|
+
declare interface ITableCustomColumnGroup {
|
|
3133
|
+
/**
|
|
3134
|
+
* column
|
|
3135
|
+
* @description 只保存勾选的 column
|
|
3136
|
+
*/
|
|
3137
|
+
columns: ITableCustomColumnGroupColumn[];
|
|
3138
|
+
/**
|
|
3139
|
+
* 分组名称
|
|
3140
|
+
*/
|
|
3141
|
+
groupName: string;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
declare interface ITableCustomColumnGroupColumn {
|
|
3145
|
+
/**
|
|
3146
|
+
* 是否勾选
|
|
3147
|
+
*/
|
|
3148
|
+
checked: boolean;
|
|
3149
|
+
/**
|
|
3150
|
+
* prop 定义
|
|
3151
|
+
*/
|
|
3152
|
+
prop: string;
|
|
3153
|
+
/**
|
|
3154
|
+
* 索引
|
|
3155
|
+
*/
|
|
3156
|
+
index?: number;
|
|
3157
|
+
/**
|
|
3158
|
+
* 是否固定,目前固定为 left
|
|
3159
|
+
*/
|
|
3160
|
+
fixed?: TZTableV2ColumnFixed;
|
|
3161
|
+
/**
|
|
3162
|
+
* 是否只读
|
|
3163
|
+
*/
|
|
3164
|
+
readonly?: boolean;
|
|
3165
|
+
}
|
|
3166
|
+
|
|
1933
3167
|
export declare interface ITableSortData {
|
|
1934
3168
|
oldIndex: number;
|
|
1935
3169
|
newIndex: number;
|
|
@@ -1951,12 +3185,30 @@ export declare interface IUiConfig {
|
|
|
1951
3185
|
*/
|
|
1952
3186
|
config: string;
|
|
1953
3187
|
}, formBuilder?: FormBuilder<T>) => void | Promise<void>;
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
3188
|
+
/**
|
|
3189
|
+
* 表格配置
|
|
3190
|
+
*/
|
|
3191
|
+
zTableV2SharedConfig?: IZTableV2Config<TObj>;
|
|
3192
|
+
/**
|
|
3193
|
+
* 空数据渲染
|
|
3194
|
+
*/
|
|
3195
|
+
zTableV2DefaultSlotRender?: {
|
|
3196
|
+
empty?: TRenderFunction;
|
|
3197
|
+
};
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
declare interface IUseCreateTableBuilderReturn<T extends TObj> {
|
|
3201
|
+
tableBuilder: TableBuilder<T>;
|
|
3202
|
+
registerEvent: (eventName: ZTableV2EventKeys, callback: TFunction) => void;
|
|
3203
|
+
refresh: (resetPagination?: boolean) => void;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
export declare interface IUseTableStickyOptions<T extends {
|
|
3207
|
+
$el: HTMLElement;
|
|
3208
|
+
}> {
|
|
3209
|
+
stickyTriggerSelector?: ISelector;
|
|
1958
3210
|
baseTableOperationElement: Ref<TUndefinable<HTMLElement>>;
|
|
1959
|
-
baseTableRef: Ref<TUndefinable<
|
|
3211
|
+
baseTableRef: Ref<TUndefinable<T>>;
|
|
1960
3212
|
}
|
|
1961
3213
|
|
|
1962
3214
|
export declare interface IViewConfig {
|
|
@@ -1982,6 +3234,260 @@ export declare interface IViewConfigResult {
|
|
|
1982
3234
|
config: string;
|
|
1983
3235
|
}
|
|
1984
3236
|
|
|
3237
|
+
export declare interface IZTableV2Column<T extends TObj = TObj> extends Partial<Omit<TableColumnCtx<T>, "prop" | "renderHeader" | "type" | "fixed" | "align">>, Partial<Omit<Column<T>, "align">> {
|
|
3238
|
+
type?: "default" | "selection" | "index" | "expand" | string;
|
|
3239
|
+
/**
|
|
3240
|
+
* element-plus 的 align
|
|
3241
|
+
*/
|
|
3242
|
+
align?: ColumnAlignment;
|
|
3243
|
+
contentRender?: (_: typeof h, params: T & {
|
|
3244
|
+
$index: number;
|
|
3245
|
+
$tableData: T[];
|
|
3246
|
+
}, data: T) => TRenderReturnType;
|
|
3247
|
+
/**
|
|
3248
|
+
* @deprecated 该属性已经废弃。为了API统一性后续使用 contentRender
|
|
3249
|
+
*/
|
|
3250
|
+
_render?: (_: typeof h, params: T & {
|
|
3251
|
+
$index: number;
|
|
3252
|
+
$tableData: T[];
|
|
3253
|
+
}, data: T) => TRenderReturnType;
|
|
3254
|
+
/**
|
|
3255
|
+
* 根据 options 渲染对应的数据
|
|
3256
|
+
* _color: 会自动把字体颜色变化
|
|
3257
|
+
* _status:会加上状态颜色
|
|
3258
|
+
*/
|
|
3259
|
+
renderToOptions?: IRenderToOptionType[];
|
|
3260
|
+
headerRender?: (_: typeof h, headerColumn: TAllType, $index: number, column: IZTableV2Column<T>) => TRenderReturnType;
|
|
3261
|
+
/**
|
|
3262
|
+
* @deprecated 该属性已经废弃。为了API统一性后续使用 headerRender
|
|
3263
|
+
*/
|
|
3264
|
+
renderHeader?: (_: typeof h, headerColumn: TAllType, $index: number, column: IZTableV2Column<T>) => TRenderReturnType;
|
|
3265
|
+
hidden?: boolean | ((params: IZTableV2Column<T>) => boolean);
|
|
3266
|
+
prop?: keyof T | string;
|
|
3267
|
+
emptyValue?: TAllType;
|
|
3268
|
+
onClick?: (params: T) => void;
|
|
3269
|
+
emptyClick?: boolean;
|
|
3270
|
+
/**
|
|
3271
|
+
* fixed
|
|
3272
|
+
*/
|
|
3273
|
+
fixed?: TZTableV2ColumnFixed;
|
|
3274
|
+
/**
|
|
3275
|
+
* 是否在列为空的时候也渲染内容(只有在有contentRender)方法的情况下生效
|
|
3276
|
+
* @default false
|
|
3277
|
+
* @description
|
|
3278
|
+
* emptyIsRender: true
|
|
3279
|
+
* // 假如表格的数据为 [{}] 是一个空对象数组,默认情况下为了避免不必要的执行是不会执行 contentRender 方法的
|
|
3280
|
+
* // 但是如果设置了 emptyIsRender 就会执行
|
|
3281
|
+
*/
|
|
3282
|
+
emptyIsRender?: boolean;
|
|
3283
|
+
/**
|
|
3284
|
+
* 导出的列的 key ,默认是 prop 的值,在一些特殊的场景下,导出的字段不是 prop 的时候可以通过这个字段设置。
|
|
3285
|
+
* @description 比如说后端返回的字段是 id 但是需要导出的是名称
|
|
3286
|
+
*/
|
|
3287
|
+
exportProp?: keyof T | string | (keyof T | string)[];
|
|
3288
|
+
/**
|
|
3289
|
+
* 是否在列为空的时候也渲染内容(只有在有 contentRender)方法的情况下生效
|
|
3290
|
+
* @default false
|
|
3291
|
+
*/
|
|
3292
|
+
renderToEmpty?: boolean;
|
|
3293
|
+
/**
|
|
3294
|
+
* 是否开启拖拽
|
|
3295
|
+
*/
|
|
3296
|
+
draggable?: boolean;
|
|
3297
|
+
/**
|
|
3298
|
+
* 是否不可删除不可修改位置
|
|
3299
|
+
*/
|
|
3300
|
+
readonly?: boolean;
|
|
3301
|
+
/**
|
|
3302
|
+
* 是否默认选中
|
|
3303
|
+
* @default true
|
|
3304
|
+
*/
|
|
3305
|
+
defaultChecked?: boolean;
|
|
3306
|
+
/**
|
|
3307
|
+
* 分类名称,直接使用分类名称进行区分是否为同一个分类,如果未设置分类名称,则默认为默认分类 `列信息` 分类
|
|
3308
|
+
*/
|
|
3309
|
+
classifyName?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* @deprecated 该属性已经废弃。为了API统一性后续使用 classifyName
|
|
3312
|
+
*/
|
|
3313
|
+
groupName?: string;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
export declare interface IZTableV2Config<T extends TObj> extends TZTableV2SharedConfigProps<T> {
|
|
3317
|
+
/**
|
|
3318
|
+
* 表格列配置
|
|
3319
|
+
*/
|
|
3320
|
+
columns?: IZTableV2Column<T>[];
|
|
3321
|
+
/**
|
|
3322
|
+
* 表格数据
|
|
3323
|
+
* @description 如果 loadMethod 存在会优先通过 loadMethods 方法加载数据
|
|
3324
|
+
*/
|
|
3325
|
+
tableData?: T[];
|
|
3326
|
+
/**
|
|
3327
|
+
* 用于加载数据
|
|
3328
|
+
*/
|
|
3329
|
+
loadMethod?: (params: Omit<IZTableV2Pagination, "total">) => IZTableV2LoadResult | Promise<TUndefinable<IZTableV2LoadResult>>;
|
|
3330
|
+
/**
|
|
3331
|
+
* 是否默认加载数据
|
|
3332
|
+
* @default true
|
|
3333
|
+
*/
|
|
3334
|
+
autoLoad?: boolean;
|
|
3335
|
+
/**
|
|
3336
|
+
* 是否需要默认操作按钮(刷新)
|
|
3337
|
+
* @default true
|
|
3338
|
+
*/
|
|
3339
|
+
hasDefaultOperation?: boolean;
|
|
3340
|
+
/**
|
|
3341
|
+
* 操作列按钮
|
|
3342
|
+
* @description 为保证API的统一性 configColumns 已废弃,请替换为 customColumn
|
|
3343
|
+
*/
|
|
3344
|
+
operationBtnList?: TArrayAble<"refresh" | "download" | "resetColumnsWidth" | "configColumns" | "customColumn">;
|
|
3345
|
+
/**
|
|
3346
|
+
* 是否需要分页
|
|
3347
|
+
* @default true
|
|
3348
|
+
*/
|
|
3349
|
+
hasPagination?: boolean;
|
|
3350
|
+
/**
|
|
3351
|
+
* 分页参数
|
|
3352
|
+
*/
|
|
3353
|
+
paginationProps?: Omit<Partial<PaginationProps>, "size">;
|
|
3354
|
+
/**
|
|
3355
|
+
* 分页是否固定
|
|
3356
|
+
* @description true: 固定在左边
|
|
3357
|
+
* @description "left": 固定在左边
|
|
3358
|
+
* @description "right": 固定在右边
|
|
3359
|
+
* @description "false": 不固定,默认在左边
|
|
3360
|
+
* @default true
|
|
3361
|
+
*/
|
|
3362
|
+
fixedPagination?: TZTableV2ColumnFixed;
|
|
3363
|
+
/**
|
|
3364
|
+
* 自定义列的配置
|
|
3365
|
+
*/
|
|
3366
|
+
customColumnConfig?: IZTableV2CustomColumnConfig;
|
|
3367
|
+
/**
|
|
3368
|
+
* 自定义列的配置
|
|
3369
|
+
* @deprecated 为了API的统一性,请使用 customColumnConfig
|
|
3370
|
+
*/
|
|
3371
|
+
columnConfig?: IZTableV2CustomColumnConfig;
|
|
3372
|
+
/**
|
|
3373
|
+
* 设置sticky的触发元素,如果没有。则默认会拿 Z_TABLE_V2_STICKY_CONTAINER_CLASS 的值
|
|
3374
|
+
*/
|
|
3375
|
+
stickyTriggerSelector?: TZTableV2StickyTriggerSelector;
|
|
3376
|
+
/**
|
|
3377
|
+
* 是否需要表头固定
|
|
3378
|
+
* @default true
|
|
3379
|
+
*/
|
|
3380
|
+
stickyHeader?: boolean;
|
|
3381
|
+
/**
|
|
3382
|
+
* 是否需要隐藏操作栏
|
|
3383
|
+
* @default false
|
|
3384
|
+
*/
|
|
3385
|
+
hideTableWorkHeader?: boolean;
|
|
3386
|
+
/**
|
|
3387
|
+
* 表单的实例,如果需要表单加载完成事件(loaded)则需要传递
|
|
3388
|
+
* @description 使用 any 兼容各类型的 formBuilder
|
|
3389
|
+
*/
|
|
3390
|
+
formBuilder?: FormBuilder<TAny_2>;
|
|
3391
|
+
/**
|
|
3392
|
+
* 表格列 draggable 的配置
|
|
3393
|
+
*/
|
|
3394
|
+
draggableAttrs?: {
|
|
3395
|
+
/**
|
|
3396
|
+
* 表格唯一id,如果不设置会自动取表格设置的 row-key,最后是 id
|
|
3397
|
+
* @default id
|
|
3398
|
+
*/
|
|
3399
|
+
idKey?: string;
|
|
3400
|
+
/**
|
|
3401
|
+
* 列拖拽的动画时间
|
|
3402
|
+
* @default 150
|
|
3403
|
+
*/
|
|
3404
|
+
animation?: number;
|
|
3405
|
+
};
|
|
3406
|
+
/**
|
|
3407
|
+
* 是否开启列搜索
|
|
3408
|
+
* @description 如果开启了列搜索,可以通过 ctrl/cmd+shift+f 进行列搜索
|
|
3409
|
+
* @default false
|
|
3410
|
+
*/
|
|
3411
|
+
enableColumnSearch?: boolean;
|
|
3412
|
+
/**
|
|
3413
|
+
* 是否在选中的时候展示选中的数量
|
|
3414
|
+
* @default true
|
|
3415
|
+
*/
|
|
3416
|
+
showSelectCount?: boolean;
|
|
3417
|
+
/**
|
|
3418
|
+
* 是否开启虚拟滚动
|
|
3419
|
+
* @default false
|
|
3420
|
+
*/
|
|
3421
|
+
enableVirtualScroll?: boolean;
|
|
3422
|
+
/**
|
|
3423
|
+
* 默认列的分组名称
|
|
3424
|
+
*/
|
|
3425
|
+
defaultClassifyName?: string;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
/**
|
|
3429
|
+
* 列配置信息
|
|
3430
|
+
*/
|
|
3431
|
+
export declare interface IZTableV2CustomColumnConfig {
|
|
3432
|
+
/**
|
|
3433
|
+
* 表格唯一code
|
|
3434
|
+
* @description 建议使用路由的path
|
|
3435
|
+
*/
|
|
3436
|
+
pageId: string;
|
|
3437
|
+
/**
|
|
3438
|
+
* 当前页面名称
|
|
3439
|
+
* @description 会展示在设置自定义列的时候的名称上
|
|
3440
|
+
* @example
|
|
3441
|
+
* 设置会将应用于${pageName}列表
|
|
3442
|
+
*/
|
|
3443
|
+
pageName?: string;
|
|
3444
|
+
/**
|
|
3445
|
+
* 系统分组名称
|
|
3446
|
+
* @description 一般不用设置,都统一名称:默认分组
|
|
3447
|
+
* @default '默认分组'
|
|
3448
|
+
*/
|
|
3449
|
+
systemGroupName?: string;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* 自定义列保存的数据格式
|
|
3454
|
+
*/
|
|
3455
|
+
export declare interface IZTableV2CustomSaveData {
|
|
3456
|
+
useGroup: string;
|
|
3457
|
+
groups: ITableCustomColumnGroup[];
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
/**
|
|
3461
|
+
* 表格加载的数据结构
|
|
3462
|
+
*/
|
|
3463
|
+
export declare interface IZTableV2LoadResult {
|
|
3464
|
+
/**
|
|
3465
|
+
* 表格数据
|
|
3466
|
+
*/
|
|
3467
|
+
data?: TObj[];
|
|
3468
|
+
/**
|
|
3469
|
+
* 表格数据
|
|
3470
|
+
*/
|
|
3471
|
+
records?: TObj[];
|
|
3472
|
+
/**
|
|
3473
|
+
* 总条数
|
|
3474
|
+
*/
|
|
3475
|
+
total?: number;
|
|
3476
|
+
/**
|
|
3477
|
+
* 总页数
|
|
3478
|
+
*/
|
|
3479
|
+
count?: string;
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* 分页
|
|
3484
|
+
*/
|
|
3485
|
+
export declare interface IZTableV2Pagination {
|
|
3486
|
+
current: number;
|
|
3487
|
+
size: number;
|
|
3488
|
+
total?: number;
|
|
3489
|
+
}
|
|
3490
|
+
|
|
1985
3491
|
/**
|
|
1986
3492
|
* long 最大值
|
|
1987
3493
|
*/
|
|
@@ -2014,22 +3520,329 @@ export declare const stringifyNumberObject: <T extends TObj>(obj: T, format?: (v
|
|
|
2014
3520
|
export declare const TABLE_DRAGGABLE_CLASS = "base-table__column__is-draggable";
|
|
2015
3521
|
|
|
2016
3522
|
/**
|
|
2017
|
-
* 表格默认的空值的dom
|
|
3523
|
+
* 表格默认的空值的dom
|
|
3524
|
+
*/
|
|
3525
|
+
export declare const TABLE_EMPTY_NODE: JSX;
|
|
3526
|
+
|
|
3527
|
+
/**
|
|
3528
|
+
* 表格默认的空值
|
|
3529
|
+
*/
|
|
3530
|
+
export declare const TABLE_EMPTY_VALUE = "-";
|
|
3531
|
+
|
|
3532
|
+
/**
|
|
3533
|
+
* 表头的默认style
|
|
3534
|
+
*/
|
|
3535
|
+
export declare const TABLE_HEADER_CELL_STYLE: {
|
|
3536
|
+
background: string;
|
|
3537
|
+
color: string;
|
|
3538
|
+
};
|
|
3539
|
+
|
|
3540
|
+
declare class TableBuilder<T extends TObj = TObj> {
|
|
3541
|
+
/**
|
|
3542
|
+
* 表格事件管理
|
|
3543
|
+
* @private
|
|
3544
|
+
*/
|
|
3545
|
+
private tableEventManager;
|
|
3546
|
+
/**
|
|
3547
|
+
* 表格事件列表
|
|
3548
|
+
*/
|
|
3549
|
+
get events(): TObj<string, ITableEventStack[]>;
|
|
3550
|
+
/**
|
|
3551
|
+
* 表格列管理
|
|
3552
|
+
* @private
|
|
3553
|
+
*/
|
|
3554
|
+
tableColumnManager: TableColumnManager<T>;
|
|
3555
|
+
/**
|
|
3556
|
+
* 显示的列
|
|
3557
|
+
*/
|
|
3558
|
+
get showColumns(): ZTableV2Column<T>[];
|
|
3559
|
+
/**
|
|
3560
|
+
* 所有列
|
|
3561
|
+
*/
|
|
3562
|
+
get columns(): ZTableV2Column<T>[];
|
|
3563
|
+
/**
|
|
3564
|
+
* 是否开启列拖拽
|
|
3565
|
+
*/
|
|
3566
|
+
get starDraggable(): boolean;
|
|
3567
|
+
/**
|
|
3568
|
+
* 当前激活的自定义分组
|
|
3569
|
+
*/
|
|
3570
|
+
get activeGroup(): string;
|
|
3571
|
+
/**
|
|
3572
|
+
* 表格配置管理
|
|
3573
|
+
* @private
|
|
3574
|
+
*/
|
|
3575
|
+
private tableConfigManager;
|
|
3576
|
+
/**
|
|
3577
|
+
* 获取整个 zTableV2 的配置
|
|
3578
|
+
*/
|
|
3579
|
+
get config(): IZTableV2Config<T>;
|
|
3580
|
+
get pageId(): string | undefined;
|
|
3581
|
+
/**
|
|
3582
|
+
* 获取 el-table 的属性
|
|
3583
|
+
*/
|
|
3584
|
+
get elTableAttrs(): Omit_2<IZTableV2Config<T>, "height" | "width" | "columns" | "tableData" | "loadMethod" | "autoLoad" | "hasDefaultOperation" | "operationBtnList" | "hasPagination" | "paginationProps" | "fixedPagination" | "customColumnConfig" | "columnConfig" | "stickyTriggerSelector" | "stickyHeader" | "hideTableWorkHeader" | "formBuilder" | "draggableAttrs" | "enableColumnSearch" | "showSelectCount" | "defaultClassifyName">;
|
|
3585
|
+
get elVirtualTableAttrs(): Partial<IZTableV2Config<T>>;
|
|
3586
|
+
/**
|
|
3587
|
+
* 表格数据管理
|
|
3588
|
+
* @private
|
|
3589
|
+
*/
|
|
3590
|
+
tableDataStore: TableDataStore<T>;
|
|
3591
|
+
/**
|
|
3592
|
+
* 表格数据
|
|
3593
|
+
*/
|
|
3594
|
+
get data(): T[];
|
|
3595
|
+
/**
|
|
3596
|
+
* 设置表格数据
|
|
3597
|
+
* @param data
|
|
3598
|
+
*/
|
|
3599
|
+
set data(data: T[]);
|
|
3600
|
+
/**
|
|
3601
|
+
* 表格分页
|
|
3602
|
+
*/
|
|
3603
|
+
get pagination(): IZTableV2Pagination;
|
|
3604
|
+
/**
|
|
3605
|
+
* 传递给外部的分页参数(去掉了多余的参数)
|
|
3606
|
+
*/
|
|
3607
|
+
get transmitPagination(): IZTableV2Pagination;
|
|
3608
|
+
/**
|
|
3609
|
+
* 表格是否加载中
|
|
3610
|
+
*/
|
|
3611
|
+
get loading(): boolean;
|
|
3612
|
+
/**
|
|
3613
|
+
* 表格选中数据
|
|
3614
|
+
*/
|
|
3615
|
+
get selectList(): T[];
|
|
3616
|
+
private instanceManager;
|
|
3617
|
+
/**
|
|
3618
|
+
* 表格实例
|
|
3619
|
+
*/
|
|
3620
|
+
get elTableInstance(): TUndefinable<IElTableInstance>;
|
|
3621
|
+
/**
|
|
3622
|
+
* 原始表格实例
|
|
3623
|
+
*/
|
|
3624
|
+
get rawElTableInstance(): TUndefinable<TElTableRefInstance>;
|
|
3625
|
+
/**
|
|
3626
|
+
* 重置表格实例标识
|
|
3627
|
+
*/
|
|
3628
|
+
get resetWidthKey(): number;
|
|
3629
|
+
/**
|
|
3630
|
+
* 自定义列管理
|
|
3631
|
+
*/
|
|
3632
|
+
tableCustomColumnManager: TableCustomColumnManager<T>;
|
|
3633
|
+
/**
|
|
3634
|
+
* 如果不传递 columns 则默认不会初始化
|
|
3635
|
+
* @param columns
|
|
3636
|
+
* @param config
|
|
3637
|
+
*/
|
|
3638
|
+
constructor(columns: IZTableV2Column<T>[], config?: IZTableV2Config<T>);
|
|
3639
|
+
/**
|
|
3640
|
+
* 初始化表格各个状态
|
|
3641
|
+
* @param columns
|
|
3642
|
+
* @param config
|
|
3643
|
+
*/
|
|
3644
|
+
init(columns: IZTableV2Column<T>[], config?: IZTableV2Config<T>): Promise<void>;
|
|
3645
|
+
/**
|
|
3646
|
+
* 初始化表格实例
|
|
3647
|
+
* @param instance
|
|
3648
|
+
*/
|
|
3649
|
+
initElTableInstance(instance: TElTableRefInstance): void;
|
|
3650
|
+
/**
|
|
3651
|
+
* 更新激活的分组
|
|
3652
|
+
* @param groupName
|
|
3653
|
+
*/
|
|
3654
|
+
updateActiveGroup(groupName: string): void;
|
|
3655
|
+
/**
|
|
3656
|
+
* 重置表格实例
|
|
3657
|
+
*/
|
|
3658
|
+
resetWidth(): void;
|
|
3659
|
+
/**
|
|
3660
|
+
* 注册事件
|
|
3661
|
+
* @param eventName 事件名称
|
|
3662
|
+
* @param callback 因为目前类型问题,这里暂时只能使用通用回调类型
|
|
3663
|
+
*/
|
|
3664
|
+
registerEvent(eventName: ZTableV2EventKeys, callback: TFunction): {
|
|
3665
|
+
paused: () => void;
|
|
3666
|
+
resume: () => void;
|
|
3667
|
+
destroy: () => void;
|
|
3668
|
+
id: string;
|
|
3669
|
+
};
|
|
3670
|
+
/**
|
|
3671
|
+
* 触发事件 主要给内部使用,不建议外部使用
|
|
3672
|
+
* @param eventName
|
|
3673
|
+
* @param args
|
|
3674
|
+
*/
|
|
3675
|
+
triggerEvent(eventName: ZTableV2EventKeys, ...args: TAny_2[]): void;
|
|
3676
|
+
/**
|
|
3677
|
+
* 获取事件
|
|
3678
|
+
* @param emit
|
|
3679
|
+
*/
|
|
3680
|
+
getTableRegisterEvents<E extends string>(emit: (eventName: E, ...args: TAny_2[]) => void): TObj<string, TFunction>;
|
|
3681
|
+
/**
|
|
3682
|
+
* 分页器触发的事件
|
|
3683
|
+
*/
|
|
3684
|
+
getPaginationEvents<E extends string>(emit: (eventName: E, ...args: TAny_2[]) => void): TObj<string, TFunction>;
|
|
3685
|
+
/**
|
|
3686
|
+
* 更新表格数据
|
|
3687
|
+
* @param data
|
|
3688
|
+
*/
|
|
3689
|
+
updateTableData(data: T[]): void;
|
|
3690
|
+
/**
|
|
3691
|
+
* 更新选中数据
|
|
3692
|
+
* @param data
|
|
3693
|
+
*/
|
|
3694
|
+
updateSelectList(data: T[]): void;
|
|
3695
|
+
/**
|
|
3696
|
+
* 更新分页
|
|
3697
|
+
* @param pagination
|
|
3698
|
+
*/
|
|
3699
|
+
updatePagination(pagination: Partial<IZTableV2Pagination>): IZTableV2Pagination;
|
|
3700
|
+
/**
|
|
3701
|
+
* 刷新数据
|
|
3702
|
+
* @description 会重新执行 loadMethod 方法
|
|
3703
|
+
* @param resetPagination 是否重置分页
|
|
3704
|
+
*/
|
|
3705
|
+
refresh(resetPagination?: boolean): Promise<void>;
|
|
3706
|
+
/**
|
|
3707
|
+
* destroy
|
|
3708
|
+
*/
|
|
3709
|
+
destroy(): void;
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
declare class TableColumnManager<T extends TObj> {
|
|
3713
|
+
/**
|
|
3714
|
+
* 列
|
|
3715
|
+
*/
|
|
3716
|
+
tableColumns: ZTableV2Column<T>[];
|
|
3717
|
+
/**
|
|
3718
|
+
* 自定义的列
|
|
3719
|
+
*/
|
|
3720
|
+
customColumns: ZTableV2Column<T>[];
|
|
3721
|
+
/**
|
|
3722
|
+
* 初始化列
|
|
3723
|
+
* @param props
|
|
3724
|
+
*/
|
|
3725
|
+
init(props: IZTableV2Column<T>[]): void;
|
|
3726
|
+
/**
|
|
3727
|
+
* 初始化自定义列
|
|
3728
|
+
* @param columns
|
|
3729
|
+
*/
|
|
3730
|
+
initCustomColumns(columns: ITableCustomColumnGroupColumn[]): void;
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
declare class TableCustomColumnGroup implements ITableCustomColumnGroup {
|
|
3734
|
+
columns: ITableCustomColumnGroupColumn[];
|
|
3735
|
+
groupName: string;
|
|
3736
|
+
get getNextIndex(): number;
|
|
3737
|
+
constructor(group: ITableCustomColumnGroup);
|
|
3738
|
+
updateColumnChecked(prop: string, checked: boolean): void;
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
declare class TableCustomColumnManager<T extends TObj> {
|
|
3742
|
+
groups: TableCustomColumnGroup[];
|
|
3743
|
+
/**
|
|
3744
|
+
* 当前激活的分组
|
|
3745
|
+
*/
|
|
3746
|
+
useGroup: string;
|
|
3747
|
+
get defaultGroupName(): string;
|
|
3748
|
+
private tableBuilder;
|
|
3749
|
+
/**
|
|
3750
|
+
* 创建分组
|
|
3751
|
+
* @param groupName
|
|
3752
|
+
* @param position 从上面插入还是从下面插入
|
|
3753
|
+
*/
|
|
3754
|
+
createGroup(groupName: string, position?: "top" | "bottom"): TableCustomColumnGroup;
|
|
3755
|
+
/**
|
|
3756
|
+
* 更新当前激活的分组
|
|
3757
|
+
* @param groupName
|
|
3758
|
+
*/
|
|
3759
|
+
updateActiveGroup(groupName: string): void;
|
|
3760
|
+
private initRemoteCustomConfig;
|
|
3761
|
+
/**
|
|
3762
|
+
* 初始化数据
|
|
3763
|
+
* @description 兼容旧数据
|
|
3764
|
+
*/
|
|
3765
|
+
init(tableBuilder: TableBuilder<T>): Promise<void>;
|
|
3766
|
+
setGroups(groups: ITableCustomColumnGroup[]): void;
|
|
3767
|
+
/**
|
|
3768
|
+
* 获取列默认列分类名称
|
|
3769
|
+
* @param column
|
|
3770
|
+
*/
|
|
3771
|
+
getColumnDefaultClassifyName(column: ZTableV2Column<T>): string;
|
|
3772
|
+
}
|
|
3773
|
+
|
|
3774
|
+
declare class TableDataStore<T extends TObj> {
|
|
3775
|
+
/**
|
|
3776
|
+
* 表格数据
|
|
3777
|
+
*/
|
|
3778
|
+
data: T[];
|
|
3779
|
+
/**
|
|
3780
|
+
* 表格选中的数据
|
|
3781
|
+
*/
|
|
3782
|
+
selectList: T[];
|
|
3783
|
+
/**
|
|
3784
|
+
* 表格的 loading
|
|
3785
|
+
*/
|
|
3786
|
+
loading: boolean;
|
|
3787
|
+
/**
|
|
3788
|
+
* 表格的分页参数
|
|
3789
|
+
*/
|
|
3790
|
+
pagination: IZTableV2Pagination;
|
|
3791
|
+
get transmitPagination(): IZTableV2Pagination;
|
|
3792
|
+
/**
|
|
3793
|
+
* 如果没有设置 loadMethods,则会启动一个 effect 自动从 tableData 中获取数据。
|
|
3794
|
+
* @description 用来关停 effect
|
|
3795
|
+
* @private
|
|
3796
|
+
*/
|
|
3797
|
+
private stopEffect?;
|
|
3798
|
+
private tableBuilder;
|
|
3799
|
+
/**
|
|
3800
|
+
* 初始化
|
|
3801
|
+
*/
|
|
3802
|
+
init(tableBuilder: TableBuilder<T>): void;
|
|
3803
|
+
/**
|
|
3804
|
+
* 更新数据
|
|
3805
|
+
* @param data
|
|
3806
|
+
*/
|
|
3807
|
+
update(data: T[]): void;
|
|
3808
|
+
/**
|
|
3809
|
+
* 更新选中数据
|
|
3810
|
+
* @param data
|
|
3811
|
+
*/
|
|
3812
|
+
updateSelectList(data: T[]): void;
|
|
3813
|
+
/**
|
|
3814
|
+
* 更新分页
|
|
3815
|
+
* @param pagination
|
|
3816
|
+
* @private
|
|
3817
|
+
*/
|
|
3818
|
+
updatePagination(pagination: Partial<IZTableV2Pagination>): IZTableV2Pagination;
|
|
3819
|
+
/**
|
|
3820
|
+
* 加载数据
|
|
3821
|
+
* @param pagination
|
|
3822
|
+
* @private
|
|
3823
|
+
*/
|
|
3824
|
+
private loadData;
|
|
3825
|
+
/**
|
|
3826
|
+
* 刷新 是否重置分页
|
|
3827
|
+
* @param resetPagination
|
|
3828
|
+
*/
|
|
3829
|
+
refresh(resetPagination?: boolean): Promise<void>;
|
|
3830
|
+
destroy(): void;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* table-v2的列的属性
|
|
3835
|
+
* @see https://element-plus.org/zh-CN/component/table-v2#column-attribute
|
|
2018
3836
|
*/
|
|
2019
|
-
|
|
3837
|
+
declare const tableV2ColumnAttrKeys: readonly ["align", "class", "key", "dataKey", "fixed", "flexGrow", "flexShrink", "title", "hidden", "headerClass", "maxWidth", "minWidth", "style", "sortable", "width", "cellRenderer", "headerCellRenderer"];
|
|
2020
3838
|
|
|
2021
|
-
|
|
2022
|
-
* 表格默认的空值
|
|
2023
|
-
*/
|
|
2024
|
-
export declare const TABLE_EMPTY_VALUE = "-";
|
|
3839
|
+
declare type TableV2ColumnAttrs<T extends TObj> = Pick<Column<T>, (typeof tableV2ColumnAttrKeys)[number]>;
|
|
2025
3840
|
|
|
2026
3841
|
/**
|
|
2027
|
-
*
|
|
3842
|
+
* @description: any alias
|
|
2028
3843
|
*/
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
color: string;
|
|
2032
|
-
};
|
|
3844
|
+
declare type TAny_2 = any;
|
|
3845
|
+
export { TAny_2 as TAny }
|
|
2033
3846
|
|
|
2034
3847
|
export declare interface TBaseCascaderAttrs {
|
|
2035
3848
|
options?: TOptionsReturn;
|
|
@@ -2178,6 +3991,8 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2178
3991
|
_mouseleaveHandler?: (event: MouseEvent) => void;
|
|
2179
3992
|
};
|
|
2180
3993
|
|
|
3994
|
+
export declare type TElTableRefInstance = Ref<IElTableInstance>;
|
|
3995
|
+
|
|
2181
3996
|
export declare const TEMP_GROUP_ID = "-2";
|
|
2182
3997
|
|
|
2183
3998
|
export declare type TEvent = {
|
|
@@ -2192,6 +4007,11 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2192
4007
|
|
|
2193
4008
|
declare type TFixed = "left" | "right";
|
|
2194
4009
|
|
|
4010
|
+
/**
|
|
4011
|
+
* @description: Function params is any
|
|
4012
|
+
*/
|
|
4013
|
+
export declare type TFunction<T = TAny_2> = (...args: TAny_2[]) => T;
|
|
4014
|
+
|
|
2195
4015
|
export declare type TKeyofCustomFormComponentType = keyof ICustomFormComponentType;
|
|
2196
4016
|
|
|
2197
4017
|
declare type TModelValue = [string?, string?, TAllType?];
|
|
@@ -2210,6 +4030,16 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2210
4030
|
|
|
2211
4031
|
export declare type TOptionsReturn<T extends TObj = TObj> = TOptions<T> | (() => TOptions<T> | Promise<TOptions<T>>);
|
|
2212
4032
|
|
|
4033
|
+
/**
|
|
4034
|
+
* 通用的渲染函数
|
|
4035
|
+
*/
|
|
4036
|
+
declare type TRenderFunction = (_: typeof h) => TRenderReturnType;
|
|
4037
|
+
|
|
4038
|
+
/**
|
|
4039
|
+
* 通用的渲染返回类型
|
|
4040
|
+
*/
|
|
4041
|
+
declare type TRenderReturnType = TAllType | TAllType<JSX.Element | VNode | HTMLElement>;
|
|
4042
|
+
|
|
2213
4043
|
/**
|
|
2214
4044
|
* 派发一个 input 事件
|
|
2215
4045
|
* @param inputElement
|
|
@@ -2228,8 +4058,18 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2228
4058
|
|
|
2229
4059
|
export declare type TZTableColumnFixed = boolean | "left" | "right";
|
|
2230
4060
|
|
|
4061
|
+
export declare type TZTableV2ColumnFixed = boolean | "left" | "right";
|
|
4062
|
+
|
|
4063
|
+
declare type TZTableV2SharedConfigProps<T extends TObj> = Partial<TableProps<T>> & Omit<TableV2PropsPublic, keyof TableProps<T> | "columns" | "data">;
|
|
4064
|
+
|
|
4065
|
+
/**
|
|
4066
|
+
* 设置 sticky 的选择器
|
|
4067
|
+
*/
|
|
4068
|
+
export declare type TZTableV2StickyTriggerSelector = string | HTMLElement | (() => HTMLElement) | undefined;
|
|
4069
|
+
|
|
2231
4070
|
declare class UiConfigService {
|
|
2232
|
-
private
|
|
4071
|
+
private _config?;
|
|
4072
|
+
get config(): IUiConfig | undefined;
|
|
2233
4073
|
/**
|
|
2234
4074
|
* 传入配置
|
|
2235
4075
|
* @param config
|
|
@@ -2249,6 +4089,15 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2249
4089
|
saveViewConfig<T extends TObj>(params: IViewConfig & {
|
|
2250
4090
|
config: string;
|
|
2251
4091
|
}, formBuilder?: FormBuilder<T>): Promise<void>;
|
|
4092
|
+
/**
|
|
4093
|
+
* 获取表格配置
|
|
4094
|
+
*/
|
|
4095
|
+
get zTableV2SharedConfig(): {} & IZTableV2Config<TObj<string, any>>;
|
|
4096
|
+
/**
|
|
4097
|
+
* 根据名称获取默认插槽
|
|
4098
|
+
* @param name
|
|
4099
|
+
*/
|
|
4100
|
+
getZTableV2DefaultSlotRenderByName(name: string): TUndefinable<TRenderFunction>;
|
|
2252
4101
|
}
|
|
2253
4102
|
|
|
2254
4103
|
export declare const uiConfigService: UiConfigService;
|
|
@@ -2353,6 +4202,52 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2353
4202
|
*/
|
|
2354
4203
|
export declare const useCreateFormBuilder: <T extends TObj>(fields?: (IBaseFormItem<T> | BaseFormItem<T>)[], config?: ICreateFormBuilderConfig) => ICreateFormBuilderReturn<T>;
|
|
2355
4204
|
|
|
4205
|
+
/**
|
|
4206
|
+
* 创建表格实例
|
|
4207
|
+
* @param columns
|
|
4208
|
+
* @param config
|
|
4209
|
+
*
|
|
4210
|
+
* @example
|
|
4211
|
+
* const { tableBuilder, registerEvent, refresh } = useCreateTableBuilder([
|
|
4212
|
+
* {
|
|
4213
|
+
* prop: "name",
|
|
4214
|
+
* label: "Name",
|
|
4215
|
+
* },
|
|
4216
|
+
* {
|
|
4217
|
+
* prop: "age",
|
|
4218
|
+
* label: "Age",
|
|
4219
|
+
* },
|
|
4220
|
+
* ], {
|
|
4221
|
+
* loadMethod: async (pagination) => {
|
|
4222
|
+
* // xxx execute api
|
|
4223
|
+
* return {
|
|
4224
|
+
* data: [],
|
|
4225
|
+
* total: 0,
|
|
4226
|
+
* };
|
|
4227
|
+
* },
|
|
4228
|
+
* customColumnConfig: {
|
|
4229
|
+
* pageId: "page-id",
|
|
4230
|
+
* },
|
|
4231
|
+
* })
|
|
4232
|
+
*
|
|
4233
|
+
* // add event
|
|
4234
|
+
* registerEvent("cell-click", () => {
|
|
4235
|
+
* console.log("表格单元格被点击");
|
|
4236
|
+
* });
|
|
4237
|
+
*
|
|
4238
|
+
* // refresh table
|
|
4239
|
+
* refresh(true);
|
|
4240
|
+
*/
|
|
4241
|
+
export declare const useCreateTableBuilder: <T extends TObj = TAny_2>(columns: (IZTableV2Column<T> | IBaseTableColumn<T>)[], config?: IZTableV2Config<T>) => IUseCreateTableBuilderReturn<T>;
|
|
4242
|
+
|
|
4243
|
+
/**
|
|
4244
|
+
* 创建一个支持虚拟滚动的表格
|
|
4245
|
+
* @param columns
|
|
4246
|
+
* @param config
|
|
4247
|
+
* @description 用法与 useCreateTableBuilder 一样。只是增加了一个默认 enableVirtualScroll 为 true 的配置
|
|
4248
|
+
*/
|
|
4249
|
+
export declare const useCreateVirtualTableBuilder: <T extends TObj = TAny_2>(columns: (IZTableV2Column<T> | IBaseTableColumn<T>)[], config?: IZTableV2Config<T>) => IUseCreateTableBuilderReturn<T>;
|
|
4250
|
+
|
|
2356
4251
|
export declare class UseDialogError extends Error {
|
|
2357
4252
|
}
|
|
2358
4253
|
|
|
@@ -2463,15 +4358,17 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2463
4358
|
* 监听元素的宽高变化
|
|
2464
4359
|
*/
|
|
2465
4360
|
export declare const useResizeObserver: () => {
|
|
2466
|
-
onResize: <T extends HTMLElement>(target: T | Ref<T> | (() => T | Ref<T
|
|
4361
|
+
onResize: <T extends HTMLElement>(target: TUndefinable<T | Ref<T> | (() => TUndefinable<T | Ref<T>>)>, callBack: (entry: ResizeObserverEntry) => void) => void;
|
|
2467
4362
|
stopResize: () => void;
|
|
2468
4363
|
};
|
|
2469
4364
|
|
|
2470
4365
|
/**
|
|
2471
4366
|
* 处理表格开启表头固定的逻辑
|
|
2472
4367
|
*/
|
|
2473
|
-
export declare const useTableSticky:
|
|
2474
|
-
|
|
4368
|
+
export declare const useTableSticky: <T extends {
|
|
4369
|
+
$el: HTMLElement;
|
|
4370
|
+
}>(_options?: IUseTableStickyOptions<T>) => {
|
|
4371
|
+
start: (startOptions?: IUseTableStickyOptions<T>) => void;
|
|
2475
4372
|
reset: () => Promise<void>;
|
|
2476
4373
|
};
|
|
2477
4374
|
|
|
@@ -2527,6 +4424,47 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2527
4424
|
*/
|
|
2528
4425
|
export declare const Z_TABLE_MAX_CUSTOM_COLUMNS_FIXED_COUNT = 5;
|
|
2529
4426
|
|
|
4427
|
+
/**
|
|
4428
|
+
* 表格开启拖拽的class
|
|
4429
|
+
*/
|
|
4430
|
+
export declare const Z_TABLE_V2_COLUMN_DRAGGABLE_CLASS = "z-table-v2__column__is-draggable";
|
|
4431
|
+
|
|
4432
|
+
/**
|
|
4433
|
+
* 默认选中的分组ID
|
|
4434
|
+
*/
|
|
4435
|
+
export declare const Z_TABLE_V2_DEFAULT_GROUP_CHECKED_ID = "-1";
|
|
4436
|
+
|
|
4437
|
+
/**
|
|
4438
|
+
* 表格默认的空值的dom
|
|
4439
|
+
*/
|
|
4440
|
+
export declare const Z_TABLE_V2_EMPTY_NODE: JSX;
|
|
4441
|
+
|
|
4442
|
+
/**
|
|
4443
|
+
* 表格默认的空值
|
|
4444
|
+
*/
|
|
4445
|
+
export declare const Z_TABLE_V2_EMPTY_VALUE = "-";
|
|
4446
|
+
|
|
4447
|
+
/**
|
|
4448
|
+
* z-table-v2 的事件
|
|
4449
|
+
*/
|
|
4450
|
+
declare const Z_TABLE_V2_EVENTS: readonly ["init", "drag", "drag-change", "loaded", "refreshed", "save-columns", "change-group", "virtual-table-rendered", "select", "select-all", "selection-change", "cell-mouse-enter", "cell-mouse-leave", "cell-contextmenu", "cell-click", "cell-dblclick", "row-click", "row-contextmenu", "row-dblclick", "header-click", "header-contextmenu", "sort-change", "filter-change", "current-change", "header-dragend", "expand-change", "scroll", "column-sort", "expanded-rows-change", "end-reached", "scroll", "rows-rendered", "row-expand", "pagination:size-change", "pagination:current-change", "pagination:prev-click", "pagination:next-click", "pagination:change"];
|
|
4451
|
+
|
|
4452
|
+
/**
|
|
4453
|
+
* 最大可添加分组
|
|
4454
|
+
*/
|
|
4455
|
+
export declare const Z_TABLE_V2_MAX_CUSTOM_COLUMN_GROUP_COUNT = 10;
|
|
4456
|
+
|
|
4457
|
+
/**
|
|
4458
|
+
* 特殊的列配置
|
|
4459
|
+
*/
|
|
4460
|
+
export declare const Z_TABLE_V2_SPECIAL_COLUMN_MAP: Record<"index" | "selection" | string, IZTableV2Column>;
|
|
4461
|
+
|
|
4462
|
+
/**
|
|
4463
|
+
* 表格 sticky 的容器的 class
|
|
4464
|
+
* @description 目前该值与 z-table 的一致
|
|
4465
|
+
*/
|
|
4466
|
+
export declare const Z_TABLE_V2_STICKY_CONTAINER_CLASS = "__base-table-sticky-container";
|
|
4467
|
+
|
|
2530
4468
|
export declare const ZAutoTooltip: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2531
4469
|
|
|
2532
4470
|
export declare const ZCircleText: {
|
|
@@ -2656,9 +4594,17 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2656
4594
|
onChange?: ((value: TNumberOrString) => any) | undefined;
|
|
2657
4595
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2658
4596
|
|
|
2659
|
-
export declare const ZOperationIconButton: DefineComponent<
|
|
4597
|
+
export declare const ZOperationIconButton: DefineComponent< {
|
|
4598
|
+
src: string | TAny;
|
|
4599
|
+
alt?: string;
|
|
4600
|
+
tips?: string;
|
|
4601
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2660
4602
|
click: () => any;
|
|
2661
|
-
}, string, PublicProps, Readonly<
|
|
4603
|
+
}, string, PublicProps, Readonly<{
|
|
4604
|
+
src: string | TAny;
|
|
4605
|
+
alt?: string;
|
|
4606
|
+
tips?: string;
|
|
4607
|
+
}> & Readonly<{
|
|
2662
4608
|
onClick?: (() => any) | undefined;
|
|
2663
4609
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2664
4610
|
|
|
@@ -2749,24 +4695,24 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2749
4695
|
}, PublicProps, {
|
|
2750
4696
|
border: boolean;
|
|
2751
4697
|
columns: IBaseTableColumn<any>[];
|
|
2752
|
-
fit: boolean;
|
|
2753
4698
|
rowKey: string | ((row: TObj<string, any>) => string);
|
|
2754
|
-
showHeader: boolean;
|
|
2755
4699
|
scrollbarAlwaysOn: boolean;
|
|
4700
|
+
fit: boolean;
|
|
4701
|
+
showHeader: boolean;
|
|
2756
4702
|
tableData: TObj[];
|
|
2757
4703
|
autoLoad: boolean;
|
|
2758
4704
|
hasDefaultOperation: boolean;
|
|
2759
4705
|
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2760
4706
|
hasPagination: boolean;
|
|
2761
|
-
paginationPosition: "left" | "right";
|
|
2762
4707
|
fixedPagination: boolean;
|
|
2763
4708
|
stickyHeader: boolean;
|
|
2764
4709
|
hideTableWorkHeader: boolean;
|
|
2765
4710
|
enableColumnSearch: boolean;
|
|
4711
|
+
showSelectCount: boolean;
|
|
4712
|
+
paginationPosition: "left" | "right";
|
|
2766
4713
|
whenFixedPaginationNoPadding: boolean;
|
|
2767
4714
|
fullHeight: boolean;
|
|
2768
4715
|
autoScrollY: boolean;
|
|
2769
|
-
showSelectCount: boolean;
|
|
2770
4716
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2771
4717
|
baseTableContainerRef: HTMLDivElement;
|
|
2772
4718
|
baseTableOperationElement: HTMLDivElement;
|
|
@@ -2821,24 +4767,24 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2821
4767
|
}, {}, {}, {}, {
|
|
2822
4768
|
border: boolean;
|
|
2823
4769
|
columns: IBaseTableColumn<any>[];
|
|
2824
|
-
fit: boolean;
|
|
2825
4770
|
rowKey: string | ((row: TObj<string, any>) => string);
|
|
2826
|
-
showHeader: boolean;
|
|
2827
4771
|
scrollbarAlwaysOn: boolean;
|
|
4772
|
+
fit: boolean;
|
|
4773
|
+
showHeader: boolean;
|
|
2828
4774
|
tableData: TObj[];
|
|
2829
4775
|
autoLoad: boolean;
|
|
2830
4776
|
hasDefaultOperation: boolean;
|
|
2831
4777
|
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2832
4778
|
hasPagination: boolean;
|
|
2833
|
-
paginationPosition: "left" | "right";
|
|
2834
4779
|
fixedPagination: boolean;
|
|
2835
4780
|
stickyHeader: boolean;
|
|
2836
4781
|
hideTableWorkHeader: boolean;
|
|
2837
4782
|
enableColumnSearch: boolean;
|
|
4783
|
+
showSelectCount: boolean;
|
|
4784
|
+
paginationPosition: "left" | "right";
|
|
2838
4785
|
whenFixedPaginationNoPadding: boolean;
|
|
2839
4786
|
fullHeight: boolean;
|
|
2840
4787
|
autoScrollY: boolean;
|
|
2841
|
-
showSelectCount: boolean;
|
|
2842
4788
|
}>;
|
|
2843
4789
|
__isFragment?: never;
|
|
2844
4790
|
__isTeleport?: never;
|
|
@@ -2915,24 +4861,24 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2915
4861
|
}, string, {
|
|
2916
4862
|
border: boolean;
|
|
2917
4863
|
columns: IBaseTableColumn<any>[];
|
|
2918
|
-
fit: boolean;
|
|
2919
4864
|
rowKey: string | ((row: TObj<string, any>) => string);
|
|
2920
|
-
showHeader: boolean;
|
|
2921
4865
|
scrollbarAlwaysOn: boolean;
|
|
4866
|
+
fit: boolean;
|
|
4867
|
+
showHeader: boolean;
|
|
2922
4868
|
tableData: TObj[];
|
|
2923
4869
|
autoLoad: boolean;
|
|
2924
4870
|
hasDefaultOperation: boolean;
|
|
2925
4871
|
operationBtnList: IOperationBtn["type"] | (IOperationBtn | IOperationBtn["type"])[];
|
|
2926
4872
|
hasPagination: boolean;
|
|
2927
|
-
paginationPosition: "left" | "right";
|
|
2928
4873
|
fixedPagination: boolean;
|
|
2929
4874
|
stickyHeader: boolean;
|
|
2930
4875
|
hideTableWorkHeader: boolean;
|
|
2931
4876
|
enableColumnSearch: boolean;
|
|
4877
|
+
showSelectCount: boolean;
|
|
4878
|
+
paginationPosition: "left" | "right";
|
|
2932
4879
|
whenFixedPaginationNoPadding: boolean;
|
|
2933
4880
|
fullHeight: boolean;
|
|
2934
4881
|
autoScrollY: boolean;
|
|
2935
|
-
showSelectCount: boolean;
|
|
2936
4882
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
2937
4883
|
$slots: Readonly<{
|
|
2938
4884
|
header: (_props: {
|
|
@@ -2983,6 +4929,275 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
|
|
|
2983
4929
|
};
|
|
2984
4930
|
});
|
|
2985
4931
|
|
|
4932
|
+
export declare const ZTableV2: {
|
|
4933
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4934
|
+
tableBuilder: TableBuilder<TAny>;
|
|
4935
|
+
}> & Readonly<{
|
|
4936
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
4937
|
+
onDrag?: ((...args: any[]) => any) | undefined;
|
|
4938
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
4939
|
+
onInit?: ((...args: any[]) => any) | undefined;
|
|
4940
|
+
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
4941
|
+
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
4942
|
+
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
4943
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
4944
|
+
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
4945
|
+
"onCell-mouse-enter"?: ((...args: any[]) => any) | undefined;
|
|
4946
|
+
"onCell-mouse-leave"?: ((...args: any[]) => any) | undefined;
|
|
4947
|
+
"onCell-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
4948
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
4949
|
+
"onCell-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
4950
|
+
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
4951
|
+
"onRow-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
4952
|
+
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
4953
|
+
"onHeader-click"?: ((...args: any[]) => any) | undefined;
|
|
4954
|
+
"onHeader-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
4955
|
+
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
4956
|
+
"onFilter-change"?: ((...args: any[]) => any) | undefined;
|
|
4957
|
+
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
4958
|
+
onRefreshed?: ((...args: any[]) => any) | undefined;
|
|
4959
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
4960
|
+
"onDrag-change"?: ((...args: any[]) => any) | undefined;
|
|
4961
|
+
"onSave-columns"?: ((...args: any[]) => any) | undefined;
|
|
4962
|
+
"onChange-group"?: ((...args: any[]) => any) | undefined;
|
|
4963
|
+
"onVirtual-table-rendered"?: ((...args: any[]) => any) | undefined;
|
|
4964
|
+
"onColumn-sort"?: ((...args: any[]) => any) | undefined;
|
|
4965
|
+
"onExpanded-rows-change"?: ((...args: any[]) => any) | undefined;
|
|
4966
|
+
"onRows-rendered"?: ((...args: any[]) => any) | undefined;
|
|
4967
|
+
"onRow-expand"?: ((...args: any[]) => any) | undefined;
|
|
4968
|
+
"onPagination:size-change"?: ((...args: any[]) => any) | undefined;
|
|
4969
|
+
"onPagination:current-change"?: ((...args: any[]) => any) | undefined;
|
|
4970
|
+
"onPagination:prev-click"?: ((...args: any[]) => any) | undefined;
|
|
4971
|
+
"onPagination:next-click"?: ((...args: any[]) => any) | undefined;
|
|
4972
|
+
"onPagination:change"?: ((...args: any[]) => any) | undefined;
|
|
4973
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4974
|
+
select: (...args: any[]) => void;
|
|
4975
|
+
drag: (...args: any[]) => void;
|
|
4976
|
+
scroll: (...args: any[]) => void;
|
|
4977
|
+
init: (...args: any[]) => void;
|
|
4978
|
+
"end-reached": (...args: any[]) => void;
|
|
4979
|
+
"expand-change": (...args: any[]) => void;
|
|
4980
|
+
"current-change": (...args: any[]) => void;
|
|
4981
|
+
"select-all": (...args: any[]) => void;
|
|
4982
|
+
"selection-change": (...args: any[]) => void;
|
|
4983
|
+
"cell-mouse-enter": (...args: any[]) => void;
|
|
4984
|
+
"cell-mouse-leave": (...args: any[]) => void;
|
|
4985
|
+
"cell-contextmenu": (...args: any[]) => void;
|
|
4986
|
+
"cell-click": (...args: any[]) => void;
|
|
4987
|
+
"cell-dblclick": (...args: any[]) => void;
|
|
4988
|
+
"row-click": (...args: any[]) => void;
|
|
4989
|
+
"row-contextmenu": (...args: any[]) => void;
|
|
4990
|
+
"row-dblclick": (...args: any[]) => void;
|
|
4991
|
+
"header-click": (...args: any[]) => void;
|
|
4992
|
+
"header-contextmenu": (...args: any[]) => void;
|
|
4993
|
+
"sort-change": (...args: any[]) => void;
|
|
4994
|
+
"filter-change": (...args: any[]) => void;
|
|
4995
|
+
"header-dragend": (...args: any[]) => void;
|
|
4996
|
+
refreshed: (...args: any[]) => void;
|
|
4997
|
+
loaded: (...args: any[]) => void;
|
|
4998
|
+
"drag-change": (...args: any[]) => void;
|
|
4999
|
+
"save-columns": (...args: any[]) => void;
|
|
5000
|
+
"change-group": (...args: any[]) => void;
|
|
5001
|
+
"virtual-table-rendered": (...args: any[]) => void;
|
|
5002
|
+
"column-sort": (...args: any[]) => void;
|
|
5003
|
+
"expanded-rows-change": (...args: any[]) => void;
|
|
5004
|
+
"rows-rendered": (...args: any[]) => void;
|
|
5005
|
+
"row-expand": (...args: any[]) => void;
|
|
5006
|
+
"pagination:size-change": (...args: any[]) => void;
|
|
5007
|
+
"pagination:current-change": (...args: any[]) => void;
|
|
5008
|
+
"pagination:prev-click": (...args: any[]) => void;
|
|
5009
|
+
"pagination:next-click": (...args: any[]) => void;
|
|
5010
|
+
"pagination:change": (...args: any[]) => void;
|
|
5011
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5012
|
+
zTableV2ContainerRef: HTMLDivElement;
|
|
5013
|
+
zTableV2OperationElement: HTMLDivElement;
|
|
5014
|
+
zTableV2BodyRef: HTMLDivElement;
|
|
5015
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
5016
|
+
P: {};
|
|
5017
|
+
B: {};
|
|
5018
|
+
D: {};
|
|
5019
|
+
C: {};
|
|
5020
|
+
M: {};
|
|
5021
|
+
Defaults: {};
|
|
5022
|
+
}, Readonly<{
|
|
5023
|
+
tableBuilder: TableBuilder<TAny>;
|
|
5024
|
+
}> & Readonly<{
|
|
5025
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
5026
|
+
onDrag?: ((...args: any[]) => any) | undefined;
|
|
5027
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
5028
|
+
onInit?: ((...args: any[]) => any) | undefined;
|
|
5029
|
+
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
5030
|
+
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
5031
|
+
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
5032
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
5033
|
+
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
5034
|
+
"onCell-mouse-enter"?: ((...args: any[]) => any) | undefined;
|
|
5035
|
+
"onCell-mouse-leave"?: ((...args: any[]) => any) | undefined;
|
|
5036
|
+
"onCell-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
5037
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
5038
|
+
"onCell-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
5039
|
+
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
5040
|
+
"onRow-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
5041
|
+
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
5042
|
+
"onHeader-click"?: ((...args: any[]) => any) | undefined;
|
|
5043
|
+
"onHeader-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
5044
|
+
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
5045
|
+
"onFilter-change"?: ((...args: any[]) => any) | undefined;
|
|
5046
|
+
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
5047
|
+
onRefreshed?: ((...args: any[]) => any) | undefined;
|
|
5048
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
5049
|
+
"onDrag-change"?: ((...args: any[]) => any) | undefined;
|
|
5050
|
+
"onSave-columns"?: ((...args: any[]) => any) | undefined;
|
|
5051
|
+
"onChange-group"?: ((...args: any[]) => any) | undefined;
|
|
5052
|
+
"onVirtual-table-rendered"?: ((...args: any[]) => any) | undefined;
|
|
5053
|
+
"onColumn-sort"?: ((...args: any[]) => any) | undefined;
|
|
5054
|
+
"onExpanded-rows-change"?: ((...args: any[]) => any) | undefined;
|
|
5055
|
+
"onRows-rendered"?: ((...args: any[]) => any) | undefined;
|
|
5056
|
+
"onRow-expand"?: ((...args: any[]) => any) | undefined;
|
|
5057
|
+
"onPagination:size-change"?: ((...args: any[]) => any) | undefined;
|
|
5058
|
+
"onPagination:current-change"?: ((...args: any[]) => any) | undefined;
|
|
5059
|
+
"onPagination:prev-click"?: ((...args: any[]) => any) | undefined;
|
|
5060
|
+
"onPagination:next-click"?: ((...args: any[]) => any) | undefined;
|
|
5061
|
+
"onPagination:change"?: ((...args: any[]) => any) | undefined;
|
|
5062
|
+
}>, {}, {}, {}, {}, {}>;
|
|
5063
|
+
__isFragment?: never;
|
|
5064
|
+
__isTeleport?: never;
|
|
5065
|
+
__isSuspense?: never;
|
|
5066
|
+
} & ComponentOptionsBase<Readonly<{
|
|
5067
|
+
tableBuilder: TableBuilder<TAny>;
|
|
5068
|
+
}> & Readonly<{
|
|
5069
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
5070
|
+
onDrag?: ((...args: any[]) => any) | undefined;
|
|
5071
|
+
onScroll?: ((...args: any[]) => any) | undefined;
|
|
5072
|
+
onInit?: ((...args: any[]) => any) | undefined;
|
|
5073
|
+
"onEnd-reached"?: ((...args: any[]) => any) | undefined;
|
|
5074
|
+
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
5075
|
+
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
5076
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
5077
|
+
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
5078
|
+
"onCell-mouse-enter"?: ((...args: any[]) => any) | undefined;
|
|
5079
|
+
"onCell-mouse-leave"?: ((...args: any[]) => any) | undefined;
|
|
5080
|
+
"onCell-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
5081
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
5082
|
+
"onCell-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
5083
|
+
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
5084
|
+
"onRow-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
5085
|
+
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
5086
|
+
"onHeader-click"?: ((...args: any[]) => any) | undefined;
|
|
5087
|
+
"onHeader-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
5088
|
+
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
5089
|
+
"onFilter-change"?: ((...args: any[]) => any) | undefined;
|
|
5090
|
+
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
5091
|
+
onRefreshed?: ((...args: any[]) => any) | undefined;
|
|
5092
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
5093
|
+
"onDrag-change"?: ((...args: any[]) => any) | undefined;
|
|
5094
|
+
"onSave-columns"?: ((...args: any[]) => any) | undefined;
|
|
5095
|
+
"onChange-group"?: ((...args: any[]) => any) | undefined;
|
|
5096
|
+
"onVirtual-table-rendered"?: ((...args: any[]) => any) | undefined;
|
|
5097
|
+
"onColumn-sort"?: ((...args: any[]) => any) | undefined;
|
|
5098
|
+
"onExpanded-rows-change"?: ((...args: any[]) => any) | undefined;
|
|
5099
|
+
"onRows-rendered"?: ((...args: any[]) => any) | undefined;
|
|
5100
|
+
"onRow-expand"?: ((...args: any[]) => any) | undefined;
|
|
5101
|
+
"onPagination:size-change"?: ((...args: any[]) => any) | undefined;
|
|
5102
|
+
"onPagination:current-change"?: ((...args: any[]) => any) | undefined;
|
|
5103
|
+
"onPagination:prev-click"?: ((...args: any[]) => any) | undefined;
|
|
5104
|
+
"onPagination:next-click"?: ((...args: any[]) => any) | undefined;
|
|
5105
|
+
"onPagination:change"?: ((...args: any[]) => any) | undefined;
|
|
5106
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5107
|
+
select: (...args: any[]) => void;
|
|
5108
|
+
drag: (...args: any[]) => void;
|
|
5109
|
+
scroll: (...args: any[]) => void;
|
|
5110
|
+
init: (...args: any[]) => void;
|
|
5111
|
+
"end-reached": (...args: any[]) => void;
|
|
5112
|
+
"expand-change": (...args: any[]) => void;
|
|
5113
|
+
"current-change": (...args: any[]) => void;
|
|
5114
|
+
"select-all": (...args: any[]) => void;
|
|
5115
|
+
"selection-change": (...args: any[]) => void;
|
|
5116
|
+
"cell-mouse-enter": (...args: any[]) => void;
|
|
5117
|
+
"cell-mouse-leave": (...args: any[]) => void;
|
|
5118
|
+
"cell-contextmenu": (...args: any[]) => void;
|
|
5119
|
+
"cell-click": (...args: any[]) => void;
|
|
5120
|
+
"cell-dblclick": (...args: any[]) => void;
|
|
5121
|
+
"row-click": (...args: any[]) => void;
|
|
5122
|
+
"row-contextmenu": (...args: any[]) => void;
|
|
5123
|
+
"row-dblclick": (...args: any[]) => void;
|
|
5124
|
+
"header-click": (...args: any[]) => void;
|
|
5125
|
+
"header-contextmenu": (...args: any[]) => void;
|
|
5126
|
+
"sort-change": (...args: any[]) => void;
|
|
5127
|
+
"filter-change": (...args: any[]) => void;
|
|
5128
|
+
"header-dragend": (...args: any[]) => void;
|
|
5129
|
+
refreshed: (...args: any[]) => void;
|
|
5130
|
+
loaded: (...args: any[]) => void;
|
|
5131
|
+
"drag-change": (...args: any[]) => void;
|
|
5132
|
+
"save-columns": (...args: any[]) => void;
|
|
5133
|
+
"change-group": (...args: any[]) => void;
|
|
5134
|
+
"virtual-table-rendered": (...args: any[]) => void;
|
|
5135
|
+
"column-sort": (...args: any[]) => void;
|
|
5136
|
+
"expanded-rows-change": (...args: any[]) => void;
|
|
5137
|
+
"rows-rendered": (...args: any[]) => void;
|
|
5138
|
+
"row-expand": (...args: any[]) => void;
|
|
5139
|
+
"pagination:size-change": (...args: any[]) => void;
|
|
5140
|
+
"pagination:current-change": (...args: any[]) => void;
|
|
5141
|
+
"pagination:prev-click": (...args: any[]) => void;
|
|
5142
|
+
"pagination:next-click": (...args: any[]) => void;
|
|
5143
|
+
"pagination:change": (...args: any[]) => void;
|
|
5144
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
5145
|
+
$slots: Readonly<{
|
|
5146
|
+
header: (props: {
|
|
5147
|
+
pagination: IZTableV2Pagination;
|
|
5148
|
+
}) => void;
|
|
5149
|
+
operation: (props: {
|
|
5150
|
+
pagination: IZTableV2Pagination;
|
|
5151
|
+
}) => void;
|
|
5152
|
+
selectSlot: (props: {
|
|
5153
|
+
count: number;
|
|
5154
|
+
}) => void;
|
|
5155
|
+
append: () => void;
|
|
5156
|
+
empty: () => void;
|
|
5157
|
+
}> & {
|
|
5158
|
+
header: (props: {
|
|
5159
|
+
pagination: IZTableV2Pagination;
|
|
5160
|
+
}) => void;
|
|
5161
|
+
operation: (props: {
|
|
5162
|
+
pagination: IZTableV2Pagination;
|
|
5163
|
+
}) => void;
|
|
5164
|
+
selectSlot: (props: {
|
|
5165
|
+
count: number;
|
|
5166
|
+
}) => void;
|
|
5167
|
+
append: () => void;
|
|
5168
|
+
empty: () => void;
|
|
5169
|
+
};
|
|
5170
|
+
});
|
|
5171
|
+
|
|
5172
|
+
declare class ZTableV2Column<T extends TObj> {
|
|
5173
|
+
/**
|
|
5174
|
+
* 存储原始列配置
|
|
5175
|
+
*/
|
|
5176
|
+
props: IZTableV2Column<T>;
|
|
5177
|
+
constructor(props: IZTableV2Column<T>);
|
|
5178
|
+
/**
|
|
5179
|
+
* 是否隐藏当前列
|
|
5180
|
+
*/
|
|
5181
|
+
get isHidden(): boolean;
|
|
5182
|
+
get prop(): string | keyof T | undefined;
|
|
5183
|
+
get label(): string | undefined;
|
|
5184
|
+
get readonly(): boolean | undefined;
|
|
5185
|
+
/**
|
|
5186
|
+
* 获取列的属性
|
|
5187
|
+
*/
|
|
5188
|
+
get tableColumnAttrs(): Omit_2<IZTableV2Column<T>, "onClick" | "hidden" | "className" | "contentRender" | "renderToOptions" | "headerRender" | "emptyValue" | "emptyClick" | "renderToEmpty" | "draggable">;
|
|
5189
|
+
/**
|
|
5190
|
+
* 获取table-v2的列的属性
|
|
5191
|
+
*/
|
|
5192
|
+
get tableV2ColumnAttrs(): TableV2ColumnAttrs<T>;
|
|
5193
|
+
/**
|
|
5194
|
+
* 获取列的class
|
|
5195
|
+
*/
|
|
5196
|
+
get className(): string;
|
|
5197
|
+
}
|
|
5198
|
+
|
|
5199
|
+
export declare type ZTableV2EventKeys = (typeof Z_TABLE_V2_EVENTS)[number] | string;
|
|
5200
|
+
|
|
2986
5201
|
export declare const ZTipsFormItem: {
|
|
2987
5202
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2988
5203
|
label: string;
|
|
@@ -3105,4 +5320,6 @@ declare interface Element {
|
|
|
3105
5320
|
style: CSSStyleDeclaration;
|
|
3106
5321
|
}
|
|
3107
5322
|
|
|
5323
|
+
declare type TArrayAble<T> = T | T[];
|
|
5324
|
+
|
|
3108
5325
|
export { }
|