Thymeleaf + Vue application

This commit is contained in:
Tom Hombergs
2020-06-08 21:51:46 +10:00
parent b8c0923f23
commit 5e0f15e4cc
34 changed files with 19241 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
export default {
name: 'my-button',
data() {
return {
buttonStyles: {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
margin: 10,
},
};
},
template: `
<button :style="buttonStyles" @click="onClick">
<slot></slot>
</button>
`,
methods: {
onClick() {
this.$emit('click');
},
},
};