Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/dialog/__tests__/dialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('Dialog', () => {
const { rerender } = render(
<Dialog
visible
actions={[{ content: '按钮1', className: 'test-btn', key: 'btn1' }, <Button key="btn2">按钮2</Button>]}
actions={[{ content: '按钮1', className: 'test-btn' }, <Button key="btn2">按钮2</Button>]}
onClose={onClose}
/>,
);
Expand Down Expand Up @@ -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');
Expand Down
6 changes: 3 additions & 3 deletions src/dialog/_example/multi-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const MultiStateUsage = React.memo(() => {
文字按钮
</Button>
<div className="btn-gap"></div>
<div className="diaog-demo__summary">水平基础按钮</div>
<div className="dialog-demo__summary">水平基础按钮</div>
<div className="btn-gap"></div>
<Button
variant="outline"
Expand All @@ -56,7 +56,7 @@ const MultiStateUsage = React.memo(() => {
水平基础按钮
</Button>
<div className="btn-gap"></div>
<div className="diaog-demo__summary">垂直基础按钮</div>
<div className="dialog-demo__summary">垂直基础按钮</div>
<div className="btn-gap"></div>
<Button
variant="outline"
Expand All @@ -77,7 +77,7 @@ const MultiStateUsage = React.memo(() => {
垂直基础按钮
</Button>
<div className="btn-gap"></div>
<div className="diaog-demo__summary">带关闭按钮的对话框</div>
<div className="dialog-demo__summary">带关闭按钮的对话框</div>
<div className="btn-gap"></div>
<Button
variant="outline"
Expand Down
3 changes: 1 addition & 2 deletions src/dialog/_example/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
--bg-color-demo: var(--td-bg-color-container);
}


.tdesign-mobile-demo {
.btn-gap {
width: 100%;
Expand All @@ -14,7 +13,7 @@
overflow: auto;
max-height: 100px;
}
.diaog-demo__summary{
.dialog-demo__summary {
font-size: 14px;
color: var(--text-secondary);
}
Expand Down
Loading