Last active
April 1, 2016 06:24
-
-
Save Astray-git/f76bc99cede942bd381fb454effa9099 to your computer and use it in GitHub Desktop.
test vue webpack build minifyCSS
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> | |
<div class="hello"> | |
<h1>{{ msg }}</h1> | |
<table> | |
<thead> | |
<tr> | |
<th | |
:style="[ | |
column.styles, | |
{ width: column.width } | |
]"> | |
{{msg}} | |
</th> | |
</tr> | |
</thead> | |
</table> | |
</div> | |
</template> | |
<script> | |
export default { | |
data () { | |
return { | |
// note: changing this line won't causes changes | |
// with hot-reload because the reloaded component | |
// preserves its current state and we are modifying | |
// its initial state. | |
msg: 'Hello World!', | |
column: { | |
width: '10px', | |
styles: { | |
textAlign: 'center' | |
} | |
} | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment