@vue-ui-kit/ant 2.4.2 → 2.4.3

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.
@@ -0,0 +1,29 @@
1
+ interface Props {
2
+ /** 是否默认折叠 */
3
+ defaultCollapsed?: boolean;
4
+ title?: string;
5
+ /** 是否可以折叠 */
6
+ collapsible?: boolean;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: any;
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
16
+ collapse: () => void;
17
+ expand: () => void;
18
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ title: string;
20
+ defaultCollapsed: boolean;
21
+ collapsible: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,177 @@
1
+ import { default as Cell } from 'e-virt-table/dist/lib/Cell';
2
+ import { default as EVirtTable, Column as EVirtColumn, FormatterMethod } from 'e-virt-table';
3
+ import { CanvasTableProps } from '../../declarations/antProxy';
4
+ declare const _default: <T extends Recordable = Recordable, B extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onChange?: ((value: any[]) => any) | undefined;
7
+ readonly onSelectionChange?: ((value: T[]) => any) | undefined;
8
+ readonly onReady?: ((value: EVirtTable) => any) | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "onSelectionChange" | "onReady"> & CanvasTableProps<T, B> & Partial<{}>> & import('vue').PublicProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{
11
+ $table: null;
12
+ selectedRecords: import('vue').ComputedRef<import('@vue/reactivity').UnwrapRefSimple<T>[]>;
13
+ reloadData: () => void;
14
+ }>): void;
15
+ attrs: any;
16
+ slots: Partial<Record<string, (_: {
17
+ cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
18
+ formatter?: FormatterMethod;
19
+ formatterFooter?: FormatterMethod;
20
+ hoverIconName?: string;
21
+ operation: boolean;
22
+ align: import('e-virt-table').Align;
23
+ verticalAlign: import('e-virt-table').VerticalAlign;
24
+ fixed?: import('e-virt-table').Fixed;
25
+ type: import('e-virt-table').Type | "";
26
+ editorType: string;
27
+ editorProps: any;
28
+ cellType: import('e-virt-table').CellType;
29
+ level: number;
30
+ colspan: number;
31
+ rowspan: number;
32
+ mergeRow: boolean;
33
+ mergeCol: boolean;
34
+ relationRowKeys: string[];
35
+ relationColKeys: string[];
36
+ key: string;
37
+ column: EVirtColumn;
38
+ rowIndex: number;
39
+ colIndex: number;
40
+ rowKey: string;
41
+ row: any;
42
+ value: any;
43
+ render: import('e-virt-table').Render;
44
+ renderFooter: import('e-virt-table').Render;
45
+ style: any;
46
+ domDataset: any;
47
+ rules: import('e-virt-table/dist/lib/Validator').Rules | import('e-virt-table/dist/lib/Validator').Rule;
48
+ message: string;
49
+ text: string;
50
+ displayText: string;
51
+ visibleWidth: number;
52
+ visibleHeight: number;
53
+ isHasChanged: boolean;
54
+ drawX: number;
55
+ drawY: number;
56
+ drawCellBgColor: string;
57
+ drawCellSkyBgColor: string;
58
+ drawTextColor: string;
59
+ drawTextFont: string;
60
+ drawTextX: number;
61
+ drawTextY: number;
62
+ drawTextWidth: number;
63
+ drawTextHeight: number;
64
+ drawTreeImageX: number;
65
+ drawTreeImageY: number;
66
+ drawTreeImageWidth: number;
67
+ drawTreeImageHeight: number;
68
+ drawTreeImageName: string;
69
+ drawTreeImageSource?: HTMLImageElement;
70
+ drawSelectionImageX: number;
71
+ drawSelectionImageY: number;
72
+ drawSelectionImageWidth: number;
73
+ drawSelectionImageHeight: number;
74
+ drawSelectionImageName: string;
75
+ drawSelectionImageSource?: HTMLImageElement;
76
+ drawHoverImageX: number;
77
+ drawHoverImageY: number;
78
+ drawHoverImageWidth: number;
79
+ drawHoverImageHeight: number;
80
+ drawHoverImageName: string;
81
+ drawHoverImageSource?: HTMLImageElement;
82
+ autoRowHeight: boolean;
83
+ calculatedHeight: number;
84
+ ellipsis: boolean;
85
+ rowExpand: boolean;
86
+ rowHasChildren: boolean;
87
+ overflowTooltipShow: boolean;
88
+ selectorCellValueType: import('e-virt-table').SelectorCellValueType;
89
+ overflowTooltipMaxWidth: number;
90
+ overflowTooltipPlacement: import('e-virt-table').OverflowTooltipPlacement;
91
+ maxLineClamp: import('e-virt-table').LineClampType;
92
+ ctx: import('e-virt-table/dist/lib/Context').default;
93
+ x: number;
94
+ y: number;
95
+ width: number;
96
+ height: number;
97
+ } | {
98
+ cell: Cell | import('e-virt-table/dist/lib/CellHeader').default;
99
+ align: import('e-virt-table').Align;
100
+ hideHeaderSelection: boolean;
101
+ verticalAlign: import('e-virt-table').VerticalAlign;
102
+ fixed?: import('e-virt-table').Fixed;
103
+ minWidth?: number;
104
+ maxWidth?: number;
105
+ widthFillDisable: boolean;
106
+ type: import('e-virt-table').Type | "";
107
+ operation: boolean;
108
+ editorType: string;
109
+ level: number;
110
+ text: string;
111
+ hide: boolean;
112
+ displayText: string;
113
+ colspan: number;
114
+ rowspan: number;
115
+ row: any;
116
+ key: string;
117
+ required: boolean;
118
+ readonly: boolean;
119
+ ellipsis: boolean;
120
+ overflowTooltipShow: boolean;
121
+ children: EVirtColumn[];
122
+ column: EVirtColumn;
123
+ colIndex: number;
124
+ rowKey: string;
125
+ rules?: import('e-virt-table/dist/lib/Validator').Rules | import('e-virt-table/dist/lib/Validator').Rule;
126
+ hasChildren: boolean;
127
+ render: import('e-virt-table').Render;
128
+ style: Partial<CSSStyleDeclaration>;
129
+ drawX: number;
130
+ drawY: number;
131
+ sortIconName: string;
132
+ sortAscIconName: string;
133
+ sortDescIconName: string;
134
+ visibleWidth: number;
135
+ visibleHeight: number;
136
+ maxLineClampHeader: import('e-virt-table').LineClampType;
137
+ domDataset: any;
138
+ drawTextX: number;
139
+ drawTextY: number;
140
+ drawTextWidth: number;
141
+ drawTextHeight: number;
142
+ drawCellBgColor: string;
143
+ drawTextColor: string;
144
+ drawTextFont: string;
145
+ drawSelectionImageX: number;
146
+ drawSelectionImageY: number;
147
+ drawSelectionImageWidth: number;
148
+ drawSelectionImageHeight: number;
149
+ drawSelectionImageName: string;
150
+ drawSelectionImageSource?: HTMLImageElement;
151
+ drawSortImageX: number;
152
+ drawSortImageY: number;
153
+ drawSortImageWidth: number;
154
+ drawSortImageHeight: number;
155
+ drawSortImageName: string;
156
+ drawSortImageSource?: HTMLImageElement;
157
+ ctx: import('e-virt-table/dist/lib/Context').default;
158
+ x: number;
159
+ y: number;
160
+ width: number;
161
+ height: number;
162
+ cellType: import('e-virt-table').CellType;
163
+ }) => any>> & {
164
+ empty?(_: {}): any;
165
+ };
166
+ emit: {
167
+ (e: "change", value: any[]): void;
168
+ (e: "selectionChange", value: T[]): void;
169
+ (e: "ready", value: EVirtTable): void;
170
+ };
171
+ }>) => import('vue').VNode & {
172
+ __ctx?: Awaited<typeof __VLS_setup>;
173
+ };
174
+ export default _default;
175
+ type __VLS_PrettifyLocal<T> = {
176
+ [K in keyof T]: T[K];
177
+ } & {};
@@ -0,0 +1,22 @@
1
+ import { PFormProps } from '../../declarations/antProxy';
2
+ declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onReset?: ((...args: any[]) => any) | undefined;
5
+ readonly onApply?: ((...args: any[]) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onApply"> & (PFormProps<F> & {
7
+ data: F;
8
+ }) & Partial<{}>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{
10
+ reset: () => void;
11
+ $form: import('vue').ComputedRef<any>;
12
+ }>): void;
13
+ attrs: any;
14
+ slots: {};
15
+ emit: (event: "reset" | "apply", ...args: any[]) => void;
16
+ }>) => import('vue').VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ export default _default;
20
+ type __VLS_PrettifyLocal<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
@@ -0,0 +1,23 @@
1
+ import { PFormItemProps } from '../../declarations/antProxy';
2
+ declare const _default: <T extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onTrigger?: ((cusFields?: string | string[] | undefined) => any) | undefined;
5
+ readonly onReset?: (() => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onTrigger"> & {
7
+ item: PFormItemProps<T>;
8
+ formData: T;
9
+ } & Partial<{}>> & import('vue').PublicProps;
10
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: {};
13
+ emit: {
14
+ (e: "trigger", cusFields?: string | string[]): void;
15
+ (e: "reset"): void;
16
+ };
17
+ }>) => import('vue').VNode & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
19
+ };
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = {
22
+ [K in keyof T]: T[K];
23
+ } & {};
@@ -0,0 +1,38 @@
1
+ import { PFormGroupProps } from '../../declarations/antProxy';
2
+ declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onUpdate:modelValue"?: ((value: Partial<F & {
5
+ __index: number;
6
+ }>[]) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
8
+ modelValue?: Partial<F & {
9
+ __index: number;
10
+ }>[];
11
+ } & PFormGroupProps<F>) & Partial<{}>> & import('vue').PublicProps;
12
+ expose(exposed: import('vue').ShallowUnwrapRef<{
13
+ collapse: () => void;
14
+ expand: () => void;
15
+ activeKey: import('vue').ComputedRef<number>;
16
+ setActiveKey: (key: number) => void;
17
+ validateAll: () => Promise<PromiseSettledResult<any>[]>;
18
+ validate: (__index: number, ignoreTabError?: boolean) => Promise<void>;
19
+ validateFields: (__index: number, fields: string[], ignoreTabError?: boolean) => Promise<void>;
20
+ }>): void;
21
+ attrs: any;
22
+ slots: Readonly<{
23
+ [key: string]: any;
24
+ rightExtra?: () => any;
25
+ }> & {
26
+ [key: string]: any;
27
+ rightExtra?: () => any;
28
+ };
29
+ emit: (evt: "update:modelValue", value: Partial<F & {
30
+ __index: number;
31
+ }>[]) => void;
32
+ }>) => import('vue').VNode & {
33
+ __ctx?: Awaited<typeof __VLS_setup>;
34
+ };
35
+ export default _default;
36
+ type __VLS_PrettifyLocal<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,16 @@
1
+ import { PBlockProps } from '../../declarations/antProxy';
2
+ declare const _default: <F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & PBlockProps<F> & Partial<{}>> & import('vue').PublicProps;
4
+ expose(exposed: import('vue').ShallowUnwrapRef<{
5
+ $form: import('vue').ComputedRef<Recordable<any> | undefined>;
6
+ }>): void;
7
+ attrs: any;
8
+ slots: {};
9
+ emit: {};
10
+ }>) => import('vue').VNode & {
11
+ __ctx?: Awaited<typeof __VLS_setup>;
12
+ };
13
+ export default _default;
14
+ type __VLS_PrettifyLocal<T> = {
15
+ [K in keyof T]: T[K];
16
+ } & {};
@@ -0,0 +1,25 @@
1
+ import { PGridInstance, PromisePickerProps } from '../../declarations/antProxy';
2
+ declare const _default: <D extends Recordable = Recordable, F extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & PromisePickerProps<D, F> & Partial<{}>> & import('vue').PublicProps;
4
+ expose(exposed: import('vue').ShallowUnwrapRef<{
5
+ pick: () => Promise<D[] | {
6
+ row: D;
7
+ field?: string;
8
+ }>;
9
+ pickMultiple: () => Promise<D[] | {
10
+ row: D;
11
+ field?: string;
12
+ }>;
13
+ grid: import('vue').Ref<PGridInstance<D, Recordable<any>> | undefined, PGridInstance<D, Recordable<any>> | undefined>;
14
+ hide: () => void;
15
+ }>): void;
16
+ attrs: any;
17
+ slots: {};
18
+ emit: {};
19
+ }>) => import('vue').VNode & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ export default _default;
23
+ type __VLS_PrettifyLocal<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
@@ -2,13 +2,13 @@ import { CellRender, RenderTableParams } from '../../declarations/antProxy';
2
2
  declare const _default: new <D extends Recordable = Recordable<any>>(props: {
3
3
  cellRender: CellRender;
4
4
  renderTableParams: RenderTableParams<D>;
5
- defaultHandler: {
5
+ defaultHandler?: {
6
6
  [key: string]: (...args: any[]) => any;
7
7
  };
8
8
  } & {} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps) => import('vue').CreateComponentPublicInstanceWithMixins<{
9
9
  cellRender: CellRender;
10
10
  renderTableParams: RenderTableParams<D>;
11
- defaultHandler: {
11
+ defaultHandler?: {
12
12
  [key: string]: (...args: any[]) => any;
13
13
  };
14
14
  } & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -21,7 +21,7 @@ declare const _default: new <D extends Recordable = Recordable<any>>(props: {
21
21
  }, {
22
22
  cellRender: CellRender;
23
23
  renderTableParams: RenderTableParams<D>;
24
- defaultHandler: {
24
+ defaultHandler?: {
25
25
  [key: string]: (...args: any[]) => any;
26
26
  };
27
27
  } & {}, {}, {}, {}, {}, {}>;
@@ -0,0 +1,25 @@
1
+ import { TableProps } from 'ant-design-vue';
2
+ import { ColumnProps } from '../../declarations/antProxy';
3
+ declare const _default: <D extends Recordable = Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{
5
+ tableConfig: TableProps<any>;
6
+ modelValue: D[];
7
+ editColumns: ColumnProps<Recordable<any>>[];
8
+ }> & Omit<{
9
+ readonly tableConfig: TableProps<any>;
10
+ readonly modelValue: D[];
11
+ readonly editColumns: ColumnProps<Recordable<any>>[];
12
+ readonly onTrigger?: ((...args: any[]) => any) | undefined;
13
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "tableConfig" | "modelValue" | "editColumns">, "onTrigger" | "onUpdate:modelValue" | ("tableConfig" | "modelValue" | "editColumns")> & {} & Partial<{}>> & import('vue').PublicProps;
15
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
16
+ attrs: any;
17
+ slots: {};
18
+ emit: (event: "trigger" | "update:modelValue", ...args: any[]) => void;
19
+ }>) => import('vue').VNode & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ export default _default;
23
+ type __VLS_PrettifyLocal<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};