From 6b6ab79917791879ef56b1a0f92c9739be2d597a Mon Sep 17 00:00:00 2001 From: ssshooter Date: Thu, 16 Mar 2023 22:00:41 +0800 Subject: [PATCH] fix(mobile-menu): limit css to .mind-elixir --- src/dev.ts | 1 + src/plugin/mobileMenu.less | 2 +- src/plugin/mobileMenu.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dev.ts b/src/dev.ts index 3506427f..63a15d20 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -36,6 +36,7 @@ const options = { }, ], }, + mobileMenu: true, toolBar: true, nodeMenu: true, keypress: true, diff --git a/src/plugin/mobileMenu.less b/src/plugin/mobileMenu.less index 14bde456..3dec2d5d 100644 --- a/src/plugin/mobileMenu.less +++ b/src/plugin/mobileMenu.less @@ -1,4 +1,4 @@ -mmenu { +.mind-elixir .mobile-menu { position: absolute; left: 20px; bottom: 70px; diff --git a/src/plugin/mobileMenu.ts b/src/plugin/mobileMenu.ts index ec996335..00ce305f 100644 --- a/src/plugin/mobileMenu.ts +++ b/src/plugin/mobileMenu.ts @@ -36,6 +36,7 @@ export default function (mind, option?) { } } const menuContainer = document.createElement('mmenu') + menuContainer.className = 'mobile-menu' menuContainer.appendChild(add_child) menuContainer.appendChild(add_sibling) menuContainer.appendChild(remove_child)