Skip to content

Commit

Permalink
fiximageTypo Image组件只有mode属性,没有model
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiyu8 committed Aug 28, 2019
1 parent 58f8038 commit 911e357
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
required: false,
default: {}
},
model: {
mode: {
type: String,
required: false,
default: 'scaleToFill'
Expand All @@ -52,7 +52,7 @@

onInit () {
let imageStyle = {}
switch (this.model) {
switch (this.mode) {
case 'scaleToFill':
this.imageStyle['object-fit'] = 'fill';
break;
Expand Down

0 comments on commit 911e357

Please sign in to comment.