From 3867017d3ac3a0421f6a8bda87fe62c53bf92d44 Mon Sep 17 00:00:00 2001 From: Mikasa33 Date: Wed, 17 May 2023 22:15:00 +0800 Subject: [PATCH] fix(AddressEdit): hide border of the last cell (#11872) * fix(AddressEdit): hide border of the last cell * Update demo-ssr.spec.ts.snap * Update demo.spec.ts.snap * Update index.spec.ts.snap --- packages/vant/src/address-edit/AddressEdit.tsx | 1 + .../src/address-edit/test/__snapshots__/demo-ssr.spec.ts.snap | 2 +- .../vant/src/address-edit/test/__snapshots__/demo.spec.ts.snap | 2 +- .../vant/src/address-edit/test/__snapshots__/index.spec.ts.snap | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/vant/src/address-edit/AddressEdit.tsx b/packages/vant/src/address-edit/AddressEdit.tsx index 7eff84165..d07a07dc3 100644 --- a/packages/vant/src/address-edit/AddressEdit.tsx +++ b/packages/vant/src/address-edit/AddressEdit.tsx @@ -225,6 +225,7 @@ export default defineComponent({ v-slots={slots} v-show={!hideBottomFields.value} center + border={false} title={t('defaultAddress')} class={bem('default')} /> diff --git a/packages/vant/src/address-edit/test/__snapshots__/demo-ssr.spec.ts.snap b/packages/vant/src/address-edit/test/__snapshots__/demo-ssr.spec.ts.snap index a870a50e3..b26508cd2 100644 --- a/packages/vant/src/address-edit/test/__snapshots__/demo-ssr.spec.ts.snap +++ b/packages/vant/src/address-edit/test/__snapshots__/demo-ssr.spec.ts.snap @@ -114,7 +114,7 @@ exports[`should render demo and match snapshot 1`] = ` -
+
diff --git a/packages/vant/src/address-edit/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/address-edit/test/__snapshots__/demo.spec.ts.snap index c57555aca..74cdef9bb 100644 --- a/packages/vant/src/address-edit/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/address-edit/test/__snapshots__/demo.spec.ts.snap @@ -89,7 +89,7 @@ exports[`should render demo and match snapshot 1`] = `
-
+
Set as the default address diff --git a/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap b/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap index 16fddd4db..6d01b3012 100644 --- a/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap +++ b/packages/vant/src/address-edit/test/__snapshots__/index.spec.ts.snap @@ -194,7 +194,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
-
+
Set as the default address