Skip to content

Commit b99f90f

Browse files
committed
sketch button
1 parent a016f0e commit b99f90f

File tree

3 files changed

+4191
-11
lines changed

3 files changed

+4191
-11
lines changed

examples/example.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="example">
3-
<VueLoadingButton class="button" />
3+
<VueLoadingButton @click.native="handleClick" :loading="isLoading" />
44
</div>
55
</template>
66

@@ -9,7 +9,15 @@ import VueLoadingButton from "../src/vue-loading-button.vue";
99
export default {
1010
name: "Example",
1111
data() {
12-
return {};
12+
return {
13+
isLoading: false,
14+
};
15+
},
16+
methods: {
17+
handleClick() {
18+
console.log('click') /* eslint-disable-line */
19+
this.isLoading = !this.isLoading
20+
},
1321
},
1422
components: {
1523
VueLoadingButton
@@ -18,6 +26,7 @@ export default {
1826
</script>
1927

2028
<style scoped>
21-
.example {}
22-
.button {}
29+
.example {
30+
font-family: sans-serif;
31+
}
2332
</style>

0 commit comments

Comments
 (0)