style: perf show

This commit is contained in:
元凛
2021-05-24 23:59:15 +08:00
parent b483519646
commit 4b5824425d
5 changed files with 30 additions and 25 deletions

View File

@@ -82,13 +82,13 @@ function getImg(o) {
}
function getImgWidth(o) {
if(o) {
if (o) {
let width = o.width;
if (width === 'auto') {
width = ''
width = '';
} else {
width = width ? width : DEFAULT_WIDTH;
};
}
return ` width="${width}"`;
}
return '';