docs: prettier all markdown files

This commit is contained in:
chenjiahan
2020-04-11 09:17:33 +08:00
committed by neverland
parent 48067f79db
commit 7f84f8a487
140 changed files with 4441 additions and 4723 deletions
+28 -28
View File
@@ -33,8 +33,8 @@ import { Toast } from 'vant';
export default {
data() {
return {
show: true
}
show: true,
};
},
methods: {
onInput(value) {
@@ -42,9 +42,9 @@ export default {
},
onDelete() {
Toast('delete');
}
}
}
},
},
};
```
### Custom Style
@@ -84,10 +84,10 @@ export default {
data() {
return {
show: false,
value: ''
}
}
}
value: '',
};
},
};
```
### Bottom Left Button Content
@@ -134,25 +134,25 @@ Use `title` prop to set keyboard title
### Props
| Attribute | Description | Type | Default |
|------|------|------|------|
| v-model `v2.0.2` | Current value | *string* | - |
| show | Whether to show keyboard | *boolean* | - |
| theme | Keyboard themecan be set to `default` `custom` | *string* | `default` |
| title | Keyboard title | *string* | - |
| maxlength `v2.0.2` | Value maxlength | *number \| string* | - |
| transition | Whether to show transition animation | *boolean* | `true` |
| z-index | Keyboard z-index | *number \| string* | `100` |
| extra-key | Content of bottom left key | *string* | `''` |
| close-button-text | Close button text | *string* | `-` |
| delete-button-text | Delete button text | *string* | `delete` |
| show-delete-key `v2.5.9` | Whether to show delete button | *boolean* | `true` |
| hide-on-click-outside | Whether to hide keyboard when click outside | *boolean* | `true` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | *boolean* | `true` |
| --- | --- | --- | --- |
| v-model `v2.0.2` | Current value | _string_ | - |
| show | Whether to show keyboard | _boolean_ | - |
| theme | Keyboard themecan be set to `default` `custom` | _string_ | `default` |
| title | Keyboard title | _string_ | - |
| maxlength `v2.0.2` | Value maxlength | _number \| string_ | - |
| transition | Whether to show transition animation | _boolean_ | `true` |
| z-index | Keyboard z-index | _number \| string_ | `100` |
| extra-key | Content of bottom left key | _string_ | `''` |
| close-button-text | Close button text | _string_ | `-` |
| delete-button-text | Delete button text | _string_ | `delete` |
| show-delete-key `v2.5.9` | Whether to show delete button | _boolean_ | `true` |
| hide-on-click-outside | Whether to hide keyboard when click outside | _boolean_ | `true` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation | _boolean_ | `true` |
### Events
| Event | Description | Arguments |
|------|------|------|
| --- | --- | --- |
| input | Triggered when keydown | key: Content of the key |
| delete | Triggered when press delete key | - |
| close | Triggered when click close button | - |
@@ -162,8 +162,8 @@ Use `title` prop to set keyboard title
### Slots
| Name | Description |
|------|------|
| delete | Custom delete key content |
| extra-key | Custom extra key content |
| Name | Description |
| ---------- | ------------------------- |
| delete | Custom delete key content |
| extra-key | Custom extra key content |
| title-left | Custom title left content |
+35 -35
View File
@@ -37,8 +37,8 @@ import { Toast } from 'vant';
export default {
data() {
return {
show: true
}
show: true,
};
},
methods: {
onInput(value) {
@@ -46,9 +46,9 @@ export default {
},
onDelete() {
Toast('删除');
}
}
}
},
},
};
```
### 自定义样式
@@ -90,10 +90,10 @@ export default {
data() {
return {
show: false,
value: ''
}
}
}
value: '',
};
},
};
```
### 左下角按键内容
@@ -140,38 +140,38 @@ export default {
### Props
| 参数 | 说明 | 类型 | 默认值 |
|------|------|------|------|
| v-model `v2.0.2` | 当前输入值 | *string* | - |
| show | 是否显示键盘 | *boolean* | - |
| theme | 样式风格,可选值为 `default` `custom` | *string* | `default` |
| title | 键盘标题 | *string* | - |
| maxlength `v2.0.2` | 输入值最大长度 | *number \| string* | - |
| transition | 是否开启过场动画 | *boolean* | `true` |
| z-index | 键盘 z-index | *number \| string* | `100` |
| extra-key | 左下角按键内容 | *string* | `''` |
| close-button-text | 关闭按钮文字,空则不展示 | *string* | `-` |
| delete-button-text | 删除按钮文字 | *string* | `删除` |
| show-delete-key `v2.5.9` | 是否展示删除按钮 | *boolean* | `true` |
| hide-on-click-outside | 点击外部时是否收起键盘 | *boolean* | `true` |
| safe-area-inset-bottom | 是否开启[底部安全区适配](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | *boolean* | `true` |
| --- | --- | --- | --- |
| v-model `v2.0.2` | 当前输入值 | _string_ | - |
| show | 是否显示键盘 | _boolean_ | - |
| theme | 样式风格,可选值为 `default` `custom` | _string_ | `default` |
| title | 键盘标题 | _string_ | - |
| maxlength `v2.0.2` | 输入值最大长度 | _number \| string_ | - |
| transition | 是否开启过场动画 | _boolean_ | `true` |
| z-index | 键盘 z-index | _number \| string_ | `100` |
| extra-key | 左下角按键内容 | _string_ | `''` |
| close-button-text | 关闭按钮文字,空则不展示 | _string_ | `-` |
| delete-button-text | 删除按钮文字 | _string_ | `删除` |
| show-delete-key `v2.5.9` | 是否展示删除按钮 | _boolean_ | `true` |
| hide-on-click-outside | 点击外部时是否收起键盘 | _boolean_ | `true` |
| safe-area-inset-bottom | 是否开启[底部安全区适配](#/zh-CN/quickstart#di-bu-an-quan-qu-gua-pei) | _boolean_ | `true` |
### Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| input | 点击按键时触发 | key: 按键内容 |
| delete | 点击删除键时触发 | - |
| close | 点击关闭按钮时触发 | - |
| blur | 点击关闭按钮或非键盘区域时触发 | - |
| show | 键盘完全弹出时触发 | - |
| hide | 键盘完全收起时触发 | - |
| 事件名 | 说明 | 回调参数 |
| ------ | ------------------------------ | ------------- |
| input | 点击按键时触发 | key: 按键内容 |
| delete | 点击删除键时触发 | - |
| close | 点击关闭按钮时触发 | - |
| blur | 点击关闭按钮或非键盘区域时触发 | - |
| show | 键盘完全弹出时触发 | - |
| hide | 键盘完全收起时触发 | - |
### Slots
| 名称 | 说明 |
|------|------|
| delete | 自定义删除按键内容 |
| extra-key | 自定义左下角按键内容
| 名称 | 说明 |
| ---------- | -------------------- |
| delete | 自定义删除按键内容 |
| extra-key | 自定义左下角按键内容 |
| title-left | 自定义标题栏左侧内容 |
## 常见问题