Files
xuanzhi-wx/components/base/app-button/index.js
2026-04-22 18:54:52 +08:00

45 lines
659 B
JavaScript

Component({
options: {
multipleSlots: true
},
properties: {
text: {
type: String,
value: ''
},
theme: {
type: String,
value: 'primary'
},
variant: {
type: String,
value: 'base'
},
size: {
type: String,
value: 'medium'
},
block: {
type: Boolean,
value: false
},
disabled: {
type: Boolean,
value: false
},
loading: {
type: Boolean,
value: false
},
shape: {
type: String,
value: 'rectangle'
}
},
methods: {
handleTap(event) {
this.triggerEvent('tap', event.detail)
}
}
})