We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93aa3e7 commit 94bdba0Copy full SHA for 94bdba0
packages/plugins/free-container-plugin/src/sub-canvas/components/background/index.tsx
@@ -24,7 +24,9 @@ export const SubCanvasBackground: FC = () => {
24
const dotColor = backgroundConfig.dotColor ?? '#eceeef';
25
const dotOpacity = backgroundConfig.dotOpacity ?? 0.5;
26
const backgroundColor = backgroundConfig.backgroundColor ?? '#f2f3f5';
27
- const dotFillColor = backgroundConfig.dotFillColor ?? dotColor;
+ // 只有当 dotFillColor 被明确设置且与 dotColor 不同时才添加 fill 属性
28
+ const dotFillColor =
29
+ backgroundConfig.dotFillColor === dotColor ? '' : backgroundConfig.dotFillColor;
30
31
// 生成唯一的 pattern ID
32
const patternId = `sub-canvas-dot-pattern-${node.id}`;
0 commit comments