You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
clothesProject/pages/miniprogram_npm/@vant/weapp/row/index.js

27 lines
722 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("../common/component");
var relation_1 = require("../common/relation");
(0, component_1.VantComponent)({
relation: (0, relation_1.useChildren)('col', function (target) {
var gutter = this.data.gutter;
if (gutter) {
target.setData({ gutter: gutter });
}
}),
props: {
gutter: {
type: Number,
observer: 'setGutter',
},
},
methods: {
setGutter: function () {
var _this = this;
this.children.forEach(function (col) {
col.setData(_this.data);
});
},
},
});