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