<script setup>
// Copyright 2024 FlexCDN root@flexcdn.cn. All rights reserved. Official site: https://flexcdn.cn .

import ctxRef from "@/utils/ctx_ref.js"
import Context from "./deleteDomains.js"
import Menu from "@/views/ns/domains/batch/@menu.vue";
import TTextarea from "@/components/ui/TTextarea.vue";
import SubmitButton from "@/components/form/SubmitButton.vue";
import PostForm from "@/components/form/PostForm.vue";
import DefinitionTable from "@/components/common/DefinitionTable.vue";

const ctx = ctxRef(new Context())

</script>

<template>
	<Menu :ctx="ctx"></Menu>

	<PostForm action="$" @success="ctx.success">
		<DefinitionTable>
			<tbody>
			<tr>
				<td class="title">域名 *</td>
				<td>
					<TTextarea name="names" rows="15" autofocus placeholder="每行一个域名" class="w-full"></TTextarea>
				</td>
			</tr>
			</tbody>
		</DefinitionTable>
		<SubmitButton>批量删除</SubmitButton>
	</PostForm>
</template>

<style lang="postcss" scoped>
</style>