@dazhicheng/ui 1.6.18 → 1.6.20
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 +2 -2
- package/dist/components/tt-form/src/formApi.d.ts +11 -2
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +162 -114
- package/dist/components/tt-form/src/group-form/groupFormApi.js +8 -14
- package/dist/components/tt-form/src/group-form/lazyContext.d.ts +18 -0
- package/dist/components/tt-form/src/group-form/lazyContext.js +64 -36
- package/dist/components/tt-form/src/group-form/types.d.ts +39 -6
- package/dist/components/tt-form/src/group-form/useGroupForm.d.ts +7 -5
- package/dist/components/tt-form/src/types.d.ts +58 -26
- package/dist/components/tt-form/src/useForm.d.ts +1 -1
- package/dist/components/tt-form/src/useForm.js +5 -5
- package/dist/components/tt-modal-form/props.d.ts +9 -4
- package/dist/components/tt-modal-form/useModalForm.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +15 -0
- package/dist/components/tt-table/src/Table.vue.d.ts +9 -0
- package/dist/components/tt-table/src/Table.vue.js +240 -242
- package/dist/components/tt-table/src/TableForm.vue.d.ts +15 -4
- package/dist/components/tt-table/src/TableForm.vue.js +232 -202
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +1 -1
- package/dist/components/tt-table/src/hooks/usePagination.js +38 -24
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +4 -4
- package/dist/components/tt-table/src/props.d.ts +12 -1
- package/dist/components/tt-table/src/props.js +14 -4
- package/dist/components/tt-table/src/types/table.d.ts +8 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +44 -10
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { Slot, nextTick } from 'vue';
|
|
|
2
2
|
import { TtModalExtendedModalApi } from '../../tt-modal';
|
|
3
3
|
import { Recordable } from '../../../../../utils/src';
|
|
4
4
|
import { TtTableProps } from './types/table';
|
|
5
|
-
import { TtTableExtendedTableFormApi, TtTableFormProps } from './types/tableForm';
|
|
5
|
+
import { TtTableExtendedTableFormApi, TtTableFormProps, TtTableSearchBeforeResult, TtTableSearchTrigger } from './types/tableForm';
|
|
6
6
|
declare function __VLS_template(): {
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
8
|
slots: Readonly<{
|
|
@@ -331,6 +331,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
331
331
|
immediate?: boolean;
|
|
332
332
|
afterFetch?: ((data: any[], res: globalThis.Recordable | globalThis.Recordable[]) => Promise<any[]>) | undefined;
|
|
333
333
|
beforeFetch?: (params: globalThis.Recordable) => Promise<globalThis.Recordable>;
|
|
334
|
+
beforePageChange?: (page: import("vxe-table").VxeGridPropTypes.PagerConfig) => boolean | Promise<boolean>;
|
|
334
335
|
isScrollFetch?: boolean;
|
|
335
336
|
showToolbar?: boolean;
|
|
336
337
|
columnsFieldSort?: string[];
|
|
@@ -352,6 +353,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
352
353
|
type: import('vue').PropType<Fn>;
|
|
353
354
|
default: null;
|
|
354
355
|
};
|
|
356
|
+
tableSearchBefore: {
|
|
357
|
+
type: import('vue').PropType<NonNullable<TtTableFormProps["tableSearchBefore"]>>;
|
|
358
|
+
default: null;
|
|
359
|
+
};
|
|
355
360
|
toolConfig: {
|
|
356
361
|
type: import('vue').PropType<import('../../../index').TtTableToolsProps>;
|
|
357
362
|
default: null;
|
|
@@ -366,10 +371,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
366
371
|
}>, {
|
|
367
372
|
instance: import('vue').ComponentInternalInstance | null;
|
|
368
373
|
setTableProps: (props: Partial<TtTableProps<any>>) => void;
|
|
369
|
-
setFormProps: (props: import('../../../index').
|
|
374
|
+
setFormProps: (props: Partial<import('../../../index').TtFormProps<Record<string, any>>>) => void;
|
|
370
375
|
tableMethods: import('../../../index').TtTableMethods<any>;
|
|
371
|
-
formMethods: import('../../../index').TtTableRenderFormInstance
|
|
372
|
-
setProps: (props: Partial<TtTableFormProps<any
|
|
376
|
+
formMethods: import('../../../index').TtTableRenderFormInstance<Record<string, any>>;
|
|
377
|
+
setProps: (props: Partial<TtTableFormProps<any, Record<string, any>>>) => void;
|
|
373
378
|
reload: import('../../../index').TtTableMethods<Row>["reload"];
|
|
374
379
|
selectedKeys: import('vue').MaybeRef<import('../../../index').TtSelectRowKeysType>;
|
|
375
380
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -554,6 +559,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
554
559
|
immediate?: boolean;
|
|
555
560
|
afterFetch?: ((data: any[], res: globalThis.Recordable | globalThis.Recordable[]) => Promise<any[]>) | undefined;
|
|
556
561
|
beforeFetch?: (params: globalThis.Recordable) => Promise<globalThis.Recordable>;
|
|
562
|
+
beforePageChange?: (page: import("vxe-table").VxeGridPropTypes.PagerConfig) => boolean | Promise<boolean>;
|
|
557
563
|
isScrollFetch?: boolean;
|
|
558
564
|
showToolbar?: boolean;
|
|
559
565
|
columnsFieldSort?: string[];
|
|
@@ -575,6 +581,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
575
581
|
type: import('vue').PropType<Fn>;
|
|
576
582
|
default: null;
|
|
577
583
|
};
|
|
584
|
+
tableSearchBefore: {
|
|
585
|
+
type: import('vue').PropType<NonNullable<TtTableFormProps["tableSearchBefore"]>>;
|
|
586
|
+
default: null;
|
|
587
|
+
};
|
|
578
588
|
toolConfig: {
|
|
579
589
|
type: import('vue').PropType<import('../../../index').TtTableToolsProps>;
|
|
580
590
|
default: null;
|
|
@@ -594,6 +604,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
594
604
|
handleSearchInfoFn: Fn<any, any>;
|
|
595
605
|
toolConfig: import('../../../index').TtTableToolsProps;
|
|
596
606
|
tableRefreshBefore: Fn<any, any>;
|
|
607
|
+
tableSearchBefore: (values: Record<string, any>, trigger: TtTableSearchTrigger) => TtTableSearchBeforeResult | Promise<TtTableSearchBeforeResult>;
|
|
597
608
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
598
609
|
columnModalRef: ({
|
|
599
610
|
$: import('vue').ComponentInternalInstance;
|