@dazhicheng/ui 1.5.224 → 1.5.225
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/index.d.ts +5 -3
- package/dist/components/tt-form/src/form/RenderContent.vue.js +8 -8
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +122 -122
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +4 -4
- package/dist/components/tt-form/src/form-render/context.d.ts +1 -1
- package/dist/components/tt-form/src/form-render/dependencies.js +56 -56
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +1 -1
- package/dist/components/tt-form/src/formApi.d.ts +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue.d.ts +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +35 -35
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +135 -134
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +68 -68
- package/dist/components/tt-form/src/group-form/groupFormApi.js +4 -4
- package/dist/components/tt-form/src/group-form/types.d.ts +25 -24
- package/dist/components/tt-form/src/group-form/useGroupForm.d.ts +2 -6
- package/dist/components/tt-form/src/group-form/utils.d.ts +8 -8
- package/dist/components/tt-form/src/index.vue.d.ts +12 -12
- package/dist/components/tt-form/src/types.d.ts +48 -47
- package/dist/components/tt-form/src/useForm.d.ts +2 -2
- package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/index.d.ts +12 -12
- package/dist/components/tt-table/src/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/src/TableForm.vue.d.ts +1 -1
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +1 -1
- package/package.json +1 -1
|
@@ -134,45 +134,46 @@ export interface ArraySchemaContext {
|
|
|
134
134
|
export type FormActions = FormContext<GenericObject> & {
|
|
135
135
|
arrayAction?: FormArrayActions;
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
/** 表单 schema 回调的公共参数类型 */
|
|
138
|
+
export type CustomRenderType<TValues extends Record<string, any> = Record<string, any>> = ((value: TValues, formApi: FormApi) => Component | VNodeChild) | string;
|
|
138
139
|
export type FormSchemaRuleType = "required" | "selectRequired" | null | (Record<never, never> & string) | ZodTypeAny;
|
|
139
|
-
type FormItemDependenciesCondition<
|
|
140
|
-
type FormItemDependenciesConditionWithRules =
|
|
141
|
-
type FormItemDependenciesConditionWithProps =
|
|
142
|
-
export interface FormItemDependencies {
|
|
140
|
+
export type FormItemDependenciesCondition<TResult = boolean | PromiseLike<boolean>, TValues extends Record<string, any> = Record<string, any>> = (value: TValues, formApi: FormApi) => TResult;
|
|
141
|
+
export type FormItemDependenciesConditionWithRules<TValues extends Record<string, any> = Record<string, any>> = (value: TValues, formApi: FormApi) => FormSchemaRuleType | PromiseLike<FormSchemaRuleType>;
|
|
142
|
+
export type FormItemDependenciesConditionWithProps<TValues extends Record<string, any> = Record<string, any>> = (value: TValues, formApi: FormApi) => MaybeComponentProps | PromiseLike<MaybeComponentProps>;
|
|
143
|
+
export interface FormItemDependencies<TValues extends Record<string, any> = Record<string, any>> {
|
|
143
144
|
/**
|
|
144
145
|
* 组件参数
|
|
145
146
|
* @returns 组件参数
|
|
146
147
|
*/
|
|
147
|
-
componentProps?: FormItemDependenciesConditionWithProps
|
|
148
|
+
componentProps?: FormItemDependenciesConditionWithProps<TValues>;
|
|
148
149
|
/**
|
|
149
150
|
* 是否禁用
|
|
150
151
|
* @returns 是否禁用
|
|
151
152
|
*/
|
|
152
|
-
disabled?: boolean | FormItemDependenciesCondition
|
|
153
|
+
disabled?: boolean | FormItemDependenciesCondition<boolean | PromiseLike<boolean>, TValues>;
|
|
153
154
|
/**
|
|
154
155
|
* 是否渲染(删除dom)
|
|
155
156
|
* @returns 是否渲染
|
|
156
157
|
*/
|
|
157
|
-
if?: boolean | FormItemDependenciesCondition
|
|
158
|
+
if?: boolean | FormItemDependenciesCondition<boolean | PromiseLike<boolean>, TValues>;
|
|
158
159
|
/**
|
|
159
160
|
* 是否必填
|
|
160
161
|
* @returns 是否必填
|
|
161
162
|
*/
|
|
162
|
-
required?: FormItemDependenciesCondition
|
|
163
|
+
required?: FormItemDependenciesCondition<boolean | PromiseLike<boolean>, TValues>;
|
|
163
164
|
/**
|
|
164
165
|
* 字段规则
|
|
165
166
|
*/
|
|
166
|
-
rules?: FormItemDependenciesConditionWithRules
|
|
167
|
+
rules?: FormItemDependenciesConditionWithRules<TValues>;
|
|
167
168
|
/**
|
|
168
169
|
* 是否隐藏(Css)
|
|
169
170
|
* @returns 是否隐藏
|
|
170
171
|
*/
|
|
171
|
-
show?: boolean | FormItemDependenciesCondition
|
|
172
|
+
show?: boolean | FormItemDependenciesCondition<boolean | PromiseLike<boolean>, TValues>;
|
|
172
173
|
/**
|
|
173
174
|
* 任意触发都会执行
|
|
174
175
|
*/
|
|
175
|
-
trigger?: FormItemDependenciesCondition
|
|
176
|
+
trigger?: FormItemDependenciesCondition<boolean | PromiseLike<boolean>, TValues>;
|
|
176
177
|
/**
|
|
177
178
|
* 触发字段
|
|
178
179
|
*/
|
|
@@ -188,9 +189,9 @@ export interface FormItemDependencies {
|
|
|
188
189
|
* - 允许用 `rules/disabled` 动态控制规则与禁用
|
|
189
190
|
* - 允许声明 `triggerFields` 作为依赖触发源
|
|
190
191
|
*/
|
|
191
|
-
export type ArrayRegisterDependencies = Pick<FormItemDependencies
|
|
192
|
-
type ComponentProps =
|
|
193
|
-
export interface FormCommonConfig {
|
|
192
|
+
export type ArrayRegisterDependencies<TValues extends Record<string, any> = Record<string, any>> = Pick<FormItemDependencies<TValues>, "if" | "show" | "rules" | "disabled" | "triggerFields">;
|
|
193
|
+
export type ComponentProps<TValues extends Record<string, any> = Record<string, any>> = ((value: TValues, formApi: FormApi) => MaybeComponentProps) | MaybeComponentProps;
|
|
194
|
+
export interface FormCommonConfig<TValues extends Record<string, any> = Record<string, any>> {
|
|
194
195
|
/**
|
|
195
196
|
* 在Label后显示一个冒号
|
|
196
197
|
*/
|
|
@@ -198,7 +199,7 @@ export interface FormCommonConfig {
|
|
|
198
199
|
/**
|
|
199
200
|
* 所有表单项的props
|
|
200
201
|
*/
|
|
201
|
-
componentProps?: ComponentProps
|
|
202
|
+
componentProps?: ComponentProps<TValues>;
|
|
202
203
|
/**
|
|
203
204
|
* 所有表单项的控件样式
|
|
204
205
|
*/
|
|
@@ -261,7 +262,7 @@ export interface FormCommonConfig {
|
|
|
261
262
|
*/
|
|
262
263
|
wrapperClass?: string;
|
|
263
264
|
}
|
|
264
|
-
type RenderComponentContentType =
|
|
265
|
+
export type RenderComponentContentType<TValues extends Record<string, any> = Record<string, any>> = (value: TValues, formApi: FormApi) => Record<string, any>;
|
|
265
266
|
export type HandleSubmitFn = (values: Record<string, any>) => Promise<void> | void;
|
|
266
267
|
export type HandleResetFn = (values: Record<string, any>) => Promise<void> | void;
|
|
267
268
|
export type FieldMappingTime = [
|
|
@@ -274,36 +275,36 @@ export type FieldMappingTime = [
|
|
|
274
275
|
][];
|
|
275
276
|
export type ArrayToStringFields = Array<[string[], string?] | string | string[]>;
|
|
276
277
|
export type NoInfer<T> = [T][T extends any ? 0 : never];
|
|
277
|
-
export interface FormSchema<
|
|
278
|
+
export interface FormSchema<TValues extends Record<string, any> = Record<string, any>> extends FormCommonConfig<TValues> {
|
|
278
279
|
/** 组件 */
|
|
279
|
-
component: Component |
|
|
280
|
+
component: Component | BaseFormComponentType;
|
|
280
281
|
/** 组件参数 */
|
|
281
|
-
componentProps?: ComponentProps
|
|
282
|
+
componentProps?: ComponentProps<TValues>;
|
|
282
283
|
/** 默认值 */
|
|
283
284
|
defaultValue?: any;
|
|
284
285
|
/** 依赖 */
|
|
285
|
-
dependencies?: FormItemDependencies
|
|
286
|
+
dependencies?: FormItemDependencies<TValues>;
|
|
286
287
|
/** 描述 */
|
|
287
|
-
description?: CustomRenderType
|
|
288
|
+
description?: CustomRenderType<TValues>;
|
|
288
289
|
/** 字段名 */
|
|
289
290
|
fieldName: string;
|
|
290
291
|
/** 帮助信息 */
|
|
291
|
-
help?: CustomRenderType
|
|
292
|
+
help?: CustomRenderType<TValues>;
|
|
292
293
|
/** 是否隐藏表单项 */
|
|
293
294
|
hide?: boolean;
|
|
294
295
|
/** 表单项 */
|
|
295
|
-
label?: CustomRenderType
|
|
296
|
-
renderComponentContent?: RenderComponentContentType
|
|
296
|
+
label?: CustomRenderType<TValues>;
|
|
297
|
+
renderComponentContent?: RenderComponentContentType<TValues>;
|
|
297
298
|
/** 字段规则 */
|
|
298
299
|
rules?: FormSchemaRuleType;
|
|
299
300
|
/** 后缀 */
|
|
300
|
-
suffix?: CustomRenderType
|
|
301
|
+
suffix?: CustomRenderType<TValues>;
|
|
301
302
|
/** 帮助信息触发器 */
|
|
302
303
|
helpTrigger?: "hover" | "click" | "focus" | "contextmenu";
|
|
303
304
|
/** label本身文字气泡设置 */
|
|
304
305
|
toolTip?: TtTextProps;
|
|
305
306
|
/** 非label文字气泡设置 */
|
|
306
|
-
toolTipText?: CustomRenderType
|
|
307
|
+
toolTipText?: CustomRenderType<TValues>;
|
|
307
308
|
/** 是否使用动态新增 */
|
|
308
309
|
useArraySchema?: true;
|
|
309
310
|
/**
|
|
@@ -313,40 +314,40 @@ export interface FormSchema<T extends BaseFormComponentType = BaseFormComponentT
|
|
|
313
314
|
* @example arraySchema: (entry, index) => []
|
|
314
315
|
* @example arraySchema: (entry, index, ctx) => { ctx.arrayHandle?.push({}); return []; }
|
|
315
316
|
*/
|
|
316
|
-
arraySchema?: FormSchema[] | ((entry: FieldEntry<Recordable>, currentIndex: number,
|
|
317
|
+
arraySchema?: FormSchema<TValues>[] | ((entry: FieldEntry<Recordable>, currentIndex: number,
|
|
317
318
|
/** 第三参数由 FormArrayRegister 注入;旧写法可忽略 */
|
|
318
|
-
ctx: ArraySchemaContext) => FormSchema[]);
|
|
319
|
+
ctx: ArraySchemaContext) => FormSchema<TValues>[]);
|
|
319
320
|
}
|
|
320
321
|
/**
|
|
321
322
|
* 普通字段:不走 `useArraySchema` 渲染链路。
|
|
322
323
|
*/
|
|
323
|
-
export type NonArrayFormSchema<
|
|
324
|
+
export type NonArrayFormSchema<TValues extends Record<string, any> = Record<string, any>> = Omit<FormSchema<TValues>, "useArraySchema" | "arraySchema"> & {
|
|
324
325
|
useArraySchema?: undefined;
|
|
325
326
|
arraySchema?: never;
|
|
326
327
|
};
|
|
327
|
-
export type ArrayRegisterSchema<
|
|
328
|
-
dependencies?: ArrayRegisterDependencies
|
|
328
|
+
export type ArrayRegisterSchema<TValues extends Record<string, any> = Record<string, any>> = Pick<FormSchema<TValues>, "component" | "fieldName" | "arraySchema" | "formItemClass" | "rules" | "wrapperClass" | "hide" | "disabled" | "defaultValue"> & {
|
|
329
|
+
dependencies?: ArrayRegisterDependencies<TValues>;
|
|
329
330
|
useArraySchema: true;
|
|
330
331
|
};
|
|
331
332
|
/**
|
|
332
333
|
* 表单 schema 项:普通字段 or 数组字段(受 `useArraySchema` 判别约束)。
|
|
333
334
|
*/
|
|
334
|
-
export type FormSchemaItem<
|
|
335
|
+
export type FormSchemaItem<TValues extends Record<string, any> = Record<string, any>> = NonArrayFormSchema<TValues> | ArrayRegisterSchema<TValues>;
|
|
335
336
|
/** 插槽 scope 参数,传递给渲染函数或具名插槽 */
|
|
336
|
-
export interface FormSlotScope {
|
|
337
|
+
export interface FormSlotScope<TValues extends Record<string, any> = Record<string, any>> {
|
|
337
338
|
/** 当前表单所有字段的值 */
|
|
338
|
-
values:
|
|
339
|
+
values: TValues;
|
|
339
340
|
/** 表单操作方法(validate / resetForm / getValues 等) */
|
|
340
341
|
formActions: FormActions;
|
|
341
342
|
}
|
|
342
|
-
export type FormActionSlotScope = Omit<FormSlotScope
|
|
343
|
+
export type FormActionSlotScope<TValues extends Record<string, any> = Record<string, any>> = Omit<FormSlotScope<TValues>, "formActions"> & {
|
|
343
344
|
/** 表单操作方法(validate / resetForm / getValues 等) */
|
|
344
|
-
action: FormSlotScope["formActions"];
|
|
345
|
+
action: FormSlotScope<TValues>["formActions"];
|
|
345
346
|
};
|
|
346
347
|
/**
|
|
347
348
|
* Extra slot props exposed for `useArraySchema: true` fields.
|
|
348
349
|
*/
|
|
349
|
-
export interface FormArraySlotScope extends FormSlotScope {
|
|
350
|
+
export interface FormArraySlotScope<TValues extends Record<string, any> = Record<string, any>> extends FormSlotScope<TValues> {
|
|
350
351
|
arrayEntry?: FieldEntry<Recordable>;
|
|
351
352
|
arrayAction?: FormArrayActions;
|
|
352
353
|
arrayHandle?: NestedArrayHandle;
|
|
@@ -365,23 +366,23 @@ export type { ArrayRegisterProps } from './form-render/array-register/types';
|
|
|
365
366
|
* @property {string | ((scope: FormSlotScope) => VNodeChild)} content - 插槽名或渲染函数
|
|
366
367
|
* @property {WrapperClassType} [wrapperClass] - 容器额外 class(如 col-span-full)
|
|
367
368
|
*/
|
|
368
|
-
export interface FormSlotSchema {
|
|
369
|
+
export interface FormSlotSchema<TValues extends Record<string, any> = Record<string, any>> {
|
|
369
370
|
/** 类型标识 */
|
|
370
371
|
type: "slot";
|
|
371
372
|
/** 插槽名(字符串)或渲染函数 */
|
|
372
|
-
content: string | ((scope: FormSlotScope) => VNodeChild);
|
|
373
|
+
content: string | ((scope: FormSlotScope<TValues>) => VNodeChild);
|
|
373
374
|
/** 容器额外 class */
|
|
374
375
|
wrapperClass?: WrapperClassType;
|
|
375
376
|
/**
|
|
376
|
-
* 是否显示,支持布尔值或函数 (values,
|
|
377
|
+
* 是否显示,支持布尔值或函数 `(values, formApi) => boolean | Promise<boolean>`,默认 true。
|
|
377
378
|
* 仅在 GroupForm 场景下生效。
|
|
378
379
|
*/
|
|
379
|
-
ifShow?: boolean | ((values:
|
|
380
|
+
ifShow?: boolean | ((values: TValues, formApi: FormApi) => boolean | PromiseLike<boolean>);
|
|
380
381
|
}
|
|
381
|
-
export interface FormFieldProps extends FormSchema {
|
|
382
|
+
export interface FormFieldProps<TValues extends Record<string, any> = Record<string, any>> extends FormSchema<TValues> {
|
|
382
383
|
required?: boolean;
|
|
383
384
|
}
|
|
384
|
-
export interface FormRenderProps<
|
|
385
|
+
export interface FormRenderProps<TValues extends Record<string, any> = Record<string, any>> {
|
|
385
386
|
/**
|
|
386
387
|
* 表单字段数组映射字符串配置 默认使用","
|
|
387
388
|
*/
|
|
@@ -404,7 +405,7 @@ export interface FormRenderProps<T extends BaseFormComponentType = BaseFormCompo
|
|
|
404
405
|
/**
|
|
405
406
|
* 表单项通用后备配置,当子项目没配置时使用这里的配置,子项目配置优先级高于此配置
|
|
406
407
|
*/
|
|
407
|
-
commonConfig?: FormCommonConfig
|
|
408
|
+
commonConfig?: FormCommonConfig<TValues>;
|
|
408
409
|
/**
|
|
409
410
|
* 紧凑模式(移除表单每一项底部为校验信息预留的空间)
|
|
410
411
|
*/
|
|
@@ -432,7 +433,7 @@ export interface FormRenderProps<T extends BaseFormComponentType = BaseFormCompo
|
|
|
432
433
|
/**
|
|
433
434
|
* 表单定义,支持普通字段
|
|
434
435
|
*/
|
|
435
|
-
schema?: (FormSchema<
|
|
436
|
+
schema?: (FormSchema<TValues> | FormSchemaItem<TValues> | FormSlotSchema<TValues>)[];
|
|
436
437
|
/**
|
|
437
438
|
* 是否显示展开/折叠
|
|
438
439
|
*/
|
|
@@ -452,7 +453,7 @@ export type ActionButtonOptions = {
|
|
|
452
453
|
show?: boolean;
|
|
453
454
|
customFn?: (value: Record<string, any>) => Record<string, any>;
|
|
454
455
|
} & Partial<ButtonProps>;
|
|
455
|
-
export interface TtFormProps<
|
|
456
|
+
export interface TtFormProps<TValues extends Record<string, any> = Record<string, any>> extends Omit<FormRenderProps<TValues>, "componentBindEventMap" | "componentMap" | "form"> {
|
|
456
457
|
/**
|
|
457
458
|
* 操作按钮是否反转(提交按钮前置)
|
|
458
459
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useForm<
|
|
1
|
+
import { ExtendedFormApi, TtFormProps } from './types';
|
|
2
|
+
export declare function useForm<TValues extends Record<string, any> = Record<string, any>>(options: TtFormProps<TValues>): readonly [import('vue').DefineSetupFnComponent<TtFormProps<TValues>, {}, {}, TtFormProps<TValues> & {}, import('vue').PublicProps>, ExtendedFormApi];
|
|
@@ -75,8 +75,8 @@ declare function __VLS_template(): {
|
|
|
75
75
|
$refs: {
|
|
76
76
|
[x: string]: unknown;
|
|
77
77
|
} & {
|
|
78
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
79
|
-
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
78
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
79
|
+
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
80
80
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
81
81
|
}) | null;
|
|
82
82
|
table: HTMLTableElement;
|
|
@@ -570,8 +570,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
570
570
|
$refs: {
|
|
571
571
|
[x: string]: unknown;
|
|
572
572
|
} & {
|
|
573
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
574
|
-
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
573
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
574
|
+
$props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
575
575
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
576
576
|
}) | null;
|
|
577
577
|
table: HTMLTableElement;
|
|
@@ -32,8 +32,8 @@ declare function __VLS_template(): {
|
|
|
32
32
|
empty: () => VNode;
|
|
33
33
|
};
|
|
34
34
|
refs: {
|
|
35
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
36
|
-
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
35
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
36
|
+
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
37
37
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
38
38
|
}) | null;
|
|
39
39
|
table: HTMLTableElement;
|
|
@@ -234,8 +234,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
234
234
|
hasNextPage: boolean;
|
|
235
235
|
showCheckbox: boolean;
|
|
236
236
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
237
|
-
vxelist: (import('vxe-pc-ui').VxeListMethods & {
|
|
238
|
-
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps
|
|
237
|
+
vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
|
|
238
|
+
$props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
|
|
239
239
|
$slots: import('vxe-pc-ui').VxeListSlots;
|
|
240
240
|
}) | null;
|
|
241
241
|
table: HTMLTableElement;
|
|
@@ -412,14 +412,15 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
412
412
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
413
413
|
showPager: any;
|
|
414
414
|
showCheckbox: any;
|
|
415
|
+
showRadio: any;
|
|
416
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
417
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
418
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
415
419
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
416
420
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
417
421
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
418
422
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
419
423
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
420
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
421
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
422
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
423
424
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
424
425
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
425
426
|
emptyText: string;
|
|
@@ -436,7 +437,6 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
436
437
|
showRefresh: boolean;
|
|
437
438
|
columnsKey: string | (() => string);
|
|
438
439
|
showExpand: any;
|
|
439
|
-
showRadio: any;
|
|
440
440
|
showIndex: any;
|
|
441
441
|
isCellResize: any;
|
|
442
442
|
isColumnsDrag: any;
|
|
@@ -1044,14 +1044,15 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1044
1044
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
1045
1045
|
showPager: any;
|
|
1046
1046
|
showCheckbox: any;
|
|
1047
|
+
showRadio: any;
|
|
1048
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1049
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1050
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1047
1051
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
1048
1052
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
1049
1053
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
1050
1054
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1051
1055
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1052
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1053
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1054
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1055
1056
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
1056
1057
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
1057
1058
|
emptyText: string;
|
|
@@ -1068,7 +1069,6 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1068
1069
|
showRefresh: boolean;
|
|
1069
1070
|
columnsKey: string | (() => string);
|
|
1070
1071
|
showExpand: any;
|
|
1071
|
-
showRadio: any;
|
|
1072
1072
|
showIndex: any;
|
|
1073
1073
|
isCellResize: any;
|
|
1074
1074
|
isColumnsDrag: any;
|
|
@@ -1409,14 +1409,15 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1409
1409
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
1410
1410
|
showPager: any;
|
|
1411
1411
|
showCheckbox: any;
|
|
1412
|
+
showRadio: any;
|
|
1413
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1414
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1415
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1412
1416
|
columns: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
1413
1417
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
1414
1418
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
1415
1419
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1416
1420
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
1417
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1418
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
1419
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
1420
1421
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
1421
1422
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
1422
1423
|
emptyText: string;
|
|
@@ -1433,7 +1434,6 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1433
1434
|
showRefresh: boolean;
|
|
1434
1435
|
columnsKey: string | (() => string);
|
|
1435
1436
|
showExpand: any;
|
|
1436
|
-
showRadio: any;
|
|
1437
1437
|
showIndex: any;
|
|
1438
1438
|
isCellResize: any;
|
|
1439
1439
|
isColumnsDrag: any;
|
|
@@ -809,14 +809,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
809
809
|
pagerConfig: import("vxe-table").VxeGridPropTypes.PagerConfig | undefined;
|
|
810
810
|
showPager: any;
|
|
811
811
|
showCheckbox: any;
|
|
812
|
+
showRadio: any;
|
|
813
|
+
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
814
|
+
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
815
|
+
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
812
816
|
columns: import('vue').MaybeRef<VxeTableDefines.ColumnOptions<any>[]> | undefined;
|
|
813
817
|
toolbarConfig: import("vxe-table").VxeGridPropTypes.ToolbarConfig | undefined;
|
|
814
818
|
zoomConfig: import("vxe-table").VxeGridPropTypes.ZoomConfig | undefined;
|
|
815
819
|
showOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
816
820
|
showHeaderOverflow: import("vxe-table").VxeTablePropTypes.ShowOverflow | undefined;
|
|
817
|
-
radioConfig: import("vxe-table").VxeTablePropTypes.RadioConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
818
|
-
checkboxConfig: import("vxe-table").VxeTablePropTypes.CheckboxConfig<import("vxe-table").VxeTablePropTypes.Row>;
|
|
819
|
-
menuConfig: import("vxe-table").VxeTablePropTypes.MenuConfig<any>;
|
|
820
821
|
mouseConfig: import("vxe-table").VxeTablePropTypes.MouseConfig;
|
|
821
822
|
keyboardConfig: import("vxe-table").VxeTablePropTypes.KeyboardConfig<any>;
|
|
822
823
|
emptyText: string;
|
|
@@ -833,7 +834,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
833
834
|
showRefresh: boolean;
|
|
834
835
|
columnsKey: string | (() => string);
|
|
835
836
|
showExpand: any;
|
|
836
|
-
showRadio: any;
|
|
837
837
|
showIndex: any;
|
|
838
838
|
isCellResize: any;
|
|
839
839
|
isColumnsDrag: any;
|
|
@@ -231,7 +231,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
231
231
|
type: import('vue').PropType<TtTableExtendedTableFormApi>;
|
|
232
232
|
};
|
|
233
233
|
}>> & Readonly<{}>, {
|
|
234
|
-
form: Partial<import('../../../index').TtFormProps<
|
|
234
|
+
form: Partial<import('../../../index').TtFormProps<Record<string, any>>>;
|
|
235
235
|
table: Partial<TtTableProps>;
|
|
236
236
|
tableRowId: string;
|
|
237
237
|
useSearchForm: any;
|
|
@@ -8,7 +8,7 @@ export declare function useTableForm(propsRef: ComputedRef<TtTableFormProps>, fe
|
|
|
8
8
|
(e: "update:table-data", data?: Recordable): void;
|
|
9
9
|
}): {
|
|
10
10
|
tableData: import('vue').Ref<Recordable<any>[], Recordable<any>[]>;
|
|
11
|
-
getFormProps: ComputedRef<TtFormProps<
|
|
11
|
+
getFormProps: ComputedRef<TtFormProps<Record<string, any>>>;
|
|
12
12
|
handleSearchInfoChange: (info: Recordable) => Promise<void>;
|
|
13
13
|
getTableProps: ComputedRef<Partial<TtTableProps>>;
|
|
14
14
|
getTableToolProps: ComputedRef<TtTableToolsProps>;
|