@wx-design/components 1.1.18 → 1.1.19

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/index.mjs CHANGED
@@ -18221,7 +18221,17 @@ const i5 = /* @__PURE__ */ Dr(a5), av = /* @__PURE__ */ st({
18221
18221
  setup(e, {
18222
18222
  attrs: t
18223
18223
  }) {
18224
- return e.src ? e.showThumb ? () => nn(Gp, Wn({
18224
+ const n = $e(!1);
18225
+ return () => !e.src || n.value ? nn(Up, {
18226
+ size: 17,
18227
+ style: {
18228
+ cursor: "not-allowed",
18229
+ verticalAlign: "middle",
18230
+ opacity: "0.5"
18231
+ }
18232
+ }, {
18233
+ default: () => [nn(ov, null, null)]
18234
+ }) : e.showThumb ? nn(Gp, Wn({
18225
18235
  lazy: !0,
18226
18236
  fit: "contain",
18227
18237
  src: e.src,
@@ -18231,8 +18241,11 @@ const i5 = /* @__PURE__ */ Dr(a5), av = /* @__PURE__ */ st({
18231
18241
  width: "30px"
18232
18242
  },
18233
18243
  hideOnClickModal: !0,
18234
- previewTeleported: !0
18235
- }, t), null) : () => nn(Lv, {
18244
+ previewTeleported: !0,
18245
+ onError: () => {
18246
+ n.value = !0;
18247
+ }
18248
+ }, t), null) : nn(Lv, {
18236
18249
  transition: "el-zoom-in-top",
18237
18250
  trigger: "click",
18238
18251
  persistent: !1
@@ -18251,17 +18264,11 @@ const i5 = /* @__PURE__ */ Dr(a5), av = /* @__PURE__ */ st({
18251
18264
  src: e.src,
18252
18265
  style: {
18253
18266
  verticalAlign: "middle"
18267
+ },
18268
+ onError: () => {
18269
+ n.value = !0;
18254
18270
  }
18255
18271
  }, t), null)
18256
- }) : () => nn(Up, {
18257
- size: 17,
18258
- style: {
18259
- cursor: "not-allowed",
18260
- verticalAlign: "middle",
18261
- opacity: "0.5"
18262
- }
18263
- }, {
18264
- default: () => [nn(ov, null, null)]
18265
18272
  });
18266
18273
  }
18267
18274
  }), NC = {