@wapri/element-pro 3.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/LICENSE +21 -0
- package/dist/CheckCard/Group.vue.d.ts +54 -0
- package/dist/CheckCard/context.d.ts +12 -0
- package/dist/CheckCard/index.d.ts +443 -0
- package/dist/CheckCard/index.vue.d.ts +53 -0
- package/dist/CheckCard/selection.d.ts +4 -0
- package/dist/CheckCard/types.d.ts +29 -0
- package/dist/ConfigProvider/context.d.ts +11 -0
- package/dist/ConfigProvider/index.d.ts +50 -0
- package/dist/ConfigProvider/index.vue.d.ts +28 -0
- package/dist/CropperUpload/CropperDialog.vue.d.ts +23 -0
- package/dist/CropperUpload/index.d.ts +241 -0
- package/dist/CropperUpload/index.vue.d.ts +81 -0
- package/dist/CropperUpload/types.d.ts +137 -0
- package/dist/CropperUpload/utils.d.ts +42 -0
- package/dist/DateQuickSelect/index.d.ts +65 -0
- package/dist/DateQuickSelect/index.vue.d.ts +55 -0
- package/dist/DateQuickSelect/types.d.ts +19 -0
- package/dist/DateQuickSelect/utils.d.ts +9 -0
- package/dist/DrawerForm/index.d.ts +201 -0
- package/dist/DrawerForm/index.vue.d.ts +76 -0
- package/dist/Ellipsis/index.d.ts +35 -0
- package/dist/Ellipsis/types.d.ts +23 -0
- package/dist/Layout/components/SidebarTrigger.vue.d.ts +21 -0
- package/dist/Layout/index.d.ts +147 -0
- package/dist/Layout/index.vue.d.ts +65 -0
- package/dist/Layout/types.d.ts +24 -0
- package/dist/MainContent/index.d.ts +115 -0
- package/dist/MainContent/index.vue.d.ts +51 -0
- package/dist/MainContent/types.d.ts +17 -0
- package/dist/ModalForm/index.d.ts +201 -0
- package/dist/ModalForm/index.vue.d.ts +76 -0
- package/dist/ProTable/components/ProTablePagination.vue.d.ts +43 -0
- package/dist/ProTable/components/ProTableSearchForm.vue.d.ts +34 -0
- package/dist/ProTable/components/ProTableSelectedFilters.vue.d.ts +21 -0
- package/dist/ProTable/components/ProTableSelectionActions.vue.d.ts +36 -0
- package/dist/ProTable/components/ProTableToolbar.vue.d.ts +47 -0
- package/dist/ProTable/composables/useProTableData.d.ts +34 -0
- package/dist/ProTable/composables/useProTableSelection.d.ts +10 -0
- package/dist/ProTable/composables/useStickyTable.d.ts +18 -0
- package/dist/ProTable/index.d.ts +412 -0
- package/dist/ProTable/index.vue.d.ts +54 -0
- package/dist/ProTable/types.d.ts +265 -0
- package/dist/ProTable/utils.d.ts +25 -0
- package/dist/ShareButton/index.d.ts +157 -0
- package/dist/ShareButton/index.vue.d.ts +60 -0
- package/dist/ShareButton/steps.d.ts +13 -0
- package/dist/ShareButton/types.d.ts +34 -0
- package/dist/Sidebar/components/SidebarGroup.vue.d.ts +53 -0
- package/dist/Sidebar/components/SidebarIcon.vue.d.ts +23 -0
- package/dist/Sidebar/components/SidebarItem.vue.d.ts +33 -0
- package/dist/Sidebar/components/SidebarItemContent.vue.d.ts +27 -0
- package/dist/Sidebar/components/SidebarLink.vue.d.ts +54 -0
- package/dist/Sidebar/components/SidebarLogo.vue.d.ts +48 -0
- package/dist/Sidebar/composables/useActiveMenuScroll.d.ts +18 -0
- package/dist/Sidebar/context.d.ts +10 -0
- package/dist/Sidebar/index.d.ts +350 -0
- package/dist/Sidebar/index.vue.d.ts +72 -0
- package/dist/Sidebar/types.d.ts +154 -0
- package/dist/Sidebar/utils.d.ts +16 -0
- package/dist/SvgIcon/iconfont.d.ts +11 -0
- package/dist/SvgIcon/index.d.ts +35 -0
- package/dist/SvgIcon/index.vue.d.ts +38 -0
- package/dist/TagSelector/index.d.ts +51 -0
- package/dist/TagSelector/index.vue.d.ts +49 -0
- package/dist/TagSelector/types.d.ts +6 -0
- package/dist/VH100/index.d.ts +40 -0
- package/dist/VH100/index.vue.d.ts +26 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.mjs +3985 -0
- package/dist/shared/overlayForm/types.d.ts +25 -0
- package/dist/shared/overlayForm/useOverlayForm.d.ts +18 -0
- package/dist/style.css +1 -0
- package/dist/utils/install.d.ts +10 -0
- package/package.json +39 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SidebarProps } from '../Sidebar/types';
|
|
2
|
+
|
|
3
|
+
/** Layout 头部配置 */
|
|
4
|
+
export interface LayoutHeaderConfig {
|
|
5
|
+
/** 头部是否固定:固定后头部不随内容滚动,宽度跟随侧栏状态自动让位 */
|
|
6
|
+
fixed?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Layout 组件 props */
|
|
9
|
+
export interface LayoutProps {
|
|
10
|
+
/** 透传给内部 Sidebar 的属性 */
|
|
11
|
+
sidebar?: SidebarProps;
|
|
12
|
+
/** 头部配置 */
|
|
13
|
+
header?: LayoutHeaderConfig;
|
|
14
|
+
/** 是否隐藏侧栏,隐藏时主内容区占满整行 */
|
|
15
|
+
sidebarHidden?: boolean;
|
|
16
|
+
/** 是否渲染内置的侧栏折叠按钮,可通过 trigger 插槽替换;侧栏隐藏时不渲染 */
|
|
17
|
+
trigger?: boolean;
|
|
18
|
+
/** 是否移动端布局,移动端侧栏为抽屉,折叠时整块滑出 */
|
|
19
|
+
mobile?: boolean;
|
|
20
|
+
/** 是否禁用过渡动画 */
|
|
21
|
+
withoutAnimation?: boolean;
|
|
22
|
+
/** 是否显示标签页,透传给 MainContent */
|
|
23
|
+
hasTagsView?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export declare const MainContent: import('../utils/install').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
mode: {
|
|
4
|
+
type: import('vue').PropType<import('..').SidebarMode>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
collapse: {
|
|
8
|
+
type: import('vue').PropType<boolean>;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
sidebarHide: {
|
|
12
|
+
type: import('vue').PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
mobile: {
|
|
16
|
+
type: import('vue').PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
withoutAnimation: {
|
|
20
|
+
type: import('vue').PropType<boolean>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
hasTagsView: {
|
|
24
|
+
type: import('vue').PropType<boolean>;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
28
|
+
mode: import('..').SidebarMode;
|
|
29
|
+
collapse: boolean;
|
|
30
|
+
sidebarHide: boolean;
|
|
31
|
+
mobile: boolean;
|
|
32
|
+
withoutAnimation: boolean;
|
|
33
|
+
hasTagsView: boolean;
|
|
34
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
mode: {
|
|
43
|
+
type: import('vue').PropType<import('..').SidebarMode>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
collapse: {
|
|
47
|
+
type: import('vue').PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
sidebarHide: {
|
|
51
|
+
type: import('vue').PropType<boolean>;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
mobile: {
|
|
55
|
+
type: import('vue').PropType<boolean>;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
withoutAnimation: {
|
|
59
|
+
type: import('vue').PropType<boolean>;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
hasTagsView: {
|
|
63
|
+
type: import('vue').PropType<boolean>;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
67
|
+
mode: import('..').SidebarMode;
|
|
68
|
+
collapse: boolean;
|
|
69
|
+
sidebarHide: boolean;
|
|
70
|
+
mobile: boolean;
|
|
71
|
+
withoutAnimation: boolean;
|
|
72
|
+
hasTagsView: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
__isFragment?: never;
|
|
75
|
+
__isTeleport?: never;
|
|
76
|
+
__isSuspense?: never;
|
|
77
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
+
mode: {
|
|
79
|
+
type: import('vue').PropType<import('..').SidebarMode>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
collapse: {
|
|
83
|
+
type: import('vue').PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
sidebarHide: {
|
|
87
|
+
type: import('vue').PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
mobile: {
|
|
91
|
+
type: import('vue').PropType<boolean>;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
withoutAnimation: {
|
|
95
|
+
type: import('vue').PropType<boolean>;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
hasTagsView: {
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
103
|
+
mode: import('..').SidebarMode;
|
|
104
|
+
collapse: boolean;
|
|
105
|
+
sidebarHide: boolean;
|
|
106
|
+
mobile: boolean;
|
|
107
|
+
withoutAnimation: boolean;
|
|
108
|
+
hasTagsView: boolean;
|
|
109
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
110
|
+
$slots: {
|
|
111
|
+
default?(_: {}): any;
|
|
112
|
+
};
|
|
113
|
+
})> & Record<string, unknown>;
|
|
114
|
+
export type { MainContentProps } from './types';
|
|
115
|
+
export default MainContent;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { MainContentProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MainContentProps>, {
|
|
7
|
+
mode: string;
|
|
8
|
+
collapse: boolean;
|
|
9
|
+
sidebarHide: boolean;
|
|
10
|
+
mobile: boolean;
|
|
11
|
+
withoutAnimation: boolean;
|
|
12
|
+
hasTagsView: boolean;
|
|
13
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MainContentProps>, {
|
|
14
|
+
mode: string;
|
|
15
|
+
collapse: boolean;
|
|
16
|
+
sidebarHide: boolean;
|
|
17
|
+
mobile: boolean;
|
|
18
|
+
withoutAnimation: boolean;
|
|
19
|
+
hasTagsView: boolean;
|
|
20
|
+
}>>> & Readonly<{}>, {
|
|
21
|
+
mode: import('..').SidebarMode;
|
|
22
|
+
collapse: boolean;
|
|
23
|
+
sidebarHide: boolean;
|
|
24
|
+
mobile: boolean;
|
|
25
|
+
withoutAnimation: boolean;
|
|
26
|
+
hasTagsView: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
+
} : {
|
|
35
|
+
type: import('vue').PropType<T[K]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type __VLS_WithDefaults<P, D> = {
|
|
40
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
41
|
+
default: D[K];
|
|
42
|
+
}> : P[K];
|
|
43
|
+
};
|
|
44
|
+
type __VLS_Prettify<T> = {
|
|
45
|
+
[K in keyof T]: T[K];
|
|
46
|
+
} & {};
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SidebarMode } from '../Sidebar/types';
|
|
2
|
+
|
|
3
|
+
/** MainContent 组件 props */
|
|
4
|
+
export interface MainContentProps {
|
|
5
|
+
/** 侧栏导航模式,`grouped` 时主内容区按分组导航宽度让位 */
|
|
6
|
+
mode?: SidebarMode;
|
|
7
|
+
/** 侧栏是否折叠 */
|
|
8
|
+
collapse?: boolean;
|
|
9
|
+
/** 侧栏是否隐藏,隐藏时主内容区占满整行 */
|
|
10
|
+
sidebarHide?: boolean;
|
|
11
|
+
/** 是否移动端布局,移动端侧栏为抽屉,主内容区不偏移 */
|
|
12
|
+
mobile?: boolean;
|
|
13
|
+
/** 是否禁用间距过渡动画 */
|
|
14
|
+
withoutAnimation?: boolean;
|
|
15
|
+
/** 是否显示标签页,输出 `has-tags-view` 类名供外部样式区分 */
|
|
16
|
+
hasTagsView?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
export declare const ModalForm: import('../utils/install').SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
title: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
};
|
|
6
|
+
cancelText: {
|
|
7
|
+
type: import('vue').PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
open: {
|
|
11
|
+
type: import('vue').PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
model: {
|
|
15
|
+
type: import('vue').PropType<Record<string, unknown>>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
formProps: {
|
|
19
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').FormProps, "model">>>;
|
|
20
|
+
};
|
|
21
|
+
onFinish: {
|
|
22
|
+
type: import('vue').PropType<(values: Record<string, unknown>) => boolean | void | Promise<boolean | void>>;
|
|
23
|
+
};
|
|
24
|
+
submitText: {
|
|
25
|
+
type: import('vue').PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
submitter: {
|
|
29
|
+
type: import('vue').PropType<boolean>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
resetOnClose: {
|
|
33
|
+
type: import('vue').PropType<boolean>;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
modalProps: {
|
|
37
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').DialogProps, "modelValue">>>;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onCancel?: (() => any) | undefined;
|
|
41
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
43
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
submit: () => Promise<boolean>;
|
|
46
|
+
resetFields: () => void | undefined;
|
|
47
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
48
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
49
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
+
cancel: () => void;
|
|
51
|
+
"update:open": (value: boolean) => void;
|
|
52
|
+
finish: (values: Record<string, unknown>) => void;
|
|
53
|
+
finishFailed: (error: unknown) => void;
|
|
54
|
+
}, import('vue').PublicProps, {
|
|
55
|
+
cancelText: string;
|
|
56
|
+
open: boolean;
|
|
57
|
+
submitText: string;
|
|
58
|
+
submitter: boolean;
|
|
59
|
+
resetOnClose: boolean;
|
|
60
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
61
|
+
P: {};
|
|
62
|
+
B: {};
|
|
63
|
+
D: {};
|
|
64
|
+
C: {};
|
|
65
|
+
M: {};
|
|
66
|
+
Defaults: {};
|
|
67
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
68
|
+
title: {
|
|
69
|
+
type: import('vue').PropType<string>;
|
|
70
|
+
};
|
|
71
|
+
cancelText: {
|
|
72
|
+
type: import('vue').PropType<string>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
open: {
|
|
76
|
+
type: import('vue').PropType<boolean>;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
model: {
|
|
80
|
+
type: import('vue').PropType<Record<string, unknown>>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
formProps: {
|
|
84
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').FormProps, "model">>>;
|
|
85
|
+
};
|
|
86
|
+
onFinish: {
|
|
87
|
+
type: import('vue').PropType<(values: Record<string, unknown>) => boolean | void | Promise<boolean | void>>;
|
|
88
|
+
};
|
|
89
|
+
submitText: {
|
|
90
|
+
type: import('vue').PropType<string>;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
submitter: {
|
|
94
|
+
type: import('vue').PropType<boolean>;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
resetOnClose: {
|
|
98
|
+
type: import('vue').PropType<boolean>;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
modalProps: {
|
|
102
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').DialogProps, "modelValue">>>;
|
|
103
|
+
};
|
|
104
|
+
}>> & Readonly<{
|
|
105
|
+
onCancel?: (() => any) | undefined;
|
|
106
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
107
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
108
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
submit: () => Promise<boolean>;
|
|
111
|
+
resetFields: () => void | undefined;
|
|
112
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
113
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
114
|
+
}, {}, {}, {}, {
|
|
115
|
+
cancelText: string;
|
|
116
|
+
open: boolean;
|
|
117
|
+
submitText: string;
|
|
118
|
+
submitter: boolean;
|
|
119
|
+
resetOnClose: boolean;
|
|
120
|
+
}>;
|
|
121
|
+
__isFragment?: never;
|
|
122
|
+
__isTeleport?: never;
|
|
123
|
+
__isSuspense?: never;
|
|
124
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
125
|
+
title: {
|
|
126
|
+
type: import('vue').PropType<string>;
|
|
127
|
+
};
|
|
128
|
+
cancelText: {
|
|
129
|
+
type: import('vue').PropType<string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
open: {
|
|
133
|
+
type: import('vue').PropType<boolean>;
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
model: {
|
|
137
|
+
type: import('vue').PropType<Record<string, unknown>>;
|
|
138
|
+
required: true;
|
|
139
|
+
};
|
|
140
|
+
formProps: {
|
|
141
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').FormProps, "model">>>;
|
|
142
|
+
};
|
|
143
|
+
onFinish: {
|
|
144
|
+
type: import('vue').PropType<(values: Record<string, unknown>) => boolean | void | Promise<boolean | void>>;
|
|
145
|
+
};
|
|
146
|
+
submitText: {
|
|
147
|
+
type: import('vue').PropType<string>;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
submitter: {
|
|
151
|
+
type: import('vue').PropType<boolean>;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
resetOnClose: {
|
|
155
|
+
type: import('vue').PropType<boolean>;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
158
|
+
modalProps: {
|
|
159
|
+
type: import('vue').PropType<Partial<Omit<import('element-plus').DialogProps, "modelValue">>>;
|
|
160
|
+
};
|
|
161
|
+
}>> & Readonly<{
|
|
162
|
+
onCancel?: (() => any) | undefined;
|
|
163
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
164
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
165
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
submit: () => Promise<boolean>;
|
|
168
|
+
resetFields: () => void | undefined;
|
|
169
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
170
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
171
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
172
|
+
cancel: () => void;
|
|
173
|
+
"update:open": (value: boolean) => void;
|
|
174
|
+
finish: (values: Record<string, unknown>) => void;
|
|
175
|
+
finishFailed: (error: unknown) => void;
|
|
176
|
+
}, string, {
|
|
177
|
+
cancelText: string;
|
|
178
|
+
open: boolean;
|
|
179
|
+
submitText: string;
|
|
180
|
+
submitter: boolean;
|
|
181
|
+
resetOnClose: boolean;
|
|
182
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
183
|
+
$slots: {
|
|
184
|
+
header?(_: {
|
|
185
|
+
close: () => void;
|
|
186
|
+
titleId: string;
|
|
187
|
+
titleClass: string;
|
|
188
|
+
}): any;
|
|
189
|
+
default?(_: {
|
|
190
|
+
model: Record<string, unknown>;
|
|
191
|
+
submitting: boolean;
|
|
192
|
+
}): any;
|
|
193
|
+
footer?(_: {
|
|
194
|
+
submit: () => Promise<boolean>;
|
|
195
|
+
cancel: () => void;
|
|
196
|
+
submitting: boolean;
|
|
197
|
+
}): any;
|
|
198
|
+
};
|
|
199
|
+
})> & Record<string, unknown>;
|
|
200
|
+
export type { ModalFormProps } from '../shared/overlayForm/types';
|
|
201
|
+
export default ModalForm;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ModalFormProps } from '../shared/overlayForm/types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
header?(_: {
|
|
5
|
+
close: () => void;
|
|
6
|
+
titleId: string;
|
|
7
|
+
titleClass: string;
|
|
8
|
+
}): any;
|
|
9
|
+
default?(_: {
|
|
10
|
+
model: Record<string, unknown>;
|
|
11
|
+
submitting: boolean;
|
|
12
|
+
}): any;
|
|
13
|
+
footer?(_: {
|
|
14
|
+
submit: () => Promise<boolean>;
|
|
15
|
+
cancel: () => void;
|
|
16
|
+
submitting: boolean;
|
|
17
|
+
}): any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalFormProps>, {
|
|
20
|
+
open: boolean;
|
|
21
|
+
submitText: string;
|
|
22
|
+
cancelText: string;
|
|
23
|
+
submitter: boolean;
|
|
24
|
+
resetOnClose: boolean;
|
|
25
|
+
}>>, {
|
|
26
|
+
submit: () => Promise<boolean>;
|
|
27
|
+
resetFields: () => void | undefined;
|
|
28
|
+
validate: () => import('element-plus').FormValidationResult | undefined;
|
|
29
|
+
clearValidate: (props?: import('element-plus/es/utils/typescript').Arrayable<import('element-plus').FormItemProp>) => void;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
cancel: () => void;
|
|
32
|
+
"update:open": (value: boolean) => void;
|
|
33
|
+
finish: (values: Record<string, unknown>) => void;
|
|
34
|
+
finishFailed: (error: unknown) => void;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalFormProps>, {
|
|
36
|
+
open: boolean;
|
|
37
|
+
submitText: string;
|
|
38
|
+
cancelText: string;
|
|
39
|
+
submitter: boolean;
|
|
40
|
+
resetOnClose: boolean;
|
|
41
|
+
}>>> & Readonly<{
|
|
42
|
+
onCancel?: (() => any) | undefined;
|
|
43
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
onFinish?: ((values: Record<string, unknown>) => any) | undefined;
|
|
45
|
+
onFinishFailed?: ((error: unknown) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
cancelText: string;
|
|
48
|
+
open: boolean;
|
|
49
|
+
submitText: string;
|
|
50
|
+
submitter: boolean;
|
|
51
|
+
resetOnClose: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
56
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
57
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
58
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: import('vue').PropType<T[K]>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
type __VLS_WithDefaults<P, D> = {
|
|
65
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
66
|
+
default: D[K];
|
|
67
|
+
}> : P[K];
|
|
68
|
+
};
|
|
69
|
+
type __VLS_Prettify<T> = {
|
|
70
|
+
[K in keyof T]: T[K];
|
|
71
|
+
} & {};
|
|
72
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PaginationConfig } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
page: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
total: number;
|
|
7
|
+
pagination?: false | PaginationConfig;
|
|
8
|
+
}>, {
|
|
9
|
+
pagination: undefined;
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
change: (page: number) => void;
|
|
12
|
+
pageSizeChange: (pageSize: number) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
page: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
total: number;
|
|
17
|
+
pagination?: false | PaginationConfig;
|
|
18
|
+
}>, {
|
|
19
|
+
pagination: undefined;
|
|
20
|
+
}>>> & Readonly<{
|
|
21
|
+
onChange?: ((page: number) => any) | undefined;
|
|
22
|
+
onPageSizeChange?: ((pageSize: number) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
pagination: false | PaginationConfig;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ProColumn, ProTableFormConfig, ProTableRequestContext, SearchConfig } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: <T extends object>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
5
|
+
readonly onReset?: (() => any) | undefined;
|
|
6
|
+
readonly onSubmit?: ((values: Record<string, unknown>, context: ProTableRequestContext) => any) | undefined;
|
|
7
|
+
readonly onFieldChange?: ((fieldKey: string, value: unknown, context: ProTableRequestContext) => any) | undefined;
|
|
8
|
+
readonly "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
|
|
10
|
+
columns: ProColumn<T>[];
|
|
11
|
+
modelValue: Record<string, unknown>;
|
|
12
|
+
search?: false | SearchConfig;
|
|
13
|
+
form?: ProTableFormConfig;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
collapsed?: boolean;
|
|
16
|
+
collapseActionInModeBar?: boolean;
|
|
17
|
+
}, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
18
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
19
|
+
getFieldsValue: () => Record<string, unknown>;
|
|
20
|
+
getRequestContext: () => ProTableRequestContext;
|
|
21
|
+
setFieldsValue: (nextValues: Record<string, unknown>) => void;
|
|
22
|
+
resetFields: (names?: string[]) => void;
|
|
23
|
+
}>): void;
|
|
24
|
+
attrs: any;
|
|
25
|
+
slots: ReturnType<() => {
|
|
26
|
+
selectedFilters?(_: {}): any;
|
|
27
|
+
searchActionLeft?(_: {}): any;
|
|
28
|
+
searchActionRight?(_: {}): any;
|
|
29
|
+
}>;
|
|
30
|
+
emit: ((evt: "reset") => void) & ((evt: "submit", values: Record<string, unknown>, context: ProTableRequestContext) => void) & ((evt: "fieldChange", fieldKey: string, value: unknown, context: ProTableRequestContext) => void) & ((evt: "update:collapsed", value: boolean) => void);
|
|
31
|
+
}>) => import('vue').VNode & {
|
|
32
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ProColumn, ProTableDateQuickSelection } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: <T extends object>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{
|
|
5
|
+
readonly onClear?: ((key: string) => any) | undefined;
|
|
6
|
+
readonly onClearAll?: (() => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
|
|
8
|
+
columns: ProColumn<T>[];
|
|
9
|
+
searchValues: Record<string, unknown>;
|
|
10
|
+
quickDateSelections?: Record<string, ProTableDateQuickSelection>;
|
|
11
|
+
/** 前缀文案,如"已筛选" */
|
|
12
|
+
title?: string;
|
|
13
|
+
}, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
|
|
14
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
15
|
+
attrs: any;
|
|
16
|
+
slots: ReturnType<() => {}>;
|
|
17
|
+
emit: ((evt: "clear", key: string) => void) & ((evt: "clearAll") => void);
|
|
18
|
+
}>) => import('vue').VNode & {
|
|
19
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Key } from '../types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {
|
|
5
|
+
selectedRowKeys: Key[];
|
|
6
|
+
selectedRows: unknown[];
|
|
7
|
+
clearSelected: () => void;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
selectedRowKeys: Key[];
|
|
12
|
+
selectedRows: unknown[];
|
|
13
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
clear: () => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
selectedRowKeys: Key[];
|
|
17
|
+
selectedRows: unknown[];
|
|
18
|
+
}>>> & Readonly<{
|
|
19
|
+
onClear?: (() => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AlertProps } from 'element-plus';
|
|
2
|
+
import { VNode, VNodeChild } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
headerTitle?(_: {}): any;
|
|
6
|
+
headerSubtitle?(_: {}): any;
|
|
7
|
+
toolbar?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
headerTitle?: VNodeChild;
|
|
11
|
+
headerSubtitle?: VNodeChild;
|
|
12
|
+
toolbarItems: VNodeChild[];
|
|
13
|
+
showReload: boolean;
|
|
14
|
+
headerAlert?: AlertProps;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
download?: boolean | string | VNode;
|
|
17
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
download: () => void;
|
|
19
|
+
reload: () => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
21
|
+
headerTitle?: VNodeChild;
|
|
22
|
+
headerSubtitle?: VNodeChild;
|
|
23
|
+
toolbarItems: VNodeChild[];
|
|
24
|
+
showReload: boolean;
|
|
25
|
+
headerAlert?: AlertProps;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
download?: boolean | string | VNode;
|
|
28
|
+
}>>> & Readonly<{
|
|
29
|
+
onDownload?: (() => any) | undefined;
|
|
30
|
+
onReload?: (() => any) | undefined;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|