Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Fixed alert type prop
Browse files Browse the repository at this point in the history
  • Loading branch information
romanslonov committed Apr 22, 2019
1 parent 895b8d7 commit d958467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/components/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Flash messages, or alerts, inform users of successful or pending actions. Use th
<div class="p-3 border rounded-2 my-3">
<v-alert title="Information" type="info" class="mb-3">Information text</v-alert>
<v-alert title="Success" type="success" class="mb-3">Success text</v-alert>
<v-alert title="Warning" type="warn" class="mb-3">Warning text</v-alert>
<v-alert title="Warning" type="warning" class="mb-3">Warning text</v-alert>
<v-alert title="Error" type="error">Error text</v-alert>
</div>

Expand All @@ -20,7 +20,7 @@ Flash messages, or alerts, inform users of successful or pending actions. Use th
## Props
Name | Type | Description | Default
---------- | -------- | ----------- | -----
type | String | There are 4 types: ['info', 'success', 'warn', 'error'] | 'info'
type | String | There are 4 types: ['info', 'success', 'warning', 'error'] | 'info'
title | String | Title of alert | 'Default title'

## Slots
Expand Down
2 changes: 1 addition & 1 deletion src/components/Alert/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
type: String,
default: 'info',
validator(type) {
return ['info', 'success', 'warn', 'error'].indexOf(type) > -1;
return ['info', 'success', 'warning', 'error'].indexOf(type) > -1;
},
},
wide: {
Expand Down

0 comments on commit d958467

Please sign in to comment.