mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: fix format errors (#8919)
* docs: fix format errors * docs: fix format errors
This commit is contained in:
parent
4f0ca629b2
commit
ac3c5aa951
@ -113,7 +113,7 @@ export default {
|
|||||||
### ActionBarButton Props
|
### ActionBarButton Props
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| text | 按钮文字 | _string_ | - |
|
| text | 按钮文字 | _string_ | - |
|
||||||
| type | 按钮类型,可选值为 `primary` `info` `warning` `danger` | _string_ | `default` |
|
| type | 按钮类型,可选值为 `primary` `info` `warning` `danger` | _string_ | `default` |
|
||||||
| color | 按钮颜色,支持传入 `linear-gradient` 渐变色 | _string_ | - |
|
| color | 按钮颜色,支持传入 `linear-gradient` 渐变色 | _string_ | - |
|
||||||
|
@ -246,7 +246,7 @@ export default {
|
|||||||
### Checkbox Props
|
### Checkbox Props
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| v-model | Check status | _boolean_ | `false` |
|
| v-model | Check status | _boolean_ | `false` |
|
||||||
| name | Checkbox name | _any_ | - |
|
| name | Checkbox name | _any_ | - |
|
||||||
| shape | Can be set to `square` | _string_ | `round` |
|
| shape | Can be set to `square` | _string_ | `round` |
|
||||||
@ -260,7 +260,7 @@ export default {
|
|||||||
### CheckboxGroup Props
|
### CheckboxGroup Props
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| v-model | Names of all checked checkboxes | _any[]_ | - |
|
| v-model | Names of all checked checkboxes | _any[]_ | - |
|
||||||
| disabled | Whether to disable all checkboxes | _boolean_ | `false` |
|
| disabled | Whether to disable all checkboxes | _boolean_ | `false` |
|
||||||
| max | Maximum amount of checked options | _number \| string_ | `0`(Unlimited) |
|
| max | Maximum amount of checked options | _number \| string_ | `0`(Unlimited) |
|
||||||
|
@ -102,7 +102,7 @@ export default {
|
|||||||
### CouponList Props
|
### CouponList Props
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| v-model | Current exchange code | _string_ | - |
|
| v-model | Current exchange code | _string_ | - |
|
||||||
| chosen-coupon | Index of chosen coupon | _number_ | `-1` |
|
| chosen-coupon | Index of chosen coupon | _number_ | `-1` |
|
||||||
| coupons | Coupon list | _Coupon[]_ | `[]` |
|
| coupons | Coupon list | _Coupon[]_ | `[]` |
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
|||||||
### IndexBar Props
|
### IndexBar Props
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| index-list | Index List | _string[] \| number[]_ | `A-Z` |
|
| index-list | Index List | _string[] \| number[]_ | `A-Z` |
|
||||||
| z-index | z-index | _number \| string_ | `1` |
|
| z-index | z-index | _number \| string_ | `1` |
|
||||||
| sticky | Whether to enable anchor sticky top | _boolean_ | `true` |
|
| sticky | Whether to enable anchor sticky top | _boolean_ | `true` |
|
||||||
|
@ -88,7 +88,7 @@ app.use(NoticeBar);
|
|||||||
### Props
|
### Props
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| mode | Mode, can be set to `closeable` `link` | _string_ | `''` |
|
| mode | Mode, can be set to `closeable` `link` | _string_ | `''` |
|
||||||
| text | Notice text content | _string_ | `''` | - |
|
| text | Notice text content | _string_ | `''` | - |
|
||||||
| color | Text color | _string_ | `#f60` |
|
| color | Text color | _string_ | `#f60` |
|
||||||
|
@ -97,8 +97,8 @@ export default {
|
|||||||
### Methods
|
### Methods
|
||||||
|
|
||||||
| Methods | Attribute | Return value | Description |
|
| Methods | Attribute | Return value | Description |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Notify | `options | message` | notify instance | Show notify |
|
| Notify | `options \| message` | notify instance | Show notify |
|
||||||
| Notify.clear | - | `void` | Close notify |
|
| Notify.clear | - | `void` | Close notify |
|
||||||
| Notify.setDefaultOptions | `options` | `void` | Set default options of all notifies |
|
| Notify.setDefaultOptions | `options` | `void` | Set default options of all notifies |
|
||||||
| Notify.resetDefaultOptions | - | `void` | Reset default options of all notifies |
|
| Notify.resetDefaultOptions | - | `void` | Reset default options of all notifies |
|
||||||
@ -106,7 +106,7 @@ export default {
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| type | Can be set to `primary` `success` `warning` | _string_ | `danger` |
|
| type | Can be set to `primary` `success` `warning` | _string_ | `danger` |
|
||||||
| message | Message | _string_ | - |
|
| message | Message | _string_ | - |
|
||||||
| duration | Duration(ms), won't disappear if value is 0 | _number \| string_ | `3000` |
|
| duration | Duration(ms), won't disappear if value is 0 | _number \| string_ | `3000` |
|
||||||
|
@ -130,8 +130,8 @@ export default {
|
|||||||
### 方法
|
### 方法
|
||||||
|
|
||||||
| 方法名 | 说明 | 参数 | 返回值 |
|
| 方法名 | 说明 | 参数 | 返回值 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| Notify | 展示提示 | `options | message` | notify 实例 |
|
| Notify | 展示提示 | `options \| message` | notify 实例 |
|
||||||
| Notify.clear | 关闭提示 | - | `void` |
|
| Notify.clear | 关闭提示 | - | `void` |
|
||||||
| Notify.setDefaultOptions | 修改默认配置,对所有 Notify 生效 | `options` | `void` |
|
| Notify.setDefaultOptions | 修改默认配置,对所有 Notify 生效 | `options` | `void` |
|
||||||
| Notify.resetDefaultOptions | 重置默认配置,对所有 Notify 生效 | - | `void` |
|
| Notify.resetDefaultOptions | 重置默认配置,对所有 Notify 生效 | - | `void` |
|
||||||
|
@ -233,7 +233,7 @@ export default {
|
|||||||
### Tabs Props
|
### Tabs Props
|
||||||
|
|
||||||
| Attribute | Description | Type | Default |
|
| Attribute | Description | Type | Default |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| v-model:active | Index of active tab | _number \| string_ | `0` |
|
| v-model:active | Index of active tab | _number \| string_ | `0` |
|
||||||
| type | Can be set to `line` `card` | _string_ | `line` |
|
| type | Can be set to `line` `card` | _string_ | `line` |
|
||||||
| color | Tab color | _string_ | `#ee0a24` |
|
| color | Tab color | _string_ | `#ee0a24` |
|
||||||
|
@ -165,7 +165,7 @@ Toast.resetDefaultOptions('loading');
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
| --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| type | 提示类型,可选值为 `loading` `success`<br>`fail` `html` | _string_ | `text` |
|
| type | 提示类型,可选值为 `loading` `success`<br>`fail` `html` | _string_ | `text` |
|
||||||
| position | 位置,可选值为 `top` `bottom` | _string_ | `middle` |
|
| position | 位置,可选值为 `top` `bottom` | _string_ | `middle` |
|
||||||
| message | 文本内容,支持通过`\n`换行 | _string_ | `''` | - |
|
| message | 文本内容,支持通过`\n`换行 | _string_ | `''` | - |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user