<!-- 表格组件 -->
<template>
	<md-table :class="{isBorder:isBorder}">
		<md-table-row>
			<!-- <md-table-head md-numeric>ID</md-table-head> -->
			<md-table-head v-for="item in mHeader">{{item}}</md-table-head>
		</md-table-row>

		<md-table-row v-for="(item,index) in mRow" v-if="index<=size||size==undefined">
			<slot :data="item"></slot>
			<!-- <md-table-cell>张三</md-table-cell>
        <md-table-cell><span v-if="item.judgeResult!=null">{{item.judgeResult}}</span> <span v-else>暂无匹配法官观点</span></md-table-cell> -->
		</md-table-row>


	</md-table>
</template>

<script>
  import Vue from 'vue'
  import { MdTable } from 'vue-material/dist/components'
  Vue.use(MdTable)
	import {
		postApi,
		getApi
	} from "../../../api/commonApi"
	export default {
		name: "lbTable",
		props: {
			mHeader: {

			},
			mRow: {},
			isBorder: {},
			size: {}
		},
		data() {
			return {

			}
		},
		components: {

		},
		watch: {

		},
		computed: {

		},
		mounted() {},
		created() {},
		methods: {


		}
	}
</script>

<style scoped>
	@import 'lbTable.css';
</style>
<style>
	.isBorder .md-table-cell {
		border-right: 1px solid #E5E5E5 !important;
		text-align:center;
	}

</style>
