diff --git a/docs/components/index.md b/docs/components/index.md index 83586d3..5149e49 100755 --- a/docs/components/index.md +++ b/docs/components/index.md @@ -6,7 +6,7 @@ Flash messages, or alerts, inform users of successful or pending actions. Use th
Information text Success text - Warning text + Warning text Error text
@@ -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 diff --git a/src/components/Alert/main.vue b/src/components/Alert/main.vue index 78ba0d7..16dd53a 100755 --- a/src/components/Alert/main.vue +++ b/src/components/Alert/main.vue @@ -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: {