diff --git a/src/dialog/__tests__/dialog.test.tsx b/src/dialog/__tests__/dialog.test.tsx index e13f087c7..7705794e1 100644 --- a/src/dialog/__tests__/dialog.test.tsx +++ b/src/dialog/__tests__/dialog.test.tsx @@ -102,7 +102,7 @@ describe('Dialog', () => { const { rerender } = render( 按钮2]} + actions={[{ content: '按钮1', className: 'test-btn' }, ]} onClose={onClose} />, ); @@ -173,8 +173,8 @@ describe('Dialog', () => { }); }); instance.show(); - const diaog = document.querySelector(name); - expect(diaog).toBeTruthy(); + const dialog = document.querySelector(name); + expect(dialog).toBeTruthy(); const closeBtn = document.querySelector('.t-icon'); const confirmBtn = document.querySelector('.confirm-btn'); diff --git a/src/dialog/_example/multi-state.tsx b/src/dialog/_example/multi-state.tsx index 13a84b429..49db3cafb 100644 --- a/src/dialog/_example/multi-state.tsx +++ b/src/dialog/_example/multi-state.tsx @@ -36,7 +36,7 @@ const MultiStateUsage = React.memo(() => { 文字按钮
-
水平基础按钮
+
水平基础按钮
-
垂直基础按钮
+
垂直基础按钮
-
带关闭按钮的对话框
+
带关闭按钮的对话框
"`; -exports[`ssr snapshot test > ssr test src/dialog/_example/index.tsx 1`] = `"

Dialog 对话框

用于显示重要提示或请求用户进行重要操作,一种打断当前操作的模态视图。

01 组件类型

反馈类对话框

确认类对话框

输入对话框

带图片的对话框

02 组件状态

文字按钮

水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; +exports[`ssr snapshot test > ssr test src/dialog/_example/index.tsx 1`] = `"

Dialog 对话框

用于显示重要提示或请求用户进行重要操作,一种打断当前操作的模态视图。

01 组件类型

反馈类对话框

确认类对话框

输入对话框

带图片的对话框

02 组件状态

文字按钮

水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; exports[`ssr snapshot test > ssr test src/dialog/_example/input.tsx 1`] = `"
"`; -exports[`ssr snapshot test > ssr test src/dialog/_example/multi-state.tsx 1`] = `"
水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; +exports[`ssr snapshot test > ssr test src/dialog/_example/multi-state.tsx 1`] = `"
水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; exports[`ssr snapshot test > ssr test src/dialog/_example/plugin.tsx 1`] = `"
"`; diff --git a/test/snap/__snapshots__/ssr.test.jsx.snap b/test/snap/__snapshots__/ssr.test.jsx.snap index f0d6a6893..d84536bc4 100644 --- a/test/snap/__snapshots__/ssr.test.jsx.snap +++ b/test/snap/__snapshots__/ssr.test.jsx.snap @@ -182,11 +182,11 @@ exports[`ssr snapshot test > ssr test src/dialog/_example/feedback.tsx 1`] = `"< exports[`ssr snapshot test > ssr test src/dialog/_example/image-dialog.tsx 1`] = `"
"`; -exports[`ssr snapshot test > ssr test src/dialog/_example/index.tsx 1`] = `"

Dialog 对话框

用于显示重要提示或请求用户进行重要操作,一种打断当前操作的模态视图。

01 组件类型

反馈类对话框

确认类对话框

输入对话框

带图片的对话框

02 组件状态

文字按钮

水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; +exports[`ssr snapshot test > ssr test src/dialog/_example/index.tsx 1`] = `"

Dialog 对话框

用于显示重要提示或请求用户进行重要操作,一种打断当前操作的模态视图。

01 组件类型

反馈类对话框

确认类对话框

输入对话框

带图片的对话框

02 组件状态

文字按钮

水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; exports[`ssr snapshot test > ssr test src/dialog/_example/input.tsx 1`] = `"
"`; -exports[`ssr snapshot test > ssr test src/dialog/_example/multi-state.tsx 1`] = `"
水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; +exports[`ssr snapshot test > ssr test src/dialog/_example/multi-state.tsx 1`] = `"
水平基础按钮
垂直基础按钮
带关闭按钮的对话框
"`; exports[`ssr snapshot test > ssr test src/dialog/_example/plugin.tsx 1`] = `"
"`;