docs: prettier all markdown files
This commit is contained in:
@@ -40,7 +40,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
value: '123',
|
||||
showKeyboard: true
|
||||
showKeyboard: true,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -49,9 +49,9 @@ export default {
|
||||
},
|
||||
onDelete() {
|
||||
this.value = this.value.slice(0, this.value.length - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
### Custom length
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
return {
|
||||
value: '123',
|
||||
showKeyboard: true,
|
||||
errorInfo: ''
|
||||
errorInfo: '',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -119,26 +119,27 @@ export default {
|
||||
},
|
||||
onDelete() {
|
||||
this.value = this.value.slice(0, this.value.length - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### Props
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| value | Password value | *string* | `''` |
|
||||
| info | Bottom info | *string* | - |
|
||||
| error-info | Bottom error info | *string* | - |
|
||||
| length | Maxlength of password | *number \| string* | `6` |
|
||||
| gutter | Gutter of input | *number \| string* | `0` |
|
||||
| mask | Whether to mask value | *boolean* | `true` |
|
||||
| focused `v2.1.8` | Whether to show focused cursor | *boolean* | `false` |
|
||||
| --- | --- | --- | --- |
|
||||
| value | Password value | _string_ | `''` |
|
||||
| info | Bottom info | _string_ | - |
|
||||
| error-info | Bottom error info | _string_ | - |
|
||||
| length | Maxlength of password | _number \| string_ | `6` |
|
||||
| gutter | Gutter of input | _number \| string_ | `0` |
|
||||
| mask | Whether to mask value | _boolean_ | `true` |
|
||||
| focused `v2.1.8` | Whether to show focused cursor | _boolean_ | `false` |
|
||||
|
||||
### Events
|
||||
|
||||
| Event | Description | Arguments |
|
||||
|------|------|------|
|
||||
| focus | Triggered when input get focused | - |
|
||||
| Event | Description | Arguments |
|
||||
| ----- | -------------------------------- | --------- |
|
||||
| focus | Triggered when input get focused | - |
|
||||
|
||||
@@ -40,7 +40,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
value: '123',
|
||||
showKeyboard: true
|
||||
showKeyboard: true,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -49,9 +49,9 @@ export default {
|
||||
},
|
||||
onDelete() {
|
||||
this.value = this.value.slice(0, this.value.length - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
### 自定义长度
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
return {
|
||||
value: '123',
|
||||
showKeyboard: true,
|
||||
errorInfo: ''
|
||||
errorInfo: '',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -118,9 +118,9 @@ export default {
|
||||
},
|
||||
onDelete() {
|
||||
this.value = this.value.slice(0, this.value.length - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
## API
|
||||
@@ -128,17 +128,17 @@ export default {
|
||||
### Props
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
|------|------|------|------|
|
||||
| value | 密码值 | *string* | `''` |
|
||||
| info | 输入框下方文字提示 | *string* | - |
|
||||
| error-info | 输入框下方错误提示 | *string* | - |
|
||||
| length | 密码最大长度 | *number \| string* | `6` |
|
||||
| gutter | 输入框格子之间的间距,如 `20px` `2em`,默认单位为`px` | *number \| string* | `0` |
|
||||
| mask | 是否隐藏密码内容 | *boolean* | `true` |
|
||||
| focused `v2.1.8` | 是否已聚焦,聚焦时会显示光标 | *boolean* | `false` |
|
||||
| --- | --- | --- | --- |
|
||||
| value | 密码值 | _string_ | `''` |
|
||||
| info | 输入框下方文字提示 | _string_ | - |
|
||||
| error-info | 输入框下方错误提示 | _string_ | - |
|
||||
| length | 密码最大长度 | _number \| string_ | `6` |
|
||||
| gutter | 输入框格子之间的间距,如 `20px` `2em`,默认单位为`px` | _number \| string_ | `0` |
|
||||
| mask | 是否隐藏密码内容 | _boolean_ | `true` |
|
||||
| focused `v2.1.8` | 是否已聚焦,聚焦时会显示光标 | _boolean_ | `false` |
|
||||
|
||||
### Events
|
||||
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
|------|------|------|
|
||||
| focus | 输入框聚焦时触发 | - |
|
||||
| 事件名 | 说明 | 回调参数 |
|
||||
| ------ | ---------------- | -------- |
|
||||
| focus | 输入框聚焦时触发 | - |
|
||||
|
||||
Reference in New Issue
Block a user