From 88fb1742461a25fac6b7a90137c1ed02e39d1a16 Mon Sep 17 00:00:00 2001 From: Plucky Date: Sat, 29 Oct 2022 21:48:28 +0800 Subject: [PATCH] u --- Cargo.toml | 2 +- readme.md | 2 -- src/views/forms.rs | 10 +++++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 331a2f7..7b574fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,5 +16,5 @@ tracing-wasm = "0" [profile.release] opt-level = 3 lto = true -strip = true +# strip = true diff --git a/readme.md b/readme.md index 52e16ed..9f32e44 100644 --- a/readme.md +++ b/readme.md @@ -6,8 +6,6 @@ by rust + dioxus + tailwindcss * install tailwind * run: trunk serve -参考vue项目: -https://github.com/wobsoriano/v-dashboard/ ![screenshot](static/screenshot.jpg) diff --git a/src/views/forms.rs b/src/views/forms.rs index 5858ee1..efc7992 100644 --- a/src/views/forms.rs +++ b/src/views/forms.rs @@ -1,7 +1,7 @@ /* * @Author: plucky * @Date: 2022-10-15 00:32:59 - * @LastEditTime: 2022-10-15 09:45:50 + * @LastEditTime: 2022-10-25 15:23:25 * @Description: */ @@ -145,6 +145,7 @@ fn Forms(cx: Scope)->Element{ r#for: "username","Username" } input { + id: "username", class: "w-full mt-2 border-gray-200 rounded-md focus:border-indigo-600 focus:ring focus:ring-opacity-40 focus:ring-indigo-500", r#type: "text", // "v-model: "user.username", @@ -160,9 +161,10 @@ fn Forms(cx: Scope)->Element{ div { label { class: "text-gray-700", - r#for: "emailAddress","Email Address" + r#for: "email","Email Address" } input { + id: "email", class: "w-full mt-2 border-gray-200 rounded-md focus:border-indigo-600 focus:ring focus:ring-opacity-40 focus:ring-indigo-500", r#type: "email", // "v-model": "user.email", @@ -178,6 +180,7 @@ fn Forms(cx: Scope)->Element{ r#for: "password","Password" } input { + id: "password", class: "w-full mt-2 border-gray-200 rounded-md focus:border-indigo-600 focus:ring focus:ring-opacity-40 focus:ring-indigo-500", r#type: "password", // "v-model": "user.password", @@ -190,9 +193,10 @@ fn Forms(cx: Scope)->Element{ div { label { class: "text-gray-700", - r#for: "passwordConfirmation","Password Confirmation" + r#for: "pwConfirm","Password Confirmation" } input { + id: "pwConfirm", class: "w-full mt-2 border-gray-200 rounded-md focus:border-indigo-600 focus:ring focus:ring-opacity-40 focus:ring-indigo-500", r#type: "password", // "v-model": "user.confirm",