<template>
<uni-shadow-root class="vant-row-index"><view class="custom-class van-row" :style="style">
  <slot></slot>
</view></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'vant/row/index'
"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require('./../common/component.js');
component_1.VantComponent({
    relation: {
        name: 'col',
        type: 'descendant',
        linked: function linked(target) {
            if (this.data.gutter) {
                target.setGutter(this.data.gutter);
            }
        }
    },
    props: {
        gutter: Number
    },
    watch: {
        gutter: 'setGutter'
    },
    mounted: function mounted() {
        if (this.data.gutter) {
            this.setGutter();
        }
    },
    methods: {
        setGutter: function setGutter() {
            var _this = this;
            var gutter = this.data.gutter;
            var margin = "-" + Number(gutter) / 2 + "px";
            var style = gutter ? "margin-right: " + margin + "; margin-left: " + margin + ";" : '';
            this.set({ style: style });
            this.getRelationNodes('../col/index').forEach(function (col) {
                col.setGutter(_this.data.gutter);
            });
        }
    }
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIk9iamVjdCIsInZhbHVlIiwiY29tcG9uZW50XzEiLCJyZXF1aXJlIiwicmVsYXRpb24iLCJuYW1lIiwidHlwZSIsImxpbmtlZCIsInRhcmdldCIsInByb3BzIiwiZ3V0dGVyIiwiTnVtYmVyIiwid2F0Y2giLCJtb3VudGVkIiwibWV0aG9kcyIsInNldEd1dHRlciIsIl90aGlzIiwibWFyZ2luIiwic3R5bGUiLCJjb2wiXSwibWFwcGluZ3MiOiI7O0FBQ0FBLE9BQUFBLGNBQUFBLENBQUFBLE9BQUFBLEVBQUFBLFlBQUFBLEVBQTZDLEVBQUVDLE9BQS9DRCxJQUE2QyxFQUE3Q0E7QUFDQSxJQUFJRSxjQUFjQyxRQUFsQiwwQkFBa0JBLENBQWxCO0FBQ0FELFlBQUFBLGFBQUFBLENBQTBCO0FBQ3RCRSxjQUFVO0FBQ05DLGNBRE0sS0FBQTtBQUV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9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcIl9fZXNNb2R1bGVcIiwgeyB2YWx1ZTogdHJ1ZSB9KTtcbnZhciBjb21wb25lbnRfMSA9IHJlcXVpcmUoXCIuLi9jb21tb24vY29tcG9uZW50XCIpO1xuY29tcG9uZW50XzEuVmFudENvbXBvbmVudCh7XG4gICAgcmVsYXRpb246IHtcbiAgICAgICAgbmFtZTogJ2NvbCcsXG4gICAgICAgIHR5cGU6ICdkZXNjZW5kYW50JyxcbiAgICAgICAgbGlua2VkOiBmdW5jdGlvbiAodGFyZ2V0KSB7XG4gICAgICAgICAgICBpZiAodGhpcy5kYXRhLmd1dHRlcikge1xuICAgICAgICAgICAgICAgIHRhcmdldC5zZXRHdXR0ZXIodGhpcy5kYXRhLmd1dHRlcik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9LFxuICAgIHByb3BzOiB7XG4gICAgICAgIGd1dHRlcjogTnVtYmVyXG4gICAgfSxcbiAgICB3YXRjaDoge1xuICAgICAgICBndXR0ZXI6ICdzZXRHdXR0ZXInXG4gICAgfSxcbiAgICBtb3VudGVkOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgIGlmICh0aGlzLmRhdGEuZ3V0dGVyKSB7XG4gICAgICAgICAgICB0aGlzLnNldEd1dHRlcigpO1xuICAgICAgICB9XG4gICAgfSxcbiAgICBtZXRob2RzOiB7XG4gICAgICAgIHNldEd1dHRlcjogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgdmFyIF90aGlzID0gdGhpcztcbiAgICAgICAgICAgIHZhciBndXR0ZXIgPSB0aGlzLmRhdGEuZ3V0dGVyO1xuICAgICAgICAgICAgdmFyIG1hcmdpbiA9IFwiLVwiICsgTnVtYmVyKGd1dHRlcikgLyAyICsgXCJweFwiO1xuICAgICAgICAgICAgdmFyIHN0eWxlID0gZ3V0dGVyXG4gICAgICAgICAgICAgICAgPyBcIm1hcmdpbi1yaWdodDogXCIgKyBtYXJnaW4gKyBcIjsgbWFyZ2luLWxlZnQ6IFwiICsgbWFyZ2luICsgXCI7XCJcbiAgICAgICAgICAgICAgICA6ICcnO1xuICAgICAgICAgICAgdGhpcy5zZXQoeyBzdHlsZTogc3R5bGUgfSk7XG4gICAgICAgICAgICB0aGlzLmdldFJlbGF0aW9uTm9kZXMoJy4uL2NvbC9pbmRleCcpLmZvckVhY2goZnVuY3Rpb24gKGNvbCkge1xuICAgICAgICAgICAgICAgIGNvbC5zZXRHdXR0ZXIoX3RoaXMuZGF0YS5ndXR0ZXIpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG59KTtcbiJdLCJmaWxlIjoiaW5kZXguanMifQ==
export default global['__wxComponents']['vant/row/index']
</script>
<style platform="mp-weixin">
@import '../common/index.css';.van-row:after{content:"";display:table;clear:both}
</style>