mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
20 lines
352 B
JavaScript
20 lines
352 B
JavaScript
Component({
|
|
relations: {
|
|
'../cell/index': {
|
|
type: 'child',
|
|
linked() {}
|
|
}
|
|
},
|
|
ready() {
|
|
let cells = this.getRelationNodes('../cell/index');
|
|
|
|
if (cells.length > 0) {
|
|
let lastIndex = cells.length - 1;
|
|
|
|
cells.forEach((cell, index) => {
|
|
if (index < lastIndex) cell.notLastCell();
|
|
});
|
|
}
|
|
}
|
|
});
|