feat: 更新 tutorial-form 组件,将切换类型从 toggle 修改为 checkbox,并添加 Pro Inputs 部分
This commit is contained in:
@ -140,7 +140,7 @@ onMounted(() => {
|
|||||||
v-if="attributes?.name"
|
v-if="attributes?.name"
|
||||||
:preserve="false"
|
:preserve="false"
|
||||||
name="confirmName"
|
name="confirmName"
|
||||||
type="toggle"
|
type="checkbox"
|
||||||
thumb-icon="star"
|
thumb-icon="star"
|
||||||
:value="true"
|
:value="true"
|
||||||
:label="`如果清空 name 输入框,这个确认框及其值将被移除。`"
|
: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>
|
<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>
|
</FormKit>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Reference in New Issue
Block a user