# SubmitBar ### Install ``` javascript import Vue from 'vue'; import { SubmitBar } from 'vant'; Vue.use(SubmitBar); ``` ## Usage ### Basic Usage ```html ``` ### Disabled `submit` event will not triggerd when disabled. ```html ``` ### Loading `submit` event will not triggerd when loading. ```html ``` ### Advanced Usage Use slot to add custom contents. ```html Check Some tips, Link ``` ## API ### Props | Attribute | Description | Type | Default | Version | |------|------|------|------|------| | price | Price | *number* | - | - | | label | Price left label | *string* | `Total:` | - | | suffix-label | Price right label | *string* | - | - | | text-align | Price label text align can be set to `right` `left` | *string* | `right` | 2.3.0 | | button-text | Button text | *string* | - | - | | button-type | Button type | *string* | `danger` | - | | tip | Tip | *string* | - | - | | tip-icon | Icon | *string* | - | - | | disabled | Whether to disable button | *boolean* | `false` | - | | loading | Whether to show loading icon | *boolean* | `false` | - | | currency | Currency symbol | *string* | `¥` | - | | decimal-length | number of digits to appear after the decimal point | *number* | `2` | - | | safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `false` | - | ### Events | Event | Description | Arguments | |------|------|------| | submit | Triggerd when click submit button | - | ### Slots | Name | Description | |------|------| | default | Custom left content | | top | Custom top content | | tip | Custom tips |