Nuxt/test/fixtures/config-explicit/pages/config.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

30 lines
499 B
Vue

<template>
<div>
<span v-for="(key, i) in configKeys" :id="key" :key="i">
{{ vueConfig[key] | toStr }}
</span>
</div>
</template>
<script>
import Vue from 'vue'
export default {
filters: {
toStr (v) {
return String(v)
}
},
data () {
return {
vueConfig: Vue.config
}
},
computed: {
configKeys () {
return Object.keys(this.vueConfig).filter(k => ['silent', 'devtools', 'performance', 'productTip'].includes(k))
}
}
}
</script>