@bscjc/webui 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +2098 -2167
  22. package/dist/index.css +2 -2
  23. package/dist/index.d.ts +3 -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 +3 -1
  46. package/package.json +2 -2
@@ -1,47 +1,20 @@
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, {
16
+ fieldList: import('./index.vue').DatePickerFieldItem[];
17
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
45
18
  datePickerRef: unknown;
46
19
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
47
20
  P: {};
@@ -50,91 +23,37 @@ export declare const JcDatePicker: {
50
23
  C: {};
51
24
  M: {};
52
25
  Defaults: {};
53
- }, Readonly<import('vue').ExtractPropTypes<{
54
- fieldList: {
55
- type: import('vue').PropType<Array<{
56
- label: string;
57
- value: string;
58
- }>>;
59
- require: boolean;
60
- default: () => never[];
61
- };
62
- type: {
63
- type: import('vue').PropType<"daterange" | "monthrange">;
64
- default: string;
65
- validator: (value: string) => boolean;
66
- };
67
- size: {
68
- type: import('vue').PropType<"small" | "default" | "large">;
69
- default: string;
70
- validator: (value: string) => boolean;
71
- };
72
- width: {
73
- type: StringConstructor;
74
- default: string;
75
- };
76
- injectionKey: {
77
- type: StringConstructor;
78
- default: string;
79
- };
80
- }>> & Readonly<{
81
- onFieldChange?: ((...args: any[]) => any) | undefined;
26
+ }, Readonly<import('./index.vue').Props> & Readonly<{
27
+ onFieldChange?: ((val: string) => any) | undefined;
82
28
  }>, {
83
- [x: string]: Function;
29
+ focus: () => void | undefined;
30
+ blur: () => void | undefined;
31
+ handleOpen: () => void | undefined;
32
+ handleClose: () => void | undefined;
84
33
  }, {}, {}, {}, {
85
34
  size: "small" | "default" | "large";
86
35
  injectionKey: string;
87
36
  width: string;
88
37
  type: "daterange" | "monthrange";
89
- fieldList: {
90
- label: string;
91
- value: string;
92
- }[];
38
+ fieldList: import('./index.vue').DatePickerFieldItem[];
93
39
  }>;
94
40
  __isFragment?: never;
95
41
  __isTeleport?: never;
96
42
  __isSuspense?: never;
97
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
98
- fieldList: {
99
- type: import('vue').PropType<Array<{
100
- label: string;
101
- value: string;
102
- }>>;
103
- require: boolean;
104
- default: () => never[];
105
- };
106
- type: {
107
- type: import('vue').PropType<"daterange" | "monthrange">;
108
- default: string;
109
- validator: (value: string) => boolean;
110
- };
111
- size: {
112
- type: import('vue').PropType<"small" | "default" | "large">;
113
- default: string;
114
- validator: (value: string) => boolean;
115
- };
116
- width: {
117
- type: StringConstructor;
118
- default: string;
119
- };
120
- injectionKey: {
121
- type: StringConstructor;
122
- default: string;
123
- };
124
- }>> & Readonly<{
125
- onFieldChange?: ((...args: any[]) => any) | undefined;
43
+ } & import('vue').ComponentOptionsBase<Readonly<import('./index.vue').Props> & Readonly<{
44
+ onFieldChange?: ((val: string) => any) | undefined;
126
45
  }>, {
127
- [x: string]: Function;
46
+ focus: () => void | undefined;
47
+ blur: () => void | undefined;
48
+ handleOpen: () => void | undefined;
49
+ handleClose: () => void | undefined;
128
50
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
129
- fieldChange: (...args: any[]) => void;
51
+ fieldChange: (val: string) => any;
130
52
  }, string, {
131
53
  size: "small" | "default" | "large";
132
54
  injectionKey: string;
133
55
  width: string;
134
56
  type: "daterange" | "monthrange";
135
- fieldList: {
136
- label: string;
137
- value: string;
138
- }[];
57
+ fieldList: import('./index.vue').DatePickerFieldItem[];
139
58
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
140
59
  export default JcDatePicker;
@@ -1,69 +1,37 @@
1
- import { 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, {
33
+ fieldList: DatePickerFieldItem[];
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
67
35
  datePickerRef: unknown;
68
36
  }, HTMLDivElement>;
69
37
  export default _default;
@@ -1,22 +1,13 @@
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, {
10
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
20
11
  importUploadRef: unknown;
21
12
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
22
13
  P: {};
@@ -25,39 +16,21 @@ export declare const JcImportButton: {
25
16
  C: {};
26
17
  M: {};
27
18
  Defaults: {};
28
- }, Readonly<import('vue').ExtractPropTypes<{
29
- btnName: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- uploadFileFn: {
34
- type: import('vue').PropType<(data: any) => Promise<any>>;
35
- required: true;
36
- };
37
- }>> & Readonly<{
38
- onOnError?: ((...args: any[]) => any) | undefined;
39
- onOnSuccess?: ((...args: any[]) => any) | undefined;
19
+ }, Readonly<import('./index.vue').Props> & Readonly<{
20
+ onOnError?: (() => any) | undefined;
21
+ onOnSuccess?: (() => any) | undefined;
40
22
  }>, {}, {}, {}, {}, {
41
23
  btnName: string;
42
24
  }>;
43
25
  __isFragment?: never;
44
26
  __isTeleport?: never;
45
27
  __isSuspense?: never;
46
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
47
- btnName: {
48
- type: StringConstructor;
49
- default: string;
50
- };
51
- uploadFileFn: {
52
- type: import('vue').PropType<(data: any) => Promise<any>>;
53
- required: true;
54
- };
55
- }>> & Readonly<{
56
- onOnError?: ((...args: any[]) => any) | undefined;
57
- onOnSuccess?: ((...args: any[]) => any) | undefined;
28
+ } & import('vue').ComponentOptionsBase<Readonly<import('./index.vue').Props> & Readonly<{
29
+ onOnError?: (() => any) | undefined;
30
+ onOnSuccess?: (() => any) | undefined;
58
31
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
- onError: (...args: any[]) => void;
60
- onSuccess: (...args: any[]) => void;
32
+ onError: () => any;
33
+ onSuccess: () => any;
61
34
  }, string, {
62
35
  btnName: string;
63
36
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
@@ -1,31 +1,24 @@
1
- import { 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, {
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
22
  importUploadRef: unknown;
30
23
  }, HTMLDivElement>;
31
24
  export default _default;
@@ -1,35 +1,15 @@
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, {
12
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
33
13
  importUploadRef: unknown;
34
14
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
35
15
  P: {};
@@ -38,29 +18,9 @@ export declare const JcImportDialog: {
38
18
  C: {};
39
19
  M: {};
40
20
  Defaults: {};
41
- }, Readonly<import('vue').ExtractPropTypes<{
42
- btnName: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- title: {
47
- type: StringConstructor;
48
- default: string;
49
- };
50
- importInfoArr: {
51
- type: import('vue').PropType<string[]>;
52
- default: () => string[];
53
- };
54
- uploadFileFn: {
55
- type: import('vue').PropType<(data: any) => Promise<any>>;
56
- required: true;
57
- };
58
- downloadFileFn: {
59
- type: import('vue').PropType<() => Promise<any>>;
60
- };
61
- }>> & Readonly<{
62
- onOnError?: ((...args: any[]) => any) | undefined;
63
- onOnSuccess?: ((...args: any[]) => any) | undefined;
21
+ }, Readonly<import('./index.vue').Props> & Readonly<{
22
+ onOnError?: (() => any) | undefined;
23
+ onOnSuccess?: (() => any) | undefined;
64
24
  }>, {}, {}, {}, {}, {
65
25
  title: string;
66
26
  btnName: string;
@@ -69,32 +29,12 @@ export declare const JcImportDialog: {
69
29
  __isFragment?: never;
70
30
  __isTeleport?: never;
71
31
  __isSuspense?: never;
72
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
73
- btnName: {
74
- type: StringConstructor;
75
- default: string;
76
- };
77
- title: {
78
- type: StringConstructor;
79
- default: string;
80
- };
81
- importInfoArr: {
82
- type: import('vue').PropType<string[]>;
83
- default: () => string[];
84
- };
85
- uploadFileFn: {
86
- type: import('vue').PropType<(data: any) => Promise<any>>;
87
- required: true;
88
- };
89
- downloadFileFn: {
90
- type: import('vue').PropType<() => Promise<any>>;
91
- };
92
- }>> & Readonly<{
93
- onOnError?: ((...args: any[]) => any) | undefined;
94
- onOnSuccess?: ((...args: any[]) => any) | undefined;
32
+ } & import('vue').ComponentOptionsBase<Readonly<import('./index.vue').Props> & Readonly<{
33
+ onOnError?: (() => any) | undefined;
34
+ onOnSuccess?: (() => any) | undefined;
95
35
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
96
- onError: (...args: any[]) => void;
97
- onSuccess: (...args: any[]) => void;
36
+ onError: () => any;
37
+ onSuccess: () => any;
98
38
  }, string, {
99
39
  title: string;
100
40
  btnName: string;
@@ -1,55 +1,32 @@
1
- import { 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, {
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
53
30
  importUploadRef: unknown;
54
31
  }, HTMLDivElement>;
55
32
  export default _default;