bm-admin-ui 1.0.41-alpha → 1.0.43-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 +70 -0
- package/es/components/attachment/index.js +273 -0
- package/es/components/attachment/src/attachment.vue.d.ts +69 -0
- package/es/components/editor/index.js +12 -6
- package/es/components/float-table/__test__/index.test.d.ts +1 -0
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/form-create/index.js +211 -100
- package/es/components/form-designer/index.js +173 -42
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/staffs-selector/index.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 +2 -2
- package/es/components/upload/index.js +12 -6
- package/es/utils/bm-admin-ui-resolver.d.ts +3 -1
- package/es/utils/bm-admin-ui-resolver.js +1 -1
- package/index.esm.js +1225 -818
- package/index.js +1225 -817
- package/lib/components/attachment/index.d.ts +70 -0
- package/lib/components/attachment/index.js +278 -0
- package/lib/components/attachment/src/attachment.vue.d.ts +69 -0
- package/lib/components/editor/index.js +12 -6
- package/lib/components/float-table/__test__/index.test.d.ts +1 -0
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/form-create/index.js +210 -99
- package/lib/components/form-designer/index.js +172 -41
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/staffs-selector/index.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 +2 -2
- package/lib/components/upload/index.js +12 -6
- package/lib/utils/bm-admin-ui-resolver.d.ts +3 -1
- package/lib/utils/bm-admin-ui-resolver.js +1 -1
- package/package.json +2 -2
- package/theme-chalk/attachment.css +1 -0
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/types/components/attachment/index.d.ts +70 -0
- package/types/components/attachment/src/attachment.vue.d.ts +69 -0
- package/types/components/float-table/__test__/index.test.d.ts +1 -0
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/index.d.ts +1 -0
- package/types/components/staffs-selector/index.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 +2 -2
- package/types/utils/bm-admin-ui-resolver.d.ts +3 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const BmAttachment: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
file: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => void;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
emit: (event: "preview" | "download", ...args: any[]) => void;
|
|
8
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
file: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => void;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
onPreview?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>>;
|
|
17
|
+
visible: import("vue").Ref<boolean>;
|
|
18
|
+
data: any;
|
|
19
|
+
renderSize: (size: any) => string;
|
|
20
|
+
setVisible: (value: any) => void;
|
|
21
|
+
preview: (item: any) => void;
|
|
22
|
+
download: (item: any) => void;
|
|
23
|
+
BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
|
|
24
|
+
name: string;
|
|
25
|
+
props: {
|
|
26
|
+
title: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
labelTitle: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
line: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
width: {
|
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
showAlways: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
setup(props: any, context: any): {
|
|
48
|
+
mySelf: import("vue").Ref<any>;
|
|
49
|
+
handleVisibleChange: (val: any) => void;
|
|
50
|
+
getPopupContainer: () => HTMLElement;
|
|
51
|
+
mSlots: import("vue").Ref<{}>;
|
|
52
|
+
isShow: import("vue").Ref<boolean>;
|
|
53
|
+
openShow: import("vue").Ref<boolean>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
DownloadOutlined: import("@ant-design/icons-vue/lib/icons/DownloadOutlined").DownloadOutlinedIconType;
|
|
57
|
+
EyeOutlined: import("@ant-design/icons-vue/lib/icons/EyeOutlined").EyeOutlinedIconType;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("preview" | "download")[], "preview" | "download", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
file: {
|
|
60
|
+
type: ObjectConstructor;
|
|
61
|
+
default: () => void;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
64
|
+
onPreview?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
file: Record<string, any>;
|
|
68
|
+
}>>;
|
|
69
|
+
export { BmAttachment };
|
|
70
|
+
export default BmAttachment;
|
|
@@ -0,0 +1,273 @@
|
|
|
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, defineComponent, computed, createElementBlock, Fragment, createVNode, unref, createCommentVNode } from 'vue';
|
|
3
|
+
import { DownloadOutlined, EyeOutlined } from '@ant-design/icons-vue';
|
|
4
|
+
|
|
5
|
+
var _export_sfc = (sfc, props) => {
|
|
6
|
+
const target = sfc.__vccOpts || sfc;
|
|
7
|
+
for (const [key, val] of props) {
|
|
8
|
+
target[key] = val;
|
|
9
|
+
}
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const _sfc_main$1 = {
|
|
14
|
+
name: "BmOverTooltips",
|
|
15
|
+
props: {
|
|
16
|
+
title: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
20
|
+
labelTitle: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
line: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 1
|
|
27
|
+
},
|
|
28
|
+
width: {
|
|
29
|
+
type: [Number, String],
|
|
30
|
+
default: 0
|
|
31
|
+
},
|
|
32
|
+
showAlways: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
setup(props, context) {
|
|
38
|
+
const state = reactive({
|
|
39
|
+
mSlots: {},
|
|
40
|
+
isShow: false,
|
|
41
|
+
openShow: false
|
|
42
|
+
});
|
|
43
|
+
const observer = new IntersectionObserver(
|
|
44
|
+
(entries) => {
|
|
45
|
+
entries.forEach((item) => {
|
|
46
|
+
if (item.intersectionRatio > 0.3) {
|
|
47
|
+
observerDom();
|
|
48
|
+
observer.disconnect();
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
threshold: 0.3
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
function observerDom() {
|
|
57
|
+
if (props.line === 1) {
|
|
58
|
+
if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
|
|
59
|
+
state.openShow = true;
|
|
60
|
+
}
|
|
61
|
+
} else if (props.line > 1) {
|
|
62
|
+
if (mySelf.value.scrollHeight > mySelf.value.clientHeight) {
|
|
63
|
+
state.openShow = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
onBeforeUnmount(function() {
|
|
68
|
+
observer.disconnect();
|
|
69
|
+
});
|
|
70
|
+
let mySelf = ref();
|
|
71
|
+
watch(
|
|
72
|
+
() => props.showAlways,
|
|
73
|
+
function(showAlways) {
|
|
74
|
+
if (showAlways)
|
|
75
|
+
state.openShow = showAlways;
|
|
76
|
+
mySelf.value && observer.unobserve(mySelf.value);
|
|
77
|
+
nextTick(function() {
|
|
78
|
+
mySelf.value && observer.observe(mySelf.value);
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
immediate: true
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
const handleVisibleChange = (val) => {
|
|
86
|
+
state.isShow = !state.openShow ? false : val;
|
|
87
|
+
};
|
|
88
|
+
const getPopupContainer = () => {
|
|
89
|
+
return document.body;
|
|
90
|
+
};
|
|
91
|
+
return {
|
|
92
|
+
...toRefs(state),
|
|
93
|
+
mySelf,
|
|
94
|
+
handleVisibleChange,
|
|
95
|
+
getPopupContainer
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
100
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
101
|
+
return openBlock(), createBlock(_component_a_tooltip, {
|
|
102
|
+
visible: _ctx.isShow,
|
|
103
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.isShow = $event),
|
|
104
|
+
title: $props.labelTitle || $props.title,
|
|
105
|
+
"get-popup-container": $setup.getPopupContainer,
|
|
106
|
+
onVisibleChange: $setup.handleVisibleChange
|
|
107
|
+
}, {
|
|
108
|
+
title: withCtx(() => [
|
|
109
|
+
renderSlot(_ctx.$slots, "title")
|
|
110
|
+
]),
|
|
111
|
+
default: withCtx(() => [
|
|
112
|
+
createElementVNode("div", {
|
|
113
|
+
ref: "mySelf",
|
|
114
|
+
style: normalizeStyle({
|
|
115
|
+
width: $props.width ? $props.width + "px" : "100%",
|
|
116
|
+
WebkitLineClamp: $props.line
|
|
117
|
+
}),
|
|
118
|
+
class: normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
|
|
119
|
+
}, [
|
|
120
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
121
|
+
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
122
|
+
createTextVNode(toDisplayString($props.title), 1)
|
|
123
|
+
])
|
|
124
|
+
])
|
|
125
|
+
], 6)
|
|
126
|
+
]),
|
|
127
|
+
_: 3
|
|
128
|
+
}, 8, ["visible", "title", "get-popup-container", "onVisibleChange"]);
|
|
129
|
+
}
|
|
130
|
+
var OverTooltips = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "over-tooltips.vue"]]);
|
|
131
|
+
|
|
132
|
+
const BmOverTooltips = withInstall(OverTooltips);
|
|
133
|
+
var BmOverTooltips$1 = BmOverTooltips;
|
|
134
|
+
|
|
135
|
+
const _hoisted_1 = { class: "file_block" };
|
|
136
|
+
const _hoisted_2 = { class: "file_name" };
|
|
137
|
+
const _hoisted_3 = { class: "file_info" };
|
|
138
|
+
const _hoisted_4 = { class: "icon_text" };
|
|
139
|
+
const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", { class: "icon_text" }, "\u5728\u7EBF\u67E5\u770B", -1);
|
|
140
|
+
const __default__ = {
|
|
141
|
+
name: "BmAttachment"
|
|
142
|
+
};
|
|
143
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
144
|
+
...__default__,
|
|
145
|
+
props: {
|
|
146
|
+
file: {
|
|
147
|
+
type: Object,
|
|
148
|
+
default: () => {
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
emits: ["preview", "download"],
|
|
153
|
+
setup(__props, { emit }) {
|
|
154
|
+
const props = __props;
|
|
155
|
+
const visible = ref(false);
|
|
156
|
+
const data = reactive({
|
|
157
|
+
fileType: computed(() => {
|
|
158
|
+
const getFileType = (file) => {
|
|
159
|
+
const index = file.lastIndexOf(".");
|
|
160
|
+
return file.substr(index + 1);
|
|
161
|
+
};
|
|
162
|
+
return getFileType(props.file.fileName);
|
|
163
|
+
}),
|
|
164
|
+
nonsupportPreview: computed(() => {
|
|
165
|
+
return ["zip", "rar"].includes(data.fileType);
|
|
166
|
+
}),
|
|
167
|
+
pictureFileTypes: [
|
|
168
|
+
"img",
|
|
169
|
+
"image",
|
|
170
|
+
"png",
|
|
171
|
+
"PNG",
|
|
172
|
+
"image/png",
|
|
173
|
+
"jpg",
|
|
174
|
+
"JPG",
|
|
175
|
+
"jpeg",
|
|
176
|
+
"JPEG",
|
|
177
|
+
"image/jpeg",
|
|
178
|
+
"gif",
|
|
179
|
+
"GIF",
|
|
180
|
+
"image/gif"
|
|
181
|
+
],
|
|
182
|
+
openViewImage: ""
|
|
183
|
+
});
|
|
184
|
+
const renderSize = (size) => {
|
|
185
|
+
const pow1024 = (num) => {
|
|
186
|
+
return Math.pow(1024, num);
|
|
187
|
+
};
|
|
188
|
+
if (!size)
|
|
189
|
+
return "0KB";
|
|
190
|
+
if (size < pow1024(1))
|
|
191
|
+
return `${size.toFixed(2)}KB`;
|
|
192
|
+
if (size < pow1024(2))
|
|
193
|
+
return `${(size / pow1024(1)).toFixed(2)}MB`;
|
|
194
|
+
if (size < pow1024(3))
|
|
195
|
+
return `${(size / pow1024(2)).toFixed(2)}GB`;
|
|
196
|
+
return `${(size / pow1024(3)).toFixed(2)}TB`;
|
|
197
|
+
};
|
|
198
|
+
const setVisible = (value) => {
|
|
199
|
+
visible.value = value;
|
|
200
|
+
};
|
|
201
|
+
const preview = (item) => {
|
|
202
|
+
if (data.pictureFileTypes.indexOf(data.fileType) > -1) {
|
|
203
|
+
setVisible(true);
|
|
204
|
+
data.openViewImage = item.filePath;
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
window.open(item.filePath);
|
|
208
|
+
};
|
|
209
|
+
const download = (item) => {
|
|
210
|
+
emit("download", { file: item });
|
|
211
|
+
};
|
|
212
|
+
return (_ctx, _cache) => {
|
|
213
|
+
const _component_a_image = resolveComponent("a-image");
|
|
214
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
215
|
+
createElementVNode("div", _hoisted_1, [
|
|
216
|
+
createElementVNode("i", {
|
|
217
|
+
class: normalizeClass({
|
|
218
|
+
file_icon: true,
|
|
219
|
+
icon_excel: data.fileType === "xlsx",
|
|
220
|
+
icon_ppt: ["ppt", "pptx"].indexOf(data.fileType) > -1,
|
|
221
|
+
icon_word: ["docx", "doc"].indexOf(data.fileType) > -1,
|
|
222
|
+
icon_image: ["png", "jpg", "jpeg", "gif"].indexOf(data.fileType) > -1,
|
|
223
|
+
icon_video: data.fileType === "mp4",
|
|
224
|
+
icon_pdf: data.fileType === "pdf",
|
|
225
|
+
icon_compress: ["rar", "zip"].indexOf(data.fileType) > -1,
|
|
226
|
+
icon_others: true
|
|
227
|
+
})
|
|
228
|
+
}, null, 2),
|
|
229
|
+
createElementVNode("div", null, [
|
|
230
|
+
createElementVNode("div", _hoisted_2, [
|
|
231
|
+
createVNode(unref(BmOverTooltips$1), {
|
|
232
|
+
placement: "topLeft",
|
|
233
|
+
title: __props.file.fileName || ""
|
|
234
|
+
}, null, 8, ["title"])
|
|
235
|
+
]),
|
|
236
|
+
createElementVNode("div", _hoisted_3, [
|
|
237
|
+
__props.file.isAllowDownload ? (openBlock(), createElementBlock("div", {
|
|
238
|
+
key: 0,
|
|
239
|
+
class: "file_size",
|
|
240
|
+
onClick: download
|
|
241
|
+
}, [
|
|
242
|
+
createVNode(unref(DownloadOutlined)),
|
|
243
|
+
createTextVNode(),
|
|
244
|
+
createElementVNode("span", _hoisted_4, toDisplayString(renderSize(__props.file.fileSize)), 1)
|
|
245
|
+
])) : createCommentVNode("v-if", true),
|
|
246
|
+
!data.nonsupportPreview ? (openBlock(), createElementBlock("div", {
|
|
247
|
+
key: 1,
|
|
248
|
+
class: "file_preview",
|
|
249
|
+
onClick: _cache[0] || (_cache[0] = ($event) => preview(__props.file))
|
|
250
|
+
}, [
|
|
251
|
+
createVNode(unref(EyeOutlined)),
|
|
252
|
+
_hoisted_5
|
|
253
|
+
])) : createCommentVNode("v-if", true)
|
|
254
|
+
])
|
|
255
|
+
])
|
|
256
|
+
]),
|
|
257
|
+
createVNode(_component_a_image, {
|
|
258
|
+
style: { display: "none" },
|
|
259
|
+
preview: {
|
|
260
|
+
visible: visible.value,
|
|
261
|
+
onVisibleChange: setVisible
|
|
262
|
+
},
|
|
263
|
+
src: data.openViewImage
|
|
264
|
+
}, null, 8, ["preview", "src"])
|
|
265
|
+
], 64);
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
var Attachment = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "attachment.vue"]]);
|
|
270
|
+
|
|
271
|
+
const BmAttachment = withInstall(Attachment);
|
|
272
|
+
|
|
273
|
+
export { BmAttachment, BmAttachment as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
file: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => void;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
emit: (event: "preview" | "download", ...args: any[]) => void;
|
|
8
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
file: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => void;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
onPreview?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
|
16
|
+
}>>;
|
|
17
|
+
visible: import("vue").Ref<boolean>;
|
|
18
|
+
data: any;
|
|
19
|
+
renderSize: (size: any) => string;
|
|
20
|
+
setVisible: (value: any) => void;
|
|
21
|
+
preview: (item: any) => void;
|
|
22
|
+
download: (item: any) => void;
|
|
23
|
+
BmOverTooltips: import("../../../utils/with-install").SFCWithInstall<{
|
|
24
|
+
name: string;
|
|
25
|
+
props: {
|
|
26
|
+
title: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: undefined;
|
|
29
|
+
};
|
|
30
|
+
labelTitle: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
line: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
width: {
|
|
39
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
showAlways: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
setup(props: any, context: any): {
|
|
48
|
+
mySelf: import("vue").Ref<any>;
|
|
49
|
+
handleVisibleChange: (val: any) => void;
|
|
50
|
+
getPopupContainer: () => HTMLElement;
|
|
51
|
+
mSlots: import("vue").Ref<{}>;
|
|
52
|
+
isShow: import("vue").Ref<boolean>;
|
|
53
|
+
openShow: import("vue").Ref<boolean>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
DownloadOutlined: import("@ant-design/icons-vue/lib/icons/DownloadOutlined").DownloadOutlinedIconType;
|
|
57
|
+
EyeOutlined: import("@ant-design/icons-vue/lib/icons/EyeOutlined").EyeOutlinedIconType;
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("preview" | "download")[], "preview" | "download", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
file: {
|
|
60
|
+
type: ObjectConstructor;
|
|
61
|
+
default: () => void;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
64
|
+
onPreview?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
file: Record<string, any>;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
@@ -11733,6 +11733,9 @@ const _sfc_main$1 = {
|
|
|
11733
11733
|
status: ""
|
|
11734
11734
|
};
|
|
11735
11735
|
setTimeout(function() {
|
|
11736
|
+
if (methods.fileIsDelete(file)) {
|
|
11737
|
+
return;
|
|
11738
|
+
}
|
|
11736
11739
|
state.fileList[file.uid].isDoneDeloy = true;
|
|
11737
11740
|
}, 1e3);
|
|
11738
11741
|
methods.customUploadRequest(file);
|
|
@@ -12011,7 +12014,10 @@ const _hoisted_17 = {
|
|
|
12011
12014
|
key: 0,
|
|
12012
12015
|
class: "bm-upload__picture__name"
|
|
12013
12016
|
};
|
|
12014
|
-
const _hoisted_18 = {
|
|
12017
|
+
const _hoisted_18 = {
|
|
12018
|
+
key: 1,
|
|
12019
|
+
class: "bm-upload__button__wrapper"
|
|
12020
|
+
};
|
|
12015
12021
|
const _hoisted_19 = { key: 0 };
|
|
12016
12022
|
const _hoisted_20 = { class: "ant-upload-text bm-upload__text" };
|
|
12017
12023
|
const _hoisted_21 = {
|
|
@@ -12033,7 +12039,7 @@ const _hoisted_26 = {
|
|
|
12033
12039
|
class: "bm-upload__tips"
|
|
12034
12040
|
};
|
|
12035
12041
|
const _hoisted_27 = {
|
|
12036
|
-
key:
|
|
12042
|
+
key: 2,
|
|
12037
12043
|
class: "bm-upload__file-list"
|
|
12038
12044
|
};
|
|
12039
12045
|
const _hoisted_28 = { class: "bm-upload__file__detail" };
|
|
@@ -12205,8 +12211,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12205
12211
|
}), 128)),
|
|
12206
12212
|
createCommentVNode(" </a-image-preview-group> ")
|
|
12207
12213
|
], 64)) : createCommentVNode("v-if", true),
|
|
12208
|
-
|
|
12209
|
-
|
|
12214
|
+
!($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
12215
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.extraConfigs.drag ? "a-upload-dragger" : "a-upload"), mergeProps(_ctx.uploadConfigs, {
|
|
12210
12216
|
disabled: $setup.uploadDisabled,
|
|
12211
12217
|
class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
|
|
12212
12218
|
onReject: _ctx.handleReject
|
|
@@ -12237,8 +12243,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12237
12243
|
], 64))
|
|
12238
12244
|
]),
|
|
12239
12245
|
_: 3
|
|
12240
|
-
}, 16, ["disabled", "class", "onReject"]))
|
|
12241
|
-
]),
|
|
12246
|
+
}, 16, ["disabled", "class", "onReject"]))
|
|
12247
|
+
])) : createCommentVNode("v-if", true),
|
|
12242
12248
|
_ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
12243
12249
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
|
|
12244
12250
|
return openBlock(), createElementBlock("div", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) |
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|