directory adjust: delete entry index.js

This commit is contained in:
陈嘉涵
2017-08-22 17:52:16 +08:00
parent 707b48aa61
commit c494292e3f
88 changed files with 587 additions and 713 deletions

31
packages/row/index.vue Normal file
View File

@@ -0,0 +1,31 @@
<template>
<div :class="`${prefix}-row`" :style="style">
<slot></slot>
</div>
</template>
<script>
export default {
name: 'van-row',
props: {
prefix: {
type: String,
default: 'van'
},
gutter: {
type: [Number, String],
default: 0
}
},
computed: {
style() {
const margin = `-${Number(this.gutter) / 2}px`;
return this.gutter
? { marginLeft: margin, marginRight: margin }
: {};
}
}
};
</script>