File tree Expand file tree Collapse file tree
src/components/PreviewSignature Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 runs-on : ubuntu-latest
5757 timeout-minutes : 60
5858 container :
59- image : mcr.microsoft.com/playwright:v1.59.1 -noble
59+ image : mcr.microsoft.com/playwright:v1.61.0 -noble
6060 options : --ipc=host
6161
6262 needs : [matrix, changes]
Original file line number Diff line number Diff line change 8181 "@nextcloud/stylelint-config" : " ^3.2.1" ,
8282 "@nextcloud/vite-config" : " ^2.5.2" ,
8383 "@pinia/testing" : " ^1.0.3" ,
84- "@playwright/test" : " ^1.59.1 " ,
84+ "@playwright/test" : " ^1.61.0 " ,
8585 "@testing-library/dom" : " ^10.4.1" ,
8686 "@testing-library/vue" : " ^8.1.0" ,
8787 "@types/blueimp-md5" : " ^2.18.2" ,
Original file line number Diff line number Diff line change 1212 :style =" {
1313 width,
1414 height,
15- }"
16- @load =" onImageLoad" >
15+ }" >
1716 </div >
1817 </div >
1918</template >
@@ -56,7 +55,7 @@ const props = withDefaults(defineProps<{
5655})
5756
5857const emit = defineEmits <{
59- (e : ' loaded' , status : boolean | Event ): void
58+ (e : ' loaded' , status : boolean ): void
6059}>()
6160
6261const loading = ref (true )
@@ -82,6 +81,7 @@ function arrayBufferToBase64(data: ArrayBuffer) {
8281async function loadImage() {
8382 if (props .src .startsWith (' data:' )) {
8483 imageData .value = props .src
84+ onImageLoad (true )
8585 return
8686 }
8787
@@ -105,7 +105,7 @@ async function loadImage() {
105105 }
106106}
107107
108- function onImageLoad(status : boolean | Event ) {
108+ function onImageLoad(status : boolean ) {
109109 loading .value = false
110110 isLoaded .value = true
111111 emit (' loaded' , status )
You can’t perform that action at this time.
0 commit comments