feat: 更新 tutorial-form 组件,将切换类型从 toggle 修改为 checkbox,并添加 Pro Inputs 部分
All checks were successful
/ test (push) Successful in 13s
/ surge (push) Successful in 42s

This commit is contained in:
严浩
2024-11-21 15:07:48 +08:00
parent da379a71eb
commit c63ab547fe

View File

@ -140,7 +140,7 @@ onMounted(() => {
v-if="attributes?.name"
:preserve="false"
name="confirmName"
type="toggle"
type="checkbox"
thumb-icon="star"
:value="true"
:label="`如果清空 name 输入框,这个确认框及其值将被移除。`"
@ -218,6 +218,11 @@ onMounted(() => {
<pre class="font-mono text-sm p-4 bg-slate-100 mb-4 dark:bg-gray-900 ">{{ value }}</pre>
<div class="bg-gray-100 p-4 rounded-xl dark:bg-gray-800">
<h2 class="font-bold text-lg mb-4 color:gray-800 dark:text-white">Pro Inputs</h2>
<FormKit type="toggle" />
</div>
</FormKit>
</div>
</template>