<template>
	<Dialog
		:options="{
			title: '标准化查询',
			size: '2xl'
		}"
		v-model="show"
	>
		<template #body-content>
			<pre
				class="mt-2 whitespace-pre-wrap rounded-lg border-2 border-gray-200 bg-gray-100 p-3 text-sm text-gray-700"
				>{{ query }}</pre
			>
			<div class="mt-2 flex text-sm">
				<span class="ml-auto">耗时: {{ duration.toFixed(2) }} 秒</span>
			</div>
		</template>
	</Dialog>
</template>

<script>
export default {
	props: ['query', 'duration']
};
</script>