0👍
var test = {
foo () {
console.log('foo')
},
bar () {
console.log('bar')
},
baz () {
console.log('baz')
}
}
export default test
<script>
import test from '@/mylib'
console.log(test.foo())
...
</script>
- [Vuejs]-Issues publishing to Azure: cannot use imports when '–module' is 'none'
- [Vuejs]-Child propagation to parent from object of objects
Source:stackexchange.com