bm-admin-ui 1.0.31-alpha → 1.0.32-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.
@@ -100,7 +100,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
100
100
  fileList: import("vue").Ref<{}>;
101
101
  onepViewImageHover: import("vue").Ref<{}>;
102
102
  previewVisible: import("vue").Ref<boolean>;
103
- onepViewImage: import("vue").Ref<string>;
103
+ onepViewImage: import("vue").Ref<{}>;
104
104
  extraConfigs: import("vue").Ref<{
105
105
  maxSize: number;
106
106
  maxCount: number;
@@ -130,6 +130,7 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
130
130
  data: any;
131
131
  }) => Promise<void>;
132
132
  }>;
133
+ pictureFileTypes: import("vue").Ref<string[]>;
133
134
  };
134
135
  }>;
135
136
  export { BmUpload };
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { h, nextTick, createVNode, reactive, onBeforeUnmount, ref, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, watchEffect, createElementBlock, Fragment, renderList, createCommentVNode, mergeProps } from 'vue';
2
+ import { h, nextTick, createVNode, reactive, onBeforeUnmount, ref, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString, computed, watchEffect, createElementBlock, Fragment, createCommentVNode, renderList, mergeProps } from 'vue';
3
3
 
4
4
  /**
5
5
  * Take input from [0, n] and return it as [0, 1]
@@ -1392,7 +1392,7 @@ const _sfc_main = {
1392
1392
  fileList: {},
1393
1393
  onepViewImageHover: {},
1394
1394
  previewVisible: false,
1395
- onepViewImage: "",
1395
+ onepViewImage: {},
1396
1396
  extraConfigs: {
1397
1397
  maxSize: 5,
1398
1398
  maxCount: 5,
@@ -1442,7 +1442,22 @@ const _sfc_main = {
1442
1442
  }, 1e3);
1443
1443
  methods.customUploadRequest(file);
1444
1444
  }
1445
- }
1445
+ },
1446
+ pictureFileTypes: [
1447
+ "img",
1448
+ "image",
1449
+ "png",
1450
+ "PNG",
1451
+ "image/png",
1452
+ "jpg",
1453
+ "JPG",
1454
+ "jpeg",
1455
+ "JPEG",
1456
+ "image/jpeg",
1457
+ "gif",
1458
+ "GIF",
1459
+ "image/gif"
1460
+ ]
1446
1461
  });
1447
1462
  const methods = {
1448
1463
  updateUploadProgress(file, progress) {
@@ -1523,24 +1538,9 @@ const _sfc_main = {
1523
1538
  state.onepViewImageHover[uid] = false;
1524
1539
  },
1525
1540
  viewOnePicture(item) {
1526
- if ([
1527
- "img",
1528
- "image",
1529
- "png",
1530
- "PNG",
1531
- "image/png",
1532
- "jpg",
1533
- "JPG",
1534
- "jpeg",
1535
- "JPEG",
1536
- "image/jpeg",
1537
- "gif",
1538
- "GIF",
1539
- "image/gif"
1540
- ].includes(item.type.toLowerCase())) {
1541
+ if (state.pictureFileTypes.includes(item.type.toLowerCase())) {
1541
1542
  state.previewVisible = true;
1542
1543
  state.onepViewImage = item;
1543
- return;
1544
1544
  }
1545
1545
  emit("previewFile", item);
1546
1546
  },
@@ -1684,57 +1684,53 @@ const _hoisted_5 = ["src"];
1684
1684
  const _hoisted_6 = ["src"];
1685
1685
  const _hoisted_7 = ["src"];
1686
1686
  const _hoisted_8 = ["src"];
1687
- const _hoisted_9 = ["src"];
1688
- const _hoisted_10 = {
1689
- key: 6,
1690
- class: "bm-upload__picture-result__cover"
1691
- };
1692
- const _hoisted_11 = ["onClick"];
1693
- const _hoisted_12 = ["onClick"];
1694
- const _hoisted_13 = ["onMouseenter", "onMouseleave"];
1695
- const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
1696
- const _hoisted_15 = /* @__PURE__ */ createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
1697
- const _hoisted_16 = {
1687
+ const _hoisted_9 = ["onClick"];
1688
+ const _hoisted_10 = ["onClick"];
1689
+ const _hoisted_11 = ["onMouseenter", "onMouseleave"];
1690
+ const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__picture-error__image" }, null, -1);
1691
+ const _hoisted_13 = /* @__PURE__ */ createElementVNode("div", null, "\u4E0A\u4F20\u9519\u8BEF", -1);
1692
+ const _hoisted_14 = {
1698
1693
  key: 0,
1699
1694
  class: "bm-upload__picture-result__cover"
1700
1695
  };
1701
- const _hoisted_17 = ["onClick"];
1702
- const _hoisted_18 = ["onClick"];
1703
- const _hoisted_19 = {
1696
+ const _hoisted_15 = ["onClick"];
1697
+ const _hoisted_16 = ["onClick"];
1698
+ const _hoisted_17 = {
1704
1699
  key: 0,
1705
1700
  style: { "font-size": "24px", "color": "#9393a3" }
1706
1701
  };
1707
- const _hoisted_20 = { class: "ant-upload-text bm-upload__text" };
1708
- const _hoisted_21 = {
1702
+ const _hoisted_18 = { class: "ant-upload-text bm-upload__text" };
1703
+ const _hoisted_19 = {
1709
1704
  key: 0,
1710
1705
  class: "bm-upload__tips"
1711
1706
  };
1712
- const _hoisted_22 = { key: 1 };
1713
- const _hoisted_23 = {
1707
+ const _hoisted_20 = { key: 1 };
1708
+ const _hoisted_21 = {
1714
1709
  key: 0,
1715
1710
  class: "bm-upload__tips"
1716
1711
  };
1717
- const _hoisted_24 = {
1712
+ const _hoisted_22 = {
1718
1713
  key: 2,
1719
1714
  class: "bm-upload__file-list"
1720
1715
  };
1721
- const _hoisted_25 = { class: "bm-upload__file__detail" };
1722
- const _hoisted_26 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__file__icon" }, [
1716
+ const _hoisted_23 = { class: "bm-upload__file__detail" };
1717
+ const _hoisted_24 = /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__file__icon" }, [
1723
1718
  /* @__PURE__ */ createElementVNode("div", { class: "bm-upload__attachment" })
1724
1719
  ], -1);
1725
- const _hoisted_27 = { class: "bm-upload__file__name" };
1726
- const _hoisted_28 = { class: "bm-upload__file__progress-tools" };
1727
- const _hoisted_29 = ["onClick"];
1728
- const _hoisted_30 = ["onClick"];
1729
- const _hoisted_31 = {
1720
+ const _hoisted_25 = { class: "bm-upload__file__name" };
1721
+ const _hoisted_26 = { class: "bm-upload__file__progress-tools" };
1722
+ const _hoisted_27 = ["onClick"];
1723
+ const _hoisted_28 = ["onClick"];
1724
+ const _hoisted_29 = {
1730
1725
  key: 0,
1731
1726
  class: "bm-upload__progress"
1732
1727
  };
1733
- const _hoisted_32 = { style: { "padding-top": "20px" } };
1734
- const _hoisted_33 = ["src"];
1735
- const _hoisted_34 = ["title", "src"];
1728
+ const _hoisted_30 = { style: { "padding-top": "20px" } };
1729
+ const _hoisted_31 = ["src"];
1730
+ const _hoisted_32 = ["title", "src"];
1736
1731
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1737
1732
  const _component_a_progress = resolveComponent("a-progress");
1733
+ const _component_a_image = resolveComponent("a-image");
1738
1734
  const _component_PlusOutlined = resolveComponent("PlusOutlined");
1739
1735
  const _component_UploadOutlined = resolveComponent("UploadOutlined");
1740
1736
  const _component_a_button = resolveComponent("a-button");
@@ -1747,145 +1743,141 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1747
1743
  "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
1748
1744
  }])
1749
1745
  }, [
1750
- _ctx.uploadConfigs.listType === "picture-card" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.fileList, (item) => {
1751
- return openBlock(), createElementBlock("div", {
1752
- key: item,
1753
- class: normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
1754
- }, [
1755
- createCommentVNode(" \u4E0A\u4F20\u4E2D "),
1756
- item.progress < 100 && item.status !== "error" ? (openBlock(), createElementBlock("div", _hoisted_1, [
1757
- _hoisted_2,
1758
- createVNode(_component_a_progress, {
1759
- type: "line",
1760
- "stroke-width": 2,
1761
- "show-info": false,
1762
- "stroke-color": _ctx.uploadBarColor,
1763
- percent: item.uid?.progress
1764
- }, null, 8, ["stroke-color", "percent"])
1765
- ])) : createCommentVNode("v-if", true),
1766
- createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
1767
- item.progress >= 100 && item.status !== "error" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1768
- !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", {
1769
- key: 0,
1770
- class: "bm-upload__picture-result",
1771
- onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
1772
- onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
1773
- onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
1774
- }, [
1775
- ["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
1746
+ _ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1747
+ createCommentVNode(" \u4E0D\u8981\u4F7F\u7528 a-image-preview-group \u5305\u88F9\uFF0C\u4E0D\u7136\u4F1A\u51FA\u73B0\u91CD\u590D\u56FE\u7247\u548C\u7A7A\u767D\u56FE\u7247 "),
1748
+ createCommentVNode(" <a-image-preview-group> "),
1749
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
1750
+ return openBlock(), createElementBlock("div", {
1751
+ key: item,
1752
+ class: normalizeClass(["bm-upload__picture", { "bm-upload__picture--error": item.status === "error" }])
1753
+ }, [
1754
+ createCommentVNode(" \u4E0A\u4F20\u4E2D "),
1755
+ item.progress < 100 && item.status !== "error" ? (openBlock(), createElementBlock("div", _hoisted_1, [
1756
+ _hoisted_2,
1757
+ createVNode(_component_a_progress, {
1758
+ type: "line",
1759
+ "stroke-width": 2,
1760
+ "show-info": false,
1761
+ "stroke-color": _ctx.uploadBarColor,
1762
+ percent: item.uid?.progress
1763
+ }, null, 8, ["stroke-color", "percent"])
1764
+ ])) : createCommentVNode("v-if", true),
1765
+ createCommentVNode(" \u56FE\u7247\u5C55\u793A "),
1766
+ item.progress >= 100 && item.status !== "error" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1767
+ !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", {
1776
1768
  key: 0,
1777
- class: "bm-upload__picture-result__image",
1778
- src: $setup.icons.pdf,
1779
- alt: "avatar"
1780
- }, null, 8, _hoisted_4)) : [
1781
- "xlsx",
1782
- "XLSX",
1783
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
1784
- ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1785
- key: 1,
1786
- class: "bm-upload__picture-result__image",
1787
- src: $setup.icons.excel,
1788
- alt: "avatar"
1789
- }, null, 8, _hoisted_5)) : [
1790
- "ppt",
1791
- "PPT",
1792
- "application/vnd.ms-powerpoint",
1793
- "pptx",
1794
- "PPTX",
1795
- "application/vnd.openxmlformats-officedocument.presentationml.presentation"
1796
- ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1797
- key: 2,
1798
- class: "bm-upload__picture-result__image",
1799
- src: $setup.icons.ppt,
1800
- alt: "avatar"
1801
- }, null, 8, _hoisted_6)) : [
1802
- "doc",
1803
- "DOC",
1804
- "application/msword",
1805
- "docx",
1806
- "DOCX",
1807
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
1808
- ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1809
- key: 3,
1810
- class: "bm-upload__picture-result__image",
1811
- src: $setup.icons.doc,
1812
- alt: "avatar"
1813
- }, null, 8, _hoisted_7)) : [
1814
- "img",
1815
- "image",
1816
- "png",
1817
- "PNG",
1818
- "image/png",
1819
- "jpg",
1820
- "JPG",
1821
- "jpeg",
1822
- "JPEG",
1823
- "image/jpeg",
1824
- "gif",
1825
- "GIF",
1826
- "image/gif"
1827
- ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1828
- key: 4,
1829
- class: "bm-upload__picture-result__image",
1830
- src: item.url,
1831
- alt: "avatar"
1832
- }, null, 8, _hoisted_8)) : (openBlock(), createElementBlock("img", {
1833
- key: 5,
1834
- class: "bm-upload__picture-result__image",
1835
- src: $setup.icons.others,
1836
- alt: "avatar"
1837
- }, null, 8, _hoisted_9)),
1838
- _ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_10, [
1839
- !_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (openBlock(), createElementBlock("div", {
1769
+ class: "bm-upload__picture-result",
1770
+ onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
1771
+ onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
1772
+ onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
1773
+ }, [
1774
+ ["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
1840
1775
  key: 0,
1841
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
1842
- onClick: ($event) => _ctx.viewOnePicture(item)
1843
- }, null, 8, _hoisted_11)) : createCommentVNode("v-if", true),
1844
- !(_ctx.extraConfigs.hidenDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
1776
+ class: "bm-upload__picture-result__image",
1777
+ src: $setup.icons.pdf,
1778
+ alt: "\u56FE\u7247"
1779
+ }, null, 8, _hoisted_4)) : [
1780
+ "xlsx",
1781
+ "XLSX",
1782
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
1783
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1845
1784
  key: 1,
1785
+ class: "bm-upload__picture-result__image",
1786
+ src: $setup.icons.excel,
1787
+ alt: "\u56FE\u7247"
1788
+ }, null, 8, _hoisted_5)) : [
1789
+ "ppt",
1790
+ "PPT",
1791
+ "application/vnd.ms-powerpoint",
1792
+ "pptx",
1793
+ "PPTX",
1794
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation"
1795
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1796
+ key: 2,
1797
+ class: "bm-upload__picture-result__image",
1798
+ src: $setup.icons.ppt,
1799
+ alt: "\u56FE\u7247"
1800
+ }, null, 8, _hoisted_6)) : [
1801
+ "doc",
1802
+ "DOC",
1803
+ "application/msword",
1804
+ "docx",
1805
+ "DOCX",
1806
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
1807
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
1808
+ key: 3,
1809
+ class: "bm-upload__picture-result__image",
1810
+ src: $setup.icons.doc,
1811
+ alt: "\u56FE\u7247"
1812
+ }, null, 8, _hoisted_7)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createBlock(_component_a_image, {
1813
+ key: 4,
1814
+ class: "bm-upload__picture-result__image",
1815
+ src: item.url,
1816
+ alt: "\u56FE\u7247"
1817
+ }, null, 8, ["src"])) : (openBlock(), createElementBlock("img", {
1818
+ key: 5,
1819
+ class: "bm-upload__picture-result__image",
1820
+ src: $setup.icons.others,
1821
+ alt: "\u56FE\u7247"
1822
+ }, null, 8, _hoisted_8)),
1823
+ _ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", {
1824
+ key: 6,
1825
+ class: normalizeClass(["bm-upload__picture-result__cover", {
1826
+ isPicture: _ctx.pictureFileTypes.includes(item.type)
1827
+ }])
1828
+ }, [
1829
+ !_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (openBlock(), createElementBlock("div", {
1830
+ key: 0,
1831
+ class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
1832
+ onClick: ($event) => _ctx.viewOnePicture(item)
1833
+ }, null, 8, _hoisted_9)) : createCommentVNode("v-if", true),
1834
+ !(_ctx.extraConfigs.hidenDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
1835
+ key: 1,
1836
+ class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
1837
+ onClick: ($event) => _ctx.deleteFile(item.uid)
1838
+ }, null, 8, _hoisted_10)) : createCommentVNode("v-if", true)
1839
+ ], 2)) : createCommentVNode("v-if", true)
1840
+ ], 40, _hoisted_3)) : renderSlot(_ctx.$slots, "file", {
1841
+ key: 1,
1842
+ file: item
1843
+ })
1844
+ ], 2112)) : createCommentVNode("v-if", true),
1845
+ createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
1846
+ item.status === "error" ? (openBlock(), createElementBlock("div", {
1847
+ key: 2,
1848
+ class: "bm-upload__picture-error",
1849
+ onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
1850
+ onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
1851
+ onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
1852
+ }, [
1853
+ _hoisted_12,
1854
+ _hoisted_13,
1855
+ _ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_14, [
1856
+ createElementVNode("div", {
1857
+ class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
1858
+ onClick: (e) => _ctx.reUpload(e, item.uid)
1859
+ }, null, 8, _hoisted_15),
1860
+ createElementVNode("div", {
1846
1861
  class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
1847
1862
  onClick: ($event) => _ctx.deleteFile(item.uid)
1848
- }, null, 8, _hoisted_12)) : createCommentVNode("v-if", true)
1863
+ }, null, 8, _hoisted_16)
1849
1864
  ])) : createCommentVNode("v-if", true)
