Skip to content

Commit

Permalink
fix: 调整icon mk的判断值 (#11438)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc authored Dec 28, 2024
1 parent 409722a commit a756a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis/src/renderers/icons/mk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function mk(
const path = svg.querySelectorAll('path');
const polygon = svg.querySelectorAll('polygon');
const p = [...path, ...polygon, ...rect];
if (supportBorderRadius) {
if (supportBorderRadius !== false) {
// 需要将width和height写到svg的viewBox属性里面和rect的width和height属性里面
const viewBox = svg.getAttribute('viewBox') || '0 0';
const [x, y] = viewBox.split(' ');
Expand Down

0 comments on commit a756a28

Please sign in to comment.