Browse Source

fix(nc-gui): remove getBackgroundImage

pull/5046/head
Wing-Kam Wong 2 years ago
parent
commit
0b9b8e2411
  1. 5
      packages/nc-gui/composables/useAttachment.ts

5
packages/nc-gui/composables/useAttachment.ts

@ -26,13 +26,8 @@ const useAttachment = () => {
evt.target.src = possibleSources[i + 1]
}
const getBackgroundImage = (item: Record<string, any>) => {
return `url('${getAttachmentSrc(item)}'), url(${item.url}), url(${fileNotFoundImgSrc})`
}
return {
getAttachmentSrc,
getBackgroundImage,
fileNotFoundImgSrc,
showFallback,
}

Loading…
Cancel
Save