varletjs / varlet

A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.
https://varletjs.org/#/en-US/index
MIT License
4.9k stars 618 forks source link

feat: form component support zod #1751

Closed nonzzz closed 3 weeks ago

nonzzz commented 3 weeks ago

Checklist

Change information

All relative component was been done.

Issues

1750

Related Links

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
varlet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 5:15am
vercel[bot] commented 3 weeks ago

@nonzzz is attempting to deploy a commit to the varletjs Team on Vercel.

A member of the Team first needs to authorize it.

pkg-pr-new[bot] commented 3 weeks ago

Open in Stackblitz

@varlet/eslint-config

``` pnpm add https://pkg.pr.new/@varlet/eslint-config@1751 ```

@varlet/cli

``` pnpm add https://pkg.pr.new/@varlet/cli@1751 ```

@varlet/icons

``` pnpm add https://pkg.pr.new/@varlet/icons@1751 ```

@varlet/import-resolver

``` pnpm add https://pkg.pr.new/@varlet/import-resolver@1751 ```

@varlet/preset-tailwindcss

``` pnpm add https://pkg.pr.new/@varlet/preset-tailwindcss@1751 ```

@varlet/preset-unocss

``` pnpm add https://pkg.pr.new/@varlet/preset-unocss@1751 ```

@varlet/shared

``` pnpm add https://pkg.pr.new/@varlet/shared@1751 ```

@varlet/touch-emulator

``` pnpm add https://pkg.pr.new/@varlet/touch-emulator@1751 ```

@varlet/ui

``` pnpm add https://pkg.pr.new/@varlet/ui@1751 ```

@varlet/use

``` pnpm add https://pkg.pr.new/@varlet/use@1751 ```

@varlet/vite-plugins

``` pnpm add https://pkg.pr.new/@varlet/vite-plugins@1751 ```

commit: f4aa625

nonzzz commented 3 weeks ago

@haoziqaq Most of task has been done. But when i check the uploader component, i notice useValidation accept pass an api param, However, the current modification does not support uploader

haoziqaq commented 3 weeks ago

Zod validation does not require support for apis args, Thanks for the pr!

nonzzz commented 3 weeks ago

All of work is done. I think may i fallback uploader component?

chouchouji commented 3 weeks ago

Can you add examples about zod in example folder for autoComplete and uploader component ?

chouchouji commented 3 weeks ago

Please update rules type in types folder for these form component. Thanks for your great work!