@yoooloo42/joker 1.0.233 → 1.0.235

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/dist/index.esm.js CHANGED
@@ -42834,6 +42834,18 @@ props.modelValue.forEach((item, index) => {
42834
42834
  });
42835
42835
  });
42836
42836
 
42837
+ const imgSrc = computed(()=>{
42838
+ if(
42839
+ fileList_box.length>0 &&
42840
+ fileList_box[0].response &&
42841
+ fileList_box[0].response.data &&
42842
+ fileList_box[0].response.data.src
42843
+ ){
42844
+ return fileList_box[0].response.data.src
42845
+ }
42846
+ return ''
42847
+ });
42848
+
42837
42849
  const style = reactive({
42838
42850
  avatarBox: {
42839
42851
  width: myProps_box.avatar.width,
@@ -42929,10 +42941,10 @@ return (_ctx, _cache) => {
42929
42941
  "on-success": hdl.success
42930
42942
  }, {
42931
42943
  default: withCtx(() => [
42932
- (fileList_box.value.length>0 && fileList_box.value[0].response && fileList_box.value[0].response.data && fileList_box.value[0].response.data.src)
42944
+ (!!imgSrc.value)
42933
42945
  ? (openBlock(), createElementBlock("img", {
42934
42946
  key: 0,
42935
- src: fileList_box.value[0].response.data.src,
42947
+ src: imgSrc.value,
42936
42948
  class: "avatar",
42937
42949
  style: normalizeStyle(style.avatarImage)
42938
42950
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$a))