bm-admin-ui 1.0.40-alpha → 1.0.41-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/breadcrumb/index.d.ts +162 -0
- package/es/components/breadcrumb/index.js +158 -0
- package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/es/components/button/index.d.ts +303 -1
- package/es/components/editor/index.d.ts +305 -0
- package/es/components/editor/index.js +12543 -0
- package/es/components/editor/src/editor.vue.d.ts +304 -0
- package/es/components/editor/src/props.d.ts +31 -0
- package/es/components/feedback/index.d.ts +1028 -2
- package/es/components/float-table/index.d.ts +68 -1
- package/es/components/flow-designer/index.d.ts +5 -1
- package/es/components/form-create/index.js +77 -156
- package/es/components/form-designer/index.js +33 -131
- package/es/components/index.d.ts +2 -0
- package/es/components/index.js +2 -0
- package/es/components/input-tags-display/index.d.ts +138 -1
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/es/components/over-tooltips/index.d.ts +33 -1
- package/es/components/search-filter/index.d.ts +233 -1
- package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/es/components/select-all/index.d.ts +752 -1
- package/es/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/es/components/shops-filter/index.d.ts +97 -1
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/es/components/staffs-selector/index.d.ts +1095 -1
- package/es/components/staffs-selector/index.js +535 -505
- package/es/components/staffs-selector/src/action.d.ts +66 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/es/components/timeline/index.d.ts +111 -2
- package/es/components/upload/index.d.ts +139 -2
- package/es/components/upload/index.js +207 -170
- package/es/components/upload/src/props.d.ts +50 -0
- package/es/components/upload/src/upload.vue.d.ts +44 -11
- package/es/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/es/utils/bm-admin-ui-resolver.js +1 -1
- package/es/utils/with-install.d.ts +7 -1
- package/es/utils/with-install.js +1 -0
- package/index.esm.js +81188 -71499
- package/index.js +81186 -71495
- package/lib/components/breadcrumb/index.d.ts +162 -0
- package/lib/components/breadcrumb/index.js +168 -0
- package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/lib/components/button/index.d.ts +303 -1
- package/lib/components/editor/index.d.ts +305 -0
- package/lib/components/editor/index.js +12548 -0
- package/lib/components/editor/src/editor.vue.d.ts +304 -0
- package/lib/components/editor/src/props.d.ts +31 -0
- package/lib/components/feedback/index.d.ts +1028 -2
- package/lib/components/float-table/index.d.ts +68 -1
- package/lib/components/flow-designer/index.d.ts +5 -1
- package/lib/components/form-create/index.js +76 -155
- package/lib/components/form-designer/index.js +32 -130
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +14 -0
- package/lib/components/input-tags-display/index.d.ts +138 -1
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/lib/components/over-tooltips/index.d.ts +33 -1
- package/lib/components/search-filter/index.d.ts +233 -1
- package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/lib/components/select-all/index.d.ts +752 -1
- package/lib/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/lib/components/shops-filter/index.d.ts +97 -1
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/lib/components/staffs-selector/index.d.ts +1095 -1
- package/lib/components/staffs-selector/index.js +536 -506
- package/lib/components/staffs-selector/src/action.d.ts +66 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/lib/components/timeline/index.d.ts +111 -2
- package/lib/components/upload/index.d.ts +139 -2
- package/lib/components/upload/index.js +205 -168
- package/lib/components/upload/src/props.d.ts +50 -0
- package/lib/components/upload/src/upload.vue.d.ts +44 -11
- package/lib/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/lib/utils/bm-admin-ui-resolver.js +1 -1
- package/lib/utils/with-install.d.ts +7 -1
- package/lib/utils/with-install.js +1 -0
- package/package.json +2 -2
- package/theme-chalk/breadcrumb.css +1 -0
- package/theme-chalk/editor.css +16 -0
- package/theme-chalk/form-create.css +1 -1
- package/theme-chalk/index.css +16 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/breadcrumb/index.d.ts +162 -0
- package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
- package/types/components/button/index.d.ts +303 -1
- package/types/components/editor/index.d.ts +305 -0
- package/types/components/editor/src/editor.vue.d.ts +304 -0
- package/types/components/editor/src/props.d.ts +31 -0
- package/types/components/feedback/index.d.ts +1028 -2
- package/types/components/float-table/index.d.ts +68 -1
- package/types/components/flow-designer/index.d.ts +5 -1
- package/types/components/index.d.ts +2 -0
- package/types/components/input-tags-display/index.d.ts +138 -1
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
- package/types/components/over-tooltips/index.d.ts +33 -1
- package/types/components/search-filter/index.d.ts +233 -1
- package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
- package/types/components/select-all/index.d.ts +752 -1
- package/types/components/select-all/src/selectAll.vue.d.ts +5 -5
- package/types/components/shops-filter/index.d.ts +97 -1
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
- package/types/components/staffs-selector/index.d.ts +1095 -1
- package/types/components/staffs-selector/src/action.d.ts +66 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
- package/types/components/timeline/index.d.ts +111 -2
- package/types/components/upload/index.d.ts +139 -2
- package/types/components/upload/src/props.d.ts +50 -0
- package/types/components/upload/src/upload.vue.d.ts +44 -11
- package/types/utils/bm-admin-ui-resolver.d.ts +1 -3
- package/types/utils/with-install.d.ts +7 -1
|
@@ -172,7 +172,13 @@ var icons = {
|
|
|
172
172
|
const CLOUND_PRE = "/cloudStorage/read";
|
|
173
173
|
const _sfc_main = {
|
|
174
174
|
name: "BmUpload",
|
|
175
|
-
components: {
|
|
175
|
+
components: {
|
|
176
|
+
PlusOutlined: iconsVue.PlusOutlined,
|
|
177
|
+
OverTooltips,
|
|
178
|
+
UploadOutlined: iconsVue.UploadOutlined,
|
|
179
|
+
LoadingOutlined: iconsVue.LoadingOutlined,
|
|
180
|
+
InboxOutlined: iconsVue.InboxOutlined
|
|
181
|
+
},
|
|
176
182
|
props: {
|
|
177
183
|
uploadProps: {
|
|
178
184
|
type: Object,
|
|
@@ -270,7 +276,9 @@ const _sfc_main = {
|
|
|
270
276
|
picClass: "",
|
|
271
277
|
alignCenter: false,
|
|
272
278
|
canNotViewAccept: ".rar,.zip",
|
|
273
|
-
myBtn: false
|
|
279
|
+
myBtn: false,
|
|
280
|
+
showFileName: false,
|
|
281
|
+
drag: false
|
|
274
282
|
},
|
|
275
283
|
uploadConfigs: {
|
|
276
284
|
multiple: false,
|
|
@@ -590,50 +598,63 @@ const _hoisted_15 = ["onClick"];
|
|
|
590
598
|
const _hoisted_16 = ["onClick"];
|
|
591
599
|
const _hoisted_17 = {
|
|
592
600
|
key: 0,
|
|
601
|
+
class: "bm-upload__picture__name"
|
|
602
|
+
};
|
|
603
|
+
const _hoisted_18 = { class: "bm-upload__button__wrapper" };
|
|
604
|
+
const _hoisted_19 = { key: 0 };
|
|
605
|
+
const _hoisted_20 = { class: "ant-upload-text bm-upload__text" };
|
|
606
|
+
const _hoisted_21 = {
|
|
607
|
+
key: 0,
|
|
608
|
+
class: "bm-upload__tips"
|
|
609
|
+
};
|
|
610
|
+
const _hoisted_22 = {
|
|
611
|
+
key: 1,
|
|
593
612
|
style: { "font-size": "24px", "color": "#9393a3" }
|
|
594
613
|
};
|
|
595
|
-
const
|
|
596
|
-
const
|
|
614
|
+
const _hoisted_23 = { class: "ant-upload-text bm-upload__text" };
|
|
615
|
+
const _hoisted_24 = {
|
|
597
616
|
key: 0,
|
|
598
617
|
class: "bm-upload__tips"
|
|
599
618
|
};
|
|
600
|
-
const
|
|
601
|
-
const
|
|
619
|
+
const _hoisted_25 = { key: 2 };
|
|
620
|
+
const _hoisted_26 = {
|
|
602
621
|
key: 0,
|
|
603
622
|
class: "bm-upload__tips"
|
|
604
623
|
};
|
|
605
|
-
const
|
|
606
|
-
key:
|
|
624
|
+
const _hoisted_27 = {
|
|
625
|
+
key: 1,
|
|
607
626
|
class: "bm-upload__file-list"
|
|
608
627
|
};
|
|
609
|
-
const
|
|
610
|
-
const
|
|
628
|
+
const _hoisted_28 = { class: "bm-upload__file__detail" };
|
|
629
|
+
const _hoisted_29 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-upload__file__icon" }, [
|
|
611
630
|
/* @__PURE__ */ vue.createElementVNode("div", { class: "bm-upload__attachment" })
|
|
612
631
|
], -1);
|
|
613
|
-
const
|
|
614
|
-
const
|
|
615
|
-
const
|
|
616
|
-
const
|
|
617
|
-
const
|
|
632
|
+
const _hoisted_30 = { class: "bm-upload__file__name" };
|
|
633
|
+
const _hoisted_31 = { class: "bm-upload__file__progress-tools" };
|
|
634
|
+
const _hoisted_32 = ["onClick"];
|
|
635
|
+
const _hoisted_33 = ["onClick"];
|
|
636
|
+
const _hoisted_34 = {
|
|
618
637
|
key: 0,
|
|
619
638
|
class: "bm-upload__progress"
|
|
620
639
|
};
|
|
621
|
-
const
|
|
622
|
-
const
|
|
623
|
-
const
|
|
640
|
+
const _hoisted_35 = { style: { "padding-top": "20px" } };
|
|
641
|
+
const _hoisted_36 = ["src"];
|
|
642
|
+
const _hoisted_37 = ["title", "src"];
|
|
624
643
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
625
644
|
const _component_a_progress = vue.resolveComponent("a-progress");
|
|
626
645
|
const _component_a_image = vue.resolveComponent("a-image");
|
|
627
646
|
const _component_LoadingOutlined = vue.resolveComponent("LoadingOutlined");
|
|
647
|
+
const _component_OverTooltips = vue.resolveComponent("OverTooltips");
|
|
648
|
+
const _component_InboxOutlined = vue.resolveComponent("InboxOutlined");
|
|
628
649
|
const _component_PlusOutlined = vue.resolveComponent("PlusOutlined");
|
|
629
650
|
const _component_UploadOutlined = vue.resolveComponent("UploadOutlined");
|
|
630
651
|
const _component_a_button = vue.resolveComponent("a-button");
|
|
631
|
-
const _component_a_upload = vue.resolveComponent("a-upload");
|
|
632
|
-
const _component_OverTooltips = vue.resolveComponent("OverTooltips");
|
|
633
652
|
const _component_a_modal = vue.resolveComponent("a-modal");
|
|
634
653
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
635
654
|
class: vue.normalizeClass(["bm-upload", {
|
|
636
655
|
"bm-upload--text": _ctx.uploadConfigs.listType === "text",
|
|
656
|
+
"bm-upload--drag": _ctx.extraConfigs.drag,
|
|
657
|
+
"bm-upload--picture-card": _ctx.uploadConfigs.listType === "picture-card",
|
|
637
658
|
"bm-upload--picture-card--has-tips": !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) && !_ctx.extraConfigs.myBtn && _ctx.uploadConfigs.listType === "picture-card" && _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips
|
|
638
659
|
}])
|
|
639
660
|
}, [
|
|
@@ -643,181 +664,197 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
643
664
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item) => {
|
|
644
665
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
645
666
|
key: item,
|
|
646
|
-
class:
|
|
667
|
+
class: "bm-upload__picture_wrapper"
|
|
647
668
|
}, [
|
|
648
|
-
vue.
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
vue.
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
666
|
-
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
667
|
-
}, [
|
|
668
|
-
["pdf", "PDF", "application/pdf"].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
669
|
+
vue.createElementVNode("div", {
|
|
670
|
+
class: vue.normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
|
|
671
|
+
}, [
|
|
672
|
+
vue.createCommentVNode(" \u4E0A\u4F20\u4E2D "),
|
|
673
|
+
item.progress < 100 && item.status !== "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
674
|
+
_hoisted_2,
|
|
675
|
+
vue.createVNode(_component_a_progress, {
|
|
676
|
+
type: "line",
|
|
677
|
+
"stroke-width": 2,
|
|
678
|
+
"show-info": false,
|
|
679
|
+
"stroke-color": _ctx.uploadBarColor,
|
|
680
|
+
percent: item.uid?.progress
|
|
681
|
+
}, null, 8, ["stroke-color", "percent"])
|
|
682
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
683
|
+
vue.createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
|
|
684
|
+
item.progress >= 100 && item.status !== "error" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
685
|
+
!_ctx.uploadConfigs.showSlotList ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
669
686
|
key: 0,
|
|
670
|
-
class: "bm-upload__picture-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
"
|
|
676
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
677
|
-
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
678
|
-
key: 1,
|
|
679
|
-
class: "bm-upload__picture-result__image",
|
|
680
|
-
src: $setup.icons.excel,
|
|
681
|
-
alt: "\u56FE\u7247"
|
|
682
|
-
}, null, 8, _hoisted_5)) : [
|
|
683
|
-
"ppt",
|
|
684
|
-
"PPT",
|
|
685
|
-
"application/vnd.ms-powerpoint",
|
|
686
|
-
"pptx",
|
|
687
|
-
"PPTX",
|
|
688
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
689
|
-
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
690
|
-
key: 2,
|
|
691
|
-
class: "bm-upload__picture-result__image",
|
|
692
|
-
src: $setup.icons.ppt,
|
|
693
|
-
alt: "\u56FE\u7247"
|
|
694
|
-
}, null, 8, _hoisted_6)) : [
|
|
695
|
-
"doc",
|
|
696
|
-
"DOC",
|
|
697
|
-
"application/msword",
|
|
698
|
-
"docx",
|
|
699
|
-
"DOCX",
|
|
700
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
701
|
-
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
702
|
-
key: 3,
|
|
703
|
-
class: "bm-upload__picture-result__image",
|
|
704
|
-
src: $setup.icons.doc,
|
|
705
|
-
alt: "\u56FE\u7247"
|
|
706
|
-
}, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
707
|
-
item.url ? (vue.openBlock(), vue.createBlock(_component_a_image, {
|
|
687
|
+
class: "bm-upload__picture-result",
|
|
688
|
+
onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
|
|
689
|
+
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
690
|
+
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
691
|
+
}, [
|
|
692
|
+
["pdf", "PDF", "application/pdf"].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
708
693
|
key: 0,
|
|
709
694
|
class: "bm-upload__picture-result__image",
|
|
710
|
-
src:
|
|
695
|
+
src: $setup.icons.pdf,
|
|
711
696
|
alt: "\u56FE\u7247"
|
|
712
|
-
}, null, 8,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
alt: "\u56FE\u7247"
|
|
718
|
-
}, null, 8, _hoisted_8)),
|
|
719
|
-
_ctx.onepViewImageHover[item.uid] ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
720
|
-
key: 6,
|
|
721
|
-
class: vue.normalizeClass(["bm-upload__picture-result__cover", {
|
|
722
|
-
isPicture: _ctx.pictureFileTypes.includes(item.type)
|
|
723
|
-
}])
|
|
724
|
-
}, [
|
|
725
|
-
!_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
726
|
-
key: 0,
|
|
727
|
-
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
728
|
-
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
729
|
-
}, null, 8, _hoisted_9)) : vue.createCommentVNode("v-if", true),
|
|
730
|
-
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
697
|
+
}, null, 8, _hoisted_4)) : [
|
|
698
|
+
"xlsx",
|
|
699
|
+
"XLSX",
|
|
700
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
701
|
+
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
731
702
|
key: 1,
|
|
703
|
+
class: "bm-upload__picture-result__image",
|
|
704
|
+
src: $setup.icons.excel,
|
|
705
|
+
alt: "\u56FE\u7247"
|
|
706
|
+
}, null, 8, _hoisted_5)) : [
|
|
707
|
+
"ppt",
|
|
708
|
+
"PPT",
|
|
709
|
+
"application/vnd.ms-powerpoint",
|
|
710
|
+
"pptx",
|
|
711
|
+
"PPTX",
|
|
712
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
713
|
+
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
714
|
+
key: 2,
|
|
715
|
+
class: "bm-upload__picture-result__image",
|
|
716
|
+
src: $setup.icons.ppt,
|
|
717
|
+
alt: "\u56FE\u7247"
|
|
718
|
+
}, null, 8, _hoisted_6)) : [
|
|
719
|
+
"doc",
|
|
720
|
+
"DOC",
|
|
721
|
+
"application/msword",
|
|
722
|
+
"docx",
|
|
723
|
+
"DOCX",
|
|
724
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
725
|
+
].includes(item.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
726
|
+
key: 3,
|
|
727
|
+
class: "bm-upload__picture-result__image",
|
|
728
|
+
src: $setup.icons.doc,
|
|
729
|
+
alt: "\u56FE\u7247"
|
|
730
|
+
}, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 4 }, [
|
|
731
|
+
item.url ? (vue.openBlock(), vue.createBlock(_component_a_image, {
|
|
732
|
+
key: 0,
|
|
733
|
+
class: "bm-upload__picture-result__image",
|
|
734
|
+
src: item.url,
|
|
735
|
+
alt: "\u56FE\u7247"
|
|
736
|
+
}, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(_component_LoadingOutlined, { key: 1 }))
|
|
737
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
738
|
+
key: 5,
|
|
739
|
+
class: "bm-upload__picture-result__image",
|
|
740
|
+
src: $setup.icons.others,
|
|
741
|
+
alt: "\u56FE\u7247"
|
|
742
|
+
}, null, 8, _hoisted_8)),
|
|
743
|
+
_ctx.onepViewImageHover[item.uid] ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
744
|
+
key: 6,
|
|
745
|
+
class: vue.normalizeClass(["bm-upload__picture-result__cover", {
|
|
746
|
+
isPicture: _ctx.pictureFileTypes.includes(item.type)
|
|
747
|
+
}])
|
|
748
|
+
}, [
|
|
749
|
+
!_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
750
|
+
key: 0,
|
|
751
|
+
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
752
|
+
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
753
|
+
}, null, 8, _hoisted_9)) : vue.createCommentVNode("v-if", true),
|
|
754
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
755
|
+
key: 1,
|
|
756
|
+
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
757
|
+
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
758
|
+
}, null, 8, _hoisted_10)) : vue.createCommentVNode("v-if", true)
|
|
759
|
+
], 2)) : vue.createCommentVNode("v-if", true)
|
|
760
|
+
], 40, _hoisted_3)) : vue.renderSlot(_ctx.$slots, "file", {
|
|
761
|
+
key: 1,
|
|
762
|
+
file: item
|
|
763
|
+
})
|
|
764
|
+
], 64)) : vue.createCommentVNode("v-if", true),
|
|
765
|
+
vue.createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
|
|
766
|
+
item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
767
|
+
key: 2,
|
|
768
|
+
class: "bm-upload__picture-error",
|
|
769
|
+
onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
|
|
770
|
+
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
771
|
+
onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
|
|
772
|
+
}, [
|
|
773
|
+
_hoisted_12,
|
|
774
|
+
_hoisted_13,
|
|
775
|
+
_ctx.onepViewImageHover[item.uid] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
776
|
+
vue.createElementVNode("div", {
|
|
777
|
+
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
|
|
778
|
+
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
779
|
+
}, null, 8, _hoisted_15),
|
|
780
|
+
vue.createElementVNode("div", {
|
|
732
781
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
733
782
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
734
|
-
}, null, 8,
|
|
735
|
-
]
|
|
736
|
-
], 40,
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
|
|
746
|
-
onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
|
|
747
|
-
onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
|
|
748
|
-
}, [
|
|
749
|
-
_hoisted_12,
|
|
750
|
-
_hoisted_13,
|
|
751
|
-
_ctx.onepViewImageHover[item.uid] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
752
|
-
vue.createElementVNode("div", {
|
|
753
|
-
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
|
|
754
|
-
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
755
|
-
}, null, 8, _hoisted_15),
|
|
756
|
-
vue.createElementVNode("div", {
|
|
757
|
-
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
758
|
-
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
759
|
-
}, null, 8, _hoisted_16)
|
|
760
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
761
|
-
], 40, _hoisted_11)) : vue.createCommentVNode("v-if", true)
|
|
762
|
-
], 2);
|
|
783
|
+
}, null, 8, _hoisted_16)
|
|
784
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
785
|
+
], 40, _hoisted_11)) : vue.createCommentVNode("v-if", true)
|
|
786
|
+
], 2),
|
|
787
|
+
vue.createCommentVNode(" \u6587\u4EF6\u540D "),
|
|
788
|
+
_ctx.extraConfigs.showFileName && item.name ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
789
|
+
vue.createVNode(_component_OverTooltips, {
|
|
790
|
+
title: item.name
|
|
791
|
+
}, null, 8, ["title"])
|
|
792
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
793
|
+
]);
|
|
763
794
|
}), 128)),
|
|
764
795
|
vue.createCommentVNode(" </a-image-preview-group> ")
|
|
765
796
|
], 64)) : vue.createCommentVNode("v-if", true),
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
_ctx.
|
|
774
|
-
vue.
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
vue.
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
797
|
+
vue.createElementVNode("div", _hoisted_18, [
|
|
798
|
+
!($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.extraConfigs.drag ? "a-upload-dragger" : "a-upload"), vue.mergeProps({ key: 0 }, _ctx.uploadConfigs, {
|
|
799
|
+
disabled: $setup.uploadDisabled,
|
|
800
|
+
class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
|
|
801
|
+
onReject: _ctx.handleReject
|
|
802
|
+
}), {
|
|
803
|
+
default: vue.withCtx(() => [
|
|
804
|
+
_ctx.extraConfigs.myBtn ? vue.renderSlot(_ctx.$slots, "myBtn", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
805
|
+
_ctx.extraConfigs.drag ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
806
|
+
vue.createVNode(_component_InboxOutlined, { class: "bm-upload__drag-icon" }),
|
|
807
|
+
vue.createElementVNode("div", _hoisted_20, vue.toDisplayString(_ctx.uploadConfigs.text || "\u70B9\u51FB\u4E0A\u4F20/\u62D6\u62FD\u4E0A\u4F20"), 1),
|
|
808
|
+
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_21, vue.toDisplayString(_ctx.extraConfigs.tips), 1)) : vue.createCommentVNode("v-if", true)
|
|
809
|
+
])) : _ctx.uploadConfigs.listType === "picture-card" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
|
|
810
|
+
vue.createVNode(_component_PlusOutlined),
|
|
811
|
+
vue.createElementVNode("div", _hoisted_23, vue.toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
|
|
812
|
+
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, vue.toDisplayString(_ctx.extraConfigs.tips), 1)) : vue.createCommentVNode("v-if", true)
|
|
813
|
+
])) : _ctx.uploadConfigs.listType === "text" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
|
|
814
|
+
vue.createVNode(_component_a_button, {
|
|
815
|
+
class: vue.normalizeClass(_ctx.extraConfigs.btnClass),
|
|
816
|
+
disabled: $setup.uploadDisabled
|
|
817
|
+
}, {
|
|
818
|
+
default: vue.withCtx(() => [
|
|
819
|
+
vue.createVNode(_component_UploadOutlined),
|
|
820
|
+
vue.createTextVNode(" " + vue.toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u6587\u4EF6"), 1)
|
|
821
|
+
]),
|
|
822
|
+
_: 1
|
|
823
|
+
}, 8, ["class", "disabled"]),
|
|
824
|
+
_ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, vue.toDisplayString(_ctx.extraConfigs.tips), 1)) : vue.createCommentVNode("v-if", true)
|
|
825
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
826
|
+
], 64))
|
|
827
|
+
]),
|
|
828
|
+
_: 3
|
|
829
|
+
}, 16, ["disabled", "class", "onReject"])) : vue.createCommentVNode("v-if", true)
|
|
830
|
+
]),
|
|
831
|
+
_ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_27, [
|
|
795
832
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.fileList, (item) => {
|
|
796
833
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
797
834
|
key: item,
|
|
798
835
|
class: "bm-upload__file"
|
|
799
836
|
}, [
|
|
800
837
|
!_ctx.uploadConfigs.showSlotList ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
801
|
-
vue.createElementVNode("div",
|
|
802
|
-
|
|
803
|
-
vue.createElementVNode("div",
|
|
838
|
+
vue.createElementVNode("div", _hoisted_28, [
|
|
839
|
+
_hoisted_29,
|
|
840
|
+
vue.createElementVNode("div", _hoisted_30, [
|
|
804
841
|
vue.createVNode(_component_OverTooltips, {
|
|
805
842
|
title: item.name
|
|
806
843
|
}, null, 8, ["title"])
|
|
807
844
|
]),
|
|
808
|
-
vue.createElementVNode("div",
|
|
845
|
+
vue.createElementVNode("div", _hoisted_31, [
|
|
809
846
|
item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
810
847
|
key: 0,
|
|
811
848
|
class: "bm-upload__error-reload",
|
|
812
849
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
813
|
-
}, null, 8,
|
|
850
|
+
}, null, 8, _hoisted_32)) : vue.createCommentVNode("v-if", true),
|
|
814
851
|
vue.createElementVNode("div", {
|
|
815
852
|
class: "bm-upload__trash",
|
|
816
853
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
817
|
-
}, null, 8,
|
|
854
|
+
}, null, 8, _hoisted_33)
|
|
818
855
|
])
|
|
819
856
|
]),
|
|
820
|
-
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div",
|
|
857
|
+
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_34, [
|
|
821
858
|
vue.createVNode(_component_a_progress, {
|
|
822
859
|
type: "line",
|
|
823
860
|
"stroke-width": 2,
|
|
@@ -840,18 +877,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
840
877
|
onCancel: _ctx.handleClosePictureView
|
|
841
878
|
}, {
|
|
842
879
|
default: vue.withCtx(() => [
|
|
843
|
-
vue.createElementVNode("div",
|
|
880
|
+
vue.createElementVNode("div", _hoisted_35, [
|
|
844
881
|
_ctx.pictureFileTypes.includes(_ctx.onepViewImage.type) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
845
882
|
key: 0,
|
|
846
883
|
style: { "width": "100%" },
|
|
847
884
|
src: _ctx.onepViewImage.url,
|
|
848
885
|
alt: ""
|
|
849
|
-
}, null, 8,
|
|
886
|
+
}, null, 8, _hoisted_36)) : (vue.openBlock(), vue.createElementBlock("iframe", {
|
|
850
887
|
key: 1,
|
|
851
888
|
title: _ctx.onepViewImage.type,
|
|
852
889
|
style: { "width": "100%", "min-height": "600px" },
|
|
853
890
|
src: _ctx.onepViewImage.url
|
|
854
|
-
}, null, 8,
|
|
891
|
+
}, null, 8, _hoisted_37))
|
|
855
892
|
])
|
|
856
893
|
]),
|
|
857
894
|
_: 1
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface UploadPropsInner {
|
|
2
|
+
multiple?: boolean;
|
|
3
|
+
showUploadList?: boolean;
|
|
4
|
+
showSlotList?: boolean;
|
|
5
|
+
listType?: 'text' | 'picture-card';
|
|
6
|
+
text?: string;
|
|
7
|
+
accept?: string;
|
|
8
|
+
data?: Record<string, any>;
|
|
9
|
+
name?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ExtraProps {
|
|
13
|
+
maxSize?: number;
|
|
14
|
+
maxCount?: number;
|
|
15
|
+
isAllowDownloadFieldProps?: boolean;
|
|
16
|
+
hideDisabledBtn?: boolean;
|
|
17
|
+
tips?: string;
|
|
18
|
+
showTips?: boolean;
|
|
19
|
+
btnClass?: string;
|
|
20
|
+
picClass?: string;
|
|
21
|
+
alignCenter?: boolean;
|
|
22
|
+
canNotViewAccept?: string;
|
|
23
|
+
myBtn?: boolean;
|
|
24
|
+
showFileName?: boolean;
|
|
25
|
+
drag?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare type DefaultList = Array<{
|
|
28
|
+
uid?: string;
|
|
29
|
+
name?: string;
|
|
30
|
+
url?: string;
|
|
31
|
+
type?: string;
|
|
32
|
+
}>;
|
|
33
|
+
export declare type UploadRequest = (file: File, config: Record<string, any>) => Promise<{
|
|
34
|
+
url?: string;
|
|
35
|
+
[prop: string]: any;
|
|
36
|
+
}>;
|
|
37
|
+
export interface CustomErrors {
|
|
38
|
+
maxSize?: string;
|
|
39
|
+
maxCount?: string;
|
|
40
|
+
format?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare type UploadProps = {
|
|
43
|
+
uploadProps: UploadPropsInner;
|
|
44
|
+
extraProps: ExtraProps;
|
|
45
|
+
defaultList: DefaultList;
|
|
46
|
+
uploadRequest: UploadRequest;
|
|
47
|
+
cloudReadUrl: string;
|
|
48
|
+
holdProgress: number;
|
|
49
|
+
customErrors: CustomErrors;
|
|
50
|
+
};
|
|
@@ -1,41 +1,72 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
name: string;
|
|
3
4
|
components: {
|
|
4
5
|
PlusOutlined: import("@ant-design/icons-vue/lib/icons/PlusOutlined").PlusOutlinedIconType;
|
|
5
|
-
OverTooltips:
|
|
6
|
+
OverTooltips: import("../../../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: (NumberConstructor | StringConstructor)[];
|
|
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
|
+
}>;
|
|
6
39
|
UploadOutlined: import("@ant-design/icons-vue/lib/icons/UploadOutlined").UploadOutlinedIconType;
|
|
7
40
|
LoadingOutlined: import("@ant-design/icons-vue/lib/icons/LoadingOutlined").LoadingOutlinedIconType;
|
|
41
|
+
InboxOutlined: import("@ant-design/icons-vue/lib/icons/InboxOutlined").InboxOutlinedIconType;
|
|
8
42
|
};
|
|
9
43
|
props: {
|
|
10
44
|
uploadProps: {
|
|
11
|
-
type:
|
|
45
|
+
type: PropType<import("./props").UploadPropsInner>;
|
|
12
46
|
default: () => {};
|
|
13
47
|
};
|
|
14
48
|
extraProps: {
|
|
15
|
-
type:
|
|
49
|
+
type: PropType<import("./props").ExtraProps>;
|
|
16
50
|
default: () => {};
|
|
17
51
|
};
|
|
18
52
|
defaultList: {
|
|
19
|
-
type:
|
|
53
|
+
type: PropType<import("./props").DefaultList>;
|
|
20
54
|
default: () => never[];
|
|
21
55
|
};
|
|
22
56
|
uploadRequest: {
|
|
23
|
-
type: (
|
|
24
|
-
[prop: string]: any;
|
|
25
|
-
url: string;
|
|
26
|
-
}>;
|
|
57
|
+
type: PropType<import("./props").UploadRequest>;
|
|
27
58
|
default(): () => void;
|
|
28
59
|
};
|
|
29
60
|
cloudReadUrl: {
|
|
30
|
-
type:
|
|
61
|
+
type: PropType<string>;
|
|
31
62
|
default: string;
|
|
32
63
|
};
|
|
33
64
|
holdProgress: {
|
|
34
|
-
type:
|
|
65
|
+
type: PropType<number>;
|
|
35
66
|
default: number;
|
|
36
67
|
};
|
|
37
68
|
customErrors: {
|
|
38
|
-
type:
|
|
69
|
+
type: PropType<import("./props").CustomErrors>;
|
|
39
70
|
default(): undefined;
|
|
40
71
|
};
|
|
41
72
|
};
|
|
@@ -82,6 +113,8 @@ declare const _default: {
|
|
|
82
113
|
alignCenter: boolean;
|
|
83
114
|
canNotViewAccept: string;
|
|
84
115
|
myBtn: boolean;
|
|
116
|
+
showFileName: boolean;
|
|
117
|
+
drag: boolean;
|
|
85
118
|
}>;
|
|
86
119
|
uploadConfigs: import("vue").Ref<{
|
|
87
120
|
multiple: boolean;
|
|
@@ -5,7 +5,7 @@ function kebabCase(key) {
|
|
|
5
5
|
const result = key.replace(/([A-Z])/g, ' $1').trim();
|
|
6
6
|
return result.split(' ').join('-').toLowerCase();
|
|
7
7
|
}
|
|
8
|
-
function BmAdminUiResolver(options
|
|
8
|
+
function BmAdminUiResolver(options) {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
11
|
type: 'component',
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Plugin, Component } from 'vue';
|
|
2
|
+
declare type MyComponent = Component & {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type SFCWithInstall<T> = T & Plugin;
|
|
6
|
+
export declare const withInstall: <T extends MyComponent>(comp: T) => SFCWithInstall<T>;
|
|
7
|
+
export {};
|