1850
- ], 40, _hoisted_3)) : renderSlot(_ctx.$slots, "file", {
1851
- key: 1,
1852
- file: item
1853
- })
1854
- ], 2112)) : createCommentVNode("v-if", true),
1855
- createCommentVNode(" \u56FE\u7247\u9519\u8BEF\u5C55\u793A "),
1856
- item.status === "error" ? (openBlock(), createElementBlock("div", {
1857
- key: 2,
1858
- class: "bm-upload__picture-error",
1859
- onMouseenter: ($event) => _ctx.pictureHoverEnter(item.uid),
1860
- onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
1861
- onClick: _cache[1] || (_cache[1] = (e) => e.stopPropagation())
1862
- }, [
1863
- _hoisted_14,
1864
- _hoisted_15,
1865
- _ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_16, [
1866
- createElementVNode("div", {
1867
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--retry",
1868
- onClick: (e) => _ctx.reUpload(e, item.uid)
1869
- }, null, 8, _hoisted_17),
1870
- createElementVNode("div", {
1871
- class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
1872
- onClick: ($event) => _ctx.deleteFile(item.uid)
1873
- }, null, 8, _hoisted_18)
1874
- ])) : createCommentVNode("v-if", true)
1875
- ], 40, _hoisted_13)) : createCommentVNode("v-if", true)
1876
- ], 2);
1877
- }), 128)) : createCommentVNode("v-if", true),
1865
+ ], 40, _hoisted_11)) : createCommentVNode("v-if", true)
1866
+ ], 2);
1867
+ }), 128)),
1868
+ createCommentVNode(" </a-image-preview-group> ")
1869
+ ], 2112)) : createCommentVNode("v-if", true),
1878
1870
  !($setup.uploadDisabled && _ctx.extraConfigs?.hideDisabledBtn) ? (openBlock(), createBlock(_component_a_upload, mergeProps({ key: 1 }, _ctx.uploadConfigs, {
1879
1871
  class: { "bm--upload__custom-button": _ctx.extraConfigs.myBtn },
1880
1872
  onReject: _ctx.handleReject
1881
1873
  }), {
1882
1874
  default: withCtx(() => [
1883
1875
  _ctx.extraConfigs.myBtn ? renderSlot(_ctx.$slots, "myBtn", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1884
- _ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock("div", _hoisted_19, [
1876
+ _ctx.uploadConfigs.listType === "picture-card" ? (openBlock(), createElementBlock("div", _hoisted_17, [
1885
1877
  createVNode(_component_PlusOutlined),
1886
- createElementVNode("div", _hoisted_20, toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
1887
- _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_21, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
1888
- ])) : _ctx.uploadConfigs.listType === "text" ? (openBlock(), createElementBlock("div", _hoisted_22, [
1878
+ createElementVNode("div", _hoisted_18, toDisplayString(_ctx.uploadConfigs.text || "\u4E0A\u4F20\u56FE\u7247"), 1),
1879
+ _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_19, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
1880
+ ])) : _ctx.uploadConfigs.listType === "text" ? (openBlock(), createElementBlock("div", _hoisted_20, [
1889
1881
  createVNode(_component_a_button, {
1890
1882
  class: normalizeClass(_ctx.extraConfigs.btnClass),
1891
1883
  disabled: $setup.uploadDisabled && !_ctx.extraConfigs?.hideDisabledBtn
@@ -1896,39 +1888,39 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1896
1888
  ]),
1897
1889
  _: 1
1898
1890
  }, 8, ["class", "disabled"]),
1899
- _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
1891
+ _ctx.extraConfigs.tips && _ctx.extraConfigs.showTips ? (openBlock(), createElementBlock("div", _hoisted_21, toDisplayString(_ctx.extraConfigs.tips), 1)) : createCommentVNode("v-if", true)
1900
1892
  ])) : createCommentVNode("v-if", true)
1901
1893
  ], 2112))
1902
1894
  ]),
1903
1895
  _: 3
1904
1896
  }, 16, ["class", "onReject"])) : createCommentVNode("v-if", true),
