@dt-frames/ui 2.0.1 → 2.0.3
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/assets/data/icons/actions.d.ts +1 -0
- package/es/assets/data/icons/actions.ts +423 -0
- package/es/assets/data/icons/code.d.ts +1 -0
- package/es/assets/data/icons/code.ts +10 -0
- package/es/assets/data/icons/commuticate.d.ts +1 -0
- package/es/assets/data/icons/commuticate.ts +182 -0
- package/es/assets/data/icons/currency.d.ts +1 -0
- package/es/assets/data/icons/currency.ts +44 -0
- package/es/assets/data/icons/devices.d.ts +1 -0
- package/es/assets/data/icons/devices.ts +126 -0
- package/es/assets/data/icons/edit.d.ts +1 -0
- package/es/assets/data/icons/edit.ts +163 -0
- package/es/assets/data/icons/file.d.ts +1 -0
- package/es/assets/data/icons/file.ts +99 -0
- package/es/assets/data/icons/math.d.ts +1 -0
- package/es/assets/data/icons/math.ts +53 -0
- package/es/assets/data/icons/message.d.ts +1 -0
- package/es/assets/data/icons/message.ts +68 -0
- package/es/assets/data/icons/navigate.d.ts +1 -0
- package/es/assets/data/icons/navigate.ts +181 -0
- package/es/assets/data/icons/other.d.ts +1 -0
- package/es/assets/data/icons/other.ts +324 -0
- package/es/assets/data/index.d.ts +4 -0
- package/es/assets/data/index.ts +58 -0
- package/es/assets/icons/iconfont.css +7266 -0
- package/es/assets/icons/iconfont.eot +0 -0
- package/es/assets/icons/iconfont.svg +5445 -0
- package/es/assets/icons/iconfont.ttf +0 -0
- package/es/assets/icons/iconfont.woff +0 -0
- package/es/assets/icons/iconfont.woff2 +0 -0
- package/es/assets/imgs/header/avatar.png +0 -0
- package/es/assets/imgs/logo/logo.png +0 -0
- package/es/assets/imgs/table/empty.png +0 -0
- package/es/assets/locales/en.d.ts +101 -0
- package/es/assets/locales/en.ts +101 -0
- package/es/assets/locales/index.d.ts +2 -0
- package/es/assets/locales/index.ts +5 -0
- package/es/assets/locales/zh.d.ts +103 -0
- package/es/assets/locales/zh.ts +103 -0
- package/es/components/container/index.d.ts +94 -0
- package/es/components/container/index.js +290 -0
- package/es/components/container/index.less +64 -0
- package/es/components/container/src/components/bar.d.ts +14 -0
- package/es/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/components/container/src/scroll-container.d.ts +76 -0
- package/es/components/container/src/slot-container.d.ts +20 -0
- package/es/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/components/container/src/utils/scroll.d.ts +5 -0
- package/es/components/curd/index.d.ts +2 -0
- package/es/components/curd/index.js +3120 -0
- package/es/components/curd/src/components/Curd.d.ts +1246 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +112 -0
- package/es/components/curd/src/props.d.ts +187 -0
- package/es/components/curd/src/types/curd.type.d.ts +19 -0
- package/es/components/drawer/index.d.ts +8039 -0
- package/es/components/drawer/index.js +838 -0
- package/es/components/drawer/index.less +10 -0
- package/es/components/drawer/src/components/DrawerFooter.d.ts +139 -0
- package/es/components/drawer/src/components/DrawerHeader.d.ts +11 -0
- package/es/components/drawer/src/hooks/useDrawer.d.ts +3 -0
- package/es/components/drawer/src/index.d.ts +8041 -0
- package/es/components/drawer/src/props.d.ts +64 -0
- package/es/components/drawer/src/types/index.type.d.ts +48 -0
- package/es/components/form/index.d.ts +3219 -0
- package/es/components/form/index.js +1896 -0
- package/es/components/form/index.less +141 -0
- package/es/components/form/src/components/FormButtons.d.ts +88 -0
- package/es/components/form/src/components/FormItem.d.ts +165 -0
- package/es/components/form/src/components/componentMap.d.ts +4 -0
- package/es/components/form/src/components/formIcon.d.ts +1231 -0
- package/es/components/form/src/components/formInputUseDialog.d.ts +911 -0
- package/es/components/form/src/components/index.d.ts +4 -0
- package/es/components/form/src/components/radioButton.d.ts +34 -0
- package/es/components/form/src/enums/index.d.ts +7 -0
- package/es/components/form/src/hooks/helper.d.ts +14 -0
- package/es/components/form/src/hooks/useForm.d.ts +6 -0
- package/es/components/form/src/hooks/useFormActions.d.ts +12 -0
- package/es/components/form/src/hooks/useFormEvent.d.ts +25 -0
- package/es/components/form/src/hooks/useFormValue.d.ts +3 -0
- package/es/components/form/src/hooks/useFormValues.d.ts +11 -0
- package/es/components/form/src/hooks/useLabelWidth.d.ts +22 -0
- package/es/components/form/src/index.d.ts +2965 -0
- package/es/components/form/src/props.d.ts +133 -0
- package/es/components/form/src/types/actions.type.d.ts +15 -0
- package/es/components/form/src/types/form.type.d.ts +70 -0
- package/es/components/icons/index.d.ts +497 -0
- package/es/components/icons/index.js +1969 -0
- package/es/components/icons/index.less +42 -0
- package/es/components/icons/src/pick-icon.d.ts +455 -0
- package/es/components/icons/src/svg-icon.d.ts +44 -0
- package/es/components/modal/index.d.ts +3 -0
- package/es/components/modal/index.js +1193 -0
- package/es/components/modal/index.less +54 -0
- package/es/components/modal/src/components/CloseIcon.d.ts +40 -0
- package/es/components/modal/src/components/Modal.d.ts +108 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +139 -0
- package/es/components/modal/src/components/ModalWrap.d.ts +153 -0
- package/es/components/modal/src/hooks/useDrag.d.ts +7 -0
- package/es/components/modal/src/hooks/useFullScreen.d.ts +6 -0
- package/es/components/modal/src/hooks/useModal.d.ts +5 -0
- package/es/components/modal/src/index.d.ts +774 -0
- package/es/components/modal/src/props.d.ts +100 -0
- package/es/components/modal/src/types/modal.type.d.ts +17 -0
- package/es/components/source/hooks/useDownload.d.ts +8 -0
- package/es/components/source/hooks/useSource.d.ts +40 -0
- package/es/components/source/index.d.ts +2 -0
- package/es/components/source/index.js +332 -0
- package/es/components/source/types/source.type.d.ts +37 -0
- package/es/components/source/utils/index.d.ts +8 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +3983 -0
- package/es/components/table/index.less +192 -0
- package/es/components/table/src/components/TableAction.d.ts +70 -0
- package/es/components/table/src/components/TableHeader.d.ts +1136 -0
- package/es/components/table/src/components/TableRender.d.ts +17 -0
- package/es/components/table/src/components/editTable/CellComponent.d.ts +22 -0
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +93 -0
- package/es/components/table/src/components/editTable/componentMap.d.ts +4 -0
- package/es/components/table/src/components/editTable/index.d.ts +9 -0
- package/es/components/table/src/components/editTable/props.d.ts +27 -0
- package/es/components/table/src/components/tableSetting/Column.d.ts +69 -0
- package/es/components/table/src/components/tableSetting/Download.d.ts +922 -0
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +888 -0
- package/es/components/table/src/components/tableSetting/Fullscreen.d.ts +22 -0
- package/es/components/table/src/components/tableSetting/index.d.ts +1030 -0
- package/es/components/table/src/hooks/useColumns.d.ts +14 -0
- package/es/components/table/src/hooks/useCustomRow.d.ts +20 -0
- package/es/components/table/src/hooks/useDataSource.d.ts +15 -0
- package/es/components/table/src/hooks/useHeader.d.ts +8 -0
- package/es/components/table/src/hooks/useHeaderCode.d.ts +3 -0
- package/es/components/table/src/hooks/useLoading.d.ts +6 -0
- package/es/components/table/src/hooks/usePagination.d.ts +7 -0
- package/es/components/table/src/hooks/useRow.d.ts +5 -0
- package/es/components/table/src/hooks/useRowSelection.d.ts +12 -0
- package/es/components/table/src/hooks/useTable.d.ts +9 -0
- package/es/components/table/src/hooks/useTableInstance.d.ts +16 -0
- package/es/components/table/src/hooks/useTableScroll.d.ts +13 -0
- package/es/components/table/src/index.d.ts +644 -0
- package/es/components/table/src/props.d.ts +185 -0
- package/es/components/table/src/types/actions.type.d.ts +21 -0
- package/es/components/table/src/types/header.type.d.ts +23 -0
- package/es/components/table/src/types/table.type.d.ts +98 -0
- package/es/directives/icon.d.ts +2 -0
- package/es/directives/index.d.ts +7 -0
- package/es/directives/index.js +2015 -0
- package/es/directives/permission.d.ts +2 -0
- package/es/global.d.ts +7 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +4 -0
- package/es/theme/index.d.ts +10 -0
- package/es/theme/index.js +3255 -0
- package/es/theme/index.less +603 -0
- package/es/theme/src/components/content/index.d.ts +27 -0
- package/es/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/theme/src/components/feature/index.d.ts +7 -0
- package/es/theme/src/components/footer/index.d.ts +31 -0
- package/es/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/theme/src/components/header/components/index.d.ts +11 -0
- package/es/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/theme/src/components/header/components/logo.d.ts +35 -0
- package/es/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/theme/src/components/header/components/notify.d.ts +24 -0
- package/es/theme/src/components/header/components/setting-theme.d.ts +223 -0
- package/es/theme/src/components/header/components/size.d.ts +282 -0
- package/es/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/theme/src/components/header/components/user-info.d.ts +37 -0
- package/es/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/theme/src/components/header/helper/menu-tree.d.ts +3 -0
- package/es/theme/src/components/header/index.d.ts +699 -0
- package/es/theme/src/components/header/multiple-header.d.ts +785 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +18 -0
- package/es/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/theme/src/components/sider/index.d.ts +70 -0
- package/es/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/theme/src/components/tabs/index.d.ts +63 -0
- package/es/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/theme/src/enums/index.d.ts +1 -0
- package/es/theme/src/enums/theme.enum.d.ts +33 -0
- package/es/theme/src/hooks/index.d.ts +6 -0
- package/es/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/theme/src/hooks/useMenu.d.ts +27 -0
- package/es/theme/src/hooks/useMultifyTab.d.ts +7 -0
- package/es/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/theme/src/index.d.ts +1643 -0
- package/es/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/theme/src/stores/index.d.ts +3 -0
- package/es/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/theme/src/stores/theme.store.d.ts +15 -0
- package/es/theme/src/types/index.d.ts +3 -0
- package/es/theme/src/types/menu.type.d.ts +15 -0
- package/es/theme/src/types/theme.type.d.ts +60 -0
- package/es/utils/withInstall.d.ts +4 -0
- package/index.d.ts +10 -0
- package/index.js +34 -0
- package/package.json +3 -6
- package/tailwind.config.cjs +11 -0
- package/tsconfig.json +41 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +51 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { ExtractPropTypes, PropType } from "vue";
|
|
3
|
+
import { basicProps } from "../props";
|
|
4
|
+
export declare function useCurd(curdOpt: Partial<ExtractPropTypes<typeof basicProps>>): {
|
|
5
|
+
add: () => void;
|
|
6
|
+
del: ({ row }: Recordable) => void;
|
|
7
|
+
update: ({ row }: Recordable) => void;
|
|
8
|
+
dels: (ids?: PropType<String | Number>[]) => void;
|
|
9
|
+
closeModal: () => void;
|
|
10
|
+
setModalProps: (props: Partial<ExtractPropTypes<{
|
|
11
|
+
t: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
visible: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
};
|
|
17
|
+
closable: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
destroyOnClose: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
};
|
|
24
|
+
scrollTop: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
height: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
};
|
|
31
|
+
minHeight: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
};
|
|
34
|
+
width: {
|
|
35
|
+
type: PropType<String | Number>;
|
|
36
|
+
};
|
|
37
|
+
draggable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
defaultFullscreen: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
};
|
|
44
|
+
canFullscreen: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
title: {
|
|
49
|
+
type: PropType<String | import("vue").ComputedRef<String>>;
|
|
50
|
+
};
|
|
51
|
+
loading: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
loadingTip: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
useWrapper: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
wrapClassName: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
zIndex: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
};
|
|
69
|
+
centered: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
};
|
|
72
|
+
showOkBtn: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
showCancelBtn: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
okText: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
};
|
|
83
|
+
cancelText: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
};
|
|
86
|
+
mask: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
maskClosable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
keyboard: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
maskStyle: PropType<import("vue").CSSProperties>;
|
|
99
|
+
footer: {
|
|
100
|
+
type: PropType<import("../../../form/src/types/form.type").ButtonProps[]>;
|
|
101
|
+
};
|
|
102
|
+
bodyStyle: PropType<import("vue").CSSProperties>;
|
|
103
|
+
wrapperProps: ObjectConstructor;
|
|
104
|
+
getContainer: PropType<() => any>;
|
|
105
|
+
closeFunc: PropType<() => Promise<boolean>>;
|
|
106
|
+
afterClose: FunctionConstructor;
|
|
107
|
+
}>>) => void;
|
|
108
|
+
curdFormMethods: import("../../../form/src/types/actions.type").FormActionType;
|
|
109
|
+
DtCurdModal: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { ButtonProps, FormSchema } from '../../form/src/types/form.type';
|
|
2
|
+
import { Key } from "ant-design-vue/es/table/interface";
|
|
3
|
+
import { ComputedRef, PropType, Ref } from "vue";
|
|
4
|
+
import { CurdActionType } from "./types/curd.type";
|
|
5
|
+
import { RegisterFn } from '../../modal/src/types/modal.type';
|
|
6
|
+
export declare const basicProps: {
|
|
7
|
+
title: {
|
|
8
|
+
type: PropType<Function | String | ComputedRef<any>>;
|
|
9
|
+
};
|
|
10
|
+
width: {
|
|
11
|
+
type: PropType<String | Number>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
schemas: {
|
|
15
|
+
type: PropType<FormSchema[]>;
|
|
16
|
+
default: () => any[];
|
|
17
|
+
};
|
|
18
|
+
footer: {
|
|
19
|
+
type: PropType<ButtonProps[]>;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
showFullscreen: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
showClosable: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
formProps: {
|
|
31
|
+
type: PropType<Partial<Partial<import("vue").ExtractPropTypes<{
|
|
32
|
+
mode: {
|
|
33
|
+
type: PropType<"search" | "dialog">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
autoFetch: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
model: {
|
|
41
|
+
type: PropType<import("@dt-frames/core").Recordable<any>>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
layout: {
|
|
45
|
+
type: PropType<"vertical" | "horizontal" | "inline">;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
labelWidth: {
|
|
49
|
+
type: PropType<string | number>;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
enLabelWidth: {
|
|
53
|
+
type: PropType<string | number>;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
labelAlign: {
|
|
57
|
+
type: PropType<"left" | "right">;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
labelCol: {
|
|
61
|
+
type: PropType<Partial<import('../../form/src/types/form.type').ColEx>>;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
wrapperCol: {
|
|
65
|
+
type: PropType<Partial<import('../../form/src/types/form.type').ColEx>>;
|
|
66
|
+
default: () => {};
|
|
67
|
+
};
|
|
68
|
+
rowProps: {
|
|
69
|
+
type: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
70
|
+
align: PropType<"stretch" | "bottom" | "top" | "middle">;
|
|
71
|
+
justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
72
|
+
prefixCls: StringConstructor;
|
|
73
|
+
gutter: {
|
|
74
|
+
type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
75
|
+
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
76
|
+
};
|
|
77
|
+
wrap: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: any;
|
|
80
|
+
};
|
|
81
|
+
}>>>;
|
|
82
|
+
default: () => {};
|
|
83
|
+
};
|
|
84
|
+
colProps: {
|
|
85
|
+
type: PropType<Partial<import('../../form/src/types/form.type').ColEx>>;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
size: {
|
|
89
|
+
type: PropType<"small" | "middle" | "large">;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
disabled: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
compact: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: any;
|
|
99
|
+
};
|
|
100
|
+
schemas: {
|
|
101
|
+
type: PropType<FormSchema[]>;
|
|
102
|
+
default: () => any[];
|
|
103
|
+
};
|
|
104
|
+
autoSearchOnEnter: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
alwaysShowLines: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
minShowColumn: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
showAdvancedButton: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
allowClear: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
scrollToFirstError: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
colon: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
loading: {
|
|
133
|
+
type: PropType<{
|
|
134
|
+
[key: string]: Ref<boolean>;
|
|
135
|
+
}>;
|
|
136
|
+
default: () => {
|
|
137
|
+
onSearch: Ref<boolean>;
|
|
138
|
+
onReset: Ref<boolean>;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
onSearch: {
|
|
142
|
+
type: PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
143
|
+
default: (params: import("@dt-frames/core").Recordable<any>) => void;
|
|
144
|
+
};
|
|
145
|
+
onReset: {
|
|
146
|
+
type: PropType<(params: import("@dt-frames/core").Recordable<any>) => void>;
|
|
147
|
+
default: (params: import("@dt-frames/core").Recordable<any>) => void;
|
|
148
|
+
};
|
|
149
|
+
buttons: {
|
|
150
|
+
type: PropType<boolean | ButtonProps[]>;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
resetFunc: {
|
|
154
|
+
type: PropType<() => void>;
|
|
155
|
+
};
|
|
156
|
+
registerInstance: {
|
|
157
|
+
type: PropType<(instance: import("../../form/src/types/actions.type").FormActionType) => void>;
|
|
158
|
+
};
|
|
159
|
+
}>>>>;
|
|
160
|
+
default: () => {};
|
|
161
|
+
};
|
|
162
|
+
primaryKey: {
|
|
163
|
+
type: PropType<String | Number>;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
actType: {
|
|
167
|
+
type: PropType<Ref<string>>;
|
|
168
|
+
};
|
|
169
|
+
onSave: {
|
|
170
|
+
type: PropType<() => void>;
|
|
171
|
+
default: () => {};
|
|
172
|
+
};
|
|
173
|
+
onDeletes: {
|
|
174
|
+
type: PropType<(keys: Key[]) => void>;
|
|
175
|
+
default: (keys: Key[]) => {};
|
|
176
|
+
};
|
|
177
|
+
onQueryById: {
|
|
178
|
+
type: PropType<(id: Key) => Promise<any>>;
|
|
179
|
+
default: (id: Key) => {};
|
|
180
|
+
};
|
|
181
|
+
onRegister: {
|
|
182
|
+
type: PropType<RegisterFn>;
|
|
183
|
+
};
|
|
184
|
+
registerInstance: {
|
|
185
|
+
type: PropType<(instance: CurdActionType) => void>;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormActionType } from '../../../form/src/types/actions.type';
|
|
2
|
+
import { basicProps } from '../../../modal/src/props';
|
|
3
|
+
import { Recordable } from "@dt-frames/core";
|
|
4
|
+
import { ExtractPropTypes, PropType } from "vue";
|
|
5
|
+
export declare type CurdActionType = {
|
|
6
|
+
add: () => void;
|
|
7
|
+
del: (params: {
|
|
8
|
+
row: Recordable;
|
|
9
|
+
index: Number;
|
|
10
|
+
}) => void;
|
|
11
|
+
dels: (ids: PropType<String | Number>[]) => void;
|
|
12
|
+
update: (params: {
|
|
13
|
+
row: Recordable;
|
|
14
|
+
index: Number;
|
|
15
|
+
}) => void;
|
|
16
|
+
closeModal: () => void;
|
|
17
|
+
setModalProps: (props: Partial<ExtractPropTypes<typeof basicProps>>) => void;
|
|
18
|
+
curdFormMethods: FormActionType;
|
|
19
|
+
};
|