<template>
    <view :class="'custom-class ' + utils.bem('goods-action', { safe: safeAreaInsetBottom })">
        <slot />
    </view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
    value: true
});
var component_1 = require('../common/component');
component_1.VantComponent({
    relation: {
        type: 'descendant',
        name: 'goods-action-button',
        current: 'goods-action',
        linked: function () {
            this.updateStyle();
        },
        unlinked: function () {
            this.updateStyle();
        },
        linkChanged: function () {
            this.updateStyle();
        }
    },
    props: {
        safeAreaInsetBottom: {
            type: Boolean,
            value: true
        }
    },
    methods: {
        updateStyle: function () {
            var that = this;
            this.$nextTick(function () {
                that.children.forEach(function (child) {
                    child.updateStyle();
                });
            });
        }
    }
});
</script>
<style>
@import './index.css';
</style>
