Repository: ant-design/ant-design-mobile (ts)

Issue:
ErrorBlock 的description与title 渲染 0 时，未进入正确的节点
### Version of antd-mobile

5.32

### Operating system and its version

Android

### Browser and its version

last chorme

### Sandbox to reproduce

https://codesandbox.io/s/stoic-lamarr-rl6p65?file=/app.tsx&resolutionWidth=375&resolutionHeight=873

### What happened?

![image](https://github.com/ant-design/ant-design-mobile/assets/77056991/3d4ce9cf-57e5-4a98-b882-365a4dcb20ac)

0 在进行 && 判断时直接返回了0并渲染~

![image](https://github.com/ant-design/ant-design-mobile/assets/77056991/5572f3b4-9c71-4ac7-b2a7-c9d68783e58c)


### Relevant log output

_No response_

Pull request:
fix: error-block Normal display 0
close #6308

Patch:
diff --git a/src/components/error-block/create-error-block.tsx b/src/components/error-block/create-error-block.tsx
index 6b920c241..ef873e423 100644
--- a/src/components/error-block/create-error-block.tsx
+++ b/src/components/error-block/create-error-block.tsx
@@ -30,9 +30,10 @@ export function createErrorBlock(imageRecord: ImageRecord) {
     const props = mergeProps(defaultProps, p)
     const { locale } = useConfig()
     const contentPack = locale.ErrorBlock[props.status]
-    const des =
+    const desc =
       'description' in props ? props.description : contentPack.description
     const title = 'title' in props ? props.title : contentPack.title
+
     const image: ReactNode = props.image ?? imageRecord[props.status]
     const imageNode =
       typeof image === 'string' ? (
@@ -50,11 +51,12 @@ export function createErrorBlock(imageRecord: ImageRecord) {
       >
         <div className={`${classPrefix}-image`}>{imageNode}</div>
         <div className={`${classPrefix}-description`}>
-          {title && (
+          {![undefined, null].includes(title as null) && (
             <div className={`${classPrefix}-description-title`}>{title}</div>
           )}
-          {des && (
-            <div className={`${classPrefix}-description-subtitle`}>{des}</div>
+
+          {![undefined, null].includes(desc as null) && (
+            <div className={`${classPrefix}-description-subtitle`}>{desc}</div>
           )}
         </div>
 


Test patch:
diff --git a/src/components/error-block/tests/error-block.test.tsx b/src/components/error-block/tests/error-block.test.tsx
index 350e7f32b..c59376e20 100644
--- a/src/components/error-block/tests/error-block.test.tsx
+++ b/src/components/error-block/tests/error-block.test.tsx
@@ -60,4 +60,24 @@ describe('ErrorBlock', () => {
 
     expect(container).toMatchSnapshot()
   })
+  test('renders when description and title', async () => {
+    const title = 0
+    const description = 0
+
+    const { container } = render(
+      <ErrorBlock title={title} description={description} />
+    )
+
+    const titleElement = container.querySelector(
+      `.${classPrefix}-description-title`
+    )
+    expect(titleElement).toBeInTheDocument()
+    expect(titleElement?.textContent).toBe(title + '')
+
+    const descElement = container.querySelector(
+      `.${classPrefix}-description-subtitle`
+    )
+    expect(descElement).toBeInTheDocument()
+    expect(descElement?.textContent).toBe(description + '')
+  })
 })