3h1-ui 1.2.0 → 1.2.2
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/index.js +7 -9
- package/es/ui/src/Button/index.d.ts +1 -48
- package/es/ui/src/Cropper/src/CopperModal.vue.d.ts +1 -1
- package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +3 -55
- package/es/ui/src/Drawer/index.d.ts +0 -1
- package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +1 -1
- package/es/ui/src/Modal/index.d.ts +4 -0
- package/es/ui/src/Modal/src/components/Modal.d.ts +10 -0
- package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +1 -1
- package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +14 -0
- package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +1 -1
- package/es/ui/src/Modal/src/props.d.ts +34 -0
- package/es/ui/src/Table/src/props.d.ts +2 -0
- package/lib/index.js +5 -7
- package/package.json +2 -2
- package/lib/ui/index.d.ts +0 -20
- package/lib/ui/src/Basic/index.d.ts +0 -4
- package/lib/ui/src/Basic/src/BasicHelp.vue.d.ts +0 -99
- package/lib/ui/src/Basic/src/BasicTitle.vue.d.ts +0 -117
- package/lib/ui/src/Button/index.d.ts +0 -51
- package/lib/ui/src/Button/src/PopConfirmButton.vue.d.ts +0 -24
- package/lib/ui/src/Button/src/props.d.ts +0 -37
- package/lib/ui/src/ClickOutSide/index.d.ts +0 -2
- package/lib/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -8
- package/lib/ui/src/Container/index.d.ts +0 -5
- package/lib/ui/src/Container/src/LazyContainer.vue.d.ts +0 -121
- package/lib/ui/src/Container/src/ScrollContainer.vue.d.ts +0 -9
- package/lib/ui/src/Container/src/collapse/CollapseContainer.vue.d.ts +0 -553
- package/lib/ui/src/Container/src/collapse/CollapseHeader.vue.d.ts +0 -42
- package/lib/ui/src/Container/src/typing.d.ts +0 -15
- package/lib/ui/src/ContextMenu/index.d.ts +0 -3
- package/lib/ui/src/ContextMenu/src/ContextMenu.vue.d.ts +0 -64
- package/lib/ui/src/ContextMenu/src/createContextMenu.d.ts +0 -3
- package/lib/ui/src/ContextMenu/src/typing.d.ts +0 -33
- package/lib/ui/src/ContextMenu/src/useContextMenu.d.ts +0 -3
- package/lib/ui/src/CountDown/index.d.ts +0 -3
- package/lib/ui/src/CountDown/src/CountButton.vue.d.ts +0 -35
- package/lib/ui/src/CountDown/src/CountdownInput.vue.d.ts +0 -41
- package/lib/ui/src/CountDown/src/useCountdown.d.ts +0 -9
- package/lib/ui/src/CountTo/index.d.ts +0 -2
- package/lib/ui/src/CountTo/src/CountTo.vue.d.ts +0 -137
- package/lib/ui/src/Cropper/index.d.ts +0 -4
- package/lib/ui/src/Cropper/src/CopperModal.vue.d.ts +0 -39
- package/lib/ui/src/Cropper/src/Cropper.vue.d.ts +0 -87
- package/lib/ui/src/Cropper/src/CropperAvatar.vue.d.ts +0 -125
- package/lib/ui/src/Cropper/src/typing.d.ts +0 -6
- package/lib/ui/src/Description/index.d.ts +0 -4
- package/lib/ui/src/Description/src/Description.vue.d.ts +0 -101
- package/lib/ui/src/Description/src/typing.d.ts +0 -39
- package/lib/ui/src/Description/src/useDescription.d.ts +0 -2
- package/lib/ui/src/Drawer/index.d.ts +0 -4
- package/lib/ui/src/Drawer/src/BasicDrawer.vue.d.ts +0 -170
- package/lib/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +0 -95
- package/lib/ui/src/Drawer/src/props.d.ts +0 -115
- package/lib/ui/src/Drawer/src/typing.d.ts +0 -177
- package/lib/ui/src/Drawer/src/useDrawer.d.ts +0 -6
- package/lib/ui/src/Dropdown/index.d.ts +0 -3
- package/lib/ui/src/Dropdown/src/typing.d.ts +0 -9
- package/lib/ui/src/Icon/data/icons.data.d.ts +0 -2
- package/lib/ui/src/Icon/index.d.ts +0 -5
- package/lib/ui/src/Icon/src/SvgIcon.vue.d.ts +0 -45
- package/lib/ui/src/Loading/index.d.ts +0 -4
- package/lib/ui/src/Loading/src/Loading.vue.d.ts +0 -57
- package/lib/ui/src/Loading/src/createLoading.d.ts +0 -13
- package/lib/ui/src/Loading/src/typing.d.ts +0 -9
- package/lib/ui/src/Loading/src/useLoading.d.ts +0 -11
- package/lib/ui/src/Modal/src/components/BasicHelp.vue.d.ts +0 -99
- package/lib/ui/src/Modal/src/components/BasicTitle.vue.d.ts +0 -117
- package/lib/ui/src/Modal/src/components/ModalClose.vue.d.ts +0 -39
- package/lib/ui/src/Modal/src/components/ModalHeader.vue.d.ts +0 -19
- package/lib/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +0 -95
- package/lib/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +0 -9
- package/lib/ui/src/Modal/src/hooks/useAttrs.d.ts +0 -9
- package/lib/ui/src/Modal/src/hooks/useContext.d.ts +0 -10
- package/lib/ui/src/Modal/src/hooks/useDesign.d.ts +0 -22
- package/lib/ui/src/Modal/src/hooks/useI18n.d.ts +0 -15
- package/lib/ui/src/Modal/src/hooks/useModal.d.ts +0 -6
- package/lib/ui/src/Modal/src/hooks/useModalContext.d.ts +0 -7
- package/lib/ui/src/Modal/src/hooks/useModalDrag.d.ts +0 -7
- package/lib/ui/src/Modal/src/hooks/useModalFullScreen.d.ts +0 -11
- package/lib/ui/src/Modal/src/hooks/useScrollTo.d.ts +0 -10
- package/lib/ui/src/Modal/src/hooks/useTimeout.d.ts +0 -10
- package/lib/ui/src/Modal/src/hooks/useWindowSizeFn.d.ts +0 -7
- package/lib/ui/src/Modal/src/typing.d.ts +0 -173
- package/lib/ui/src/Modal/src/utils/index.d.ts +0 -5
- package/lib/ui/src/Modal/src/utils/is.d.ts +0 -13
- package/lib/ui/src/Modal/src/utils/log.d.ts +0 -2
- package/lib/ui/src/Modal/src/utils/tsxHelper.d.ts +0 -13
- package/lib/ui/src/Page/index.d.ts +0 -4
- package/lib/ui/src/Page/src/PageFooter.vue.d.ts +0 -5
- package/lib/ui/src/Scrollbar/index.d.ts +0 -6
- package/lib/ui/src/Scrollbar/src/Scrollbar.vue.d.ts +0 -72
- package/lib/ui/src/Scrollbar/src/bar.d.ts +0 -14
- package/lib/ui/src/Scrollbar/src/types.d.ts +0 -18
- package/lib/ui/src/Scrollbar/src/util.d.ts +0 -8
- package/lib/ui/src/StrengthMeter/index.d.ts +0 -2
- package/lib/ui/src/Table/index.d.ts +0 -11
- package/lib/ui/src/Table/src/componentMap.d.ts +0 -6
- package/lib/ui/src/Table/src/components/EditTableHeaderIcon.vue.d.ts +0 -14
- package/lib/ui/src/Table/src/components/HeaderCell.vue.d.ts +0 -21
- package/lib/ui/src/Table/src/components/TableHeader.vue.d.ts +0 -40
- package/lib/ui/src/Table/src/components/editable/CellComponent.d.ts +0 -10
- package/lib/ui/src/Table/src/components/editable/helper.d.ts +0 -5
- package/lib/ui/src/Table/src/components/editable/index.d.ts +0 -22
- package/lib/ui/src/Table/src/components/settings/ColumnSetting.vue.d.ts +0 -29
- package/lib/ui/src/Table/src/components/settings/FullScreenSetting.vue.d.ts +0 -6
- package/lib/ui/src/Table/src/components/settings/ShowSearchSetting.vue.d.ts +0 -5
- package/lib/ui/src/Table/src/components/settings/SizeSetting.vue.d.ts +0 -11
- package/lib/ui/src/Table/src/components/settings/index.vue.d.ts +0 -23
- package/lib/ui/src/Table/src/const.d.ts +0 -22
- package/lib/ui/src/Table/src/hooks/useCustomRow.d.ts +0 -19
- package/lib/ui/src/Table/src/hooks/useDataSource.d.ts +0 -28
- package/lib/ui/src/Table/src/hooks/useLoading.d.ts +0 -6
- package/lib/ui/src/Table/src/hooks/usePagination.d.ts +0 -10
- package/lib/ui/src/Table/src/hooks/useRowSelection.d.ts +0 -12
- package/lib/ui/src/Table/src/hooks/useScrollTo.d.ts +0 -4
- package/lib/ui/src/Table/src/hooks/useTable.d.ts +0 -17
- package/lib/ui/src/Table/src/hooks/useTableContext.d.ts +0 -13
- package/lib/ui/src/Table/src/hooks/useTableExpand.d.ts +0 -14
- package/lib/ui/src/Table/src/hooks/useTableFooter.d.ts +0 -9
- package/lib/ui/src/Table/src/hooks/useTableForm.d.ts +0 -9
- package/lib/ui/src/Table/src/hooks/useTableHeader.d.ts +0 -5
- package/lib/ui/src/Table/src/hooks/useTableScroll.d.ts +0 -10
- package/lib/ui/src/Table/src/hooks/useTableStyle.d.ts +0 -5
- package/lib/ui/src/Table/src/types/componentType.d.ts +0 -1
- package/lib/ui/src/Table/src/types/pagination.d.ts +0 -93
- package/lib/ui/src/Table/src/types/table.d.ts +0 -372
- package/lib/ui/src/Table/src/types/tableAction.d.ts +0 -28
- package/lib/ui/src/Transition/index.d.ts +0 -368
- package/lib/ui/src/Transition/src/CollapseTransition.vue.d.ts +0 -11
- package/lib/ui/src/Transition/src/CreateTransition.d.ts +0 -47
- package/lib/ui/src/Transition/src/ExpandTransition.d.ts +0 -23
- package/lib/ui/src/Tree/index.d.ts +0 -12
- package/lib/ui/src/Tree/src/BasicTree.vue.d.ts +0 -94
- package/lib/ui/src/Tree/src/TreeIcon.d.ts +0 -2
- package/lib/ui/src/Tree/src/hooks/useTree.d.ts +0 -14
- package/lib/ui/src/Tree/src/types/tree.d.ts +0 -105
- package/lib/ui/src/Tree/style/index.d.ts +0 -0
- package/lib/ui/src/directives/clickOutside.d.ts +0 -3
- package/lib/ui/src/directives/index.d.ts +0 -1
- package/lib/ui/src/enums/sizeEnum.d.ts +0 -11
- package/lib/ui/types/global.d.ts +0 -102
- package/lib/ui/types/index.d.ts +0 -28
- /package/{lib/ui/src/Button/src/BasicButton.vue.d.ts → es/ui/src/Table/src/BasicTable.vue.d.ts} +0 -0
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps } from 'ant-design-vue/lib/button/buttonTypes';
|
|
2
|
-
import type { CSSProperties, VNodeChild, ComputedRef } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* @description: 弹窗对外暴露的方法
|
|
5
|
-
*/
|
|
6
|
-
export interface ModalMethods {
|
|
7
|
-
setModalProps: (props: Partial<ModalProps>) => void;
|
|
8
|
-
emitVisible?: (visible: boolean, uid: number) => void;
|
|
9
|
-
redoModalHeight?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare type RegisterFn = (modalMethods: ModalMethods, uuid?: string) => void;
|
|
12
|
-
export interface ReturnMethods extends ModalMethods {
|
|
13
|
-
openModal: <T = any>(props?: boolean, data?: T, openOnSet?: boolean) => void;
|
|
14
|
-
closeModal: () => void;
|
|
15
|
-
getVisible?: ComputedRef<boolean>;
|
|
16
|
-
}
|
|
17
|
-
export declare type UseModalReturnType = [RegisterFn, ReturnMethods];
|
|
18
|
-
export interface ReturnInnerMethods extends ModalMethods {
|
|
19
|
-
closeModal: () => void;
|
|
20
|
-
changeLoading: (loading: boolean) => void;
|
|
21
|
-
changeOkLoading: (loading: boolean) => void;
|
|
22
|
-
getVisible?: ComputedRef<boolean>;
|
|
23
|
-
redoModalHeight: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare type UseModalInnerReturnType = [RegisterFn, ReturnInnerMethods];
|
|
26
|
-
export interface ModalProps {
|
|
27
|
-
minHeight?: number;
|
|
28
|
-
height?: number;
|
|
29
|
-
wrapperFooterOffset?: number;
|
|
30
|
-
draggable?: boolean;
|
|
31
|
-
scrollTop?: boolean;
|
|
32
|
-
canFullscreen?: boolean;
|
|
33
|
-
defaultFullscreen?: boolean;
|
|
34
|
-
visible?: boolean;
|
|
35
|
-
helpMessage: string | string[];
|
|
36
|
-
useWrapper: boolean;
|
|
37
|
-
loading: boolean;
|
|
38
|
-
loadingTip?: string;
|
|
39
|
-
wrapperProps: Omit<ModalWrapperProps, 'loading'>;
|
|
40
|
-
showOkBtn: boolean;
|
|
41
|
-
showCancelBtn: boolean;
|
|
42
|
-
closeFunc: () => Promise<any>;
|
|
43
|
-
/**
|
|
44
|
-
* Specify a function that will be called when modal is closed completely.
|
|
45
|
-
* @type Function
|
|
46
|
-
*/
|
|
47
|
-
afterClose?: () => any;
|
|
48
|
-
/**
|
|
49
|
-
* Body style for modal body element. Such as height, padding etc.
|
|
50
|
-
* @default {}
|
|
51
|
-
* @type object
|
|
52
|
-
*/
|
|
53
|
-
bodyStyle?: CSSProperties;
|
|
54
|
-
/**
|
|
55
|
-
* Text of the Cancel button
|
|
56
|
-
* @default 'cancel'
|
|
57
|
-
* @type string
|
|
58
|
-
*/
|
|
59
|
-
cancelText?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Centered Modal
|
|
62
|
-
* @default false
|
|
63
|
-
* @type boolean
|
|
64
|
-
*/
|
|
65
|
-
centered?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Whether a close (x) button is visible on top right of the modal dialog or not
|
|
68
|
-
* @default true
|
|
69
|
-
* @type boolean
|
|
70
|
-
*/
|
|
71
|
-
closable?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Whether a close (x) button is visible on top right of the modal dialog or not
|
|
74
|
-
*/
|
|
75
|
-
closeIcon?: VNodeChild | JSX.Element;
|
|
76
|
-
/**
|
|
77
|
-
* Whether to apply loading visual effect for OK button or not
|
|
78
|
-
* @default false
|
|
79
|
-
* @type boolean
|
|
80
|
-
*/
|
|
81
|
-
confirmLoading?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Whether to unmount child components on onClose
|
|
84
|
-
* @default false
|
|
85
|
-
* @type boolean
|
|
86
|
-
*/
|
|
87
|
-
destroyOnClose?: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Footer content, set as :footer="null" when you don't need default buttons
|
|
90
|
-
* @default OK and Cancel buttons
|
|
91
|
-
* @type any (string | slot)
|
|
92
|
-
*/
|
|
93
|
-
footer?: VNodeChild | JSX.Element;
|
|
94
|
-
/**
|
|
95
|
-
* Return the mount node for Modal
|
|
96
|
-
* @default () => document.body
|
|
97
|
-
* @type Function
|
|
98
|
-
*/
|
|
99
|
-
getContainer?: (instance: any) => HTMLElement;
|
|
100
|
-
/**
|
|
101
|
-
* Whether show mask or not.
|
|
102
|
-
* @default true
|
|
103
|
-
* @type boolean
|
|
104
|
-
*/
|
|
105
|
-
mask?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Whether to close the modal dialog when the mask (area outside the modal) is clicked
|
|
108
|
-
* @default true
|
|
109
|
-
* @type boolean
|
|
110
|
-
*/
|
|
111
|
-
maskClosable?: boolean;
|
|
112
|
-
/**
|
|
113
|
-
* Style for modal's mask element.
|
|
114
|
-
* @default {}
|
|
115
|
-
* @type object
|
|
116
|
-
*/
|
|
117
|
-
maskStyle?: CSSProperties;
|
|
118
|
-
/**
|
|
119
|
-
* Text of the OK button
|
|
120
|
-
* @default 'OK'
|
|
121
|
-
* @type string
|
|
122
|
-
*/
|
|
123
|
-
okText?: string;
|
|
124
|
-
/**
|
|
125
|
-
* Button type of the OK button
|
|
126
|
-
* @default 'primary'
|
|
127
|
-
* @type string
|
|
128
|
-
*/
|
|
129
|
-
okType?: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default';
|
|
130
|
-
/**
|
|
131
|
-
* The ok button props, follow jsx rules
|
|
132
|
-
* @type object
|
|
133
|
-
*/
|
|
134
|
-
okButtonProps?: ButtonProps;
|
|
135
|
-
/**
|
|
136
|
-
* The cancel button props, follow jsx rules
|
|
137
|
-
* @type object
|
|
138
|
-
*/
|
|
139
|
-
cancelButtonProps?: ButtonProps;
|
|
140
|
-
/**
|
|
141
|
-
* The modal dialog's title
|
|
142
|
-
* @type any (string | slot)
|
|
143
|
-
*/
|
|
144
|
-
title?: VNodeChild | JSX.Element;
|
|
145
|
-
/**
|
|
146
|
-
* Width of the modal dialog
|
|
147
|
-
* @default 520
|
|
148
|
-
* @type string | number
|
|
149
|
-
*/
|
|
150
|
-
width?: string | number;
|
|
151
|
-
/**
|
|
152
|
-
* The class name of the container of the modal dialog
|
|
153
|
-
* @type string
|
|
154
|
-
*/
|
|
155
|
-
wrapClassName?: string;
|
|
156
|
-
/**
|
|
157
|
-
* The z-index of the Modal
|
|
158
|
-
* @default 1000
|
|
159
|
-
* @type number
|
|
160
|
-
*/
|
|
161
|
-
zIndex?: number;
|
|
162
|
-
}
|
|
163
|
-
export interface ModalWrapperProps {
|
|
164
|
-
footerOffset?: number;
|
|
165
|
-
loading: boolean;
|
|
166
|
-
modalHeaderHeight: number;
|
|
167
|
-
modalFooterHeight: number;
|
|
168
|
-
minHeight: number;
|
|
169
|
-
height: number;
|
|
170
|
-
visible: boolean;
|
|
171
|
-
fullScreen: boolean;
|
|
172
|
-
useWrapper: boolean;
|
|
173
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function is(val: unknown, type: string): boolean;
|
|
2
|
-
export declare function isFunction(val: unknown): val is Function;
|
|
3
|
-
export declare function isObject(val: any): val is Record<any, any>;
|
|
4
|
-
export declare function isDef<T = unknown>(val?: T): val is T;
|
|
5
|
-
export declare function isUnDef<T = unknown>(val?: T): val is T;
|
|
6
|
-
/**
|
|
7
|
-
* @description: Is it a production mode
|
|
8
|
-
* @returns:
|
|
9
|
-
* @example:
|
|
10
|
-
*/
|
|
11
|
-
export declare function isProdMode(): boolean;
|
|
12
|
-
export declare function isString(val: unknown): val is string;
|
|
13
|
-
export declare function isArray(val: any): val is Array<any>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Slots } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* @description: Get slot to prevent empty error
|
|
4
|
-
*/
|
|
5
|
-
export declare function getSlot(slots: Slots, slot?: string, data?: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}>[];
|
|
8
|
-
/**
|
|
9
|
-
* extends slots
|
|
10
|
-
* @param slots
|
|
11
|
-
* @param excludeKeys
|
|
12
|
-
*/
|
|
13
|
-
export declare function extendSlots(slots: Slots, excludeKeys?: string[]): any;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
-
prefixCls: string;
|
|
3
|
-
getCalcContentWidth: string;
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
-
export default _sfc_main;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
native: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
wrapStyle: {
|
|
7
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
wrapClass: {
|
|
11
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
viewClass: {
|
|
15
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
viewStyle: {
|
|
19
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
noresize: BooleanConstructor;
|
|
23
|
-
tag: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
moveX: import("vue").Ref<number>;
|
|
29
|
-
moveY: import("vue").Ref<number>;
|
|
30
|
-
sizeWidth: import("vue").Ref<string>;
|
|
31
|
-
sizeHeight: import("vue").Ref<string>;
|
|
32
|
-
style: import("vue").ComputedRef<string | Recordable<any>>;
|
|
33
|
-
wrap: import("vue").Ref<any>;
|
|
34
|
-
resize: import("vue").Ref<any>;
|
|
35
|
-
update: () => void;
|
|
36
|
-
handleScroll: () => void;
|
|
37
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
-
native: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
wrapStyle: {
|
|
43
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
wrapClass: {
|
|
47
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
viewClass: {
|
|
51
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
viewStyle: {
|
|
55
|
-
type: (StringConstructor | ArrayConstructor)[];
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
noresize: BooleanConstructor;
|
|
59
|
-
tag: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
default: string;
|
|
62
|
-
};
|
|
63
|
-
}>>, {
|
|
64
|
-
native: boolean;
|
|
65
|
-
tag: string;
|
|
66
|
-
wrapStyle: string | unknown[];
|
|
67
|
-
wrapClass: string | unknown[];
|
|
68
|
-
viewClass: string | unknown[];
|
|
69
|
-
viewStyle: string | unknown[];
|
|
70
|
-
noresize: boolean;
|
|
71
|
-
}>;
|
|
72
|
-
export default _sfc_main;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
vertical: BooleanConstructor;
|
|
3
|
-
size: StringConstructor;
|
|
4
|
-
move: NumberConstructor;
|
|
5
|
-
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
vertical: BooleanConstructor;
|
|
9
|
-
size: StringConstructor;
|
|
10
|
-
move: NumberConstructor;
|
|
11
|
-
}>>, {
|
|
12
|
-
vertical: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface BarMapItem {
|
|
2
|
-
offset: string
|
|
3
|
-
scroll: string
|
|
4
|
-
scrollSize: string
|
|
5
|
-
size: string
|
|
6
|
-
key: string
|
|
7
|
-
axis: string
|
|
8
|
-
client: string
|
|
9
|
-
direction: string
|
|
10
|
-
}
|
|
11
|
-
export interface BarMap {
|
|
12
|
-
vertical: BarMapItem
|
|
13
|
-
horizontal: BarMapItem
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface ScrollbarType {
|
|
17
|
-
wrap: ElRef
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { default as BasicTable } from './src/BasicTable.vue';
|
|
2
|
-
export { default as TableAction } from './src/components/TableAction.vue';
|
|
3
|
-
export { default as EditTableHeaderIcon } from './src/components/EditTableHeaderIcon.vue';
|
|
4
|
-
export { default as TableImg } from './src/components/TableImg.vue';
|
|
5
|
-
export { default as TableDict } from './src/components/TableDict.vue';
|
|
6
|
-
export * from './src/types/table';
|
|
7
|
-
export * from './src/types/pagination';
|
|
8
|
-
export * from './src/types/tableAction';
|
|
9
|
-
export { useTable } from './src/hooks/useTable';
|
|
10
|
-
export type { FormSchema, FormProps } from '../form';
|
|
11
|
-
export type { EditRecordRow } from './src/components/editable';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
import type { ComponentType } from './types/componentType';
|
|
3
|
-
declare const componentMap: Map<ComponentType, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
|
|
4
|
-
export declare function add(compName: ComponentType, component: Component): void;
|
|
5
|
-
export declare function del(compName: ComponentType): void;
|
|
6
|
-
export { componentMap };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
-
title: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
title: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
default: string;
|
|
10
|
-
};
|
|
11
|
-
}>>, {
|
|
12
|
-
title: string;
|
|
13
|
-
}>;
|
|
14
|
-
export default _sfc_main;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { BasicColumn } from '../types/table';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
-
column: {
|
|
5
|
-
type: PropType<BasicColumn>;
|
|
6
|
-
default: () => {};
|
|
7
|
-
};
|
|
8
|
-
}, {
|
|
9
|
-
prefixCls: string;
|
|
10
|
-
getIsEdit: import("vue").ComputedRef<boolean>;
|
|
11
|
-
getTitle: import("vue").ComputedRef<any>;
|
|
12
|
-
getHelpMessage: import("vue").ComputedRef<any>;
|
|
13
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
-
column: {
|
|
15
|
-
type: PropType<BasicColumn>;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
}>>, {
|
|
19
|
-
column: {};
|
|
20
|
-
}>;
|
|
21
|
-
export default _sfc_main;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { TableSetting, ColumnChangeParam } from '../types/table';
|
|
2
|
-
import type { PropType } from 'vue';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
-
title: {
|
|
5
|
-
type: PropType<string | ((data: Recordable) => string)>;
|
|
6
|
-
};
|
|
7
|
-
tableSetting: {
|
|
8
|
-
type: PropType<TableSetting>;
|
|
9
|
-
};
|
|
10
|
-
showTableSetting: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
};
|
|
13
|
-
titleHelpMessage: {
|
|
14
|
-
type: PropType<string | string[]>;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
}, {
|
|
18
|
-
prefixCls: string;
|
|
19
|
-
handleColumnChange: (data: ColumnChangeParam[]) => void;
|
|
20
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
-
title: {
|
|
22
|
-
type: PropType<string | ((data: Recordable) => string)>;
|
|
23
|
-
};
|
|
24
|
-
tableSetting: {
|
|
25
|
-
type: PropType<TableSetting>;
|
|
26
|
-
};
|
|
27
|
-
showTableSetting: {
|
|
28
|
-
type: BooleanConstructor;
|
|
29
|
-
};
|
|
30
|
-
titleHelpMessage: {
|
|
31
|
-
type: PropType<string | string[]>;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
}>> & {
|
|
35
|
-
"onColumns-change"?: (...args: any[]) => any;
|
|
36
|
-
}, {
|
|
37
|
-
showTableSetting: boolean;
|
|
38
|
-
titleHelpMessage: string | string[];
|
|
39
|
-
}>;
|
|
40
|
-
export default _sfc_main;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FunctionalComponent } from 'vue';
|
|
2
|
-
import type { ComponentType } from '../../types/componentType';
|
|
3
|
-
export interface ComponentProps {
|
|
4
|
-
component: ComponentType;
|
|
5
|
-
rule: boolean;
|
|
6
|
-
popoverVisible: boolean;
|
|
7
|
-
ruleMessage: string;
|
|
8
|
-
getPopupContainer?: Fn;
|
|
9
|
-
}
|
|
10
|
-
export declare const CellComponent: FunctionalComponent;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { BasicColumn } from '../../types/table';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
interface Params {
|
|
4
|
-
text: string;
|
|
5
|
-
record: Recordable;
|
|
6
|
-
index: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function renderEditCell(column: BasicColumn): ({ text, record, index }: Params) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
export declare type EditRecordRow<T = Recordable> = Partial<{
|
|
12
|
-
onEdit: (editable: boolean, submit?: boolean) => Promise<boolean>;
|
|
13
|
-
onValid: () => Promise<boolean>;
|
|
14
|
-
editable: boolean;
|
|
15
|
-
onCancel: Fn;
|
|
16
|
-
onSubmit: Fn;
|
|
17
|
-
submitCbs: Fn[];
|
|
18
|
-
cancelCbs: Fn[];
|
|
19
|
-
validCbs: Fn[];
|
|
20
|
-
editValueRefs: Recordable<Ref>;
|
|
21
|
-
} & T>;
|
|
22
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { BasicColumn } from '../../types/table';
|
|
2
|
-
import type { CheckboxChangeEvent } from 'ant-design-vue/lib/checkbox/interface';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
4
|
-
indeterminate: import("vue").ComputedRef<boolean>;
|
|
5
|
-
onCheckAllChange: (e: CheckboxChangeEvent) => void;
|
|
6
|
-
onChange: (checkedList: string[]) => void;
|
|
7
|
-
plainOptions: any;
|
|
8
|
-
reset: () => void;
|
|
9
|
-
prefixCls: string;
|
|
10
|
-
columnListRef: import("vue").Ref<{
|
|
11
|
-
$el: HTMLDivElement;
|
|
12
|
-
}>;
|
|
13
|
-
handleVisibleChange: () => void;
|
|
14
|
-
checkIndex: import("vue").Ref<boolean>;
|
|
15
|
-
checkSelect: import("vue").Ref<boolean>;
|
|
16
|
-
handleIndexCheckChange: (e: CheckboxChangeEvent) => void;
|
|
17
|
-
handleSelectCheckChange: (e: CheckboxChangeEvent) => void;
|
|
18
|
-
defaultRowSelection: Pick<import("../../types/table").TableRowSelection<Recordable<any>>, "type" | "onChange" | "onSelect" | "fixed" | "checkStrictly" | "columnWidth" | "onSelectAll" | "onSelectInvert" | "preserveSelectedRowKeys" | "defaultSelectedRowKeys" | "getCheckboxProps" | "onSelectMultiple" | "onSelectNone" | "selections" | "hideSelectAll" | "columnTitle" | "renderCell">;
|
|
19
|
-
handleColumnFixed: (item: BasicColumn, fixed?: 'left' | 'right') => void;
|
|
20
|
-
getPopupContainer: () => any;
|
|
21
|
-
checkAll: import("vue").Ref<boolean>;
|
|
22
|
-
isInit?: import("vue").Ref<boolean>;
|
|
23
|
-
checkedList: import("vue").Ref<string[]>;
|
|
24
|
-
defaultCheckList: import("vue").Ref<string[]>;
|
|
25
|
-
t: (key: any) => any;
|
|
26
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
27
|
-
"onColumns-change"?: (...args: any[]) => any;
|
|
28
|
-
}, {}>;
|
|
29
|
-
export default _sfc_main;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
-
toggle: () => Promise<void>;
|
|
3
|
-
isFullscreen: import("vue").Ref<boolean>;
|
|
4
|
-
t: (key: any) => any;
|
|
5
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
6
|
-
export default _sfc_main;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
-
redo: () => void;
|
|
3
|
-
t: (key: any) => any;
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
-
export default _sfc_main;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SizeType } from '../../types/table';
|
|
2
|
-
import { getPopupContainer } from '@shy-plugins/utils';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
4
|
-
handleTitleClick: ({ key }: {
|
|
5
|
-
key: SizeType;
|
|
6
|
-
}) => void;
|
|
7
|
-
selectedKeysRef: import("vue").Ref<SizeType[]>;
|
|
8
|
-
getPopupContainer: typeof getPopupContainer;
|
|
9
|
-
t: (key: any) => any;
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
11
|
-
export default _sfc_main;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { TableSetting, ColumnChangeParam } from '../../types/table';
|
|
3
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
-
setting: {
|
|
5
|
-
type: PropType<TableSetting>;
|
|
6
|
-
default: () => {};
|
|
7
|
-
};
|
|
8
|
-
}, {
|
|
9
|
-
getSetting: import("vue").ComputedRef<TableSetting>;
|
|
10
|
-
handleColumnChange: (data: ColumnChangeParam[]) => void;
|
|
11
|
-
getTableContainer: () => HTMLElement;
|
|
12
|
-
getBindValues: import("vue").ComputedRef<import("../../types/table").BasicTableProps<any>>;
|
|
13
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "columns-change"[], "columns-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
-
setting: {
|
|
15
|
-
type: PropType<TableSetting>;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
}>> & {
|
|
19
|
-
"onColumns-change"?: (...args: any[]) => any;
|
|
20
|
-
}, {
|
|
21
|
-
setting: {};
|
|
22
|
-
}>;
|
|
23
|
-
export default _sfc_main;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SorterResult } from './types/table';
|
|
2
|
-
export declare const ROW_KEY = "key";
|
|
3
|
-
export declare const PAGE_SIZE_OPTIONS: string[];
|
|
4
|
-
export declare const PAGE_SIZE: number;
|
|
5
|
-
export declare const FETCH_SETTING: {
|
|
6
|
-
pageField: string;
|
|
7
|
-
sizeField: string;
|
|
8
|
-
listField: string;
|
|
9
|
-
totalField: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const DEFAULT_SIZE: string;
|
|
12
|
-
export declare const DEFAULT_SORT_FN: (sortInfo: SorterResult) => {
|
|
13
|
-
field: string;
|
|
14
|
-
order: import("./types/table").SortOrder;
|
|
15
|
-
} | {
|
|
16
|
-
field?: undefined;
|
|
17
|
-
order?: undefined;
|
|
18
|
-
};
|
|
19
|
-
export declare const DEFAULT_FILTER_FN: (data: Partial<Recordable<string[]>>) => Partial<Recordable<string[]>>;
|
|
20
|
-
export declare const DEFAULT_ALIGN = "center";
|
|
21
|
-
export declare const INDEX_COLUMN_FLAG = "INDEX";
|
|
22
|
-
export declare const ACTION_COLUMN_FLAG = "ACTION";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
|
-
import type { BasicTableProps } from '../types/table';
|
|
3
|
-
interface Options {
|
|
4
|
-
setSelectedRowKeys: (keys: string[]) => void;
|
|
5
|
-
getSelectRowKeys: () => string[];
|
|
6
|
-
clearSelectedRowKeys: () => void;
|
|
7
|
-
emit: EmitType;
|
|
8
|
-
getAutoCreateKey: ComputedRef<boolean | undefined>;
|
|
9
|
-
}
|
|
10
|
-
export declare function useCustomRow(propsRef: ComputedRef<BasicTableProps>, { setSelectedRowKeys, getSelectRowKeys, getAutoCreateKey, clearSelectedRowKeys, emit }: Options): {
|
|
11
|
-
customRow: (record: Recordable, index: number) => {
|
|
12
|
-
onClick: (e: Event) => void;
|
|
13
|
-
onDblclick: (event: Event) => void;
|
|
14
|
-
onContextmenu: (event: Event) => void;
|
|
15
|
-
onMouseenter: (event: Event) => void;
|
|
16
|
-
onMouseleave: (event: Event) => void;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { BasicTableProps, FetchParams, SorterResult } from '../types/table';
|
|
2
|
-
import type { PaginationProps } from '../types/pagination';
|
|
3
|
-
import { ComputedRef, Ref } from 'vue';
|
|
4
|
-
interface ActionType {
|
|
5
|
-
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
6
|
-
setPagination: (info: Partial<PaginationProps>) => void;
|
|
7
|
-
setLoading: (loading: boolean) => void;
|
|
8
|
-
getFieldsValue: () => Recordable;
|
|
9
|
-
clearSelectedRowKeys: () => void;
|
|
10
|
-
tableData: Ref<Recordable[]>;
|
|
11
|
-
}
|
|
12
|
-
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, setLoading, getFieldsValue, clearSelectedRowKeys, tableData }: ActionType, emit: EmitType): {
|
|
13
|
-
getDataSourceRef: ComputedRef<Recordable<any>[]>;
|
|
14
|
-
getDataSource: <T = Recordable<any>>() => T[];
|
|
15
|
-
getRawDataSource: <T_1 = Recordable<any>>() => T_1;
|
|
16
|
-
getRowKey: ComputedRef<string | ((record: Recordable<any>) => string)>;
|
|
17
|
-
setTableData: <T_2 = Recordable<any>>(values: T_2[]) => void;
|
|
18
|
-
getAutoCreateKey: ComputedRef<boolean>;
|
|
19
|
-
fetch: (opt?: FetchParams) => any;
|
|
20
|
-
reload: (opt?: FetchParams) => Promise<any>;
|
|
21
|
-
updateTableData: (index: number, key: string, value: any) => Promise<Recordable<any>>;
|
|
22
|
-
updateTableDataRecord: (rowKey: string | number, record: Recordable) => Recordable | undefined;
|
|
23
|
-
deleteTableDataRecord: (rowKey: string | number | string[] | number[]) => void;
|
|
24
|
-
insertTableDataRecord: (record: Recordable, index: number) => Recordable | undefined;
|
|
25
|
-
findTableDataRecord: (rowKey: string | number) => any;
|
|
26
|
-
handleTableChange: (pagination: PaginationProps, filters: Partial<Recordable<string[]>>, sorter: SorterResult) => void;
|
|
27
|
-
};
|
|
28
|
-
export {};
|