@qqt-product/ui 16.0.4 → 16.0.6
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/index.es.js +57091 -48238
- package/dist/index.umd.js +139 -130
- package/dist/lib/components/edit-page-layout/src/edit-page-layout-types.d.ts +0 -4
- package/dist/lib/components/layout/index.d.ts +0 -1
- package/dist/lib/components/layout/src/index.vue.d.ts +0 -1
- package/dist/lib/components/layout/src/sider/index.vue.d.ts +0 -1
- package/dist/lib/components/layout/src/sider/logo.vue.d.ts +0 -1
- package/dist/lib/components/layout/src/types.d.ts +0 -1
- package/dist/lib/components/list-page-layout/index.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/components/list-header/module/searchExtend/index.vue.d.ts +0 -2
- package/dist/lib/components/list-page-layout/src/layout.vue.d.ts +1 -1
- package/dist/lib/components/list-page-layout/src/list-page-layout-types.d.ts +1 -1
- package/dist/lib/components/page-layout/index.d.ts +0 -1
- package/dist/lib/components/page-layout/src/page-layout.vue.d.ts +0 -1
- package/dist/lib/components/remote-select/index.d.ts +83 -0
- package/dist/lib/components/remote-select/src/remote-select.vue.d.ts +79 -0
- package/dist/lib/components/select/index.d.ts +3 -2
- package/dist/lib/components/select/src/select.vue.d.ts +3 -2
- package/dist/lib/components/upload-image/index.d.ts +37 -5
- package/dist/lib/components/upload-image/src/upload-image.vue.d.ts +35 -4
- package/dist/lib/components/vxe-select/index.d.ts +2 -1
- package/dist/lib/components/vxe-select/src/vxe-select.vue.d.ts +3 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -361,11 +361,9 @@ export interface FormFieldsItem {
|
|
|
361
361
|
fieldLabel: string;
|
|
362
362
|
fieldName: string;
|
|
363
363
|
helpText?: string;
|
|
364
|
-
disabled?: boolean;
|
|
365
364
|
required?: '0' | '1';
|
|
366
365
|
regex?: RegExp;
|
|
367
366
|
alertMsg?: string;
|
|
368
|
-
options?: RecordString[];
|
|
369
367
|
callback?: (ctx: ComponentInternalInstance | null, payload: Payload) => void;
|
|
370
368
|
[key: string]: unknown;
|
|
371
369
|
}
|
|
@@ -376,11 +374,9 @@ export interface ColumnItem {
|
|
|
376
374
|
field: string;
|
|
377
375
|
fieldType?: string;
|
|
378
376
|
helpText?: string;
|
|
379
|
-
disabled?: boolean;
|
|
380
377
|
required?: '0' | '1';
|
|
381
378
|
regex?: string | RegExp;
|
|
382
379
|
alertMsg?: string;
|
|
383
|
-
options?: RecordString[];
|
|
384
380
|
callback?: (ctx: SetupContext, payload: VxePayload) => void;
|
|
385
381
|
[key: string]: unknown;
|
|
386
382
|
}
|
|
@@ -261,7 +261,6 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
261
261
|
};
|
|
262
262
|
}, {
|
|
263
263
|
imgRef: Ref<any>;
|
|
264
|
-
showTitle: Ref<boolean>;
|
|
265
264
|
onImageLoad: () => void;
|
|
266
265
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
267
266
|
title: {
|
|
@@ -258,7 +258,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
258
258
|
};
|
|
259
259
|
}, {
|
|
260
260
|
imgRef: Ref<any>;
|
|
261
|
-
showTitle: Ref<boolean>;
|
|
262
261
|
onImageLoad: () => void;
|
|
263
262
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
264
263
|
title: {
|
|
@@ -126,7 +126,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
126
126
|
};
|
|
127
127
|
}, {
|
|
128
128
|
imgRef: Ref<any>;
|
|
129
|
-
showTitle: Ref<boolean>;
|
|
130
129
|
onImageLoad: () => void;
|
|
131
130
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
132
131
|
title: {
|
|
@@ -17,7 +17,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
19
|
imgRef: Ref<any>;
|
|
20
|
-
showTitle: Ref<boolean>;
|
|
21
20
|
onImageLoad: () => void;
|
|
22
21
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
23
22
|
title: {
|
|
@@ -276,7 +276,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
276
276
|
fieldCode?: string | undefined;
|
|
277
277
|
dictCode?: string | undefined;
|
|
278
278
|
fieldType?: string | undefined;
|
|
279
|
-
fieldValue?:
|
|
279
|
+
fieldValue?: string | number | undefined;
|
|
280
280
|
showValue?: string | number | undefined;
|
|
281
281
|
joiner?: string | number | undefined;
|
|
282
282
|
dictTable?: string | number | undefined;
|
|
@@ -75,8 +75,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
75
75
|
selectValue: Ref<string>;
|
|
76
76
|
selectedKeys: Ref<any>;
|
|
77
77
|
fieldListIndex: Ref<string | number>;
|
|
78
|
-
cacheLogicSymbol: Ref<string | undefined>;
|
|
79
|
-
cacheItem: Ref<QueryParamsItem>;
|
|
80
78
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("close" | "callback" | "handleSuperQuery" | "synQueryParams" | "queryParamsModelLength")[], "close" | "callback" | "handleSuperQuery" | "synQueryParams" | "queryParamsModelLength", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
81
79
|
tableCode: {
|
|
82
80
|
type: StringConstructor;
|
|
@@ -269,7 +269,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
269
269
|
fieldCode?: string | undefined;
|
|
270
270
|
dictCode?: string | undefined;
|
|
271
271
|
fieldType?: string | undefined;
|
|
272
|
-
fieldValue?:
|
|
272
|
+
fieldValue?: string | number | undefined;
|
|
273
273
|
showValue?: string | number | undefined;
|
|
274
274
|
joiner?: string | number | undefined;
|
|
275
275
|
dictTable?: string | number | undefined;
|
|
@@ -356,7 +356,7 @@ export interface QueryParamsItem {
|
|
|
356
356
|
fieldCode?: string;
|
|
357
357
|
dictCode?: string;
|
|
358
358
|
fieldType?: string;
|
|
359
|
-
fieldValue?: string | number
|
|
359
|
+
fieldValue?: string | number;
|
|
360
360
|
showValue?: string | number;
|
|
361
361
|
joiner?: string | number;
|
|
362
362
|
dictTable?: string | number;
|
|
@@ -23,7 +23,6 @@ declare const _default: SFCWithInstall<DefineComponent<Readonly<ComponentPropsOp
|
|
|
23
23
|
pageData: Ref<RecordString>;
|
|
24
24
|
loading: Ref<boolean>;
|
|
25
25
|
layoutLoading: Ref<boolean>;
|
|
26
|
-
isFinishConfig: Ref<boolean>;
|
|
27
26
|
customLoading: Readonly<Ref<boolean>>;
|
|
28
27
|
currentRow: CurrentRow;
|
|
29
28
|
fileVisible: Ref<boolean>;
|
|
@@ -12,7 +12,6 @@ declare const _sfc_main: DefineComponent<Readonly<ComponentPropsOptions<{
|
|
|
12
12
|
pageData: Ref<RecordString>;
|
|
13
13
|
loading: Ref<boolean>;
|
|
14
14
|
layoutLoading: Ref<boolean>;
|
|
15
|
-
isFinishConfig: Ref<boolean>;
|
|
16
15
|
customLoading: Readonly<Ref<boolean>>;
|
|
17
16
|
currentRow: CurrentRow;
|
|
18
17
|
fileVisible: Ref<boolean>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { MessageType } from 'ant-design-vue/es/message';
|
|
2
|
+
import type { SrmI18n } from '../../utils/type';
|
|
3
|
+
import type { Config, RecordString } from './src/remote-select-types';
|
|
4
|
+
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
5
|
+
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
6
|
+
import QRemoteSelect from './src/remote-select.vue';
|
|
7
|
+
export * from './src/remote-select-types';
|
|
8
|
+
export { QRemoteSelect };
|
|
9
|
+
declare const _default: SFCWithInstall<DefineComponent<{
|
|
10
|
+
value: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
config: {
|
|
15
|
+
type: PropType<Config>;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
row: {
|
|
19
|
+
type: PropType<Record<string | number, unknown>>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
idx: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
onChange: {
|
|
27
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
28
|
+
default: unknown;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
srmI18n: SrmI18n;
|
|
32
|
+
classes: ComputedRef<{
|
|
33
|
+
[x: string]: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
value: Ref<string>;
|
|
36
|
+
valueKey: Ref<any>;
|
|
37
|
+
config: Ref<Config>;
|
|
38
|
+
data: {
|
|
39
|
+
modalLoading: boolean;
|
|
40
|
+
url: string;
|
|
41
|
+
params: {
|
|
42
|
+
pageNo: number;
|
|
43
|
+
pageSize: number;
|
|
44
|
+
keyWord: string;
|
|
45
|
+
};
|
|
46
|
+
dataSource: {
|
|
47
|
+
[x: string]: string;
|
|
48
|
+
id: string;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
formatTitle: (item: Record<string, unknown>) => string;
|
|
52
|
+
handleFocus: () => void;
|
|
53
|
+
handleSearch: (changeValue?: string | undefined) => void;
|
|
54
|
+
handleChange: (changeValue: string) => void | MessageType;
|
|
55
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
56
|
+
value: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
config: {
|
|
61
|
+
type: PropType<Config>;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
row: {
|
|
65
|
+
type: PropType<Record<string | number, unknown>>;
|
|
66
|
+
default: () => {};
|
|
67
|
+
};
|
|
68
|
+
idx: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
onChange: {
|
|
73
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
74
|
+
default: unknown;
|
|
75
|
+
};
|
|
76
|
+
}>>, {
|
|
77
|
+
value: string;
|
|
78
|
+
row: Record<string | number, unknown>;
|
|
79
|
+
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
80
|
+
config: Config;
|
|
81
|
+
idx: number;
|
|
82
|
+
}, {}>>;
|
|
83
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { MessageType } from 'ant-design-vue/es/message';
|
|
2
|
+
import type { SrmI18n } from '../../../utils/type';
|
|
3
|
+
import type { Config, RecordString } from './remote-select-types';
|
|
4
|
+
import type { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref, ComputedRef } from 'vue';
|
|
5
|
+
declare const _sfc_main: DefineComponent<{
|
|
6
|
+
value: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
config: {
|
|
11
|
+
type: PropType<Config>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
row: {
|
|
15
|
+
type: PropType<Record<string | number, unknown>>;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
idx: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
onChange: {
|
|
23
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
24
|
+
default: unknown;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
srmI18n: SrmI18n;
|
|
28
|
+
classes: ComputedRef<{
|
|
29
|
+
[x: string]: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
value: Ref<string>;
|
|
32
|
+
valueKey: Ref<any>;
|
|
33
|
+
config: Ref<Config>;
|
|
34
|
+
data: {
|
|
35
|
+
modalLoading: boolean;
|
|
36
|
+
url: string;
|
|
37
|
+
params: {
|
|
38
|
+
pageNo: number;
|
|
39
|
+
pageSize: number;
|
|
40
|
+
keyWord: string;
|
|
41
|
+
};
|
|
42
|
+
dataSource: {
|
|
43
|
+
[x: string]: string;
|
|
44
|
+
id: string;
|
|
45
|
+
}[];
|
|
46
|
+
};
|
|
47
|
+
formatTitle: (item: Record<string, unknown>) => string;
|
|
48
|
+
handleFocus: () => void;
|
|
49
|
+
handleSearch: (changeValue?: string) => void;
|
|
50
|
+
handleChange: (changeValue: string) => void | MessageType;
|
|
51
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
52
|
+
value: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
config: {
|
|
57
|
+
type: PropType<Config>;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
row: {
|
|
61
|
+
type: PropType<Record<string | number, unknown>>;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
idx: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
onChange: {
|
|
69
|
+
type: PropType<((value: RecordString[]) => void) | ((value: RecordString[]) => void)[]>;
|
|
70
|
+
default: unknown;
|
|
71
|
+
};
|
|
72
|
+
}>>, {
|
|
73
|
+
value: string;
|
|
74
|
+
row: Record<string | number, unknown>;
|
|
75
|
+
onChange: ((value: RecordString[]) => void) | ((value: RecordString[]) => void)[];
|
|
76
|
+
config: Config;
|
|
77
|
+
idx: number;
|
|
78
|
+
}, {}>;
|
|
79
|
+
export default _sfc_main;
|
|
@@ -38,15 +38,16 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
38
38
|
classes: ComputedRef<{
|
|
39
39
|
[key: string]: string | boolean;
|
|
40
40
|
}>;
|
|
41
|
-
realValue: Ref<string | string[]>;
|
|
41
|
+
realValue: Ref<string | string[] | undefined>;
|
|
42
42
|
mode: ComputedRef<string>;
|
|
43
43
|
options: Ref<{
|
|
44
|
-
|
|
44
|
+
[x: string]: string;
|
|
45
45
|
title: string;
|
|
46
46
|
value: string;
|
|
47
47
|
id: string;
|
|
48
48
|
textI18nKey: string;
|
|
49
49
|
children?: unknown[] | undefined;
|
|
50
|
+
label: string;
|
|
50
51
|
}[]>;
|
|
51
52
|
dictCode: Ref<string>;
|
|
52
53
|
onChange: (value: string | string[], options: SelectOption | SelectOption[]) => void;
|
|
@@ -34,15 +34,16 @@ declare const _sfc_main: DefineComponent<{
|
|
|
34
34
|
classes: ComputedRef<{
|
|
35
35
|
[key: string]: string | boolean;
|
|
36
36
|
}>;
|
|
37
|
-
realValue: Ref<string | string[]>;
|
|
37
|
+
realValue: Ref<string | string[] | undefined>;
|
|
38
38
|
mode: ComputedRef<string>;
|
|
39
39
|
options: Ref<{
|
|
40
|
-
|
|
40
|
+
[x: string]: string;
|
|
41
41
|
title: string;
|
|
42
42
|
value: string;
|
|
43
43
|
id: string;
|
|
44
44
|
textI18nKey: string;
|
|
45
45
|
children?: unknown[] | undefined;
|
|
46
|
+
label: string;
|
|
46
47
|
}[]>;
|
|
47
48
|
dictCode: Ref<string>;
|
|
48
49
|
onChange: (value: string | string[], options: SelectOption | SelectOption[]) => void;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { SrmI18n } from '../../utils/type';
|
|
1
|
+
import type { PictureOutlinedIconType } from '@ant-design/icons-vue/lib/icons/PictureOutlined';
|
|
3
2
|
import type { UploadFiles } from './src/upload-image-type';
|
|
4
3
|
import type { UploadFile } from 'ant-design-vue';
|
|
4
|
+
import type { SrmI18n } from '../../utils/type';
|
|
5
|
+
import type { Request } from '@qqt-product/api/dist/utils/request';
|
|
5
6
|
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
7
|
+
import type { RegisterFn } from '../modal';
|
|
8
|
+
import type { RecordString } from '../select-modal';
|
|
9
|
+
import type { EditPageLayoutProps, CurrentRow } from '../edit-page-layout';
|
|
6
10
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
7
11
|
import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
|
|
8
12
|
import QUploadImage from './src/upload-image.vue';
|
|
@@ -58,6 +62,14 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
58
62
|
default: unknown;
|
|
59
63
|
};
|
|
60
64
|
}, {
|
|
65
|
+
props: any;
|
|
66
|
+
emit: (event: "change" | "update:value", ...args: any[]) => void;
|
|
67
|
+
layoutProps: EditPageLayoutProps;
|
|
68
|
+
currentRow: Ref<CurrentRow>;
|
|
69
|
+
headId: Ref<string>;
|
|
70
|
+
pageData: Ref<RecordString>;
|
|
71
|
+
register: RegisterFn;
|
|
72
|
+
openModal: <T = any>(props?: boolean | undefined, data?: T | undefined, openOnSet?: boolean | undefined) => void;
|
|
61
73
|
state: {
|
|
62
74
|
previewVisible: boolean;
|
|
63
75
|
previewImage: string;
|
|
@@ -148,14 +160,34 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
148
160
|
};
|
|
149
161
|
multiple: Ref<boolean>;
|
|
150
162
|
limit: Ref<number>;
|
|
163
|
+
uploadImageData: Ref<Record<string, any>>;
|
|
151
164
|
accept: Ref<string>;
|
|
165
|
+
actionRoutePath: Ref<string>;
|
|
166
|
+
sourceNumber: Ref<string>;
|
|
167
|
+
businessType: any;
|
|
168
|
+
Request: Request;
|
|
169
|
+
srmI18n: SrmI18n;
|
|
152
170
|
uploadStatues: Ref<boolean>;
|
|
171
|
+
uploadNumber: Ref<number>;
|
|
172
|
+
handleUploadImage: () => void;
|
|
153
173
|
beforeUpload: (file: UploadFile<any>, uploadFiles: UploadFile<any>[]) => boolean;
|
|
154
|
-
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
155
174
|
handlePreview: (file: UploadFiles) => Promise<void>;
|
|
175
|
+
handleItemRemove: (file: any) => void;
|
|
156
176
|
isImageUrlFun: () => boolean;
|
|
157
|
-
|
|
158
|
-
|
|
177
|
+
readonly PictureOutlined: PictureOutlinedIconType;
|
|
178
|
+
Preview: DefineComponent<{
|
|
179
|
+
readonly url: {
|
|
180
|
+
readonly type: PropType<string>;
|
|
181
|
+
};
|
|
182
|
+
}, {
|
|
183
|
+
url: Ref<string | undefined> | undefined;
|
|
184
|
+
register: RegisterFn;
|
|
185
|
+
handleOnload: () => void;
|
|
186
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
187
|
+
readonly url: {
|
|
188
|
+
readonly type: PropType<string>;
|
|
189
|
+
};
|
|
190
|
+
}>>, {}, {}>;
|
|
159
191
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
160
192
|
readonly value: {
|
|
161
193
|
readonly type: StringConstructor;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PictureOutlinedIconType } from '@ant-design/icons-vue/lib/icons/PictureOutlined';
|
|
2
2
|
import type { SrmI18n } from '../../../utils/type';
|
|
3
3
|
import type { UploadFileStatus, FileType } from 'ant-design-vue/es/upload/interface';
|
|
4
|
+
import type { RegisterFn } from '../../modal';
|
|
5
|
+
import type { EditPageLayoutProps, CurrentRow, RecordString } from '../../edit-page-layout';
|
|
4
6
|
import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
5
7
|
import { UploadFiles } from './upload-image-type';
|
|
6
8
|
import type { UploadFile } from 'ant-design-vue';
|
|
9
|
+
import qqtApi from '@qqt-product/api';
|
|
7
10
|
declare const _sfc_main: DefineComponent<{
|
|
8
11
|
readonly value: {
|
|
9
12
|
readonly type: StringConstructor;
|
|
@@ -54,6 +57,14 @@ declare const _sfc_main: DefineComponent<{
|
|
|
54
57
|
default: unknown;
|
|
55
58
|
};
|
|
56
59
|
}, {
|
|
60
|
+
props: any;
|
|
61
|
+
emit: (event: "change" | "update:value", ...args: any[]) => void;
|
|
62
|
+
layoutProps: EditPageLayoutProps;
|
|
63
|
+
currentRow: Ref<CurrentRow>;
|
|
64
|
+
headId: Ref<string>;
|
|
65
|
+
pageData: Ref<RecordString>;
|
|
66
|
+
register: RegisterFn;
|
|
67
|
+
openModal: <T = any>(props?: boolean | undefined, data?: T | undefined, openOnSet?: boolean | undefined) => void;
|
|
57
68
|
state: {
|
|
58
69
|
previewVisible: boolean;
|
|
59
70
|
previewImage: string;
|
|
@@ -144,14 +155,34 @@ declare const _sfc_main: DefineComponent<{
|
|
|
144
155
|
};
|
|
145
156
|
multiple: Ref<boolean>;
|
|
146
157
|
limit: Ref<number>;
|
|
158
|
+
uploadImageData: Ref<Record<string, any>>;
|
|
147
159
|
accept: Ref<string>;
|
|
160
|
+
actionRoutePath: Ref<string>;
|
|
161
|
+
sourceNumber: Ref<string>;
|
|
162
|
+
businessType: any;
|
|
163
|
+
Request: qqtApi.Request;
|
|
164
|
+
srmI18n: SrmI18n;
|
|
148
165
|
uploadStatues: Ref<boolean>;
|
|
166
|
+
uploadNumber: Ref<number>;
|
|
167
|
+
handleUploadImage: () => void;
|
|
149
168
|
beforeUpload: (file: UploadFile, uploadFiles: UploadFile[]) => boolean;
|
|
150
|
-
handleRemove: (file: UploadFile<unknown>) => boolean | void | Promise<boolean | void>;
|
|
151
169
|
handlePreview: (file: UploadFiles) => Promise<void>;
|
|
170
|
+
handleItemRemove: (file: any) => void;
|
|
152
171
|
isImageUrlFun: () => boolean;
|
|
153
|
-
|
|
154
|
-
|
|
172
|
+
readonly PictureOutlined: PictureOutlinedIconType;
|
|
173
|
+
Preview: DefineComponent<{
|
|
174
|
+
readonly url: {
|
|
175
|
+
readonly type: PropType<string>;
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
url: Ref<string | undefined> | undefined;
|
|
179
|
+
register: RegisterFn;
|
|
180
|
+
handleOnload: () => void;
|
|
181
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
182
|
+
readonly url: {
|
|
183
|
+
readonly type: PropType<string>;
|
|
184
|
+
};
|
|
185
|
+
}>>, {}, {}>;
|
|
155
186
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
156
187
|
readonly value: {
|
|
157
188
|
readonly type: StringConstructor;
|
|
@@ -56,12 +56,13 @@ declare const _default: SFCWithInstall<DefineComponent<{
|
|
|
56
56
|
placeholder: string;
|
|
57
57
|
multiple: boolean;
|
|
58
58
|
options: Ref<{
|
|
59
|
-
|
|
59
|
+
[x: string]: string;
|
|
60
60
|
title: string;
|
|
61
61
|
value: string;
|
|
62
62
|
id: string;
|
|
63
63
|
textI18nKey: string;
|
|
64
64
|
children?: unknown[] | undefined;
|
|
65
|
+
label: string;
|
|
65
66
|
}[]>;
|
|
66
67
|
onChange: ({ value }: {
|
|
67
68
|
value: string | string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { VxeSelectProps, SelectOption } from './vxe-select-types';
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
4
|
readonly modelValue: {
|
|
5
5
|
readonly type: StringConstructor;
|
|
@@ -52,12 +52,13 @@ declare const _sfc_main: DefineComponent<{
|
|
|
52
52
|
placeholder: string;
|
|
53
53
|
multiple: boolean;
|
|
54
54
|
options: Ref<{
|
|
55
|
-
|
|
55
|
+
[x: string]: string;
|
|
56
56
|
title: string;
|
|
57
57
|
value: string;
|
|
58
58
|
id: string;
|
|
59
59
|
textI18nKey: string;
|
|
60
60
|
children?: unknown[] | undefined;
|
|
61
|
+
label: string;
|
|
61
62
|
}[]>;
|
|
62
63
|
onChange: ({ value }: {
|
|
63
64
|
value: string | string[];
|