Update Row and Col

pull/2/head
qingwei.li 2016-08-12 16:32:47 +08:00
parent d607187d85
commit 05bfb6332b
2 changed files with 9 additions and 25 deletions

View File

@ -1,12 +1,13 @@
<template>
<div class="el-col"
<div
class="el-col"
:class="[
'el-col-' + span,
offset ? 'el-col-offset-' + offset : '',
pull ? 'el-col-pull-' + pull : '',
push ? 'el-col-push-' + push : ''
]"
v-bind:style="style"
:style="style"
>
<slot></slot>
</div>
@ -20,21 +21,16 @@
type: Number,
required: true
},
offset: {
type: Number
},
pull: {
type: Number
},
push: {
type: Number
}
offset: Number,
pull: Number,
push: Number
},
computed: {
gutter() {
return this.$parent.gutter;
},
style() {
var ret = {};
@ -45,11 +41,6 @@
return ret;
}
},
data() {
return {
};
}
};
</script>

View File

@ -1,5 +1,5 @@
<template>
<div class="el-row" v-bind:style="style">
<div class="el-row" :style="style">
<slot></slot>
</div>
</template>
@ -8,9 +8,7 @@
name: 'ElRow',
props: {
gutter: {
type: Number
}
gutter: Number
},
computed: {
@ -24,11 +22,6 @@
return ret;
}
},
data() {
return {
};
}
};
</script>