Skip to content

Commit 5ad1ecd

Browse files
chore: remove duplicate classNames example code (ant-design#56994)
Co-authored-by: thinkasany <480968828@qq.com>
1 parent 9b03f7a commit 5ad1ecd

6 files changed

Lines changed: 0 additions & 341 deletions

File tree

components/drawer/__tests__/__snapshots__/demo-extend.test.tsx.snap

Lines changed: 0 additions & 199 deletions
Original file line numberDiff line numberDiff line change
@@ -88,205 +88,6 @@ Array [
8888

8989
exports[`renders components/drawer/demo/basic-right.tsx extend context correctly 2`] = `[]`;
9090

91-
exports[`renders components/drawer/demo/classNames.tsx extend context correctly 1`] = `
92-
Array [
93-
<div
94-
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small css-var-test-id"
95-
>
96-
<div
97-
class="ant-space-item"
98-
>
99-
<button
100-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
101-
type="button"
102-
>
103-
<span>
104-
Open
105-
</span>
106-
</button>
107-
</div>
108-
<div
109-
class="ant-space-item"
110-
>
111-
<button
112-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
113-
type="button"
114-
>
115-
<span>
116-
ConfigProvider
117-
</span>
118-
</button>
119-
</div>
120-
</div>,
121-
<div
122-
class="ant-drawer ant-drawer-right css-var-test-id ant-drawer-open ant-drawer-inline"
123-
tabindex="-1"
124-
>
125-
<div
126-
class="ant-drawer-mask acss-c0hvaj"
127-
/>
128-
<div
129-
class="ant-drawer-content-wrapper"
130-
style="width: 378px;"
131-
>
132-
<div
133-
aria-labelledby="test-id"
134-
aria-modal="true"
135-
class="ant-drawer-section acss-10412ne"
136-
role="dialog"
137-
style="box-shadow: -10px 0 10px #666;"
138-
>
139-
<div
140-
class="ant-drawer-header acss-1l0wu1y"
141-
style="border-bottom: 1px solid rgb(22, 119, 255);"
142-
>
143-
<div
144-
class="ant-drawer-header-title"
145-
>
146-
<button
147-
aria-label="Close"
148-
class="ant-drawer-close"
149-
type="button"
150-
>
151-
<span
152-
aria-label="close"
153-
class="anticon anticon-close"
154-
role="img"
155-
>
156-
<svg
157-
aria-hidden="true"
158-
data-icon="close"
159-
fill="currentColor"
160-
fill-rule="evenodd"
161-
focusable="false"
162-
height="1em"
163-
viewBox="64 64 896 896"
164-
width="1em"
165-
>
166-
<path
167-
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
168-
/>
169-
</svg>
170-
</span>
171-
</button>
172-
<div
173-
class="ant-drawer-title"
174-
id="test-id"
175-
>
176-
Basic Drawer
177-
</div>
178-
</div>
179-
</div>
180-
<div
181-
class="ant-drawer-body acss-pgpe64"
182-
style="font-size: 16px;"
183-
>
184-
<p>
185-
Some contents...
186-
</p>
187-
<p>
188-
Some contents...
189-
</p>
190-
<p>
191-
Some contents...
192-
</p>
193-
</div>
194-
<div
195-
class="ant-drawer-footer acss-r4s437"
196-
style="border-top: 1px solid rgb(217, 217, 217);"
197-
>
198-
Footer
199-
</div>
200-
</div>
201-
</div>
202-
</div>,
203-
<div
204-
class="ant-drawer ant-drawer-right css-var-test-id ant-drawer-open ant-drawer-inline"
205-
tabindex="-1"
206-
>
207-
<div
208-
class="ant-drawer-mask acss-c0hvaj"
209-
/>
210-
<div
211-
class="ant-drawer-content-wrapper"
212-
style="width: 378px;"
213-
>
214-
<div
215-
aria-labelledby="test-id"
216-
aria-modal="true"
217-
class="ant-drawer-section acss-10412ne"
218-
role="dialog"
219-
style="box-shadow: -10px 0 10px #666;"
220-
>
221-
<div
222-
class="ant-drawer-header acss-1l0wu1y"
223-
style="border-bottom: 1px solid rgb(22, 119, 255);"
224-
>
225-
<div
226-
class="ant-drawer-header-title"
227-
>
228-
<button
229-
aria-label="Close"
230-
class="ant-drawer-close"
231-
type="button"
232-
>
233-
<span
234-
aria-label="close"
235-
class="anticon anticon-close"
236-
role="img"
237-
>
238-
<svg
239-
aria-hidden="true"
240-
data-icon="close"
241-
fill="currentColor"
242-
fill-rule="evenodd"
243-
focusable="false"
244-
height="1em"
245-
viewBox="64 64 896 896"
246-
width="1em"
247-
>
248-
<path
249-
d="M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"
250-
/>
251-
</svg>
252-
</span>
253-
</button>
254-
<div
255-
class="ant-drawer-title"
256-
id="test-id"
257-
>
258-
Basic Drawer
259-
</div>
260-
</div>
261-
</div>
262-
<div
263-
class="ant-drawer-body acss-pgpe64"
264-
style="font-size: 16px;"
265-
>
266-
<p>
267-
Some contents...
268-
</p>
269-
<p>
270-
Some contents...
271-
</p>
272-
<p>
273-
Some contents...
274-
</p>
275-
</div>
276-
<div
277-
class="ant-drawer-footer acss-r4s437"
278-
style="border-top: 1px solid rgb(217, 217, 217);"
279-
>
280-
Footer
281-
</div>
282-
</div>
283-
</div>
284-
</div>,
285-
]
286-
`;
287-
288-
exports[`renders components/drawer/demo/classNames.tsx extend context correctly 2`] = `[]`;
289-
29091
exports[`renders components/drawer/demo/closable-placement.tsx extend context correctly 1`] = `
29192
Array [
29293
<button

components/drawer/__tests__/__snapshots__/demo.test.ts.snap

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,6 @@ exports[`renders components/drawer/demo/basic-right.tsx correctly 1`] = `
1111
</button>
1212
`;
1313

14-
exports[`renders components/drawer/demo/classNames.tsx correctly 1`] = `
15-
<div
16-
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small css-var-test-id"
17-
>
18-
<div
19-
class="ant-space-item"
20-
>
21-
<button
22-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
23-
type="button"
24-
>
25-
<span>
26-
Open
27-
</span>
28-
</button>
29-
</div>
30-
<div
31-
class="ant-space-item"
32-
>
33-
<button
34-
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"
35-
type="button"
36-
>
37-
<span>
38-
ConfigProvider
39-
</span>
40-
</button>
41-
</div>
42-
</div>
43-
`;
44-
4514
exports[`renders components/drawer/demo/closable-placement.tsx correctly 1`] = `
4615
<button
4716
class="ant-btn css-var-test-id ant-btn-primary ant-btn-color-primary ant-btn-variant-solid"

components/drawer/demo/classNames.md

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

components/drawer/demo/classNames.tsx

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

components/drawer/index.en-US.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ A Drawer is a panel that is typically overlaid on top of a page and slides in fr
3434
<code src="./demo/user-profile.tsx">Preview drawer</code>
3535
<code src="./demo/multi-level-drawer.tsx">Multi-level drawer</code>
3636
<code src="./demo/size.tsx">Preset size</code>
37-
<code src="./demo/classNames.tsx">Customize className for build-in module</code>
3837
<code src="./demo/mask.tsx">mask</code>
3938
<code src="./demo/closable-placement.tsx" version="5.28.0">Closable placement</code>
4039
<code src="./demo/style-class.tsx" version="6.0.0">Custom semantic dom styling</code>

components/drawer/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/multi-level-drawer.tsx">多层抽屉</code>
3636
<code src="./demo/size.tsx">预设宽度</code>
3737
<code src="./demo/mask.tsx">遮罩</code>
38-
<code src="./demo/classNames.tsx">自定义内部样式</code>
3938
<code src="./demo/closable-placement.tsx" version="5.28.0">关闭按钮位置</code>
4039
<code src="./demo/style-class.tsx" version="6.0.0">自定义语义结构的样式和类</code>
4140
<code src="./demo/config-provider.tsx" debug>ConfigProvider</code>

0 commit comments

Comments
 (0)