diff --git a/README.md b/README.md index f16e684..4f669cd 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,14 @@ const res = await this.$dialog.confirm({ }) ``` +### Info dialog +```js +const res = await this.$dialog.info({ + text: 'File copied successfully', + title: 'Info' +}) +``` + ### Warning dialog ```js const res = await this.$dialog.warning({ diff --git a/package.json b/package.json index 5f8af35..a919c32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuetify-dialog", - "version": "2.0.11", + "version": "2.0.12", "description": "Dialog helper for vuetify.js", "scripts": { "build": "npm run build:umd & npm run build:es & npm run build:unpkg", diff --git a/src/components/Alert.vue b/src/components/Alert.vue index 18b25f2..25e1c78 100644 --- a/src/components/Alert.vue +++ b/src/components/Alert.vue @@ -4,7 +4,7 @@ @input="$emit('submit')" :dismissible="dismissible" :type="color" - :icon="icon" + :icon="getIcon" :outlined="outlined" :prominent="prominent" :text="flat" @@ -23,6 +23,7 @@