We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a016f0e commit b99f90fCopy full SHA for b99f90f
examples/example.vue
@@ -1,6 +1,6 @@
1
<template>
2
<div class="example">
3
- <VueLoadingButton class="button" />
+ <VueLoadingButton @click.native="handleClick" :loading="isLoading" />
4
</div>
5
</template>
6
@@ -9,7 +9,15 @@ import VueLoadingButton from "../src/vue-loading-button.vue";
9
export default {
10
name: "Example",
11
data() {
12
- return {};
+ return {
13
+ isLoading: false,
14
+ };
15
+ },
16
+ methods: {
17
+ handleClick() {
18
+ console.log('click') /* eslint-disable-line */
19
+ this.isLoading = !this.isLoading
20
21
},
22
components: {
23
VueLoadingButton
@@ -18,6 +26,7 @@ export default {
26
</script>
27
28
<style scoped>
-.example {}
-.button {}
29
+.example {
30
+ font-family: sans-serif;
31
+}
32
</style>
0 commit comments