index.js 439 B

12345678910111213141516171819202122
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. relation: {
  4. name: 'index-bar',
  5. type: 'ancestor',
  6. linked(target) {
  7. this.parent = target;
  8. },
  9. unlinked() {
  10. this.parent = null;
  11. }
  12. },
  13. props: {
  14. useSlot: Boolean,
  15. index: null
  16. },
  17. data: {
  18. active: false,
  19. wrapperStyle: '',
  20. anchorStyle: ''
  21. }
  22. });