feat: 添加数据集信息表单组件,包含数据集名称和目标模型选择
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<script lang="ts">
|
||||
import { activeDatasetMeta } from '$lib/stores/dataset';
|
||||
import { onMount } from 'svelte';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
let name = $state('');
|
||||
|
||||
onMount(() => {
|
||||
name = get(activeDatasetMeta)?.name ?? '';
|
||||
});
|
||||
</script>
|
||||
|
||||
<label class="input w-fit in-focus-within:outline-0">
|
||||
<span class="label min-w-[10em]">Dataset Name</span>
|
||||
<input type="text" bind:value={name} class="min-w-[20em] focus:outline-0" />
|
||||
</label>
|
||||
Reference in New Issue
Block a user