Update Row and Col
@@ -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: {
- push: {
- }
+ offset: Number,
+ pull: Number,
+ push: Number
computed: {
gutter() {
return this.$parent.gutter;
+
style() {
var ret = {};
@@ -45,11 +41,6 @@
return ret;
}
-
- data() {
- return {
- };
};
</script>
@@ -1,5 +1,5 @@
- <div class="el-row" v-bind:style="style">
+ <div class="el-row" :style="style">
</template>
@@ -8,9 +8,7 @@
name: 'ElRow',
props: {
- gutter: {
+ gutter: Number
@@ -24,11 +22,6 @@