圆角矩形 Key 值修复

This commit is contained in:
ciaochaos 2020-06-13 00:07:15 +08:00
parent d07d78e193
commit 7e56f773fe
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function listPoints(qrcode, params) {
} }
} else if (posType === 3) { } else if (posType === 3) {
pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />) pointList.push(<circle key={id++} fill={posColor} cx={x + 0.5} cy={y + 0.5} r={1.5} />)
pointList.push(<path d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - size) * 0.75)} fill="none" transform={'translate('+String(x - 2.5)+','+String(y - 2.5)+') ' + 'scale(' + String(6/100) + ',' + String(6/100) + ')'} />) pointList.push(<path key={id++} d={sq25} stroke={posColor} strokeWidth={100/6 * (1 - (1 - size) * 0.75)} fill="none" transform={'translate('+String(x - 2.5)+','+String(y - 2.5)+') ' + 'scale(' + String(6/100) + ',' + String(6/100) + ')'} />)
} }
} }
else if (typeTable[x][y] === QRPointType.POS_OTHER) { else if (typeTable[x][y] === QRPointType.POS_OTHER) {