@dazhicheng/ui 1.1.0 → 1.4.1
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/form.vue.d.ts +1 -1
- package/dist/components/tt-form/src/index.vue.d.ts +4 -4
- package/dist/components/tt-form-adapter/component/index.d.ts +1 -1
- package/dist/components/tt-form-adapter/component/index.d.ts.map +1 -1
- package/dist/components/tt-form-adapter/index.d.ts +2 -2
- package/dist/components/tt-form-adapter/index.d.ts.map +1 -1
- package/dist/components/tt-loading/index.d.ts +17 -0
- package/dist/components/tt-loading/index.d.ts.map +1 -0
- package/dist/components/tt-loading/src/directive.d.ts +10 -0
- package/dist/components/tt-loading/src/directive.d.ts.map +1 -0
- package/dist/components/tt-loading/src/loading.vue.d.ts +13 -0
- package/dist/components/tt-loading/src/loading.vue.d.ts.map +1 -0
- package/dist/components/tt-loading/src/service.d.ts +26 -0
- package/dist/components/tt-loading/src/service.d.ts.map +1 -0
- package/dist/components/tt-loading/src/type.d.ts +21 -0
- package/dist/components/tt-loading/src/type.d.ts.map +1 -0
- package/dist/components/tt-part/index.d.ts +3 -3
- package/dist/components/tt-part/index.vue.d.ts +1 -1
- package/dist/components/tt-table/index.d.ts +128 -0
- package/dist/components/tt-table/index.d.ts.map +1 -0
- package/dist/components/tt-table/src/Table.vue.d.ts +1746 -0
- package/dist/components/tt-table/src/Table.vue.d.ts.map +1 -0
- package/dist/components/tt-table/src/TableForm.vue.d.ts +163 -0
- package/dist/components/tt-table/src/TableForm.vue.d.ts.map +1 -0
- package/dist/components/tt-table/src/componentMap.d.ts +9 -0
- package/dist/components/tt-table/src/componentMap.d.ts.map +1 -0
- package/dist/components/tt-table/src/components/RowContext.d.ts +25 -0
- package/dist/components/tt-table/src/components/RowContext.d.ts.map +1 -0
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts +80 -0
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts.map +1 -0
- package/dist/components/tt-table/src/components/TableButtons.d.ts +31 -0
- package/dist/components/tt-table/src/components/TableButtons.d.ts.map +1 -0
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +1685 -0
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts.map +1 -0
- package/dist/components/tt-table/src/emits.d.ts +2 -0
- package/dist/components/tt-table/src/emits.d.ts.map +1 -0
- package/dist/components/tt-table/src/enum.d.ts +3 -0
- package/dist/components/tt-table/src/enum.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useCache.d.ts +21 -0
- package/dist/components/tt-table/src/hooks/useCache.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +16 -0
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +32 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +30 -0
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useFullscreen.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useFullscreen.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +1083 -0
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +103 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +31 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTable.d.ts +8 -0
- package/dist/components/tt-table/src/hooks/useTable.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts +44 -0
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +102 -0
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +16 -0
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +82 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts.map +1 -0
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts.map +1 -0
- package/dist/components/tt-table/src/props.d.ts +485 -0
- package/dist/components/tt-table/src/props.d.ts.map +1 -0
- package/dist/components/tt-table/src/toolProps.d.ts +102 -0
- package/dist/components/tt-table/src/toolProps.d.ts.map +1 -0
- package/dist/components/tt-table/src/types/table.d.ts +493 -0
- package/dist/components/tt-table/src/types/table.d.ts.map +1 -0
- package/dist/components/tt-table/src/types/tableAction.d.ts +27 -0
- package/dist/components/tt-table/src/types/tableAction.d.ts.map +1 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +66 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts.map +1 -0
- package/dist/components/tt-table/src/types/tableTools.d.ts +66 -0
- package/dist/components/tt-table/src/types/tableTools.d.ts.map +1 -0
- package/dist/components/tt-table/src/utils/context.d.ts +19 -0
- package/dist/components/tt-table/src/utils/context.d.ts.map +1 -0
- package/dist/components/tt-table/src/utils/filters.d.ts +110 -0
- package/dist/components/tt-table/src/utils/filters.d.ts.map +1 -0
- package/dist/components/tt-table/src/utils/table-api.d.ts +269 -0
- package/dist/components/tt-table/src/utils/table-api.d.ts.map +1 -0
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +89 -0
- package/dist/components/tt-table/src/utils/table-form-api.d.ts.map +1 -0
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +29 -0
- package/dist/components/tt-table/src/utils/vxeTable.d.ts.map +1 -0
- package/dist/components/tt-validate/src/Field.d.ts +1 -1
- package/dist/components/tt-validate/src/Form.d.ts +1 -1
- package/dist/{css-CoEz66oB.js → css-CKklk3nV.js} +1 -0
- package/dist/{event-DSSsWzVU.js → event-BgJv9iWk.js} +1 -1
- package/dist/hooks/useSetup.d.ts +6 -0
- package/dist/hooks/useSetup.d.ts.map +1 -0
- package/dist/hooks/useTemplateSlot.d.ts +10 -0
- package/dist/hooks/useTemplateSlot.d.ts.map +1 -0
- package/dist/{icon-DbdhHmva.js → icon-C9BsRQqM.js} +2 -2
- package/dist/{index-C8UKPPHD.js → index-64J4mWP7.js} +2 -2
- package/dist/{index-hlMlaPX2.js → index-B3w7HVvP.js} +6 -6
- package/dist/{index-p03nbfgB.js → index-BQgaGlJA.js} +8 -8
- package/dist/{index-DHdDQVpg.js → index-Bq5RXWp8.js} +5 -5
- package/dist/{index-BXkpTX1Y.js → index-CB2v0taz.js} +1 -1
- package/dist/{index-DiNnJQ4b.js → index-C_u1XOy0.js} +7 -7
- package/dist/{index-BKMpeJMS.js → index-CdyRKSi4.js} +20 -20
- package/dist/index-CjcGE9Xi.js +2700 -0
- package/dist/{index-COVG9Wvh.js → index-CzDjdhem.js} +5 -5
- package/dist/{index-BhRFBLHz.js → index-D6x6ZHVk.js} +5 -5
- package/dist/{index-DfMIblcg.js → index-DHXyFJLO.js} +1 -1
- package/dist/{index-DVbQtqoV.js → index-DXGnUvsQ.js} +9 -9
- package/dist/{index-BgzdMRW8.js → index-DY3FsmvZ.js} +2 -2
- package/dist/{index-DIqpkfiH.js → index-Dp1l-3ez.js} +2 -2
- package/dist/{index-my6Z5v2z.js → index-LRY3g1Bz.js} +6 -6
- package/dist/{index-qZ-AAxXa.js → index-hI7UMWGr.js} +1 -1
- package/dist/index-iFd1yQ1C.js +55785 -0
- package/dist/index.d.ts +3 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -17
- package/dist/panel-time-pick.vue2-C7R5HGb8.js +2026 -0
- package/dist/style.css +1 -1
- package/dist/{use-form-common-props-DkpXv1AY.js → use-form-common-props-CDmM4Wn1.js} +1 -1
- package/dist/{use-form-item-bliFpQLk.js → use-form-item-Bv38v7TO.js} +2 -2
- package/dist/util-CWdgKsYq.js +2259 -0
- package/package.json +9 -9
- package/dist/index-1F8harWZ.js +0 -1982
- package/dist/index-D8_UEqsc.js +0 -2683
- package/dist/index-DdEvRX8w.js +0 -47929
- package/dist/panel-time-pick.vue2-D4HGRRie.js +0 -1602
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLeftRightSlot.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useLeftRightSlot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAY,KAAK,WAAW,EAAO,KAAK,GAAG,EAA4B,MAAM,KAAK,CAAC;AAE1F,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,WAAW,CAAC,YAAY,CAAC,EACnC,QAAQ,EAAE,GAAG,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,EAC1C,SAAS,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC;4CA4ByB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAkEgwsB,GAAG,8CAA8C,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADl7sB"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { VxeGridPropTypes } from 'vxe-table';
|
|
2
|
+
import { TtTableProps } from '../types/table';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
type PaginationProps = VxeGridPropTypes.PagerConfig;
|
|
5
|
+
export declare function usePagination(refProps: ComputedRef<TtTableProps>, emit: (event: "page-change", data: any) => void): {
|
|
6
|
+
configRef: import('vue').Ref<{
|
|
7
|
+
enabled?: boolean | undefined;
|
|
8
|
+
slots?: {
|
|
9
|
+
left?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.LeftSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
10
|
+
right?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.RightSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
11
|
+
home?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.HomeSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
12
|
+
prevPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevPageSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
13
|
+
prevJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
14
|
+
nextJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
15
|
+
nextPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextPageSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
16
|
+
end?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.EndSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
17
|
+
number?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
18
|
+
numberJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
19
|
+
sizes?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.SizesSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
20
|
+
fullJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
21
|
+
jump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
22
|
+
pageCount?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PageCountSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
23
|
+
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
size?: import("vxe-pc-ui").VxePagerPropTypes.Size | undefined;
|
|
26
|
+
layouts?: ("Number" | "Home" | "PrevJump" | "PrevPage" | "JumpNumber" | "NextPage" | "NextJump" | "End" | "Sizes" | "Jump" | "FullJump" | "PageCount" | "Total")[] | undefined;
|
|
27
|
+
currentPage?: import("vxe-pc-ui").VxePagerPropTypes.CurrentPage | undefined;
|
|
28
|
+
loading?: import("vxe-pc-ui").VxePagerPropTypes.Loading | undefined;
|
|
29
|
+
pageSize?: import("vxe-pc-ui").VxePagerPropTypes.PageSize | undefined;
|
|
30
|
+
total?: import("vxe-pc-ui").VxePagerPropTypes.Total | undefined;
|
|
31
|
+
pagerCount?: import("vxe-pc-ui").VxePagerPropTypes.PagerCount | undefined;
|
|
32
|
+
pageSizes?: (number | {
|
|
33
|
+
label?: number | string | undefined;
|
|
34
|
+
value?: number | string | undefined;
|
|
35
|
+
})[] | undefined;
|
|
36
|
+
align?: import("vxe-pc-ui").VxePagerPropTypes.Align | undefined;
|
|
37
|
+
border?: import("vxe-pc-ui").VxePagerPropTypes.Border | undefined;
|
|
38
|
+
background?: import("vxe-pc-ui").VxePagerPropTypes.Background | undefined;
|
|
39
|
+
perfect?: import("vxe-pc-ui").VxePagerPropTypes.Perfect | undefined;
|
|
40
|
+
autoHidden?: import("vxe-pc-ui").VxePagerPropTypes.AutoHidden | undefined;
|
|
41
|
+
transfer?: import("vxe-pc-ui").VxePagerPropTypes.Transfer | undefined;
|
|
42
|
+
className?: import("vxe-pc-ui").VxePagerPropTypes.ClassName | undefined;
|
|
43
|
+
pageSizePlacement?: import("vxe-pc-ui").VxePagerPropTypes.PageSizePlacement | undefined;
|
|
44
|
+
iconPrevPage?: import("vxe-pc-ui").VxePagerPropTypes.IconPrevPage | undefined;
|
|
45
|
+
iconJumpPrev?: import("vxe-pc-ui").VxePagerPropTypes.IconJumpPrev | undefined;
|
|
46
|
+
iconJumpNext?: import("vxe-pc-ui").VxePagerPropTypes.IconJumpNext | undefined;
|
|
47
|
+
iconNextPage?: import("vxe-pc-ui").VxePagerPropTypes.IconNextPage | undefined;
|
|
48
|
+
iconJumpMore?: import("vxe-pc-ui").VxePagerPropTypes.IconJumpMore | undefined;
|
|
49
|
+
iconHomePage?: import("vxe-pc-ui").VxePagerPropTypes.IconHomePage | undefined;
|
|
50
|
+
iconEndPage?: import("vxe-pc-ui").VxePagerPropTypes.IconEndPage | undefined;
|
|
51
|
+
}, VxeGridPropTypes.PagerConfig | {
|
|
52
|
+
enabled?: boolean | undefined;
|
|
53
|
+
slots?: {
|
|
54
|
+
left?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.LeftSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
55
|
+
right?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.RightSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
56
|
+
home?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.HomeSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
57
|
+
prevPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevPageSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
58
|
+
prevJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PrevJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
59
|
+
nextJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
60
|
+
nextPage?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NextPageSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
61
|
+
end?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.EndSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
62
|
+
number?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
63
|
+
numberJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.NumberJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
64
|
+
sizes?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.SizesSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
65
|
+
fullJump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
66
|
+
jump?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.FullJumpSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
67
|
+
pageCount?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.PageCountSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
68
|
+
total?: string | ((params: import("vxe-pc-ui").VxePagerSlotTypes.TotalSlotParams) => import('vxe-pc-ui').VxeComponentSlotType | import('vxe-pc-ui').VxeComponentSlotType[]) | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
size?: import("vxe-pc-ui").VxePagerPropTypes.Size | undefined;
|
|
71
|
+
layouts?: ("Number" | "Home" | "PrevJump" | "PrevPage" | "JumpNumber" | "NextPage" | "NextJump" | "End" | "Sizes" | "Jump" | "FullJump" | "PageCount" | "Total")[] | undefined;
|
|
72
|
+
currentPage?: import("vxe-pc-ui").VxePagerPropTypes.CurrentPage | undefined;
|
|
73
|
+
loading?: import("vxe-pc-ui").VxePagerPropTypes.Loading | undefined;
|
|
74
|
+
pageSize?: import("vxe-pc-ui").VxePagerPropTypes.PageSize | undefined;
|
|
75
|
+
total?: import("vxe-pc-ui").VxePagerPropTypes.Total | undefined;
|
|
76
|
+
pagerCount?: import("vxe-pc-ui").VxePagerPropTypes.PagerCount | undefined;
|
|
77
|
+
pageSizes?: (number | {
|
|
78
|
+
label?: number | string | undefined;
|
|
79
|
+
value?: number | string | undefined;
|
|
80
|
+
})[] | undefined;
|
|
81
|
+
align?: import("vxe-pc-ui").VxePagerPropTypes.Align | undefined;
|
|
82
|
+
border?: import("vxe-pc-ui").VxePagerPropTypes.Border | undefined;
|
|
83
|
+
background?: import("vxe-pc-ui").VxePagerPropTypes.Background | undefined;
|
|
84
|
+
perfect?: import("vxe-pc-ui").VxePagerPropTypes.Perfect | undefined;
|
|
85
|
+
autoHidden?: import("vxe-pc-ui").VxePagerPropTypes.AutoHidden | undefined;
|
|
86
|
+
transfer?: import("vxe-pc-ui").VxePagerPropTypes.Transfer | undefined;
|
|
87
|
+
className?: import("vxe-pc-ui").VxePagerPropTypes.ClassName | undefined;
|
|
88
|
+
pageSizePlacement?: import("vxe-pc-ui").VxePagerPropTypes.PageSizePlacement | undefined;
|
|
89
|
+
iconPrevPage?: import("vxe-pc-ui").VxePagerPropTypes.IconPrevPage | undefined;
|
|
90
|
+
iconJumpPrev?: import("vxe-pc-ui").VxePagerPropTypes.IconJumpPrev | undefined;
|
|
91
|
+
iconJumpNext?: import("vxe-pc-ui").VxePagerPropTypes.IconJumpNext | undefined;
|
|
92
|
+
iconNextPage?: import("vxe-pc-ui").VxePagerPropTypes.IconNextPage | undefined;
|
|
93
|
+
iconJumpMore?: import("vxe-pc-ui").VxePagerPropTypes.IconJumpMore | undefined;
|
|
94
|
+
iconHomePage?: import("vxe-pc-ui").VxePagerPropTypes.IconHomePage | undefined;
|
|
95
|
+
iconEndPage?: import("vxe-pc-ui").VxePagerPropTypes.IconEndPage | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
getPagination: () => VxeGridPropTypes.PagerConfig | undefined;
|
|
98
|
+
getPaginationInfo: ComputedRef<VxeGridPropTypes.PagerConfig | undefined>;
|
|
99
|
+
setPagination: (info: Partial<PaginationProps>) => void;
|
|
100
|
+
handlePageChange: (data: any) => void;
|
|
101
|
+
};
|
|
102
|
+
export {};
|
|
103
|
+
//# sourceMappingURL=usePagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/usePagination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAInD,OAAO,EAAY,KAAK,WAAW,EAAqB,MAAM,KAAK,CAAC;AAEpE,KAAK,eAAe,GAAG,gBAAgB,CAAC,WAAW,CAAC;AAEpD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAgCnF,OAAO,CAAC,eAAe,CAAC;;EA0BtD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { VxeGridDefines, VxeGridEvents, VxeGridInstance, VxeTableExtendCellAreaDefines } from 'vxe-table';
|
|
3
|
+
import { TtSelectRowKeysType, TtSelectRowsType, TtTableProps } from '../types/table';
|
|
4
|
+
import { Recordable } from '../../../../../../utils/src';
|
|
5
|
+
type EmitType = {
|
|
6
|
+
(e: "selection-change", data?: {
|
|
7
|
+
keys: TtSelectRowKeysType;
|
|
8
|
+
rows: TtSelectRowsType;
|
|
9
|
+
data?: Recordable;
|
|
10
|
+
}): void;
|
|
11
|
+
(e: "checkbox-change", data?: VxeGridDefines.CheckboxChangeEventParams): void;
|
|
12
|
+
(e: "checkbox-all", data?: VxeGridDefines.CheckboxAllEventParams): void;
|
|
13
|
+
(e: "checkbox-range-change", data?: VxeGridDefines.CheckboxRangeChangeEventParams): void;
|
|
14
|
+
(e: "radio-change", data?: VxeGridDefines.RadioChangeEventParams): void;
|
|
15
|
+
};
|
|
16
|
+
export declare function useRowSelection(propsRef: ComputedRef<TtTableProps>, emit: EmitType, xGrid: Ref<VxeGridInstance<Recordable>>): {
|
|
17
|
+
selectedKeys: Ref<any, any>;
|
|
18
|
+
selectedRows: Ref<any, any>;
|
|
19
|
+
setSelectedRowKeys: (rows: TtSelectRowsType, keys?: TtSelectRowKeysType) => Promise<void>;
|
|
20
|
+
onCellAreaSelectionEndSetCheckbox: (data: VxeTableExtendCellAreaDefines.CellAreaSelectionAllEndEventParams) => Promise<void>;
|
|
21
|
+
clearSelectedRowKeys: () => void;
|
|
22
|
+
onCheckboxChange: VxeGridEvents.CheckboxChange<any>;
|
|
23
|
+
onCheckboxAll: VxeGridEvents.CheckboxAll<any>;
|
|
24
|
+
getSelectRowKeys: () => any;
|
|
25
|
+
getSelectRows: () => TtSelectRowsType;
|
|
26
|
+
onCheckboxRangeChange: VxeGridEvents.CheckboxRangeChange<any>;
|
|
27
|
+
onRadioChange: (data: VxeGridDefines.RadioChangeEventParams) => void;
|
|
28
|
+
getCheckboxSelectedKeys: ComputedRef<(string | number)[]>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=useRowSelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRowSelection.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useRowSel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
|
+
import { VxeTablePropTypes } from 'vxe-table';
|
|
2
|
+
import { TtTableMethods, TtTableProps } from '../types/table';
|
|
3
|
+
import { TtTableFormProps, UseTtTableFormReturnType } from '../types/tableForm';
|
|
4
|
+
type Props = Partial<DynamicProps<TtTableProps>>;
|
|
5
|
+
export declare function useTtTable<K extends VxeTablePropTypes.Row>(tableProps?: Props): [(instance: TtTableMethods<K>, uuid: string) => void, TtTableMethods<K>];
|
|
6
|
+
export declare function useTtTableForm(tableFormProps?: Partial<TtTableFormProps>): UseTtTableFormReturnType;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=useTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqD,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACtG,OAAO,KAAK,EAAsD,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACvH,OAAO,KAAK,EAGV,gBAAgB,EAEhB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAiB5B,KAAK,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC;AAejD,wBAAgB,UAAU,CAAC,CAAC,SAAS,iBAAiB,CAAC,GAAG,EACxD,UAAU,CAAC,EAAE,KAAK,GACjB,CAAC,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAuK1E;AAED,wBAAgB,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,wBAAwB,CA2FnG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { VxeGridMethods } from 'vxe-table';
|
|
3
|
+
import { TtTableMethods, TtTableProps } from '../types/table';
|
|
4
|
+
import { TtTableRenderFormInstance } from '../types/tableForm';
|
|
5
|
+
type Instance = TtTableMethods & {
|
|
6
|
+
/** 表格容器DOM引用 */
|
|
7
|
+
wrapRef: Ref<Nullable<HTMLElement>>;
|
|
8
|
+
/** 获取表格绑定值(计算属性) */
|
|
9
|
+
getBindValues: ComputedRef<Recordable>;
|
|
10
|
+
/** 获取vxe-table实例方法 */
|
|
11
|
+
getTableInstance: () => VxeGridMethods;
|
|
12
|
+
};
|
|
13
|
+
/** 定义表格表单实例类型 */
|
|
14
|
+
type InstanceForm = {
|
|
15
|
+
/** 表单实例 */
|
|
16
|
+
formInstance: TtTableRenderFormInstance;
|
|
17
|
+
};
|
|
18
|
+
/** 定义返回的表格实例类型,调整了getBindValues的类型 */
|
|
19
|
+
type RetInstance = Omit<Instance, "getBindValues"> & {
|
|
20
|
+
getBindValues: ComputedRef<TtTableProps>;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 创建表格上下文
|
|
24
|
+
* @param instance 表格实例对象
|
|
25
|
+
*/
|
|
26
|
+
export declare function createTableContext(instance: Instance): void;
|
|
27
|
+
/**
|
|
28
|
+
* 使用表格上下文
|
|
29
|
+
* @returns 返回表格实例对象
|
|
30
|
+
*/
|
|
31
|
+
export declare function useTableContext(): RetInstance;
|
|
32
|
+
/**
|
|
33
|
+
* 创建表格表单上下文
|
|
34
|
+
* @template T 表单渲染类型,默认为'form'
|
|
35
|
+
* @param instance 表单实例对象
|
|
36
|
+
*/
|
|
37
|
+
export declare function createTableFormContext(instance: InstanceForm): void;
|
|
38
|
+
/**
|
|
39
|
+
* 使用表格表单上下文
|
|
40
|
+
* @returns 返回表单实例对象
|
|
41
|
+
*/
|
|
42
|
+
export declare function useTableFormContext(): InstanceForm;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=useTableContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableContext.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAQpE,KAAK,QAAQ,GAAG,cAAc,GAAG;IAC/B,gBAAgB;IAChB,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;IACpC,oBAAoB;IACpB,aAAa,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACvC,sBAAsB;IACtB,gBAAgB,EAAE,MAAM,cAAc,CAAC;CACxC,CAAC;AAEF,iBAAiB;AACjB,KAAK,YAAY,GAAG;IAClB,WAAW;IACX,YAAY,EAAE,yBAAyB,CAAC;CACzC,CAAC;AAEF,sCAAsC;AACtC,KAAK,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,eAAe,CAAC,GAAG;IACnD,aAAa,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,QAGpD;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,WAAW,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,QAE5D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,CAElD"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { VxeGridInstance, VxeTableDefines, VxeTablePropTypes } from 'vxe-table';
|
|
3
|
+
import { InsertReturnData, RowSelectionHandlers, TtTableExtendedTableApi, TtTableProps } from '../types/table';
|
|
4
|
+
export declare function useTableEvents(xGrid: Ref<VxeGridInstance | undefined>, tableState: any, emit: {
|
|
5
|
+
(e: "update:modelValue", data?: any): void;
|
|
6
|
+
}, tableApi: TtTableExtendedTableApi, propsRef: ComputedRef<TtTableProps>, rowSelection?: RowSelectionHandlers): {
|
|
7
|
+
/**
|
|
8
|
+
* 设置空数据展示的text
|
|
9
|
+
*/
|
|
10
|
+
setEmptyText: (text: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 加载数据
|
|
13
|
+
* @param data 数据
|
|
14
|
+
*/
|
|
15
|
+
loadData: (data: VxeTablePropTypes.Row[]) => Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* 加载数据并恢复到初始状态
|
|
18
|
+
* @param data 数据
|
|
19
|
+
*/
|
|
20
|
+
reloadData: (data: VxeTablePropTypes.Row[]) => Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* 重新加载列
|
|
23
|
+
* @param columns 列对象
|
|
24
|
+
*/
|
|
25
|
+
reloadColumn: (columns: (VxeTableDefines.ColumnOptions<any> | VxeTableDefines.ColumnInfo<any>)[]) => Promise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* 局部加载行数据并恢复到初始状态
|
|
28
|
+
* @param rows 行对象
|
|
29
|
+
* @param record 新数据
|
|
30
|
+
* @param field 指定字段名
|
|
31
|
+
*/
|
|
32
|
+
reloadRow: (rows: VxeTablePropTypes.Row | VxeTablePropTypes.Row[], record?: VxeTablePropTypes.Row, field?: string) => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* 手动清空单元格内容,如果不传参数,则清空整个表格内容,如果传了行则清空指定行内容,如果传了指定字段,则清空该字段内容
|
|
35
|
+
* @param rows 指定行
|
|
36
|
+
* @param field 字段名
|
|
37
|
+
*/
|
|
38
|
+
clearData: (rows: VxeTablePropTypes.Row | VxeTablePropTypes.Row[], field?: string) => Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* 重新懒加载展开行,并展开内容
|
|
41
|
+
* @param rows 指定行
|
|
42
|
+
*/
|
|
43
|
+
reloadRowExpand: (rows: VxeTablePropTypes.Row | VxeTablePropTypes.Row[]) => Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* 重新懒加载树节点,并展开该节点
|
|
46
|
+
* @param rows 指定行
|
|
47
|
+
*/
|
|
48
|
+
reloadTreeExpand: (rows: VxeTablePropTypes.Row | VxeTablePropTypes.Row[]) => Promise<any>;
|
|
49
|
+
/**
|
|
50
|
+
* @description: 插入行
|
|
51
|
+
* @param {VxeTablePropTypes.Row | VxeTablePropTypes.Row[]} records
|
|
52
|
+
* @return {Promise<InsertReturnData>}
|
|
53
|
+
*/
|
|
54
|
+
insert: (records: VxeTablePropTypes.Row | VxeTablePropTypes.Row[]) => Promise<InsertReturnData>;
|
|
55
|
+
/**
|
|
56
|
+
* @description: 插入指定行
|
|
57
|
+
* @param {VxeTablePropTypes.Row | VxeTablePropTypes.Row[]} records
|
|
58
|
+
* @param {*} row
|
|
59
|
+
* @return {Promise<InsertReturnData>}
|
|
60
|
+
*/
|
|
61
|
+
insertAt: (records: VxeTablePropTypes.Row | VxeTablePropTypes.Row[], row: any) => Promise<InsertReturnData>;
|
|
62
|
+
/**
|
|
63
|
+
* @description: 退出编辑并还原数据
|
|
64
|
+
* @param {VxeTablePropTypes.Row} row
|
|
65
|
+
*/
|
|
66
|
+
clearEditRevertData: (row: VxeTablePropTypes.Row) => Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* @description: 指定行激活编辑
|
|
69
|
+
* @param row 指定行
|
|
70
|
+
* @param fieldOrColumn 指定列
|
|
71
|
+
*/
|
|
72
|
+
setEditRow: (row: VxeTablePropTypes.Row, fieldOrColumn?: boolean | string | VxeTableDefines.ColumnInfo) => Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* @description: 指定单元格激活编辑
|
|
75
|
+
* @param row 指定行
|
|
76
|
+
* @param fieldOrColumn 指定列
|
|
77
|
+
*/
|
|
78
|
+
setEditCell: (row: VxeTablePropTypes.Row, fieldOrColumn: string | VxeTableDefines.ColumnInfo) => Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* @description: 删除行
|
|
81
|
+
* @param {any} row
|
|
82
|
+
* @return {*}
|
|
83
|
+
*/
|
|
84
|
+
remove: (row: VxeTablePropTypes.Row) => Promise<InsertReturnData>;
|
|
85
|
+
/**
|
|
86
|
+
* 删除复选框选中的行数据
|
|
87
|
+
*/
|
|
88
|
+
removeCheckboxRow: () => Promise<InsertReturnData>;
|
|
89
|
+
/**
|
|
90
|
+
* 删除单选框选中的行数据
|
|
91
|
+
*/
|
|
92
|
+
removeRadioRow: () => Promise<InsertReturnData>;
|
|
93
|
+
/**
|
|
94
|
+
* 删除当前行选中的行数据
|
|
95
|
+
*/
|
|
96
|
+
removeCurrentRow: () => Promise<InsertReturnData>;
|
|
97
|
+
/**
|
|
98
|
+
* 删除所有新增的临时数据
|
|
99
|
+
*/
|
|
100
|
+
removeInsertRow: () => Promise<InsertReturnData>;
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=useTableEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableEvent.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAIpH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,GAAG,CAAC,eAAe,GAAG,SAAS,CAAC,EACvC,UAAU,KAAA,EACV,IAAI,EAAE;IACJ,CAAC,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EA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AC,GAAG,KAAG,OAAO,CAAC,gBAAgB,CAAC;IAMpF;;OAEG;6BACoD,OAAO,CAAC,gBAAgB,CAAC;IAOhF;;OAEG;0BAC8C,OAAO,CAAC,gBAAgB,CAAC;IAQ1E;;OAEG;4BACkD,OAAO,CAAC,gBAAgB,CAAC;IAM9E;;OAEG;2BACgD,OAAO,CAAC,gBAAgB,CAAC;EAgI/E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { VxeGridPropTypes } from 'vxe-table';
|
|
3
|
+
import { FetchParams, TtTableProps } from '../types/table';
|
|
4
|
+
import { TtTableFormProps } from '../types/tableForm';
|
|
5
|
+
import { TtTableToolsProps } from '../types/tableTools';
|
|
6
|
+
export declare function useTableForm(propsRef: ComputedRef<TtTableFormProps>, fetch: (opt?: FetchParams | undefined) => Promise<void>, getLoading: ComputedRef<boolean | undefined> | undefined, getPagination: () => VxeGridPropTypes.PagerConfig | undefined, emit: {
|
|
7
|
+
(e: "update:table-data", data?: Recordable): void;
|
|
8
|
+
}): {
|
|
9
|
+
tableData: import('vue').Ref<any[], any[]>;
|
|
10
|
+
getFormV2Props: ComputedRef<any>;
|
|
11
|
+
handleSearchInfoChange: (info: Recordable) => void;
|
|
12
|
+
getTableProps: ComputedRef<Partial<TtTableProps>>;
|
|
13
|
+
getTableToolProps: ComputedRef<TtTableToolsProps>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useTableForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,WAAW,CAAC,gBAAgB,CAAC,EACvC,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,WAAW,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,EACvD,UAAU,EAAE,WAAW,CAAC,OAAO,GAAG,SAAS,CAAC,GAAG,SAAS,EACxD,aAAa,EAAE,MAAM,gBAAgB,CAAC,WAAW,GAAG,SAAS,EAC7D,IAAI,EAAE;IACJ,CAAC,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CACnD;;;mCAYqC,UAAU;;;EAoGjD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { TtTableMethods, TtTableProps } from '../types/table';
|
|
3
|
+
import { TtTableFormProps } from '../types/tableForm';
|
|
4
|
+
export declare function useTableFormEvent({ propsRef, reload, setTableProps, }: {
|
|
5
|
+
propsRef: ComputedRef<TtTableFormProps>;
|
|
6
|
+
reload: TtTableMethods["reload"];
|
|
7
|
+
setTableProps: TtTableMethods["setProps"];
|
|
8
|
+
}): {
|
|
9
|
+
onSetGridProps: (data: TtTableProps) => void;
|
|
10
|
+
onRefresh: () => Promise<void>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useTableFormEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableFormEvent.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableFormEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,MAAM,EAEN,aAAa,GAEd,EAAE;IACD,QAAQ,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IACxC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IACjC,aAAa,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CAC3C;2BAE+B,YAAY;;EAgC3C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TtTableProps } from '../types/table';
|
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* 计算表格高度的自定义hook
|
|
5
|
+
* @template T - 表格表单渲染类型,默认为'form'
|
|
6
|
+
* @param propsRef - 表格props的响应式引用
|
|
7
|
+
* @param wrapperRef - 表格容器元素的ref引用
|
|
8
|
+
* @param otherRefs - 其他需要计算高度的元素ref数组
|
|
9
|
+
* @returns 返回包含表格高度和观察器对象的对象
|
|
10
|
+
*/
|
|
11
|
+
export declare function useTableHeight(propsRef: ComputedRef<TtTableProps>, wrapperRef: Ref, otherRefs: Ref[]): {
|
|
12
|
+
tableHeight: ComputedRef<import("vxe-table").VxeTablePropTypes.Height | undefined>;
|
|
13
|
+
wrapperObserver: null;
|
|
14
|
+
orderObserver: null;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useTableHeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableHeight.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableHeight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAY,KAAK,WAAW,EAA0B,KAAK,GAAG,EAAc,MAAM,KAAK,CAAC;AAC/F;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;;;;EAwDpG"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { DefineSetupFnComponent } from 'vue';
|
|
2
|
+
import { TtTableExtendedTableApi, TtTableProps } from '../types/table';
|
|
3
|
+
import { TtTableExtendedTableFormApi, TtTableFormProps } from '../types/tableForm';
|
|
4
|
+
export type TtUseTableFormRenderReturnType = [DefineSetupFnComponent<TtTableFormProps>, TtTableExtendedTableFormApi];
|
|
5
|
+
/**
|
|
6
|
+
* 用于渲染表单和表格的 hooks。
|
|
7
|
+
*
|
|
8
|
+
* 返回 [FormTable 组件, TableFormApi API]。
|
|
9
|
+
*
|
|
10
|
+
* @param options 表格渲染配置项
|
|
11
|
+
* @returns [FormTable组件, TableFormApi API]
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // 基础用法
|
|
15
|
+
* // 1、tableApi.grid vxe-grid实例
|
|
16
|
+
* // 2、tableApi.tableApi TableApi类方法
|
|
17
|
+
* // 3、tableApi.formApi FormApi类方法
|
|
18
|
+
* const [FormTable, tableApi] = useTableFormRender({
|
|
19
|
+
* ...配置
|
|
20
|
+
* })
|
|
21
|
+
*
|
|
22
|
+
* // 在模板中使用
|
|
23
|
+
* <FormTable />
|
|
24
|
+
*/
|
|
25
|
+
export declare function useTableFormRender(options: TtTableFormProps): TtUseTableFormRenderReturnType;
|
|
26
|
+
/**
|
|
27
|
+
* 用于渲染表格的 hooks,返回 [TableRender 组件, 表格API]。
|
|
28
|
+
*
|
|
29
|
+
* @param options 表格渲染配置项
|
|
30
|
+
* @returns [TableRender组件, 表格API]
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* // 基础用法
|
|
34
|
+
* const [TableRender, tableApi] = useTableRender({
|
|
35
|
+
* columns: [...],
|
|
36
|
+
* data: [...],
|
|
37
|
+
* ...其它配置
|
|
38
|
+
* })
|
|
39
|
+
*
|
|
40
|
+
* // 在模板中使用
|
|
41
|
+
* <TableRender />
|
|
42
|
+
*/
|
|
43
|
+
export declare function useTableRender(options: TtTableProps): readonly [DefineSetupFnComponent<TtTableProps, {}, {}, {
|
|
44
|
+
title?: string;
|
|
45
|
+
showTitle?: boolean;
|
|
46
|
+
autoHeight?: boolean;
|
|
47
|
+
offsetHeight?: number;
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
loadingText?: string;
|
|
50
|
+
emptyText?: string;
|
|
51
|
+
noSearchText?: string;
|
|
52
|
+
emptyImageStyle?: import('vue').CSSProperties;
|
|
53
|
+
emptyImageStatus?: "no-data" | "no-search";
|
|
54
|
+
isHanderSubmit?: boolean;
|
|
55
|
+
modelValue?: Array<Recordable>;
|
|
56
|
+
columnsKey?: string;
|
|
57
|
+
useCache?: boolean;
|
|
58
|
+
formApi?: Partial<import('vben-core-form-ui').ExtendedFormApi>;
|
|
59
|
+
showSetting?: boolean;
|
|
60
|
+
showSetColumn?: boolean;
|
|
61
|
+
showFullScreen?: boolean;
|
|
62
|
+
fullscreen?: boolean;
|
|
63
|
+
leftSlotWidth?: number;
|
|
64
|
+
rightSlotWidth?: number;
|
|
65
|
+
dragIcon?: string;
|
|
66
|
+
showLineHeight?: boolean;
|
|
67
|
+
showRefresh?: boolean;
|
|
68
|
+
useHttpCache?: boolean;
|
|
69
|
+
useHttpCustomerCache?: boolean;
|
|
70
|
+
defaultDisplayFields?: string[];
|
|
71
|
+
getSyncSlotComponent?: (column: any, row: any, type: "default" | "edit") => import('vue').VNode | import('vue').VNode[] | string;
|
|
72
|
+
customizeColumn?: (column: import("vxe-table").VxeTableDefines.ColumnOptions) => import("vxe-table").VxeTableDefines.ColumnOptions;
|
|
73
|
+
clearTreeExpand?: boolean;
|
|
74
|
+
isI18n?: boolean;
|
|
75
|
+
isDataCloneDeep?: boolean;
|
|
76
|
+
useSearchForm?: boolean;
|
|
77
|
+
data?: import('vue').MaybeRef<any[]>;
|
|
78
|
+
columns?: import('vue').MaybeRef<import("vxe-table").VxeTableDefines.ColumnOptions[]>;
|
|
79
|
+
testId?: string;
|
|
80
|
+
toolTipErrorPlacement?: "top" | "bottom" | "left" | "right";
|
|
81
|
+
} & Omit<import('vxe-table').VxeGridProps<any>, "data" | "columns"> & import('../..').TtTablePagerProps & import('../..').TtTableColumnsProps & import('../..').TtTableFetchProps & import('../..').TtTableToolbarProps & {}, import('vue').PublicProps>, TtTableExtendedTableApi];
|
|
82
|
+
//# sourceMappingURL=useTableRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableRender.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableRender.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQxF,MAAM,MAAM,8BAA8B,GAAG,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,EAAE,2BAA2B,CAAC,CAAC;AACrH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,GAAG,8BAA8B,CAgB5F;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mRAmBnD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表格和表单插槽管理钩子函数
|
|
3
|
+
* 用于处理表格和表单的自定义插槽
|
|
4
|
+
* @returns 返回插槽相关方法和工具函数
|
|
5
|
+
*/
|
|
6
|
+
export declare function useTableSlot(): {
|
|
7
|
+
replaceTableSlotKey: (key: string | null) => string;
|
|
8
|
+
replaceFormSlotKey: (key: string | null) => string;
|
|
9
|
+
getTableSlotKeysFunc: (slots: import('vue').SlotsType) => (string | null)[];
|
|
10
|
+
getFormSlotKeysFunc: (slots: import('vue').SlotsType) => (string | null)[];
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useTableSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableSlot.d.ts","sourceRoot":"","sources":["../../../../../src/components/tt-table/src/hooks/useTableSlot.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,YAAY;;;;;EAW3B"}
|