2021. 4. 18.

Basic file template of vuejs 3

/**basic vuejs file template */

<template>
<div>
{{items}}
</div>
</template>

<script>
export default {
name: 'ComList',
props: {
items: {
type: Array
}
},
methods: {
method1(){
return this.items.filter((item) => (item.show))
}
},
data(){
        return { data1:'v1', data2:'v2'}
},
created(){

},
mounted(){
}
}
</script>

댓글 없음:

댓글 쓰기