Last active
June 13, 2019 12:06
-
-
Save johanbove/acde7ce2d983fa5a58de571e51373976 to your computer and use it in GitHub Desktop.
el-debug component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<el-debug /> | |
</template> | |
<script> | |
export default { | |
components: { | |
'el-debug': { | |
template: `<pre style="font-size: 12px;max-height: 200px;overflow:auto;"> | |
mode: {{ $parent.mode }} | |
</pre>`, | |
}, | |
}, | |
data() { | |
return { | |
mode: 'Hello debug!', | |
}; | |
}, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment