<template>
    <view :class="'custom-class ' + utils.bem('col', [span]) + ' ' + (offset ? 'van-col--offset-' + offset : '')" :style="viewStyle">
        <slot />
    </view>
</template>
<script module="utils" lang="wxs" src="@/node_modules/@vant/weapp/lib/wxs/utils.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
    value: true
});
var component_1 = require('../common/component');
component_1.VantComponent({
    relation: {
        name: 'row',
        type: 'ancestor',
        current: 'col'
    },
    props: {
        span: Number,
        offset: Number
    },
    data: {
        viewStyle: ''
    },
    methods: {
        setGutter: function (gutter) {
            var padding = gutter / 2 + 'px';
            var viewStyle = gutter ? 'padding-left: ' + padding + '; padding-right: ' + padding + ';' : '';
            if (viewStyle !== this.viewStyle) {
                this.setData({
                    viewStyle: viewStyle
                });
            }
        }
    }
});
</script>
<style>
@import './index.css';
</style>
