hs-admin-ui 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/business/bcForm/baseForm.vue.d.ts +39 -0
- package/dist/types/components/business/bcForm/bcForm.vue.d.ts +37 -0
- package/dist/types/components/business/bcForm/type.d.ts +16 -0
- package/dist/types/components/business/bcFormTable/bcFormTable.vue.d.ts +101 -0
- package/dist/types/components/business/bcFormTable/bcTable.vue.d.ts +32 -0
- package/dist/types/components/business/bcFormTable/components/contextBody/contextBody.vue.d.ts +45 -0
- package/dist/types/components/business/bcFormTable/components/contextBody/useContextMenu.d.ts +20 -0
- package/dist/types/components/business/bcFormTable/components/form/components/sortForm/index.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/components/form/components/sortForm/sortForm.vue.d.ts +19 -0
- package/dist/types/components/business/bcFormTable/components/form/formSearchBtn.vue.d.ts +76 -0
- package/dist/types/components/business/bcFormTable/components/index.d.ts +6 -0
- package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/index.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/components/table/components/sortColumn/sortColumn.vue.d.ts +21 -0
- package/dist/types/components/business/bcFormTable/components/table/table.vue.d.ts +59 -0
- package/dist/types/components/business/bcFormTable/components/table/useTable.d.ts +16 -0
- package/dist/types/components/business/bcFormTable/components/table/useTableHeight.d.ts +11 -0
- package/dist/types/components/business/bcFormTable/components/tabs/tabs.vue.d.ts +25 -0
- package/dist/types/components/business/bcFormTable/methods/cellDetailMethod.d.ts +3 -0
- package/dist/types/components/business/bcFormTable/methods/filterAgeMethod.d.ts +3 -0
- package/dist/types/components/business/bcFormTable/methods/footerMethod.d.ts +4 -0
- package/dist/types/components/business/bcFormTable/methods/formBtnMethod.d.ts +8 -0
- package/dist/types/components/business/bcFormTable/methods/index.d.ts +2 -0
- package/dist/types/components/business/bcFormTable/utils/exportSelected.d.ts +11 -0
- package/dist/types/components/business/bcFormTable/utils/onFormKey.d.ts +17 -0
- package/dist/types/components/business/bcFormTable/utils/onTableKey.d.ts +17 -0
- package/dist/types/components/business/bcFormTable/utils/parseTable.d.ts +108 -0
- package/dist/types/components/business/bcFormTable/utils/store.d.ts +2937 -0
- package/dist/types/components/business/bcFormTable/utils/useButon.d.ts +13 -0
- package/dist/types/components/business/bcFormTable/utils/useTableHeight.d.ts +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ICustomData, IFormData } from '../../../types';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
data: IFormData.Form;
|
|
6
|
+
}
|
|
7
|
+
declare function getInstance(): any;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
getInstance: typeof getInstance;
|
|
10
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
|
|
11
|
+
data: IFormData.Form<keyof IFormData.FormItemTypeMap>;
|
|
12
|
+
fieldID: string;
|
|
13
|
+
config: ICustomData.FormItemConfigData;
|
|
14
|
+
update: (val: string) => void;
|
|
15
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
16
|
+
data: IFormData.Form<keyof IFormData.FormItemTypeMap>;
|
|
17
|
+
label: string;
|
|
18
|
+
isShowLabel: boolean;
|
|
19
|
+
grid: number;
|
|
20
|
+
fieldID: string;
|
|
21
|
+
formItemType: keyof IFormData.FormItemTypeMap;
|
|
22
|
+
attrs: IFormData.FormAttr;
|
|
23
|
+
config: IFormData.ConfigFormItem[] | IFormData.ConfigSlotItem | IFormData.ConfigComponentItem;
|
|
24
|
+
}) => any>>>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { IFormInstance } from './type';
|
|
3
|
+
import { default as IFormData } from '../../../types/form';
|
|
4
|
+
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
data: IFormData.Form<keyof IFormData.FormItemTypeMap>;
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
ready: (params: IFormInstance) => void;
|
|
9
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
data: IFormData.Form<keyof IFormData.FormItemTypeMap>;
|
|
11
|
+
}>>> & {
|
|
12
|
+
onReady?: ((params: IFormInstance) => any) | undefined;
|
|
13
|
+
}, {}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
14
|
+
data: IFormData.Form<keyof IFormData.FormItemTypeMap>;
|
|
15
|
+
label: string;
|
|
16
|
+
isShowLabel: boolean;
|
|
17
|
+
grid: number;
|
|
18
|
+
fieldID: string;
|
|
19
|
+
formItemType: keyof IFormData.FormItemTypeMap;
|
|
20
|
+
attrs: IFormData.FormAttr;
|
|
21
|
+
config: IFormData.ConfigFormItem[] | IFormData.ConfigSlotItem | IFormData.ConfigComponentItem;
|
|
22
|
+
}) => any>>>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IFormData, IAuthData } from '../../../types';
|
|
2
|
+
import { Ref, ComputedRef } from 'vue';
|
|
3
|
+
import { default as ICustomData } from '../../../types/customData';
|
|
4
|
+
import { FormInstance } from 'element-plus';
|
|
5
|
+
|
|
6
|
+
export interface IFormInstance {
|
|
7
|
+
/** 表单数据 */
|
|
8
|
+
data: ComputedRef<IFormData.Data>;
|
|
9
|
+
/** 表单实例方法,包含校验,清空,重置 */
|
|
10
|
+
getInstance: () => FormInstance;
|
|
11
|
+
/** 表单配置数据 */
|
|
12
|
+
formData: Ref<IFormData.Form>;
|
|
13
|
+
/** 表单提交验证,传参会覆盖本身参数 */
|
|
14
|
+
submit: (param?: ICustomData.Data) => Promise<IFormData.Data>;
|
|
15
|
+
configData?: IAuthData.Auth;
|
|
16
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { TableParams } from './utils/parseTable';
|
|
2
|
+
import { ICustomData } from '../../../types';
|
|
3
|
+
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
6
|
+
hideBtn: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
hideSearch: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
data: {
|
|
15
|
+
type: PropType<ICustomData.FormTable>;
|
|
16
|
+
};
|
|
17
|
+
isConfig: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
validate: () => any;
|
|
23
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
|
+
ready: (params: TableParams) => void;
|
|
25
|
+
btnClick: (params: string) => void;
|
|
26
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
27
|
+
hideBtn: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
hideSearch: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
data: {
|
|
36
|
+
type: PropType<ICustomData.FormTable>;
|
|
37
|
+
};
|
|
38
|
+
isConfig: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
}>> & {
|
|
43
|
+
onReady?: ((params: TableParams) => any) | undefined;
|
|
44
|
+
onBtnClick?: ((params: string) => any) | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
isConfig: boolean;
|
|
47
|
+
hideBtn: boolean;
|
|
48
|
+
hideSearch: boolean;
|
|
49
|
+
}, {}>, Partial<Record<NonNullable<string | number>, (_: {
|
|
50
|
+
name: string;
|
|
51
|
+
key: string;
|
|
52
|
+
isSlot: boolean;
|
|
53
|
+
isApply: boolean;
|
|
54
|
+
isShow: boolean;
|
|
55
|
+
fieldShow: boolean;
|
|
56
|
+
userFieldShow: boolean;
|
|
57
|
+
iconPosition: "left" | "right";
|
|
58
|
+
btnIcon: string;
|
|
59
|
+
textColor: string;
|
|
60
|
+
fnName: Function;
|
|
61
|
+
param: string;
|
|
62
|
+
field_id?: string | undefined;
|
|
63
|
+
size?: "small" | "default" | "large" | undefined;
|
|
64
|
+
type?: "text" | "success" | "warning" | "info" | "primary" | "danger" | undefined;
|
|
65
|
+
plain?: boolean | undefined;
|
|
66
|
+
text?: boolean | undefined;
|
|
67
|
+
bg?: boolean | undefined;
|
|
68
|
+
link?: boolean | undefined;
|
|
69
|
+
round?: boolean | undefined;
|
|
70
|
+
circle?: boolean | undefined;
|
|
71
|
+
loading?: boolean | undefined;
|
|
72
|
+
'loading-icon'?: string | undefined;
|
|
73
|
+
disabled?: boolean | undefined;
|
|
74
|
+
icon?: string | undefined;
|
|
75
|
+
autofocus?: boolean | undefined;
|
|
76
|
+
'native-type'?: string | undefined;
|
|
77
|
+
'auto-insert-space'?: boolean | undefined;
|
|
78
|
+
color?: string | undefined;
|
|
79
|
+
dark?: boolean | undefined;
|
|
80
|
+
tag?: string | undefined;
|
|
81
|
+
}) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
|
|
82
|
+
customeContent?(_: {
|
|
83
|
+
btns?: ICustomData.Btns[] | undefined;
|
|
84
|
+
mid?: string | undefined;
|
|
85
|
+
uid?: string | undefined;
|
|
86
|
+
is_auth?: string | undefined;
|
|
87
|
+
project_code?: string | undefined;
|
|
88
|
+
config_version?: number | undefined;
|
|
89
|
+
config_type?: "1" | "2" | undefined;
|
|
90
|
+
config_unique_id?: string | undefined;
|
|
91
|
+
config_name?: string | undefined;
|
|
92
|
+
form?: ICustomData.Form | undefined;
|
|
93
|
+
tables?: ICustomData.Table[] | undefined;
|
|
94
|
+
}): any;
|
|
95
|
+
}>;
|
|
96
|
+
export default _default;
|
|
97
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
98
|
+
new (): {
|
|
99
|
+
$slots: S;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { TableInstance } from './utils/parseTable';
|
|
3
|
+
import { BtnEvent } from './utils/useButon';
|
|
4
|
+
import { ICustomData } from '../../../types';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
data: ICustomData.FormTable | undefined;
|
|
8
|
+
/** 是否允许自定义配置,以实现按钮事件自定义 */
|
|
9
|
+
isConfig?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
+
ready: (params: TableInstance) => void;
|
|
13
|
+
btnClick: (params: BtnEvent) => void;
|
|
14
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
15
|
+
onReady?: ((params: TableInstance) => any) | undefined;
|
|
16
|
+
onBtnClick?: ((params: BtnEvent) => any) | undefined;
|
|
17
|
+
}, {}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
package/dist/types/components/business/bcFormTable/components/contextBody/contextBody.vue.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Menu } from './useContextMenu';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
menu: Array<Menu>;
|
|
6
|
+
target?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
getMenu?: () => Menu[];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
select: (...args: any[]) => void;
|
|
14
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}>>> & {
|
|
17
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
}, {}>, {
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as contextBody } from './contextBody.vue';
|
|
2
|
+
import { ComponentAttr, ICustomData } from '../../../../../types';
|
|
3
|
+
import { Ref, ComputedRef } from 'vue';
|
|
4
|
+
|
|
5
|
+
export interface Menu {
|
|
6
|
+
label: string | ComputedRef;
|
|
7
|
+
value: string;
|
|
8
|
+
click?: (e: ICustomData.ANY) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useContextMenu(container: Ref<HTMLElement | undefined>, props: ComponentAttr.Props<typeof contextBody>): {
|
|
11
|
+
x: Ref<number>;
|
|
12
|
+
y: Ref<number>;
|
|
13
|
+
isshow: Ref<boolean>;
|
|
14
|
+
menuList: Ref<{
|
|
15
|
+
label: any;
|
|
16
|
+
value: string;
|
|
17
|
+
click?: ((e: any) => void) | undefined;
|
|
18
|
+
}[]>;
|
|
19
|
+
mouseEvent: Ref<MouseEvent | undefined>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
id: string;
|
|
4
|
+
mid: string;
|
|
5
|
+
uid?: string;
|
|
6
|
+
close: Function;
|
|
7
|
+
refreshData: Function;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { ICustomData } from '../../../../../types';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
btns: ICustomData.Btns[];
|
|
6
|
+
isConfig?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
9
|
+
btns: () => never[];
|
|
10
|
+
isConfig: boolean;
|
|
11
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
+
btnClick: (...args: any[]) => void;
|
|
13
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
|
+
btns: () => never[];
|
|
15
|
+
isConfig: boolean;
|
|
16
|
+
}>>> & {
|
|
17
|
+
onBtnClick?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
btns: ICustomData.Btns[];
|
|
20
|
+
isConfig: boolean;
|
|
21
|
+
}, {}>, Partial<Record<string, (_: {
|
|
22
|
+
name: string;
|
|
23
|
+
key: string;
|
|
24
|
+
isSlot: boolean;
|
|
25
|
+
isApply: boolean;
|
|
26
|
+
isShow: boolean;
|
|
27
|
+
fieldShow: boolean;
|
|
28
|
+
userFieldShow: boolean;
|
|
29
|
+
iconPosition: "left" | "right";
|
|
30
|
+
btnIcon: string;
|
|
31
|
+
textColor: string;
|
|
32
|
+
fnName: Function;
|
|
33
|
+
param: string;
|
|
34
|
+
field_id?: string | undefined;
|
|
35
|
+
size?: "small" | "default" | "large" | undefined;
|
|
36
|
+
type?: "text" | "success" | "warning" | "info" | "primary" | "danger" | undefined;
|
|
37
|
+
plain?: boolean | undefined;
|
|
38
|
+
text?: boolean | undefined;
|
|
39
|
+
bg?: boolean | undefined;
|
|
40
|
+
link?: boolean | undefined;
|
|
41
|
+
round?: boolean | undefined;
|
|
42
|
+
circle?: boolean | undefined;
|
|
43
|
+
loading?: boolean | undefined;
|
|
44
|
+
'loading-icon'?: string | undefined;
|
|
45
|
+
disabled?: boolean | undefined;
|
|
46
|
+
icon?: string | undefined;
|
|
47
|
+
autofocus?: boolean | undefined;
|
|
48
|
+
'native-type'?: string | undefined;
|
|
49
|
+
'auto-insert-space'?: boolean | undefined;
|
|
50
|
+
color?: string | undefined;
|
|
51
|
+
dark?: boolean | undefined;
|
|
52
|
+
tag?: string | undefined;
|
|
53
|
+
}) => any>>>;
|
|
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: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
59
|
+
} : {
|
|
60
|
+
type: 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,6 @@
|
|
|
1
|
+
export { default as FormSearchBtn } from './form/formSearchBtn.vue';
|
|
2
|
+
export { default as FormSearch } from './form/formSearch.vue';
|
|
3
|
+
export { default as FormDrag } from './form/formDrag.vue';
|
|
4
|
+
export { default as FormTable } from './table/table.vue';
|
|
5
|
+
export { default as FormTabs } from './tabs/tabs.vue';
|
|
6
|
+
export { default as ContextBody } from './contextBody/contextBody.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
uniqueId: string;
|
|
4
|
+
mid: string;
|
|
5
|
+
id: string;
|
|
6
|
+
uid?: string;
|
|
7
|
+
close: Function;
|
|
8
|
+
refreshData: Function;
|
|
9
|
+
proxy?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { VxeTableConstructor, VxeTablePrivateMethods, VxeGridConstructor } from 'vxe-table';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ICustomData } from '../../../../../types';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
id: string;
|
|
7
|
+
uniqueId: string;
|
|
8
|
+
mid: string;
|
|
9
|
+
uid?: string;
|
|
10
|
+
baseData: ICustomData.TableBaseData;
|
|
11
|
+
tableData: ICustomData.Data[];
|
|
12
|
+
tableConfig: ICustomData.TableItem[];
|
|
13
|
+
}
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
+
ready: (...args: any[]) => void;
|
|
16
|
+
"cell-click": (...args: any[]) => void;
|
|
17
|
+
"header-cell-click": (...args: any[]) => void;
|
|
18
|
+
"page-change": (...args: any[]) => void;
|
|
19
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
20
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onHeader-cell-click"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
"onPage-change"?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}, {}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<string, (_: {
|
|
25
|
+
$table: VxeTableConstructor<any> & VxeTablePrivateMethods<any>;
|
|
26
|
+
$grid: VxeGridConstructor<any> | null;
|
|
27
|
+
seq: string | number;
|
|
28
|
+
rowid: string;
|
|
29
|
+
row: any;
|
|
30
|
+
rowIndex: number;
|
|
31
|
+
$rowIndex: number;
|
|
32
|
+
_rowIndex: number;
|
|
33
|
+
column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
|
|
34
|
+
columnIndex: number;
|
|
35
|
+
$columnIndex: number;
|
|
36
|
+
_columnIndex: number;
|
|
37
|
+
fixed: import("vxe-table").VxeColumnPropTypes.Fixed;
|
|
38
|
+
type: string;
|
|
39
|
+
isHidden: boolean;
|
|
40
|
+
level: number;
|
|
41
|
+
visibleData: any[];
|
|
42
|
+
data: any[];
|
|
43
|
+
items: any[];
|
|
44
|
+
}) => any>> & Partial<Record<string, (_: any) => any>>>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as BcTable } from './bcTable.vue';
|
|
2
|
+
import { ICustomData, ComponentAttr } from '../../../../../types';
|
|
3
|
+
import { VxeTableDefines, VxeTableInstance, VxePagerDefines, VxeColumnSlotTypes } from 'vxe-table';
|
|
4
|
+
import { Ref } from 'vue';
|
|
5
|
+
|
|
6
|
+
export type EmitEvent = 'ready' | 'cell-click' | 'header-cell-click' | 'page-change';
|
|
7
|
+
export declare function useTable(props: ComponentAttr.Props<typeof BcTable>, tableApi: Ref<VxeTableInstance | undefined>, emit: (event: EmitEvent, ...args: ICustomData.ANY[]) => void): {
|
|
8
|
+
handleCellClick: (params: VxeTableDefines.CellClickEventParams) => void;
|
|
9
|
+
headerCellClick: (params: VxeTableDefines.HeaderCellClickParams) => void;
|
|
10
|
+
headerBtnClick: (btn: ICustomData.BtnData, scopeData: VxeColumnSlotTypes.DefaultSlotParams) => void;
|
|
11
|
+
pageChange: (params: VxePagerDefines.PageChangeEventParams) => void;
|
|
12
|
+
customeSeqMethod: (params: {
|
|
13
|
+
rowIndex: number;
|
|
14
|
+
}, baseData?: ICustomData.TableBaseData) => number;
|
|
15
|
+
getBaseData: (baseData: ICustomData.TableBaseData) => ICustomData.TableBaseData;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
import { VxeTableInstance } from 'vxe-table';
|
|
3
|
+
|
|
4
|
+
export declare function useTableHeight(): {
|
|
5
|
+
wrapRef: Ref<any>;
|
|
6
|
+
pagerRef: Ref<any>;
|
|
7
|
+
tableRef: Ref<VxeTableInstance | undefined>;
|
|
8
|
+
style: ComputedRef<{
|
|
9
|
+
height: string;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ICustomData } from '../../../../../types';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
5
|
+
active: PropType<any>;
|
|
6
|
+
tabs: {
|
|
7
|
+
type: PropType<ICustomData.Table[]>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
11
|
+
active: PropType<any>;
|
|
12
|
+
tabs: {
|
|
13
|
+
type: PropType<ICustomData.Table[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}>>, {}, {}>, {
|
|
17
|
+
left?(_: {}): any;
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICustomData } from '../../../../types';
|
|
2
|
+
|
|
3
|
+
interface ExportData {
|
|
4
|
+
projectCode: string;
|
|
5
|
+
templateName: string;
|
|
6
|
+
tableConfig: ICustomData.TableItemData[];
|
|
7
|
+
tableData: ICustomData.ANY[];
|
|
8
|
+
}
|
|
9
|
+
export declare const exportSelectedDownloadFile: ({ projectCode, templateName, tableConfig, tableData }: ExportData) => void;
|
|
10
|
+
export declare function downloadFile(data: Record<'template_name', string>, projectCode: string): Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as BcFormTable } from '../bcFormTable.vue';
|
|
2
|
+
import { ICustomData, ComponentAttr } from '../../../../types';
|
|
3
|
+
import { VxeTableInstance } from 'vxe-table';
|
|
4
|
+
import { Ref, ComputedRef } from 'vue';
|
|
5
|
+
|
|
6
|
+
export declare function onFormKey(formRef: Ref<ICustomData.ANY>, tablesRef: Ref<Record<string, VxeTableInstance>>, activeTabs: Ref<string>, props: ComponentAttr.Props<typeof BcFormTable>): {
|
|
7
|
+
isShowDrag: Ref<boolean>;
|
|
8
|
+
menuForm: ({
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
click: () => void;
|
|
12
|
+
} | {
|
|
13
|
+
label: ComputedRef<"完成排序" | "排序设置">;
|
|
14
|
+
value: string;
|
|
15
|
+
click: () => Promise<void>;
|
|
16
|
+
})[];
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as BcFormTable } from '../bcFormTable.vue';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { VxeTableInstance, VxePagerDefines } from 'vxe-table';
|
|
4
|
+
import { ICustomData, ComponentAttr } from '../../../../types';
|
|
5
|
+
|
|
6
|
+
export declare const tableIndex: {
|
|
7
|
+
rowIndex: number;
|
|
8
|
+
columnIndex: number;
|
|
9
|
+
};
|
|
10
|
+
export declare function onTableKey(formRef: Ref<ICustomData.ANY>, tablesRef: Ref<Record<string, VxeTableInstance>>, activeTabs: Ref<string>, props: ComponentAttr.Props<typeof BcFormTable>): {
|
|
11
|
+
menuTable: {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
click: (val: MouseEvent) => void;
|
|
15
|
+
}[];
|
|
16
|
+
onPageChange: (params: VxePagerDefines.PageChangeEventParams) => Promise<void>;
|
|
17
|
+
};
|