diff --git a/web3/packages/mind-map/src/store/helpers/addCustomContentToNode.ts b/web3/packages/mind-map/src/store/helpers/addCustomContentToNode.ts index 8940947f..a2c7883f 100644 --- a/web3/packages/mind-map/src/store/helpers/addCustomContentToNode.ts +++ b/web3/packages/mind-map/src/store/helpers/addCustomContentToNode.ts @@ -3,11 +3,11 @@ import { insertSiblingNode } from "./insertSiblingNode"; import { useMindMapStore } from "../index"; const ICON_PLUS = - ''; + ''; const ICON_EDIT = - ''; + ''; const ICON_DELETE = - ''; + ''; /** * 为节点添加自定义内容 - 添加按钮工具栏 @@ -17,7 +17,7 @@ export function getCustomNodeContent() { // 按钮配置 const buttonConfig = { gap: 4, // 按钮间距 - fontSize: 12, // 字体大小 + fontSize: 24, // 字体大小 height: 24, // 按钮高度 width: 24, // 按钮宽度 }; @@ -59,6 +59,9 @@ export function getCustomNodeContent() { // 通用样式 Object.assign(btn.style, { + display : 'flex', + justifyContent: "center", + alignItems: "center", border: "none", background: color, color: "white",