Browse Source

refactor(nc-gui): use `@error` instead of `:onerror`

pull/5046/head
Wing-Kam Wong 2 years ago
parent
commit
5a15a4b7b3
  1. 2
      packages/nc-gui/components/cell/attachment/Image.vue

2
packages/nc-gui/components/cell/attachment/Image.vue

@ -16,10 +16,10 @@ const onError = () => index.value++
v-if="index < props.src.length"
class="m-auto"
:src="props.src[index]"
:onerror="onError"
:alt="props?.alt || ''"
placeholder
quality="75"
@error="onError"
/>
<MdiFileImageBox v-else />
</template>

Loading…
Cancel
Save