feat: 移除 postcss-prefix-selector 依赖,更新样式以支持深色模式,优化 TutorialForm 和 ZodForm 组件
This commit is contained in:
@@ -6,6 +6,7 @@ import i18next from "i18next";
|
||||
import { zodI18nMap } from "zod-i18n-map";
|
||||
// Import your language translation files
|
||||
import translation from "zod-i18n-map/locales/zh-CN/zod.json";
|
||||
import { text } from '@formkit/inputs';
|
||||
|
||||
// lng and resources key depend on your locale.
|
||||
i18next.init({
|
||||
@@ -38,8 +39,8 @@ const [zodPlugin, submitHandler] = createZodPlugin(
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="bg-white rounded-xl shadow-xl p-8 mx-auto my-16 max-w-[450px]">
|
||||
<h1>Validation from Zod schema</h1>
|
||||
<div class="bg-white rounded-xl shadow-xl p-8 mx-auto my-16 max-w-[450px] dark:bg-gray-800 ">
|
||||
<h1 class="text-2xl font-bold mb-4 color:gray-800 dark:text-white">Validation from Zod schema</h1>
|
||||
<FormKit
|
||||
type="form"
|
||||
:plugins="[zodPlugin]"
|
||||
|
Reference in New Issue
Block a user