export default { props: { accept: { type: String, default: '' } }, methods: { check (item) { if(item.name.split('.')[1] === this.accept) { // ... } else { // ... } } } }