<template>
  	<el-table-column :label="generateI18nLabel()" v-bind="$attrs" v-on="$listeners">
		<template slot-scope="scope">
			<slot :scope="scope"/>
		</template> 
	</el-table-column>
</template>

<script>
export default {
	props: {
		label: {
			type: String
		}
	},
	methods: {
		/**
		 * 以英文为主
		 */
		generateI18nLabel() {
			return this.$t(`custom.columns.${this.label}`)
		}
	}
};
</script>

<style></style>