Fix:禁止展开收起按钮的文字可被选中

This commit is contained in:
街角小林 2024-12-25 18:50:14 +08:00
parent 628a6b72a2
commit f52fd2ff48
2 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,7 @@ export const cssContent = `
stroke-width: 2;
}
.smm-text-node-wrap {
.smm-text-node-wrap, .smm-expand-btn-text {
user-select: none;
}
`

View File

@ -12,6 +12,7 @@ function createExpandNodeContent() {
if (this.mindMap.opt.isShowExpandNum) {
// 展开的节点
this._openExpandNode = new Text()
this._openExpandNode.addClass('smm-expand-btn-text')
// 文本垂直居中
this._openExpandNode.attr({
'text-anchor': 'middle',