仓库地址修改

This commit is contained in:
mindskip
2020-09-01 22:58:28 +08:00
parent a8d9b11da0
commit c5a5a1f039
294 changed files with 75 additions and 5581 deletions

View File

@@ -1,63 +0,0 @@
Component({
externalClasses: ['i-class'],
properties : {
scrollTop : {
type : Number,
observer(val){
this._updateScrollTopChange();
}
}
},
relations : {
'../sticky-item/index' : {
type : 'child',
linked(){
this._updateDataChange();
},
linkChanged () {
this._updateDataChange();
},
unlinked () {
this._updateDataChange();
}
}
},
data : {
timer : null,
itemLength : 0,
},
methods : {
_updateScrollTopChange(){
const stickies = this.getRelationNodes('../sticky-item/index');
if( stickies.length > 0 ){
stickies.forEach((item) => {
if( item ){
item.updateScrollTopChange( this.data.scrollTop );
}
})
}
},
_updateDataChange( ){
const stickies = this.getRelationNodes('../sticky-item/index');
if( stickies.length > 0 ){
if( this.data.timer ){
clearTimeout( this.data.timer )
this.setData({
timer : null
})
}
this.data.timer = setTimeout(()=>{
stickies.forEach((item,index) => {
if( item ){
item.updateDataChange(index);
}
})
},0)
this.setData({
timer : this.data.timer
})
}
}
}
})

View File

@@ -1,3 +0,0 @@
{
"component": true
}

View File

@@ -1,3 +0,0 @@
<view class="i-sticky i-class">
<slot></slot>
</view>