fast-element-plus 1.0.14 → 1.0.15

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.
@@ -16677,11 +16677,13 @@
16677
16677
  expose
16678
16678
  }) {
16679
16679
  const state = vue.reactive({
16680
+ /** 图片加载错误 */
16681
+ loadError: false,
16680
16682
  src: vue.computed(() => {
16681
16683
  if (!props.src) return void 0;
16682
16684
  if (props.base64) {
16683
16685
  return `data:image/png;base64,${props.src}`;
16684
- } else if (props.original) {
16686
+ } else if (props.original || state.loadError) {
16685
16687
  return props.src;
16686
16688
  } else if (props.normal) {
16687
16689
  return `${props.src}@!normal`;
@@ -16699,7 +16701,10 @@
16699
16701
  utils.useRender(() => vue.createVNode(ElementPlus.ElImage, vue.mergeProps(bindProps.value, {
16700
16702
  "class": "fa-image",
16701
16703
  "src": state.src,
16702
- "previewSrcList": state.previewList
16704
+ "previewSrcList": state.previewList,
16705
+ "onError": () => {
16706
+ if (!state.loadError) state.loadError = true;
16707
+ }
16703
16708
  }), {
16704
16709
  error: () => slots.error ? slots.error() : vue.createVNode("div", {
16705
16710
  "class": "fa-image__error-image"
@@ -22430,6 +22435,7 @@
22430
22435
  "closeOnPressEscape": true,
22431
22436
  "hideOnClickModal": true,
22432
22437
  "teleported": true,
22438
+ "showProgress": true,
22433
22439
  "onClose": () => state.imagePreview = false,
22434
22440
  "urlList": state.previewList
22435
22441
  }, null), props.columnSettingBtn && vue.createVNode(TableColumnsSettingDialog, {
@@ -28494,7 +28500,7 @@
28494
28500
  }
28495
28501
  app.use(ElementPlus);
28496
28502
  };
28497
- const version$1 = "1.0.14";
28503
+ const version$1 = "1.0.15";
28498
28504
  const INSTALLED_KEY = /* @__PURE__ */ Symbol("INSTALLED_KEY");
28499
28505
  const makeInstaller = () => {
28500
28506
  const install2 = (app) => {