biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -16,23 +16,26 @@
|
|||
export default {
|
||||
props: {
|
||||
disabled: {
|
||||
type: Boolean
|
||||
type: Boolean,
|
||||
},
|
||||
click: { // click event handler. Must return a promise
|
||||
click: {
|
||||
// click event handler. Must return a promise
|
||||
type: Function,
|
||||
default: () => Promise.resolve()
|
||||
}
|
||||
default: () => Promise.resolve(),
|
||||
},
|
||||
},
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
progress: false
|
||||
progress: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onClick () {
|
||||
onClick() {
|
||||
this.progress = true
|
||||
this.click().then(() => { this.progress = false })
|
||||
}
|
||||
}
|
||||
this.click().then(() => {
|
||||
this.progress = false
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue