deguodaigou/utils/dist/index-anchor/index.js

23 lines
439 B
JavaScript
Raw Normal View History

2019-12-14 09:20:48 +08:00
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: ''
}
});