fix IE bug
This commit is contained in:
parent
efe8138a2d
commit
f47eefeea8
@ -47,6 +47,7 @@ body{
|
|||||||
white-space: pre;
|
white-space: pre;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
#editTip{
|
#editTip{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ var editArea = new Vue({
|
|||||||
if(val=='') return;
|
if(val=='') return;
|
||||||
if(that.formatArr()){
|
if(that.formatArr()){
|
||||||
that.error = 0;
|
that.error = 0;
|
||||||
clearTimeout(that.formatTimer);
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
that.mapArr = that.formatArr();
|
that.mapArr = that.formatArr();
|
||||||
that.drawMap();
|
that.drawMap();
|
||||||
@ -98,7 +98,8 @@ var editArea = new Vue({
|
|||||||
},
|
},
|
||||||
formatArr: function(){
|
formatArr: function(){
|
||||||
var formatArrStr = '';
|
var formatArrStr = '';
|
||||||
|
var that = this;
|
||||||
|
clearTimeout(that.formatTimer);
|
||||||
if(this.mapArr.split(/\D+/).join(' ').trim().split(' ').length != 169) return false;
|
if(this.mapArr.split(/\D+/).join(' ').trim().split(' ').length != 169) return false;
|
||||||
var arr = this.mapArr.replace(/\s+/g, '').split('],[');
|
var arr = this.mapArr.replace(/\s+/g, '').split('],[');
|
||||||
|
|
||||||
|
|||||||
@ -663,7 +663,7 @@ editor.info
|
|||||||
var editor = new editor();
|
var editor = new editor();
|
||||||
editor.init();
|
editor.init();
|
||||||
editor.fs=fs;
|
editor.fs=fs;
|
||||||
editor.file=editor_file;
|
// editor.file=editor_file;
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
// 文件相关操作
|
// 文件相关操作
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user