|
152 | 152 | let self = this;
|
153 | 153 | const cropBox = this.$refs.cropBox;
|
154 | 154 | const targetImage = cropBox.getCropImage();
|
155 |
| - this.data.comprose = 100 - this.compress; |
| 155 | + this.data.compress = 100 - this.compress; |
156 | 156 | return canvasHelper.rotate(targetImage, 1, (src) => {
|
157 | 157 | self.__initImage(src)
|
158 | 158 | })
|
|
162 | 162 | let self = this;
|
163 | 163 | const cropBox = this.$refs.cropBox;
|
164 | 164 | const targetImage = cropBox.getCropImage();
|
165 |
| - this.data.comprose = 100 - this.compress; |
| 165 | + this.data.compress = 100 - this.compress; |
166 | 166 | return canvasHelper.rotate(targetImage, -1, (src) => {
|
167 | 167 | self.__initImage(src)
|
168 | 168 | })
|
|
174 | 174 | const upload = this.__setUpload(e.target);
|
175 | 175 | if (this.crop === 'local') {
|
176 | 176 | const targetImage = cropBox.getCropImage();
|
177 |
| - this.data.comprose = 100 - this.compress; |
| 177 | + this.data.compress = 100 - this.compress; |
178 | 178 | return canvasHelper.crop(targetImage, this.data, (code) => {
|
179 | 179 | upload(code);
|
180 | 180 | this.__dispatch('imagechanged', code);
|
|
189 | 189 | const upload = this.__setUpload(e.target);
|
190 | 190 | if (this.resize === 'local') {
|
191 | 191 | const targetImage = cropBox.getCropImage();
|
192 |
| - this.data.comprose = 100 - this.compress; |
| 192 | + this.data.compress = 100 - this.compress; |
193 | 193 | return canvasHelper.resize(targetImage, this.data, (code) => {
|
194 | 194 | upload(code);
|
195 | 195 | this.__dispatch('imagechanged', code);
|
|
0 commit comments