23 lines
439 B
JavaScript
23 lines
439 B
JavaScript
|
import { VantComponent } from '../common/component';
|
||
|
VantComponent({
|
||
|
relation: {
|
||
|
name: 'index-bar',
|
||
|
type: 'ancestor',
|
||
|
linked(target) {
|
||
|
this.parent = target;
|
||
|
},
|
||
|
unlinked() {
|
||
|
this.parent = null;
|
||
|
}
|
||
|
},
|
||
|
props: {
|
||
|
useSlot: Boolean,
|
||
|
index: null
|
||
|
},
|
||
|
data: {
|
||
|
active: false,
|
||
|
wrapperStyle: '',
|
||
|
anchorStyle: ''
|
||
|
}
|
||
|
});
|