diff --git a/_server/css/editor_mobile.css b/_server/css/editor_mobile.css index db75764b..80f3b9d5 100644 --- a/_server/css/editor_mobile.css +++ b/_server/css/editor_mobile.css @@ -63,14 +63,6 @@ body { overflow: auto; } -#editTip { - position: absolute; - width: 100%; - margin-bottom: 120px; - bottom: 0; - left: 10px; -} - #editArea p { margin: 10px; display: block; @@ -117,14 +109,19 @@ body { #tip { float: right; width: 50%; - height: 95%; + /* height: 95%; */ + min-height: 9rem; padding: 5px 10px 10px 10px; margin-right: 0; box-sizing: border-box; border: 1px solid #ccc; border-radius: 2px; - font-size: 15px; - line-height: 14px; + font-size: 1rem; + line-height: 0.93rem; +} + +#tip p{ + margin: 0.5rem } .files { @@ -251,8 +248,8 @@ body { line-height: 1.2em; } -table, td { - border: 1px solid #fff; +td { + border: 0.230vmin solid #fff; color: #fff; cursor: crosshair; } @@ -290,14 +287,17 @@ table.col td { #mapColMark td { - width: 29px; + width: 7.15vmin; + padding: 0; + border-bottom-width: 0px; + border-top-width: 0px; } #mapColMark td:hover .colBlock { position: absolute; top: 4vmin; height: 96vmin; - width: 7.38vmin; + width: 7.15vmin; z-index: 100; background-color: rgba(38, 166, 154, .5); } @@ -330,13 +330,16 @@ table.row td { } #mapRowMark td { - height: 29px; + height: 7.15vmin; + padding: 0; + border-left-width: 0px; + border-right-width: 0px; } #mapRowMark td:hover .rowBlock { position: absolute; left: 4vmin; - height: 7.38vmin; + height: 7.15vmin; width: 96vmin; z-index: 100; background-color: rgba(76, 34, 27, .5); diff --git a/_server/css/editor_mode_mobile.css b/_server/css/editor_mode_mobile.css index c8e9fc4c..f13b61c3 100644 --- a/_server/css/editor_mode_mobile.css +++ b/_server/css/editor_mode_mobile.css @@ -59,15 +59,15 @@ overflow: hidden; } #left6 h3{ - font-size: 3vmax; - margin: 2vmax 0; + font-size: 3.5vh; + margin: 1vh 0; } #left6 #blocklyArea { width: 100vmin; - height: 55vmax; + height: 60vh; } #left6 #blocklyDiv { @@ -77,7 +77,7 @@ #left6 .CodeMirror { border: 1px solid #eee; - height: 27vmax; + height: 21vh; width: 100%; } diff --git a/_server/editor_mode.js b/_server/editor_mode.js index c35d9cd1..3cca8ba4 100644 --- a/_server/editor_mode.js +++ b/_server/editor_mode.js @@ -122,9 +122,9 @@ editor_mode = function (editor) { if (cobj._type === 'event') editor_blockly.import(guid, {type: cobj._event}); if (cobj._type === 'textarea') editor_multi.import(guid, {lint: cobj._lint, string: cobj._string}); } - thisTr.onclick = function(){ - editor.lastClickId=guid; - } + // thisTr.onclick = function(){ + // editor.lastClickId=guid; + // } }); } return {"HTML": outstr.join(''), "guids": guids, "listen": listen}; diff --git a/_server/vm.js b/_server/vm.js index 82b3139d..4e70722b 100644 --- a/_server/vm.js +++ b/_server/vm.js @@ -1,9 +1,21 @@ // vue 相关处理 document.body.onmousedown = function (e) { //console.log(e); - var clickpath = []; - e.path.forEach(function (node) { + var getpath=function(e) { + var path = []; + var currentElem = e.target; + while (currentElem) { + path.push(currentElem); + currentElem = currentElem.parentElement; + } + if (path.indexOf(window) === -1 && path.indexOf(document) === -1) + path.push(document); + if (path.indexOf(window) === -1) + path.push(window); + return path; + } + getpath(e).forEach(function (node) { if (!node.getAttribute) return; var id_ = node.getAttribute('id'); if (id_) { @@ -32,7 +44,7 @@ document.body.onmousedown = function (e) { if (e.button!=2 && !editor.isMobile){ editor.hideMidMenu(); } - if (clickpath.indexOf('down') !== -1 && editor.isMobile){ + if (clickpath.indexOf('down') !== -1 && editor.isMobile && clickpath.indexOf('midMenu') === -1){ editor.hideMidMenu(); } if(clickpath.length>=2 && clickpath[0].indexOf('id_')===0){editor.lastClickId=clickpath[0]} diff --git a/editor-mobile.html b/editor-mobile.html index 6f945a90..0c76d385 100644 --- a/editor-mobile.html +++ b/editor-mobile.html @@ -22,13 +22,13 @@

{{ errors[error-1] }}

-
+
保留楼层属性
-
+
@@ -221,7 +221,7 @@
-
+
@@ -245,6 +245,15 @@ + - -