// 查询结果
<template>
	<div :class="style['content']">
		<text>{{ label }}</text>
		<slot v-if="isShowOperation"></slot>
	</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import style from './index.module.less'
import { getI18n } from '@/utils/i18n'
export default defineComponent({
	name: 'BaseListLabel',
	props: {
		// 是否操作
		isShowOperation: {
			type: Boolean,
			required: false,
			default: true,
		},
		// 文字
		label: {
			type: String,
			required: false,
			default: getI18n('common', 'Common_ListLabel'), // 查询结果
		},
	},
	setup() {
		return {
			style,
			getI18n,
		}
	},
})
</script>
