Skip to content

Commit

Permalink
Release: 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Inndy committed Jun 14, 2018
1 parent 2a2522e commit 6b6bc4e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.2.0

- Add config option `autoSetContainer`

# 0.1.1

- Move vue to peerDependency
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ let container = this.$refs.container
this.$copyText("Text to copy", container)
```

Or you can let `vue-clipboard2` set `container` to current element by doing this:

```js
import Vue from 'vue'
import VueClipboard from 'vue-clipboard2'

VueClipboard.config.autoSetContainer = true // add this line
Vue.use(VueClipboard)
```

## Sample

```html
Expand Down
11 changes: 9 additions & 2 deletions dist/vue-clipboard.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-clipboard.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-clipboard2",
"version": "0.1.1",
"version": "0.2.0",
"description": "A Vuejs2 binding for clipboard.js",
"main": "vue-clipboard.js",
"scripts": {
Expand Down

0 comments on commit 6b6bc4e

Please sign in to comment.