1905
- _ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", _hoisted_24, [
1897
+ _ctx.uploadConfigs.listType === "text" && !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock("div", _hoisted_22, [
1906
1898
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item) => {
1907
1899
  return openBlock(), createElementBlock("div", {
1908
1900
  key: item,
1909
1901
  class: "bm-upload__file"
1910
1902
  }, [
1911
1903
  !_ctx.uploadConfigs.showSlotList ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1912
- createElementVNode("div", _hoisted_25, [
1913
- _hoisted_26,
1914
- createElementVNode("div", _hoisted_27, [
1904
+ createElementVNode("div", _hoisted_23, [
1905
+ _hoisted_24,
1906
+ createElementVNode("div", _hoisted_25, [
1915
1907
  createVNode(_component_OverTooltips, {
1916
1908
  title: item.name
1917
1909
  }, null, 8, ["title"])
1918
1910
  ]),
1919
- createElementVNode("div", _hoisted_28, [
1911
+ createElementVNode("div", _hoisted_26, [
1920
1912
  item.status === "error" ? (openBlock(), createElementBlock("div", {
1921
1913
  key: 0,
1922
1914
  class: "bm-upload__error-reload",
1923
1915
  onClick: (e) => _ctx.reUpload(e, item.uid)
1924
- }, null, 8, _hoisted_29)) : createCommentVNode("v-if", true),
1916
+ }, null, 8, _hoisted_27)) : createCommentVNode("v-if", true),
1925
1917
  createElementVNode("div", {
1926
1918
  class: "bm-upload__trash",
1927
1919
  onClick: ($event) => _ctx.deleteFile(item.uid)
1928
- }, null, 8, _hoisted_30)
1920
+ }, null, 8, _hoisted_28)
1929
1921
  ])
1930
1922
  ]),
1931
- !item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_31, [
1923
+ !item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_29, [
1932
1924
  createVNode(_component_a_progress, {
1933
1925
  type: "line",
1934
1926
  "stroke-width": 2,
@@ -1951,32 +1943,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1951
1943
  onCancel: _ctx.handleClosePictureView
1952
1944
  }, {
1953
1945
  default: withCtx(() => [
1954
- createElementVNode("div", _hoisted_32, [
1955
- [
1956
- "img",
1957
- "image",
1958
- "png",
1959
- "PNG",
1960
- "image/png",
1961
- "jpg",
1962
- "JPG",
1963
- "jpeg",
1964
- "JPEG",
1965
- "image/jpeg",
1966
- "gif",
1967
- "GIF",
1968
- "image/gif"
1969
- ].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
1946
+ createElementVNode("div", _hoisted_30, [
1947
+ _ctx.pictureFileTypes.includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
1970
1948
  key: 0,
1971
1949
  style: { "width": "100%" },
1972
1950
  src: _ctx.onepViewImage.url,
1973
1951
  alt: ""
1974
- }, null, 8, _hoisted_33)) : (openBlock(), createElementBlock("iframe", {
1952
+ }, null, 8, _hoisted_31)) : (openBlock(), createElementBlock("iframe", {
1975
1953
  key: 1,
1976
1954
  title: _ctx.onepViewImage.type,
1977
1955
  style: { "width": "100%", "min-height": "600px" },
1978
1956
  src: _ctx.onepViewImage.url
1979
- }, null, 8, _hoisted_34))
1957
+ }, null, 8, _hoisted_32))
1980
1958
  ])
1981
1959
  ]),
1982
1960
  _: 1
@@ -100,7 +100,7 @@ declare const _default: {
100
100
  fileList: import("vue").Ref<{}>;
101
101
  onepViewImageHover: import("vue").Ref<{}>;
102
102
  previewVisible: import("vue").Ref<boolean>;
103
- onepViewImage: import("vue").Ref<string>;
103
+ onepViewImage: import("vue").Ref<{}>;
104
104
  extraConfigs: import("vue").Ref<{
105
105
  maxSize: number;
106
106
  maxCount: number;
@@ -130,6 +130,7 @@ declare const _default: {
130
130
  data: any;
131
131
  }) => Promise<void>;
132
132
  }>;
133
+ pictureFileTypes: import("vue").Ref<string[]>;
133
134
  };
134
135
  };
135
136
  export default _default;