Skip to content

Commit

Permalink
Fix lint error by using types for props
Browse files Browse the repository at this point in the history
  • Loading branch information
lehecht committed Dec 8, 2023
1 parent d48138f commit 267fac6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/resources/assets/js/components/annotationImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export default{
PolygonSVG,
},
data() { return {
svgXML : null,
svgXML : SVGSVGElement,
}
},
props: {
svg: null,
srcUrl: '',
toggleSelect: null,
showEmptyImage: null,
svg: String,
srcUrl: String,
toggleSelect: Function,
showEmptyImage: Function,
},
computed: {
width(){
Expand All @@ -54,7 +54,7 @@ export default{
'line': 'LineSVG',
'polygon': 'PolygonSVG'});
return shape2comp[this.svgXML.childNodes[0].nodeName];
}
},
},
created(){
if(this.hasSVG){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Shape from './mixins/Shape.vue';
export default{
mixins: [Shape],
props: {
svgXML: null
svgXML: SVGSVGElement
},
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Shape from './mixins/Shape.vue';
export default{
mixins: [Shape],
props: {
svgXML: null
svgXML: SVGSVGElement
},
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Shape from './mixins/Shape.vue';
export default{
mixins: [Shape],
props: {
svgXML: null
svgXML: SVGSVGElement
},
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Shape from './mixins/Shape.vue';
export default{
mixins: [Shape],
props: {
svgXML: null
svgXML: SVGSVGElement
},
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Shape from './mixins/Shape.vue';
export default{
mixins: [Shape],
props: {
svgXML: null
svgXML: SVGSVGElement
},
}
</script>

0 comments on commit 267fac6

Please sign in to comment.