Blame view

src/ui/vant-weapp/goods-action/index.js 514 Bytes
simon committed
1 2
import { VantComponent } from '../common/component';
VantComponent({
simon committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
    relation: {
        type: 'descendant',
        name: 'goods-action-button',
        linked(child) {
            this.children.push(child);
        },
        unlinked(child) {
            this.children = this.children.filter((item) => item !== child);
        }
    },
    beforeCreate() {
        this.children = [];
    },
    props: {
        safeAreaInsetBottom: {
            type: Boolean,
            value: true
        }
    }
simon committed
22
});