仓库地址修改
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
Component({
|
||||
externalClasses: ['i-class'],
|
||||
|
||||
relations: {
|
||||
'../collapse-item/index': {
|
||||
type: 'child'
|
||||
}
|
||||
},
|
||||
properties: {
|
||||
name: String,
|
||||
accordion: Boolean
|
||||
},
|
||||
methods: {
|
||||
clickfn(e) {
|
||||
const params = e.detail;
|
||||
const allList = this.getRelationNodes('../collapse-item/index');
|
||||
allList.forEach((item) => {
|
||||
if (params.name === item.data.name) {
|
||||
item.setData({
|
||||
showContent: 'i-collapse-item-show-content'
|
||||
});
|
||||
} else {
|
||||
item.setData({
|
||||
showContent: ''
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user