From d7fc56e3f1f9ecaabffbf880f6d3008b77b591fa Mon Sep 17 00:00:00 2001 From: morance Date: Sat, 21 Oct 2023 19:44:54 +0800 Subject: [PATCH] feat(Field): required label css will active when rules contain required (#12376) * chore: required label css will active when rules contain required * chore: update snapshot --- .../test/__snapshots__/demo-ssr.spec.ts.snap | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/field/Field.tsx | 9 ++++++++- packages/vant/src/field/test/index.spec.js | 12 ++++++++++++ .../form/test/__snapshots__/demo-ssr.spec.ts.snap | 4 ++-- .../src/form/test/__snapshots__/demo.spec.ts.snap | 4 ++-- 6 files changed, 26 insertions(+), 7 deletions(-) diff --git a/packages/vant/src/contact-edit/test/__snapshots__/demo-ssr.spec.ts.snap b/packages/vant/src/contact-edit/test/__snapshots__/demo-ssr.spec.ts.snap index df9992547..33ec0b423 100644 --- a/packages/vant/src/contact-edit/test/__snapshots__/demo-ssr.spec.ts.snap +++ b/packages/vant/src/contact-edit/test/__snapshots__/demo-ssr.spec.ts.snap @@ -8,7 +8,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/packages/vant/src/contact-edit/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/contact-edit/test/__snapshots__/demo.spec.ts.snap index 8200abbb9..ef89c1148 100644 --- a/packages/vant/src/contact-edit/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/contact-edit/test/__snapshots__/demo.spec.ts.snap @@ -5,7 +5,7 @@ exports[`should render demo and match snapshot 1`] = `
-
+