Commit 83e9cb68 authored by 莫坚培's avatar 莫坚培

feat: 渲染工作完成&去掉部分刷新逻辑

parent 95b3e4a4
...@@ -120,20 +120,20 @@ ...@@ -120,20 +120,20 @@
var elem = this.bindElem; var elem = this.bindElem;
var top = elem.offsetTop; var top = elem.offsetTop;
var left = elem.offsetLeft; var left = elem.offsetLeft;
console.log(elem) // console.log(elem)
console.log( elem.offsetTop) // console.log( elem.offsetTop)
console.log( elem.offsetLeft) // console.log( elem.offsetLeft)
setTimeout(()=>{ // setTimeout(()=>{
console.log( elem.offsetTop) // console.log( elem.offsetTop)
console.log( elem.offsetLeft) // console.log( elem.offsetLeft)
},1000) // },1000)
while (elem.offsetParent) { while (elem.offsetParent) {
top += elem.offsetParent.offsetTop; top += elem.offsetParent.offsetTop;
left += elem.offsetParent.offsetLeft; left += elem.offsetParent.offsetLeft;
elem = elem.offsetParent; elem = elem.offsetParent;
} }
console.log($(window)) // console.log($(window))
if(left+230>$(window).width()){ if(left+230>$(window).width()){
left = left -200+this.bindElem.offsetWidth left = left -200+this.bindElem.offsetWidth
} }
...@@ -141,8 +141,8 @@ ...@@ -141,8 +141,8 @@
top = top -406-this.bindElem.offsetHeight top = top -406-this.bindElem.offsetHeight
} }
top = top + this.bindElem.offsetHeight top = top + this.bindElem.offsetHeight
console.log('top',JSON.parse(top)) // console.log('top',JSON.parse(top))
console.log('left',JSON.parse(left)) // console.log('left',JSON.parse(left))
this.pancelLeft = left + this.elem_colorPalette.clientWidth; this.pancelLeft = left + this.elem_colorPalette.clientWidth;
this.pancelTop = top + this.elem_colorPalette.clientHeight; this.pancelTop = top + this.elem_colorPalette.clientHeight;
...@@ -180,8 +180,8 @@ ...@@ -180,8 +180,8 @@
$('.mycolordiv')[i1].style.display='none' $('.mycolordiv')[i1].style.display='none'
} }
let _that = this let _that = this
console.log(_this.bindElem) // console.log(_this.bindElem)
console.log($(_that)[0]) // console.log($(_that)[0])
let top = $(_that)[0].offsetTop; let top = $(_that)[0].offsetTop;
let left = $(_that)[0].offsetLeft; let left = $(_that)[0].offsetLeft;
let arr = [] let arr = []
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
if(_this.opt1.type !=='iframe'){ if(_this.opt1.type !=='iframe'){
while ($(_that)[0].offsetParent) { while ($(_that)[0].offsetParent) {
arr.push($(_that)[0].offsetParent) arr.push($(_that)[0].offsetParent)
console.log($(_that)[0].offsetParent) // console.log($(_that)[0].offsetParent)
top += $(_that)[0].offsetParent.offsetTop; top += $(_that)[0].offsetParent.offsetTop;
left += $(_that)[0].offsetParent.offsetLeft; left += $(_that)[0].offsetParent.offsetLeft;
_that = $(_that)[0].offsetParent; _that = $(_that)[0].offsetParent;
...@@ -206,9 +206,9 @@ ...@@ -206,9 +206,9 @@
} }
top = top + $(this)[0].offsetHeight top = top + $(this)[0].offsetHeight
console.log('top',JSON.parse(top)) // console.log('top',JSON.parse(top))
console.log('left',JSON.parse(left)) // console.log('left',JSON.parse(left))
console.log($('body').height()-top) // console.log($('body').height()-top)
if(_this.opt1.type =='iframe'){ if(_this.opt1.type =='iframe'){
_this.util.css(_this.elem_wrap, { _this.util.css(_this.elem_wrap, {
......
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @description: 文件描述 * @description: 文件描述
* @Date: 2021-09-16 18:33:55 * @Date: 2021-09-16 18:33:55
* @LastEditors: 莫靓仔 * @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-23 09:52:46 * @LastEditTime: 2021-09-26 16:29:19
*/ */
let setObj = { let setObj = {
// 厂家大佬 // 厂家大佬
...@@ -14,7 +14,7 @@ let setObj = { ...@@ -14,7 +14,7 @@ let setObj = {
}, },
// test-123 // test-123
set2: { set2: {
devToken: 'cca20c8c-507b-43e0-8ca6-3571ae779698', devToken: '5b0784dd-ad5b-43ec-a851-053763233c91',
devAppId: 'TEST123_o582', devAppId: 'TEST123_o582',
devTenantId: 'TEST123_o582' devTenantId: 'TEST123_o582'
} }
......
...@@ -14,7 +14,8 @@ var panelId = "" // panelId写死,后面需修改为动态获取 ...@@ -14,7 +14,8 @@ var panelId = "" // panelId写死,后面需修改为动态获取
// 获取url值 // 获取url值
panelId = getParams('panelId', window.location.href) panelId = getParams('panelId', window.location.href)
// 21302abdb343edf09f84b6f9d900537c // 21302abdb343edf09f84b6f9d900537c
panelId = panelId ? panelId : '1cff8876dc96a8adac114ecbe1bd9652' // panelId = panelId ? panelId : '1cff8876dc96a8adac114ecbe1bd9652'
panelId = panelId ? panelId : '1c792524337704365227fa09db2ac5e1'
// 复用树 // 复用树
var reuseData=[ var reuseData=[
// { id:1, pId:0, name:"文件 1", open:true}, // { id:1, pId:0, name:"文件 1", open:true},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment