Skip to content

Commit 852ed68

Browse files
authored
docs: remove duplicate demo classNames (ant-design#56991)
* docs: remove unused classNames demo for Modal component * chore: update * chore: rm
1 parent 47159dd commit 852ed68

6 files changed

Lines changed: 0 additions & 183 deletions

File tree

components/modal/__tests__/__snapshots__/demo-extend.test.ts.snap

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -39,39 +39,6 @@ exports[`renders components/modal/demo/button-props.tsx extend context correctly
3939

4040
exports[`renders components/modal/demo/button-props.tsx extend context correctly 2`] = `[]`;
4141

42-
exports[`renders components/modal/demo/classNames.tsx extend context correctly 1`] = `
43-
<div
44-
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small css-var-test-id"
45-
>
46-
<div
47-
class="ant-space-item"
48-
>
49-
<button
50-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
51-
type="button"
52-
>
53-
<span>
54-
Open Modal
55-
</span>
56-
</button>
57-
</div>
58-
<div
59-
class="ant-space-item"
60-
>
61-
<button
62-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
63-
type="button"
64-
>
65-
<span>
66-
ConfigProvider
67-
</span>
68-
</button>
69-
</div>
70-
</div>
71-
`;
72-
73-
exports[`renders components/modal/demo/classNames.tsx extend context correctly 2`] = `[]`;
74-
7542
exports[`renders components/modal/demo/component-token.tsx extend context correctly 1`] = `
7643
<div
7744
style="display: flex; flex-direction: column; row-gap: 16px;"

components/modal/__tests__/__snapshots__/demo.test.tsx.snap

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,6 @@ exports[`renders components/modal/demo/button-props.tsx correctly 1`] = `
3333
</button>
3434
`;
3535

36-
exports[`renders components/modal/demo/classNames.tsx correctly 1`] = `
37-
<div
38-
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small css-var-test-id"
39-
>
40-
<div
41-
class="ant-space-item"
42-
>
43-
<button
44-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
45-
type="button"
46-
>
47-
<span>
48-
Open Modal
49-
</span>
50-
</button>
51-
</div>
52-
<div
53-
class="ant-space-item"
54-
>
55-
<button
56-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
57-
type="button"
58-
>
59-
<span>
60-
ConfigProvider
61-
</span>
62-
</button>
63-
</div>
64-
</div>
65-
`;
66-
6736
exports[`renders components/modal/demo/component-token.tsx correctly 1`] = `
6837
<div
6938
style="display:flex;flex-direction:column;row-gap:16px"

components/modal/demo/classNames.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

components/modal/demo/classNames.tsx

Lines changed: 0 additions & 110 deletions
This file was deleted.

components/modal/index.en-US.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Additionally, if you need to show a simple confirmation dialog, you can use [`Ap
3434
<code src="./demo/width.tsx">To customize the width of modal</code>
3535
<code src="./demo/static-info.tsx">Static Method</code>
3636
<code src="./demo/confirm.tsx">Static confirmation</code>
37-
<code src="./demo/classNames.tsx">Customize className for build-in module</code>
3837
<code src="./demo/confirm-router.tsx">destroy confirmation modal dialog</code>
3938
<code src="./demo/style-class.tsx" version="6.0.0">Custom semantic dom styling</code>
4039
<code src="./demo/nested.tsx" debug>Nested Modal</code>

components/modal/index.zh-CN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ demo:
3535
<code src="./demo/width.tsx">自定义模态的宽度</code>
3636
<code src="./demo/static-info.tsx">静态方法</code>
3737
<code src="./demo/confirm.tsx">静态确认对话框</code>
38-
<code src="./demo/classNames.tsx">自定义内部模块 className</code>
3938
<code src="./demo/confirm-router.tsx">销毁确认对话框</code>
4039
<code src="./demo/style-class.tsx" version="6.0.0">自定义语义结构的样式和类</code>
4140
<code src="./demo/nested.tsx" debug>嵌套弹框</code>

0 commit comments

Comments
 (0)