日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
993 B

import baseComponent from '../helpers/baseComponent'
import classNames from '../helpers/classNames'
baseComponent({
relations: {
'../swipe-action/index': {
type: 'descendant',
observer() {
this.debounce(this.updated)
},
},
},
methods: {
updated() {
const elements = this.getRelationNodes('../swipe-action/index')
if (elements.length > 0) {
elements.forEach((element, index) => {
element.updated(index)
})
}
},
onCloseSwipe(current) {
const elements = this.getRelationNodes('../swipe-action/index')
if (elements.length > 0) {
elements.forEach((element, index) => {
if (current !== index) {
element.onClose()
}
})
}
},
},
})