16 lines
394 B
JavaScript
16 lines
394 B
JavaScript
Component({
|
|
options: { addGlobalClass: true },
|
|
properties: {
|
|
theme: { type: String, value: "primary" },
|
|
size: { type: String, value: "large" },
|
|
disabled: Boolean,
|
|
loading: Boolean,
|
|
block: { type: Boolean, value: true },
|
|
},
|
|
methods: {
|
|
handleTap(event) {
|
|
if (!this.data.disabled && !this.data.loading) this.triggerEvent("tap", event.detail);
|
|
},
|
|
},
|
|
});
|