@bscjc/webui 1.4.1 → 1.5.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.
Files changed (46) hide show
  1. package/dist/components/JcCascader/index.d.ts +25 -187
  2. package/dist/components/JcCascader/index.vue.d.ts +37 -100
  3. package/dist/components/JcColumnConfig/index.d.ts +7 -106
  4. package/dist/components/JcColumnConfig/index.vue.d.ts +23 -71
  5. package/dist/components/JcDatePicker/index.d.ts +24 -105
  6. package/dist/components/JcDatePicker/index.vue.d.ts +26 -58
  7. package/dist/components/JcImportButton/index.d.ts +14 -41
  8. package/dist/components/JcImportButton/index.vue.d.ts +19 -26
  9. package/dist/components/JcImportDialog/index.d.ts +14 -74
  10. package/dist/components/JcImportDialog/index.vue.d.ts +25 -48
  11. package/dist/components/JcInputComplex/index.d.ts +48 -90
  12. package/dist/components/JcInputComplex/index.vue.d.ts +32 -48
  13. package/dist/components/JcInputSwitch/index.d.ts +42 -90
  14. package/dist/components/JcInputSwitch/index.vue.d.ts +30 -48
  15. package/dist/components/JcMoreQueryContain/index.d.ts +14 -197
  16. package/dist/components/JcMoreQueryContain/index.vue.d.ts +23 -88
  17. package/dist/components/JcSelectQuery/index.d.ts +19 -178
  18. package/dist/components/JcSelectQuery/index.vue.d.ts +37 -106
  19. package/dist/components/JcTagQuery/index.d.ts +4 -19
  20. package/dist/components/JcTagQuery/index.vue.d.ts +7 -12
  21. package/dist/es/index.mjs +2102 -2172
  22. package/dist/index.css +2 -2
  23. package/dist/index.d.ts +7 -1
  24. package/dist/lib/index.cjs +8 -8
  25. package/dist/types/components/JcCascader/index.d.ts +25 -187
  26. package/dist/types/components/JcCascader/index.vue.d.ts +37 -100
  27. package/dist/types/components/JcColumnConfig/index.d.ts +7 -106
  28. package/dist/types/components/JcColumnConfig/index.vue.d.ts +23 -71
  29. package/dist/types/components/JcDatePicker/index.d.ts +24 -105
  30. package/dist/types/components/JcDatePicker/index.vue.d.ts +26 -58
  31. package/dist/types/components/JcImportButton/index.d.ts +14 -41
  32. package/dist/types/components/JcImportButton/index.vue.d.ts +19 -26
  33. package/dist/types/components/JcImportDialog/index.d.ts +14 -74
  34. package/dist/types/components/JcImportDialog/index.vue.d.ts +25 -48
  35. package/dist/types/components/JcInputComplex/index.d.ts +51 -93
  36. package/dist/types/components/JcInputComplex/index.vue.d.ts +126 -141
  37. package/dist/types/components/JcInputSwitch/index.d.ts +45 -93
  38. package/dist/types/components/JcInputSwitch/index.vue.d.ts +74 -91
  39. package/dist/types/components/JcMoreQueryContain/index.d.ts +14 -197
  40. package/dist/types/components/JcMoreQueryContain/index.vue.d.ts +108 -172
  41. package/dist/types/components/JcSelectQuery/index.d.ts +19 -178
  42. package/dist/types/components/JcSelectQuery/index.vue.d.ts +137 -206
  43. package/dist/types/components/JcTagQuery/index.d.ts +4 -19
  44. package/dist/types/components/JcTagQuery/index.vue.d.ts +7 -12
  45. package/dist/types/index.d.ts +7 -1
  46. package/package.json +2 -2
