diff --git a/.gitignore b/.gitignore index 4ff855a..a32a26a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.diff *.patch *.bak +.history .DS_Store node_modules/ .project diff --git a/src/components/table/table-body.vue b/src/components/table/table-body.vue index e2f7ab0..4c6cbd3 100644 --- a/src/components/table/table-body.vue +++ b/src/components/table/table-body.vue @@ -14,7 +14,7 @@ @mouseleave.native.stop="handleMouseOut(row._index)" @click.native="clickCurrentRow(row._index)" @dblclick.native.stop="dblclickCurrentRow(row._index)"> - + - + @@ -67,6 +67,12 @@ rowKey: { type: Boolean, default: false + }, + rowExpander: { + type: Function, + default: function(){ + return 1; + } } }, computed: { diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 81c4a29..ce17b48 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -88,6 +88,7 @@ :data="rebuildData" :row-key="rowKey" :columns-width="columnsWidth" + :row-expander="rowExpander" :obj-data="objData"> @@ -208,6 +209,12 @@ rowKey: { type: Boolean, default: false + }, + rowExpander: { + type: Function, + default: function(){ + return 1; + } } }, data () { -- libgit2 0.21.4