@dazhicheng/ui 1.5.187 → 1.5.192
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/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +2 -0
- package/dist/components/tt-form/src/form-render/array-register/props.d.ts +8 -0
- package/dist/components/tt-form/src/formApi.d.ts +27 -4
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +3 -3
- package/dist/components/tt-form/src/hooks/useArrayRegistry.d.ts +2 -1
- package/dist/components/tt-form/src/types.d.ts +6 -6
- package/dist/components/tt-form/src/useFormContext.d.ts +60 -1
- package/dist/components/tt-nav-anchor/index.d.ts +4 -0
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.d.ts +3 -0
- package/dist/components/tt-nav-anchor/src/types.d.ts +2 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +12 -12
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +1 -1
- package/dist/components/tt-select/src/components/Table.vue.d.ts +1 -1
- package/dist/index.js +7893 -7609
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -26,7 +26,9 @@ export declare const FormArrayRegister: import('vue').DefineComponent<{
|
|
|
26
26
|
}> & Readonly<{}>, {
|
|
27
27
|
readonly disabled: boolean | undefined;
|
|
28
28
|
readonly hide: boolean | undefined;
|
|
29
|
+
readonly defaultValue: any;
|
|
29
30
|
readonly wrapperClass: string;
|
|
31
|
+
readonly useArraySchema: boolean | undefined;
|
|
30
32
|
readonly arraySchema: import('./props').ArraySchemaProp;
|
|
31
33
|
readonly dependencies: import('./types').ArrayRegisterDependencies | undefined;
|
|
32
34
|
readonly rules: import('../../types').FormSchemaRuleType | undefined;
|
|
@@ -24,6 +24,14 @@ export declare const formArrayRegisterProps: {
|
|
|
24
24
|
readonly type: PropType<ArraySchemaProp>;
|
|
25
25
|
readonly default: () => FormSchema[];
|
|
26
26
|
};
|
|
27
|
+
readonly useArraySchema: {
|
|
28
|
+
readonly type: PropType<boolean | undefined>;
|
|
29
|
+
readonly default: undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly defaultValue: {
|
|
32
|
+
readonly type: PropType<FormSchema["defaultValue"]>;
|
|
33
|
+
readonly default: undefined;
|
|
34
|
+
};
|
|
27
35
|
readonly formItemClass: {
|
|
28
36
|
readonly type: PropType<NonNullable<FormSchema["formItemClass"]>>;
|
|
29
37
|
readonly default: undefined;
|
|
@@ -147,7 +147,7 @@ export declare class FormApi {
|
|
|
147
147
|
* @param name 需要注册的数组字段
|
|
148
148
|
* @param actions 操作方法
|
|
149
149
|
*/
|
|
150
|
-
registerArrayField(name: string, actions: ResolvedFieldArrayContext): void;
|
|
150
|
+
registerArrayField(name: string, actions: ResolvedFieldArrayContext, schema?: FormSchema): void;
|
|
151
151
|
unregisterArrayField(name: string, actions?: ResolvedFieldArrayContext): void;
|
|
152
152
|
/** @description 数组字段操作集合 */
|
|
153
153
|
get arrayAction(): {
|
|
@@ -162,7 +162,7 @@ export declare class FormApi {
|
|
|
162
162
|
* @param name 数组字段名(例如 `fieldName的值 数组下才生效`)
|
|
163
163
|
* @param value 要追加的数组项值
|
|
164
164
|
*/
|
|
165
|
-
push: <TValue = unknown>(name: string, value
|
|
165
|
+
push: <TValue = unknown>(name: string, value?: TValue) => void;
|
|
166
166
|
/**
|
|
167
167
|
* @description 删除指定索引的项
|
|
168
168
|
* @param name 数组字段名(例如 `fieldName的值 数组下才生效`)
|
|
@@ -190,14 +190,14 @@ export declare class FormApi {
|
|
|
190
190
|
* @param idx 插入位置索引
|
|
191
191
|
* @param value 要插入的数组项值
|
|
192
192
|
*/
|
|
193
|
-
insert: <TValue = unknown>(name: string, idx: number, value
|
|
193
|
+
insert: <TValue = unknown>(name: string, idx: number, value?: TValue) => void;
|
|
194
194
|
/**
|
|
195
195
|
* @description 在数组头部新增一项
|
|
196
196
|
* @template TValue 数组项类型
|
|
197
197
|
* @param name 数组字段名(例如 `fieldName的值 数组下才生效`)
|
|
198
198
|
* @param value 要插入到头部的数组项值
|
|
199
199
|
*/
|
|
200
|
-
prepend: <TValue = unknown>(name: string, value
|
|
200
|
+
prepend: <TValue = unknown>(name: string, value?: TValue) => void;
|
|
201
201
|
/**
|
|
202
202
|
* @description 将项从旧索引移动到新索引
|
|
203
203
|
* @param name 数组字段名(例如 `fieldName的值 数组下才生效`)
|
|
@@ -224,8 +224,31 @@ export declare class FormApi {
|
|
|
224
224
|
* @description 将业务传入路径规范化为数组注册表键
|
|
225
225
|
*/
|
|
226
226
|
protected _resolveArrayFieldPath(name: string): string;
|
|
227
|
+
private _getRegisteredArrayFieldItem;
|
|
227
228
|
private _getRegisteredArrayField;
|
|
228
229
|
private _getArrayFieldActions;
|
|
230
|
+
/**
|
|
231
|
+
* @description 获取数组字段 schema
|
|
232
|
+
*/
|
|
233
|
+
protected _getArrayFieldSchema(name: string): FormSchema | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* @description 解析数组新增项默认值
|
|
236
|
+
*/
|
|
237
|
+
protected _resolveArrayDefaultItemValue(name: string): unknown;
|
|
238
|
+
/**
|
|
239
|
+
* @description 按新增操作场景解析数组新增项默认值
|
|
240
|
+
*/
|
|
241
|
+
protected _resolveArrayDefaultItemValueByMutation(name: string, value?: unknown, options?: {
|
|
242
|
+
index?: number;
|
|
243
|
+
arrayLength?: number;
|
|
244
|
+
}): unknown;
|
|
245
|
+
/**
|
|
246
|
+
* @description 合并数组新增项值,优先使用 schema 默认值补齐
|
|
247
|
+
*/
|
|
248
|
+
protected _resolveArrayItemValue<TValue = unknown>(name: string, value?: TValue, options?: {
|
|
249
|
+
index?: number;
|
|
250
|
+
arrayLength?: number;
|
|
251
|
+
}): TValue;
|
|
229
252
|
/**
|
|
230
253
|
* @description 开发环境:数组字段未注册时输出告警与相近路径提示
|
|
231
254
|
*/
|
|
@@ -339,12 +339,12 @@ export declare class GroupFormApi extends FormApi {
|
|
|
339
339
|
*/
|
|
340
340
|
get arrayAction(): {
|
|
341
341
|
get: <TValue = unknown>(name: string) => Readonly<import('../..').FieldArrayContext<TValue>> | undefined;
|
|
342
|
-
push: <TValue = unknown>(name: string, value
|
|
342
|
+
push: <TValue = unknown>(name: string, value?: TValue) => void;
|
|
343
343
|
remove: (name: string, idx: number) => void;
|
|
344
344
|
replace: <TValue = unknown>(name: string, values: TValue[]) => void;
|
|
345
345
|
update: <TValue = unknown>(name: string, idx: number, value: TValue) => void;
|
|
346
|
-
insert: <TValue = unknown>(name: string, idx: number, value
|
|
347
|
-
prepend: <TValue = unknown>(name: string, value
|
|
346
|
+
insert: <TValue = unknown>(name: string, idx: number, value?: TValue) => void;
|
|
347
|
+
prepend: <TValue = unknown>(name: string, value?: TValue) => void;
|
|
348
348
|
move: (name: string, oldIdx: number, newIdx: number) => void;
|
|
349
349
|
swap: (name: string, indexA: number, indexB: number) => void;
|
|
350
350
|
/**
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { FormSchema } from '../types';
|
|
1
2
|
import { ResolvedFieldArrayContext } from '../types/forms';
|
|
2
|
-
export declare function useArrayRegistry(name: string): readonly [(actions?: ResolvedFieldArrayContext) => void, () => void];
|
|
3
|
+
export declare function useArrayRegistry(name: string, schema?: FormSchema): readonly [(actions?: ResolvedFieldArrayContext) => void, () => void];
|
|
@@ -64,12 +64,12 @@ export type MaybeComponentProps = {
|
|
|
64
64
|
/** 数组操作方法 */
|
|
65
65
|
export interface FormArrayActions {
|
|
66
66
|
get: <TValue = unknown>(name: string) => Readonly<FieldArrayContext<TValue>> | undefined;
|
|
67
|
-
push: <TValue = unknown>(name: string, value
|
|
67
|
+
push: <TValue = unknown>(name: string, value?: TValue) => void;
|
|
68
68
|
remove: (name: string, idx: number) => void;
|
|
69
69
|
replace: <TValue = unknown>(name: string, values: TValue[]) => void;
|
|
70
70
|
update: <TValue = unknown>(name: string, idx: number, value: TValue) => void;
|
|
71
|
-
insert: <TValue = unknown>(name: string, idx: number, value
|
|
72
|
-
prepend: <TValue = unknown>(name: string, value
|
|
71
|
+
insert: <TValue = unknown>(name: string, idx: number, value?: TValue) => void;
|
|
72
|
+
prepend: <TValue = unknown>(name: string, value?: TValue) => void;
|
|
73
73
|
move: (name: string, oldIdx: number, newIdx: number) => void;
|
|
74
74
|
swap: (name: string, indexA: number, indexB: number) => void;
|
|
75
75
|
/**
|
|
@@ -87,12 +87,12 @@ export interface FormArrayActions {
|
|
|
87
87
|
export type NestedArrayHandle<TValue = unknown> = {
|
|
88
88
|
path: string;
|
|
89
89
|
get: () => Readonly<FieldArrayContext<TValue>> | undefined;
|
|
90
|
-
push: (value
|
|
90
|
+
push: (value?: TValue) => void;
|
|
91
91
|
remove: (idx: number) => void;
|
|
92
92
|
replace: (values: TValue[]) => void;
|
|
93
93
|
update: (idx: number, value: TValue) => void;
|
|
94
|
-
insert: (idx: number, value
|
|
95
|
-
prepend: (value
|
|
94
|
+
insert: (idx: number, value?: TValue) => void;
|
|
95
|
+
prepend: (value?: TValue) => void;
|
|
96
96
|
move: (oldIdx: number, newIdx: number) => void;
|
|
97
97
|
swap: (indexA: number, indexB: number) => void;
|
|
98
98
|
/** 进入下一层嵌套数组,如 `.at(0, 'skills').at(1, 'items')` */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { FormSchema, ExtendedFormApi, FormActions, TtFormProps } from './types';
|
|
2
|
+
import { ArraySchemaContext, FormArrayActions, FormSchema, NestedArrayHandle, ExtendedFormApi, FormActions, TtFormProps } from './types';
|
|
3
3
|
type ExtendFormProps = TtFormProps & {
|
|
4
4
|
formApi?: ExtendedFormApi;
|
|
5
5
|
};
|
|
@@ -8,6 +8,65 @@ export declare const injectFormProps: <T extends [ExtendFormProps | ComputedRef<
|
|
|
8
8
|
export declare const injectComponentRefMap: <T extends Map<string, unknown> | null | undefined = Map<string, unknown>>(fallback?: T | undefined) => T extends null ? Map<string, unknown> | null : Map<string, unknown>, provideComponentRefMap: (contextValue: Map<string, unknown>) => Map<string, unknown>;
|
|
9
9
|
/** 提取单个字段默认值:defaultValue 优先,其次 Zod rules */
|
|
10
10
|
export declare function resolveSchemaItemDefaultValue(item: FormSchema): unknown | undefined;
|
|
11
|
+
/** 数组 schema 运行时上下文参数 */
|
|
12
|
+
type ArraySchemaRuntimeOptions = {
|
|
13
|
+
/**
|
|
14
|
+
* 当前数组字段 schema
|
|
15
|
+
*/
|
|
16
|
+
item: FormSchema;
|
|
17
|
+
/**
|
|
18
|
+
* 当前数组完整路径
|
|
19
|
+
*/
|
|
20
|
+
arrayPath: string;
|
|
21
|
+
/**
|
|
22
|
+
* 当前行完整路径
|
|
23
|
+
*/
|
|
24
|
+
itemPath: string;
|
|
25
|
+
/**
|
|
26
|
+
* 当前行值
|
|
27
|
+
*/
|
|
28
|
+
row: Record<string, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* 当前行索引
|
|
31
|
+
*/
|
|
32
|
+
index: number;
|
|
33
|
+
/**
|
|
34
|
+
* 当前数组长度
|
|
35
|
+
*/
|
|
36
|
+
arrayLength: number;
|
|
37
|
+
/**
|
|
38
|
+
* 父行路径
|
|
39
|
+
*/
|
|
40
|
+
parentItemPath?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 表单值代理
|
|
43
|
+
*/
|
|
44
|
+
form?: Record<string, unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* 表单数组操作器
|
|
47
|
+
*/
|
|
48
|
+
arrayAction?: FormArrayActions;
|
|
49
|
+
/**
|
|
50
|
+
* 当前数组句柄
|
|
51
|
+
*/
|
|
52
|
+
arrayHandle?: NestedArrayHandle;
|
|
53
|
+
/**
|
|
54
|
+
* 是否禁用运行时变更
|
|
55
|
+
*/
|
|
56
|
+
safeMutations?: boolean;
|
|
57
|
+
};
|
|
58
|
+
type PublicArraySchemaRuntimeOptions = Omit<ArraySchemaRuntimeOptions, "safeMutations">;
|
|
59
|
+
/** 从数组路径提取父行路径 */
|
|
60
|
+
export declare function resolveParentItemPathFromArrayPath(arrayPath: string): string | undefined;
|
|
61
|
+
/** 创建数组 schema 运行时上下文 */
|
|
62
|
+
export declare function createArraySchemaContext(options: PublicArraySchemaRuntimeOptions): ArraySchemaContext;
|
|
63
|
+
/** 统一解析数组字段的 schema(支持静态数组和函数) */
|
|
64
|
+
export declare function resolveArraySchemasForRuntime(options: PublicArraySchemaRuntimeOptions): FormSchema[];
|
|
65
|
+
export declare function resolveArrayFieldInitialValueWithRuntime(item: FormSchema, options: Omit<PublicArraySchemaRuntimeOptions, "item" | "row" | "index" | "arrayLength" | "itemPath"> & {
|
|
66
|
+
row?: Record<string, unknown>;
|
|
67
|
+
index?: number;
|
|
68
|
+
arrayLength?: number;
|
|
69
|
+
}): unknown;
|
|
11
70
|
/**
|
|
12
71
|
* 解析 useArraySchema 字段的 initialValues
|
|
13
72
|
* - 有 defaultValue 数组:沿用并在每行合并静态 arraySchema 嵌套默认值
|
|
@@ -14,7 +14,9 @@ export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall
|
|
|
14
14
|
modelValue: string;
|
|
15
15
|
position: "fixed" | "static" | "sticky";
|
|
16
16
|
badgeCounts: Record<string, number>;
|
|
17
|
+
teleportTo: string | HTMLElement;
|
|
17
18
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
19
|
+
sourceRef: HTMLSpanElement;
|
|
18
20
|
navRef: HTMLDivElement;
|
|
19
21
|
headerRef: HTMLDivElement;
|
|
20
22
|
}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -36,6 +38,7 @@ export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall
|
|
|
36
38
|
modelValue: string;
|
|
37
39
|
position: "fixed" | "static" | "sticky";
|
|
38
40
|
badgeCounts: Record<string, number>;
|
|
41
|
+
teleportTo: string | HTMLElement;
|
|
39
42
|
}>;
|
|
40
43
|
__isFragment?: never;
|
|
41
44
|
__isTeleport?: never;
|
|
@@ -55,6 +58,7 @@ export declare const TtNavAnchor: import('../../../../utils/src').SFCWithInstall
|
|
|
55
58
|
modelValue: string;
|
|
56
59
|
position: "fixed" | "static" | "sticky";
|
|
57
60
|
badgeCounts: Record<string, number>;
|
|
61
|
+
teleportTo: string | HTMLElement;
|
|
58
62
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
59
63
|
$slots: Readonly<{
|
|
60
64
|
description?: (scope: import('.').NavAnchorItemScope) => import('vue').VNodeChild;
|
|
@@ -10,6 +10,7 @@ declare function __VLS_template(): {
|
|
|
10
10
|
description?: (scope: NavAnchorItemScope) => VNodeChild;
|
|
11
11
|
};
|
|
12
12
|
refs: {
|
|
13
|
+
sourceRef: HTMLSpanElement;
|
|
13
14
|
navRef: HTMLDivElement;
|
|
14
15
|
headerRef: HTMLDivElement;
|
|
15
16
|
};
|
|
@@ -31,7 +32,9 @@ declare const __VLS_component: import('vue').DefineComponent<TtNavAnchorProps, {
|
|
|
31
32
|
modelValue: string;
|
|
32
33
|
position: "fixed" | "static" | "sticky";
|
|
33
34
|
badgeCounts: Record<string, number>;
|
|
35
|
+
teleportTo: string | HTMLElement;
|
|
34
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
|
+
sourceRef: HTMLSpanElement;
|
|
35
38
|
navRef: HTMLDivElement;
|
|
36
39
|
headerRef: HTMLDivElement;
|
|
37
40
|
}, any>;
|
|
@@ -31,6 +31,7 @@ declare function __VLS_template(): {
|
|
|
31
31
|
$props: Partial<{
|
|
32
32
|
grid: import('./props').TtSelectGridProps;
|
|
33
33
|
list: Record<string, any>[];
|
|
34
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
34
35
|
loading: boolean;
|
|
35
36
|
multiple: boolean;
|
|
36
37
|
multipleLimit: number;
|
|
@@ -43,12 +44,12 @@ declare function __VLS_template(): {
|
|
|
43
44
|
deleteField: string;
|
|
44
45
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
45
46
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
46
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
47
47
|
hasNextPage: boolean;
|
|
48
48
|
showCheckbox: boolean;
|
|
49
49
|
}> & Omit<{
|
|
50
50
|
readonly grid: import('./props').TtSelectGridProps;
|
|
51
51
|
readonly list: Record<string, any>[];
|
|
52
|
+
readonly reload: (bool?: boolean) => Promise<void>;
|
|
52
53
|
readonly loading: boolean;
|
|
53
54
|
readonly multiple: boolean;
|
|
54
55
|
readonly multipleLimit: number;
|
|
@@ -61,14 +62,13 @@ declare function __VLS_template(): {
|
|
|
61
62
|
readonly deleteField: string;
|
|
62
63
|
readonly setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
63
64
|
readonly getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
64
|
-
readonly reload: (bool?: boolean) => Promise<void>;
|
|
65
65
|
readonly hasNextPage: boolean;
|
|
66
66
|
readonly showCheckbox: boolean;
|
|
67
67
|
readonly onScroll?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
readonly "onRadio-change"?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
readonly "onCheckbox-change"?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
readonly "onCheckbox-all"?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "grid" | "list" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "
|
|
71
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "grid" | "list" | "reload" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "hasNextPage" | "showCheckbox">;
|
|
72
72
|
$attrs: {
|
|
73
73
|
[x: string]: unknown;
|
|
74
74
|
};
|
|
@@ -197,6 +197,7 @@ declare function __VLS_template(): {
|
|
|
197
197
|
}, string, {
|
|
198
198
|
grid: import('./props').TtSelectGridProps;
|
|
199
199
|
list: Record<string, any>[];
|
|
200
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
200
201
|
loading: boolean;
|
|
201
202
|
multiple: boolean;
|
|
202
203
|
multipleLimit: number;
|
|
@@ -209,7 +210,6 @@ declare function __VLS_template(): {
|
|
|
209
210
|
deleteField: string;
|
|
210
211
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
211
212
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
212
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
213
213
|
hasNextPage: boolean;
|
|
214
214
|
showCheckbox: boolean;
|
|
215
215
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -235,6 +235,7 @@ declare function __VLS_template(): {
|
|
|
235
235
|
} & Readonly<{
|
|
236
236
|
grid: import('./props').TtSelectGridProps;
|
|
237
237
|
list: Record<string, any>[];
|
|
238
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
238
239
|
loading: boolean;
|
|
239
240
|
multiple: boolean;
|
|
240
241
|
multipleLimit: number;
|
|
@@ -247,7 +248,6 @@ declare function __VLS_template(): {
|
|
|
247
248
|
deleteField: string;
|
|
248
249
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
249
250
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
250
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
251
251
|
hasNextPage: boolean;
|
|
252
252
|
showCheckbox: boolean;
|
|
253
253
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -324,7 +324,7 @@ declare function __VLS_template(): {
|
|
|
324
324
|
"onRadio-change"?: ((...args: any[]) => any) | undefined;
|
|
325
325
|
"onCheckbox-change"?: ((...args: any[]) => any) | undefined;
|
|
326
326
|
"onCheckbox-all"?: ((...args: any[]) => any) | undefined;
|
|
327
|
-
}>, "getGridInstance" | ("grid" | "list" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "
|
|
327
|
+
}>, "getGridInstance" | ("grid" | "list" | "reload" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "hasNextPage" | "showCheckbox") | "clearCurrentRow" | "setCheckboxRow" | "clearCheckboxRow" | "setRadioRow" | "clearRadioRow" | "scrollTo" | "getCurrentRecord" | "getRowIndex" | "scrollToRow" | "setCurrentRow" | "getData"> & import('vue').ShallowUnwrapRef<{
|
|
328
328
|
clearCurrentRow: () => void;
|
|
329
329
|
setCheckboxRow: (rows: any | any[], checked: boolean) => void;
|
|
330
330
|
clearCheckboxRow: () => void;
|
|
@@ -526,6 +526,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
526
526
|
$props: Partial<{
|
|
527
527
|
grid: import('./props').TtSelectGridProps;
|
|
528
528
|
list: Record<string, any>[];
|
|
529
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
529
530
|
loading: boolean;
|
|
530
531
|
multiple: boolean;
|
|
531
532
|
multipleLimit: number;
|
|
@@ -538,12 +539,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
538
539
|
deleteField: string;
|
|
539
540
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
540
541
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
541
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
542
542
|
hasNextPage: boolean;
|
|
543
543
|
showCheckbox: boolean;
|
|
544
544
|
}> & Omit<{
|
|
545
545
|
readonly grid: import('./props').TtSelectGridProps;
|
|
546
546
|
readonly list: Record<string, any>[];
|
|
547
|
+
readonly reload: (bool?: boolean) => Promise<void>;
|
|
547
548
|
readonly loading: boolean;
|
|
548
549
|
readonly multiple: boolean;
|
|
549
550
|
readonly multipleLimit: number;
|
|
@@ -556,14 +557,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
556
557
|
readonly deleteField: string;
|
|
557
558
|
readonly setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
558
559
|
readonly getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
559
|
-
readonly reload: (bool?: boolean) => Promise<void>;
|
|
560
560
|
readonly hasNextPage: boolean;
|
|
561
561
|
readonly showCheckbox: boolean;
|
|
562
562
|
readonly onScroll?: ((...args: any[]) => any) | undefined;
|
|
563
563
|
readonly "onRadio-change"?: ((...args: any[]) => any) | undefined;
|
|
564
564
|
readonly "onCheckbox-change"?: ((...args: any[]) => any) | undefined;
|
|
565
565
|
readonly "onCheckbox-all"?: ((...args: any[]) => any) | undefined;
|
|
566
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "grid" | "list" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "
|
|
566
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "grid" | "list" | "reload" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "hasNextPage" | "showCheckbox">;
|
|
567
567
|
$attrs: {
|
|
568
568
|
[x: string]: unknown;
|
|
569
569
|
};
|
|
@@ -692,6 +692,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
692
692
|
}, string, {
|
|
693
693
|
grid: import('./props').TtSelectGridProps;
|
|
694
694
|
list: Record<string, any>[];
|
|
695
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
695
696
|
loading: boolean;
|
|
696
697
|
multiple: boolean;
|
|
697
698
|
multipleLimit: number;
|
|
@@ -704,7 +705,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
704
705
|
deleteField: string;
|
|
705
706
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
706
707
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
707
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
708
708
|
hasNextPage: boolean;
|
|
709
709
|
showCheckbox: boolean;
|
|
710
710
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -730,6 +730,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
730
730
|
} & Readonly<{
|
|
731
731
|
grid: import('./props').TtSelectGridProps;
|
|
732
732
|
list: Record<string, any>[];
|
|
733
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
733
734
|
loading: boolean;
|
|
734
735
|
multiple: boolean;
|
|
735
736
|
multipleLimit: number;
|
|
@@ -742,7 +743,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
742
743
|
deleteField: string;
|
|
743
744
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
744
745
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
745
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
746
746
|
hasNextPage: boolean;
|
|
747
747
|
showCheckbox: boolean;
|
|
748
748
|
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -819,7 +819,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
819
819
|
"onRadio-change"?: ((...args: any[]) => any) | undefined;
|
|
820
820
|
"onCheckbox-change"?: ((...args: any[]) => any) | undefined;
|
|
821
821
|
"onCheckbox-all"?: ((...args: any[]) => any) | undefined;
|
|
822
|
-
}>, "getGridInstance" | ("grid" | "list" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "
|
|
822
|
+
}>, "getGridInstance" | ("grid" | "list" | "reload" | "loading" | "multiple" | "multipleLimit" | "configProps" | "disableFn" | "showPager" | "pagination" | "selectValue" | "selectWidth" | "deleteField" | "setPagination" | "getPagination" | "hasNextPage" | "showCheckbox") | "clearCurrentRow" | "setCheckboxRow" | "clearCheckboxRow" | "setRadioRow" | "clearRadioRow" | "scrollTo" | "getCurrentRecord" | "getRowIndex" | "scrollToRow" | "setCurrentRow" | "getData"> & import('vue').ShallowUnwrapRef<{
|
|
823
823
|
clearCurrentRow: () => void;
|
|
824
824
|
setCheckboxRow: (rows: any | any[], checked: boolean) => void;
|
|
825
825
|
clearCheckboxRow: () => void;
|
|
@@ -84,6 +84,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
84
84
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {
|
|
85
85
|
grid: import('../props').TtSelectGridProps;
|
|
86
86
|
list: Record<string, any>[];
|
|
87
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
87
88
|
loading: boolean;
|
|
88
89
|
multiple: boolean;
|
|
89
90
|
multipleLimit: number;
|
|
@@ -96,7 +97,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
96
97
|
deleteField: string;
|
|
97
98
|
setPagination: (pagination: VxeGridProps["pagerConfig"]) => void;
|
|
98
99
|
getPagination: () => VxeGridProps["pagerConfig"];
|
|
99
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
100
100
|
hasNextPage: boolean;
|
|
101
101
|
showCheckbox: boolean;
|
|
102
102
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
@@ -218,6 +218,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
218
218
|
}>, {
|
|
219
219
|
grid: import('../props').TtSelectGridProps;
|
|
220
220
|
list: Record<string, any>[];
|
|
221
|
+
reload: (bool?: boolean) => Promise<void>;
|
|
221
222
|
loading: boolean;
|
|
222
223
|
multiple: boolean;
|
|
223
224
|
multipleLimit: number;
|
|
@@ -230,7 +231,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
230
231
|
deleteField: string;
|
|
231
232
|
setPagination: (pagination: import('vxe-table').VxeGridProps["pagerConfig"]) => void;
|
|
232
233
|
getPagination: () => import('vxe-table').VxeGridProps["pagerConfig"];
|
|
233
|
-
reload: (bool?: boolean) => Promise<void>;
|
|
234
234
|
hasNextPage: boolean;
|
|
235
235
|
showCheckbox: boolean;
|
|
236
236
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|