Button
Introduce
A button is used to trigger an action, such as submitting a form.
Input Type
Button support default
、primary
、success
、warning
、danger
Five types, default to default
。
<aloo-button type="warning">Warning button</aloo-button>
<script>
console.log(124);
</script>
API
Props
Parameter | Explain | Type | Default |
---|
type | Type, optional values are primary info warning danger | string | default |
size | Size, optional values are large small mini | string | normal |
Events
Event Name | Explain | Callback Arguments |
---|
click | Triggered when a button is clicked and the button status is not loaded or disabled | event: Event |
touchstart | Triggered when the button is started to be touched | event: TouchEvent |
Slots
Name | Explain |
---|
default | Button content |