@@ -1,138 +1,57 @@
1
1
  export declare const JcDatePicker: {
2
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
3
- fieldList: {
4
- type: import("vue").PropType<Array<{
5
- label: string;
6
- value: string;
7
- }>>;
8
- require: boolean;
9
- default: () => never[];
10
- };
11
- type: {
12
- type: import("vue").PropType<"daterange" | "monthrange">;
13
- default: string;
14
- validator: (value: string) => boolean;
15
- };
16
- size: {
17
- type: import("vue").PropType<"small" | "default" | "large">;
18
- default: string;
19
- validator: (value: string) => boolean;
20
- };
21
- width: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- injectionKey: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- }>> & Readonly<{
30
- onFieldChange?: ((...args: any[]) => any) | undefined;
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{
3
+ onFieldChange?: ((val: string) => any) | undefined;
31
4
  }>, {
32
- [x: string]: Function;
5
+ focus: () => void | undefined;
6
+ blur: () => void | undefined;
7
+ handleOpen: () => void | undefined;
8
+ handleClose: () => void | undefined;
33
9
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
- fieldChange: (...args: any[]) => void;
10
+ fieldChange: (val: string) => any;
35
11
  }, import("vue").PublicProps, {
36
12
  size: "small" | "default" | "large";
37
13
  injectionKey: string;
38
14
  width: string;
39
15
  type: "daterange" | "monthrange";
40
- fieldList: {
41
- label: string;
42
- value: string;
43
- }[];
44
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
16
+ fieldList: import("./index.vue").DatePickerFieldItem[];
17
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
45
18
  P: {};
46
19
  B: {};
47
20
  D: {};
48
21
  C: {};
49
22
  M: {};
50
23
  Defaults: {};
51
- }, Readonly<import("vue").ExtractPropTypes<{
52
- fieldList: {
53
- type: import("vue").PropType<Array<{
54
- label: string;
55
- value: string;
56
- }>>;
57
- require: boolean;
58
- default: () => never[];
59
- };
60
- type: {
61
- type: import("vue").PropType<"daterange" | "monthrange">;
62
- default: string;
63
- validator: (value: string) => boolean;
64
- };
65
- size: {
66
- type: import("vue").PropType<"small" | "default" | "large">;
67
- default: string;
68
- validator: (value: string) => boolean;
69
- };
70
- width: {
71
- type: StringConstructor;
72
- default: string;
73
- };
74
- injectionKey: {
75
- type: StringConstructor;
76
- default: string;
77
- };
78
- }>> & Readonly<{
79
- onFieldChange?: ((...args: any[]) => any) | undefined;
24
+ }, Readonly<import("./index.vue").Props> & Readonly<{
25
+ onFieldChange?: ((val: string) => any) | undefined;
80
26
  }>, {
81
- [x: string]: Function;
27
+ focus: () => void | undefined;
28
+ blur: () => void | undefined;
29
+ handleOpen: () => void | undefined;
30
+ handleClose: () => void | undefined;
82
31
  }, {}, {}, {}, {
83
32
  size: "small" | "default" | "large";
84
33
  injectionKey: string;
85
34
  width: string;
86
35
  type: "daterange" | "monthrange";
87
- fieldList: {
88
- label: string;
89
- value: string;
90
- }[];
36
+ fieldList: import("./index.vue").DatePickerFieldItem[];
91
37
  }>;
92
38
  __isFragment?: never;
93
39
  __isTeleport?: never;
94
40
  __isSuspense?: never;
95
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
96
- fieldList: {
97
- type: import("vue").PropType<Array<{
98
- label: string;
99
- value: string;
100
- }>>;
101
- require: boolean;
102
- default: () => never[];
103
- };
104
- type: {
105
- type: import("vue").PropType<"daterange" | "monthrange">;
106
- default: string;
107
- validator: (value: string) => boolean;
108
- };
109
- size: {
110
- type: import("vue").PropType<"small" | "default" | "large">;
111
- default: string;
112
- validator: (value: string) => boolean;
113
- };
114
- width: {
115
- type: StringConstructor;
116
- default: string;
117
- };
118
- injectionKey: {
119
- type: StringConstructor;
120
- default: string;
121
- };
122
- }>> & Readonly<{
123
- onFieldChange?: ((...args: any[]) => any) | undefined;
41
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{
42
+ onFieldChange?: ((val: string) => any) | undefined;
124
43
  }>, {
125
- [x: string]: Function;
44
+ focus: () => void | undefined;
45
+ blur: () => void | undefined;
46
+ handleOpen: () => void | undefined;
47
+ handleClose: () => void | undefined;
126
48
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
127
- fieldChange: (...args: any[]) => void;
49
+ fieldChange: (val: string) => any;
128
50
  }, string, {
129
51
  size: "small" | "default" | "large";
130
52
  injectionKey: string;
131
53
  width: string;
132
54
  type: "daterange" | "monthrange";
133
- fieldList: {
134
- label: string;
135
- value: string;
136
- }[];
55
+ fieldList: import("./index.vue").DatePickerFieldItem[];
137
56
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
138
57
  export default JcDatePicker;
@@ -1,67 +1,35 @@
1
- import type { PropType } from "vue";
2
- type fieldType = {
1
+ /** 字段选项类型 */
2
+ export interface DatePickerFieldItem {
3
3
  label: string;
4
4
  value: string;
5
- };
6
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
7
- fieldList: {
8
- type: PropType<Array<fieldType>>;
9
- require: boolean;
10
- default: () => never[];
11
- };
12
- type: {
13
- type: PropType<"daterange" | "monthrange">;
14
- default: string;
15
- validator: (value: string) => boolean;
16
- };
17
- size: {
18
- type: PropType<"small" | "default" | "large">;
19
- default: string;
20
- validator: (value: string) => boolean;
21
- };
22
- width: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- injectionKey: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- }>, {
31
- [x: string]: Function;
5
+ }
6
+ /** 组件 Props 类型 */
7
+ export interface Props {
8
+ /** 字段列表 */
9
+ fieldList: DatePickerFieldItem[];
10
+ /** 日期选择类型 */
11
+ type?: "daterange" | "monthrange";
12
+ /** 组件尺寸 */
13
+ size?: "small" | "default" | "large";
14
+ /** 日期选择器宽度 */
15
+ width?: string;
16
+ /** 自定义注入键值 */
17
+ injectionKey?: string;
18
+ }
19
+ declare const _default: import("vue").DefineComponent<Props, {
20
+ focus: () => void | undefined;
21
+ blur: () => void | undefined;
22
+ handleOpen: () => void | undefined;
23
+ handleClose: () => void | undefined;
32
24
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
- fieldChange: (...args: any[]) => void;
34
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
- fieldList: {
36
- type: PropType<Array<fieldType>>;
37
- require: boolean;
38
- default: () => never[];
39
- };
40
- type: {
41
- type: PropType<"daterange" | "monthrange">;
42
- default: string;
43
- validator: (value: string) => boolean;
44
- };
45
- size: {
46
- type: PropType<"small" | "default" | "large">;
47
- default: string;
48
- validator: (value: string) => boolean;
49
- };
50
- width: {
51
- type: StringConstructor;
52
- default: string;
53
- };
54
- injectionKey: {
55
- type: StringConstructor;
56
- default: string;
57
- };
58
- }>> & Readonly<{
59
- onFieldChange?: ((...args: any[]) => any) | undefined;
25
+ fieldChange: (val: string) => any;
26
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
27
+ onFieldChange?: ((val: string) => any) | undefined;
60
28
  }>, {
61
29
  size: "small" | "default" | "large";
62
30
  injectionKey: string;
63
31
  width: string;
64
32
  type: "daterange" | "monthrange";
65
- fieldList: fieldType[];
66
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
+ fieldList: DatePickerFieldItem[];
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
67
35
  export default _default;
@@ -1,61 +1,34 @@
1
1
  export declare const JcImportButton: {
2
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
3
- btnName: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- uploadFileFn: {
8
- type: import("vue").PropType<(data: any) => Promise<any>>;
9
- required: true;
10
- };
11
- }>> & Readonly<{
12
- onOnError?: ((...args: any[]) => any) | undefined;
13
- onOnSuccess?: ((...args: any[]) => any) | undefined;
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{
3
+ onOnError?: (() => any) | undefined;
4
+ onOnSuccess?: (() => any) | undefined;
14
5
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- onError: (...args: any[]) => void;
16
- onSuccess: (...args: any[]) => void;
6
+ onError: () => any;
7
+ onSuccess: () => any;
17
8
  }, import("vue").PublicProps, {
18
9
  btnName: string;
19
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
10
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
20
11
  P: {};
21
12
  B: {};
22
13
  D: {};
23
14
  C: {};
24
15
  M: {};
25
16
  Defaults: {};
26
- }, Readonly<import("vue").ExtractPropTypes<{
27
- btnName: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- uploadFileFn: {
32
- type: import("vue").PropType<(data: any) => Promise<any>>;
33
- required: true;
34
- };
35
- }>> & Readonly<{
36
- onOnError?: ((...args: any[]) => any) | undefined;
37
- onOnSuccess?: ((...args: any[]) => any) | undefined;
17
+ }, Readonly<import("./index.vue").Props> & Readonly<{
18
+ onOnError?: (() => any) | undefined;
19
+ onOnSuccess?: (() => any) | undefined;
38
20
  }>, {}, {}, {}, {}, {
39
21
  btnName: string;
40
22
  }>;
41
23
  __isFragment?: never;
42
24
  __isTeleport?: never;
43
25
  __isSuspense?: never;
44
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
45
- btnName: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- uploadFileFn: {
50
- type: import("vue").PropType<(data: any) => Promise<any>>;
51
- required: true;
52
- };
53
- }>> & Readonly<{
54
- onOnError?: ((...args: any[]) => any) | undefined;
55
- onOnSuccess?: ((...args: any[]) => any) | undefined;
26
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{
27
+ onOnError?: (() => any) | undefined;
28
+ onOnSuccess?: (() => any) | undefined;
56
29
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
- onError: (...args: any[]) => void;
58
- onSuccess: (...args: any[]) => void;
30
+ onError: () => any;
31
+ onSuccess: () => any;
59
32
  }, string, {
60
33
  btnName: string;
61
34
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
@@ -1,29 +1,22 @@
1
- import { type PropType } from "vue";
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- btnName: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- uploadFileFn: {
8
- type: PropType<(data: any) => Promise<any>>;
9
- required: true;
10
- };
11
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- onError: (...args: any[]) => void;
13
- onSuccess: (...args: any[]) => void;
14
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
- btnName: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- uploadFileFn: {
20
- type: PropType<(data: any) => Promise<any>>;
21
- required: true;
22
- };
23
- }>> & Readonly<{
24
- onOnError?: ((...args: any[]) => any) | undefined;
25
- onOnSuccess?: ((...args: any[]) => any) | undefined;
1
+ /** 上传响应类型 */
2
+ export interface UploadResponse {
3
+ code: number;
4
+ message?: string;
5
+ }
6
+ /** 组件 Props 类型 */
7
+ export interface Props {
8
+ /** 按钮文本 */
9
+ btnName?: string;
10
+ /** 文件上传处理函数 */
11
+ uploadFileFn: (data: FormData) => Promise<UploadResponse>;
12
+ }
13
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ onError: () => any;
15
+ onSuccess: () => any;
16
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
17
+ onOnError?: (() => any) | undefined;
18
+ onOnSuccess?: (() => any) | undefined;
26
19
  }>, {
27
20
  btnName: string;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
22
  export default _default;
@@ -1,64 +1,24 @@
1
1
  export declare const JcImportDialog: {
2
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
3
- btnName: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- title: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- importInfoArr: {
12
- type: import("vue").PropType<string[]>;
13
- default: () => string[];
14
- };
15
- uploadFileFn: {
16
- type: import("vue").PropType<(data: any) => Promise<any>>;
17
- required: true;
18
- };
19
- downloadFileFn: {
20
- type: import("vue").PropType<() => Promise<any>>;
21
- };
22
- }>> & Readonly<{
23
- onOnError?: ((...args: any[]) => any) | undefined;
24
- onOnSuccess?: ((...args: any[]) => any) | undefined;
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{
3
+ onOnError?: (() => any) | undefined;
4
+ onOnSuccess?: (() => any) | undefined;
25
5
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- onError: (...args: any[]) => void;
27
- onSuccess: (...args: any[]) => void;
6
+ onError: () => any;
7
+ onSuccess: () => any;
28
8
  }, import("vue").PublicProps, {
29
9
  title: string;
30
10
  btnName: string;
31
11
  importInfoArr: string[];
32
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
12
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
33
13
  P: {};
34
14
  B: {};
35
15
  D: {};
36
16
  C: {};
37
17
  M: {};
38
18
  Defaults: {};
39
- }, Readonly<import("vue").ExtractPropTypes<{
40
- btnName: {
41
- type: StringConstructor;
42
- default: string;
43
- };
44
- title: {
45
- type: StringConstructor;
46
- default: string;
47
- };
48
- importInfoArr: {
49
- type: import("vue").PropType<string[]>;
50
- default: () => string[];
51
- };
52
- uploadFileFn: {
53
- type: import("vue").PropType<(data: any) => Promise<any>>;
54
- required: true;
55
- };
56
- downloadFileFn: {
57
- type: import("vue").PropType<() => Promise<any>>;
58
- };
59
- }>> & Readonly<{
60
- onOnError?: ((...args: any[]) => any) | undefined;
61
- onOnSuccess?: ((...args: any[]) => any) | undefined;
19
+ }, Readonly<import("./index.vue").Props> & Readonly<{
20
+ onOnError?: (() => any) | undefined;
21
+ onOnSuccess?: (() => any) | undefined;
62
22
  }>, {}, {}, {}, {}, {
63
23
  title: string;
64
24
  btnName: string;
@@ -67,32 +27,12 @@ export declare const JcImportDialog: {
67
27
  __isFragment?: never;
68
28
  __isTeleport?: never;
69
29
  __isSuspense?: never;
70
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
71
- btnName: {
72
- type: StringConstructor;
73
- default: string;
74
- };
75
- title: {
76
- type: StringConstructor;
77
- default: string;
78
- };
79
- importInfoArr: {
80
- type: import("vue").PropType<string[]>;
81
- default: () => string[];
82
- };
83
- uploadFileFn: {
84
- type: import("vue").PropType<(data: any) => Promise<any>>;
85
- required: true;
86
- };
87
- downloadFileFn: {
88
- type: import("vue").PropType<() => Promise<any>>;
89
- };
90
- }>> & Readonly<{
91
- onOnError?: ((...args: any[]) => any) | undefined;
92
- onOnSuccess?: ((...args: any[]) => any) | undefined;
30
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{
31
+ onOnError?: (() => any) | undefined;
32
+ onOnSuccess?: (() => any) | undefined;
93
33
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
94
- onError: (...args: any[]) => void;
95
- onSuccess: (...args: any[]) => void;
34
+ onError: () => any;
35
+ onSuccess: () => any;
96
36
  }, string, {
97
37
  title: string;
98
38
  btnName: string;
@@ -1,53 +1,30 @@
1
- import { type PropType } from "vue";
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- btnName: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- title: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- importInfoArr: {
12
- type: PropType<string[]>;
13
- default: () => string[];
14
- };
15
- uploadFileFn: {
16
- type: PropType<(data: any) => Promise<any>>;
17
- required: true;
18
- };
19
- downloadFileFn: {
20
- type: PropType<() => Promise<any>>;
21
- };
22
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
- onError: (...args: any[]) => void;
24
- onSuccess: (...args: any[]) => void;
25
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
- btnName: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- title: {
31
- type: StringConstructor;
32
- default: string;
33
- };
34
- importInfoArr: {
35
- type: PropType<string[]>;
36
- default: () => string[];
37
- };
38
- uploadFileFn: {
39
- type: PropType<(data: any) => Promise<any>>;
40
- required: true;
41
- };
42
- downloadFileFn: {
43
- type: PropType<() => Promise<any>>;
44
- };
45
- }>> & Readonly<{
46
- onOnError?: ((...args: any[]) => any) | undefined;
47
- onOnSuccess?: ((...args: any[]) => any) | undefined;
1
+ /** 上传/下载响应类型 */
2
+ export interface ImportDialogResponse {
3
+ code: number;
4
+ message?: string;
5
+ }
6
+ /** 组件 Props 类型 */
7
+ export interface Props {
8
+ /** 按钮文本 */
9
+ btnName?: string;
10
+ /** 弹窗标题 */
11
+ title?: string;
12
+ /** 导入提示信息列表 */
13
+ importInfoArr?: string[];
14
+ /** 文件上传处理函数 */
15
+ uploadFileFn: (data: FormData) => Promise<ImportDialogResponse>;
16
+ /** 模板下载处理函数 */
17
+ downloadFileFn?: () => Promise<ImportDialogResponse>;
18
+ }
19
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ onError: () => any;
21
+ onSuccess: () => any;
22
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
23
+ onOnError?: (() => any) | undefined;
24
+ onOnSuccess?: (() => any) | undefined;
48
25
  }>, {
49
26
  title: string;
50
27
  btnName: string;
51
28
  importInfoArr: string[];
52
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
30
  export default _default;