Skip to content
  • This project
    • Loading...
  • Sign in

dev / home-with-kids-mp

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • home-with-kids-mp
  • src
  • ui
  • vant-weapp
  • index-anchor
  • index.js
  • simon's avatar
    默认提交 · abc9441e
    abc9441e Browse Files
    simon committed 2019-11-25 22:43:06 +0800
index.js 439 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
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: ''
    }
});