Skip to content

Commit

Permalink
sketch button
Browse files Browse the repository at this point in the history
  • Loading branch information
shwilliam committed Jan 19, 2019
1 parent a016f0e commit b99f90f
Show file tree
Hide file tree
Showing 3 changed files with 4,191 additions and 11 deletions.
17 changes: 13 additions & 4 deletions examples/example.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="example">
<VueLoadingButton class="button" />
<VueLoadingButton @click.native="handleClick" :loading="isLoading" />
</div>
</template>

Expand All @@ -9,7 +9,15 @@ import VueLoadingButton from "../src/vue-loading-button.vue";
export default {
name: "Example",
data() {
return {};
return {
isLoading: false,
};
},
methods: {
handleClick() {
console.log('click') /* eslint-disable-line */
this.isLoading = !this.isLoading
},
},
components: {
VueLoadingButton
Expand All @@ -18,6 +26,7 @@ export default {
</script>

<style scoped>
.example {}
.button {}
.example {
font-family: sans-serif;
}
</style>
Loading

0 comments on commit b99f90f

Please sign in to comment.