bm-admin-ui 1.2.45-alpha → 1.2.47-alpha
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/es/components/attachment/index.d.ts +54 -31
- package/es/components/attachment/index.js +10 -10
- package/es/components/attachment/src/attachment.vue.d.ts +54 -31
- package/es/components/cascader/index.js +77 -77
- package/es/components/edit-form/index.d.ts +54 -31
- package/es/components/edit-form/index.js +1 -1
- package/es/components/edit-form/src/edit-form.vue.d.ts +54 -31
- package/es/components/editor/index.d.ts +134 -134
- package/es/components/editor/index.js +25 -25
- package/es/components/editor/src/editor.vue.d.ts +134 -134
- package/es/components/float-table/index.d.ts +136 -62
- package/es/components/float-table/index.js +8 -8
- package/es/components/float-table/src/float-table.vue.d.ts +136 -62
- package/es/components/flow-designer/index.js +1 -1
- package/es/components/form-create/index.js +127 -25
- package/es/components/over-tooltips/index.d.ts +56 -33
- package/es/components/over-tooltips/index.js +10 -10
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
- package/es/components/staffs-selector/index.d.ts +4 -4
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +4 -4
- package/es/components/upload/index.d.ts +134 -134
- package/es/components/upload/index.js +25 -25
- package/es/components/upload/src/upload.vue.d.ts +134 -134
- package/lib/components/attachment/index.d.ts +54 -31
- package/lib/components/attachment/index.js +9 -9
- package/lib/components/attachment/src/attachment.vue.d.ts +54 -31
- package/lib/components/cascader/index.js +77 -77
- package/lib/components/edit-form/index.d.ts +54 -31
- package/lib/components/edit-form/index.js +1 -1
- package/lib/components/edit-form/src/edit-form.vue.d.ts +54 -31
- package/lib/components/editor/index.d.ts +134 -134
- package/lib/components/editor/index.js +24 -24
- package/lib/components/editor/src/editor.vue.d.ts +134 -134
- package/lib/components/float-table/index.d.ts +136 -62
- package/lib/components/float-table/index.js +7 -7
- package/lib/components/float-table/src/float-table.vue.d.ts +136 -62
- package/lib/components/flow-designer/index.js +1 -1
- package/lib/components/form-create/index.js +126 -24
- package/lib/components/over-tooltips/index.d.ts +56 -33
- package/lib/components/over-tooltips/index.js +9 -9
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
- package/lib/components/staffs-selector/index.d.ts +4 -4
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +4 -4
- package/lib/components/upload/index.d.ts +134 -134
- package/lib/components/upload/index.js +24 -24
- package/lib/components/upload/src/upload.vue.d.ts +134 -134
- package/package.json +34 -34
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/attachment/index.d.ts +54 -31
- package/types/components/attachment/src/attachment.vue.d.ts +54 -31
- package/types/components/edit-form/index.d.ts +54 -31
- package/types/components/edit-form/src/edit-form.vue.d.ts +54 -31
- package/types/components/editor/index.d.ts +134 -134
- package/types/components/editor/src/editor.vue.d.ts +134 -134
- package/types/components/float-table/index.d.ts +136 -62
- package/types/components/float-table/src/float-table.vue.d.ts +136 -62
- package/types/components/over-tooltips/index.d.ts +56 -33
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +56 -33
- package/types/components/staffs-selector/index.d.ts +4 -4
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +4 -4
- package/types/components/upload/index.d.ts +134 -134
- package/types/components/upload/src/upload.vue.d.ts +134 -134
|
@@ -902,9 +902,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
902
902
|
searchVal: import("vue").Ref<string>;
|
|
903
903
|
selectAll: import("vue").Ref<boolean>;
|
|
904
904
|
indeterminate: import("vue").Ref<boolean>;
|
|
905
|
-
emptyPic: import("vue").Ref<
|
|
905
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
906
906
|
[key: string]: any;
|
|
907
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
907
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
908
908
|
[key: string]: any;
|
|
909
909
|
}> | null | undefined)[]>;
|
|
910
910
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -977,9 +977,9 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
977
977
|
searchVal: import("vue").Ref<string>;
|
|
978
978
|
selectAll: import("vue").Ref<boolean>;
|
|
979
979
|
indeterminate: import("vue").Ref<boolean>;
|
|
980
|
-
emptyPic: import("vue").Ref<
|
|
980
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
981
981
|
[key: string]: any;
|
|
982
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
982
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
983
983
|
[key: string]: any;
|
|
984
984
|
}> | null | undefined)[]>;
|
|
985
985
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -20,9 +20,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
searchVal: import("vue").Ref<string>;
|
|
21
21
|
selectAll: import("vue").Ref<boolean>;
|
|
22
22
|
indeterminate: import("vue").Ref<boolean>;
|
|
23
|
-
emptyPic: import("vue").Ref<
|
|
23
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
24
|
[key: string]: any;
|
|
25
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
26
|
[key: string]: any;
|
|
27
27
|
}> | null | undefined)[]>;
|
|
28
28
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -21,9 +21,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
searchVal: import("vue").Ref<string>;
|
|
22
22
|
selectAll: import("vue").Ref<boolean>;
|
|
23
23
|
indeterminate: import("vue").Ref<boolean>;
|
|
24
|
-
emptyPic: import("vue").Ref<
|
|
24
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
25
|
[key: string]: any;
|
|
26
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}> | null | undefined)[]>;
|
|
29
29
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -902,9 +902,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
902
902
|
searchVal: import("vue").Ref<string>;
|
|
903
903
|
selectAll: import("vue").Ref<boolean>;
|
|
904
904
|
indeterminate: import("vue").Ref<boolean>;
|
|
905
|
-
emptyPic: import("vue").Ref<
|
|
905
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
906
906
|
[key: string]: any;
|
|
907
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
907
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
908
908
|
[key: string]: any;
|
|
909
909
|
}> | null | undefined)[]>;
|
|
910
910
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -977,9 +977,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
977
977
|
searchVal: import("vue").Ref<string>;
|
|
978
978
|
selectAll: import("vue").Ref<boolean>;
|
|
979
979
|
indeterminate: import("vue").Ref<boolean>;
|
|
980
|
-
emptyPic: import("vue").Ref<
|
|
980
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
981
981
|
[key: string]: any;
|
|
982
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
982
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
983
983
|
[key: string]: any;
|
|
984
984
|
}> | null | undefined)[]>;
|
|
985
985
|
isFulfill: import("vue").Ref<boolean>;
|
|
@@ -1,141 +1,141 @@
|
|
|
1
1
|
import type { UploadProps, UploadPropsInner, ExtraProps, DefaultList, UploadRequest, CustomErrors } from './src/props';
|
|
2
|
-
declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
OverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
|
|
7
|
-
name: string;
|
|
8
|
-
props: {
|
|
9
|
-
title: {
|
|
10
|
-
type: StringConstructor;
|
|
11
|
-
default: undefined;
|
|
12
|
-
};
|
|
13
|
-
labelTitle: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: undefined;
|
|
16
|
-
};
|
|
17
|
-
line: {
|
|
18
|
-
type: NumberConstructor;
|
|
19
|
-
default: number;
|
|
20
|
-
};
|
|
21
|
-
width: {
|
|
22
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
-
default: number;
|
|
24
|
-
};
|
|
25
|
-
showAlways: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
setup(props: any, context: any): {
|
|
31
|
-
mySelf: import("vue").Ref<any>;
|
|
32
|
-
handleVisibleChange: (val: any) => void;
|
|
33
|
-
getPopupContainer: () => HTMLElement;
|
|
34
|
-
mSlots: import("vue").Ref<{}>;
|
|
35
|
-
isShow: import("vue").Ref<boolean>;
|
|
36
|
-
openShow: import("vue").Ref<boolean>;
|
|
37
|
-
};
|
|
38
|
-
}>;
|
|
39
|
-
UploadOutlined: import("@ant-design/icons-vue/lib/icons/UploadOutlined").UploadOutlinedIconType;
|
|
40
|
-
LoadingOutlined: import("@ant-design/icons-vue/lib/icons/LoadingOutlined").LoadingOutlinedIconType;
|
|
41
|
-
InboxOutlined: import("@ant-design/icons-vue/lib/icons/InboxOutlined").InboxOutlinedIconType;
|
|
2
|
+
declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
uploadProps: {
|
|
4
|
+
type: import("vue").PropType<UploadPropsInner>;
|
|
5
|
+
default: () => {};
|
|
42
6
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
default: () => {};
|
|
47
|
-
};
|
|
48
|
-
extraProps: {
|
|
49
|
-
type: import("vue").PropType<ExtraProps>;
|
|
50
|
-
default: () => {};
|
|
51
|
-
};
|
|
52
|
-
defaultList: {
|
|
53
|
-
type: import("vue").PropType<DefaultList>;
|
|
54
|
-
default: () => never[];
|
|
55
|
-
};
|
|
56
|
-
uploadRequest: {
|
|
57
|
-
type: import("vue").PropType<UploadRequest>;
|
|
58
|
-
default(): () => void;
|
|
59
|
-
};
|
|
60
|
-
cloudReadUrl: {
|
|
61
|
-
type: import("vue").PropType<string>;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
holdProgress: {
|
|
65
|
-
type: import("vue").PropType<number>;
|
|
66
|
-
default: number;
|
|
67
|
-
};
|
|
68
|
-
customErrors: {
|
|
69
|
-
type: import("vue").PropType<CustomErrors>;
|
|
70
|
-
default(): undefined;
|
|
71
|
-
};
|
|
7
|
+
extraProps: {
|
|
8
|
+
type: import("vue").PropType<ExtraProps>;
|
|
9
|
+
default: () => {};
|
|
72
10
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
expose: any;
|
|
77
|
-
}): {
|
|
78
|
-
uploadDisabled: import("vue").ComputedRef<boolean>;
|
|
79
|
-
updateUploadProgress(file: any, progress: any): void;
|
|
80
|
-
customUploadRequest(file: any): void;
|
|
81
|
-
fileIsDelete(file: any): boolean;
|
|
82
|
-
uploadSuccess(data: any, file: any): void;
|
|
83
|
-
uploadError(error: any, file?: any): void;
|
|
84
|
-
deleteFile(uid: any): Promise<void>;
|
|
85
|
-
pictureHoverEnter(uid: string): void;
|
|
86
|
-
pictureHoverLeave(uid: string): void;
|
|
87
|
-
viewOnePicture(item: any): void;
|
|
88
|
-
handleClosePictureView(): void;
|
|
89
|
-
reUpload(e: any, uid: any): void;
|
|
90
|
-
paste(event: ClipboardEvent): void;
|
|
91
|
-
handleReject(e: any): void;
|
|
92
|
-
icons: {
|
|
93
|
-
pdf: string;
|
|
94
|
-
ppt: string;
|
|
95
|
-
excel: string;
|
|
96
|
-
doc: string;
|
|
97
|
-
others: string;
|
|
98
|
-
};
|
|
99
|
-
uploadBarColor: import("vue").Ref<string>;
|
|
100
|
-
uploadedList: import("vue").Ref<any[]>;
|
|
101
|
-
fileList: import("vue").Ref<{}>;
|
|
102
|
-
onepViewImageHover: import("vue").Ref<{}>;
|
|
103
|
-
previewVisible: import("vue").Ref<boolean>;
|
|
104
|
-
onepViewImage: import("vue").Ref<{}>;
|
|
105
|
-
extraConfigs: import("vue").Ref<{
|
|
106
|
-
maxSize: number;
|
|
107
|
-
maxCount: number;
|
|
108
|
-
isAllowDownloadFieldProps: boolean;
|
|
109
|
-
hideDisabledBtn: boolean;
|
|
110
|
-
tips: string;
|
|
111
|
-
showTips: boolean;
|
|
112
|
-
btnClass: string;
|
|
113
|
-
picClass: string;
|
|
114
|
-
alignCenter: boolean;
|
|
115
|
-
canNotViewAccept: string;
|
|
116
|
-
myBtn: boolean;
|
|
117
|
-
showFileName: boolean;
|
|
118
|
-
drag: boolean;
|
|
119
|
-
}>;
|
|
120
|
-
uploadConfigs: import("vue").Ref<{
|
|
121
|
-
multiple: boolean;
|
|
122
|
-
showUploadList: boolean;
|
|
123
|
-
showSlotList: boolean;
|
|
124
|
-
listType: string;
|
|
125
|
-
text: string;
|
|
126
|
-
accept: string;
|
|
127
|
-
data: {};
|
|
128
|
-
name: string;
|
|
129
|
-
disabled: boolean;
|
|
130
|
-
customRequest: ({ file, fileField, data }: {
|
|
131
|
-
file: any;
|
|
132
|
-
fileField: any;
|
|
133
|
-
data: any;
|
|
134
|
-
}) => Promise<void>;
|
|
135
|
-
}>;
|
|
136
|
-
pictureFileTypes: import("vue").Ref<string[]>;
|
|
11
|
+
defaultList: {
|
|
12
|
+
type: import("vue").PropType<DefaultList>;
|
|
13
|
+
default: () => never[];
|
|
137
14
|
};
|
|
138
|
-
|
|
15
|
+
uploadRequest: {
|
|
16
|
+
type: import("vue").PropType<UploadRequest>;
|
|
17
|
+
default: () => () => void;
|
|
18
|
+
};
|
|
19
|
+
cloudReadUrl: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
holdProgress: {
|
|
24
|
+
type: import("vue").PropType<number>;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
customErrors: {
|
|
28
|
+
type: import("vue").PropType<CustomErrors>;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
uploadDisabled: import("vue").ComputedRef<boolean>;
|
|
33
|
+
updateUploadProgress(file: any, progress: any): void;
|
|
34
|
+
customUploadRequest(file: any): void;
|
|
35
|
+
fileIsDelete(file: any): boolean;
|
|
36
|
+
uploadSuccess(data: any, file: any): void;
|
|
37
|
+
uploadError(error: any, file?: any): void;
|
|
38
|
+
deleteFile(uid: any): Promise<void>;
|
|
39
|
+
pictureHoverEnter(uid: string): void;
|
|
40
|
+
pictureHoverLeave(uid: string): void;
|
|
41
|
+
viewOnePicture(item: any): void;
|
|
42
|
+
handleClosePictureView(): void;
|
|
43
|
+
reUpload(e: any, uid: any): void;
|
|
44
|
+
paste(event: ClipboardEvent): void;
|
|
45
|
+
handleReject(e: any): void;
|
|
46
|
+
icons: {
|
|
47
|
+
pdf: string;
|
|
48
|
+
ppt: string;
|
|
49
|
+
excel: string;
|
|
50
|
+
doc: string;
|
|
51
|
+
others: string;
|
|
52
|
+
};
|
|
53
|
+
uploadBarColor: import("vue").Ref<string>;
|
|
54
|
+
uploadedList: import("vue").Ref<any[]>;
|
|
55
|
+
fileList: import("vue").Ref<{}>;
|
|
56
|
+
onepViewImageHover: import("vue").Ref<{}>;
|
|
57
|
+
previewVisible: import("vue").Ref<boolean>;
|
|
58
|
+
onepViewImage: import("vue").Ref<{}>;
|
|
59
|
+
extraConfigs: import("vue").Ref<{
|
|
60
|
+
maxSize: number;
|
|
61
|
+
maxCount: number;
|
|
62
|
+
isAllowDownloadFieldProps: boolean;
|
|
63
|
+
hideDisabledBtn: boolean;
|
|
64
|
+
tips: string;
|
|
65
|
+
showTips: boolean;
|
|
66
|
+
btnClass: string;
|
|
67
|
+
picClass: string;
|
|
68
|
+
alignCenter: boolean;
|
|
69
|
+
canNotViewAccept: string;
|
|
70
|
+
myBtn: boolean;
|
|
71
|
+
showFileName: boolean;
|
|
72
|
+
drag: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
uploadConfigs: import("vue").Ref<{
|
|
75
|
+
multiple: boolean;
|
|
76
|
+
showUploadList: boolean;
|
|
77
|
+
showSlotList: boolean;
|
|
78
|
+
listType: string;
|
|
79
|
+
text: string;
|
|
80
|
+
accept: string;
|
|
81
|
+
data: {};
|
|
82
|
+
name: string;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
customRequest: ({ file, fileField, data }: {
|
|
85
|
+
file: any;
|
|
86
|
+
fileField: any;
|
|
87
|
+
data: any;
|
|
88
|
+
}) => Promise<void>;
|
|
89
|
+
}>;
|
|
90
|
+
pictureFileTypes: import("vue").Ref<string[]>;
|
|
91
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success" | "delete" | "update" | "previewFile" | "successFile" | "deleteFile" | "updateDisabledStatus" | "updateIsUploadingStatus")[], "error" | "success" | "delete" | "update" | "previewFile" | "successFile" | "deleteFile" | "updateDisabledStatus" | "updateIsUploadingStatus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
uploadProps: {
|
|
93
|
+
type: import("vue").PropType<UploadPropsInner>;
|
|
94
|
+
default: () => {};
|
|
95
|
+
};
|
|
96
|
+
extraProps: {
|
|
97
|
+
type: import("vue").PropType<ExtraProps>;
|
|
98
|
+
default: () => {};
|
|
99
|
+
};
|
|
100
|
+
defaultList: {
|
|
101
|
+
type: import("vue").PropType<DefaultList>;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
uploadRequest: {
|
|
105
|
+
type: import("vue").PropType<UploadRequest>;
|
|
106
|
+
default: () => () => void;
|
|
107
|
+
};
|
|
108
|
+
cloudReadUrl: {
|
|
109
|
+
type: import("vue").PropType<string>;
|
|
110
|
+
default: string;
|
|
111
|
+
};
|
|
112
|
+
holdProgress: {
|
|
113
|
+
type: import("vue").PropType<number>;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
customErrors: {
|
|
117
|
+
type: import("vue").PropType<CustomErrors>;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
}>> & {
|
|
121
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
onPreviewFile?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
onSuccessFile?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
onDeleteFile?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
onUpdateDisabledStatus?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
onUpdateIsUploadingStatus?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
uploadRequest: UploadRequest;
|
|
132
|
+
uploadProps: UploadPropsInner;
|
|
133
|
+
extraProps: ExtraProps;
|
|
134
|
+
defaultList: DefaultList;
|
|
135
|
+
cloudReadUrl: string;
|
|
136
|
+
holdProgress: number;
|
|
137
|
+
customErrors: CustomErrors;
|
|
138
|
+
}>>;
|
|
139
139
|
export { BmUpload, UploadPropsInner, ExtraProps, DefaultList, UploadRequest, CustomErrors, };
|
|
140
140
|
export type { UploadProps };
|
|
141
141
|
export default BmUpload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, createElementBlock, Fragment, createCommentVNode, renderList, createVNode, resolveDynamicComponent, mergeProps } from 'vue';
|
|
2
|
+
import { defineComponent, reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, createElementBlock, Fragment, createCommentVNode, renderList, createVNode, resolveDynamicComponent, mergeProps } from 'vue';
|
|
3
3
|
import { PlusOutlined, UploadOutlined, LoadingOutlined, InboxOutlined } from '@ant-design/icons-vue';
|
|
4
4
|
|
|
5
5
|
var _export_sfc = (sfc, props) => {
|
|
@@ -10,7 +10,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
10
10
|
return target;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
const _sfc_main$1 = {
|
|
13
|
+
const _sfc_main$1 = defineComponent({
|
|
14
14
|
name: "BmOverTooltips",
|
|
15
15
|
props: {
|
|
16
16
|
title: {
|
|
@@ -95,15 +95,15 @@ const _sfc_main$1 = {
|
|
|
95
95
|
getPopupContainer
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
};
|
|
98
|
+
});
|
|
99
99
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
100
100
|
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
101
101
|
return openBlock(), createBlock(_component_a_tooltip, {
|
|
102
102
|
visible: _ctx.isShow,
|
|
103
103
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.isShow = $event),
|
|
104
|
-
title:
|
|
105
|
-
"get-popup-container":
|
|
106
|
-
onVisibleChange:
|
|
104
|
+
title: _ctx.labelTitle || _ctx.title,
|
|
105
|
+
"get-popup-container": _ctx.getPopupContainer,
|
|
106
|
+
onVisibleChange: _ctx.handleVisibleChange
|
|
107
107
|
}, {
|
|
108
108
|
title: withCtx(() => [
|
|
109
109
|
renderSlot(_ctx.$slots, "title")
|
|
@@ -112,14 +112,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
112
112
|
createElementVNode("div", {
|
|
113
113
|
ref: "mySelf",
|
|
114
114
|
style: normalizeStyle({
|
|
115
|
-
width:
|
|
116
|
-
WebkitLineClamp:
|
|
115
|
+
width: _ctx.width ? _ctx.width + "px" : "100%",
|
|
116
|
+
WebkitLineClamp: _ctx.line
|
|
117
117
|
}),
|
|
118
|
-
class: normalizeClass(
|
|
118
|
+
class: normalizeClass(_ctx.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
|
|
119
119
|
}, [
|
|
120
120
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
121
121
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
122
|
-
createTextVNode(toDisplayString(
|
|
122
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
123
123
|
])
|
|
124
124
|
])
|
|
125
125
|
], 6)
|
|
@@ -166,7 +166,7 @@ var icons = {
|
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
const CLOUND_PRE = "/cloudStorage/read";
|
|
169
|
-
const _sfc_main = {
|
|
169
|
+
const _sfc_main = defineComponent({
|
|
170
170
|
name: "BmUpload",
|
|
171
171
|
components: {
|
|
172
172
|
PlusOutlined,
|
|
@@ -194,7 +194,7 @@ const _sfc_main = {
|
|
|
194
194
|
},
|
|
195
195
|
uploadRequest: {
|
|
196
196
|
type: Function,
|
|
197
|
-
default() {
|
|
197
|
+
default: () => {
|
|
198
198
|
return () => {
|
|
199
199
|
};
|
|
200
200
|
}
|
|
@@ -209,8 +209,8 @@ const _sfc_main = {
|
|
|
209
209
|
},
|
|
210
210
|
customErrors: {
|
|
211
211
|
type: Object,
|
|
212
|
-
default() {
|
|
213
|
-
return
|
|
212
|
+
default: () => {
|
|
213
|
+
return {};
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
},
|
|
@@ -493,7 +493,7 @@ const _sfc_main = {
|
|
|
493
493
|
});
|
|
494
494
|
list.forEach(function(item) {
|
|
495
495
|
let uid = item.uid || utils.getuid();
|
|
496
|
-
if (!item.url
|
|
496
|
+
if (!item.url?.includes("http") && !item.url?.includes(CLOUND_PRE))
|
|
497
497
|
item.url = props.cloudReadUrl + item.url;
|
|
498
498
|
state.fileList[uid] = {
|
|
499
499
|
uid,
|
|
@@ -576,7 +576,7 @@ const _sfc_main = {
|
|
|
576
576
|
uploadDisabled
|
|
577
577
|
};
|
|
578
578
|
}
|
|
579
|
-
};
|
|
579
|
+
});
|
|
580
580
|
const _hoisted_1 = {
|
|
581
581
|
key: 0,
|
|
582
582
|
class: "bm-upload__picture-progress"
|
|
@@ -661,7 +661,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
661
661
|
"bm-upload--text": _ctx.uploadConfigs.listType === "text",
|
|
662
662
|
"bm-upload--drag": _ctx.extraConfigs.drag,
|
|
663
663
|
"bm-upload--picture-card": _ctx.uploadConfigs.listType === "picture-card",
|
|
664
|
-
"bm-upload--picture-card--has-tips": !(
|
|
664
|
+
"bm-upload--picture-card--has-tips": !(_ctx.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) && !_ctx.extraConfigs.myBtn && _ctx.uploadConfigs.listType === "picture-card" && _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips
|
|
665
665
|
}])
|
|
666
666
|
}, [
|
|
667
667
|
_ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -698,7 +698,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
698
698
|
["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
699
699
|
key: 0,
|
|
700
700
|
class: "bm-upload__picture-result__image",
|
|
701
|
-
src:
|
|
701
|
+
src: _ctx.icons.pdf,
|
|
702
702
|
alt: "\u56FE\u7247"
|
|
703
703
|
}, null, 8, _hoisted_4)) : [
|
|
704
704
|
"xlsx",
|
|
@@ -707,7 +707,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
707
707
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
708
708
|
key: 1,
|
|
709
709
|
class: "bm-upload__picture-result__image",
|
|
710
|
-
src:
|
|
710
|
+
src: _ctx.icons.excel,
|
|
711
711
|
alt: "\u56FE\u7247"
|
|
712
712
|
}, null, 8, _hoisted_5)) : [
|
|
713
713
|
"ppt",
|
|
@@ -719,7 +719,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
719
719
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
720
720
|
key: 2,
|
|
721
721
|
class: "bm-upload__picture-result__image",
|
|
722
|
-
src:
|
|
722
|
+
src: _ctx.icons.ppt,
|
|
723
723
|
alt: "\u56FE\u7247"
|
|
724
724
|
}, null, 8, _hoisted_6)) : [
|
|
725
725
|
"doc",
|
|
@@ -731,7 +731,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
731
731
|
].includes(item.type) ? (openBlock(), createElementBlock("img", {
|
|
732
732
|
key: 3,
|
|
733
733
|
class: "bm-upload__picture-result__image",
|
|
734
|
-
src:
|
|
734
|
+
src: _ctx.icons.doc,
|
|
735
735
|
alt: "\u56FE\u7247"
|
|
736
736
|
}, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
737
737
|
item.url ? (openBlock(), createBlock(_component_a_image, {
|
|
@@ -743,7 +743,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
743
743
|
], 64)) : (openBlock(), createElementBlock("img", {
|
|
744
744
|
key: 5,
|
|
745
745
|
class: "bm-upload__picture-result__image",
|
|
746
|
-
src:
|
|
746
|
+
src: _ctx.icons.others,
|
|
747
747
|
alt: "\u56FE\u7247"
|
|
748
748
|
}, null, 8, _hoisted_8)),
|
|
749
749
|
_ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", {
|
|
@@ -800,9 +800,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
800
800
|
}), 128)),
|
|
801
801
|
createCommentVNode(" </a-image-preview-group> ")
|
|
802
802
|
], 64)) : createCommentVNode("v-if", true),
|
|
803
|
-
!(
|
|
803
|
+
!(_ctx.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
804
804
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.extraConfigs.drag ? "a-upload-dragger" : "a-upload"), mergeProps(_ctx.uploadConfigs, {
|
|
805
|
-
disabled:
|
|
805
|
+
disabled: _ctx.uploadDisabled,
|
|
806
806
|
class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
|
|
807
807
|
onReject: _ctx.handleReject
|
|
808
808
|
}), {
|
|
@@ -819,7 +819,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
819
819
|
])) : _ctx.uploadConfigs.listType === "text" ? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
820
820
|
createVNode(_component_a_button, {
|
|
821
821
|
class: normalizeClass(_ctx.extraConfigs.btnClass),
|
|
822
|
-
disabled:
|
|
822
|
+
disabled: _ctx.uploadDisabled
|
|
823
823
|
}, {
|
|
824
824
|
default: withCtx(() => [
|
|
825
825
|
createVNode(_component_UploadOutlined),
|