
Some checks are pending
Actions / Litemall-all (11) (push) Waiting to run
Actions / Litemall-all (11.0.3) (push) Waiting to run
Actions / Litemall-all (8) (push) Waiting to run
Actions / Litemall-all (8.0.192) (push) Waiting to run
Actions / Litemall-admin (10.x) (push) Waiting to run
Actions / Litemall-admin (12.x) (push) Waiting to run
Actions / Litemall-admin (14.x) (push) Waiting to run
Actions / Litemall-vue (10.x) (push) Waiting to run
Actions / Litemall-vue (12.x) (push) Waiting to run
Actions / Litemall-vue (14.x) (push) Waiting to run
24 lines
546 B
JavaScript
24 lines
546 B
JavaScript
import { VantComponent } from '../common/component';
|
|
VantComponent({
|
|
relation: {
|
|
name: 'row',
|
|
type: 'ancestor'
|
|
},
|
|
props: {
|
|
span: Number,
|
|
offset: Number
|
|
},
|
|
data: {
|
|
style: ''
|
|
},
|
|
methods: {
|
|
setGutter(gutter) {
|
|
const padding = `${gutter / 2}px`;
|
|
const style = gutter ? `padding-left: ${padding}; padding-right: ${padding};` : '';
|
|
if (style !== this.data.style) {
|
|
this.setData({ style });
|
|
}
|
|
}
|
|
}
|
|
});
|