3h1-ui 1.2.6 → 2.0.0
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/es/{ui/types/global.d.ts → global.d.ts} +102 -102
- package/es/{ui/types/index.d.ts → index.d.ts} +28 -28
- package/es/index.js +7751 -5410
- package/es/style.css +853 -625
- package/lib/global.d.ts +102 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.js +7718 -5380
- package/package.json +8 -6
- package/es/ui/index.d.ts +0 -20
- package/es/ui/src/Basic/index.d.ts +0 -4
- package/es/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
- package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
- package/es/ui/src/Button/index.d.ts +0 -5
- package/es/ui/src/Button/src/BasicButton.vue.d.ts +0 -2
- package/es/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
- package/es/ui/src/Button/src/props.d.ts +0 -37
- package/es/ui/src/ClickOutSide/index.d.ts +0 -2
- package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
- package/es/ui/src/Container/index.d.ts +0 -5
- package/es/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
- package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
- package/es/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
- package/es/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
- package/es/ui/src/Container/src/typing.d.ts +0 -15
- package/es/ui/src/ContextMenu/index.d.ts +0 -3
- package/es/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
- package/es/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
- package/es/ui/src/ContextMenu/src/typing.d.ts +0 -33
- package/es/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
- package/es/ui/src/CountDown/index.d.ts +0 -3
- package/es/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
- package/es/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
- package/es/ui/src/CountDown/src/useCountdown.d.ts +0 -9
- package/es/ui/src/CountTo/index.d.ts +0 -2
- package/es/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
- package/es/ui/src/Cropper/index.d.ts +0 -4
- package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
- package/es/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
- package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -73
- package/es/ui/src/Cropper/src/typing.d.ts +0 -6
- package/es/ui/src/Description/index.d.ts +0 -4
- package/es/ui/src/Description/src/Description.vue.d.ts +0 -101
- package/es/ui/src/Description/src/typing.d.ts +0 -39
- package/es/ui/src/Description/src/useDescription.d.ts +0 -2
- package/es/ui/src/Drawer/index.d.ts +0 -3
- package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
- package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
- package/es/ui/src/Drawer/src/props.d.ts +0 -115
- package/es/ui/src/Drawer/src/typing.d.ts +0 -177
- package/es/ui/src/Drawer/src/useDrawer.d.ts +0 -6
- package/es/ui/src/Dropdown/index.d.ts +0 -3
- package/es/ui/src/Dropdown/src/typing.d.ts +0 -9
- package/es/ui/src/Form/index.d.ts +0 -13
- package/es/ui/src/Form/src/BasicForm.vue.d.ts +0 -2
- package/es/ui/src/Form/src/componentMap.d.ts +0 -6
- package/es/ui/src/Form/src/components/ApiCascader.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiModalSelect/DeptTree.vue.d.ts +0 -130
- package/es/ui/src/Form/src/components/ApiModalSelect/Table.vue.d.ts +0 -11
- package/es/ui/src/Form/src/components/ApiRadioGroup.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiSelect.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiTransfer.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiTree.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/ApiTreeSelect.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/FormAction.vue.d.ts +0 -2
- package/es/ui/src/Form/src/components/FormItem.vue.d.ts +0 -72
- package/es/ui/src/Form/src/components/RadioButtonGroup.vue.d.ts +0 -35
- package/es/ui/src/Form/src/helper.d.ts +0 -14
- package/es/ui/src/Form/src/hooks/useAutoFocus.d.ts +0 -10
- package/es/ui/src/Form/src/hooks/useComponentRegister.d.ts +0 -3
- package/es/ui/src/Form/src/hooks/useForm.d.ts +0 -10
- package/es/ui/src/Form/src/hooks/useFormContext.d.ts +0 -8
- package/es/ui/src/Form/src/hooks/useFormEvents.d.ts +0 -28
- package/es/ui/src/Form/src/hooks/useFormValues.d.ts +0 -13
- package/es/ui/src/Form/src/hooks/useLabelWidth.d.ts +0 -318
- package/es/ui/src/Form/src/props.d.ts +0 -2
- package/es/ui/src/Form/src/types/hooks.d.ts +0 -6
- package/es/ui/src/Icon/data/icons.data.d.ts +0 -2
- package/es/ui/src/Icon/index.d.ts +0 -5
- package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
- package/es/ui/src/Loading/index.d.ts +0 -4
- package/es/ui/src/Loading/src/Loading.vue.d.ts +0 -57
- package/es/ui/src/Loading/src/createLoading.d.ts +0 -13
- package/es/ui/src/Loading/src/typing.d.ts +0 -9
- package/es/ui/src/Loading/src/useLoading.d.ts +0 -11
- package/es/ui/src/Modal/index.d.ts +0 -4
- package/es/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
- package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
- package/es/ui/src/Modal/src/components/Modal.d.ts +0 -10
- package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
- package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +0 -14
- package/es/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
- package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
- package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
- package/es/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
- package/es/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
- package/es/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
- package/es/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
- package/es/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
- package/es/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
- package/es/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
- package/es/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
- package/es/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
- package/es/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
- package/es/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
- package/es/ui/src/Modal/src/props.d.ts +0 -34
- package/es/ui/src/Modal/src/typing.d.ts +0 -173
- package/es/ui/src/Modal/src/utils/index.d.ts +0 -5
- package/es/ui/src/Modal/src/utils/is.d.ts +0 -13
- package/es/ui/src/Modal/src/utils/log.d.ts +0 -2
- package/es/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
- package/es/ui/src/Page/index.d.ts +0 -4
- package/es/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
- package/es/ui/src/Scrollbar/index.d.ts +0 -6
- package/es/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
- package/es/ui/src/Scrollbar/src/bar.d.ts +0 -14
- package/es/ui/src/Scrollbar/src/types.d.ts +0 -18
- package/es/ui/src/Scrollbar/src/util.d.ts +0 -8
- package/es/ui/src/StrengthMeter/index.d.ts +0 -2
- package/es/ui/src/Table/index.d.ts +0 -11
- package/es/ui/src/Table/src/BasicTable.vue.d.ts +0 -2
- package/es/ui/src/Table/src/componentMap.d.ts +0 -6
- package/es/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
- package/es/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
- package/es/ui/src/Table/src/components/TableAction.vue.d.ts +0 -2
- package/es/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
- package/es/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
- package/es/ui/src/Table/src/components/editable/helper.d.ts +0 -5
- package/es/ui/src/Table/src/components/editable/index.d.ts +0 -22
- package/es/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
- package/es/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
- package/es/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
- package/es/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
- package/es/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
- package/es/ui/src/Table/src/const.d.ts +0 -22
- package/es/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
- package/es/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
- package/es/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
- package/es/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
- package/es/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
- package/es/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
- package/es/ui/src/Table/src/hooks/useTable.d.ts +0 -17
- package/es/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
- package/es/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
- package/es/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
- package/es/ui/src/Table/src/hooks/useTableForm.d.ts +0 -8
- package/es/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
- package/es/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
- package/es/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
- package/es/ui/src/Table/src/props.d.ts +0 -2
- package/es/ui/src/Table/src/types/componentType.d.ts +0 -1
- package/es/ui/src/Table/src/types/pagination.d.ts +0 -93
- package/es/ui/src/Table/src/types/table.d.ts +0 -372
- package/es/ui/src/Table/src/types/tableAction.d.ts +0 -28
- package/es/ui/src/Transition/index.d.ts +0 -368
- package/es/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
- package/es/ui/src/Transition/src/CreateTransition.d.ts +0 -47
- package/es/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
- package/es/ui/src/Tree/index.d.ts +0 -12
- package/es/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
- package/es/ui/src/Tree/src/TreeIcon.d.ts +0 -2
- package/es/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
- package/es/ui/src/Tree/src/types/tree.d.ts +0 -105
- package/es/ui/src/Tree/style/index.d.ts +0 -0
- package/es/ui/src/directives/clickOutside.d.ts +0 -3
- package/es/ui/src/directives/index.d.ts +0 -1
- package/es/ui/src/enums/sizeEnum.d.ts +0 -11
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import Pagination from 'ant-design-vue/lib/pagination';
|
|
2
|
-
import { VNodeChild } from 'vue';
|
|
3
|
-
interface PaginationRenderProps {
|
|
4
|
-
page: number;
|
|
5
|
-
type: 'page' | 'prev' | 'next';
|
|
6
|
-
originalElement: any;
|
|
7
|
-
}
|
|
8
|
-
declare type PaginationPositon = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
9
|
-
export declare class PaginationConfig extends Pagination {
|
|
10
|
-
position?: PaginationPositon[];
|
|
11
|
-
}
|
|
12
|
-
export interface PaginationProps {
|
|
13
|
-
/**
|
|
14
|
-
* total number of data items
|
|
15
|
-
* @default 0
|
|
16
|
-
* @type number
|
|
17
|
-
*/
|
|
18
|
-
total?: number;
|
|
19
|
-
/**
|
|
20
|
-
* default initial page number
|
|
21
|
-
* @default 1
|
|
22
|
-
* @type number
|
|
23
|
-
*/
|
|
24
|
-
defaultCurrent?: number;
|
|
25
|
-
/**
|
|
26
|
-
* current page number
|
|
27
|
-
* @type number
|
|
28
|
-
*/
|
|
29
|
-
current?: number;
|
|
30
|
-
/**
|
|
31
|
-
* default number of data items per page
|
|
32
|
-
* @default 10
|
|
33
|
-
* @type number
|
|
34
|
-
*/
|
|
35
|
-
defaultPageSize?: number;
|
|
36
|
-
/**
|
|
37
|
-
* number of data items per page
|
|
38
|
-
* @type number
|
|
39
|
-
*/
|
|
40
|
-
pageSize?: number;
|
|
41
|
-
/**
|
|
42
|
-
* Whether to hide pager on single page
|
|
43
|
-
* @default false
|
|
44
|
-
* @type boolean
|
|
45
|
-
*/
|
|
46
|
-
hideOnSinglePage?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* determine whether pageSize can be changed
|
|
49
|
-
* @default false
|
|
50
|
-
* @type boolean
|
|
51
|
-
*/
|
|
52
|
-
showSizeChanger?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* specify the sizeChanger options
|
|
55
|
-
* @default ['10', '20', '30', '40']
|
|
56
|
-
* @type string[]
|
|
57
|
-
*/
|
|
58
|
-
pageSizeOptions?: string[];
|
|
59
|
-
/**
|
|
60
|
-
* determine whether you can jump to pages directly
|
|
61
|
-
* @default false
|
|
62
|
-
* @type boolean
|
|
63
|
-
*/
|
|
64
|
-
showQuickJumper?: boolean | object;
|
|
65
|
-
/**
|
|
66
|
-
* to display the total number and range
|
|
67
|
-
* @type Function
|
|
68
|
-
*/
|
|
69
|
-
showTotal?: (total: number, range: [number, number]) => any;
|
|
70
|
-
/**
|
|
71
|
-
* specify the size of Pagination, can be set to small
|
|
72
|
-
* @default ''
|
|
73
|
-
* @type string
|
|
74
|
-
*/
|
|
75
|
-
size?: string;
|
|
76
|
-
/**
|
|
77
|
-
* whether to setting simple mode
|
|
78
|
-
* @type boolean
|
|
79
|
-
*/
|
|
80
|
-
simple?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* to customize item innerHTML
|
|
83
|
-
* @type Function
|
|
84
|
-
*/
|
|
85
|
-
itemRender?: (props: PaginationRenderProps) => VNodeChild | JSX.Element;
|
|
86
|
-
/**
|
|
87
|
-
* specify the position of Pagination
|
|
88
|
-
* @default ['bottomRight']
|
|
89
|
-
* @type string[]
|
|
90
|
-
*/
|
|
91
|
-
position?: PaginationPositon[];
|
|
92
|
-
}
|
|
93
|
-
export {};
|
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
import type { VNodeChild } from 'vue';
|
|
2
|
-
import type { PaginationProps } from './pagination';
|
|
3
|
-
import type { FormProps } from '../../../Form';
|
|
4
|
-
import type { TableRowSelection as ITableRowSelection } from 'ant-design-vue/lib/table/interface';
|
|
5
|
-
import type { ColumnProps } from 'ant-design-vue/lib/table';
|
|
6
|
-
import { ComponentType } from './componentType';
|
|
7
|
-
import { VueNode } from '@shy-plugins/utils';
|
|
8
|
-
declare enum RoleEnum {
|
|
9
|
-
SUPER = "super",
|
|
10
|
-
TEST = "test"
|
|
11
|
-
}
|
|
12
|
-
export declare type SortOrder = 'ascend' | 'descend';
|
|
13
|
-
export interface TableCurrentDataSource<T = Recordable> {
|
|
14
|
-
currentDataSource: T[];
|
|
15
|
-
}
|
|
16
|
-
export interface TableRowSelection<T = any> extends ITableRowSelection {
|
|
17
|
-
/**
|
|
18
|
-
* Callback executed when selected rows change
|
|
19
|
-
* @type Function
|
|
20
|
-
*/
|
|
21
|
-
onChange?: (selectedRowKeys: string[] | number[], selectedRows: T[]) => any;
|
|
22
|
-
/**
|
|
23
|
-
* Callback executed when select/deselect one row
|
|
24
|
-
* @type Function
|
|
25
|
-
*/
|
|
26
|
-
onSelect?: (record: T, selected: boolean, selectedRows: Object[], nativeEvent: Event) => any;
|
|
27
|
-
/**
|
|
28
|
-
* Callback executed when select/deselect all rows
|
|
29
|
-
* @type Function
|
|
30
|
-
*/
|
|
31
|
-
onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => any;
|
|
32
|
-
/**
|
|
33
|
-
* Callback executed when row selection is inverted
|
|
34
|
-
* @type Function
|
|
35
|
-
*/
|
|
36
|
-
onSelectInvert?: (selectedRows: string[] | number[]) => any;
|
|
37
|
-
}
|
|
38
|
-
export interface TableCustomRecord<T> {
|
|
39
|
-
record?: T;
|
|
40
|
-
index?: number;
|
|
41
|
-
}
|
|
42
|
-
export interface ExpandedRowRenderRecord<T> extends TableCustomRecord<T> {
|
|
43
|
-
indent?: number;
|
|
44
|
-
expanded?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface ColumnFilterItem {
|
|
47
|
-
text?: string;
|
|
48
|
-
value?: string;
|
|
49
|
-
children?: any;
|
|
50
|
-
}
|
|
51
|
-
export interface TableCustomRecord<T = Recordable> {
|
|
52
|
-
record?: T;
|
|
53
|
-
index?: number;
|
|
54
|
-
}
|
|
55
|
-
export interface SorterResult {
|
|
56
|
-
column: ColumnProps;
|
|
57
|
-
order: SortOrder;
|
|
58
|
-
field: string;
|
|
59
|
-
columnKey: string;
|
|
60
|
-
}
|
|
61
|
-
export interface FetchParams {
|
|
62
|
-
searchInfo?: Recordable;
|
|
63
|
-
page?: number;
|
|
64
|
-
sortInfo?: Recordable;
|
|
65
|
-
filterInfo?: Recordable;
|
|
66
|
-
}
|
|
67
|
-
export interface GetColumnsParams {
|
|
68
|
-
ignoreIndex?: boolean;
|
|
69
|
-
ignoreAction?: boolean;
|
|
70
|
-
sort?: boolean;
|
|
71
|
-
}
|
|
72
|
-
export declare type SizeType = 'default' | 'middle' | 'small' | 'large';
|
|
73
|
-
export interface TableActionType {
|
|
74
|
-
reload: (opt?: FetchParams) => Promise<void>;
|
|
75
|
-
setSelectedRows: (rows: Recordable[]) => void;
|
|
76
|
-
getSelectRows: <T = Recordable>() => T[];
|
|
77
|
-
clearSelectedRowKeys: () => void;
|
|
78
|
-
expandAll: () => void;
|
|
79
|
-
expandRows: (keys: string[] | number[]) => void;
|
|
80
|
-
collapseAll: () => void;
|
|
81
|
-
scrollTo: (pos: string) => void;
|
|
82
|
-
getSelectRowKeys: () => string[];
|
|
83
|
-
deleteSelectRowByKey: (key: string) => void;
|
|
84
|
-
setPagination: (info: Partial<PaginationProps>) => void;
|
|
85
|
-
setTableData: <T = Recordable>(values: T[]) => void;
|
|
86
|
-
updateTableDataRecord: (rowKey: string | number, record: Recordable) => Recordable | void;
|
|
87
|
-
deleteTableDataRecord: (rowKey: string | number | string[] | number[]) => void;
|
|
88
|
-
insertTableDataRecord: (record: Recordable, index?: number) => Recordable | void;
|
|
89
|
-
findTableDataRecord: (rowKey: string | number) => Recordable | void;
|
|
90
|
-
getColumns: (opt?: GetColumnsParams) => BasicColumn[];
|
|
91
|
-
setColumns: (columns: BasicColumn[] | string[]) => void;
|
|
92
|
-
getDataSource: <T = Recordable>() => T[];
|
|
93
|
-
getRawDataSource: <T = Recordable>() => T;
|
|
94
|
-
setLoading: (loading: boolean) => void;
|
|
95
|
-
setProps: (props: Partial<BasicTableProps>) => void;
|
|
96
|
-
redoHeight: () => void;
|
|
97
|
-
setSelectedRowKeys: (rowKeys: string[] | number[]) => void;
|
|
98
|
-
getPaginationRef: () => PaginationProps | boolean;
|
|
99
|
-
getSize: () => SizeType;
|
|
100
|
-
getRowSelection: () => TableRowSelection<Recordable>;
|
|
101
|
-
getCacheColumns: () => BasicColumn[];
|
|
102
|
-
emit?: EmitType;
|
|
103
|
-
updateTableData: (index: number, key: string, value: any) => Recordable;
|
|
104
|
-
setShowPagination: (show: boolean) => Promise<void>;
|
|
105
|
-
getShowPagination: () => boolean;
|
|
106
|
-
setCacheColumnsByField?: (dataIndex: string | undefined, value: BasicColumn) => void;
|
|
107
|
-
}
|
|
108
|
-
export interface FetchSetting {
|
|
109
|
-
pageField: string;
|
|
110
|
-
sizeField: string;
|
|
111
|
-
listField: string;
|
|
112
|
-
totalField: string;
|
|
113
|
-
}
|
|
114
|
-
export interface TableSetting {
|
|
115
|
-
redo?: boolean;
|
|
116
|
-
size?: boolean;
|
|
117
|
-
setting?: boolean;
|
|
118
|
-
fullScreen?: boolean;
|
|
119
|
-
}
|
|
120
|
-
export interface BasicTableProps<T = any> {
|
|
121
|
-
clickToRowSelect?: boolean;
|
|
122
|
-
isTreeTable?: boolean;
|
|
123
|
-
sortFn?: (sortInfo: SorterResult) => any;
|
|
124
|
-
filterFn?: (data: Partial<Recordable<string[]>>) => any;
|
|
125
|
-
inset?: boolean;
|
|
126
|
-
showTableSetting?: boolean;
|
|
127
|
-
tableSetting?: TableSetting;
|
|
128
|
-
striped?: boolean;
|
|
129
|
-
autoCreateKey?: boolean;
|
|
130
|
-
summaryFunc?: (...arg: any) => Recordable[];
|
|
131
|
-
summaryData?: Recordable[];
|
|
132
|
-
showSummary?: boolean;
|
|
133
|
-
canColDrag?: boolean;
|
|
134
|
-
api?: (...arg: any) => Promise<any>;
|
|
135
|
-
beforeFetch?: Fn;
|
|
136
|
-
afterFetch?: Fn;
|
|
137
|
-
handleSearchInfoFn?: Fn;
|
|
138
|
-
fetchSetting?: Partial<FetchSetting>;
|
|
139
|
-
immediate?: boolean;
|
|
140
|
-
emptyDataIsShowTable?: boolean;
|
|
141
|
-
searchInfo?: Recordable;
|
|
142
|
-
defSort?: Recordable;
|
|
143
|
-
useSearchForm?: boolean;
|
|
144
|
-
formConfig?: Partial<FormProps>;
|
|
145
|
-
columns: BasicColumn[];
|
|
146
|
-
showIndexColumn?: boolean;
|
|
147
|
-
indexColumnProps?: BasicColumn;
|
|
148
|
-
actionColumn?: BasicColumn;
|
|
149
|
-
ellipsis?: boolean;
|
|
150
|
-
isCanResizeParent?: boolean;
|
|
151
|
-
canResize?: boolean;
|
|
152
|
-
resizeHeightOffset?: number;
|
|
153
|
-
clearSelectOnPageChange?: boolean;
|
|
154
|
-
rowKey?: string | ((record: Recordable) => string);
|
|
155
|
-
dataSource?: Recordable[];
|
|
156
|
-
titleHelpMessage?: string | string[];
|
|
157
|
-
maxHeight?: number;
|
|
158
|
-
bordered?: boolean;
|
|
159
|
-
pagination?: PaginationProps | boolean;
|
|
160
|
-
loading?: boolean;
|
|
161
|
-
/**
|
|
162
|
-
* The column contains children to display
|
|
163
|
-
* @default 'children'
|
|
164
|
-
* @type string | string[]
|
|
165
|
-
*/
|
|
166
|
-
childrenColumnName?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Override default table elements
|
|
169
|
-
* @type object
|
|
170
|
-
*/
|
|
171
|
-
components?: object;
|
|
172
|
-
/**
|
|
173
|
-
* Expand all rows initially
|
|
174
|
-
* @default false
|
|
175
|
-
* @type boolean
|
|
176
|
-
*/
|
|
177
|
-
defaultExpandAllRows?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Initial expanded row keys
|
|
180
|
-
* @type string[]
|
|
181
|
-
*/
|
|
182
|
-
defaultExpandedRowKeys?: string[];
|
|
183
|
-
/**
|
|
184
|
-
* Current expanded row keys
|
|
185
|
-
* @type string[]
|
|
186
|
-
*/
|
|
187
|
-
expandedRowKeys?: string[];
|
|
188
|
-
/**
|
|
189
|
-
* Expanded container render for each row
|
|
190
|
-
* @type Function
|
|
191
|
-
*/
|
|
192
|
-
expandedRowRender?: (record?: ExpandedRowRenderRecord<T>) => VNodeChild | JSX.Element;
|
|
193
|
-
/**
|
|
194
|
-
* Customize row expand Icon.
|
|
195
|
-
* @type Function | VNodeChild
|
|
196
|
-
*/
|
|
197
|
-
expandIcon?: Function | VNodeChild | JSX.Element;
|
|
198
|
-
/**
|
|
199
|
-
* Whether to expand row by clicking anywhere in the whole row
|
|
200
|
-
* @default false
|
|
201
|
-
* @type boolean
|
|
202
|
-
*/
|
|
203
|
-
expandRowByClick?: boolean;
|
|
204
|
-
/**
|
|
205
|
-
* The index of `expandIcon` which column will be inserted when `expandIconAsCell` is false. default 0
|
|
206
|
-
*/
|
|
207
|
-
expandIconColumnIndex?: number;
|
|
208
|
-
/**
|
|
209
|
-
* Table footer renderer
|
|
210
|
-
* @type Function | VNodeChild
|
|
211
|
-
*/
|
|
212
|
-
footer?: Function | VNodeChild | JSX.Element;
|
|
213
|
-
/**
|
|
214
|
-
* Indent size in pixels of tree data
|
|
215
|
-
* @default 15
|
|
216
|
-
* @type number
|
|
217
|
-
*/
|
|
218
|
-
indentSize?: number;
|
|
219
|
-
/**
|
|
220
|
-
* i18n text including filter, sort, empty text, etc
|
|
221
|
-
* @default { filterConfirm: 'Ok', filterReset: 'Reset', emptyText: 'No Data' }
|
|
222
|
-
* @type object
|
|
223
|
-
*/
|
|
224
|
-
locale?: object;
|
|
225
|
-
/**
|
|
226
|
-
* Row's className
|
|
227
|
-
* @type Function
|
|
228
|
-
*/
|
|
229
|
-
rowClassName?: (record: TableCustomRecord<T>, index: number) => string;
|
|
230
|
-
/**
|
|
231
|
-
* Row selection config
|
|
232
|
-
* @type object
|
|
233
|
-
*/
|
|
234
|
-
rowSelection?: TableRowSelection;
|
|
235
|
-
/**
|
|
236
|
-
* Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.
|
|
237
|
-
* It is recommended to set a number for x, if you want to set it to true,
|
|
238
|
-
* you need to add style .ant-table td { white-space: nowrap; }.
|
|
239
|
-
* @type object
|
|
240
|
-
*/
|
|
241
|
-
scroll?: {
|
|
242
|
-
x?: number | true;
|
|
243
|
-
y?: number;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Whether to show table header
|
|
247
|
-
* @default true
|
|
248
|
-
* @type boolean
|
|
249
|
-
*/
|
|
250
|
-
showHeader?: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* Size of table
|
|
253
|
-
* @default 'default'
|
|
254
|
-
* @type string
|
|
255
|
-
*/
|
|
256
|
-
size?: SizeType;
|
|
257
|
-
/**
|
|
258
|
-
* Table title renderer
|
|
259
|
-
* @type Function | ScopedSlot
|
|
260
|
-
*/
|
|
261
|
-
title?: VNodeChild | JSX.Element | string | ((data: Recordable) => string);
|
|
262
|
-
/**
|
|
263
|
-
* Set props on per header row
|
|
264
|
-
* @type Function
|
|
265
|
-
*/
|
|
266
|
-
customHeaderRow?: (column: ColumnProps, index: number) => object;
|
|
267
|
-
/**
|
|
268
|
-
* Set props on per row
|
|
269
|
-
* @type Function
|
|
270
|
-
*/
|
|
271
|
-
customRow?: (record: T, index: number) => object;
|
|
272
|
-
/**
|
|
273
|
-
* `table-layout` attribute of table element
|
|
274
|
-
* `fixed` when header/columns are fixed, or using `column.ellipsis`
|
|
275
|
-
*
|
|
276
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout
|
|
277
|
-
* @version 1.5.0
|
|
278
|
-
*/
|
|
279
|
-
tableLayout?: 'auto' | 'fixed' | string;
|
|
280
|
-
/**
|
|
281
|
-
* the render container of dropdowns in table
|
|
282
|
-
* @param triggerNode
|
|
283
|
-
* @version 1.5.0
|
|
284
|
-
*/
|
|
285
|
-
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
|
|
286
|
-
/**
|
|
287
|
-
* Data can be changed again before rendering.
|
|
288
|
-
* The default configuration of general user empty data.
|
|
289
|
-
* You can configured globally through [ConfigProvider](https://antdv.com/components/config-provider-cn/)
|
|
290
|
-
*
|
|
291
|
-
* @version 1.5.4
|
|
292
|
-
*/
|
|
293
|
-
transformCellText?: Function;
|
|
294
|
-
/**
|
|
295
|
-
* Callback executed before editable cell submit value, not for row-editor
|
|
296
|
-
*
|
|
297
|
-
* The cell will not submit data while callback return false
|
|
298
|
-
*/
|
|
299
|
-
beforeEditSubmit?: (data: {
|
|
300
|
-
record: Recordable;
|
|
301
|
-
index: number;
|
|
302
|
-
key: string | number;
|
|
303
|
-
value: any;
|
|
304
|
-
}) => Promise<any>;
|
|
305
|
-
/**
|
|
306
|
-
* Callback executed when pagination, filters or sorter is changed
|
|
307
|
-
* @param pagination
|
|
308
|
-
* @param filters
|
|
309
|
-
* @param sorter
|
|
310
|
-
* @param currentDataSource
|
|
311
|
-
*/
|
|
312
|
-
onChange?: (pagination: any, filters: any, sorter: any, extra: any) => void;
|
|
313
|
-
/**
|
|
314
|
-
* Callback executed when the row expand icon is clicked
|
|
315
|
-
*
|
|
316
|
-
* @param expanded
|
|
317
|
-
* @param record
|
|
318
|
-
*/
|
|
319
|
-
onExpand?: (expande: boolean, record: T) => void;
|
|
320
|
-
/**
|
|
321
|
-
* Callback executed when the expanded rows change
|
|
322
|
-
* @param expandedRows
|
|
323
|
-
*/
|
|
324
|
-
onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
|
|
325
|
-
onColumnsChange?: (data: ColumnChangeParam[]) => void;
|
|
326
|
-
}
|
|
327
|
-
export declare type CellFormat = string | ((text: string, record: Recordable, index: number) => string | number) | Map<string | number, any>;
|
|
328
|
-
export interface BasicColumn extends ColumnProps<Recordable> {
|
|
329
|
-
children?: BasicColumn[];
|
|
330
|
-
filters?: {
|
|
331
|
-
text: string;
|
|
332
|
-
value: string;
|
|
333
|
-
children?: unknown[] | (((props: Record<string, unknown>) => unknown[]) & (() => unknown[]) & (() => unknown[]));
|
|
334
|
-
}[];
|
|
335
|
-
flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';
|
|
336
|
-
customTitle?: VueNode;
|
|
337
|
-
slots?: Recordable;
|
|
338
|
-
defaultHidden?: boolean;
|
|
339
|
-
helpMessage?: string | string[];
|
|
340
|
-
format?: CellFormat;
|
|
341
|
-
edit?: boolean;
|
|
342
|
-
editRow?: boolean;
|
|
343
|
-
editable?: boolean;
|
|
344
|
-
editComponent?: ComponentType;
|
|
345
|
-
editComponentProps?: ((opt: {
|
|
346
|
-
text: string | number | boolean | Recordable;
|
|
347
|
-
record: Recordable;
|
|
348
|
-
column: BasicColumn;
|
|
349
|
-
index: number;
|
|
350
|
-
}) => Recordable) | Recordable;
|
|
351
|
-
editRule?: boolean | ((text: string, record: Recordable) => Promise<string>);
|
|
352
|
-
editValueMap?: (value: any) => string;
|
|
353
|
-
onEditRow?: () => void;
|
|
354
|
-
auth?: RoleEnum | RoleEnum[] | string | string[];
|
|
355
|
-
ifShow?: boolean | ((column: BasicColumn) => boolean);
|
|
356
|
-
editRender?: (opt: {
|
|
357
|
-
text: string | number | boolean | Recordable;
|
|
358
|
-
record: Recordable;
|
|
359
|
-
column: BasicColumn;
|
|
360
|
-
index: number;
|
|
361
|
-
}) => VNodeChild | JSX.Element;
|
|
362
|
-
editDynamicDisabled?: boolean | ((record: Recordable) => boolean);
|
|
363
|
-
}
|
|
364
|
-
export declare type ColumnChangeParam = {
|
|
365
|
-
dataIndex: string;
|
|
366
|
-
fixed: boolean | 'left' | 'right' | undefined;
|
|
367
|
-
visible: boolean;
|
|
368
|
-
};
|
|
369
|
-
export interface InnerHandlers {
|
|
370
|
-
onColumnsChange: (data: ColumnChangeParam[]) => void;
|
|
371
|
-
}
|
|
372
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes';
|
|
2
|
-
import { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip';
|
|
3
|
-
declare enum RoleEnum {
|
|
4
|
-
SUPER = "super",
|
|
5
|
-
TEST = "test"
|
|
6
|
-
}
|
|
7
|
-
export interface ActionItem extends ButtonProps {
|
|
8
|
-
onClick?: Fn;
|
|
9
|
-
label?: string;
|
|
10
|
-
color?: 'success' | 'error' | 'warning';
|
|
11
|
-
icon?: string;
|
|
12
|
-
popConfirm?: PopConfirm;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
divider?: boolean;
|
|
15
|
-
auth?: RoleEnum | RoleEnum[] | string | string[];
|
|
16
|
-
ifShow?: boolean | ((action: ActionItem) => boolean);
|
|
17
|
-
tooltip?: string | TooltipProps;
|
|
18
|
-
}
|
|
19
|
-
export interface PopConfirm {
|
|
20
|
-
title: string;
|
|
21
|
-
okText?: string;
|
|
22
|
-
cancelText?: string;
|
|
23
|
-
confirm: Fn;
|
|
24
|
-
cancel?: Fn;
|
|
25
|
-
icon?: string;
|
|
26
|
-
placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' | 'bottomLeft' | 'bottomRight';
|
|
27
|
-
}
|
|
28
|
-
export {};
|