!137 fix: 预览图片设置的高宽参数颠倒

Merge pull request !137 from Dulk/fix_bug
pull/137/MERGE
若依 2019-10-09 11:52:48 +08:00 committed by Gitee
commit 39fdb02022
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@
// blank or self
var _target = $.common.isEmpty(target) ? 'self' : target;
if ($.common.isNotEmpty(value)) {
return $.common.sprintf("<img class='img-circle img-xs' data-height='%s' data-width='%s' data-target='%s' src='%s'/>", width, height, _target, value);
return $.common.sprintf("<img class='img-circle img-xs' data-height='%s' data-width='%s' data-target='%s' src='%s'/>", height, width, _target, value);
} else {
return $.common.nullToStr(value);
}