mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
[Doc] update changelog
This commit is contained in:
@@ -63,7 +63,7 @@ Use slot to add custom contents.
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
|------|------|------|------|
|
||||
| price | Price | `Number` | - |
|
||||
| label | Price label | `String` | `合计:` |
|
||||
| button-text | Button text | `String` | - |
|
||||
@@ -76,13 +76,13 @@ Use slot to add custom contents.
|
||||
### Event
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| submit | Triggerd when click submit button | - |
|
||||
|
||||
### Slot
|
||||
|
||||
| Name | Description |
|
||||
|-----------|-----------|
|
||||
|------|------|
|
||||
| - | Custom left content |
|
||||
| top | Custom top content |
|
||||
| tip | Custom tips |
|
||||
|
@@ -20,6 +20,7 @@ Vue.use(SubmitBar);
|
||||
```
|
||||
|
||||
#### 禁用状态
|
||||
|
||||
禁用状态下不会触发`submit`事件
|
||||
|
||||
```html
|
||||
@@ -33,6 +34,7 @@ Vue.use(SubmitBar);
|
||||
```
|
||||
|
||||
#### 加载状态
|
||||
|
||||
加载状态下不会触发`submit`事件
|
||||
|
||||
```html
|
||||
@@ -45,6 +47,7 @@ Vue.use(SubmitBar);
|
||||
```
|
||||
|
||||
#### 高级用法
|
||||
|
||||
通过插槽插入自定义内容
|
||||
|
||||
```html
|
||||
@@ -62,35 +65,27 @@ Vue.use(SubmitBar);
|
||||
|
||||
### API
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|-----------|-----------|-----------|-------------|
|
||||
| price | 价格(单位分) | `Number` | - |
|
||||
| label | 价格文案 | `String` | `合计:` |
|
||||
| button-text | 按钮文字 | `String` | - |
|
||||
| button-type | 按钮类型 | `String` | `danger` |
|
||||
| tip | 提示文案 | `String` | - |
|
||||
| disabled | 是否禁用按钮 | `Boolean` | `false` |
|
||||
| loading | 是否显示加载中的按钮 | `Boolean` | `false` |
|
||||
| currency | 货币符号 | `String` | `¥` |
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| price | 价格(单位分) | `Number` | - | - |
|
||||
| label | 价格文案 | `String` | `合计:` | - |
|
||||
| button-text | 按钮文字 | `String` | - | - |
|
||||
| button-type | 按钮类型 | `String` | `danger` | - |
|
||||
| tip | 提示文案 | `String` | - | - |
|
||||
| disabled | 是否禁用按钮 | `Boolean` | `false` | - |
|
||||
| loading | 是否显示加载中的按钮 | `Boolean` | `false` | - |
|
||||
| currency | 货币符号 | `String` | `¥` | 1.0.6 |
|
||||
|
||||
### Event
|
||||
|
||||
| 事件名 | 说明 | 参数 |
|
||||
|-----------|-----------|-----------|
|
||||
|------|------|------|
|
||||
| submit | 按钮点击事件回调 | - |
|
||||
|
||||
### Slot
|
||||
|
||||
| 名称 | 说明 |
|
||||
|-----------|-----------|
|
||||
|------|------|
|
||||
| - | 自定义订单栏左侧内容 |
|
||||
| top | 自定义订单栏上方内容 |
|
||||
| tip | 提示文案中的额外操作和说明 |
|
||||
|
||||
### 更新日志
|
||||
|
||||
| 版本 | 类型 | 内容 |
|
||||
|-----------|-----------|-----------|
|
||||
| 1.0.6 | feature | 新增 currency 属性 |
|
||||
| 1.0.5 | bugfix | 修复字体大小继承错误的问题 |
|
||||
| 1.0.4 | bugfix | 修复金额保留位数错误的问题 |
|
||||
|
Reference in New Issue
Block a user