mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-27 22:29:46 +08:00
增加补充相关资料和小程序源码
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
Component({
|
||||
data: {
|
||||
children: []
|
||||
},
|
||||
relations: {
|
||||
'../fui-swipe-action/fui-swipe-action': {
|
||||
type: 'descendant',
|
||||
linked: function (target) {
|
||||
this.data.children.push(target)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
close() {
|
||||
this.data.children.forEach(child => {
|
||||
child.setData({
|
||||
isShow: false
|
||||
})
|
||||
})
|
||||
},
|
||||
closeAuto(child) {
|
||||
this.data.children.forEach(item => {
|
||||
if (item !== child) {
|
||||
item.setData({
|
||||
isShow: false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user