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