Skip to content

Commit

Permalink
package version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avil13 committed May 6, 2020
1 parent 2caedf6 commit 82126a5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 14 deletions.
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.0.5

#### package version fix

## 3.0.4

#### nuxt fixes


## v2.1.1 (01/07/2019)

#### Bug Fixes:
Expand Down
36 changes: 24 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@ Vue.js wrapper for SweetAlert2. With support SSR.
### Basics

```bash
# bash
npm install -S vue-sweetalert2
```

### Add types to TypeScript project

```js
{
//...tsconfig.json
"types": [
"vue-sweetalert2"
],
}
```

```js
// main.js
import Vue from 'vue';
Expand All @@ -38,18 +50,18 @@ Now in the global object, you can access all the methods of [sweetalert2](https:
```html
// example-vue-component.vue
<template>
<button @click="showAlert">Hello world</button>
<button @click="showAlert">Hello world</button>
</template>

<script>
export default {
methods: {
showAlert() {
// Use sweetalert2
this.$swal('Hello Vue world!!!');
},
},
};
export default {
methods: {
showAlert() {
// Use sweetalert2
this.$swal('Hello Vue world!!!');
},
},
};
</script>
```

Expand All @@ -69,8 +81,8 @@ import Vue from 'vue';
import VueSweetalert2 from 'vue-sweetalert2';

const options = {
confirmButtonColor: '#41b882',
cancelButtonColor: '#ff7674',
confirmButtonColor: '#41b882',
cancelButtonColor: '#ff7674',
};

Vue.use(VueSweetalert2, options);
Expand Down Expand Up @@ -109,7 +121,7 @@ Add `vue-sweetalert2/nuxt` to modules section of `nuxt.config.js`

```js
{
modules: ['vue-sweetalert2/nuxt'];
modules: ['vue-sweetalert2/nuxt'];
}
```

Expand Down

0 comments on commit 82126a5

Please sign in to comment.