Skip to content

Commit

Permalink
Use containerStyle property for passing image container styles
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
Agontuk committed May 3, 2017
1 parent 47f3407 commit 1936eac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ See the [example](https://github.com/Agontuk/vue-cropperjs/tree/master/example)
* Type: `string`
* Required: `false`

### style
### containerStyle
* Type: `object`
* Required: `false`

Expand Down
4 changes: 2 additions & 2 deletions VueCropper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'cropperjs/dist/cropper.css';

const CropperComponent = Vue.extend({
render(h) {
return h('div', { style: this.style }, [
return h('div', { style: this.containerStyle }, [
h('img', {
ref: 'img',
attrs: {
Expand All @@ -17,7 +17,7 @@ const CropperComponent = Vue.extend({
]);
},
props: {
'style': Object,
'containerStyle': Object,
'data': Object,
'preview': String,
'src': {
Expand Down
4 changes: 2 additions & 2 deletions dist/VueCropper.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob

var CropperComponent = _vue2.default.extend({
render: function render(h) {
return h('div', { style: this.style }, [h('img', {
return h('div', { style: this.containerStyle }, [h('img', {
ref: 'img',
attrs: {
src: this.src,
Expand All @@ -32,7 +32,7 @@ var CropperComponent = _vue2.default.extend({
},

props: {
'style': Object,
'containerStyle': Object,
'data': Object,
'preview': String,
'src': {
Expand Down

0 comments on commit 1936eac

Please sign in to comment.