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

import PopupLayout from "@/layouts/PopupLayout.vue";
import ctxRef from "@/utils/ctx_ref.js"
import Context from "./createPopup.js"
import PostForm from "@/components/form/PostForm.vue";
import TInputText from "@/components/ui/TInputText.vue";
import SubmitButton from "@/components/form/SubmitButton.vue";
import DefinitionTable from "@/components/common/DefinitionTable.vue";

const ctx = ctxRef(new Context())

</script>

<template>
	<PopupLayout>
		<header>创建分组</header>
		<div class="select-container">
			<div class="text-[14px] font-[400] leading-[14px] text-[#313131]">分组名称<span class="text-red-500">*</span>
			</div>
			<div class="mt-[12px]">
				<PostForm action="$" @success="ctx.success">
					<TInputText name="name" maxlength="50" autofocus class="w-full" />
					<div class="flex justify-end mt-[20px]">
						<SubmitButton></SubmitButton>
					</div>
				</PostForm>
			</div>
		</div>
		<!-- <PostForm action="$" @success="ctx.success">
			<DefinitionTable>
				<tbody>
				<tr>
					<td class="title">分组名称 *</td>
					<td>
						<TInputText name="name" maxlength="50" autofocus class="w-full"/>
					</td>
				</tr>
				</tbody>
			</DefinitionTable>
			<SubmitButton></SubmitButton>
		</PostForm> -->
	</PopupLayout>
</template>

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