level_0
int64
0
10k
index
int64
0
0
repo_id
stringlengths
22
152
file_path
stringlengths
41
203
content
stringlengths
11
11.5M
8,120
0
petrpan-code/ant-design/ant-design-mobile/src/components/swiper/tests
petrpan-code/ant-design/ant-design-mobile/src/components/swiper/tests/__snapshots__/swiper.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Swiper loop 1`] = ` <div> <div class="adm-swiper adm-swiper-horizontal" style="--slide-size: 100%; --track-offset: 0%;" > <div class="adm-swiper-track adm-swiper-track-allow-touch-move" > <div class="adm-swiper-track-inner" > <div class="adm-swiper-slide" style="left: -0%; transform: translate3d(100%,0,0);" > <div class="adm-swiper-item" > <div style="height: 120px;" > 1 </div> </div> </div> <div class="adm-swiper-slide" style="left: -100%; transform: translate3d(-100%,0,0);" > <div class="adm-swiper-item" > <div style="height: 120px;" > 2 </div> </div> </div> <div class="adm-swiper-slide adm-swiper-slide-active" style="left: -200%; transform: none;" > <div class="adm-swiper-item" > <div style="height: 120px;" > 3 </div> </div> </div> </div> </div> <div class="adm-swiper-indicator" > <div class="adm-page-indicator adm-page-indicator-horizontal adm-page-indicator-color-primary" > <div class="adm-page-indicator-dot" /> <div class="adm-page-indicator-dot" /> <div class="adm-page-indicator-dot adm-page-indicator-dot-active" /> </div> </div> </div> </div> `; exports[`Swiper loop 2`] = ` <div> <div class="adm-swiper adm-swiper-horizontal" style="--slide-size: 100%; --track-offset: 0%;" > <div class="adm-swiper-track adm-swiper-track-allow-touch-move" > <div class="adm-swiper-track-inner" > <div class="adm-swiper-slide adm-swiper-slide-active" style="left: -0%; transform: none;" > <div class="adm-swiper-item" > <div style="height: 120px;" > 1 </div> </div> </div> <div class="adm-swiper-slide" style="left: -100%; transform: translate3d(100%,0,0);" > <div class="adm-swiper-item" > <div style="height: 120px;" > 2 </div> </div> </div> <div class="adm-swiper-slide" style="left: -200%; transform: translate3d(-100%,0,0);" > <div class="adm-swiper-item" > <div style="height: 120px;" > 3 </div> </div> </div> </div> </div> <div class="adm-swiper-indicator" > <div class="adm-page-indicator adm-page-indicator-horizontal adm-page-indicator-color-primary" > <div class="adm-page-indicator-dot adm-page-indicator-dot-active" /> <div class="adm-page-indicator-dot" /> <div class="adm-page-indicator-dot" /> </div> </div> </div> </div> `;
8,129
0
petrpan-code/ant-design/ant-design-mobile/src/components/switch
petrpan-code/ant-design/ant-design-mobile/src/components/switch/tests/switch.test.tsx
import React, { useState } from 'react' import { fireEvent, render, testA11y, waitFor, screen, sleep, act, } from 'testing' import Switch from '..' const classPrefix = `adm-switch` describe('Switch', () => { test('a11y', async () => { await testA11y(<Switch />) }) test('renders with disabled', () => { render(<Switch disabled />) expect(screen.getByRole('switch')).toHaveClass(`${classPrefix}-disabled`) }) test('controlled mode', async () => { const App = () => { const [checked, setChecked] = useState(false) return ( <Switch checked={checked} onChange={checked => { setChecked(checked) }} /> ) } render(<App />) const switchEl = screen.getByRole('switch') fireEvent.click(switchEl) expect(switchEl).toHaveClass(`${classPrefix}-checked`) fireEvent.click(switchEl) expect(switchEl).not.toHaveClass(`${classPrefix}-checked`) }) test('`beforeChange` should not work with loading', async () => { const beforeChange = jest.fn() render(<Switch loading beforeChange={beforeChange} />) const switchEl = screen.getByRole('switch') fireEvent.click(switchEl) expect( switchEl.querySelectorAll(`.${classPrefix}-spin-icon`).length ).toBeTruthy() expect(beforeChange).not.toBeCalled() }) test('`beforeChange` in async mode', async () => { jest.useFakeTimers() const App = () => { const beforeChange = (): Promise<void> => { return new Promise(resolve => { setTimeout(() => { resolve() }, 500) }) } return <Switch beforeChange={beforeChange} /> } render(<App />) const switchEl = screen.getByRole('switch') fireEvent.click(switchEl) expect(switchEl).toHaveClass(`${classPrefix}-disabled`) jest.runAllTimers() await waitFor(() => { expect(switchEl).toHaveClass(`${classPrefix}-checked`) }) jest.useRealTimers() }) test('`onChange` returns a Promise', async () => { jest.useFakeTimers() const App = () => { const [checked, setChecked] = useState(false) return ( <Switch checked={checked} onChange={async val => { await sleep(1000) setChecked(val) }} /> ) } render(<App />) const switchEl = screen.getByRole('switch') fireEvent.click(switchEl) expect(switchEl).toHaveClass(`${classPrefix}-disabled`) await act(async () => { jest.runAllTimers() }) expect(switchEl).toHaveClass(`${classPrefix}-checked`) jest.useRealTimers() }) })
8,138
0
petrpan-code/ant-design/ant-design-mobile/src/components/tab-bar
petrpan-code/ant-design/ant-design-mobile/src/components/tab-bar/tests/tab-bar.test.tsx
import React, { useState } from 'react' import { render, testA11y, fireEvent } from 'testing' import { AppOutline, MessageOutline, MessageFill, UnorderedListOutline, UserOutline, } from 'antd-mobile-icons' import TabBar from '..' import { Badge } from 'antd-mobile' const classPrefix = `adm-tab-bar` const tabs = [ { key: 'home', title: 'Home', icon: <AppOutline />, badge: Badge.dot, }, { key: 'todo', title: 'Todo', icon: <UnorderedListOutline />, badge: '5', }, { key: 'message', title: 'Message', icon: (active: boolean) => (active ? <MessageFill /> : <MessageOutline />), badge: '99+', }, { key: 'personalCenter', title: 'PersonalCenter', icon: <UserOutline />, }, ] describe('TabBar', () => { test('a11y', async () => { await testA11y( <TabBar> {tabs.map(item => ( <TabBar.Item key={item.key} icon={item.icon} title={item.title} /> ))} </TabBar> ) }) test('basic usage', async () => { const onChange = jest.fn() const { getByText } = render( <TabBar onChange={onChange} defaultActiveKey='personalCenter'> {tabs.map(item => ( <TabBar.Item key={item.key} icon={item.icon} title={item.title} badge={item.badge} /> ))} </TabBar> ) expect(getByText('PersonalCenter').parentElement).toHaveClass( `${classPrefix}-item-active` ) fireEvent.click(getByText('Todo')) expect(getByText('Todo').parentElement).toHaveClass( `${classPrefix}-item-active` ) expect(onChange).toBeCalledWith('todo') }) test('controlled mode', async () => { const App = () => { const [activeKey, setActiveKey] = useState('todo') return ( <TabBar activeKey={activeKey} onChange={setActiveKey}> {tabs.map(item => ( <TabBar.Item key={item.key} icon={item.icon} title={item.title} /> ))} </TabBar> ) } const { getByText } = render(<App />) expect(getByText('Todo').parentElement).toHaveClass( `${classPrefix}-item-active` ) fireEvent.click(getByText('Message')) expect(getByText('Message').parentElement).toHaveClass( `${classPrefix}-item-active` ) }) test('safe area', async () => { render( <TabBar safeArea> {tabs.map(item => ( <TabBar.Item key={item.key} icon={item.icon} title={item.title} /> ))} </TabBar> ) const el = document.querySelectorAll(`.adm-safe-area`)[0] expect(el).toBeInTheDocument() }) test('the children should be react valid element', async () => { render(<TabBar>{1}</TabBar>) expect( document.querySelectorAll(`.${classPrefix}-wrap`)[0] ).toBeEmptyDOMElement() }) test('item content', async () => { const { container } = render( <TabBar> <TabBar.Item key='icon' icon={<AppOutline />} /> <TabBar.Item key='title' title='title' /> <TabBar.Item key='empty' /> <TabBar.Item /> </TabBar> ) expect(container).toMatchSnapshot() }) })
8,139
0
petrpan-code/ant-design/ant-design-mobile/src/components/tab-bar/tests
petrpan-code/ant-design/ant-design-mobile/src/components/tab-bar/tests/__snapshots__/tab-bar.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`TabBar item content 1`] = ` <div> <div class="adm-tab-bar" > <div class="adm-tab-bar-wrap" > <div class="adm-tab-bar-item adm-tab-bar-item-active" > <div class="adm-badge-wrapper" > <div class="adm-tab-bar-item-icon" > <svg class="antd-mobile-icon" height="1em" style="vertical-align: -0.125em;" viewBox="0 0 48 48" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <g fill="none" fill-rule="evenodd" id="AppOutline-AppOutline" stroke="none" stroke-width="1" > <g id="AppOutline-编组" > <rect fill="#FFFFFF" height="48" id="AppOutline-矩形" opacity="0" width="48" x="0" y="0" /> <path d="M38.6673097,11.5277497 L27.3505965,4.90817356 C25.2828181,3.69727548 22.7306145,3.69727548 20.6583507,4.90817356 L9.33715206,11.5277497 C7.2693737,12.7386478 6,14.9675973 6,17.3804238 L6,30.6195762 C6,33.0324027 7.27385912,35.265837 9.33715206,36.4722503 L20.6538653,43.0918264 C22.7261291,44.3027245 25.2738473,44.3027245 27.3461111,43.0918264 L38.6628243,36.4722503 C40.7306027,35.265837 41.9999882,33.0324027 41.9999882,30.6195762 L41.9999882,17.3849086 C42.0044618,14.9675973 40.7350881,12.7386478 38.6673097,11.5277497 Z M8.62397037,17.3804238 C8.62397037,15.8914677 9.40443335,14.5191165 10.673807,13.7746384 L21.9591223,7.16851665 C23.2240106,6.42852338 24.7804512,6.42852338 26.0453394,7.16851665 L32.4908872,10.9447247 L12.9479147,22.3764996 L8.62397037,19.8470681 L8.62397037,17.3804238 Z M23.7398339,19.0622267 L32.4729455,24.1704227 L24.2466863,28.9826214 L15.5135746,23.8744254 L23.7398339,19.0622267 L23.7398339,19.0622267 Z M10.673807,34.1984527 C9.40443335,33.4584595 8.62397037,32.0816235 8.62397037,30.5926673 L8.62397037,22.8474044 L21.6810263,30.485032 L13.0017397,35.5618343 L10.673807,34.1984527 L10.673807,34.1984527 Z M39.3804914,30.5926673 C39.3804914,32.0816235 38.6000284,33.4539747 37.3306547,34.1984527 L26.0453394,40.8045745 C24.7804512,41.5445678 23.2240106,41.5445678 21.9591223,40.8045745 L15.5629142,37.0597601 L35.0386054,25.6683485 L39.3804914,28.2067496 L39.3804914,30.5926673 L39.3804914,30.5926673 Z M39.3804914,25.2108981 L35.6486224,23.0267967 L26.3054938,17.5643009 L35.0565471,12.4471353 L37.3306547,13.7791232 C38.6000284,14.5191165 39.3804914,15.8959525 39.3804914,17.3849086 L39.3804914,25.2108981 L39.3804914,25.2108981 Z" fill="currentColor" fill-rule="nonzero" id="AppOutline-形状" /> </g> </g> </svg> </div> </div> </div> <div class="adm-tab-bar-item" > <div class="adm-badge-wrapper" > <div class="adm-tab-bar-item-title" > title </div> </div> </div> <div class="adm-tab-bar-item" /> </div> </div> </div> `;
8,154
0
petrpan-code/ant-design/ant-design-mobile/src/components/tabs
petrpan-code/ant-design/ant-design-mobile/src/components/tabs/tests/tabs.test.tsx
import React, { useState } from 'react' import { render, testA11y, fireEvent } from 'testing' import Tabs, { TabsProps } from '..' const classPrefix = `adm-tabs` describe('Tabs', () => { const Basic = (props: TabsProps) => ( <Tabs {...props}> <Tabs.Tab title='fruits' key='fruits'> Apple </Tabs.Tab> <Tabs.Tab title='vegetables' key='vegetables'> Tomato </Tabs.Tab> <Tabs.Tab title='animals' key='animals'> Ant </Tabs.Tab> </Tabs> ) test('a11y', async () => { await testA11y(<Basic />) }) test('basic usage', async () => { const { getByText } = render(<Basic defaultActiveKey='animals' />) expect(getByText('Ant')).toBeVisible() expect(getByText('animals')).toHaveClass(`${classPrefix}-tab-active`) fireEvent.click(getByText('vegetables')) expect(getByText('Tomato')).toBeVisible() expect(getByText('vegetables')).toHaveClass(`${classPrefix}-tab-active`) }) test('controlled mode', async () => { const App = () => { const [activeKey, setActiveKey] = useState<string | null>(null) return <Basic activeKey={activeKey} onChange={key => setActiveKey(key)} /> } const { getByText } = render(<App />) expect(document.querySelectorAll(`.${classPrefix}-tab-active`).length).toBe( 0 ) fireEvent.click(getByText('vegetables')) expect(getByText('Tomato')).toBeVisible() }) test('disabled tab', async () => { const onChange = jest.fn() const { getByText } = render( <Tabs onChange={onChange}> <Tabs.Tab title='fruits' key='fruits' /> <Tabs.Tab title='vegetables' key='vegetables' /> <Tabs.Tab title='animals' key='animals' disabled /> </Tabs> ) expect(getByText('animals')).toHaveClass(`${classPrefix}-tab-disabled`) fireEvent.click(getByText('animals')) expect(onChange).not.toBeCalled() }) test('`activeLineMode` prop', async () => { const { container: fullContainer } = render(<Basic activeLineMode='full' />) const { container: fixedContainer } = render( <Basic activeLineMode='fixed' /> ) expect(fullContainer).toMatchSnapshot() expect(fixedContainer).toMatchSnapshot() }) test('not stretch', async () => { const { getByTestId } = render(<Basic stretch={false} data-testid='tabs' />) expect(getByTestId('tabs')).not.toHaveClass( `${classPrefix}-tab-wrapper-stretch` ) }) test('render the DOM structure when hidden', async () => { const { queryByText } = render( <Tabs> <Tabs.Tab title='fruits' key='fruits'> Apple </Tabs.Tab> <Tabs.Tab title='vegetables' key='vegetables'> Tomato </Tabs.Tab> <Tabs.Tab title='animals' key='animals' forceRender> Ant </Tabs.Tab> </Tabs> ) expect(queryByText('Ant')).toBeInTheDocument() }) test('unmount content when not visible', async () => { const { getByText, queryByText } = render( <Tabs> <Tabs.Tab title='fruits' key='fruits' destroyOnClose> Apple </Tabs.Tab> <Tabs.Tab title='vegetables' key='vegetables'> Tomato </Tabs.Tab> <Tabs.Tab title='animals' key='animals'> Ant </Tabs.Tab> </Tabs> ) expect(queryByText('Apple')).toBeInTheDocument() fireEvent.click(getByText('vegetables')) expect(queryByText('Apple')).not.toBeInTheDocument() }) test('RTL render component should be rendered correctly in RTL direction', async () => { const { container } = render( <Tabs direction='rtl'> <Tabs.Tab title='fruits' key='fruits'> Apple </Tabs.Tab> <Tabs.Tab title='vegetables' key='vegetables'> Tomato </Tabs.Tab> </Tabs> ) expect(container).toMatchSnapshot() }) })
8,155
0
petrpan-code/ant-design/ant-design-mobile/src/components/tabs/tests
petrpan-code/ant-design/ant-design-mobile/src/components/tabs/tests/__snapshots__/tabs.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Tabs \`activeLineMode\` prop 1`] = ` <div> <div class="adm-tabs" style="direction: ltr;" > <div class="adm-tabs-header" > <div class="adm-tabs-header-mask adm-tabs-header-mask-left" style="opacity: 0;" /> <div class="adm-tabs-header-mask adm-tabs-header-mask-right" style="opacity: 0;" /> <div class="adm-tabs-tab-list" role="tablist" > <div class="adm-tabs-tab-line" style="width: 0px; transform: none;" /> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="true" class="adm-tabs-tab adm-tabs-tab-active" role="tab" > fruits </div> </div> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="false" class="adm-tabs-tab" role="tab" > vegetables </div> </div> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="false" class="adm-tabs-tab" role="tab" > animals </div> </div> </div> </div> <div class="adm-tabs-content" style="display: block;" > Apple </div> </div> </div> `; exports[`Tabs \`activeLineMode\` prop 2`] = ` <div> <div class="adm-tabs" style="direction: ltr;" > <div class="adm-tabs-header" > <div class="adm-tabs-header-mask adm-tabs-header-mask-left" style="opacity: 0;" /> <div class="adm-tabs-header-mask adm-tabs-header-mask-right" style="opacity: 0;" /> <div class="adm-tabs-tab-list" role="tablist" > <div class="adm-tabs-tab-line" style="transform: none;" /> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="true" class="adm-tabs-tab adm-tabs-tab-active" role="tab" > fruits </div> </div> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="false" class="adm-tabs-tab" role="tab" > vegetables </div> </div> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="false" class="adm-tabs-tab" role="tab" > animals </div> </div> </div> </div> <div class="adm-tabs-content" style="display: block;" > Apple </div> </div> </div> `; exports[`Tabs RTL render component should be rendered correctly in RTL direction 1`] = ` <div> <div class="adm-tabs" style="direction: rtl;" > <div class="adm-tabs-header" > <div class="adm-tabs-header-mask adm-tabs-header-mask-left" style="opacity: 0;" /> <div class="adm-tabs-header-mask adm-tabs-header-mask-right" style="opacity: 0;" /> <div class="adm-tabs-tab-list" role="tablist" > <div class="adm-tabs-tab-line" style="width: 0px; transform: none;" /> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="true" class="adm-tabs-tab adm-tabs-tab-active" role="tab" > fruits </div> </div> <div class="adm-tabs-tab-wrapper adm-tabs-tab-wrapper-stretch" > <div aria-selected="false" class="adm-tabs-tab" role="tab" > vegetables </div> </div> </div> </div> <div class="adm-tabs-content" style="display: block;" > Apple </div> </div> </div> `;
8,162
0
petrpan-code/ant-design/ant-design-mobile/src/components/tag
petrpan-code/ant-design/ant-design-mobile/src/components/tag/tests/tag.test.tsx
import React from 'react' import { render, testA11y } from 'testing' import Tag from '..' describe('Tag', () => { test('a11y', async () => { await testA11y(<Tag>tag</Tag>) }) test('renders with color', async () => { const { container } = render( <> <Tag color='#primary'>primary</Tag> <Tag color='#2db7f5'>#2db7f5</Tag> </> ) expect(container).toMatchSnapshot() }) test('renders with fill', async () => { const { container } = render( <> <Tag fill='outline'>outline</Tag> <Tag fill='solid'>solid</Tag> </> ) expect(container).toMatchSnapshot() }) })
8,163
0
petrpan-code/ant-design/ant-design-mobile/src/components/tag/tests
petrpan-code/ant-design/ant-design-mobile/src/components/tag/tests/__snapshots__/tag.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Tag renders with color 1`] = ` <div> <span class="adm-tag" style="--border-color: #primary; --text-color: #ffffff; --background-color: #primary;" > primary </span> <span class="adm-tag" style="--border-color: #2db7f5; --text-color: #ffffff; --background-color: #2db7f5;" > #2db7f5 </span> </div> `; exports[`Tag renders with fill 1`] = ` <div> <span class="adm-tag" style="--border-color: var(--adm-color-text-secondary, #666666); --text-color: var(--adm-color-text-secondary, #666666); --background-color: transparent;" > outline </span> <span class="adm-tag" style="--border-color: var(--adm-color-text-secondary, #666666); --text-color: #ffffff; --background-color: var(--adm-color-text-secondary, #666666);" > solid </span> </div> `;
8,170
0
petrpan-code/ant-design/ant-design-mobile/src/components/text-area
petrpan-code/ant-design/ant-design-mobile/src/components/text-area/tests/text-area.test.tsx
import React, { createRef } from 'react' import { render, fireEvent, act } from 'testing' import TextArea, { TextAreaRef } from '..' const classPrefix = 'adm-text-area' const lineHeight = 25 describe('TextArea', () => { const originGetComputedStyle = window.getComputedStyle beforeAll(() => { window.getComputedStyle = el => { const style = originGetComputedStyle(el) style.lineHeight = `${lineHeight}px` return style } }) afterAll(() => { window.getComputedStyle = originGetComputedStyle }) test('should works with `value={null}`', async () => { console.error = jest.fn() const renderer = render(<TextArea value={null as any} />) expect(renderer.container).toMatchSnapshot() expect(renderer.container.getElementsByTagName('textarea').length).toBe(1) expect(console.error).toBeCalled() }) test('auto size', () => { const minRows = 3 const maxRows = 5 const { getByRole } = render(<TextArea autoSize={{ minRows, maxRows }} />) const textarea = getByRole('textbox') const hiddenTextarea = document.querySelector( `.${classPrefix}-element-hidden` )! // mock Object.defineProperty(hiddenTextarea, 'scrollHeight', { value: lineHeight * 2, configurable: true, }) fireEvent.change(textarea, { target: { value: '1' } }) expect(textarea.style.height).toBe(`${lineHeight * minRows}px`) Object.defineProperty(hiddenTextarea, 'scrollHeight', { value: lineHeight * 6, }) fireEvent.change(textarea, { target: { value: '2' } }) expect(textarea.style.height).toBe(`${lineHeight * maxRows}px`) }) test('show count', () => { render(<TextArea defaultValue='abc' showCount />) const count = document.querySelectorAll(`.${classPrefix}-count`)[0] expect(count).toBeInTheDocument() expect(count).toHaveTextContent('3') }) test('limit count', () => { const { getByRole } = render( <TextArea defaultValue='abc' maxLength={5} showCount /> ) const textarea = getByRole('textbox') as HTMLTextAreaElement const count = document.querySelectorAll(`.${classPrefix}-count`)[0] fireEvent.change(textarea, { target: { value: 'abcdef' } }) expect(textarea.value).toBe('abcde') expect(count).toHaveTextContent('5/5') }) test('limit count with emojis', () => { const { getByRole } = render( <TextArea defaultValue='🏴󠁧󠁢󠁥󠁮󠁧󠁿🏴󠁵󠁳󠁷󠁡󠁿🏴' maxLength={3} showCount /> ) const textarea = getByRole('textbox') as HTMLTextAreaElement const count = document.querySelectorAll(`.${classPrefix}-count`)[0] fireEvent.change(textarea, { target: { value: '🏴󠁧󠁢󠁥󠁮󠁧󠁿🏴󠁵󠁳󠁷󠁡󠁿🏴🏴󠁵󠁳󠁴󠁸󠁿' } }) expect(textarea.value).toBe('🏴󠁧󠁢󠁥󠁮󠁧󠁿🏴󠁵󠁳󠁷󠁡󠁿🏴') expect(count).toHaveTextContent('3/3') }) test('should exceed maxLength when use IME', () => { const onChange = jest.fn() const { getByRole } = render(<TextArea maxLength={1} onChange={onChange} />) const textarea = getByRole('textbox') fireEvent.compositionStart(textarea) fireEvent.change(textarea, { target: { value: 'chuan' } }) fireEvent.compositionEnd(textarea, { target: { value: '川' } }) expect(onChange).toHaveBeenLastCalledWith('川') }) test('imperative way', () => { const ref = createRef<TextAreaRef>() const { getByRole } = render(<TextArea ref={ref} />) const textarea = getByRole('textbox') as HTMLTextAreaElement ref.current?.focus() expect(textarea).toHaveFocus() ref.current?.blur() expect(textarea).not.toHaveFocus() fireEvent.change(textarea, { target: { value: 'abc' } }) expect(textarea.value).toBe('abc') act(() => ref.current?.clear()) expect(textarea.value).toBe('') expect(ref.current?.nativeElement).toBeDefined() }) test('render custom count', () => { const { getByText } = render( <TextArea value='abc' maxLength={5} showCount={(valueLength, maxLength) => ( <div> ({valueLength},{maxLength}) </div> )} /> ) expect(getByText('(3,5)')).toBeInTheDocument() }) test('set rows should be work', () => { const { getByRole } = render(<TextArea rows={1} autoSize />) const hiddenTextarea = document.querySelector( `.${classPrefix}-element-hidden` )! const textarea = getByRole('textbox') expect(textarea).toHaveAttribute('rows', '1') expect(hiddenTextarea).toHaveAttribute('rows', '1') }) test('rows should be the minRows when rows < minRows', () => { const { getByRole } = render(<TextArea autoSize={{ minRows: 3 }} />) const textarea = getByRole('textbox') expect(textarea).toHaveAttribute('rows', '3') }) test('rows should be the maxRows when rows > maxRows', () => { const { getByRole } = render(<TextArea autoSize={{ maxRows: 1 }} />) const textarea = getByRole('textbox') expect(textarea).toHaveAttribute('rows', '1') }) })
8,171
0
petrpan-code/ant-design/ant-design-mobile/src/components/text-area/tests
petrpan-code/ant-design/ant-design-mobile/src/components/text-area/tests/__snapshots__/text-area.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`TextArea should works with \`value={null}\` 1`] = ` <div> <div class="adm-text-area" > <textarea class="adm-text-area-element" rows="2" /> </div> </div> `;
8,180
0
petrpan-code/ant-design/ant-design-mobile/src/components/toast
petrpan-code/ant-design/ant-design-mobile/src/components/toast/tests/toast.test.tsx
import React, { useRef } from 'react' import { render, fireEvent, waitFor, waitForElementToBeRemoved, act, screen, } from 'testing' import Toast, { ToastHandler } from '..' const classPrefix = `adm-toast` const waitForContentShow = async (content: string) => { await waitFor(() => { screen.getByText(content) }) } describe('Toast', () => { afterEach(async () => { await act(async () => { Toast.clear() }) }) test('string props', async () => { const { getByText } = render( <button onClick={() => { Toast.show('content') }} > btn </button> ) fireEvent.click(getByText('btn')) await waitForContentShow('content') expect(getByText('content')).toBeInTheDocument() }) test('icon', async () => { const icons = ['success', 'fail', 'loading'] const items = icons.map(icon => ( <button key={icon} onClick={() => { Toast.show({ icon, content: `content ${icon}`, }) }} > {icon} </button> )) const { getByText } = render(<>{items}</>) fireEvent.click(getByText('success')) await waitForContentShow('content success') expect( document.querySelectorAll(`.${classPrefix}-icon-success`)[0] ).toBeInTheDocument() fireEvent.click(getByText('fail')) await waitForContentShow('content fail') expect( document.querySelectorAll(`.${classPrefix}-icon-fail`)[0] ).toBeInTheDocument() fireEvent.click(getByText('loading')) await waitForContentShow('content loading') expect( document.querySelectorAll(`.${classPrefix}-loading`)[0] ).toBeInTheDocument() }) test('custom icon', async () => { const { getByText } = render( <button onClick={() => { Toast.show({ icon: <div>icon</div>, content: 'content', }) }} > btn </button> ) fireEvent.click(getByText('btn')) await waitForContentShow('content') expect(getByText('icon')).toBeInTheDocument() }) test('position', async () => { const positions = ['top', 'bottom', 'center'] as const const obj = { 'top': '20%', 'bottom': '80%', 'center': '50%', } const items = positions.map(position => ( <button key={position} onClick={() => { Toast.show({ content: `content ${position}`, position, }) }} > {position} </button> )) const { getByText } = render(<>{items}</>) for (const p of positions) { fireEvent.click(getByText(p)) await waitForContentShow(`content ${p}`) const main = document.querySelectorAll(`.${classPrefix}-main`)[0] expect(main).toHaveStyle(`top: ${obj[p]}`) } }) test(`don't allow mask click`, async () => { const { getByText } = render( <button onClick={() => { Toast.show({ content: 'Please be patient', maskClickable: false, }) }} > btn </button> ) fireEvent.click(getByText('btn')) await waitForContentShow('Please be patient') const mask = document.querySelectorAll('.adm-mask')[0] expect(mask).toHaveStyle('pointer-events: auto') }) test('close automatically when timeout', async () => { jest.useFakeTimers() const { getByText } = render( <button onClick={() => { Toast.show({ content: 'toast', duration: 5000, }) }} > btn </button> ) fireEvent.click(getByText('btn')) await waitForContentShow('toast') const mask = document.querySelectorAll('.adm-mask')[0] act(() => { jest.runAllTimers() }) jest.useRealTimers() await waitForElementToBeRemoved(mask) }) test('manual clear', async () => { const App = () => { const handler = useRef<ToastHandler>() return ( <> <button onClick={() => { handler.current = Toast.show({ content: 'toast', duration: 0, }) }} > show </button> <button onClick={() => { handler.current?.close() }} > close </button> <button onClick={() => { Toast.clear() }} > clear </button> </> ) } const { getByText } = render(<App />) fireEvent.click(getByText('show')) await waitForContentShow('toast') const mask = document.querySelectorAll('.adm-mask')[0] fireEvent.click(getByText('close')) await waitForElementToBeRemoved(mask) fireEvent.click(getByText('show')) await waitForContentShow('toast') const mask2 = document.querySelectorAll('.adm-mask')[0] fireEvent.click(getByText('clear')) await waitForElementToBeRemoved(mask2) }) test('global config', async () => { Toast.config({ duration: 100, position: 'top', maskClickable: false }) const { getByText } = render( <button onClick={() => { Toast.show({ content: 'content', }) }} > btn </button> ) fireEvent.click(getByText('btn')) await waitForContentShow('content') const main = document.querySelectorAll(`.${classPrefix}-main`)[0] const mask = document.querySelectorAll('.adm-mask')[0] expect(main).toHaveStyle('top: 20%') expect(mask).toHaveStyle('pointer-events: auto') await waitForElementToBeRemoved(mask) }) test('close should be work when the toast is not mounted', async () => { const { getByText } = render( <button onClick={() => { Toast.show({ content: 'content', duration: 0, }) Toast.clear() Toast.show({ content: 'content2', duration: 0, }) }} > btn </button> ) fireEvent.click(getByText('btn')) await waitForContentShow('content2') expect(document.querySelectorAll(`.${classPrefix}-main`).length) }) })
8,188
0
petrpan-code/ant-design/ant-design-mobile/src/components/tree-select
petrpan-code/ant-design/ant-design-mobile/src/components/tree-select/tests/tree-select.test.tsx
import * as React from 'react' import { fireEvent, render, testA11y, waitFor } from 'testing' import TreeSelect from '../' const classPrefix = `adm-tree-select` const options = [ { label: '分类A', value: 'A', children: [ { label: '分类A-1', value: 'A1', }, { label: '分类A-2', value: 'A2', }, ], }, { label: '分类B', value: 'B', children: [ { label: '分类B-1', value: 'B1', }, { label: '分类B-2', value: 'B2', }, ], }, ] const optionsList = [ { title: '分类A', data: 'A', list: [ { title: '分类A-1', data: 'A1', }, { title: '分类A-2', data: 'A2', }, ], }, { title: '分类B', data: 'B', list: [ { title: '分类B-1', data: 'B1', }, { title: '分类B-2', data: 'B2', }, ], }, ] const optionsMultiple = [ { label: '分类A', value: 'A', children: [ { label: '分类A-1', value: 'A1', children: [ { label: '分类A-1-1', value: 'A11', }, { label: '分类A-1-2', value: 'A12', }, ], }, { label: '分类A-2', value: 'A2', children: [ { label: '分类A-2-1', value: 'A21', }, { label: '分类A-2-2', value: 'A22', }, ], }, ], }, { label: '分类B', value: 'B', children: [ { label: '分类B-1', value: 'B1', children: [ { label: '分类B-1-1', value: 'B11', }, { label: '分类B-1-2', value: 'B12', }, ], }, { label: '分类B-2', value: 'B2', children: [ { label: '分类B-2-1', value: 'B21', }, { label: '分类B-2-2', value: 'B22', }, ], }, ], }, ] describe('TreeSelect', () => { const warnSpy = jest.spyOn(console, 'warn').mockImplementation(() => {}) afterAll(() => { warnSpy.mockRestore() }) it('passes a11y test', async () => { await testA11y( <TreeSelect defaultValue={['A', 'A1']} options={options} onChange={(value, nodes) => { console.log(value, nodes) }} /> ) }) test('renders basic', () => { function Basic() { const [data, setData] = React.useState<string[]>() return ( <> <TreeSelect defaultValue={['A', 'A1']} options={options} onChange={value => { setData(value) }} /> <div data-testid='res'>{JSON.stringify(data)}</div> </> ) } const { getByText, getByTestId } = render(<Basic />) // 判断 defaultValue 是否生效 expect(getByText('分类A')).toHaveClass(`${classPrefix}-item-active`) expect(getByText('分类A-1')).toHaveClass(`${classPrefix}-item-active`) // 点选新的值 fireEvent.click(getByText('分类B')) fireEvent.click(getByText('分类B-2')) // 判断 onChange 回传的数据是否正确 expect(getByTestId('res')).toHaveTextContent('["B","B2"]') }) test('renders with fieldNames', () => { const { getByText } = render( <TreeSelect defaultValue={['A', 'A1']} options={optionsList} fieldNames={{ label: 'title', value: 'data', children: 'list', }} /> ) // 判断修改 fieldNames 之后,能从新 options 中取到值即可 expect(getByText('分类A')).toHaveClass(`${classPrefix}-item-active`) expect(getByText('分类A-1')).toHaveClass(`${classPrefix}-item-active`) }) test('renders with multiple', async () => { const fn = jest.fn() function MultipleBasic() { const [data, setData] = React.useState<string[]>() return ( <> <TreeSelect.Multiple defaultValue={['A1']} defaultExpandKeys={['A', 'A1']} options={optionsMultiple} onExpand={() => { fn() }} onChange={value => { setData(value) }} selectAllText={['', '全选1', '全选2']} /> <div data-testid='res'>{JSON.stringify(data)}</div> </> ) } const { getByText, getByTestId } = render(<MultipleBasic />) // 判断 defaultExpandKeys 是否生效 expect(getByText('分类A')).toHaveClass( 'adm-tree-select-multiple-item-expand' ) // multiple 多了一个小圆点 expect(getByText('分类A').lastElementChild).toHaveClass( 'adm-tree-select-multiple-dot' ) expect(getByText('分类A-1')).toHaveClass( 'adm-tree-select-multiple-item-expand' ) expect(getByText('分类A-1').lastElementChild).toHaveClass( 'adm-tree-select-multiple-dot' ) // 第三列全勾选 expect(getByText('全选2').firstChild).toHaveClass('adm-checkbox-checked') expect(getByText('分类A-1-1').firstChild).toHaveClass( 'adm-checkbox-checked' ) expect(getByText('分类A-1-2').firstChild).toHaveClass( 'adm-checkbox-checked' ) // 点选第二列的全选 fireEvent.click(getByText('全选1')) // 判断 onChange 回传的数据是否正确 expect(getByTestId('res')).toHaveTextContent('["A"]') // 点选第二列的A-2,再选第三列的全选,取消 A-2 的选中 fireEvent.click(getByText('分类A-2')) fireEvent.click(getByText('全选2')) expect(getByText('分类A-2-2').firstChild).not.toHaveClass( 'adm-checkbox-checked' ) // 判断 onChange 回传的数据是否正确 expect(getByTestId('res')).toHaveTextContent('["A1"]') await waitFor(() => { // onExpand 事件响应了一次 expect(fn).toBeCalledTimes(1) }) // 选中第一列的 分类B fireEvent.click(getByText('分类B')) // 点选第二列的全选 fireEvent.click(getByText('全选1')) // 判断 onChange 回传的数据是否正确 expect(getByTestId('res')).toHaveTextContent('["A1","B"]') await waitFor(() => { // onExpand 事件响应了2次 expect(fn).toBeCalledTimes(2) }) }) })
8,195
0
petrpan-code/ant-design/ant-design-mobile/src/components/virtual-input
petrpan-code/ant-design/ant-design-mobile/src/components/virtual-input/tests/virtual-input.test.tsx
import React, { createRef } from 'react' import { render, fireEvent, act, screen, waitFor } from 'testing' import NumberKeyboard from '../../number-keyboard' import { VirtualInput, VirtualInputRef } from '../virtual-input' const classPrefix = 'adm-virtual-input' describe('VirtualInput', () => { test('ref should be defined', async () => { const ref = createRef<VirtualInputRef>() render(<VirtualInput ref={ref} />) expect(ref.current).toBeDefined() expect(ref.current?.focus).toBeDefined() expect(ref.current?.blur).toBeDefined() }) test('focus and blur', async () => { render(<VirtualInput data-testid='virtualInput' clearable value='abc' />) fireEvent.focus(screen.getByTestId('virtualInput')) expect(document.querySelector(`.${classPrefix}-caret`)).toBeInTheDocument() fireEvent.blur(screen.getByTestId('virtualInput')) expect( document.querySelector(`.${classPrefix}-caret`) ).not.toBeInTheDocument() }) test('ref should works', async () => { const ref = React.createRef<VirtualInputRef>() render(<VirtualInput ref={ref} clearable value='abc' />) act(() => { ref.current?.focus() }) expect(document.querySelector(`.${classPrefix}-caret`)).toBeInTheDocument() act(() => { ref.current?.blur() }) expect( document.querySelector(`.${classPrefix}-caret`) ).not.toBeInTheDocument() }) test('placeholder', async () => { render(<VirtualInput placeholder='Placeholder' />) expect(screen.getByText('Placeholder')).toBeInTheDocument() }) test('clear', async () => { const Wrapper = () => { const [value, setValue] = React.useState('Value') return ( <VirtualInput data-testid='virtualInput' clearable value={value} onChange={setValue} /> ) } render(<Wrapper />) expect(document.querySelector(`.${classPrefix}-content`)).toHaveTextContent( 'Value' ) fireEvent.focus(screen.getByTestId('virtualInput')) expect(document.querySelector(`.${classPrefix}-clear`)).toBeInTheDocument() fireEvent.click(document.querySelector(`.${classPrefix}-clear`) as any) expect(document.querySelector(`.${classPrefix}-content`)).toHaveTextContent( '' ) }) test('keyboard', async () => { const KeyBoardClassPrefix = 'adm-number-keyboard' render( <VirtualInput data-testid='virtualInput' clearable keyboard={<NumberKeyboard title='title' />} /> ) fireEvent.focus(screen.getByTestId('virtualInput')) await waitFor(() => { expect( document.querySelector(`.${KeyBoardClassPrefix}-popup`) ).toBeVisible() }) fireEvent.touchEnd(screen.getByText('0')) expect(document.querySelector(`.${classPrefix}-content`)).toHaveTextContent( '0' ) fireEvent.touchEnd(screen.getByText('1')) expect(document.querySelector(`.${classPrefix}-content`)).toHaveTextContent( '01' ) fireEvent.touchEnd(screen.getByTitle('BACKSPACE')) expect( document.querySelector(`.${classPrefix}-content`) ).not.toHaveTextContent('01') expect(document.querySelector(`.${classPrefix}-content`)).toHaveTextContent( '0' ) expect(screen.getByTitle('CLOSE')).toBeInTheDocument() fireEvent.click(screen.getByTitle('CLOSE')) fireEvent.blur(screen.getByTestId('virtualInput')) await waitFor(() => { expect( document.querySelector(`.${KeyBoardClassPrefix}-popup`) ).not.toBeVisible() }) }) test('placeholder should not be shown when value is `0`', () => { render(<VirtualInput value={0 as any} placeholder='placeholder' />) expect(screen.queryByText('placeholder')).toBeNull() }) })
8,204
0
petrpan-code/ant-design/ant-design-mobile/src/components/water-mark
petrpan-code/ant-design/ant-design-mobile/src/components/water-mark/tests/water-mark.test.tsx
import React from 'react' import { render } from 'testing' import WaterMark from '..' const classPrefix = `adm-water-mark` const mockSrcSet = jest.spyOn(Image.prototype, 'src', 'set') describe('WaterMark', () => { beforeAll(() => { mockSrcSet.mockImplementation(function (this: typeof Image.prototype) { if (this.onload) { this.onload() } }) }) afterAll(() => { mockSrcSet.mockRestore() }) test('content watermark', () => { const { container } = render(<WaterMark content='Ant Design Mobile' />) expect(container).toMatchSnapshot() }) test('more rows content watermark', () => { const { container } = render( <WaterMark content={['Ant Design Mobile', 'Ant Design']} /> ) expect(container).toMatchSnapshot() }) test('image watermark', () => { const image = 'https://gw.alipayobjects.com/zos/bmw-prod/59a18171-ae17-4fc5-93a0-2645f64a3aca.svg' const { container } = render(<WaterMark image={image} />) expect(container).toMatchSnapshot() }) test('not full page', () => { const { getByTestId } = render( <WaterMark fullPage={false} data-testid='mask' /> ) expect(getByTestId('mask')).not.toHaveClass(`${classPrefix}-full-page`) }) test('mount should not set base64Url', () => { let exceeded = false const Demo = () => { const divRef = React.useRef<HTMLDivElement>(null) React.useLayoutEffect(() => { exceeded = true const { style } = divRef.current?.querySelector( '.adm-water-mark' ) as HTMLElement expect(style.backgroundImage).toBeFalsy() }, []) return ( <div ref={divRef}> <WaterMark content='Ant Design Mobile' /> </div> ) } render(<Demo />) expect(exceeded).toBeTruthy() }) test('throw error when Canvas is not supported', () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}) const mockCanvasContext = jest.spyOn( HTMLCanvasElement.prototype, 'getContext' ) mockCanvasContext.mockReturnValue(null) expect(() => render(<WaterMark />)).toThrow( 'Canvas is not supported in the current environment' ) mockCanvasContext.mockRestore() errorSpy.mockRestore() }) })
8,205
0
petrpan-code/ant-design/ant-design-mobile/src/components/water-mark/tests
petrpan-code/ant-design/ant-design-mobile/src/components/water-mark/tests/__snapshots__/water-mark.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`WaterMark content watermark 1`] = ` <div> <div class="adm-water-mark adm-water-mark-full-page" style="background-size: 144px; background-image: url(data:image/png;base64,00);" /> </div> `; exports[`WaterMark image watermark 1`] = ` <div> <div class="adm-water-mark adm-water-mark-full-page" style="background-size: 144px; background-image: url(data:image/png;base64,00);" /> </div> `; exports[`WaterMark more rows content watermark 1`] = ` <div> <div class="adm-water-mark adm-water-mark-full-page" style="background-size: 144px; background-image: url(data:image/png;base64,00);" /> </div> `;
8,294
0
petrpan-code/ant-design/ant-design-mobile/src/utils
petrpan-code/ant-design/ant-design-mobile/src/utils/tests/undefined-fallback.test.ts
import { undefinedFallback } from '../undefined-fallback' describe('undefinedFallback', () => { test('basic', () => { expect(undefinedFallback('foo', undefined)).toBe('foo') expect(undefinedFallback(undefined, 'foo')).toBe('foo') expect(undefinedFallback(undefined, undefined)).toBe(undefined) expect(undefinedFallback('foo', 'bar')).toBe('foo') expect(undefinedFallback('foo', undefined, 'bar')).toBe('foo') expect(undefinedFallback(undefined, 'foo', 'bar')).toBe('foo') expect(undefinedFallback(undefined, undefined, 'foo', 'bar')).toBe('foo') expect(undefinedFallback(undefined, 'foo', undefined, 'bar')).toBe('foo') }) })
8,295
0
petrpan-code/ant-design/ant-design-mobile/src/utils
petrpan-code/ant-design/ant-design-mobile/src/utils/tests/use-lock-scroll.test.tsx
import React, { useRef } from 'react' import { render, fireEvent, createEvent, screen } from 'testing' import { useLockScroll } from '../use-lock-scroll' describe('useLockScroll', () => { let TestComponent: React.FC<{ scrollParams: boolean | 'strict' handleTouch?: () => void }> beforeEach(() => { TestComponent = (props: { scrollParams: boolean | 'strict' handleTouch?: () => void }) => { const divRef = useRef<HTMLDivElement>(null) useLockScroll(divRef, props.scrollParams) return ( <div ref={divRef} data-testid='lock' style={{ height: 200, overflow: 'scroll', cursor: 'grab', touchAction: 'none', }} onTouchMove={() => props.handleTouch && props.handleTouch()} > {new Array(10).fill({}).map((_, i) => ( <h1 key={i} style={{ height: 25 }}> Test component {i} </h1> ))} </div> ) } }) afterEach(() => { TestComponent = null as any }) test('use preventDefault when event listener is treated as as passive', () => { const handleTouch = jest.fn() const TestComponent = () => { const divRef = useRef<HTMLDivElement>(null) useLockScroll(divRef, true) return ( <div ref={divRef} onTouchMove={handleTouch}> div </div> ) } render(<TestComponent />) const el = screen.getByText('div') const fn = jest.fn() const event = createEvent.touchMove(el, { touches: [{ clientX: 0, clientY: 400 }], }) Object.defineProperty(event, 'preventDefault', { value: fn, }) fireEvent(el, event) expect(fn).toBeCalled() }) test('Scroll To Bottom', async () => { const { getByTestId } = render(<TestComponent scrollParams={true} />) const testEl = getByTestId('lock') jest.spyOn(testEl, 'scrollHeight', 'get').mockImplementation(() => 200) const scrollTop = jest.spyOn(testEl, 'scrollTop', 'get') scrollTop.mockImplementationOnce(() => 150) jest.spyOn(testEl, 'getBoundingClientRect').mockImplementation(() => ({ height: 20, top: 0, left: 0, x: 0, y: 0, bottom: 0, right: 0, width: 0, toJSON: () => {}, })) fireEvent.touchStart(testEl, { touches: [{ clientX: 0, clientY: 100 }], }) const triggerTruthy = fireEvent.touchMove(testEl, { touches: [{ clientX: 0, clientY: 20 }], }) // 滚动事件正常触发 expect(triggerTruthy).toBeTruthy() // 滚动高度到 180 scrollTop.mockImplementationOnce(() => 180) const triggerFalsy = fireEvent.touchMove(testEl, { touches: [{ clientX: 0, clientY: 10 }], }) // 滚动事件被取消 expect(triggerFalsy).toBeFalsy() }) test('Scroll To Top', async () => { const { getByTestId } = render(<TestComponent scrollParams={true} />) const testEl = getByTestId('lock') jest.spyOn(testEl, 'scrollHeight', 'get').mockImplementation(() => 200) const scrollTop = jest.spyOn(testEl, 'scrollTop', 'get') scrollTop.mockImplementationOnce(() => 150) jest.spyOn(testEl, 'getBoundingClientRect').mockImplementation(() => ({ height: 20, top: 0, left: 0, x: 0, y: 0, bottom: 0, right: 0, width: 0, toJSON: () => {}, })) fireEvent.touchStart(testEl, { touches: [{ clientX: 0, clientY: 100 }], }) const triggerTruthy = fireEvent.touchMove(testEl, { touches: [{ clientX: 0, clientY: 120 }], }) // 滚动事件正常触发 expect(triggerTruthy).toBeTruthy() // 滚动高度到顶部 scrollTop.mockImplementationOnce(() => 0) const triggerFalsy = fireEvent.touchMove(testEl, { touches: [{ clientX: 0, clientY: 200 }], }) // 滚动事件被取消 expect(triggerFalsy).toBeFalsy() }) test('Scroll With Strict Params', async () => { const { getByTestId } = render(<TestComponent scrollParams='strict' />) const testEl = getByTestId('lock') jest .spyOn(document.body, 'clientHeight', 'get') .mockImplementation(() => 20) jest .spyOn(document.body, 'scrollHeight', 'get') .mockImplementation(() => 30) fireEvent.touchStart(testEl, { touches: [{ clientX: 0, clientY: 100 }], }) const cancelTrigger = fireEvent.touchMove(testEl, { touches: [{ clientX: 0, clientY: 200 }], }) // 事件被取消 expect(cancelTrigger).toBeFalsy() }) })
8,296
0
petrpan-code/ant-design/ant-design-mobile/src/utils
petrpan-code/ant-design/ant-design-mobile/src/utils/tests/use-props-value.test.ts
import { usePropsValue } from '../use-props-value' import { renderHook, act } from 'testing' describe('usePropsValue', () => { test('onChange should not call when next value not change in uncontrolled mode', () => { const onChange = jest.fn() const { result } = renderHook(() => usePropsValue({ value: undefined, defaultValue: '', onChange, }) ) const setState = result.current[1] act(() => setState('1')) expect(onChange).toBeCalledTimes(1) act(() => setState('1')) expect(onChange).toBeCalledTimes(1) }) test('onChange should not call when next value not change in controlled mode', () => { const onChange = jest.fn() const { result } = renderHook(usePropsValue, { initialProps: { value: '1', defaultValue: '', onChange }, }) const setState = result.current[1] act(() => setState('1')) expect(onChange).toBeCalledTimes(0) }) test('onChange should call when `forceTrigger` is true', () => { const onChange = jest.fn() const { result } = renderHook(usePropsValue, { initialProps: { value: '1', defaultValue: '', onChange }, }) const setState = result.current[1] act(() => setState('1', true)) expect(onChange).toBeCalledTimes(1) }) test('inner value should always be the same with outer value', () => { const { result, rerender } = renderHook(usePropsValue, { initialProps: { value: '0', defaultValue: '' }, }) for (let i = 0; i < 3; i++) { rerender({ value: i.toString(), defaultValue: '', }) expect(result.current[0]).toBe(i.toString()) } }) })
8,447
0
petrpan-code/ant-design/pro-components/packages/descriptions/src
petrpan-code/ant-design/pro-components/packages/descriptions/src/demos/base.demo-test.tsx
import { ProDescriptions } from '@ant-design/pro-components'; import { Button } from 'antd'; export default () => { return ( <> <ProDescriptions.Item label="文本" valueType="option"> <Button key="primary" type="primary"> 提交 </Button> </ProDescriptions.Item> <ProDescriptions column={2} title="高级定义列表" tooltip="包含了从服务器请求,columns等功能" request={async () => ({ data: [{ id: 1, money: 12345 }], success: true, })} columns={[ { title: () => '文本 2', key: 'text', dataIndex: 'id', }, { title: 'money', key: 'money', dataIndex: 'money', valueType: { type: 'money', showSymbol: false }, }, ]} /> </> ); };
8,497
0
petrpan-code/ant-design/pro-components/packages/field/src
petrpan-code/ant-design/pro-components/packages/field/src/demos/base_test.tsx
import type { ProFieldFCMode } from '@ant-design/pro-components'; import { ProField } from '@ant-design/pro-components'; import { Descriptions, Radio, Space, Switch } from 'antd'; import dayjs from 'dayjs'; import { useState } from 'react'; export default () => { const [state, setState] = useState<ProFieldFCMode>('edit'); const [plain, setPlain] = useState<boolean>(false); return ( <> <Space> <Radio.Group onChange={(e) => setState(e.target.value as ProFieldFCMode)} value={state} > <Radio value="read">只读</Radio> <Radio value="edit">编辑</Radio> </Radio.Group> 简约模式 <Switch checked={plain} onChange={(checked) => setPlain(checked)} /> </Space> <br /> <br /> <Descriptions column={2}> <Descriptions.Item label="空字符串"> <ProField text="" mode="read" /> </Descriptions.Item> <Descriptions.Item label="头像"> <ProField text="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" mode="read" valueType="avatar" /> </Descriptions.Item> <Descriptions.Item label="文本"> <ProField text="这是一段文本" valueType="text" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="颜色"> <ProField text="blue" valueType="color" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="颜色禁用"> <ProField text="blue" valueType="color" fieldProps={{ disabled: true, }} mode={state} plain={plain} /> <ProField text="blue" valueType="color" disabled mode="read" /> </Descriptions.Item> <Descriptions.Item label="图片"> <ProField text="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" valueType={{ type: 'image', width: 100, }} mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="金额"> <ProField numberPopoverRender fieldProps={{ precision: 2, style: { width: 200, }, }} text="10000" valueType="money" mode={state} plain={plain} /> <ProField valueType="money" label="自定义货币符号" name="amount4" fieldProps={{ value: 2221212.22, customSymbol: '💰', }} mode="read" /> </Descriptions.Item> <Descriptions.Item label="数字"> <ProField text="19897979797979" valueType="digit" fieldProps={{ min: 1, max: 10000, precision: 0, formatter: null, }} mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="数字范围"> <ProField text={[123, 456]} valueType="digitRange" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="秒格式化"> <ProField text={2000000} valueType="second" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="百分比"> <ProField text="100" valueType="percent" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="评分"> <ProField text={3.5} valueType="rate" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="slider"> <ProField text="40" valueType="slider" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="选择框"> <ProField text="open" mode={state} valueEnum={{ all: { text: '全部', disabled: true, status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </Descriptions.Item> <Descriptions.Item label="多选"> <ProField text={['open', 'closed']} mode={state} valueType="checkbox" valueEnum={{ all: { text: '全部', disabled: true, status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </Descriptions.Item> <Descriptions.Item label="多选 labelInValue"> <ProField text={[ { value: 'open1', label: '打开', }, { value: 'closed2', label: '关闭', }, ]} mode={state} valueType="checkbox" valueEnum={{ all: { text: '全部', disabled: true, status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </Descriptions.Item> <Descriptions.Item label="单选"> <ProField text="open" mode={state} valueType="radio" fieldProps={{ layout: 'horizontal', }} valueEnum={{ all: { text: '全部', disabled: true, status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </Descriptions.Item> <Descriptions.Item label="单选按钮"> <ProField text="open" mode={state} valueType="radioButton" valueEnum={{ all: { text: '全部', disabled: true, status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </Descriptions.Item> <Descriptions.Item label="远程选择框"> <ProField text="open" mode={state} params={{ name: 'test', }} valueType="select" request={async () => { return [ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, { label: '特殊选项', value: 'optGroup', optionType: 'optGroup', options: [ { label: '不解决', value: 'no' }, { label: '已废弃', value: 'clear' }, ], }, ]; }} /> </Descriptions.Item> <Descriptions.Item label="远程级联框"> <ProField mode={state} params={{ name: 'test', }} valueType="cascader" request={async () => { return [ { value: 'zhejiang', label: 'Zhejiang', children: [ { value: 'hangzhou', label: 'Hangzhou', children: [ { value: 'xihu', label: 'West Lake', }, ], }, ], }, { value: 'jiangsu', label: 'Jiangsu', children: [ { value: 'nanjing', label: 'Nanjing', children: [ { value: 'zhonghuamen', label: 'Zhong Hua Men', }, ], }, ], }, ]; }} /> </Descriptions.Item> <Descriptions.Item label="进度条"> <ProField text="40" valueType="progress" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="进度条"> <ProField text="40%" valueType="progress" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="进度条"> <ProField text="love" valueType="progress" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="百分比空值"> <ProField valueType="percent" mode="read" /> </Descriptions.Item> <Descriptions.Item label="百分比"> <Space> <ProField text={10} valueType={{ type: 'percent', showSymbol: (text: number) => { if (text < 0) { return true; } return false; }, showColor: true, }} mode="read" /> <ProField text={0} valueType={{ type: 'percent', showSymbol: true, showColor: true, }} mode="read" /> <ProField text={-10} valueType={{ type: 'percent', showSymbol: true, showColor: true, }} mode="read" /> </Space> </Descriptions.Item> <Descriptions.Item label="日期时间"> <ProField text={dayjs('2019-11-16 12:50:26').valueOf()} valueType="dateTime" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="相对于当前时间"> <Space> <ProField text={dayjs('2019-11-16 12:50:26').valueOf()} valueType="fromNow" mode={state} plain={plain} /> <ProField text={dayjs('2020-11-16 12:50:26').valueOf()} valueType="fromNow" mode={state} plain={plain} /> </Space> </Descriptions.Item> <Descriptions.Item label="日期"> <ProField text={dayjs('2019-11-16 12:50:26').valueOf()} valueType="date" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="日期区间"> <ProField text={[ dayjs('2019-11-16 12:50:26').add(-1, 'd').valueOf(), dayjs('2019-11-16 12:50:26').valueOf(), ]} plain={plain} valueType="dateRange" mode={state} /> </Descriptions.Item> <Descriptions.Item label="日期时间区间"> <ProField text={[ dayjs('2019-11-16 12:50:26').add(-1, 'd').valueOf(), dayjs('2019-11-16 12:50:26').valueOf(), ]} plain={plain} valueType="dateTimeRange" mode={state} /> </Descriptions.Item> <Descriptions.Item label="时间"> <ProField text={dayjs('2019-11-16 12:50:26').valueOf()} plain={plain} valueType="time" mode={state} /> </Descriptions.Item> <Descriptions.Item label="时间区间"> <ProField text={[ dayjs('2019-11-16 12:50:26').add(-1, 'd').valueOf(), dayjs('2019-11-16 12:50:26').valueOf(), ]} plain={plain} valueType="timeRange" mode={state} /> </Descriptions.Item> <Descriptions.Item label="密码"> <ProField text="password" plain={plain} valueType="password" mode={state} /> </Descriptions.Item> <Descriptions.Item label="代码块"> <ProField text={` yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. `} valueType="code" mode={state} plain={plain} /> </Descriptions.Item> <Descriptions.Item label="JSON 代码块"> <ProField text={`{ "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": ["**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js"] } `} valueType="jsonCode" mode={state} plain={plain} /> </Descriptions.Item> </Descriptions> </> ); };
8,592
0
petrpan-code/ant-design/pro-components/packages/form/src/components/QueryFilter
petrpan-code/ant-design/pro-components/packages/form/src/components/QueryFilter/demos/light-filter-test.tsx
import { LightFilter, ProForm, ProFormDigit, ProFormSelect, ProFormSlider, ProFormText, } from '@ant-design/pro-components'; import { Radio } from 'antd'; import type { SizeType } from 'antd/lib/config-provider/SizeContext'; import dayjs from 'dayjs'; import React from 'react'; export default () => { const [size, setSize] = React.useState<SizeType>('middle'); return ( <div> <Radio.Group value={size} onChange={(e) => { setSize(e.target.value); }} > <Radio.Button value="middle">Middle</Radio.Button> <Radio.Button value="small">Small</Radio.Button> </Radio.Group> <br /> <br /> <LightFilter<{ sex: string; }> initialValues={{ name1: 'yutingzhao1991', name3: '2020-08-19', range: [20, 80], slider: 20, sex: [ { value: 'open1', label: '打开', }, { value: 'closed2', label: '关闭', }, ], datetimeRanger: [ dayjs('2019-11-16 12:50:26').add(-1, 'd').valueOf(), dayjs('2019-11-16 12:50:26').valueOf(), ], timeRanger: [ dayjs('2019-11-16 12:50:26').add(-1, 'd').valueOf(), dayjs('2019-11-16 12:50:26').valueOf(), ], }} size={size} onFinish={async (values) => console.log(values.sex)} > <ProFormSelect name="sex" label="性别" showSearch allowClear={false} fieldProps={{ labelInValue: true, }} valueEnum={{ man: '男', woman: '女', }} /> <ProFormSelect name="area" label="地区" mode="multiple" valueEnum={{ beijing: '北京', shanghai: '上海', hangzhou: '杭州', long: '这是一个很长的用来测试溢出的项目', }} /> <ProForm.Group label="范围组"> <ProFormDigit name="count" label="数量" /> <ProFormSlider name="range" label="范围" range /> <ProFormSlider name="slider" label="范围" /> </ProForm.Group> <ProFormText name="name1" label="名称" /> </LightFilter> </div> ); };
8,596
0
petrpan-code/ant-design/pro-components/packages/form/src/components/QueryFilter
petrpan-code/ant-design/pro-components/packages/form/src/components/QueryFilter/demos/query-filter-test.tsx
import { ProForm, ProFormDatePicker, ProFormText, QueryFilter, } from '@ant-design/pro-components'; import { Input } from 'antd'; export default () => { const formProps = { defaultColsNumber: 6, }; return ( <> <> <QueryFilter {...formProps}> <ProFormDatePicker // key={i} colSize={4} name="test" label="test" /> {[...Array(10).keys()].map((i) => ( <ProFormDatePicker key={i} name={`startdate${i + 1}`} label={`Date${i + 1}`} /> ))} </QueryFilter> <pre>{JSON.stringify(formProps, null, 2)}</pre> </> <QueryFilter<{ name: string; company: string; }> onFinish={async (values) => { console.log(values.name); }} span={6} defaultCollapsed={false} > <ProForm.Item name="name" label="test"> <Input /> </ProForm.Item> <ProFormText name="name" label="应用名称" rules={[{ required: true }]} /> <ProFormText name="sex" label="性别" /> </QueryFilter> <QueryFilter<{ name: string; company: string; }> onFinish={async (values) => { console.log(values.name); }} span={6} defaultCollapsed={false} > <ProFormText name="name" label="应用名称" rules={[{ required: true }]} /> <ProFormText name="creater" label="创建人" /> <ProFormText name="sex" label="性别" /> </QueryFilter> <QueryFilter<{ name: string; company: string; }> onFinish={async (values) => { console.log(values.name); }} defaultCollapsed={false} > <ProFormText name="name" label="应用名称" rules={[{ required: true }]} /> <ProFormText name="creater" label="创建人" /> <ProFormText name="sex" label="性别" /> <ProFormText name="status" label="应用状态" /> <ProFormText name="startdate" label="响应日期" /> <ProFormText name="create" label="创建时间" /> </QueryFilter> <QueryFilter<{ name: string; company: string; }> onFinish={async (values) => { console.log(values.name); }} span={12} defaultCollapsed={false} > <ProFormText name="name" label="应用名称" rules={[{ required: true }]} /> <ProFormText name="creater" label="创建人" /> <ProFormText name="sex" label="性别" /> <ProFormText name="status" label="应用状态" /> <ProFormText name="startdate" label="响应日期" /> <ProFormText name="create" label="创建时间" colSize={3} /> </QueryFilter> <QueryFilter<{ name: string; company: string; }> onFinish={async (values) => { console.log(values.name); }} span={8} defaultCollapsed={false} > <ProFormText name="name" label="应用名称" rules={[{ required: true }]} /> <ProFormText name="creater" label="创建人" /> <ProFormText name="sex" label="性别" /> <ProFormText name="status" label="应用状态" /> <ProFormText name="startdate" label="响应日期" /> <ProFormText name="create" label="创建时间" colSize={3} /> </QueryFilter> <QueryFilter<{ name: string; company: string; }> onFinish={async (values) => { console.log(values.name); }} span={4} submitterColSpanProps={{ span: 12 }} defaultColsNumber={1} defaultCollapsed={false} > <ProFormText name="name" label="应用名称" rules={[{ required: true }]} /> <ProFormText name="creater" label="创建人" /> <ProFormText name="sex" label="性别" /> <ProFormText name="status" label="应用状态" /> <ProFormText name="startdate" label="响应日期" /> <ProFormText name="create" label="创建时间" colSize={3} /> </QueryFilter> </> ); };
8,646
0
petrpan-code/ant-design/pro-components/packages/form/src
petrpan-code/ant-design/pro-components/packages/form/src/demos/base-test.tsx
import type { ProFormInstance } from '@ant-design/pro-components'; import { ProForm, ProFormCascader, ProFormDatePicker, ProFormDateRangePicker, ProFormDigit, ProFormList, ProFormMoney, ProFormSelect, ProFormText, ProFormTreeSelect, } from '@ant-design/pro-components'; import { TreeSelect } from 'antd'; import dayjs from 'dayjs'; import { useRef } from 'react'; const treeData = [ { title: 'Node1', value: '0-0', key: '0-0', children: [ { title: 'Child Node1', value: '0-0-0', key: '0-0-0', }, ], }, { title: 'Node2', value: '0-1', key: '0-1', children: [ { title: 'Child Node3', value: '0-1-0', key: '0-1-0', }, { title: 'Child Node4', value: '0-1-1', key: '0-1-1', }, { title: 'Child Node5', value: '0-1-2', key: '0-1-2', }, ], }, ]; export default () => { const formRef = useRef< ProFormInstance<{ name: string; company?: string; useMode?: string; }> >(); return ( <ProForm<{ name: string; company?: string; useMode?: string; }> formRef={formRef} params={{ id: '100' }} formKey="base-form-use-demo" dateFormatter={(value, valueType) => { console.log('---->', value, valueType); return value.format('YYYY/MM/DD HH:mm:ss'); }} autoFocusFirstInput > <ProForm.Group> <ProFormText width="md" name="name" required dependencies={[['contract', 'name']]} addonBefore={<a>客户名称应该怎么获得?</a>} addonAfter={<a>点击查看更多</a>} label="签约客户名称" tooltip="最长为 24 位" placeholder="请输入名称" rules={[{ required: true, message: '这是必填项' }]} /> <ProFormText width="md" name="company" label="我方公司名称" placeholder="请输入名称" /> </ProForm.Group> <ProForm.Group> <ProFormDigit name="count" label="人数" width="lg" /> </ProForm.Group> <ProForm.Group> <ProFormText name={['contract', 'name']} width="md" label="合同名称" placeholder="请输入名称" /> <ProFormDateRangePicker width="md" name={['contract', 'createTime']} label="合同生效时间" /> </ProForm.Group> <ProForm.Group> <ProFormSelect options={[ { value: 'chapter', label: '盖章后生效', }, ]} readonly width="xs" cacheForSwr name="useMode" label="合同约定生效方式" /> <ProFormSelect.SearchSelect width="xs" options={[ { value: 'time', label: '履行完终止', type: 'time', options: [ { value: 'time1', label: '履行完终止1', }, { value: 'time2', label: '履行完终止2', }, ], }, ]} name="unusedMode" label="合同约定失效方式" /> <ProFormMoney width="md" name="money" label="合同约定金额" fieldProps={{ numberPopoverRender: true, }} /> </ProForm.Group> <ProFormText width="sm" name="id" label="主合同编号" /> <ProFormText name="project" width="md" disabled label="项目名称" initialValue="xxxx项目" /> <ProFormText width="xs" name="mangerName" disabled label="商务经理" initialValue="启途" /> <ProFormCascader width="md" request={async () => [ { value: 'zhejiang', label: '浙江', children: [ { value: 'hangzhou', label: '杭州', children: [ { value: 'xihu', label: '西湖', }, ], }, ], }, { value: 'jiangsu', label: 'Jiangsu', children: [ { value: 'nanjing', label: 'Nanjing', children: [ { value: 'zhonghuamen', label: 'Zhong Hua Men', }, ], }, ], }, ]} name="areaList" label="区域" initialValue={['zhejiang', 'hangzhou', 'xihu']} addonAfter={'qixian'} /> <ProFormTreeSelect initialValue={['0-0-0']} label="树形下拉选择器" width={600} request={async () => treeData} fieldProps={{ fieldNames: { label: 'title', }, treeCheckable: true, showCheckedStrategy: TreeSelect.SHOW_PARENT, placeholder: 'Please select', }} /> <ProFormDatePicker name="date" transform={(value) => { return { date: dayjs(value).unix(), }; }} /> <ProFormList name="datas" initialValue={[{ date: '2022-10-12 10:00:00' }]} > {() => { return ( <ProFormDatePicker name="date" transform={(value) => { return { date: dayjs(value).unix(), }; }} /> ); }} </ProFormList> </ProForm> ); };
8,648
0
petrpan-code/ant-design/pro-components/packages/form/src
petrpan-code/ant-design/pro-components/packages/form/src/demos/components-test.tsx
import { SmileOutlined } from '@ant-design/icons'; import { ProForm, ProFormCheckbox, ProFormField, ProFormRadio, ProFormSlider, ProFormSwitch, ProFormUploadButton, ProFormUploadDragger, } from '@ant-design/pro-components'; import { Button, Input } from 'antd'; import { useRef } from 'react'; const Demo = () => { const formRef = useRef(); return ( <ProForm name="validate_other" initialValues={{ 'input-number': 3, 'checkbox-group': ['A', 'B'], rate: 3.5, range: 5, name: 'qixian', }} formRef={formRef} onFinish={async (value) => console.log(value)} > <ProFormUploadButton name="upload" icon={<SmileOutlined />} label="Upload" title="点击上传" action="/upload.do" extra="longgggggggggggggggggggggggggggggggggg" /> <ProFormRadio name="test" /> <ProFormCheckbox name="test2" /> <ProFormSwitch width="lg" label="是否打开" /> <ProFormUploadDragger title="拖动上传" icon={<SmileOutlined />} description="支持 text" label="Dragger" name="dragger" fieldProps={{ showUploadList: true, }} /> <ProFormSlider name="range" label="范围" /> <ProFormField>test</ProFormField> <ProFormField> <Input /> </ProFormField> <ProForm.Item> <Button>查看记录数</Button> <span>共有200条</span> </ProForm.Item> </ProForm> ); }; export default Demo;
8,659
0
petrpan-code/ant-design/pro-components/packages/form/src
petrpan-code/ant-design/pro-components/packages/form/src/demos/modalform-test.tsx
import { PlusOutlined } from '@ant-design/icons'; import { ModalForm, ProCard, ProForm, ProFormList, ProFormText, } from '@ant-design/pro-components'; import { Button } from 'antd'; // 弹窗表单 const FormModal = () => { return ( <ModalForm<{ name: string; company: string; }> title="新建表单" trigger={ <Button type="primary"> <PlusOutlined /> 新建表单 </Button> } onFinish={async (values) => { console.log(values); alert(JSON.stringify(values)); return true; }} > <ProFormText width="sm" name="id" label="主合同编号" /> </ModalForm> ); }; const Demo = () => { return ( <div> <div> 在form外边可以 <FormModal /> </div> <div> 在form里面可以 <ProForm layout="horizontal"> <FormModal /> <ProFormList name="attributes" label="规格" creatorButtonProps={{ creatorButtonText: '添加规格项', }} min={1} copyIconProps={false} itemRender={({ listDom, action }, { index }) => ( <ProCard bordered style={{ marginBlockEnd: 8 }} title={`规格${index + 1}`} extra={action} bodyStyle={{ paddingBlockEnd: 0 }} > {listDom} </ProCard> )} creatorRecord={{ name: '', items: [{ name: '' }] }} initialValue={[{ name: '颜色', items: [{ name: '红' }] }]} > <ProFormText style={{ padding: 0 }} width="md" name="name" label="规格名" /> <ProForm.Item isListField style={{ marginBlockEnd: 0 }} label="规格值" > <ProFormList name="items" creatorButtonProps={{ creatorButtonText: '新建', icon: false, type: 'link', style: { width: 'unset' }, }} min={1} copyIconProps={false} deleteIconProps={{ tooltipText: '删除' }} itemRender={({ listDom, action }) => ( <div style={{ display: 'inline-flex', marginInlineEnd: 25, }} > {listDom} {action} </div> )} > <ProFormText allowClear={false} width="xs" name={['name']} /> <div> 在内层formlist拿不到 <FormModal /> </div> </ProFormList> </ProForm.Item> <div> 在外层formlist拿不到 <FormModal /> </div> </ProFormList> </ProForm> </div> </div> ); }; export default Demo;
9,002
0
petrpan-code/ant-design/pro-components/packages/table/src
petrpan-code/ant-design/pro-components/packages/table/src/demos/single-test.tsx
import { PlusOutlined } from '@ant-design/icons'; import type { ActionType, ProColumns } from '@ant-design/pro-components'; import { ProTable, TableDropdown } from '@ant-design/pro-components'; import { Button, ConfigProvider, Input, Space, Tag } from 'antd'; import { useRef } from 'react'; type GithubIssueItem = { url: string; id: number; number: number; title: string; labels: { name: string; color: string; }[]; state: string; comments: number; created_at: string; updated_at: string; closed_at?: string; }; const nestedColumns = [ { title: 'col without dataIndex', key: 'expand', }, { title: 'normal col', dataIndex: 'key', }, ]; const nestedData = [ { key: 1, children: [ { key: 11, }, ], }, ]; const columns: ProColumns<GithubIssueItem>[] = [ { title: '序号', dataIndex: 'index', valueType: 'indexBorder', }, { title: '标题', dataIndex: 'title', fixed: 'left', order: 1, copyable: true, ellipsis: true, hideInForm: true, tip: '标题过长会自动收缩', formItemProps: { rules: [ { required: true, message: '此项为必填项', }, ], }, width: '30%', }, { title: '状态', dataIndex: 'state', initialValue: 'all', copyable: true, ellipsis: true, onFilter: true, valueType: 'select', order: 2, fieldProps: { noStyle: true, }, valueEnum: { all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }, width: '10%', }, { title: '动态表单', key: 'direction', hideInTable: true, dataIndex: 'direction', formItemProps: { noStyle: true, }, ignoreFormItem: true, renderFormItem: () => { return <Input />; }, }, { title: '标签', dataIndex: 'labels', width: '10%', order: -1, colSize: 1.5, formItemProps: { noStyle: true, }, renderFormItem: (_, { defaultRender }) => defaultRender(_), render: (_, record) => ( <Space> {record.labels.map(({ name, color }) => ( <Tag color={color} key={name}> {name} </Tag> ))} </Space> ), }, { title: '创建时间', key: 'since', dataIndex: 'created_at', valueType: 'date', width: '20%', copyable: true, ellipsis: true, render: (value) => { return { children: value, props: { colSpan: 2 }, }; }, }, { title: '创建时间', key: 'since', dataIndex: 'created_at', // @ts-ignore valueType: () => undefined, width: '20%', }, { title: '操作', valueType: 'option', fixed: 'right', render: (text, record, _, action) => [ <a href={record.url} target="_blank" rel="noopener noreferrer" key="view"> 查看 </a>, <TableDropdown key="actionGroup" onSelect={() => action?.reload()} menus={[ { key: 'copy', name: '复制' }, { key: 'delete', name: '删除' }, ]} />, ], }, ]; export default () => { const actionRef = useRef<ActionType>(); return ( <ConfigProvider prefixCls="canvas"> <ProTable<GithubIssueItem> columns={columns} pagination={{ showQuickJumper: true, }} actionRef={actionRef} request={async () => ({ data: [], })} type="form" rowKey="id" dateFormatter="string" headerTitle="高级表格" toolBarRender={() => [ <Button key="3" type="primary"> <PlusOutlined /> 新建 </Button>, ]} /> <ProTable columns={nestedColumns} dataSource={nestedData} /> <ProTable<GithubIssueItem> columns={columns} actionRef={(ref) => console.log(ref)} dataSource={[ { id: 624748504, number: 6689, title: '🐛 [BUG]yarn install命令 antd2.4.5会报错', labels: [{ name: 'bug', color: 'error' }], state: 'open', comments: 1, created_at: '2020-05-26T09:42:56Z', updated_at: '2020-05-26T10:03:02Z', url: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png', }, { id: 624691229, number: 6688, title: '🐛 [BUG]无法创建工程npm create umi', labels: [{ name: 'bug', color: 'error' }], state: 'open', comments: 0, created_at: '2020-05-26T08:19:22Z', updated_at: '2020-05-26T08:19:22Z', url: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png', }, { id: 624674790, number: 6685, title: '🧐 [问题] build 后还存在 es6 的代码([email protected])', labels: [{ name: 'question', color: 'success' }], state: 'open', comments: 0, created_at: '2020-05-26T07:54:25Z', updated_at: '2020-05-26T07:54:25Z', url: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png', }, ]} pagination={{ pageSize: 5, }} rowKey="id" dateFormatter="string" headerTitle="高级表格" toolBarRender={() => [ <Button key="3" type="primary"> <PlusOutlined /> 新建 </Button>, ]} /> </ConfigProvider> ); };
9,104
0
petrpan-code/ant-design/pro-components
petrpan-code/ant-design/pro-components/tests/doc.test.ts
import demoTest from './demo'; demoTest('docs/components');
9,109
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/__snapshots__/doc.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`docs/components demos > 📸 renders ./docs/components/customization-value-type.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 24px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > SchemaForm </div> </div> <div class="ant-pro-card-body" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" title="自定义 valueType" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 标签 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="只读链接" > 只读链接 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <a> TradeCode 1 </a> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="链接" > 链接 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="name" placeholder="请输入链接" type="text" value="TradeCode 1" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 路径 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="status" title="标签" > 标签 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span class="ant-tag" > close </span> </div> <div class="ant-space-item" > <span class="ant-tag" > close </span> </div> <div class="ant-space-item" > <input class="ant-input ant-input-sm" style="width: 78px;" type="text" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="status" title="只读标签" > 只读标签 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-tag" > close </span> <span class="ant-tag" > close </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 24px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > ProTable </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-table" > <div class="ant-pro-card ant-pro-table-search ant-pro-table-search-query-filter" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="name" title="链接" > 链接 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="name" placeholder="请输入链接" style="width: 100%;" type="text" value="" /> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="标签" > 标签 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <input class="ant-input ant-input-sm" style="width: 78px;" type="text" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-middle" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > 链接 </th> <th class="ant-table-cell" scope="col" > 标签 </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > <a> TradeCode 1 </a> </td> <td class="ant-table-cell" > <span class="ant-tag" > close </span> <span class="ant-tag" > close </span> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 24px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > ProDescriptions </div> </div> <div class="ant-pro-card-body" > <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 链接 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <a> TradeCode 1 </a> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 标签 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span class="ant-tag" > close </span> <span class="ant-tag" > close </span> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`docs/components demos > 📸 renders ./docs/components/valueEnum-map.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table" > <div class="ant-pro-card ant-pro-table-search ant-pro-table-search-query-filter" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status1" title="状态(number)" > 状态(number) </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="status1_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="status1_list" autocomplete="off" class="ant-select-selection-search-input" id="status1" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status2" title="状态(number)" > 状态(number) </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="status2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="status2_list" autocomplete="off" class="ant-select-selection-search-input" id="status2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status3" title="状态(boolean)" > 状态(boolean) </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="status3_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="status3_list" autocomplete="off" class="ant-select-selection-search-input" id="status3" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 展开 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" /> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div class="ant-pro-table-list-toolbar-setting-items" > <div class="ant-pro-table-list-toolbar-setting-item" > <span> <span aria-label="reload" class="anticon anticon-reload" role="img" > <svg aria-hidden="true" data-icon="reload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" /> </svg> </span> </span> </div> <div class="ant-pro-table-list-toolbar-setting-item" > <span> <span aria-label="column-height" class="anticon anticon-column-height ant-dropdown-trigger" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="column-height" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" /> </svg> </span> </span> </div> <div class="ant-pro-table-list-toolbar-setting-item" > <span aria-label="setting" class="anticon anticon-setting" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-middle ant-table-empty" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > 状态(number) </th> <th class="ant-table-cell" scope="col" > 状态(number) </th> <th class="ant-table-cell" scope="col" > 状态(boolean) </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-placeholder" > <td class="ant-table-cell" colspan="3" > <div class="ant-empty ant-empty-normal" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > 暂无数据 </div> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`docs/components demos > 📸 renders ./docs/components/valueType.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="valueType 选择" > valueType 选择 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-search" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="文本框" > 文本框 </span> </div> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="text" title="编辑器" > 编辑器 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-m" > <input class="ant-input" id="text" placeholder="请输入" type="text" value="123456" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="text" title="只读" > 只读 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 123456 </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `;
9,110
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/card/checkcard.test.tsx
import { CheckCard } from '@ant-design/pro-components'; import { act, cleanup, render, waitFor } from '@testing-library/react'; afterEach(() => { cleanup(); }); describe('CheckCard', () => { it('should invoke onChange and onClick function when click option', async () => { const onChange = vi.fn(); const onClick = vi.fn(); const wrapper = render( <CheckCard title="示例一" onChange={(e) => { onChange(e); }} onClick={onClick} />, ); /** * 执行 React Testing Library 中的 act 方法。 */ act(() => { // 从组件渲染后生成的容器中选择 `.ant-pro-checkcard` 元素,并模拟点击事件。 wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); /** * 等待直到满足条件,然后执行一系列断言。 */ await waitFor(() => { // 断言 onChange 回调函数已被调用,并且传入参数为 true。 expect(onChange).toBeCalledWith(true); // 断言 onClick 回调函数已被调用。 expect(onClick).toHaveBeenCalled(); }); }); it('should invoke onChange function when group click option', async () => { const onChange = vi.fn(); const wrapper = render( <CheckCard.Group onChange={(e) => onChange(e)} options={[ { title: '苹果', value: 'Apple' }, { title: '梨', value: 'Pear' }, { title: '橙子', value: 'Orange' }, ]} size="large" />, ); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenLastCalledWith('Apple'); }); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenLastCalledWith(undefined); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLDivElement>('.ant-pro-checkcard')[1] ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenLastCalledWith('Pear'); }); }); it('should be controlled by value', () => { const wrapper = render( <CheckCard.Group options={[ { title: '苹果', value: 'Apple' }, { title: '梨', value: 'Pear' }, { title: '橙子', value: 'Orange' }, ]} />, ); expect( wrapper.baseElement.querySelectorAll<HTMLDivElement>( '.ant-pro-checkcard-checked', ).length, ).toBe(0); act(() => { wrapper.rerender( <CheckCard.Group options={[ { title: '苹果', value: 'Apple' }, { title: '梨', value: 'Pear' }, { title: '橙子', value: 'Orange' }, ]} value={['Apple']} />, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLDivElement>( '.ant-pro-checkcard-checked', ).length, ).toBe(0); wrapper.unmount(); }); it('should invoke onChange function when group click option in multiple mode', async () => { const onChange = vi.fn(); const wrapper = render( <CheckCard.Group onChange={(e) => onChange(e)} options={['Apple', 'Pear', 'Orange']} size="large" multiple />, ); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenLastCalledWith(['Apple']); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLDivElement>('.ant-pro-checkcard')[1] ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenLastCalledWith(['Apple', 'Pear']); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLDivElement>('.ant-pro-checkcard')[1] ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenLastCalledWith(['Apple']); }); }); it('should support defaultValue', async () => { const onChange = vi.fn(); const wrapper = render( <CheckCard.Group onChange={(e) => onChange(e)} defaultValue="A"> <CheckCard title="Card A" description="选项一" value="A" /> <CheckCard title="Card B" description="选项二" value="B" /> </CheckCard.Group>, ); expect( wrapper.baseElement .querySelector('.ant-pro-checkcard') ?.className.includes('ant-pro-checkcard-checked'), ).toBeTruthy(); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenCalledWith(undefined); }); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenCalledWith('A'); }); }); it('should support defaultValue in multiple mode', async () => { const onChange = vi.fn(); const wrapper = render( <CheckCard.Group onChange={(e) => onChange(e)} defaultValue={['A']} multiple > <CheckCard title="Card A" description="选项一" value="A" /> <CheckCard title="Card B" description="选项二" value="B" /> </CheckCard.Group>, ); expect( wrapper.baseElement .querySelector('.ant-pro-checkcard') ?.className.includes('ant-pro-checkcard-checked'), ).toBeTruthy(); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenCalledWith([]); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLDivElement>('.ant-pro-checkcard')[1] ?.click(); }); await waitFor(() => { expect(onChange).toHaveBeenCalledWith(['B']); }); }); it('should disabled onChange when group disabled', async () => { const onChange = vi.fn(); const wrapper = render( <CheckCard.Group onChange={(e) => onChange(e)} disabled defaultValue="A"> <CheckCard title="Card A" description="选项一" value="A" /> <CheckCard title="Card B" description="选项二" value="B" /> </CheckCard.Group>, ); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-checkcard') ?.click(); }); await waitFor(() => { expect(onChange).not.toHaveBeenCalled(); }); }); it('should display when title is number zero', async () => { const wrapper = render(<CheckCard title={0} />); expect( wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-checkcard-title', )?.innerHTML, ).toBe('0'); }); });
9,111
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/card/demo.test.ts
import demoTest from '../demo'; demoTest('card');
9,112
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/card/index.test.tsx
import { ProCard } from '@ant-design/pro-components'; import { act, cleanup, render } from '@testing-library/react'; vi.mock('antd/lib/grid/hooks/useBreakpoint'); afterEach(() => { cleanup(); }); describe('Card', () => { it('🥩 collapsible onCollapse', async () => { const fn = vi.fn(); const wrapper = render( <ProCard title="父节点"> <ProCard title="可折叠" headerBordered collapsible defaultCollapsed onCollapse={fn} colSpan={{ xs: 24, }} > 内容 </ProCard> , </ProCard>, ); await wrapper.findAllByText('可折叠'); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-card-collapsible-icon') ?.click(); }); expect(fn).toBeCalled(); }); it('🥩 collapsible defaultCollapsed', async () => { const wrapper = render( <ProCard title="可折叠" headerBordered collapsible defaultCollapsed> 内容 </ProCard>, ); await wrapper.findAllByText('可折叠'); expect( !!wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-card-collapse', ), ).toBeTruthy(); }); it('🥩 collapsible collapsed', async () => { const wrapper = render( <ProCard title="可折叠" headerBordered collapsed> 内容 </ProCard>, ); await wrapper.findAllByText('可折叠'); expect( !!wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-card-collapse', ), ).toBeTruthy(); act(() => { wrapper.rerender( <ProCard title="可打开" headerBordered collapsed={false}> 内容 </ProCard>, ); }); await wrapper.findAllByText('可打开'); expect( !!wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-card-collapse', ), ).toBeFalsy(); }); it('🥩 collapsible icon custom render with defaultCollapsed', async () => { const wrapper = render( <ProCard title="可折叠-图标自定义" collapsibleIconRender={({ collapsed }: { collapsed: boolean }) => collapsed ? <span>更多</span> : <span>收起</span> } headerBordered defaultCollapsed collapsible > 内容 </ProCard>, ); await wrapper.findAllByText('可折叠-图标自定义'); act(() => { expect( !!wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-card-collapse', ), ).toBeTruthy(); }); const dom = await wrapper.findByText('更多'); expect(!!dom).toBe(true); }); it('🥩 collapsible icon custom render', async () => { const wrapper = render( <ProCard title="可折叠-图标自定义" collapsibleIconRender={({ collapsed }: { collapsed: boolean }) => collapsed ? <span>更多</span> : <span>收起</span> } defaultCollapsed={false} collapsible extra={ <div> <span>操作</span> </div> } > 内容 </ProCard>, ); await wrapper.findAllByText('可折叠-图标自定义'); expect( !!wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-card'), ).toBeTruthy(); expect( !!wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-card-collapse', ), ).toBeFalsy(); const dom = await wrapper.findByText('收起'); expect(!!dom).toBe(true); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-card-extra') ?.click(); }); wrapper.unmount(); }); it('🥩 tabs onChange', async () => { const fn = vi.fn(); const wrapper = render( <ProCard tabs={{ onChange: fn, items: [ { label: 'tab1', key: 'tab1', children: '产品一', }, { label: 'tab2', key: 'tab2', children: '产品二', }, ], }} />, ); act(() => { wrapper.baseElement .querySelectorAll<HTMLDivElement>('.ant-pro-card-tabs .ant-tabs-tab')[1] ?.click(); }); expect(fn).toHaveBeenCalledWith('tab2'); wrapper.unmount(); }); });
9,113
0
petrpan-code/ant-design/pro-components/tests/card
petrpan-code/ant-design/pro-components/tests/card/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/avatar.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content ant-pro-checkcard-avatar-header" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-icon" style="background-color: rgb(114, 101, 230);" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例标题 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/basic.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-checked ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例一 </div> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/compose.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <h3> 只有图片时 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> </div> </div> <h3> 只有图片和描述时 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 </div> </div> </div> </div> <h3> 只有标题和描述时 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例 </div> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 </div> </div> </div> </div> <h3> 只有标题和图片 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content ant-pro-checkcard-avatar-header" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例 </div> </div> </div> </div> </div> </div> <h3> 只有标题 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例 </div> </div> </div> </div> </div> </div> <h3> 只有描述时 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/custom.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 200px; height: 200px;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card title </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/defaultChecked.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-checked ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content ant-pro-checkcard-avatar-header" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例二 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/description.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 默认描述区域不会进行折行 </div> </div> </div> <div class="ant-pro-checkcard-description" > <span> 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 <a href="" > 查看详情 </a> </span> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 你可以通过排版组件进行省略 </div> </div> </div> <div class="ant-pro-checkcard-description" > <div class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-multiple-line" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/disabled.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <h3> 部分不可用 </h3> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card title </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-disabled ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card title </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-checked ant-pro-checkcard-disabled ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card title </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> </div> <div> <h3> 整体不可用 </h3> <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-checked ant-pro-checkcard-disabled ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card A </div> </div> </div> <div class="ant-pro-checkcard-description" > 选项一 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-disabled ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card B </div> </div> </div> <div class="ant-pro-checkcard-description" > 选项二 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/extra.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 48px; height: 48px; line-height: 48px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/f601048d-61c2-44d0-bf57-ca1afe7fd92e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 示例一 </div> </div> <div class="ant-pro-checkcard-extra" > <span aria-label="ellipsis" class="anticon anticon-ellipsis ant-dropdown-trigger" role="img" style="font-size: 22px; color: rgba(0, 0, 0, 0.5);" tabindex="-1" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念。 </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <form class="ant-form ant-form-vertical" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox-group" title="技术栈" > 技术栈 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-checkcard-group" id="checkbox-group" style="width: 100%;" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/2dd637c7-5f50-4d89-a819-33b3d6da73b6.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Spring Boot </div> </div> </div> <div class="ant-pro-checkcard-description" > 通过业界流行的技术栈来快速构建 Java 后端应用 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/6935b98e-96f6-464f-9d4f-215b917c6548.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > SOFA Boot </div> </div> </div> <div class="ant-pro-checkcard-description" > 使用 SOFAStack 中间件来快速构建分布式后端应用 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/d12c3392-61fa-489e-a82c-71de0f888a8e.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Node JS </div> </div> </div> <div class="ant-pro-checkcard-description" > 使用前后端统一的语言方案快速构建后端应用 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button class="ant-btn ant-btn-primary" type="submit" > <span> Submit </span> </button> </div> </div> </div> </div> </div> </form> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/grid.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard-group" style="width: 100%;" > <div class="ant-row" > <div class="ant-col ant-col-8" > <div class="ant-pro-checkcard ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card A </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" > <div class="ant-pro-checkcard ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card B </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" > <div class="ant-pro-checkcard ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card C </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/group.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px; background-color: rgb(247, 248, 250);" > <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 🍎 Apple </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 🍐 Pear </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 🍊 Orange </div> </div> </div> </div> </div> </div> </div> <br /> <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-sm ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> </div> <br /> <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 🍊 Orange </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 🍐 Pear </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 🍎 Apple </div> </div> </div> </div> </div> </div> </div> <br /> <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/image.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-cover" > <img alt="example" height="240" src="https://gw.alipayobjects.com/mdn/rms_66ee3f/afts/img/A*FyH5TY53zSwAAAAAAAAAAABkARQnAQ" /> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-cover" > <img alt="checkcard" src="https://gw.alipayobjects.com/mdn/rms_66ee3f/afts/img/A*FyH5TY53zSwAAAAAAAAAAABkARQnAQ" /> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/list.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px; background-color: rgb(247, 248, 250);" > <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 32px; height: 32px; line-height: 32px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/ae0adacf-9456-4ed3-b1ab-51e4417d8d0c.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 图像分类 </div> </div> </div> <div class="ant-pro-checkcard-description" > 这是一段关于该算法的说明 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 32px; height: 32px; line-height: 32px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/ae0adacf-9456-4ed3-b1ab-51e4417d8d0c.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 物体检测 </div> </div> </div> <div class="ant-pro-checkcard-description" > 这是一段关于该算法的说明 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 32px; height: 32px; line-height: 32px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/ae0adacf-9456-4ed3-b1ab-51e4417d8d0c.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > OCR自定义 </div> </div> </div> <div class="ant-pro-checkcard-description" > 这是一段关于该算法的说明 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 32px; height: 32px; line-height: 32px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/ae0adacf-9456-4ed3-b1ab-51e4417d8d0c.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > OCR </div> </div> </div> <div class="ant-pro-checkcard-description" > 这是一段关于该算法的说明 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 32px; height: 32px; line-height: 32px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/ae0adacf-9456-4ed3-b1ab-51e4417d8d0c.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 视频分类 </div> </div> </div> <div class="ant-pro-checkcard-description" > 这是一段关于该算法的说明 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-avatar" > <span class="ant-avatar ant-avatar-square ant-avatar-image" style="width: 32px; height: 32px; line-height: 32px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/bmw-prod/ae0adacf-9456-4ed3-b1ab-51e4417d8d0c.svg" /> </span> </div> <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 关键点检测 </div> </div> </div> <div class="ant-pro-checkcard-description" > 这是一段关于该算法的说明 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/loading.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-loading ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> <div class="ant-col ant-col-14" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-checkcard-loading-block" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/multiple.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-checked ant-pro-checkcard-multiple ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card A </div> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-multiple ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card B </div> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/single.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard-group" > <div class="ant-pro-checkcard ant-pro-checkcard-checked ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card A </div> </div> </div> <div class="ant-pro-checkcard-description" > 选项一 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card B </div> </div> </div> <div class="ant-pro-checkcard-description" > 选项二 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-disabled ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card C </div> </div> </div> <div class="ant-pro-checkcard-description" > 选项三,这是一个不可选项 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/size.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="margin-block-end: 16px;" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="large" /> <span class="ant-radio-button-inner" /> </span> <span> Large </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="default" /> <span class="ant-radio-button-inner" /> </span> <span> Default </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > Card title </div> </div> </div> <div class="ant-pro-checkcard-description" > This is the description </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/CheckCard/demos/title.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <div style="display: flex; align-items: center;" > <span aria-label="appstore" class="anticon anticon-appstore" role="img" > <svg aria-hidden="true" data-icon="appstore" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z" /> </svg> </span> <span style="margin-inline-end: 8px; margin-inline-start: 8px;" > 示例 </span> <span class="ant-tag ant-tag-blue" > blue </span> </div> </div> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念 </div> </div> </div> </div> <div class="ant-pro-checkcard ant-pro-checkcard-bordered" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > 标题内容过长会自动进行省略,标题内容过长会自动进行省略 </div> </div> </div> <div class="ant-pro-checkcard-description" > 选择一个由流程编排提供的典型用户案例,可以从中学习到流程编排很多设计理念 </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/basic.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card" style="width: 268px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> 部门一 </span> </div> <div class="ant-space-item" > <span aria-label="right" class="anticon anticon-right" role="img" style="color: rgba(0, 0, 0, 0.88);" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </div> </div> </div> <div class="ant-pro-card-extra" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > ¥ </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,102,893 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline" > <div class="ant-statistic-title" > 实际完成度 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 82.3% </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline" > <div class="ant-statistic-title" > 当前目标 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > ¥6000 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="chart" src="https://gw.alipayobjects.com/zos/alicdn/BA_R9SIAV/charts.svg" width="100%" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/chart.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card" style="max-width: 480px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 大盘趋势 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-pro-card-extra" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-statistic-card-chart" > <img alt="柱状图" src="https://gw.alipayobjects.com/zos/alicdn/a-LN9RTYq/zhuzhuangtu.svg" width="100%" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/fomula.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 服务网格数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 500 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-operation" > = </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 未发布 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 234 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-operation" > + </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布中 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-operation" > + </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 已发布 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 255 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/footer.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card" style="width: 250px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 整体流量评分 </div> <div class="ant-pro-card-extra" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 86 </span> <span class="ant-statistic-content-value-decimal" > .2 </span> </span> <span class="ant-statistic-content-suffix" > 分 </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline" > <div class="ant-statistic-title" > 排名前 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 20% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="进度条" src="https://gw.alipayobjects.com/zos/alicdn/PmKfn4qvD/mubiaowancheng-lan.svg" width="100%" /> </div> </div> <div class="ant-pro-statistic-card-footer" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-horizontal" > <div class="ant-statistic-title" > 累计注册数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 15 </span> <span class="ant-statistic-content-value-decimal" > .1 </span> </span> <span class="ant-statistic-content-suffix" > 万 </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-horizontal" > <div class="ant-statistic-title" > 本月注册数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 15 </span> <span class="ant-statistic-content-value-decimal" > .1 </span> </span> <span class="ant-statistic-content-suffix" > 万 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/group.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 核心指标 </div> </div> <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 今日UV <span aria-label="question-circle" class="anticon anticon-question-circle ant-pro-card-statistic-tip" role="img" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 79 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> <span class="ant-statistic-content-suffix" > 元 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 信息完整度 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 92 </span> </span> <span class="ant-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> <span class="ant-statistic-content-suffix" > 元 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/group-chart.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 20,190,102 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> <span class="ant-statistic-content-suffix" > 元 </span> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="直方图" src="https://gw.alipayobjects.com/zos/alicdn/RLeBTRNWv/bianzu%25252043x.png" width="100%" /> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 设计资源数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 234 </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="直方图" src="https://gw.alipayobjects.com/zos/alicdn/RLeBTRNWv/bianzu%25252043x.png" width="100%" /> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 信息完成度 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 5 </span> </span> <span class="ant-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="直方图" src="https://gw.alipayobjects.com/zos/alicdn/RLeBTRNWv/bianzu%25252043x.png" width="100%" /> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/horizontal.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card" style="width: 584px;" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content ant-pro-statistic-card-content-horizontal" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> <span class="ant-statistic-content-suffix" > 元 </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 周同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 月同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart ant-pro-statistic-card-chart-right" > <img alt="折线图" src="https://gw.alipayobjects.com/zos/alicdn/snEBTn9ax/zhexiantuchang.svg" width="100%" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/horizontal-left.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card" style="max-width: 584px;" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content ant-pro-statistic-card-content-horizontal" > <div class="ant-pro-statistic-card-chart ant-pro-statistic-card-chart-left" > <img alt="折线图" src="https://gw.alipayobjects.com/zos/alicdn/snEBTn9ax/zhexiantuchang.svg" width="100%" /> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> <span class="ant-statistic-content-suffix" > 元 </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 周同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 月同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/icon.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-icon" > <img alt="icon" src="https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*dr_0RKvVzVwAAAAAAAAAAABkARQnAQ" style="display: block; width: 42px; height: 42px;" /> </div> <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 支付金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 2,176 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-icon" > <img alt="icon" src="https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*-jVKQJgA1UgAAAAAAAAAAABkARQnAQ" style="display: block; width: 42px; height: 42px;" /> </div> <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 访客数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 475 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-icon" > <img alt="icon" src="https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*FPlYQoTNlBEAAAAAAAAAAABkARQnAQ" style="display: block; width: 42px; height: 42px;" /> </div> <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 成功订单数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 87 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-icon" > <img alt="icon" src="https://gw.alipayobjects.com/mdn/rms_7bc6d8/afts/img/A*pUkAQpefcx8AAAAAAAAAAABkARQnAQ" style="display: block; width: 42px; height: 42px;" /> </div> <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 浏览量 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,754 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/layout.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 数据概览 </div> <div class="ant-pro-card-extra" > 2019年9月28日 星期五 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col ant-pro-card-split-horizontal" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col ant-pro-card-split-horizontal" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 昨日全部流量 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 234 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 较本月平均流量 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 8.04% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 本月累计流量 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 234 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 月同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 8.04% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 运行中实验 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 12/56 </span> <span class="ant-statistic-content-suffix" > 个 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 历史实验总数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 134 </span> </span> <span class="ant-statistic-content-suffix" > 个 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 流量走势 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-statistic-card-chart" > <img src="https://gw.alipayobjects.com/zos/alicdn/_dZIob2NB/zhuzhuangtu.svg" width="100%" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 流量占用情况 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-statistic-card-chart" > <img alt="大盘" src="https://gw.alipayobjects.com/zos/alicdn/qoYmFMxWY/jieping2021-03-29%252520xiawu4.32.34.png" width="100%" /> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/status.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 全部 <span aria-label="question-circle" class="anticon anticon-question-circle ant-pro-card-statistic-tip" role="img" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 10 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider" /> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 未发布 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 5 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-processing" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布中 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 3 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布异常 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 2 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-success" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布成功 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > - </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/tabs.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-tabs" > <div class="ant-tabs ant-tabs-top" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="1" > <div aria-controls="rc-tabs-test-panel-1" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-1" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px; border-inline-end: 1px solid #f0f0f0;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 全部 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 10 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="2" > <div aria-controls="rc-tabs-test-panel-2" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-2" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 未发布 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 5 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="3" > <div aria-controls="rc-tabs-test-panel-3" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-3" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-processing" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布中 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 3 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="4" > <div aria-controls="rc-tabs-test-panel-4" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-4" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布异常 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="5" > <div aria-controls="rc-tabs-test-panel-5" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-5" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-success" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布成功 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-1" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-1" role="tabpanel" style="width: 100%;" tabindex="0" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div style="display: flex; align-items: center; justify-content: center; background-color: rgb(250, 250, 250); height: 100px;" > 关联展示内容 全部 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/tabs-statistic.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-tabs" > <div class="ant-tabs ant-tabs-top" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="1" > <div aria-controls="rc-tabs-test-panel-1" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-1" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px; border-inline-end: 1px solid #f0f0f0;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 全部 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 10 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="2" > <div aria-controls="rc-tabs-test-panel-2" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-2" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 未发布 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 5 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="3" > <div aria-controls="rc-tabs-test-panel-3" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-3" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-processing" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布中 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 3 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="4" > <div aria-controls="rc-tabs-test-panel-4" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-4" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布异常 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-tab" data-node-key="5" > <div aria-controls="rc-tabs-test-panel-5" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-5" role="tab" tabindex="0" > <div class="ant-pro-card-statistic" style="width: 120px;" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-status" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-success" /> </span> </div> <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 发布成功 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1 </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-1" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-1" role="tabpanel" style="width: 100%;" tabindex="0" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div style="display: flex; align-items: center; justify-content: center; background-color: rgb(250, 250, 250); height: 100px;" > 关联展示内容 全部 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/total.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 总流量(人次) </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 601,986,875 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content ant-pro-statistic-card-content-horizontal" > <div class="ant-pro-statistic-card-chart ant-pro-statistic-card-chart-left" > <img alt="百分比" src="https://gw.alipayobjects.com/zos/alicdn/ShNDpDTik/huan.svg" width="100%" /> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 付费流量 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 3,701,928 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline" > <div class="ant-statistic-title" > 占比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 61.5% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content ant-pro-statistic-card-content-horizontal" > <div class="ant-pro-statistic-card-chart ant-pro-statistic-card-chart-left" > <img alt="百分比" src="https://gw.alipayobjects.com/zos/alicdn/6YR18tCxJ/huanlv.svg" width="100%" /> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 免费流量 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,806,062 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline" > <div class="ant-statistic-title" > 占比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 38.5% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/total-layout.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical ant-pro-card-col-6" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 财年业绩目标 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 82 </span> <span class="ant-statistic-content-value-decimal" > .6 </span> </span> <span class="ant-statistic-content-suffix" > 亿 </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="进度条" src="https://gw.alipayobjects.com/zos/alicdn/PmKfn4qvD/mubiaowancheng-lan.svg" width="100%" /> </div> </div> <div class="ant-pro-statistic-card-footer" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-horizontal" > <div class="ant-statistic-title" > 财年业绩完成率 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 70.98% </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-horizontal" > <div class="ant-statistic-title" > 去年同期业绩完成率 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 86.98% </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-horizontal" > <div class="ant-statistic-title" > 前年同期业绩完成率 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 88.98% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-statistic-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 财年总收入 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 601,987,768 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 6.15% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="折线图" src="https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg" width="100%" /> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 大盘总收入 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,982,312 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 6.15% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 当日排名 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 6 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 3.85% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="折线图" src="https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg" width="100%" /> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 近7日收入 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 17,458 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-statistic-card" > <div class="ant-pro-card-body" > <div class="ant-pro-statistic-card-content " > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 财年业绩收入排名 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 2 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-statistic-card-chart" > <img alt="折线图" src="https://gw.alipayobjects.com/zos/alicdn/zevpN7Nv_/xiaozhexiantu.svg" width="100%" /> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-vertical" > <div class="ant-statistic-title" > 月付费个数 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 601 </span> </span> </div> </div> <div class="ant-pro-card-statistic-description" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 日同比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 6.47% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/components/StatisticCard/demos/trend.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-statistic-card" style="width: 160px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-up" > <div class="ant-statistic-title" > 日环比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-up" /> </span> <span class="ant-statistic-content-value" > 7.60% </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline ant-pro-card-statistic-trend-down" > <div class="ant-statistic-title" > 周环比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <div class="ant-pro-card-statistic-trend-icon ant-pro-card-statistic-trend-icon-down" /> </span> <span class="ant-statistic-content-value" > 7.60% </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-statistic" > <div class="ant-pro-card-statistic-wrapper" > <div class="ant-pro-card-statistic-content" > <div class="ant-statistic ant-pro-card-statistic-layout-inline" > <div class="ant-statistic-title" > 周环比 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > 0.00% </span> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/actions.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-card ant-pro-card-border" style="max-width: 300px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > Actions 操作项 </div> </div> <div class="ant-pro-card-body" > <div> Card content </div> <div> Card content </div> <div> Card content </div> </div> <ul class="ant-pro-card-actions" > <li class="ant-pro-card-actions-item" style="width: 33.333333333333336%; padding: 0px; margin: 0px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </li> <li class="ant-pro-card-actions-item" style="width: 33.333333333333336%; padding: 0px; margin: 0px;" > <span aria-label="edit" class="anticon anticon-edit" role="img" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </li> <li class="ant-pro-card-actions-item" style="width: 33.333333333333336%; padding: 0px; margin: 0px;" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </li> </ul> </div> </div> <div class="ant-space-item" > <div class="ant-pro-card ant-pro-card-border" style="max-width: 300px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 单独的 Actions 操作项 </div> </div> <div class="ant-pro-card-body" > <div> Card content </div> <div> Card content </div> <div> Card content </div> </div> <ul class="ant-pro-card-actions" > <div style="display: flex; align-items: center; justify-content: center; padding: 12px; flex: 1; gap: 8px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> 设置 </div> </ul> </div> </div> <div class="ant-space-item" > <div class="ant-pro-card ant-pro-card-border" style="max-width: 300px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 无 Actions 操作项 </div> </div> <div class="ant-pro-card-body" > <div> Card content </div> <div> Card content </div> <div> Card content </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/basic.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border" style="max-width: 300px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 默认尺寸 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-pro-card-extra" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" id="Enable" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 启用 </span> <span class="ant-switch-inner-unchecked" > 禁用 </span> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-body" > <div> Card content </div> <div> Card content </div> <div> Card content </div> </div> </div> <div class="ant-pro-card ant-pro-card-box-shadow" style="max-width: 300px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 带卡片阴影 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-pro-card-extra" > extra </div> </div> <div class="ant-pro-card-body" > <div> Card content </div> <div> Card content </div> <div> Card content </div> </div> </div> <div class="ant-pro-card ant-pro-card-size-small" style="max-width: 300px; margin-block-start: 24px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 小尺寸卡片 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-pro-card-extra" > extra </div> </div> <div class="ant-pro-card-body" > <div> Card content </div> <div> Card content </div> <div> Card content </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/bordered.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border" style="max-width: 300px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 标题 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-pro-card-extra" > extra </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/collapsible.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="display: flex; flex-direction: column; padding: 24px; gap: 12px;" > <div class="ant-pro-card ant-pro-card-collapse" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 可折叠 </div> <div class="ant-pro-card-extra" > <button class="ant-btn ant-btn-default ant-btn-sm" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-collapse" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 可折叠 </div> <div class="ant-pro-card-extra" > <button class="ant-btn ant-btn-default ant-btn-sm" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-size-small ant-pro-card-collapse" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 可折叠 </div> <div class="ant-pro-card-extra" > <button class="ant-btn ant-btn-default ant-btn-sm" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> <div class="ant-pro-card ant-pro-card-collapse" style="margin-block-start: 16px;" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 可折叠-受控自定义 </div> <div class="ant-pro-card-extra" > <span aria-label="right" class="anticon anticon-right" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> <div class="ant-pro-card ant-pro-card-collapse" style="margin-block-start: 16px;" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span> 收起 - </span> 可折叠-图标自定义 </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/colspan.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan - 24 </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-24" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan - 12 </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-24" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan - 8 </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-0" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan - 0 </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 24栅格 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-12" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan-12 </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-6" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan-6 </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-6" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan-6 </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" style="margin-block-start: 8px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="width: 200px; flex-shrink: 0; padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > colSpan - 200px </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Auto </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" style="margin-block-start: 8px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Auto </div> </div> </div> <div class="ant-pro-card-col" style="width: 30%; flex-shrink: 0; padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > colSpan - 30% </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/divider.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 核心指标 </div> </div> <div class="ant-pro-card-body" style="padding: 0px;" > <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > 今日UV </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 79 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> <span class="ant-statistic-content-value-decimal" > .00 </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > 信息完整度 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 93 </span> </span> <span class="ant-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-divider ant-pro-card-divider-vertical" /> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-statistic" > <div class="ant-statistic-title" > 冻结金额 </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 112,893 </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/group.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-header ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" style="transform: rotate(90deg);" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 卡片组展开 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > 卡片内容 </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > 卡片内容 </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > 卡片内容 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/gutter.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="width: 30%; flex-shrink: 0; padding-inline-end: 8px; padding-inline-start: 8px; padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > title </div> </div> <div class="ant-pro-card-body" > 300px </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 8px; padding-inline-start: 8px; padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Auto </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 16px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px; padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Responsive </div> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px; padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Responsive </div> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px; padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Responsive </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 16px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Auto </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Auto </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body" > Auto </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/headerBordered.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" style="max-width: 300px;" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 标题 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-pro-card-extra" > extra </div> </div> <div class="ant-pro-card-body" > 内容 </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/headless.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" style="max-width: 300px;" > <div class="ant-pro-card-body" > 内容 </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/hoverable.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-hoverable" style="max-width: 300px;" > <div class="ant-pro-card-body" > 内容 </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/inner.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 横向内部卡片 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card ant-pro-card-border ant-pro-card-type-inner" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 内部卡片标题 </div> </div> <div class="ant-pro-card-body" > 内部卡片内容 </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card ant-pro-card-border ant-pro-card-type-inner" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 内部卡片标题 </div> </div> <div class="ant-pro-card-body" > 内部卡片内容 </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card" style="margin-block-start: 8px;" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 竖向内部卡片 </div> </div> <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border ant-pro-card-type-inner" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 内部卡片标题 </div> </div> <div class="ant-pro-card-body" > 内部卡片内容 </div> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border ant-pro-card-type-inner" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 内部卡片标题 </div> </div> <div class="ant-pro-card-body" > 内部卡片内容 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/layout.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" style="max-width: 300px; height: 200px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 标题 </div> <div class="ant-pro-card-extra" > extra </div> </div> <div class="ant-pro-card-body ant-pro-card-body-center ant-pro-card-body-direction-column" > <div> 123 </div> <div> 456 </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/loading.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-loading" style="max-width: 300px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-15" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-18" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-loading" style="max-width: 300px; margin-block-start: 16px;" > <div class="ant-pro-card-body ant-pro-card-body-center" > <div class="ant-pro-card-loading-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-22" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-8" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-15" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-6" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-18" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-13" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-9" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-3" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> <div class="ant-col ant-col-16" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-card-loading-block" /> </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-loading" style="max-width: 300px; margin-block-start: 16px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 自定义 Loading </div> <div class="ant-pro-card-extra" > extra </div> </div> <div class="ant-pro-card-body" > <div> 加载中 </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/multipleLine.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 换行 </div> </div> <div class="ant-pro-card-body ant-pro-card-body-wrap" > <div class="ant-pro-card-col ant-pro-card-col-24" style="padding-inline-end: 8px; padding-inline-start: 8px; padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-24" style="padding-inline-end: 8px; padding-inline-start: 8px; padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-24" style="padding-inline-end: 8px; padding-inline-start: 8px; padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-24" style="padding-inline-end: 8px; padding-inline-start: 8px; padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/responsive.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 24栅格 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-2" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-20" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-2" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 指定宽度px </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px; width: 50px; flex-shrink: 0;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Auto </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-contain-card" style="margin-block-start: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 指定宽度百分比 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Auto </div> </div> </div> <div class="ant-pro-card-col" style="padding-inline-end: 4px; padding-inline-start: 4px; width: 10%; flex-shrink: 0;" > <div class="ant-pro-card ant-pro-card-border" > <div class="ant-pro-card-body ant-pro-card-body-center" > Col - 百分比 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/split.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 复杂切分 </div> <div class="ant-pro-card-extra" > 2019年9月28日 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col ant-pro-card-split-horizontal" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col ant-pro-card-split-horizontal" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 昨日全部流量 </div> </div> <div class="ant-pro-card-body" > 123 </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 本月累计流量 </div> </div> <div class="ant-pro-card-body" > 234 </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 今年累计流量 </div> </div> <div class="ant-pro-card-body" > 345 </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 运行中试验 </div> </div> <div class="ant-pro-card-body" > 12/56 </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 历史试验总数 </div> </div> <div class="ant-pro-card-body" > 134 个 </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 流量趋势 </div> </div> <div class="ant-pro-card-body" > <div> 图表 </div> <div> 图表 </div> <div> 图表 </div> <div> 图表 </div> <div> 图表 </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 流量占用情况 </div> </div> <div class="ant-pro-card-body" > 右侧内容 </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/split2.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 左右分栏带标题 </div> <div class="ant-pro-card-extra" > 2019年9月28日 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" style="width: 50%; flex-shrink: 0;" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 左侧详情 </div> </div> <div class="ant-pro-card-body" > <div style="height: 360px;" > 左侧内容 </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 流量占用情况 </div> </div> <div class="ant-pro-card-body" > <div style="height: 360px;" > 右侧内容 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/split23.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" style="width: 30%; flex-shrink: 0;" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 左侧详情 </div> </div> <div class="ant-pro-card-body" > 左侧内容 </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 左右分栏子卡片带标题 </div> </div> <div class="ant-pro-card-body" > <div style="height: 360px;" > 右侧内容 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/steps-v.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" style="height: 320px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical ant-pro-card-col-6" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-steps ant-steps-vertical ant-steps-small" style="height: 100%;" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 填写基本信息 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 配置模板 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 配置访问 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 4 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 配置部署和调度 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 5 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 预览 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-18" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 流量占用情况 </div> </div> <div class="ant-pro-card-body" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" disabled="" type="button" > <span> 上一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/tabs.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="margin-block-end: 16px;" > <div class="ant-space-item" > Tab position: </div> <div class="ant-space-item" > <div class="ant-select ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="top" > top </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> <div class="ant-pro-card" > <div class="ant-pro-card-tabs" > <div class="ant-tabs ant-tabs-top" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab" data-node-key="tab1" > <div aria-controls="rc-tabs-test-panel-tab1" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-tab1" role="tab" tabindex="0" > 产品一 </div> </div> <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="tab2" > <div aria-controls="rc-tabs-test-panel-tab2" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-tab2" role="tab" tabindex="0" > 产品二 </div> </div> <div class="ant-tabs-tab" data-node-key="tab3" > <div aria-controls="rc-tabs-test-panel-tab3" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-tab3" role="tab" tabindex="0" > 产品三 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-tab2" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-tab2" role="tabpanel" tabindex="0" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > 内容二 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`card demos > 📸 renders ./packages/card/src/demos/tabs-card.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-tabs" > <div class="ant-tabs ant-tabs-top ant-tabs-card" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="tab1" > <div aria-controls="rc-tabs-test-panel-tab1" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-tab1" role="tab" tabindex="0" > 产品一 </div> </div> <div class="ant-tabs-tab" data-node-key="tab2" > <div aria-controls="rc-tabs-test-panel-tab2" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-tab2" role="tab" tabindex="0" > 产品二 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-tab1" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-tab1" role="tabpanel" tabindex="0" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > 内容一 </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `;
9,114
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/descriptions/demo.test.ts
import demoTest from '../demo'; demoTest('descriptions');
9,115
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/descriptions/editor.test.tsx
import type { ProDescriptionsActionType, ProDescriptionsItemProps, } from '@ant-design/pro-descriptions'; import Descriptions from '@ant-design/pro-descriptions'; import type { RowEditableConfig } from '@ant-design/pro-utils'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { Form, InputNumber } from 'antd'; import useMergedState from 'rc-util/es/hooks/useMergedState'; import React, { useRef } from 'react'; type DataSourceType = { id: number; title?: string; labels?: { name: string; color: string; }[]; state?: string; time?: { created_at?: number; }; children?: DataSourceType; }; const defaultData: DataSourceType = { id: 624748504, title: '🐛 [BUG]yarn install命令 antd2.4.5会报错', labels: [{ name: 'bug', color: 'error' }], time: { created_at: 1590486176000, }, state: 'processing', }; const columns: ProDescriptionsItemProps<DataSourceType>[] = [ { dataIndex: 'index', valueType: 'indexBorder', renderFormItem: () => <InputNumber />, }, { title: '标题', dataIndex: 'title', copyable: true, ellipsis: true, tip: '标题过长会自动收缩', formItemProps: { rules: [ { required: true, message: '此项为必填项', }, ], }, }, { title: '状态', dataIndex: 'state', valueType: 'select', valueEnum: { all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }, }, { title: '创建时间', dataIndex: ['time', 'created_at'], }, ]; const DescriptionsDemo = ( props: { type?: 'multiple'; defaultKeys?: React.Key[]; editorRowKeys?: React.Key[]; onEditorChange?: (editorRowKeys: React.Key[]) => void; dataSource?: DataSourceType; onDataSourceChange?: (dataSource: DataSourceType) => void; } & RowEditableConfig<DataSourceType>, ) => { const [form] = Form.useForm(); const actionRef = useRef<ProDescriptionsActionType>(); const [editableKeys, setEditorRowKeys] = useMergedState<React.Key[]>( () => props.defaultKeys || [], { value: props.editorRowKeys, onChange: props.onEditorChange, }, ); const [dataSource, setDataSource] = useMergedState< DataSourceType, DataSourceType >(props.dataSource as any, { value: props.dataSource, onChange: props.onDataSourceChange, }); return ( <Descriptions<DataSourceType> columns={columns} actionRef={actionRef} request={async () => ({ data: defaultData, total: 3, success: true, })} title={ <a id="reset_test" onClick={() => { form.resetFields(); }} > 重置 </a> } dataSource={dataSource} onDataSourceChange={setDataSource} editable={{ ...props, form, type: props.type, editableKeys, onSave: props.onSave, onChange: (keys) => setEditorRowKeys(keys), }} /> ); }; afterEach(() => { cleanup(); }); describe('Descriptions', () => { afterEach(() => { cleanup(); }); it('📝 Descriptions close editable', async () => { const wrapper = render( <Descriptions<DataSourceType> title="基本使用" columns={columns} dataSource={defaultData} />, ); await wrapper.findAllByText('基本使用'); expect(!!wrapper.baseElement.querySelector('.anticon-edit')).toBeFalsy(); }); it('📝 Descriptions support editable', async () => { const wrapper = render( <Descriptions<DataSourceType> title="基本使用" columns={columns} dataSource={defaultData} editable={{}} />, ); await wrapper.findAllByText('基本使用'); expect(!!wrapper.baseElement.querySelector('.anticon-edit')).toBeTruthy(); }); it('📝 support onEditorChange', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo onEditorChange={(keys) => { fn(keys); }} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelectorAll<HTMLSpanElement>('span.anticon-edit')[0] ?.click(); }); await waitFor(() => { expect(fn).toBeCalledWith(['title']); }); }); it('📝 support set Form', async () => { const wrapper = render(<DescriptionsDemo editorRowKeys={['title']} />); await wrapper.findAllByText('重置'); act(() => { fireEvent.change( wrapper.baseElement .querySelectorAll<HTMLSpanElement>( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('.ant-input')[0], { target: { value: 'test' } }, ); }); await waitFor(() => { expect(wrapper.queryByDisplayValue('test')).toBeTruthy(); }); act(() => { wrapper.queryByText('重置')?.click(); }); await waitFor(() => { expect( wrapper.queryByDisplayValue('🐛 [BUG]yarn install命令 antd2.4.5会报错'), ).toBeTruthy(); }); }); it('📝 renderFormItem run defaultRender', async () => { const wrapper = render( <Descriptions<DataSourceType> editable={{ editableKeys: ['title'], }} columns={[ { dataIndex: 'title', renderFormItem: (item, config) => { return config.defaultRender(item); }, }, ]} dataSource={defaultData} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('📝 columns support editable test', async () => { const wrapper = render( <Descriptions editable={{ editableKeys: ['title'], }} columns={[ { dataIndex: 'title', editable: (text, record, index) => { return index === 1; }, }, { dataIndex: 'title2', editable: false, }, ]} dataSource={defaultData} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('📝 support actionRender', async () => { const wrapper = render( <Descriptions editable={{ editableKeys: ['title'], actionRender: () => [ <div key="test" id="test"> xx </div>, ], }} columns={[ { dataIndex: 'title', editable: (text, record, index) => { return index === 1; }, }, { dataIndex: 'title2', editable: false, }, ]} dataSource={defaultData} />, ); expect(!!wrapper.queryByText('xx')).toBe(true); }); it('📝 support editorRowKeys', async () => { const wrapper = render(<DescriptionsDemo editorRowKeys={['title']} />); await wrapper.findAllByDisplayValue( '🐛 [BUG]yarn install命令 antd2.4.5会报错', ); // 第一行应该编辑态 expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input').length > 0, ).toBeTruthy(); // 第二行不应该是编辑态 expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelectorAll('input').length > 0, ).toBeFalsy(); }); it('📝 support cancel click', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo onEditorChange={(keys) => { fn(keys); }} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('span.anticon-edit') ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); act(() => { wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelector<HTMLSpanElement>(`span.anticon-close`) ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input').length > 0, ).toBeFalsy(); }); }); it('📝 support cancel click render false', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo onEditorChange={(keys) => { fn(keys); }} onCancel={async () => false} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelector<HTMLSpanElement>('span.anticon-edit') ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); act(() => { wrapper.baseElement .querySelector<HTMLSpanElement>( 'td.ant-descriptions-item .ant-descriptions-item-content', ) ?.querySelector<HTMLSpanElement>(`span.anticon-close`) ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input').length > 0, ).toBeFalsy(); }); }); it('📝 type=single, only edit one rows', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo defaultKeys={['state']} onEditorChange={(keys) => { fn(keys); }} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelector<HTMLSpanElement>('span.anticon-edit') ?.click(); }); await waitFor(() => { expect(fn).not.toBeCalled(); }); }); it('📝 type=multiple, edit multiple rows', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo type="multiple" defaultKeys={['state']} onEditorChange={(keys) => { fn(keys); }} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelector<HTMLSpanElement>('span.anticon-edit') ?.click(); }); await waitFor(() => { expect(fn).toBeCalledWith(['state', 'title']); }); }); it('📝 support onSave', async () => { const fn = vi.fn(); const wrapper = render(<DescriptionsDemo onSave={(key) => fn(key)} />); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelectorAll<HTMLSpanElement>('span.anticon-edit')[1] ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); act(() => { wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelector<HTMLSpanElement>('span.anticon-check') ?.click(); }); await waitFor(() => { expect(fn).toBeCalledWith('state'); }); }); it('📝 support onSave support false', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo onSave={async (key) => { fn(key); return false; }} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelectorAll<HTMLSpanElement>('span.anticon-edit')[1] ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); act(() => { wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelector<HTMLSpanElement>(`span.anticon-check`) ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); await waitFor(() => { expect(fn).toBeCalledWith('state'); }); }); it('📝 support onCancel', async () => { const fn = vi.fn(); const wrapper = render(<DescriptionsDemo onCancel={(key) => fn(key)} />); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelectorAll<HTMLSpanElement>('span.anticon-edit')[1] ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); act(() => { wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[1] .querySelector<HTMLSpanElement>(`span.anticon-close`) ?.click(); }); await waitFor(() => { expect(fn).toBeCalledWith('state'); }); }); it('📝 support form rules', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo onSave={(key, row) => fn(row.title)} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelectorAll<HTMLSpanElement>('span.anticon-edit')[0] ?.click(); }); await waitFor(() => { expect( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input').length > 0, ).toBeTruthy(); }); act(() => { fireEvent.change( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input')![0], { target: { value: '', }, }, ); }); act(() => { wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll<HTMLSpanElement>(`span.anticon-check`)[0] .click(); }); await waitFor(() => { // 没有通过验证,不触发 onSave expect(fn).not.toBeCalled(); }); act(() => { fireEvent.change( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelectorAll('input')![0], { target: { value: 'qixian', }, }, ); }); act(() => { fireEvent.click( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[0] .querySelector('span.anticon-check')!, {}, ); }); await waitFor(() => { expect(fn).toBeCalledWith('qixian'); }); }); it('📝 when dataIndex is array', async () => { const fn = vi.fn(); const wrapper = render( <DescriptionsDemo onSave={(key, row) => fn(row?.time?.created_at)} />, ); await wrapper.findAllByText('重置'); act(() => { wrapper.baseElement .querySelectorAll<HTMLSpanElement>('span.anticon-edit')[2] ?.click(); }); act(() => { fireEvent.change( wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[2] .querySelector(`input.ant-input`)!, { target: { value: '2021-05-26 09:42:56', }, }, ); }); act(() => { wrapper.baseElement .querySelectorAll( 'td.ant-descriptions-item .ant-descriptions-item-content', )[2] .querySelectorAll<HTMLDivElement>(`span.anticon-check`)[0] ?.click(); }); await waitFor(() => { expect(fn).toBeCalledWith('2021-05-26 09:42:56'); }); }); });
9,116
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/descriptions/index.test.tsx
import ProDescriptions from '@ant-design/pro-descriptions'; import type { ProCoreActionType } from '@ant-design/pro-utils'; import { act, cleanup, render, waitFor } from '@testing-library/react'; import { Button, Input } from 'antd'; import React from 'react'; afterEach(() => { cleanup(); }); describe('descriptions', () => { afterEach(() => { cleanup(); }); it('🥩 descriptions render valueEnum when data = 0', async () => { const { container } = render( <ProDescriptions columns={[ { dataIndex: 'status', title: '状态', valueEnum: { 0: { text: '关闭', status: 'Default' }, 1: { text: '运行中', status: 'Processing' }, 2: { text: '已上线', status: 'Success' }, 3: { text: '异常', status: 'Error' }, }, }, ]} request={async () => ({ data: { status: 0, }, })} />, ); await waitFor(() => expect( container.querySelector('span.ant-badge-status-text')?.innerHTML, ).toBe('关闭'), ); }); it('🎏 onLoadingChange test', async () => { const fn = vi.fn(); render( <ProDescriptions size="small" onLoadingChange={fn} columns={[ { dataIndex: 'money', valueType: 'money', }, ]} request={async () => { return { data: [], }; }} />, ); await waitFor(() => { expect(fn).toBeCalled(); }); }); it('🎏 loading test', async () => { vi.useFakeTimers(); const html = render( <ProDescriptions columns={[ { title: 'money', dataIndex: 'money', valueType: 'money', }, ]} request={async () => { return new Promise((resolve) => { setTimeout(() => { resolve({ data: [] }); }, 5000); }); }} />, ); act(() => { vi.advanceTimersByTime(2000); }); await waitFor(() => { expect(!!html.baseElement.querySelector('.ant-skeleton')).toBeTruthy(); }); act(() => { html.rerender( <ProDescriptions columns={[ { title: 'money', dataIndex: 'money', valueType: 'money', }, ]} loading={false} request={async () => { return new Promise((resolve) => { setTimeout(() => { resolve({ data: [] }); }, 5000); }); }} />, ); }); act(() => { vi.advanceTimersByTime(2000); }); await waitFor(() => { // props 指定为 false 后,无论 request 完成与否都不会出现 spin expect(!!html.baseElement.querySelector('.ant-skeleton')).toBeFalsy(); }); vi.useRealTimers(); }); it('🥩 test reload', async () => { const fn = vi.fn(); vi.useFakeTimers(); const actionRef = React.createRef<ProCoreActionType>(); const Reload = () => { return ( <ProDescriptions actionRef={actionRef} title="高级定义列表 request" request={async () => { fn(); return new Promise((resolve) => { setTimeout(() => { resolve({ success: true, data: { id: '这是一段文本', date: '20200730', money: '12121', }, }); }, 2000); }); }} extra={ <Button type="link" id="reload" onClick={() => { actionRef.current?.reload(); }} > 刷新 </Button> } > test reload <ProDescriptions.Item label="文本" dataIndex="id" /> <ProDescriptions.Item dataIndex="date" label="日期" valueType="date" /> <ProDescriptions.Item label="money" dataIndex="money" valueType="money" renderFormItem={() => <Input />} /> </ProDescriptions> ); }; const html = render(<Reload />); await act(() => { return vi.runOnlyPendingTimers(); }); await html.findAllByText('这是一段文本'); await waitFor(() => { expect(fn).toBeCalledTimes(1); }); act(() => { html.queryByText('刷新')?.click(); }); act(() => { actionRef.current?.reload(); }); act(() => { actionRef.current?.reload(); }); await waitFor(() => { // 因为有 loading 的控制,所有只会触发两次 expect(fn).toBeCalledTimes(2); }); vi.useRealTimers(); }); it('🥩 test reload by params', async () => { const fn = vi.fn(); vi.useFakeTimers(); const html = render( <ProDescriptions title="高级定义列表 request" request={async () => { fn(); return Promise.resolve({ success: true, data: { id: '这是一段文本', date: '20200730', money: '12121' }, }); }} extra={ <Button type="link" id="reload"> 修改 </Button> } > <ProDescriptions.Item label="文本" dataIndex="id" /> <ProDescriptions.Item dataIndex="date" label="日期" valueType="date" /> <ProDescriptions.Item label="money" dataIndex="money" valueType="money" /> </ProDescriptions>, ); await html.findAllByText('这是一段文本'); act(() => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect(fn).toBeCalledTimes(1); }); act(() => { html.rerender( <ProDescriptions title="高级定义列表 request" request={async () => { fn(); return Promise.resolve({ success: true, data: { id: '这是一段文本', date: '20200730', money: '12121' }, }); }} extra={ <Button type="link" id="reload"> 修改 </Button> } params={{ name: 'qixian' }} > <ProDescriptions.Item label="文本" dataIndex="id" /> <ProDescriptions.Item dataIndex="date" label="日期" valueType="date" /> <ProDescriptions.Item label="money" dataIndex="money" valueType="money" /> </ProDescriptions>, ); }); act(() => { vi.runOnlyPendingTimers(); }); await html.findAllByText('这是一段文本'); await waitFor(() => { expect(fn).toBeCalledTimes(2); }); vi.useRealTimers(); }); it('🥩 test request error', async () => { const fn = vi.fn(); render( <ProDescriptions title="高级定义列表 request" request={async () => { throw new Error('load error'); }} onRequestError={fn} extra={ <Button type="link" id="reload"> 修改 </Button> } > <ProDescriptions.Item label="文本" dataIndex="id" /> <ProDescriptions.Item dataIndex="date" label="日期" valueType="date" /> <ProDescriptions.Item label="money" dataIndex="money" valueType="money" /> </ProDescriptions>, ); await waitFor(() => { expect(fn).toBeCalledTimes(1); }); }); it('🏊 Progress', async () => { const html = render( <ProDescriptions> <ProDescriptions.Item label="进度条1" valueType="progress"> 40 </ProDescriptions.Item> <ProDescriptions.Item label="进度条2" valueType="progress"> -1 </ProDescriptions.Item> <ProDescriptions.Item label="进度条3" valueType="progress"> 100 </ProDescriptions.Item> </ProDescriptions>, ); await waitFor(() => { expect( html.baseElement.querySelector('.ant-progress-text')?.textContent, ).toEqual('40%'); }); await waitFor(() => { expect( !!html.baseElement .querySelectorAll('.ant-progress-text')?.[1] ?.querySelector('.anticon-close-circle'), ).toBeTruthy(); expect( !!html.baseElement .querySelectorAll('.ant-progress-text')?.[2] ?.querySelector('.anticon-check-circle'), ).toBeTruthy(); }); }); it('🏊 ProDescriptions support order', async () => { const html = render( <ProDescriptions dataSource={{ title: 'test', }} columns={[ { title: '标题', dataIndex: 'title', valueType: 'text', order: 100, }, ]} > <ProDescriptions.Item order={9} label="进度条1" valueType="progress"> 40 </ProDescriptions.Item> <ProDescriptions.Item label="进度条2" valueType="progress"> -1 </ProDescriptions.Item> <ProDescriptions.Item order={8} label="进度条3" valueType="progress"> 100 </ProDescriptions.Item> </ProDescriptions>, ); expect(html.asFragment()).toMatchSnapshot(); }); it('📝 typography support and copy', async () => { const wrapper = render( <ProDescriptions title="dataSource and columns" dataSource={{ id: '这是一段文本columns', date: '20200809', money: '1212100', state: 'all', state2: 'open', }} columns={[ { title: '文本', key: 'text', dataIndex: 'id', ellipsis: true, copyable: true, }, ]} />, ); await waitFor(() => { expect( wrapper.baseElement.querySelector( 'span.ant-descriptions-item-content div.ant-typography-copy', ), ).toBeTruthy(); }); wrapper.rerender( <ProDescriptions title="dataSource and columns" dataSource={{ id: '这是一段文本columns', date: '20200809', money: '1212100', state: 'all', state2: 'open', }} columns={[ { title: '文本', key: 'text', dataIndex: 'id', }, ]} />, ); await waitFor(() => { expect( wrapper.baseElement.querySelectorAll( '.ant-descriptions-item-content .ant-typography-copy', ).length, ).toBe(0); }); wrapper.unmount(); }); });
9,117
0
petrpan-code/ant-design/pro-components/tests/descriptions
petrpan-code/ant-design/pro-components/tests/descriptions/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/arrayDataIndex.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 高级定义列表 request </div> <div class="ant-descriptions-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 刷 新 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </div> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > 这是一段文本 </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > 2020-07-30 </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> ¥12,121.00 </span> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/base.demo-test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <div class="ant-descriptions ant-pro-descriptions" tooltip="包含了从服务器请求,columns等功能" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 高级定义列表 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > - </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/base.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" tooltip="包含了从服务器请求,columns等功能" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 高级定义列表 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> <div class="ant-descriptions-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0; max-width: 80%;" > <span class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 这是一段很长很长超级超级长的无意义说明文本并且重复了很多没有意义的词语,就是为了让它变得很长很长超级超级长这是一段很长很长超级超级长的无意义说明文本并且重复了很多没有意义的词语,就是为了让它变得很长很长超级超级长 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 金额 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> ¥100.00 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 100.00% </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 已解决 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div aria-valuenow="40" class="ant-progress ant-progress-status-active ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 40%; height: 6px;" /> </div> </div> <span class="ant-progress-text" title="40%" > 40% </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2016-11-22 15:22:44 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2016-11-22 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div> <div> 2016-11-21 15:22:44 </div> <div> 2016-11-22 15:22:44 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 15:22:44 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. </code> </pre> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> { "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": [ "**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js" ] } </code> </pre> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/columns.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" emptytext="空" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 高级定义列表request columns </div> <div class="ant-descriptions-extra" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a rel="noopener noreferrer" target="_blank" > 链路 </a> <a rel="noopener noreferrer" target="_blank" > 报警 </a> <a rel="noopener noreferrer" target="_blank" > 查看 </a> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 空 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2020-08-09 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 全部 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> ¥1,212,100.00 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > open </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2020-08-09 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 09.08.2020 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 开关 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 打开 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> ¥1,212,100.00 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money无符号 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 1,212,100.00 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money负数无符号 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> -12,345.33 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 100.00% </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > <div> 多余的dom </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 超链接 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <a href="alipay.com" > 超链接 </a> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/customization-value-type.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 自定义 valueType </div> <div class="ant-descriptions-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 刷新 </a> </div> </div> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 链接 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <a> TradeCode 1 </a> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 标签 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span class="ant-tag" > close </span> <span class="ant-tag" > close </span> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/dynamic-descriptions.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" style="min-height: 500px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" style="width: calc(100% - 580px); flex-shrink: 0;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 高级定义列表 </div> <div class="ant-descriptions-extra" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a rel="noopener noreferrer" target="_blank" > 链路 </a> <a rel="noopener noreferrer" target="_blank" > 报警 </a> <a rel="noopener noreferrer" target="_blank" > 查看 </a> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 这是一段文本columns </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 全部 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > open </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2020-08-09 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> ¥1,212,100.00 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 20.00% </span> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-card" style="width: 500px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 配置菜单 </div> </div> <div class="ant-pro-card-tabs" > <div class="ant-tabs ant-tabs-top" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="base" > <div aria-controls="rc-tabs-test-panel-base" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-base" role="tab" tabindex="0" > 基本配置 </div> </div> <div class="ant-tabs-tab" data-node-key="columns" > <div aria-controls="rc-tabs-test-panel-columns" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-columns" role="tab" tabindex="0" > 列配置 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-base" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-base" role="tabpanel" tabindex="0" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="高级定义列表" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="layout" title="布局" > 布局 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="layout_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="layout_list" autocomplete="off" class="ant-select-selection-search-input" id="layout" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="水平" > 水平 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="loading" title="加载中" > 加载中 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch" id="loading" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="size" title="尺寸" > 尺寸 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="size_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="size_list" autocomplete="off" class="ant-select-selection-search-input" id="size" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="大" > 大 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="bordered" title="边框" > 边框 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch" id="bordered" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="column" title="列数" > 列数 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-xs" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="3" autocomplete="off" class="ant-input-number-input" id="column" placeholder="请输入" role="spinbutton" step="1" value="3" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/editable.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 可编辑的定义列表 </div> <div class="ant-descriptions-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a rel="noopener noreferrer" target="_blank" > 链路 </a> <a rel="noopener noreferrer" target="_blank" > 报警 </a> <a rel="noopener noreferrer" target="_blank" > 查看 </a> </div> </div> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span aria-label="这是一段文本columns" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 这是一段文本columns <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 全部 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > open </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 分值 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > - </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > 2020-08-09 </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > Rate </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <ul class="ant-rate ant-rate-disabled" role="radiogroup" tabindex="-1" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="4" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="5" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div> 1212100 </div> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> 100.00% </span> </div> <div class="ant-space-item" > <span aria-label="edit" class="anticon anticon-edit" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="edit" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" /> </svg> </span> </div> </div> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/format.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" tooltip="包含了从服务器请求,columns等功能" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > <div class="ant-pro-core-label-tip" > <div class="ant-pro-core-label-tip-title" > 高级定义列表 </div> <span class="ant-pro-core-label-tip-icon" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2016.11.22 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div> <div> 2016.11.21 15:22:44 </div> <div> 2016.11.22 15:22:44 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 2016.11.22 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间日期 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2016.11.22 15:22:44 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 更新时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 1 个月前 </span> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/request.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > 高级定义列表 request </div> <div class="ant-descriptions-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 刷 新 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-link" type="button" > <span> 修改 </span> </button> </div> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > 这是一段文本 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2020-07-30 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> ¥12,121.00 </span> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`descriptions demos > 📸 renders ./packages/descriptions/src/demos/use-data-source.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-header" > <div class="ant-descriptions-title" > dataSource and columns </div> <div class="ant-descriptions-extra" > <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a rel="noopener noreferrer" target="_blank" > 链路 </a> <a rel="noopener noreferrer" target="_blank" > 报警 </a> <a rel="noopener noreferrer" target="_blank" > 查看 </a> </div> </div> </div> <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span aria-label="这是一段文本columns" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 这是一段文本columns <div aria-label="Copy" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="Copy" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 全部 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 状态2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > open </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > 2020-08-09 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > money </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> ¥1,212,100.00 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <span> 100.00% </span> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `;
9,118
0
petrpan-code/ant-design/pro-components/tests/descriptions
petrpan-code/ant-design/pro-components/tests/descriptions/__snapshots__/editor.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Descriptions > 📝 columns support editable test 1`] = ` <DocumentFragment> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > <div style="margin: -5px 0px -5px 0px;" > <div style="display: flex; gap: 8px; align-items: baseline;" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0; margin: 0px;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="🐛 [BUG]yarn install命令 antd2.4.5会报错" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div style="display: flex; max-height: 32px; align-items: center; gap: 8px;" > <a> <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </a> <a> <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </a> </div> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > - </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `; exports[`Descriptions > 📝 renderFormItem run defaultRender 1`] = ` <DocumentFragment> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="3" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-content" style="min-width: 0;" > <div style="margin: -5px 0px -5px 0px;" > <div style="display: flex; gap: 8px; align-items: baseline;" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0; margin: 0px;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="🐛 [BUG]yarn install命令 antd2.4.5会报错" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div style="display: flex; max-height: 32px; align-items: center; gap: 8px;" > <a> <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </a> <a> <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </a> </div> </div> </div> </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `;
9,119
0
petrpan-code/ant-design/pro-components/tests/descriptions
petrpan-code/ant-design/pro-components/tests/descriptions/__snapshots__/index.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`descriptions > 🏊 ProDescriptions support order 1`] = ` <DocumentFragment> <div class="ant-descriptions ant-pro-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 标题 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > test </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条1 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div aria-valuenow="40" class="ant-progress ant-progress-status-active ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 40%; height: 6px;" /> </div> </div> <span class="ant-progress-text" title="40%" > 40% </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条3 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div aria-valuenow="100" class="ant-progress ant-progress-status-success ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 100%; height: 6px;" /> </div> </div> <span class="ant-progress-text" > <span aria-label="check-circle" class="anticon anticon-check-circle" role="img" > <svg aria-hidden="true" data-icon="check-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="3" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条2 </span> <span class="ant-descriptions-item-content" style="min-width: 0;" > <div aria-valuenow="-1" class="ant-progress ant-progress-status-exception ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 0%; height: 6px;" /> </div> </div> <span class="ant-progress-text" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `;
9,120
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/field/datePick.test.tsx
import Field from '@ant-design/pro-field'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import dayjs from 'dayjs'; function closePicker(container: HTMLElement, index = 0) { const input = container.querySelectorAll('input')[index]; fireEvent.blur(input); } export function openPicker(container: HTMLElement, index = 0) { const input = container.querySelectorAll('input')[index]; fireEvent.mouseDown(input); fireEvent.focus(input); } afterEach(() => { cleanup(); }); describe('DateField', () => { afterEach(() => { cleanup(); }); const datePickList = [ 'date', 'dateWeek', 'dateMonth', 'dateQuarter', 'dateYear', 'dateTime', 'time', ]; datePickList.forEach((valueType) => { it(`📅 ${valueType} base use`, async () => { const fn = vi.fn(); const openChangeFn = vi.fn(); const { container } = render( <Field mode="edit" fieldProps={{ placeholder: 'time', value: dayjs(), onOpenChange: openChangeFn, }} onChange={fn} text="100" light valueType={valueType as 'date'} />, ); await act(async () => { await fireEvent.click( container.querySelector('.ant-pro-core-field-label')!, ); }); await waitFor(() => { expect(openChangeFn).toBeCalledWith(true); }); act(() => { closePicker(container); }); await waitFor(() => { expect(openChangeFn).toBeCalledWith(false); }); await act(async () => { await fireEvent.mouseDown( container.querySelector('.ant-picker-clear')!, ); await fireEvent.mouseUp(container.querySelector('.ant-picker-clear')!); }); await waitFor( () => { expect(fn).toBeCalled(); }, { timeout: 1000, }, ); }); }); const dateRangePickList = [ 'dateRange', 'dateWeekRange', 'dateMonthRange', 'dateQuarterRange', 'dateYearRange', 'dateTimeRange', 'timeRange', ]; dateRangePickList.forEach((valueType) => { it(`📅 ${valueType} base use`, async () => { const onChangeFn = vi.fn(); const openChangeFn = vi.fn(); const { container } = render( <Field mode="edit" fieldProps={{ placeholder: ['start', 'end'], value: [dayjs(), dayjs().add(1, 'd')], onOpenChange: openChangeFn, }} onChange={onChangeFn} text="100" light valueType={valueType as 'date'} />, ); await act(async () => { await fireEvent.click( container.querySelector('.ant-pro-core-field-label')!, ); }); await waitFor(() => { expect(openChangeFn).toBeCalledWith(true); }); act(() => { openPicker(container, 1); }); act(() => { closePicker(container); }); await act(async () => { await fireEvent.mouseDown( container.querySelector('.ant-picker-clear')!, ); await fireEvent.mouseUp(container.querySelector('.ant-picker-clear')!); }); await waitFor(() => { expect(openChangeFn).toBeCalledWith(false); }); await waitFor( () => { expect(onChangeFn).toBeCalled(); }, { timeout: 1000, }, ); }); }); it(`📅 RangePicker support format is function`, async () => { const fn = vi.fn(); const html = render( <Field mode="read" fieldProps={{ format: () => 'YYYY-MM-DD HH:mm:ss', }} onChange={fn} text={[dayjs(), dayjs().add(1, 'd')]} light valueType="dateRange" />, ); expect(html.baseElement.innerHTML).toBe( '<div><div><div>2016-11-22 15:22:44</div><div>2016-11-23 15:22:44</div></div></div>', ); }); it(`📅 DatePicker support format is Array`, async () => { const fn = vi.fn(); const html = render( <Field mode="read" fieldProps={{ format: ['YYYY-MM-DD', 'YYYYMMDD'], }} onChange={fn} text={dayjs()} light valueType="date" />, ); expect(html.baseElement.innerHTML).toBe('<div><div>2016-11-22</div></div>'); }); });
9,121
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/field/demo.test.ts
import demoTest from '../demo'; demoTest('field');
9,122
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/field/field.test.tsx
import Field from '@ant-design/pro-field'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { Button, Input } from 'antd'; import dayjs from 'dayjs'; import React, { useState } from 'react'; import { waitForWaitTime, waitTime } from '../util'; import Demo from './fixtures/demo'; import { TreeSelectDemo } from './fixtures/treeSelectDemo'; const domRef = React.createRef(); afterEach(() => { cleanup(); }); describe('Field', () => { afterEach(() => { cleanup(); }); it('🐴 base use', async () => { const html = render(<Field text="100" valueType="money" mode="edit" />); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 money onchange values', async () => { const html = render( <Field text="100" numberPopoverRender valueType="money" mode="edit" />, ); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: '1000' }, }); }); act(() => { fireEvent.mouseDown( html.baseElement.querySelector('.ant-input-number-input')!, {}, ); }); expect(html.baseElement.querySelector('input')?.value).toBe('¥ 1,000'); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: '¥ 100', }, }); }); expect(html.baseElement.querySelector('input')?.value).toBe('¥ 100'); html.unmount(); }); it('🐴 money onchange values, when no moneySymbol', async () => { const html = render( <Field text="100" moneySymbol={false} valueType="money" mode="edit" />, ); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: 1000 }, }); }); act(() => { fireEvent.mouseDown( html.baseElement.querySelector('.ant-input-number-input')!, {}, ); }); expect(html.baseElement.querySelector('input')?.value).toBe('1000'); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: 100 }, }); }); expect(html.baseElement.querySelector('input')?.value).toBe('100'); html.unmount(); }); it('🐴 money moneySymbol=false, no render moneySymbol', async () => { const html = render( <Field text="100" fieldProps={{ moneySymbol: false, precision: 0, }} valueType="money" mode="read" />, ); expect(html.baseElement.textContent).toBe('100'); }); it('🐴 money numberPopoverRender onchange values', async () => { const html = render( <Field text="100" numberPopoverRender={() => '1234'} valueType="money" mode="edit" />, ); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: 1000, }, }); }); await waitFor(() => { expect(!!html.queryByDisplayValue('¥ 1,000')).toBeTruthy(); }); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: '¥ 100', }, }); }); await waitFor(() => { expect(!!html.queryByDisplayValue('¥ 100')).toBeTruthy(); }); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: 111111111, }, }); }); }); it('🐴 money show Popover', async () => { const html = render( <Field text="100" numberPopoverRender fieldProps={{ visible: true, }} valueType="money" mode="edit" />, ); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: 111111111, }, }, ); }); await html.findByDisplayValue('¥ 111,111,111'); act(() => { fireEvent.click( html.baseElement.querySelector('.ant-input-number-input')!, ); fireEvent.focus( html.baseElement.querySelector('.ant-input-number-input')!, ); fireEvent.mouseEnter( html.baseElement.querySelector('.ant-input-number-input')!, ); fireEvent.mouseDown( html.baseElement.querySelector('.ant-input-number-input')!, ); }); expect(!!(await html.findByText('¥1.11亿'))).toBeTruthy(); html.unmount(); }); it('🐴 should trigger onChange function provided when change', async () => { const fn = vi.fn(); const html = render( <Field text="100" valueType="money" mode="edit" fieldProps={{ onChange: fn, onBlur: fn }} />, ); act(() => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: 1000 }, }); }); expect(fn).toBeCalled(); act(() => { fireEvent.blur(html.baseElement.querySelector('input')!, { target: { value: 1000 }, }); }); expect(fn).toBeCalledTimes(2); html.unmount(); }); it('🐴 percent=0', async () => { const html = render( <Field text={0} valueType={{ type: 'percent', showSymbol: true, showColor: true, }} mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 render 关闭 when text=0', async () => { const html = render( <Field text={0} mode="read" valueEnum={{ 0: { text: '关闭', status: 'Default' }, 1: { text: '运行中', status: 'Processing' }, 2: { text: '已上线', status: 'Success' }, 3: { text: '异常', status: 'Error' }, }} />, ); expect(html.baseElement.textContent).toBe('关闭'); html.unmount(); }); it('🐴 render select form option', async () => { const html = render( <Field text="default" valueType="select" mode="read" fieldProps={{ options: [ { label: '关闭', value: 'default' }, { label: '运行中', value: 'processing' }, { label: '已上线', value: 'success' }, { label: '异常', value: 'error' }, ], }} />, ); expect(html.baseElement.textContent).toBe('关闭'); html.unmount(); }); it(`🐴 select valueEnum key is undefined`, async () => { const html = render( <Field text="default" valueType="select" mode="read" valueEnum={{ default: undefined, processing: { text: '运行中', status: 'Processing' }, success: { text: '已上线', status: 'Success' }, error: { text: '异常', status: 'Error' }, }} />, ); expect(html.baseElement.textContent).toBe('default'); html.unmount(); }); [ 'select', 'checkbox', 'radio', 'radioButton', 'cascader', 'treeSelect', 'segmented', ].forEach((valueType) => { it(`🐴 ${valueType} read mode support render valueEnum`, async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} mode="read" ref={domRef} render={(text, _, dom) => <>pre{dom}</>} valueEnum={{ default: { text: '关闭', status: 'Default' }, processing: { text: '运行中', status: 'Processing' }, success: { text: '已上线', status: 'Success' }, error: { text: '异常', status: 'Error' }, }} />, ); await html.findAllByText('pre'); }); it(`🐴 ${valueType} read mode support request function`, async () => { vi.useFakeTimers(); const ref = React.createRef<{ fetchData: (keyWord?: string) => void; }>(); const fn = vi.fn(); const html = render( <Field ref={ref} text="default" proFieldKey={valueType} valueType={valueType as 'radio'} mode="read" request={async () => { fn(); return new Promise((resolve) => { setTimeout(() => { resolve([ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]); }, 1000); }); }} />, ); act(() => { vi.runOnlyPendingTimers(); }); await html.findAllByText('default'); expect(fn).toBeCalledTimes(1); act(() => { ref.current?.fetchData?.('test'); }); act(() => { vi.runOnlyPendingTimers(); }); expect(fn).toBeCalledTimes(2); html.unmount(); vi.useRealTimers(); }); it(`🐴 ${valueType} edit model support renderFormItem function`, async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} mode="edit" renderFormItem={() => ( <> <Input id="select" /> default </> )} valueEnum={{ 0: { text: '关闭', status: 'Default' }, 1: { text: '运行中', status: 'Processing' }, 2: { text: '已上线', status: 'Success' }, 3: { text: '异常', status: 'Error' }, }} />, ); await html.findAllByText('default'); expect(!!html.baseElement.querySelector('#select')).toBeTruthy(); html.unmount(); }); it(`🐴 ${valueType} edit model support renderFormItem return null`, async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} mode="edit" // @ts-expect-error renderFormItem={() => undefined} valueEnum={{ 0: { text: '关闭', status: 'Default' }, 1: { text: '运行中', status: 'Processing' }, 2: { text: '已上线', status: 'Success' }, 3: { text: '异常', status: 'Error' }, }} />, ); expect(html.baseElement.textContent).toBe(''); html.unmount(); }); it(`🐴 ${valueType} edit model support renderFormItem return 0`, async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} mode="edit" // @ts-expect-error renderFormItem={() => 0} valueEnum={{ 0: { text: '关闭', status: 'Default' }, 1: { text: '运行中', status: 'Processing' }, 2: { text: '已上线', status: 'Success' }, 3: { text: '异常', status: 'Error' }, }} />, ); await html.findAllByText('0'); html.unmount(); }); it('🐴 select mode=null', async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} // @ts-expect-error mode="test" valueEnum={{ 0: { text: '关闭', status: 'Default' }, 1: { text: '运行中', status: 'Processing' }, 2: { text: '已上线', status: 'Success' }, 3: { text: '异常', status: 'Error' }, }} />, ); expect(html.baseElement.textContent).toBeFalsy(); html.unmount(); }); if ( !['checkbox', 'radio', 'radioButton', 'segmented'].includes(valueType) ) { it(`🐴 ${valueType} request loading with request`, async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} mode="read" request={async () => { await waitTime(10000); return [ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]; }} />, ); expect(html.baseElement.textContent).toBe('default'); html.unmount(); }); } it(`🐴 ${valueType} request loading without request`, async () => { const html = render( <Field text="default" valueType={valueType as 'radio'} mode="read" options={[]} />, ); expect(html.baseElement.textContent).toBe('default'); html.unmount(); }); }); it('🐴 select valueEnum and request=null ', async () => { const html = render( <Field text="default" valueType="select" mode="read" />, ); expect(html.baseElement.textContent).toBe('default'); html.unmount(); }); it('🐴 select labelInValue use label', async () => { const html = render( <Field text={{ label: '不解决', value: 'test' }} fieldProps={{ labelInValue: true, }} valueType="select" mode="read" options={[ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]} />, ); expect(html.baseElement.textContent).toBe('不解决'); html.unmount(); }); it('🐴 select labelInValue use label', async () => { const html = render( <Field fieldProps={{ labelInValue: true, value: { label: '不解决', value: 'test' }, }} light valueType="select" mode="edit" options={[ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]} />, ); expect( html.baseElement.querySelector('.ant-pro-core-field-label')?.textContent, ).toBe('不解决'); html.unmount(); }); ['cascader', 'treeSelect'].map((valueType) => { it(`🐴 ${valueType} labelInValue use label`, async () => { const fn = vi.fn(); const html = render( <Field fieldProps={{ treeCheckable: true, value: [ { label: '浙江', value: 'zhejiang', }, { label: '杭州', value: 'hangzhou', }, { label: '西湖', value: 'xihu', }, ].map((item) => { return item.value; }), onDropdownVisibleChange: (e: boolean) => { fn(e); }, }} light valueType={valueType as 'cascader'} mode="edit" treeData={[ { value: 'zhejiang', label: '浙江', key: 'zhejiang', children: [ { value: 'hangzhou', label: '杭州', key: 'hangzhou', children: [ { value: 'xihu', key: 'xihu', label: '西湖', }, ], }, ], }, ]} options={[ { value: 'zhejiang', label: '浙江', key: 'zhejiang', children: [ { value: 'hangzhou', label: '杭州', key: 'hangzhou', children: [ { value: 'xihu', key: 'xihu', label: '西湖', }, ], }, ], }, ]} />, ); act(() => { fireEvent.click( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); }); await waitFor(() => { expect(fn).toBeCalledWith(true); }); act(() => { fireEvent.mouseDown( html.container.querySelector('.ant-select-selector')!, ); }); await waitFor(() => { expect(fn).toBeCalledWith(false); }); }); }); it('🐴 select text=null & valueEnum=null ', async () => { const html = render( <Field text={null} // @ts-expect-error valueEnum={null} valueType="select" mode="read" />, ); expect(html.baseElement.textContent).toBe('-'); html.unmount(); }); it('🐴 select options should change text', async () => { const html = render( <Field text="all" fieldProps={{ options: [ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ], }} valueType="select" mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('全部'); }); act(() => { html.rerender( <Field text="all" fieldProps={{ options: [], }} valueType="select" mode="read" />, ); }); await waitFor(() => { expect(html.baseElement.textContent).toBe('all'); }); html.unmount(); }); ['select', 'cascader', 'treeSelect'].forEach((valueType) => { it(`🐴 ${valueType} options fieldNames`, async () => { const html = render( <Field text={['0-0', '0-0-0']} fieldProps={{ fieldNames: { label: 'title', // select options: 'children', }, options: [ { title: 'Node1', value: '0-0', children: [ { title: 'Child Node1', value: '0-0-0', }, ], }, { title: 'Node2', value: '0-1', children: [ { title: 'Child Node3', value: '0-1-0', }, { title: 'Child Node4', value: '0-1-1', }, { title: 'Child Node5', value: '0-1-2', }, ], }, ], }} valueType={valueType as 'cascader'} mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('Node1,Child Node1'); }); act(() => { html.rerender( <Field text={['0-0', '0-0-0']} fieldProps={{ fieldNames: { label: 'title', // select options: 'children', }, options: [], }} valueType={valueType as 'cascader'} mode="read" />, ); }); await waitFor(() => { expect(html.baseElement.textContent).toBe('0-0,0-0-0'); }); }); }); it(`🐴 treeSelect searchValue control mode`, async () => { const onSearch = vi.fn(); const html = render( <TreeSelectDemo multiple={false} labelInValue={false} onSearch={(e) => { onSearch(e); console.log(e); }} />, ); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-select-selection-search-input')!, { target: { value: 'test' }, }, ); }); expect(onSearch).toHaveBeenLastCalledWith('test'); act(() => { html.rerender( <TreeSelectDemo searchValue="ProComponents" multiple={false} labelInValue={false} onSearch={onSearch} />, ); }); expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-select-selection-search-input', )?.value, ).toEqual('ProComponents'); html.unmount(); }); it(`🐴 treeSelect options single value`, async () => { vi.useFakeTimers(); const onChangeFn = vi.fn(); const TreeSelectChangeDemo = () => { const [value, setValue] = useState(); return ( <TreeSelectDemo multiple={false} labelInValue={false} onChange={(res) => { onChangeFn(Array.isArray(res)); setValue(value); }} /> ); }; const html = render(<TreeSelectChangeDemo />); await html.findAllByText('Node2'); const searchInput = html.baseElement.querySelector( 'input.ant-select-selection-search-input', ); expect(!!searchInput).toBeTruthy(); act(() => { fireEvent.change( html.baseElement.querySelector( 'input.ant-select-selection-search-input', )!, { target: { value: 'Node5', }, }, ); }); const selectTreeTitle = html.baseElement.querySelectorAll<HTMLSpanElement>( 'span.ant-select-tree-title', ); act(() => { selectTreeTitle[0]?.click(); }); expect(html.queryAllByText('Node2').length > 0).toBeTruthy(); selectTreeTitle[selectTreeTitle.length - 1]?.click(); expect(html.queryAllByText('Child Node5').length > 0).toBeTruthy(); expect(onChangeFn).toHaveBeenCalledWith(false); vi.useRealTimers(); html.unmount(); }); it(`🐴 treeSelect support request function and search, asynchronously loadData`, async () => { const requestFn = vi.fn(), onSearchFn = vi.fn(), onBlurFn = vi.fn(), loadDataFn = vi.fn(), onClearFn = vi.fn(); vi.useFakeTimers(); const TreeSelectChangeDemo = () => { const [value, setValue] = useState(); return ( <TreeSelectDemo onSearch={onSearchFn} onBlur={onBlurFn} onClear={onClearFn} loadData={async (node) => { loadDataFn(!!node); return; }} value={value} request={requestFn} onChange={() => { setValue(value); }} /> ); }; const html = render(<TreeSelectChangeDemo />); act(() => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect(requestFn).toBeCalledTimes(1); }); await html.findAllByText('Node2'); act(() => { html.baseElement .querySelectorAll<HTMLSpanElement>( 'span.ant-select-tree-switcher_close', ) [ html.baseElement.querySelectorAll( 'span.ant-select-tree-switcher_close', ).length - 1 ].click(); html.baseElement .querySelectorAll<HTMLSpanElement>( 'span.ant-select-tree-switcher_close', ) [ html.baseElement.querySelectorAll( 'span.ant-select-tree-switcher_close', ).length - 1 ].click(); }); await waitFor(() => { expect( !!html.baseElement.querySelector( 'input.ant-select-selection-search-input', ), ).toBeTruthy(); }); act(() => { fireEvent.change( html.baseElement.querySelector( 'input.ant-select-selection-search-input', )!, { target: { value: 'Node5', }, }, ); }); await waitFor(() => { expect(onSearchFn).toBeCalled(); }); act(() => { html.baseElement .querySelectorAll<HTMLSpanElement>('.ant-select-tree-switcher_close') .forEach((item) => item.click()); }); await waitFor(() => { const selectTreeTitle = html.baseElement.querySelectorAll<HTMLSpanElement>( '.ant-select-tree-title', ); expect(selectTreeTitle.length).toBe(2); }); act(() => { const selectTreeTitle = html.baseElement.querySelectorAll<HTMLSpanElement>( '.ant-select-tree-title', ); selectTreeTitle[0]?.click(); }); act(() => { const selectTreeTitle = html.baseElement.querySelectorAll<HTMLSpanElement>( '.ant-select-tree-title', ); selectTreeTitle[selectTreeTitle.length - 1]?.click(); }); await waitFor(() => { expect(html.queryAllByText('Child Node5').length > 0).toBeTruthy(); expect(html.queryAllByText('Node2').length > 0).toBeTruthy(); }); expect( html.baseElement.querySelector<HTMLInputElement>( 'input.ant-select-selection-search-input', )?.value, ).toBe(''); act(() => { fireEvent.click( html.baseElement.querySelector('span.ant-select-clear')!, {}, ); fireEvent.mouseDown( html.baseElement.querySelector('span.ant-select-clear')!, {}, ); }); await waitFor(() => { expect(onClearFn).toBeCalled(); expect(html.baseElement.textContent).toContain(''); }); act(() => { fireEvent.blur( html.baseElement.querySelector( 'input.ant-select-selection-search-input', )!, {}, ); }); expect(onBlurFn).toBeCalledTimes(1); html.unmount(); vi.useRealTimers(); }); it('🐴 edit and no plain', async () => { const html = render(<Demo plain={false} state="edit" />); expect(html.asFragment()).toMatchSnapshot(); }); it('🐴 edit and plain=true', async () => { const html = render(<Demo plain state="edit" />); expect(html.asFragment()).toMatchSnapshot(); }); it('🐴 read and plain', async () => { const html = render(<Demo plain state="read" />); expect(html.asFragment()).toMatchSnapshot(); }); it('🐴 read ant no plain', async () => { const html = render(<Demo plain={false} state="read" />); expect(html.asFragment()).toMatchSnapshot(); }); const valueTypes = [ 'password', 'money', 'textarea', 'date', 'fromNow', 'dateRange', 'dateTimeRange', 'dateTime', 'time', 'timeRange', 'switch', 'text', 'progress', 'percent', 'digit', 'digitRange', 'second', 'code', 'jsonCode', 'rate', 'image', 'color', 'slider', 'cascader', 'treeSelect', ]; valueTypes.forEach((valueType) => { it(`🐴 valueType support render ${valueType}`, async () => { const html = render( <Field ref={domRef} text="1994-07-29 12:00:00" mode="read" valueType={valueType as 'text'} render={() => <span>qixian</span>} />, ); await html.findAllByText('qixian'); expect(html.baseElement.textContent).toBe('qixian'); }); it(`🐴 valueType renderFormItem ${valueType}`, async () => { if (valueType === 'option') return; const html = render( <Field text={dayjs('2019-11-16 12:50:26').valueOf()} mode="edit" valueType={valueType as 'text'} renderFormItem={() => <span>qixian</span>} />, ); await html.findAllByText('qixian'); }); it(`🐴 ${valueType} mode="error"`, async () => { if (valueType === 'option') return; const html = render( <Field text="'2019-11-16 12:50:26'" // @ts-expect-error mode="error" valueType={valueType as 'text'} />, ); expect(html.baseElement.textContent).toBeFalsy(); }); it(`🐴 valueType render ${valueType} when text is null`, async () => { const html = render( <Field text={null} // @ts-ignore valueType={valueType} />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('-'); }); }); it(`🐴 valueType support render ${valueType} when text is null`, async () => { const html = render( <Field text={null} render={() => <>qixian</>} // @ts-ignore valueType={valueType} />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('qixian'); }); }); }); it('🐴 money valueType is Object', async () => { const renderField = (locale: string) => { const html = render( <Field text="100" valueType={{ type: 'money', locale, }} mode="edit" />, ); expect(html.asFragment()).toMatchSnapshot(); act(() => { html.rerender( <Field text="100" valueType={{ type: 'money', moneySymbol: false, locale, }} mode="read" />, ); }); expect(html.asFragment()).toMatchSnapshot(); html.rerender( <Field text="100" valueType={{ type: 'money', locale, }} mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }; renderField('en-US'); renderField('ru-RU'); renderField('ms-MY'); renderField('sr-RS'); }); it('🐴 percent support unit string', async () => { const html = render( <Field text="100%" valueType={{ type: 'percent', showSymbol: true, }} mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 percent support unit string', async () => { const html = render( <Field text="100%" valueType={{ type: 'percent', showSymbol: true, }} prefix="%" mode="edit" />, ); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '100', }, }, ); }); await html.findByDisplayValue('% 100'); }); it('🐴 percent valueType is Object', async () => { const html = render( <Field text="100" valueType={{ type: 'percent', showSymbol: true, }} mode="edit" />, ); expect(html.asFragment()).toMatchSnapshot(); act(() => { html.rerender( <Field text="100" valueType={{ type: 'percent', showSymbol: true, }} showColor mode="read" />, ); }); await waitFor(() => { expect(html.baseElement.querySelector('span')?.textContent).toBe( '+ 100.00%', ); }); html.rerender( <Field text="100" valueType={{ type: 'percent', showSymbol: true, precision: 1, }} mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('+ 100.0%'); }); html.rerender( <Field text="100" valueType={{ type: 'percent', showSymbol: true, precision: 0, }} mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('+ 100%'); }); html.rerender( <Field text="100.01" valueType={{ type: 'percent', showSymbol: true, precision: 0, }} mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('+ 100%'); }); html.rerender( <Field text="100" valueType={{ type: 'percent', showSymbol: true, precision: -1, }} mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('+ 100%'); }); html.rerender( <Field text={-100} valueType={{ type: 'percent', showSymbol: true, precision: 1, }} showColor mode="read" />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('- 100.0%'); }); }); it('🐴 percent prefix="???" onchange values', async () => { const html = render( <Field text="100" valueType={{ type: 'percent', }} prefix="???" mode="read" />, ); await waitFor(() => { // read test expect(html.baseElement.textContent).toBe('???100.00%'); }); act(() => { html.rerender( <Field text="100" valueType={{ type: 'percent', }} prefix="???" mode="edit" />, ); }); // edit test act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '123', }, }, ); }); await waitFor(() => { expect(html.baseElement.querySelector('input')?.value).toBe('??? 123'); }); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '123456', }, }, ); }); await waitFor(() => { expect(html.baseElement.querySelector('input')?.value).toBe( '??? 123,456', ); }); }); it('🐴 percent magic prefix onchange values', async () => { const words = '1234567890 ~!@#$%^&*()_+{}:"?> <?>L:'.split(''); const magicPrefix = words .map(() => words[Math.floor(Math.random() * words.length - 1)]) .join(''); const html = render( <Field text="100" valueType={{ type: 'percent', }} prefix={magicPrefix} mode="read" />, ); await waitFor(() => { // read test expect(html.baseElement.textContent).toBe(`${magicPrefix}100.00%`); }); act(() => { html.rerender( <Field text="100" valueType={{ type: 'percent', }} prefix={magicPrefix} mode="edit" />, ); }); // edit test act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '123', }, }, ); }); await waitFor(() => { expect(html.baseElement.querySelector('input')?.value).toBe( `${magicPrefix} 123`, ); }); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '123456', }, }, ); }); await waitFor(() => { expect(html.baseElement.querySelector('input')?.value).toBe( `${magicPrefix} 123,456`, ); }); }); it('🐴 password support visible', async () => { const html = render( <Field text={123456} valueType="password" mode="read" />, ); await html.findByText('********'); act(() => { fireEvent.click( html.baseElement.querySelector('span.anticon-eye-invisible')!, ); }); await waitFor(() => { expect(!!html.baseElement.querySelector('span.anticon-eye')).toBeTruthy(); }); await html.findByText('123456'); html.unmount(); }); it('🐴 password support controlled open', async () => { const fn = vi.fn(); const html = render( <Field text={123456} onOpenChange={(open) => fn(open)} open valueType="password" mode="read" />, ); await html.findByText('123456'); act(() => { fireEvent.click(html.baseElement.querySelector('span.anticon-eye')!); }); await html.findByText('123456'); await waitFor(() => { expect( !!html.baseElement.querySelector('span.anticon-eye-invisible'), ).toBeFalsy(); expect(fn).toBeCalledWith(false); }); html.unmount(); }); it('🐴 password support controlled visible', async () => { const fn = vi.fn(); const html = render( <Field text={123456} onVisible={(visible) => fn(visible)} visible valueType="password" mode="read" />, ); await html.findByText('123456'); act(() => { fireEvent.click(html.baseElement.querySelector('span.anticon-eye')!); }); await html.findByText('123456'); await waitFor(() => { expect( !!html.baseElement.querySelector('span.anticon-eye-invisible'), ).toBeFalsy(); expect(fn).toBeCalledWith(false); }); html.unmount(); }); it('🐴 options support empty dom', async () => { const html = render( <Field // @ts-expect-error render={() => []} text={[]} valueType="option" mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 options support no text', async () => { const html = render(<Field text="qixian" valueType="option" mode="read" />); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 options support dom list', () => { const html = render( <Field text={[ <Button key="add">新建</Button>, <Button key="edit">修改</Button>, ]} valueType="option" mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 options support dom text', () => { const html = render( <Field text={['新建', <Button key="edit">修改</Button>]} valueType="option" mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 options support one dom', () => { const html = render( <Field text={[<Button key="add">新建</Button>]} valueType="option" mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 progress support string number', () => { const html = render(<Field text="12" valueType="progress" mode="read" />); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🐴 progress support no number', () => { const html = render( <Field text="qixian" valueType="progress" mode="read" />, ); expect(html.asFragment()).toMatchSnapshot(); }); it('🐴 valueType={}', () => { const html = render( <Field text="qixian" // @ts-expect-error valueType={{}} mode="read" />, ); expect(html.baseElement.textContent).toBe('qixian'); html.unmount(); }); it('🐴 keypress simulate', async () => { const html = render( <Field text="qixian" valueType="textarea" mode="edit" />, ); await html.findByPlaceholderText('请输入'); act(() => { fireEvent.keyPress(html.baseElement.querySelector('textarea')!, { key: 'Enter', keyCode: 13, }); }); act(() => { html.rerender(<Field text="qixian" valueType="textarea" mode="read" />); }); await html.findAllByText('qixian'); expect(html.baseElement.textContent).toBe('qixian'); html.unmount(); }); it(`🐴 valueType renderFormItem return number`, async () => { const html = render( <Field text={dayjs('2019-11-16 12:50:26').valueOf()} mode="edit" // @ts-expect-error renderFormItem={() => 2} />, ); expect(html.baseElement.textContent).toBe('2'); html.unmount(); }); it(`🐴 valueType digit support formatter`, async () => { const html = render( <Field text={10000} mode="read" valueType="digit" fieldProps={{ formatter: (value: string) => `$${value}`, }} />, ); expect(html.baseElement.textContent).toBe('$10,000'); html.unmount(); }); it(`🐴 valueType digit support precision`, async () => { const html = render( <Field text={'1000.3'} mode="read" valueType="digit" fieldProps={{ precision: 2, }} />, ); expect(html.baseElement.textContent).toBe('1,000.30'); html.unmount(); }); it(`🐴 valueType digit support precision when change with`, async () => { const change = vi.fn(); const html = render( <Field text={1000.3} mode="edit" valueType="digit" onChange={(value) => change(value)} fieldProps={{ precision: 20, stringMode: true, }} />, ); await act(async () => { fireEvent.change(html.baseElement.querySelector('input')!, { target: { value: '1.00000000000007', }, }); }); await waitFor(() => { expect(change).toBeCalledWith('1.00000000000007'); }); }); it(`🐴 valueType digitRange base use`, async () => { const html = render( <Field text={[12.34, 56.78]} mode="read" valueType="digitRange" />, ); expect(html.baseElement.textContent).toBe('12.34 ~ 56.78'); html.unmount(); }); it(`🐴 valueType digitRange placeholder use`, async () => { const html = render(<Field mode="edit" valueType="digitRange" />); await waitFor(() => { expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-input-number-input', )?.placeholder, ).toBe('请输入'); expect( html.baseElement.querySelectorAll<HTMLInputElement>( '.ant-input-number-input', )[1]?.placeholder, ).toBe('请输入'); }); }); it(`🐴 valueType digitRange placeholder use`, async () => { const html = render( <Field mode="edit" valueType="digitRange" placeholder={['Min', 'Max']} />, ); await waitFor(() => { expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-input-number-input', )?.placeholder, ).toBe('Min'); expect( html.baseElement.querySelectorAll<HTMLInputElement>( '.ant-input-number-input', )[1]?.placeholder, ).toBe('Max'); }); }); it(`🐴 valueType digitRange normal input simulate`, async () => { const html = render(<Field mode="edit" valueType="digitRange" />); await waitForWaitTime(100); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '12.34', }, }, ); }); await waitFor(() => { expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-input-number-input', )?.value, ).toBe('12.34'); }); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '56.78', }, }, ); }); await waitFor(() => { expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-input-number-input', )?.value, ).toBe('56.78'); }); html.unmount(); }); it(`🐴 valueType digitRange will exchange when value1 > valu2`, async () => { const html = render(<Field mode="edit" valueType="digitRange" />); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '56.78', }, }, ); }); await waitFor(() => { expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-input-number-input', )?.value, ).toBe('56.78'); }); act(() => { fireEvent.change( html.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '12.34', }, }, ); }); act(() => { fireEvent.blur( html.baseElement.querySelector('.ant-input-number-input')!, ); }); await waitFor(() => { expect( html.baseElement.querySelector<HTMLInputElement>( '.ant-input-number-input', )?.value, ).toBe('12.34'); }); html.unmount(); }); it(`🐴 text render null`, async () => { const html = render( <Field text={10000} mode="read" // @ts-ignore render={() => undefined} emptyText="-" />, ); expect(html.baseElement.textContent).toBe('-'); html.unmount(); }); it(`🐴 readonly and mode is edit use fieldProps.value`, async () => { const html = render( <Field text={10000} mode="edit" readonly fieldProps={{ value: 2000, }} />, ); await waitFor(() => { expect(html.baseElement.textContent).toBe('2000'); }); act(() => { html.rerender( <Field text={10000} mode="edit" readonly fieldProps={{ value: 20000, }} />, ); }); await waitFor(() => { expect(html.baseElement.textContent).toBe('20000'); }); html.unmount(); }); it('🐴 select request debounceTime', async () => { const requestFn = vi.fn(); const ref = React.createRef<{ fetchData: (keyWord?: string) => void; }>(); render( <Field ref={ref} text="default" debounceTime={200} valueType="select" mode="edit" request={async (params) => { requestFn(params?.test); return [ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]; }} />, ); await waitFor(() => { expect(requestFn).toBeCalledTimes(1); }); act(() => { for (let index = 0; index < 10; index++) { ref.current?.fetchData(index + ''); } }); await waitFor(() => { expect(requestFn).toBeCalledTimes(2); }); }); it(`🐴 light select dropdown toggle`, async () => { const html = render( <Field text="default" valueType="select" mode="edit" light options={[ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]} />, ); await waitForWaitTime(100); act(() => { // 点击label打开DatePicker // jest环境下,click 不会触发mousedown和mouseup,需要手动触发以覆盖相关逻辑代码 fireEvent.mouseDown( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); fireEvent.click( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); fireEvent.mouseUp( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); }); await waitFor(() => { expect( html.baseElement.querySelectorAll('.ant-select-dropdown').length, ).toEqual(1); expect( html.baseElement.querySelectorAll( '.ant-select-dropdown.ant-select-dropdown-hidden', ).length, ).toEqual(0); }); act(() => { fireEvent.mouseDown( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); fireEvent.click( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); fireEvent.mouseUp( html.baseElement.querySelector('.ant-pro-core-field-label')!, ); }); await waitFor(() => { expect( html.baseElement.querySelectorAll( '.ant-select-dropdown.ant-select-dropdown-hidden', ).length, ).toEqual(1); }); }); });
9,123
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/field/status.test.tsx
import Field from '@ant-design/pro-field'; import { cleanup, render } from '@testing-library/react'; afterEach(() => { cleanup(); }); describe('Field Status', () => { afterEach(() => { cleanup(); }); const statusList = [ 'Success', 'Error', 'Processing', 'Default', 'Warning', 'success', 'error', 'processing', 'default', 'warning', ]; statusList.forEach((status) => { it(`🥩 ${status} render`, async () => { const { container } = render( <Field text="open" valueEnum={{ open: { text: '未解决', status, }, }} mode="read" />, ); expect(container).toMatchSnapshot(); }); }); it(`🥩 red color render`, async () => { const { container } = render( <Field text="open" valueEnum={{ open: { text: '未解决', color: 'red', }, }} mode="read" />, ); expect(container).toMatchSnapshot(); }); });
9,124
0
petrpan-code/ant-design/pro-components/tests/field
petrpan-code/ant-design/pro-components/tests/field/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`field demos > 📸 renders ./packages/field/src/demos/base.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-wrapper ant-radio-wrapper-checked" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="read" /> <span class="ant-radio-inner" /> </span> <span> 只读 </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="edit" /> <span class="ant-radio-inner" /> </span> <span> 编辑 </span> </label> </div> </div> <div class="ant-space-item" > 简约模式 </div> <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> <br /> <br /> <div class="ant-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 空字符串 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 头像 </span> <span class="ant-descriptions-item-content" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" /> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" > 这是一段文本 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 图片 </span> <span class="ant-descriptions-item-content" > <div class="ant-image" style="width: 32px;" > <img class="ant-image-img" src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png" width="32" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 金额 </span> <span class="ant-descriptions-item-content" > <span> ¥100.00 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 颜色 </span> <span class="ant-descriptions-item-content" > <div class="ant-color-picker-trigger ant-pro-field-color-picker" mode="read" > <div class="ant-color-picker-color-block" > <div class="ant-color-picker-color-block-inner" style="background: rgb(0, 0, 255);" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 数字 </span> <span class="ant-descriptions-item-content" > <span> 19,897,979,797,979 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 数字范围 </span> <span class="ant-descriptions-item-content" > <span> 123 ~ 456 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 秒格式化 </span> <span class="ant-descriptions-item-content" > <span> 23天555小时33分钟20秒 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <span> 100.00% </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 评分 </span> <span class="ant-descriptions-item-content" > <ul class="ant-rate ant-rate-disabled" role="radiogroup" tabindex="-1" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-half ant-rate-star-active" > <div aria-checked="true" aria-posinset="4" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 多选 </span> <span class="ant-descriptions-item-content" > <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 12px;" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 2px; row-gap: 2px;" > <div class="ant-space-item" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-success" /> <span class="ant-badge-status-text" > 已解决 </span> </span> </div> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 多选 labelInValue </span> <span class="ant-descriptions-item-content" > <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 12px;" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 2px; row-gap: 2px;" > <div class="ant-space-item" > 打开 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 关闭 </div> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 单选 </span> <span class="ant-descriptions-item-content" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 单选按钮 </span> <span class="ant-descriptions-item-content" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" > 未解决 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 级联选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 2px; row-gap: 2px;" > <div class="ant-space-item" > Zhejiang </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > Hangzhou </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > West Lake </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div aria-valuenow="40" class="ant-progress ant-progress-status-active ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 40%; height: 6px;" /> </div> </div> <span class="ant-progress-text" title="40%" > 40% </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > slider </span> <span class="ant-descriptions-item-content" > 40 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span style="color: rgb(255, 77, 79);" > + 10.00% </span> </div> <div class="ant-space-item" > <span style="color: rgb(89, 89, 89);" > 0.00% </span> </div> <div class="ant-space-item" > <span style="color: rgb(82, 196, 26);" > - 10.00% </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" > 2019-11-16 12:50:26 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 相对于当前时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> in 3 years </span> </div> <div class="ant-space-item" > <span> in 4 years </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" > 2019-11-16 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 </div> <div> 2019-11-16 </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 12:50:26 </div> <div> 2019-11-16 12:50:26 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" > <span> 12:50:26 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 12:50:26 </div> <div> 12:50:26 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 密码 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> ******** </span> </div> <div class="ant-space-item" > <a> <span aria-label="eye-invisible" class="anticon anticon-eye-invisible" role="img" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </a> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. </code> </pre> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> { "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": [ "**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js" ] } </code> </pre> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`field demos > 📸 renders ./packages/field/src/demos/base_test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="read" /> <span class="ant-radio-inner" /> </span> <span> 只读 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-checked" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="edit" /> <span class="ant-radio-inner" /> </span> <span> 编辑 </span> </label> </div> </div> <div class="ant-space-item" > 简约模式 </div> <div class="ant-space-item" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> <br /> <br /> <div class="ant-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 空字符串 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 头像 </span> <span class="ant-descriptions-item-content" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" /> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 颜色 </span> <span class="ant-descriptions-item-content" > <div class="ant-color-picker-trigger ant-pro-field-color-picker" style="display: table-cell;" > <div class="ant-color-picker-color-block" > <div class="ant-color-picker-color-block-inner" style="background: rgb(22, 119, 255);" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 颜色禁用 </span> <span class="ant-descriptions-item-content" > <div class="ant-color-picker-trigger ant-pro-field-color-picker ant-color-picker-trigger-disabled" style="display: table-cell;" > <div class="ant-color-picker-color-block" > <div class="ant-color-picker-color-block-inner" style="background: rgb(22, 119, 255);" /> </div> </div> <div class="ant-color-picker-trigger ant-pro-field-color-picker" mode="read" > <div class="ant-color-picker-color-block" > <div class="ant-color-picker-color-block-inner" style="background: rgb(0, 0, 255);" /> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 图片 </span> <span class="ant-descriptions-item-content" > <input class="ant-input" placeholder="请输入" type="text" value="" /> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 金额 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" style="width: 200px;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> <span> 💰2,221,212.22 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 数字 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemax="10000" aria-valuemin="1" autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 数字范围 </span> <span class="ant-descriptions-item-content" > <div class="ant-space-compact" > <div class="ant-input-number ant-input-number-compact-item ant-input-number-compact-first-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" id="undefined-0" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> <input class="ant-input ant-input-disabled ant-input-compact-item" disabled="" placeholder="~" style="width: 30px; text-align: center; border-inline-start: 0; border-inline-end: 0; pointer-events: none; background-color: rgb(255, 255, 255);" type="text" value="" /> <div class="ant-input-number ant-input-number-compact-item ant-input-number-compact-last-item" style="border-inline-start: 0;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" id="undefined-1" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 秒格式化 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 评分 </span> <span class="ant-descriptions-item-content" > <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > slider </span> <span class="ant-descriptions-item-content" > <div class="ant-slider ant-slider-horizontal" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 0%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" class="ant-slider-handle" role="slider" style="left: 0%; transform: translateX(-50%);" tabindex="0" /> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 多选 </span> <span class="ant-descriptions-item-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target ant-checkbox-disabled" > <input class="ant-checkbox-input" disabled="" type="checkbox" value="all" /> <span class="ant-checkbox-inner" /> </span> <span> 全部 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="open" /> <span class="ant-checkbox-inner" /> </span> <span> 未解决 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="closed" /> <span class="ant-checkbox-inner" /> </span> <span> 已解决 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="processing" /> <span class="ant-checkbox-inner" /> </span> <span> 解决中 </span> </label> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 多选 labelInValue </span> <span class="ant-descriptions-item-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-disabled ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target ant-checkbox-disabled" > <input class="ant-checkbox-input" disabled="" type="checkbox" value="all" /> <span class="ant-checkbox-inner" /> </span> <span> 全部 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="open" /> <span class="ant-checkbox-inner" /> </span> <span> 未解决 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="closed" /> <span class="ant-checkbox-inner" /> </span> <span> 已解决 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="processing" /> <span class="ant-checkbox-inner" /> </span> <span> 解决中 </span> </label> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 单选 </span> <span class="ant-descriptions-item-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-wrapper ant-radio-wrapper-disabled" > <span class="ant-radio ant-wave-target ant-radio-disabled" > <input class="ant-radio-input" disabled="" type="radio" value="all" /> <span class="ant-radio-inner" /> </span> <span> 全部 </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="open" /> <span class="ant-radio-inner" /> </span> <span> 未解决 </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="closed" /> <span class="ant-radio-inner" /> </span> <span> 已解决 </span> </label> <label class="ant-radio-wrapper" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="processing" /> <span class="ant-radio-inner" /> </span> <span> 解决中 </span> </label> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 单选按钮 </span> <span class="ant-descriptions-item-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-disabled" > <span class="ant-radio-button ant-radio-button-disabled" > <input class="ant-radio-button-input" disabled="" type="radio" value="all" /> <span class="ant-radio-button-inner" /> </span> <span> 全部 </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="open" /> <span class="ant-radio-button-inner" /> </span> <span> 未解决 </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="closed" /> <span class="ant-radio-button-inner" /> </span> <span> 已解决 </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="processing" /> <span class="ant-radio-button-inner" /> </span> <span> 解决中 </span> </label> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程级联框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-cascader ant-pro-field-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比空值 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span style="color: rgb(255, 77, 79);" > 10.00% </span> </div> <div class="ant-space-item" > <span style="color: rgb(89, 89, 89);" > 0.00% </span> </div> <div class="ant-space-item" > <span style="color: rgb(82, 196, 26);" > - 10.00% </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 相对于当前时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="Start time" readonly="" size="10" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="End time" readonly="" size="10" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 密码 </span> <span class="ant-descriptions-item-content" > <span class="ant-input-affix-wrapper ant-input-password" > <input class="ant-input" placeholder="请输入" type="password" /> <span class="ant-input-suffix" > <span aria-label="eye-invisible" class="anticon anticon-eye-invisible ant-input-password-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </span> </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" > <textarea class="ant-input" rows="5" > yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. </textarea> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" > <textarea class="ant-input" rows="5" > { "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": [ "**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js" ] } </textarea> </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </DocumentFragment> `; exports[`field demos > 📸 renders ./packages/field/src/demos/search-value.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-search" style="width: 330px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="name_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="name_list" autocomplete="off" class="ant-select-selection-search-input" id="name" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > 请输入搜索关键字 </span> </div> </div> </div> </div> </div> </div> </div> <div class="keys" > <b> 常用关键字: </b> <span style="margin-inline-start: 8px; cursor: pointer;" > l </span> <span style="margin-inline-start: 8px; cursor: pointer;" > c </span> <span style="margin-inline-start: 8px; cursor: pointer;" > a </span> </div> </div> </div> </DocumentFragment> `; exports[`field demos > 📸 renders ./packages/field/src/demos/search-value-autoClearSearchValue.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="width: 330px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="name_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="name_list" autocomplete="off" class="ant-select-selection-search-input" id="name" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请输入搜索关键字 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`field demos > 📸 renders ./packages/field/src/demos/select-request.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="App" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="select_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="select_list" autocomplete="off" class="ant-select-selection-search-input" id="select" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 100px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" /> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="select_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="select_list" autocomplete="off" class="ant-select-selection-search-input" id="select" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`field demos > 📸 renders ./packages/field/src/demos/tree-select-search-value.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="TreeSelect异步加载" > TreeSelect异步加载 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-select ant-tree-select ant-select-in-form-item ant-pro-field-tree-select ant-select-focused ant-select-multiple ant-select-allow-clear ant-select-open ant-select-show-search" style="min-width: 60px; width: 330px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Node1" > <span class="ant-select-selection-item-content" > Node1 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="name_list" aria-expanded="true" aria-haspopup="listbox" aria-owns="name_list" autocomplete="off" class="ant-select-selection-search-input" id="name" role="combobox" style="" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name2" title="TreeSelect treeData" > TreeSelect treeData </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-select ant-tree-select ant-select-in-form-item ant-pro-field-tree-select ant-select-multiple ant-select-allow-clear ant-select-show-search" style="min-width: 60px; width: 330px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Node1" > <span class="ant-select-selection-item-content" > Node1 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Node2" > <span class="ant-select-selection-item-content" > Node2 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="name2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="name2_list" autocomplete="off" class="ant-select-selection-search-input" id="name2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="keys" > <b> 常用关键字: </b> <span style="margin-inline-start: 8px; cursor: pointer;" > l </span> <span style="margin-inline-start: 8px; cursor: pointer;" > c </span> <span style="margin-inline-start: 8px; cursor: pointer;" > a </span> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `;
9,125
0
petrpan-code/ant-design/pro-components/tests/field
petrpan-code/ant-design/pro-components/tests/field/__snapshots__/field.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Field > 🐴 base use 1`] = ` <DocumentFragment> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 edit and no plain 1`] = ` <DocumentFragment> <div class="ant-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 头像 </span> <span class="ant-descriptions-item-content" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" /> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 空字符串 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > index </span> <span class="ant-descriptions-item-content" > <div class="ant-pro-field-index-column" > 1 </div> <div class="ant-pro-field-index-column ant-pro-field-index-column-border" > 1 </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 金额 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-loading" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow ant-select-arrow-loading" style="user-select: none;" unselectable="on" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" /> </svg> </span> </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > dateRange </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 密码 </span> <span class="ant-descriptions-item-content" > <span class="ant-input-affix-wrapper ant-input-password" > <input class="ant-input" placeholder="请输入" type="password" value="" /> <span class="ant-input-suffix" > <span aria-label="eye-invisible" class="anticon anticon-eye-invisible ant-input-password-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" > <textarea class="ant-input" rows="5" > yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. </textarea> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" > <textarea class="ant-input" rows="5" > { "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": [ "**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js" ] } </textarea> </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 edit and plain=true 1`] = ` <DocumentFragment> <div class="ant-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 头像 </span> <span class="ant-descriptions-item-content" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" /> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 空字符串 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > index </span> <span class="ant-descriptions-item-content" > <div class="ant-pro-field-index-column" > 1 </div> <div class="ant-pro-field-index-column ant-pro-field-index-column-border" > 1 </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 金额 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" > <div class="ant-select ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-loading" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow ant-select-arrow-loading" style="user-select: none;" unselectable="on" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" /> </svg> </span> </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-borderless" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-borderless" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > dateRange </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-range ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" > <div class="ant-picker ant-picker-borderless" > <div class="ant-picker-input" > <input autocomplete="off" placeholder="Select time" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 密码 </span> <span class="ant-descriptions-item-content" > <span class="ant-input-affix-wrapper ant-input-password" > <input class="ant-input" placeholder="请输入" type="password" value="" /> <span class="ant-input-suffix" > <span aria-label="eye-invisible" class="anticon anticon-eye-invisible ant-input-password-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" > <input class="ant-input" type="text" value=" yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. " /> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" > <input class="ant-input" type="text" value="{ \\"compilerOptions\\": { \\"target\\": \\"esnext\\", \\"moduleResolution\\": \\"node\\", \\"jsx\\": \\"preserve\\", \\"esModuleInterop\\": true, \\"experimentalDecorators\\": true, \\"strict\\": true, \\"forceConsistentCasingInFileNames\\": true, \\"noImplicitReturns\\": true, \\"declaration\\": true, \\"skipLibCheck\\": true }, \\"include\\": [ \\"**/src\\", \\"**/docs\\", \\"scripts\\", \\"**/demo\\", \\".eslintrc.js\\" ] }" /> </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 1`] = ` <DocumentFragment> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="Please enter" role="spinbutton" step="1" value="" /> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 2`] = ` <DocumentFragment> <span> $100.00 </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 3`] = ` <DocumentFragment> <span> $$100.00 </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 4`] = ` <DocumentFragment> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="Введите значение" role="spinbutton" step="1" value="" /> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 5`] = ` <DocumentFragment> <span> 100,00 ₽ </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 6`] = ` <DocumentFragment> <span> ₽100,00 ₽ </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 7`] = ` <DocumentFragment> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="Sila masuk" role="spinbutton" step="1" value="" /> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 8`] = ` <DocumentFragment> <span> RM 100.00 </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 9`] = ` <DocumentFragment> <span> RMRM 100.00 </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 10`] = ` <DocumentFragment> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="Molimo unesite" role="spinbutton" step="1" value="" /> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 11`] = ` <DocumentFragment> <span> 100 RSD </span> </DocumentFragment> `; exports[`Field > 🐴 money valueType is Object 12`] = ` <DocumentFragment> <span> RSD100 RSD </span> </DocumentFragment> `; exports[`Field > 🐴 options support dom list 1`] = ` <DocumentFragment> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 新 建 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 修 改 </span> </button> </div> </DocumentFragment> `; exports[`Field > 🐴 options support dom text 1`] = ` <DocumentFragment> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > 新建 <button class="ant-btn ant-btn-default" type="button" > <span> 修 改 </span> </button> </div> </DocumentFragment> `; exports[`Field > 🐴 options support empty dom 1`] = `<DocumentFragment />`; exports[`Field > 🐴 options support no text 1`] = `<DocumentFragment />`; exports[`Field > 🐴 options support one dom 1`] = ` <DocumentFragment> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 新 建 </span> </button> </div> </DocumentFragment> `; exports[`Field > 🐴 percent support unit string 1`] = ` <DocumentFragment> <span> + 100.00% </span> </DocumentFragment> `; exports[`Field > 🐴 percent valueType is Object 1`] = ` <DocumentFragment> <div class="ant-input-number" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 percent=0 1`] = ` <DocumentFragment> <span style="color: rgb(89, 89, 89);" > 0.00% </span> </DocumentFragment> `; exports[`Field > 🐴 progress support no number 1`] = ` <DocumentFragment> <div aria-valuenow="NaN" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 0%; height: 6px;" /> </div> </div> <span class="ant-progress-text" title="0%" > 0% </span> </div> </DocumentFragment> `; exports[`Field > 🐴 progress support string number 1`] = ` <DocumentFragment> <div aria-valuenow="12" class="ant-progress ant-progress-status-active ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 12%; height: 6px;" /> </div> </div> <span class="ant-progress-text" title="12%" > 12% </span> </div> </DocumentFragment> `; exports[`Field > 🐴 read and plain 1`] = ` <DocumentFragment> <div class="ant-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" > 这是一段文本 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 头像 </span> <span class="ant-descriptions-item-content" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" /> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 空字符串 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 </div> <div> 2019-11-16 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > index </span> <span class="ant-descriptions-item-content" > <div class="ant-pro-field-index-column" > 1 </div> <div class="ant-pro-field-index-column ant-pro-field-index-column-border" > 1 </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 金额 </span> <span class="ant-descriptions-item-content" > <span> ¥100.00 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <span> 100.00% </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" > open </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div aria-valuenow="40" class="ant-progress ant-progress-status-active ant-progress-steps ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-steps-outer" > <div class="ant-progress-steps-item ant-progress-steps-item-active" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item ant-progress-steps-item-active" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item ant-progress-steps-item-active" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item ant-progress-steps-item-active" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item" style="width: 2px; height: 8px;" /> <div class="ant-progress-steps-item" style="width: 2px; height: 8px;" /> <span class="ant-progress-text" title="40%" > 40% </span> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" > 2019-11-16 12:50:26 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" > 2019-11-16 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 12:50:26 </div> <div> 2019-11-16 12:50:26 </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > dateRange </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 12:50:26 </div> <div> 2019-11-16 12:50:26 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" > <span> 12:50:26 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 密码 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> ******** </span> </div> <div class="ant-space-item" > <a> <span aria-label="eye-invisible" class="anticon anticon-eye-invisible" role="img" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </a> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. </code> </pre> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> { "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": [ "**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js" ] } </code> </pre> </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `; exports[`Field > 🐴 read ant no plain 1`] = ` <DocumentFragment> <div class="ant-descriptions" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 文本 </span> <span class="ant-descriptions-item-content" > 这是一段文本 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 头像 </span> <span class="ant-descriptions-item-content" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://avatars2.githubusercontent.com/u/8186664?s=60&v=4" /> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 空字符串 </span> <span class="ant-descriptions-item-content" > - </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 </div> <div> 2019-11-16 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > index </span> <span class="ant-descriptions-item-content" > <div class="ant-pro-field-index-column" > 1 </div> <div class="ant-pro-field-index-column ant-pro-field-index-column-border" > 1 </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 金额 </span> <span class="ant-descriptions-item-content" > <span> ¥100.00 </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 百分比 </span> <span class="ant-descriptions-item-content" > <span> 100.00% </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 选择框 </span> <span class="ant-descriptions-item-content" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 远程选择框 </span> <span class="ant-descriptions-item-content" > open </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 进度条 </span> <span class="ant-descriptions-item-content" > <div aria-valuenow="40" class="ant-progress ant-progress-status-active ant-progress-line ant-progress-show-info ant-progress-small" role="progressbar" style="min-width: 100px; max-width: 320px;" > <div class="ant-progress-outer" style="width: 100%; height: 6px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 40%; height: 6px;" /> </div> </div> <span class="ant-progress-text" title="40%" > 40% </span> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期时间 </span> <span class="ant-descriptions-item-content" > 2019-11-16 12:50:26 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期 </span> <span class="ant-descriptions-item-content" > 2019-11-16 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 日期区间 </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 12:50:26 </div> <div> 2019-11-16 12:50:26 </div> </div> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > dateRange </span> <span class="ant-descriptions-item-content" > <div> <div> 2019-11-15 12:50:26 </div> <div> 2019-11-16 12:50:26 </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 时间 </span> <span class="ant-descriptions-item-content" > <span> 12:50:26 </span> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 密码 </span> <span class="ant-descriptions-item-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span> ******** </span> </div> <div class="ant-space-item" > <a> <span aria-label="eye-invisible" class="anticon anticon-eye-invisible" role="img" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </a> </div> </div> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 代码块 </span> <span class="ant-descriptions-item-content" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> yarn run v1.22.0 $ eslint --format=pretty ./packages Done in 9.70s. </code> </pre> </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > JSON 代码块 </span> <span class="ant-descriptions-item-content" > <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> { "compilerOptions": { "target": "esnext", "moduleResolution": "node", "jsx": "preserve", "esModuleInterop": true, "experimentalDecorators": true, "strict": true, "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "declaration": true, "skipLibCheck": true }, "include": [ "**/src", "**/docs", "scripts", "**/demo", ".eslintrc.js" ] } </code> </pre> </span> </div> </td> </tr> </tbody> </table> </div> </div> </DocumentFragment> `;
9,126
0
petrpan-code/ant-design/pro-components/tests/field
petrpan-code/ant-design/pro-components/tests/field/__snapshots__/status.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Field Status > 🥩 Default render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 Error render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 Processing render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-processing" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 Success render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-success" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 Warning render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-warning" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 default render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 error render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-error" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 processing render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-processing" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 red color render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-color-red" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 success render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-success" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `; exports[`Field Status > 🥩 warning render 1`] = ` <div> <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-warning" /> <span class="ant-badge-status-text" > 未解决 </span> </span> </div> `;
9,129
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/base.test.tsx
import { FontSizeOutlined } from '@ant-design/icons'; import type { ProFormInstance } from '@ant-design/pro-form'; import ProForm, { ProFormCaptcha, ProFormCheckbox, ProFormColorPicker, ProFormDatePicker, ProFormDateTimePicker, ProFormDependency, ProFormDigit, ProFormDigitRange, ProFormField, ProFormSelect, ProFormText, ProFormTimePicker, ProFormTreeSelect, } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { Button, ConfigProvider, Input } from 'antd'; import dayjs from 'dayjs'; import React, { useEffect, useRef } from 'react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('ProForm', () => { afterEach(() => { cleanup(); }); it('📦 submit props actionsRender=false', async () => { const wrapper = render(<ProForm submitter={false} />); expect(wrapper.asFragment()).toMatchSnapshot(); wrapper.unmount(); }); it('📦 componentSize is work', async () => { const wrapper = render( <ConfigProvider componentSize="small"> <ProForm> <ProFormText /> </ProForm> </ConfigProvider>, ); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-input-sm').length, ).toBe(1); wrapper.unmount(); }); it('📦 addonAfter should work for ProFormCheck', async () => { const fn = vi.fn(); const wrapper = render( <ProForm onFinish={async (e) => { fn(e.checked); }} > <ProFormCheckbox addonAfter="选择" name="checked"> 确定同意 </ProFormCheckbox> </ProForm>, ); wrapper.findAllByText('确定同意'); await act(async () => { (await wrapper.findByText('确定同意')).click?.(); }); await act(async () => { (await wrapper.findByText('提 交')).click?.(); }); await waitFor(() => { expect(fn).toHaveBeenCalledWith(true); }); }); it('📦 ProForm support sync form url', async () => { const fn = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { fn(values.navTheme); }} syncToUrl > <ProFormText tooltip={{ title: '主题', icon: <FontSizeOutlined />, }} name="navTheme" /> </ProForm>, ); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn).toHaveBeenCalledWith('realDark'); act(() => { wrapper.baseElement .querySelectorAll<HTMLHtmlElement>('button.ant-btn')[1] .click(); }); expect(fn).toHaveBeenCalledWith('realDark'); }); it('📦 ProForm support sync form url as important', async () => { const fn = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { fn(values.navTheme); }} syncToUrl syncToUrlAsImportant > <ProFormText tooltip={{ title: '主题', icon: <FontSizeOutlined />, }} name="navTheme" /> </ProForm>, ); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn).toHaveBeenCalledWith('realDark'); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('button.ant-btn')[1] .click(); }); expect(fn).toHaveBeenCalledWith('realDark'); wrapper.unmount(); }); it('📦 ProForm support sync form url and rest', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values.navTheme); }} syncToUrl syncToInitialValues={false} > <ProFormText name="navTheme" /> <ProForm.Item shouldUpdate> {() => { return '123'; }} </ProForm.Item> </ProForm>, ); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toHaveBeenCalledWith('realDark'); // rest act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('button.ant-btn')[1] .click(); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toHaveBeenCalledWith(undefined); wrapper.unmount(); }); it('📦 ProForm initialValues update will warning', async () => { const fn = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { fn(values.navTheme); }} initialValues={{}} > <ProFormText name="navTheme" /> </ProForm>, ); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn).toHaveBeenCalledWith(undefined); act(() => { wrapper.rerender( <ProForm onFinish={async (values) => { fn(values.navTheme); }} initialValues={{ navTheme: 'xxx' }} > <ProFormText name="navTheme" /> </ProForm>, ); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn).toHaveBeenCalledWith(undefined); }); it('📦 onFinish should simulate button loading', async () => { const fn = vi.fn(); vi.useFakeTimers(); const wrapper = render( <ProForm onFinish={async () => { fn(); return new Promise((resolve) => { return setTimeout(() => { resolve(true); }, 4000); }); }} />, ); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); const dom = await (await wrapper.findByText('提 交')).parentElement; expect(dom?.className.includes('ant-btn-loading')).toBe(true); expect(fn).toBeCalled(); wrapper.unmount(); vi.useRealTimers(); }); it('📦 onFinish should simulate button close loading', async () => { vi.useFakeTimers(); const fn = vi.fn(); const wrapper = render( <ProForm onFinish={async () => { fn(); return new Promise((resolve, reject) => { setTimeout(() => { reject(new Error('期贤')); }, 4000); }); }} />, ); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); let dom: HTMLElement | undefined | null; await act(async () => { dom = await (await wrapper.findByText('提 交')).parentElement; }); expect(dom?.className.includes('ant-btn-loading')).toBe(true); expect(fn).toBeCalled(); act(() => { vi.runOnlyPendingTimers(); }); await act(async () => { dom = await (await wrapper.findByText('提 交')).parentElement; }); expect(dom?.className.includes('ant-btn-loading')).toBe(false); vi.useRealTimers(); }); it('📦 onFinish support params and request', async () => { const wrapper = render( <ProForm request={async (params) => { return params; }} params={{ name: 'test', }} > <ProFormText name="name" /> </ProForm>, ); await wrapper.findByText('提 交'); expect(!!(await wrapper.findByDisplayValue('test'))).toBeTruthy(); act(() => { wrapper.rerender( <ProForm key="rerender" request={async (params) => { return params; }} params={{ name: '1234', }} > <ProFormText name="name" /> </ProForm>, ); }); await wrapper.findByText('提 交'); expect(!!(await wrapper.findByDisplayValue('1234'))).toBeTruthy(); wrapper.unmount(); }); it('📦 request rewrite initialsValue', async () => { const wrapper = render( <ProForm request={async () => { return { name: '100', }; }} initialValues={{ name: '不是1000', }} > <ProFormText name="name" /> </ProForm>, ); await wrapper.findByText('提 交'); expect(!!(await wrapper.findByDisplayValue('100'))).toBeTruthy(); wrapper.unmount(); }); it('📦 submit props actionsRender=()=>false', async () => { const wrapper = render( <ProForm submitter={{ render: () => false, }} > text </ProForm>, ); await wrapper.findByText('text'); expect(wrapper.asFragment()).toMatchSnapshot(); wrapper.unmount(); }); it('📦 submit props actionsRender is one', async () => { const wrapper = render( <ProForm submitter={{ render: () => [<a key="test">test</a>], }} />, ); await wrapper.findByText('test'); expect(wrapper.asFragment()).toMatchSnapshot(); wrapper.unmount(); }); it('📦 support formRef', async () => { const formRef = React.createRef<ProFormInstance<any>>(); const wrapper = render( <ProForm formRef={formRef} submitter={{ render: () => [<a key="test">test</a>], }} initialValues={{ test: '12,34', }} > <ProFormText name="test" transform={(value) => { return { test: value.split(','), }; }} /> </ProForm>, ); await wrapper.findByText('test'); expect(formRef.current?.getFieldFormatValue?.('test')?.join('-')).toBe( '12-34', ); expect( formRef.current?.getFieldFormatValueObject?.('test')?.test.join('-'), ).toBe('12-34'); expect(formRef.current?.getFieldFormatValueObject?.()?.test.join('-')).toBe( '12-34', ); expect(formRef.current?.getFieldsFormatValue?.()?.test.join('-')).toBe( '12-34', ); expect(formRef.current?.getFieldFormatValue?.(['test'])?.join('-')).toBe( '12-34', ); expect(formRef.current?.getFieldValue?.('test')).toBe('12,34'); wrapper.unmount(); }); it('📦 ProForm support namePath is array', async () => { const fn = vi.fn(); const wrapper = render( <ProForm initialValues={{ name: { test: 'test', }, test: 'test2', }} isKeyPressSubmit onFinish={async (params) => { fn(params); }} > <ProFormText name={['name', 'test']} /> <ProFormText name="test" /> </ProForm>, ); await wrapper.findByText('提 交'); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn).toBeCalledWith({ name: { test: 'test', }, test: 'test2', }); wrapper.unmount(); }); it('📦 ProForm support enter submit', async () => { const fn = vi.fn(); const wrapper = render( <ProForm omitNil={false} isKeyPressSubmit onFinish={async () => { fn(); }} > <ProFormText name="test" /> </ProForm>, ); await wrapper.findByText('提 交'); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn).toBeCalled(); wrapper.unmount(); }); it('📦 submit props actionsRender=false', async () => { const wrapper = render( <ProForm submitter={{ render: false, }} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('📦 submit props actionsRender=()=>[]', async () => { const wrapper = render( <ProForm submitter={{ render: () => [], }} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); wrapper.unmount(); }); it('📦 submit props render=()=>[]', async () => { const wrapper = render( <ProForm submitter={{ render: () => [ <Button key="submit" type="primary"> 提交并发布 </Button>, ], }} />, ); await wrapper.findByText('提交并发布'); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('📦 submitter props support submitButtonProps', async () => { const fn = vi.fn(); const wrapper = render( <ProForm submitter={{ submitButtonProps: { className: 'test_button', onClick: () => { fn(); }, }, }} />, ); await wrapper.findByText('提 交'); act(() => { expect(wrapper.asFragment()).toMatchSnapshot(); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('button.test_button')[0] .click(); }); expect(fn).toBeCalled(); wrapper.unmount(); }); it('📦 submitter props support resetButtonProps', async () => { const fn = vi.fn(); const wrapper = render( <ProForm submitter={{ resetButtonProps: { className: 'test_button', onClick: () => { fn(); }, }, }} />, ); await wrapper.findByText('提 交'); act(() => { expect(wrapper.asFragment()).toMatchSnapshot(); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('button.test_button')[0] .click(); }); expect(fn).toBeCalled(); wrapper.unmount(); }); it('📦 submitter.render simulate onFinish', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={onFinish} submitter={{ render: ({ form }) => [ <Button id="submit" key="submit" type="primary" onClick={() => { form?.submit(); }} > 提交并发布 </Button>, ], }} > <ProFormText label="name" name="name" /> </ProForm>, ); await wrapper.findByText('提交并发布'); await act(async () => { (await wrapper.findByText('提交并发布')).click(); }); expect(onFinish).toBeCalled(); wrapper.unmount(); }); it('📦 ProFormCaptcha support onGetCaptcha', async () => { vi.useFakeTimers(); const wrapper = render( <ProForm> <ProFormCaptcha onGetCaptcha={async () => { return new Promise((resolve) => { setTimeout(() => { resolve(); }, 2000); }); }} captchaProps={{ id: 'test', }} countDown={2} label="name" name="name" /> </ProForm>, ); await wrapper.findByText('提 交'); let captcha = await wrapper.findByText('获取验证码'); expect(!!captcha).toBeTruthy(); await act(async () => { (await wrapper.findByText('获取验证码'))?.click(); }); act(() => { vi.runOnlyPendingTimers(); }); await wrapper.findByText('2 秒后重新获取'); act(() => { vi.runOnlyPendingTimers(); }); act(() => { vi.runOnlyPendingTimers(); }); captcha = await wrapper.findByText('获取验证码'); expect(!!captcha).toBeTruthy(); wrapper.unmount(); vi.useRealTimers(); }); it('📦 ProFormCaptcha support value and onchange', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={(values) => onFinish(values.name)}> <ProFormCaptcha onGetCaptcha={async () => { await waitForWaitTime(10); }} countDown={2} label="name" name="name" /> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>('input#name')[0], { target: { value: 'test', }, }, ); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith('test'); wrapper.unmount(); }); it('📦 ProFormCaptcha support captchaTextRender', async () => { vi.useFakeTimers(); const wrapper = render( <ProForm> <ProFormCaptcha onGetCaptcha={async () => { return new Promise((resolve) => { setTimeout(() => { resolve(); }, 200); }); }} captchaTextRender={(timing) => (timing ? '重新获取' : '获取')} captchaProps={{ id: 'test', }} label="name" name="name" /> </ProForm>, ); await wrapper.findByText('提 交'); const firstCaptcha = await wrapper.findByText('获 取'); expect(!!firstCaptcha).toBeTruthy(); await act(async () => { const captcha = await wrapper.findByText('获 取'); captcha?.click(); }); act(() => { vi.runOnlyPendingTimers(); }); act(() => { vi.runOnlyPendingTimers(); }); const captcha = await wrapper.findByText('重新获取'); expect(!!captcha).toBeTruthy(); vi.useRealTimers(); }); it('📦 ProFormCaptcha onGetCaptcha throw error', async () => { const wrapper = render( <ProForm> <ProFormCaptcha onGetCaptcha={async () => { throw new Error('TEST'); }} captchaTextRender={(timing) => (timing ? '重新获取' : '获取')} captchaProps={{ id: 'test', }} label="name" name="name" /> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { fireEvent.click(wrapper.baseElement.querySelector('#test')!); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('button#test')[0] .textContent, ).toBe('获 取'); wrapper.unmount(); }); it('📦 ProFormCaptcha onGetCaptcha support rules', async () => { const fn = vi.fn(); const wrapper = render( <ProForm> <ProFormText name="phone" rules={[ { required: true, }, ]} /> <ProFormCaptcha onGetCaptcha={async () => { fn(); }} phoneName="phone" captchaProps={{ id: 'test', }} label="name" name="name" /> </ProForm>, ); const captcha = await wrapper.findByText('获取验证码'); expect(!!captcha).toBeTruthy(); await act(async () => { (await wrapper.findByText('获取验证码'))?.click(); }); expect(fn).not.toBeCalled(); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>('input')[1], { target: { value: 'tech', }, }, ); }); await act(async () => { captcha.click(); }); expect(fn).toBeCalled(); wrapper.unmount(); }); it('📦 ProFormDependency', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={onFinish} initialValues={{ name: '蚂蚁设计有限公司', name2: '蚂蚁设计集团', useMode: 'chapter', }} > <ProFormText width="md" name="name" label="签约客户名称" tooltip="最长为 24 位" placeholder="请输入名称" /> <ProFormText width="md" name={['name2', 'text']} label="签约客户名称" tooltip="最长为 24 位" placeholder="请输入名称" /> {/* ProFormDependency 会自动注入并且 进行 shouldUpdate 的比对 */} <ProFormDependency name={['name', ['name2', 'text']]}> {(values) => { return ( <ProFormSelect options={[ { value: 'chapter', label: '盖章后生效', }, ]} width="md" name="useMode" label={ <span id="label_text">{`与《${values?.name || ''}》 与 《${ values?.name2?.text || '' }》合同约定生效方式`}</span> } /> ); }} </ProFormDependency> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>('input#name')[0], { target: { value: 'test', }, }, ); }); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>( 'input#name2_text', )[0], { target: { value: 'test2', }, }, ); }); expect( wrapper.baseElement.querySelector<HTMLElement>('span#label_text') ?.textContent, ).toBe('与《test》 与 《test2》合同约定生效方式'); wrapper.unmount(); }); it('📦 ProForm.Group support collapsible', async () => { const fn = vi.fn(); const wrapper = render( <ProForm> <ProForm.Group title="qixian" collapsible onCollapse={(c) => fn(c)}> <ProFormText name="phone" /> <ProFormText name="phone2" /> </ProForm.Group> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-pro-form-group-title')[0] .click(); }); expect(fn).toBeCalledWith(true); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-pro-form-group-title')[0] .click(); }); expect(fn).toBeCalledWith(false); wrapper.unmount(); }); it('📦 ProForm.Group support defaultCollapsed', async () => { const fn = vi.fn(); const wrapper = render( <ProForm> <ProForm.Group title="qixian" collapsible defaultCollapsed={true} onCollapse={(c) => fn(c)} > <ProFormText name="phone" /> <ProFormText name="phone2" /> </ProForm.Group> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-pro-form-group-title')[0] .click(); }); expect(fn).toBeCalledWith(false); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-pro-form-group-title')[0] .click(); }); expect(fn).toBeCalledWith(true); wrapper.unmount(); }); it('📦 ProForm.Group support defaultCollapsed', async () => { const fn = vi.fn(); const wrapper = render( <ProForm> <ProForm.Group title="qixian" collapsible extra={<a id="click">点击</a>} onCollapse={(c) => fn(c)} > <ProFormText name="phone" /> <ProFormText name="phone2" /> </ProForm.Group> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { wrapper.baseElement.querySelectorAll<HTMLElement>('#click')[0].click(); }); expect(fn).not.toBeCalled(); wrapper.unmount(); }); it('📦 ProForm.Group support FormItem hidden', async () => { const wrapper = render( <ProForm> <ProForm.Group title="qixian" collapsible> <ProFormText name="mobile" hidden /> <div>mobile</div> <ProFormText name="mobile2" /> </ProForm.Group> </ProForm>, ); await wrapper.findByText('提 交'); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-pro-form-group-container div.ant-form-item', ).length, ).toBe(1); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-pro-form-group-container div.ant-space-item', ).length, ).toBe(2); wrapper.unmount(); }); it('📦 ProFormField support onChange in ProForm', async () => { const fn = vi.fn(); const wrapper = render( <ProForm onValuesChange={fn}> <ProFormField name="phone2"> <Input id="testInput" /> </ProFormField> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>('input#testInput')[0], { target: { value: 'test', }, }, ); }); expect(fn).toBeCalled(); wrapper.unmount(); }); it('📦 ProFormField support onChange', async () => { const fn = vi.fn(); const wrapper = render( <ProForm> <ProFormField name="phone2" // @ts-ignore onChange={(e) => { fn(e.target.value); }} > <Input id="testInput" /> </ProFormField> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>('input#testInput')[0], { target: { value: 'test', }, }, ); }); expect(fn).toBeCalled(); wrapper.unmount(); }); it('📦 DatePicker support dateformat', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={onFinish} initialValues={{ date: '2020-09-10', dateMonth: '2020-09', }} > <ProFormDatePicker name="date" label="日期" fieldProps={{ open: true }} /> <ProFormDatePicker.Month name="dateMonth" label="月" /> <ProFormDatePicker.Year name="dateYear" label="年" /> </ProForm>, ); await wrapper.findByText('提 交'); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-picker-cell')[2] .click(); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toHaveBeenCalledWith({ date: '2020-09-02', dateMonth: '2020-09', }); wrapper.unmount(); }); it('📦 SearchSelect onSearch support', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ onSearch: (e) => onSearch(e), }} options={[ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); wrapper.unmount(); }); it('📦 SearchSelect onSearch support valueEnum', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); wrapper.unmount(); }); it('📦 SearchSelect onSearch support valueEnum clear', async () => { const onSearch = vi.fn(); const onValuesChange = vi.fn(); const wrapper = render( <ProForm onValuesChange={async (values) => { // {"disabled": undefined, "key": "all", "label": "全部", "value": "all"} onValuesChange(values.userQuery[0].label); }} > <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); expect(onValuesChange).toBeCalledWith('全部'); wrapper.unmount(); }); it('📦 SearchSelect onSearch support valueEnum clear item filter', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ searchOnFocus: true, onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(1); act(() => { fireEvent.focus( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-selector', )[0], ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(4); wrapper.unmount(); }); it('📦 SearchSelect support onClear', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm onValuesChange={(e) => console.log(e)}> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" showSearch fieldProps={{ searchOnFocus: true, onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(1); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0] .click(); }); act(() => { fireEvent.mouseEnter( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select')[0], ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[ wrapper.baseElement.querySelectorAll<HTMLElement>( 'span.ant-select-clear', ).length - 1 ], ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(4); wrapper.unmount(); }); it('📦 SearchSelect support searchOnFocus', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ searchOnFocus: true, onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(1); act(() => { fireEvent.focus( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-selector', )[0], ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(4); wrapper.unmount(); }); it('📦 SearchSelect support resetAfterSelect', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ resetAfterSelect: true, onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onSearch).toBeCalledWith('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(1); expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', )[0].textContent, ).toBe('全'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(4); wrapper.unmount(); }); it('📦 SearchSelect support fetchDataOnSearch: false', async () => { const onRequest = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ fetchDataOnSearch: false, }} request={async () => { onRequest(); return [ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]; }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); expect(onRequest.mock.calls.length).toBe(1); }); it('📦 SearchSelect support fetchDataOnSearch: true', async () => { const onRequest = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ fetchDataOnSearch: true, }} request={async () => { onRequest(); return [ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]; }} /> </ProForm>, ); await wrapper.findByText('查询选择器'); await waitFor(() => { expect(onRequest.mock.calls.length).toBe(1); }); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '全', }, }, ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); await waitFor(() => { expect(onRequest.mock.calls.length).toBe(2); }); wrapper.unmount(); }); it('📦 SearchSelect support multiple', async () => { const onSearch = vi.fn(); const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.userQuery?.length); }} > <ProFormSelect.SearchSelect name="userQuery" label="查询选择器" fieldProps={{ mode: 'multiple', searchOnFocus: true, onSearch: (e) => onSearch(e), }} valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第二个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[1] .click(); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); // 多次提交需要阻止 await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith(2); wrapper.unmount(); }); it('📦 SearchSelect filter support optionGroup', async () => { const onValuesChange = vi.fn(); const wrapper = render( <ProForm onValuesChange={async (values) => { onValuesChange(values?.userQuery[0].value); }} > <ProFormSelect.SearchSelect name="userQuery" label="业务线" rules={[{ required: true }]} options={[ { label: 'A系统', value: 'A系统', optionType: 'optGroup', children: [ { label: '门店小程序', value: '门店小程序' }, { label: '资金线', value: '资金线' }, ], }, { label: 'B系统', value: 'B系统', optionType: 'optGroup', children: [ { label: 'B门店小程序', value: 'B门店小程序' }, { label: 'B资金线', value: 'B资金线' }, ], }, ]} showSearch fieldProps={{ allowClear: false, showSearch: true, }} /> </ProForm>, ); await act(async () => { fireEvent.mouseDown( wrapper.baseElement.querySelector('.ant-select-selector')!, ); }); await act(async () => { const input = await wrapper.findByRole('combobox'); fireEvent.change(input, { target: { value: '门', }, }); await waitForWaitTime(200); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelector('.ant-select-selector')!, ); }); // 应该有两个 item 被筛选出来 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(2); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>( '.ant-select-item.ant-select-item-option', )[0] .click(); }); expect(onValuesChange).toBeCalledWith('门店小程序'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelector('.ant-select-selector')!, ); }); await act(async () => { const input = await wrapper.findByRole('combobox'); fireEvent.change(input, { target: { value: '期贤', }, }); await waitForWaitTime(200); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelector('.ant-select-selector')!, ); }); // 应该没有筛选 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(0); wrapper.unmount(); }); it('📦 SearchSelect filter support (', async () => { const onValuesChange = vi.fn(); const wrapper = render( <ProForm onValuesChange={async (values) => { onValuesChange(values?.userQuery[0].value); }} > <ProFormSelect.SearchSelect name="userQuery" label="业务线" rules={[{ required: true }]} options={[ { label: 'A系统', value: 'A系统', optionType: 'optGroup', children: [ { label: '门店小程序(测试)', value: '门店小程序' }, { label: '资金线', value: '资金线' }, ], }, { label: 'B系统', value: 'B系统', optionType: 'optGroup', children: [ { label: 'B门店小程序', value: 'B门店小程序' }, { label: 'B资金线', value: 'B资金线' }, ], }, ]} showSearch fieldProps={{ allowClear: false, showSearch: true, }} /> </ProForm>, ); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); await act(async () => { const input = await wrapper.findByRole('combobox'); fireEvent.change(input, { target: { value: '(测试)', }, }); await waitForWaitTime(200); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 应该有两个 item 被筛选出来 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(1); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>( '.ant-select-item.ant-select-item-option', )[0] .click(); }); expect(onValuesChange).toBeCalledWith('门店小程序'); wrapper.unmount(); }); it('📦 SearchSelect support multiple and autoClearSearchValue: false ', async () => { const onSearch = vi.fn(); const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.userQuery?.length); }} > <ProFormSelect.SearchSelect name="userQuery" label="产品选择" placeholder="测试 placeholder" fieldProps={{ mode: 'multiple', autoClearSearchValue: false, searchOnFocus: true, onSearch: (e) => onSearch(e), }} options={[ { label: '全部', value: 'all' }, { label: '未解决', value: 'open' }, { label: '已解决', value: 'closed' }, { label: '解决中', value: 'processing' }, ]} /> </ProForm>, ); // 点击搜索框 act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 默认展示所有的7个选项 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(4); // 默认输入框没有内容 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', ).length, ).toBe(0); // input 元素的内容也为空 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe(''); // 输入搜索内容 act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '解', }, }, ); }); // 应该有4个item 被筛选出来 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(3); // input 也有输入的内容 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('解'); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); // 选中的内容出现在 input 中 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content', )[0].textContent, ).toBe('未解决'); expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('解'); // 搜索的结果, 应该保持不变 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(3); // 继续选中第二个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[1] .click(); }); // 选中的内容出现在 input 中 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content', )[1].textContent, ).toBe('已解决'); expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('解'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); // 多次提交需要阻止 await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith(2); wrapper.unmount(); }); it('📦 Select support single', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.userQuery); }} > <ProFormSelect name="userQuery" label="查询选择器" valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第二个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[1] .click(); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith('open'); }); it('📦 ProFormSelect support filterOption', async () => { const onSearch = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect fieldProps={{ filterOption: false, onSearch: (e) => onSearch(e), }} options={[ { value: 1, label: 'Aa' }, { value: 2, label: 'Bb' }, { value: 3, label: 'Cc' }, ]} name="userQuery" label="查询选择器" /> </ProForm>, ); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: 'A', }, }, ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(3); }); it('📦 Select filterOption support mixed case', async () => { const wrapper = render( <ProForm> <ProFormSelect name="userQuery" label="查询选择器" fieldProps={{ showSearch: true, options: [ { value: 1, label: 'Aa' }, { value: 2, label: 'Bb' }, { value: 3, label: 'Cc' }, ], }} /> </ProForm>, ); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: 'b', }, }, ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(1); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: 'B', }, }, ); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); expect( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select-item') .length, ).toBe(1); }); it('📦 Select support labelInValue single', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.userQuery.value); }} > <ProFormSelect fieldProps={{ labelInValue: true, }} name="userQuery" label="查询选择器" valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第二个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[1] .click(); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith('open'); }); it('📦 Select support multiple unnamed async options', async () => { const wrapper = render( <> <ProFormSelect id="select1" request={async () => [{ value: 1 }]} /> <ProFormSelect id="select2" request={async () => [{ value: 2 }]} /> </>, ); await waitForWaitTime(100); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], ); fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[1], ); }); const textList = wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content', ); // 加载 options expect(textList.length).toBe(2); expect(textList[0].textContent).toBe('1'); expect(textList[1].textContent).toBe('2'); }); it('📦 Select support multiple and autoClearSearchValue: false ', async () => { const onSearch = vi.fn(); const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.userQuery?.length); }} > <ProFormSelect name="userQuery" label="产品选择" placeholder="测试 placeholder" fieldProps={{ mode: 'multiple', autoClearSearchValue: false, searchOnFocus: true, onSearch: (e) => onSearch(e), }} options={[ { value: '2', label: '网点2', }, { value: '21', label: '网点21', }, { value: '22', label: '网点22', }, { value: '3', label: '网点3', }, { value: '31', label: '网点31', }, { value: '32', label: '网点32', }, { value: '33', label: '网点33', }, ]} /> </ProForm>, ); // 点击搜索框 act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 默认展示所有的7个选项 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(7); // 默认输入框没有内容 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', ).length, ).toBe(0); // input 元素的内容也为空 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe(''); // 输入搜索内容 act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '2', }, }, ); }); // 应该有4个item 被筛选出来 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(4); // input 也有输入的内容 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('2'); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); // 选中的内容出现在 input 中 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content', )[0].textContent, ).toBe('网点2'); expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('2'); // 搜索的结果, 应该保持不变 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(4); // 继续选中第二个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[1] .click(); }); // 选中的内容出现在 input 中 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content', )[1].textContent, ).toBe('网点21'); expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('2'); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); // 多次提交需要阻止 await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith(2); }); it('📦 Select support multiple and autoClearSearchValue: true', async () => { const onSearch = vi.fn(); const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.userQuery?.length); }} > <ProFormSelect name="userQuery" label="产品选择" placeholder="测试 placeholder" fieldProps={{ mode: 'multiple', autoClearSearchValue: true, searchOnFocus: true, onSearch: (e) => onSearch(e), }} options={[ { value: '2', label: '网点2', }, { value: '21', label: '网点21', }, { value: '22', label: '网点22', }, { value: '3', label: '网点3', }, { value: '31', label: '网点31', }, { value: '32', label: '网点32', }, { value: '33', label: '网点33', }, ]} /> </ProForm>, ); // 点击搜索框 act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 默认展示所有的7个选项 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(7); // 默认输入框没有内容 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content div span', ).length, ).toBe(0); // input 元素的内容也为空 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe(''); // 输入搜索内容 act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: '2', }, }, ); }); await waitFor(() => { // 应该有4个item 被筛选出来 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(4); }); // input 也有输入的内容 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe('2'); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); // 选中的内容出现在 input 中 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-select-item-option-content', )[0].textContent, ).toBe('网点2'); // 选中后, 会自动清空搜索内容 expect( wrapper.baseElement.querySelectorAll<HTMLInputElement>( 'input.ant-select-selection-search-input', )[0].value, ).toBe(''); // 搜索的结果, 恢复到原始结果 expect( wrapper.baseElement.querySelectorAll<HTMLElement>( 'div.ant-select-item.ant-select-item-option', ).length, ).toBe(7); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); // 多次提交需要阻止 await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith(1); }); it('📦 ColorPicker support rgba new', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onValuesChange={async (values) => { onFinish(values?.color?.toHexString?.()); }} > <ProFormColorPicker name="color" label="颜色选择" /> </ProForm>, ); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-pro-field-color-picker')[0] .click(); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-color-picker-presets-color')[0] .click(); }); expect(onFinish).toBeCalledWith('#f5222d'); }); it('📦 ColorPicker support rgba old', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onValuesChange={async (values) => { onFinish(values?.color); }} > <ProFormColorPicker name="color" old label="颜色选择" /> </ProForm>, ); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-pro-field-color-picker')[0] .click(); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.flexbox-fix')[2] .querySelectorAll<HTMLDivElement>('div span div')[2] .click(); }); expect(onFinish).toBeCalledWith('#5b8ff9'); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll<HTMLElement>( '#rc-editable-input-5', )[0], { target: { value: 2, }, }, ); }); expect(onFinish).toBeCalledWith('rgba(91, 143, 249, 0.02)'); }); it('📦 validateFieldsReturnFormatValue', async () => { const fn1 = vi.fn(); const fn2 = vi.fn(); const App = () => { const formRef = useRef< ProFormInstance<{ date: string; }> >(); useEffect(() => { formRef.current?.validateFieldsReturnFormatValue?.().then((val) => { fn1(val.date); }); }, []); return ( <ProForm onValuesChange={async () => { formRef.current?.validateFieldsReturnFormatValue?.().then((val) => { console.log(val); fn2(val.date); }); }} formRef={formRef} > <ProFormDatePicker name="date" initialValue={dayjs('2021-08-09')} fieldProps={{ open: true }} /> </ProForm> ); }; const wrapper = render(<App />); await waitForWaitTime(200); expect(fn1).toHaveBeenCalledWith('2021-08-09'); act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-picker-cell')[2] .click(); }); await waitForWaitTime(200); expect(fn2).toHaveBeenCalledWith('2021-07-28'); expect(wrapper.asFragment()).toMatchSnapshot(); wrapper.unmount(); }); it('📦 DigitRange Will return undefined when both value equal to undefined', async () => { const onFinish = vi.fn(); const wrapper = render( <ProForm onFinish={async (values) => { onFinish(values?.digitRange); }} > <ProFormDigitRange name="digitRange" /> </ProForm>, ); // 测试基本功能 act(() => { fireEvent.change( wrapper.baseElement.querySelector('.ant-input-number-input')!, { target: { value: '1', }, }, ); }); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll('.ant-input-number-input')[1], { target: { value: '2', }, }, ); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith([1, 2]); // 测试清空两个值 act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll('.ant-input-number-input')[0], { target: { value: '', }, }, ); }); act(() => { fireEvent.change( wrapper.baseElement.querySelectorAll('.ant-input-number-input')[1], { target: { value: '', }, }, ); }); act(() => { fireEvent.blur( wrapper.baseElement.querySelectorAll<HTMLElement>( '.ant-input-number-input', )[1], ); }); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(onFinish).toBeCalledWith(undefined); }); it('📦 when dateFormatter is a Function', async () => { const fn1 = vi.fn(); const fn2 = vi.fn(); const App = () => { return ( <ProForm dateFormatter={(value, valueType) => { fn1(value.format('YYYY/MM/DD HH:mm:ss'), valueType); return value.format('YYYY/MM/DD HH:mm:ss'); }} onFinish={async (values) => { fn2(values.datetime); return true; }} > <ProFormDateTimePicker name="datetime" initialValue={dayjs('2021-08-09 12:12:12')} fieldProps={{ open: true }} /> <ProFormTimePicker name="time2" label="时间" /> </ProForm> ); }; const wrapper = render(<App />); expect(fn1).toBeCalledWith('2021/08/09 12:12:12', 'dateTime'); await act(async () => { await (await wrapper.findByText('提 交')).click(); }); expect(fn2).toHaveBeenCalledWith('2021/08/09 12:12:12'); act(() => { expect(wrapper.asFragment()).toMatchSnapshot(); }); }); it(`📦 rules change should rerender`, () => { const html = render( <ProForm> <ProFormText width="md" rules={[ { required: true, message: 'test', }, ]} name="function" label="生效方式" /> </ProForm>, ); expect( html.baseElement.querySelectorAll('.ant-form-item-required').length, ).toBe(1); html.rerender( <ProForm> <ProFormText width="md" rules={[ { required: false, message: 'test', }, ]} name="function" label="生效方式" /> </ProForm>, ); expect( html.baseElement.querySelectorAll('.ant-form-item-required').length, ).toBe(0); html.unmount(); }); it('📦 fix onChange will get empty object when you set labelInValue ture in ProForm', async () => { const onChange = vi.fn(); const wrapper = render( <ProForm> <ProFormSelect fieldProps={{ labelInValue: true, onChange(value) { onChange(value); }, }} name="userQuery" label="查询选择器" valueEnum={{ all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, processing: { text: '解决中', status: 'Processing', }, }} /> </ProForm>, ); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); // 选中第一个 act(() => { wrapper.baseElement .querySelectorAll<HTMLElement>('.ant-select-item')[0] .click(); }); // 鼠标移入选中区域 act(() => { fireEvent.mouseEnter( wrapper.baseElement.querySelectorAll<HTMLElement>('.ant-select')[0], ); }); // 点击删除按钮进行删除操作 act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll<HTMLElement>( 'span.ant-select-clear', )[ wrapper.baseElement.querySelectorAll<HTMLElement>( 'span.ant-select-clear', ).length - 1 ], ); }); expect(onChange).toBeCalledWith(undefined); wrapper.unmount(); }); it(`📦 valueType digit with precision value`, async () => { const fn = vi.fn(); const html = render( <ProForm onFinish={async (value) => { fn(value.count); }} > <ProFormDigit name="count" label="人数" fieldProps={{ precision: 0, }} /> </ProForm>, ); await waitForWaitTime(300); act(() => { const dom = html.baseElement.querySelector<HTMLInputElement>('input#count')!; fireEvent.change(dom, { target: { value: '22.22', }, }); fireEvent.blur(dom); fireEvent.click(dom); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#count')?.value, ).toBe('22'); await act(async () => { await (await html.findByText('提 交')).click(); }); expect(fn).toBeCalledWith(22); expect(html.asFragment()).toMatchSnapshot(); }); // https://github.com/ant-design/pro-components/issues/5743 it(`📦 submitted value should be consistent with input when precision=0`, async () => { const fn = vi.fn(); const html = render( <ProForm onFinish={async (value) => { fn(value.count); }} > <ProFormDigit name="count" label="人数" fieldProps={{ precision: 0, }} /> </ProForm>, ); await waitForWaitTime(300); const dom = html.baseElement.querySelector<HTMLInputElement>('input#count')!; await userEvent.type(dom, '22.22.22'); await userEvent.click(await html.findByText('提 交')); await waitForWaitTime(300); expect(dom.value).toBe('22'); expect(fn).toBeCalledWith(22); expect(html.asFragment()).toMatchSnapshot(); }); it('📦 ProFormTreeSelect support fetchDataOnSearch: false', async () => { const onRequest = vi.fn(); const wrapper = render( <ProForm> <ProFormTreeSelect name="userQuery" label="查询选择器" fieldProps={{ showSearch: true, fetchDataOnSearch: false, }} request={async () => { onRequest(); return [ { value: 'parent 1', title: 'parent 1', children: [ { value: 'parent 1-0', title: 'parent 1-0', children: [ { value: 'leaf1', title: 'leaf1', }, { value: 'leaf2', title: 'leaf2', }, ], }, { value: 'parent 1-1', title: 'parent 1-1', children: [ { value: 'leaf3', title: <b style={{ color: '#08c' }}>leaf3</b>, }, ], }, ], }, ]; }} /> </ProForm>, ); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: 'p', }, }, ); }); expect(onRequest.mock.calls.length).toBe(1); }); it('📦 ProFormTreeSelect support fetchDataOnSearch: true', async () => { const onRequest = vi.fn(); const wrapper = render( <ProForm> <ProFormTreeSelect name="userQuery" label="查询选择器" fieldProps={{ showSearch: true, fetchDataOnSearch: true, }} request={async () => { onRequest(); return [ { value: 'parent 1', title: 'parent 1', children: [ { value: 'parent 1-0', title: 'parent 1-0', children: [ { value: 'leaf1', title: 'leaf1', }, { value: 'leaf2', title: 'leaf2', }, ], }, { value: 'parent 1-1', title: 'parent 1-1', children: [ { value: 'leaf3', title: <b style={{ color: '#08c' }}>leaf3</b>, }, ], }, ], }, ]; }} /> </ProForm>, ); await waitForWaitTime(300); act(() => { fireEvent.change( wrapper.baseElement.querySelector( '.ant-select-selection-search-input', )!, { target: { value: 'l', }, }, ); }); await waitForWaitTime(300); act(() => { fireEvent.mouseDown( wrapper.baseElement.querySelectorAll('.ant-select-selector')[0], {}, ); }); await waitForWaitTime(300); expect(onRequest.mock.calls.length).toBe(3); wrapper.unmount(); }); });
9,130
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/demo.test.ts
import demoTest from '../demo'; demoTest('form');
9,131
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/dependency.test.tsx
import { ProForm, ProFormDependency, ProFormText, } from '@ant-design/pro-components'; import { act, cleanup, fireEvent, render } from '@testing-library/react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('ProForm Dependency component', () => { afterEach(() => { cleanup(); }); it('⛲ shouldUpdate of ProFormDependency is Boolean', async () => { const Demo: React.FC<{ shouldUpdate?: boolean; }> = ({ shouldUpdate = false }) => { return ( <ProForm> <ProFormText name="name" label="姓名" /> <ProFormDependency name={['name']} shouldUpdate={shouldUpdate}> {({ name }) => { return <div id="show">{name || 'first'}</div>; }} </ProFormDependency> </ProForm> ); }; const html = render(<Demo />); act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input.ant-input')!, { target: { value: 'second', }, }, ); }); await waitForWaitTime(100); expect( html.baseElement.querySelector<HTMLDivElement>('div#show')?.textContent, ).toBe('first'); act(() => { html.rerender(<Demo shouldUpdate />); }); await waitForWaitTime(100); act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input.ant-input')!, { target: { value: 'ProComponents', }, }, ); }); await waitForWaitTime(100); expect( html.baseElement.querySelector<HTMLDivElement>('div#show')?.textContent, ).toBe('ProComponents'); }); it('⛲ shouldUpdate of ProFormDependency is Function', async () => { const html = render( <ProForm> <ProFormText name="name" label="姓名" /> <ProFormDependency name={['name']} shouldUpdate={(prevValues, nextValues) => { if (nextValues.name === 'update') { return true; } return false; }} > {({ name }) => { return <div id="show">{name || 'first'}</div>; }} </ProFormDependency> </ProForm>, ); act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input.ant-input')!, { target: { value: "Don't update", }, }, ); }); await waitForWaitTime(100); act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input.ant-input')!, { target: { value: 'update', }, }, ); }); await waitForWaitTime(100); expect( html.baseElement.querySelector<HTMLDivElement>('div#show')?.textContent, ).toBe('update'); }); it('⛲ ProFormDependency support transform', async () => { const dependencyFn = vi.fn(); const Demo: React.FC<{ shouldUpdate?: boolean; }> = () => { return ( <ProForm> <ProFormText name="name" label="姓名" transform={(value) => { return { name: value, nickName: 'chen', }; }} /> <ProFormDependency name={['name', 'nickName']}> {({ name, nickName }) => { dependencyFn(name + ' ' + nickName); return <div id="show">{name || 'first'}</div>; }} </ProFormDependency> </ProForm> ); }; const html = render(<Demo />); act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input.ant-input')!, { target: { value: 'second', }, }, ); }); await waitForWaitTime(100); expect(dependencyFn).toBeCalledWith('second chen'); }); });
9,132
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/drawerForm.test.tsx
import { DrawerForm, ModalForm, ProFormText } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { Button, Form } from 'antd'; import React from 'react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('DrawerForm', () => { it('📦 trigger will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm width={600} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('新 建')).click(); }); expect(fn).toBeCalledWith(true); }); it('📦 DrawerForm first no render items', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm width={600} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); await waitForWaitTime(300); expect(!!wrapper.baseElement.querySelector('input#test')).toBeFalsy(); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(300); expect(!!wrapper.baseElement.querySelector('input#test')).toBeTruthy(); }); it('📦 DrawerForm first render items', async () => { const wrapper = render( <DrawerForm width={600} drawerProps={{ forceRender: true, }} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); await waitForWaitTime(300); expect(!!wrapper.baseElement.querySelector('input#test')).toBeTruthy(); }); it('📦 DrawerForm support submitter is false', async () => { const wrapper = render( <DrawerForm visible trigger={<Button id="new">新建</Button>} submitter={false} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(300); expect( !!wrapper.baseElement.querySelector('.ant-drawer-footer'), ).toBeFalsy(); }); it('📦 DrawerForm destroyOnClose', async () => { const wrapper = render( <DrawerForm width={600} open={false} drawerProps={{ destroyOnClose: true }} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); await waitForWaitTime(300); expect(!!wrapper.baseElement.querySelector('input#test')).toBeFalsy(); act(() => { wrapper.rerender( <DrawerForm width={600} open drawerProps={{ destroyOnClose: true }}> <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); }); await waitForWaitTime(300); expect(!!wrapper.baseElement.querySelector('input#test')).toBeTruthy(); act(() => { wrapper.rerender( <DrawerForm key="reset" width={600} open={false} drawerProps={{ destroyOnClose: true }} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); }); await waitForWaitTime(300); expect(!!wrapper.baseElement.querySelector('input#test')).toBeFalsy(); }); it('📦 drawer close button will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); act(() => { ( wrapper.baseElement.querySelector( 'button.ant-drawer-close', ) as HTMLButtonElement ).click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith(false); }); it('📦 drawer close button will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); act(() => { ( wrapper.baseElement.querySelector( 'button.ant-drawer-close', ) as HTMLButtonElement ).click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith(false); }); it('📦 reset button will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(300); await act(async () => { await (await wrapper.findByText('取 消')).click(); }); await waitForWaitTime(300); expect(fn).toBeCalledWith(false); }); it('📦 drawer close button will simulate drawerProps.onClose', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible drawerProps={{ onClose: () => fn(false), }} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); act(() => { ( wrapper.baseElement.querySelector( 'button.ant-drawer-close', ) as HTMLButtonElement ).click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith(false); }); it('📦 drawer reset button will simulate drawerProps.onClose', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible drawerProps={{ onClose: () => fn(false), }} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('取 消')).click(); }); expect(fn).toBeCalledWith(false); }); it('📦 drawer reset button will simulate drawerProps.onCancel', async () => { const fn = vi.fn(); const onCloseFn = vi.fn(); const wrapper = render( <DrawerForm visible drawerProps={{ onClose: () => onCloseFn(false), }} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('取 消')).click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith(false); expect(fn).toBeCalledTimes(2); // 点击关闭按钮的时候会手动触发一下 onClose expect(onCloseFn).toBeCalledWith(false); expect(fn).toBeCalledTimes(2); }); it('📦 form onFinish return true should close drawer', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} onFinish={async () => true} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(1200); await act(async () => { (await wrapper.findByText('确 认')).click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith(false); }); it('📦 form onFinish is null, no close drawer', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(1200); await act(async () => { (await wrapper.findByText('确 认')).click(); }); await waitForWaitTime(100); expect(fn).toBeCalledTimes(1); }); it('📦 submitter config no reset default config', async () => { const fn = vi.fn(); const wrapper = render( <DrawerForm width={600} submitter={{ searchConfig: { submitText: '确认', resetText: '取消', }, resetButtonProps: { style: { width: '80px', }, id: 'reset', }, }} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(200); expect(fn).toBeCalledWith(true); act(() => { wrapper.baseElement .querySelector<HTMLButtonElement>('button#reset') ?.click?.(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith(false); }); it('📦 DrawerForm close no rerender from', async () => { const wrapper = render( <DrawerForm initialValues={{ name: '1234', }} trigger={<Button id="new">新建</Button>} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(300); act(() => { fireEvent.change(wrapper.baseElement.querySelector('.ant-input#test')!, { target: { value: 'test', }, }); }); await waitForWaitTime(200); expect( wrapper.baseElement.querySelector<HTMLInputElement>('.ant-input#test') ?.value, ).toEqual('test'); await waitForWaitTime(100); act(() => { wrapper.baseElement .querySelector<HTMLInputElement>('.ant-drawer-close') ?.click(); }); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(200); expect( wrapper.baseElement.querySelector<HTMLInputElement>('.ant-input#test') ?.value, ).toEqual('test'); }); it('📦 DrawerForm destroyOnClose close will rerender from', async () => { const wrapper = render( <DrawerForm drawerProps={{ destroyOnClose: true, }} initialValues={{ name: '1234', }} trigger={<Button id="new">新建</Button>} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); await waitForWaitTime(100); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(300); act(() => { fireEvent.change(wrapper.baseElement.querySelector('.ant-input#test')!, { target: { value: '1111', }, }); }); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLInputElement>('input#test')?.value, ).toEqual('1111'); await waitForWaitTime(100); act(() => { wrapper.rerender( <DrawerForm drawerProps={{ destroyOnClose: true, }} initialValues={{ name: '1234', }} open={false} trigger={<Button id="new">新建</Button>} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); }); await waitForWaitTime(300); act(() => { wrapper.rerender( <DrawerForm key="reset" drawerProps={{ destroyOnClose: true, }} initialValues={{ name: '1234', }} open={undefined} trigger={<Button id="new">新建</Button>} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </DrawerForm>, ); }); await act(async () => { (await wrapper.findByText('新 建')).click(); }); await waitForWaitTime(300); expect( wrapper.baseElement.querySelector<HTMLInputElement>('input#test')?.value, ).toEqual('1234'); }); it('📦 drawer no render Form when destroyOnClose', () => { const { container } = render( <DrawerForm drawerProps={{ destroyOnClose: true, }} trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </DrawerForm>, ); expect(container.querySelector('form')).toBeFalsy(); }); it('📦 drawerForm get formRef when destroyOnClose', async () => { const ref = React.createRef<any>(); const html = render( <DrawerForm formRef={ref} drawerProps={{ destroyOnClose: true, }} trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </DrawerForm>, ); await waitForWaitTime(1200); expect(ref.current).toBeFalsy(); await act(async () => { (await html.findByText('新 建')).click(); }); await waitForWaitTime(200); act(() => { html.rerender( <DrawerForm formRef={ref} drawerProps={{ destroyOnClose: true, }} trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </DrawerForm>, ); }); expect(ref.current).toBeTruthy(); }); it('📦 drawerForm support onResize', async () => { const ref = React.createRef<any>(); const html = render( <DrawerForm formRef={ref} resize={{ minWidth: 200, maxWidth: 400, }} open trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </DrawerForm>, ); await html.findByText('新 建'); act(() => { const handle = html.baseElement.querySelector( '.ant-pro-form-drawer-sidebar-dragger', ); fireEvent.mouseDown(handle!, {}); }); act(() => { const handle = html.baseElement.querySelector( '.ant-pro-form-drawer-sidebar-dragger', ); fireEvent.mouseMove(handle!, { clientX: 900, }); fireEvent.mouseMove(handle!, { clientX: 200, }); fireEvent.mouseMove(handle!, { clientX: 300, }); fireEvent.mouseMove(handle!, { clientX: 700, }); }); act(() => { const handle = html.baseElement.querySelector( '.ant-pro-form-drawer-sidebar-dragger', ); fireEvent.mouseUp(handle!, {}); }); await waitFor(() => { expect( html.baseElement.querySelector<HTMLDivElement>( '.ant-drawer-content-wrapper', )?.style.width, ).toBe('300px'); }); }); const tests = [ { name: 'drawerForm', Comp: DrawerForm, close: '.ant-drawer-close', props: 'drawerProps', }, { name: 'modalForm', Comp: ModalForm, close: '.ant-modal-close', props: 'modalProps', }, ]; tests.forEach((item) => { const { name, Comp, close, props } = item; it(`📦 ${name} resetFields when destroy`, async () => { const fn = vi.fn(); const App = () => { const [form] = Form.useForm(); const prop = { [props]: { destroyOnClose: true, }, }; return ( <Comp {...prop} form={form} onOpenChange={(isOpen) => { if (!isOpen) { if (form.getFieldValue('name')) fn(form.getFieldValue('name')); } }} onFinish={async () => { return true; }} trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </Comp> ); }; const html = render(<App />); await waitForWaitTime(300); // 点击取消按钮后重置 act(() => { html.baseElement.querySelectorAll<HTMLDivElement>('#new')[0].click(); }); await waitForWaitTime(300); act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input#name')!, { target: { value: '12345', }, }, ); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#name')?.value, ).toBe('12345'); act(() => { html.baseElement .querySelectorAll<HTMLDivElement>('.ant-btn-default')[0] .click(); }); act(() => { html.baseElement.querySelectorAll<HTMLDivElement>('#new')[0].click(); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#name')?.value, ).toBeFalsy(); // 点击关闭按钮后重置 act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input#name')!, { target: { value: '12345', }, }, ); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#name')?.value, ).toBe('12345'); act(() => { html.baseElement.querySelectorAll<HTMLDivElement>(close)[0].click(); }); act(() => { html.baseElement.querySelectorAll<HTMLDivElement>('#new')[0].click(); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#name')?.value, ).toBeFalsy(); // 点击提交按钮后重置 act(() => { fireEvent.change( html.baseElement.querySelector<HTMLDivElement>('input#name')!, { target: { value: '12345', }, }, ); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#name')?.value, ).toBe('12345'); act(() => { html.baseElement .querySelectorAll<HTMLDivElement>('.ant-btn-primary')[0] .click(); }); await waitForWaitTime(300); act(() => { html.baseElement.querySelectorAll<HTMLDivElement>('#new')[0].click(); }); await waitForWaitTime(300); expect( html.baseElement.querySelector<HTMLInputElement>('input#name')?.value, ).toBeFalsy(); // 通过检查fn被调用的次数确定在 onOpenChange 时表单是否已被重置 expect(fn).toBeCalledTimes(3); html.unmount(); }); }); });
9,133
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/drawerFormTimeout.test.tsx
import { DrawerForm, ProFormText } from '@ant-design/pro-form'; import { act, cleanup, render } from '@testing-library/react'; afterEach(() => { cleanup(); }); describe('DrawerForm', () => { it('📦 DrawerForm submitTimeout is number will disabled close button when submit', async () => { const fn = vi.fn(); vi.useFakeTimers(); const html = render( <DrawerForm open drawerProps={{ onClose: () => fn(), }} onFinish={() => { return new Promise((resolve) => { setTimeout(() => { resolve(true); }, 3000); }); }} submitTimeout={3000} > <ProFormText name="text" /> </DrawerForm>, ); await act(async () => { (await html.queryByText('确 认'))?.click(); }); expect( (html.queryAllByText('取 消').at(0)?.parentElement as HTMLButtonElement) .disabled, ).toEqual(true); await act(async () => { (await html.queryByText('取 消'))?.click(); }); act(() => { vi.advanceTimersByTime(3000); }); expect(fn).not.toBeCalled(); expect( (html.queryAllByText('取 消').at(0)?.parentElement as HTMLButtonElement) ?.disabled, ).toEqual(false); await act(async () => { (await html.queryByText('取 消'))?.click(); }); expect(fn).toBeCalled(); html.unmount(); vi.useRealTimers(); }); it('📦 DrawerForm submitTimeout is null no disable close button when submit', async () => { const fn = vi.fn(); vi.useFakeTimers(); const wrapper = render( <DrawerForm open drawerProps={{ onClose: () => fn(), }} onFinish={() => { return new Promise((resolve) => { setTimeout(() => { resolve(true); }, 3000); }); }} > <ProFormText name="text" /> </DrawerForm>, ); await act(async () => { (await wrapper.queryByText('确 认'))?.click(); }); expect( (wrapper.queryAllByText('取 消').at(0) as HTMLButtonElement)?.disabled, ).toEqual(undefined); act(() => { vi.advanceTimersByTime(3000); }); await act(async () => { (await wrapper.queryByText('取 消'))?.click(); }); expect(fn).toBeCalled(); }); });
9,134
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/fieldSet.test.tsx
import ProForm, { ProFormFieldSet, ProFormRate, ProFormText, ProFormTextArea, } from '@ant-design/pro-form'; import { cleanup, fireEvent, render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { Input } from 'antd'; afterEach(() => { cleanup(); }); describe('ProFormFieldSet', () => { it('😊 ProFormFieldSet onChange', async () => { const fn = vi.fn(); const valueFn = vi.fn(); const { container, unmount } = render( <ProForm onFinish={(values) => fn(values.list)} onValuesChange={(value) => { valueFn(value.list); }} > <ProFormFieldSet name="list"> <ProFormText fieldProps={{ id: 'filedSet1', }} key="filedSet1" /> <ProFormRate key="filedSet2" /> <ProFormTextArea fieldProps={{ id: 'filedSet3', }} key="filedSet3" /> </ProFormFieldSet> </ProForm>, ); fireEvent.change(container.querySelector('#filedSet1')!, { target: { value: '111', }, }); expect(valueFn).toBeCalledWith(['111']); expect(valueFn).toBeCalledTimes(1); fireEvent.change(container.querySelector('#filedSet3')!, { target: { value: '333', }, }); expect(valueFn).toBeCalledWith(['111', undefined, '333']); await userEvent.click(container.querySelectorAll('li > div')[1]); expect(valueFn).toBeCalledWith(['111', 2, '333']); await userEvent.click(await screen.findByText('提 交')); expect(fn).toBeCalledWith(['111', 2, '333']); unmount(); }); it('😊 ProFormFieldSet support Input onChange', async () => { const fn = vi.fn(); const valueFn = vi.fn(); const { container, unmount } = render( <ProForm onFinish={(values) => fn(values.list)} onValuesChange={(value) => valueFn(value.list)} > <ProFormFieldSet name="list"> <Input id="filedSet1" key="filedSet1" /> <ProFormRate key="filedSet2" /> <ProFormTextArea fieldProps={{ id: 'filedSet3', }} key="filedSet3" /> </ProFormFieldSet> </ProForm>, ); fireEvent.change(container.querySelector('#filedSet1')!, { target: { value: '111', }, }); expect(valueFn).toBeCalledWith(['111']); expect(valueFn).toBeCalledTimes(1); fireEvent.change(container.querySelector('#filedSet3')!, { target: { value: '333', }, }); expect(valueFn).toBeCalledWith(['111', undefined, '333']); await userEvent.click(container.querySelectorAll('li > div')[1]); expect(valueFn).toBeCalledWith(['111', 2, '333']); await userEvent.click(await screen.findByText('提 交')); expect(fn).toBeCalledWith(['111', 2, '333']); unmount(); }); it('😊 ProFormFieldSet transform', async () => { const fn = vi.fn(); const valueFn = vi.fn(); const { container, unmount } = render( <ProForm onFinish={async (values) => { fn(values.listKey); }} onValuesChange={(value) => { valueFn(value.list); }} > <ProFormFieldSet name="list" transform={(value) => { return { list: [...value], listKey: value[0], }; }} > <ProFormText fieldProps={{ id: 'filedSet1', }} key="filedSet1" /> <ProFormText fieldProps={{ id: 'filedSet2', }} key="filedSet2" /> </ProFormFieldSet> </ProForm>, ); fireEvent.change(container.querySelector('#filedSet1')!, { target: { value: '111', }, }); expect(valueFn).toBeCalledWith(['111']); fireEvent.change(container.querySelector('#filedSet2')!, { target: { value: '222', }, }); expect(valueFn).toBeCalledWith(['111', '222']); await userEvent.click(await screen.findByText('提 交')); expect(fn).toBeCalledWith('111'); unmount(); }); it('😊 ProFormFieldSet convertValue', async () => { const fn = vi.fn(); const valueFn = vi.fn(); const { container, unmount } = render( <ProForm onFinish={async (values) => { fn(values.listKey); }} onValuesChange={(value) => { valueFn(value.list); }} initialValues={{ list: '1,2', listKey: '2' }} > <ProFormFieldSet name="list" convertValue={(value: string) => { return value.split(',').map((item) => Number(item)); }} > <ProFormText fieldProps={{ id: 'filedSet1', }} key="filedSet1" /> <ProFormText fieldProps={{ id: 'filedSet2', }} key="filedSet2" /> </ProFormFieldSet> <ProFormText fieldProps={{ id: 'filedSet3', }} convertValue={(value: string) => { return value + '-2'; }} name="listKey" key="filedSet3" /> </ProForm>, ); expect(container.querySelector('#filedSet1')).toHaveValue('1'); expect(container.querySelector('#filedSet2')).toHaveValue('2'); expect(container.querySelector('#filedSet3')).toHaveValue('2-2'); await userEvent.click(await screen.findByText('提 交')); expect(fn).toBeCalledWith('2'); unmount(); }); });
9,135
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/filter.react.test.tsx
import { LightFilter, ProFormCascader, ProFormText, ProFormTreeSelect, QueryFilter, } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { TreeSelect } from 'antd'; import { _el, _rs } from 'rc-resize-observer/lib/utils/observerUtil'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('✔️ ProFormLightFilter', () => { afterEach(() => { cleanup(); }); it(' ✔️ clear input values', async () => { const html = render( <LightFilter> <ProFormText name="name1" label="名称" fieldProps={{ role: 'name_input', }} /> </LightFilter>, ); await act(async () => { (await html.findByText('名称'))?.click(); }); await waitFor(() => { return html.findByRole('name_input'); }); await act(async () => { const dom = await html.findByRole('name_input'); fireEvent.change(dom, { target: { value: 'qixian', }, }); }); await waitFor(() => { return html.findAllByText('确 认'); }); await act(async () => { (await html.findAllByText('确 认')).at(0)?.click(); }); const dom = await html.findAllByTitle('qixian'); expect(dom.length > 0).toBeTruthy(); await act(async () => { (await html.findAllByTitle('qixian')).at(0)?.click(); (await html.findAllByText('清除')).at(0)?.parentElement?.click(); }); await act(async () => { (await html.findAllByText('确 认')).at(0)?.click(); }); await waitFor(() => { return html.findAllByText('名称'); }); expect(!!(await html.findByText('名称'))).toBeTruthy(); }); it(' ✔️ QueryFilter resize', async () => { const html = render( <QueryFilter> <ProFormText name="name1" label="名称" /> </QueryFilter>, ); await act(async () => { (await html.findByText('名称'))?.click(); }); await waitForWaitTime(200); await waitForWaitTime(200); const dom = html.baseElement.querySelector('form')!; // @ts-ignore dom.getBoundingClientRect = () => { return { x: 0, y: 0, bottom: 0, height: 0, left: 0, right: 0, top: 0, width: 200, }; }; /** 复制一下方法,方便使用 */ // 为了mock 好辛苦 _el.forEach((value) => { _el.set(dom!, value); }); act(() => { _rs([ // @ts-ignore { target: dom!, }, ]); }); }); it(' ✔️ lightFilter resize', async () => { const html = render( <LightFilter> <ProFormTreeSelect fieldProps={{ fieldNames: { label: 'title', }, treeCheckable: true, showCheckedStrategy: TreeSelect.SHOW_PARENT, placeholder: 'Please select', }} request={async () => { return [ { title: 'Node1', value: '0-0', children: [ { title: 'Child Node1', value: '0-0-0', }, ], }, { title: 'Node2', value: '0-1', children: [ { title: 'Child Node3', value: '0-1-0', }, { title: 'Child Node4', value: '0-1-1', }, { title: 'Child Node5', value: '0-1-2', }, ], }, ]; }} initialValue={['0-0', '0-1']} name="area" label="名称" /> </LightFilter>, ); expect(html.baseElement.querySelector('.ant-select-open')).toBe(null); await act(async () => { const dom = await html.baseElement.querySelector<HTMLSpanElement>( '.ant-pro-core-field-label-text', ); dom?.click?.(); }); await act(async () => { const dom = await html.baseElement.querySelector<HTMLSpanElement>( '.ant-pro-core-field-label-close', ); dom?.click?.(); }); expect(html.baseElement.querySelector('.ant-select-open')).not.toBe(null); }); it(' ✔️ lightFilter ProFormCascader support label', async () => { const html = render( <LightFilter> <ProFormCascader request={async () => [ { value: 'zhejiang', label: '浙江', children: [ { value: 'hangzhou', label: '杭州', children: [ { value: 'xihu', label: '西湖', }, ], }, ], }, { value: 'jiangsu', label: 'Jiangsu', children: [ { value: 'nanjing', label: 'Nanjing', children: [ { value: 'zhonghuamen', label: 'Zhong Hua Men', }, ], }, ], }, ]} name="area" initialValue={['zhejiang', 'hangzhou', 'xihu']} label="名称" /> </LightFilter>, ); expect(html.baseElement.querySelector('.ant-select-open')).toBe(null); await act(async () => { const dom = await html.baseElement.querySelector<HTMLSpanElement>( '.ant-pro-core-field-label-text', ); dom?.click?.(); }); await act(async () => { const dom = await html.baseElement.querySelector<HTMLSpanElement>( '.ant-pro-core-field-label-close', ); dom?.click?.(); }); expect(html.baseElement.querySelector('.ant-select-open')).not.toBe(null); }); });
9,136
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/formList.test.tsx
import { CloseOutlined, SnippetsOutlined } from '@ant-design/icons'; import { ProCard } from '@ant-design/pro-components'; import type { FormListActionType } from '@ant-design/pro-form'; import ProForm, { ModalForm, ProFormDatePicker, ProFormDependency, ProFormGroup, ProFormList, ProFormText, StepsForm, } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, screen, waitFor, } from '@testing-library/react'; import { Button, Form } from 'antd'; import type { NamePath } from 'antd/lib/form/interface'; import _ from 'lodash'; import moment from 'moment'; import React from 'react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('ProForm List', () => { it('⛲ ProForm.List', async () => { const fn = vi.fn(); render( <ProForm onFinish={async (values) => { fn(Object.keys(values.users[0])); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith(['name', 'nickName']); }); }); it('⛲ ProForm.List support readonly', async () => { const html = render( <ProForm readonly> <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); await html.findByText('提 交'); expect( !!html.baseElement.querySelector( 'ant-pro-form-list-creator-button-bottom', ), ).toBeFalsy(); }); it('⛲ ProForm.List support self readonly', async () => { const html = render( <ProForm> <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} readonly > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); await html.findByText('提 交'); expect( !!html.baseElement.querySelector( 'ant-pro-form-list-creator-button-bottom', ), ).toBeFalsy(); }); it('⛲ ProForm.List for deps ProFormDependency', async () => { const html = render( <StepsForm<{ name: string; }> onFinish={async (values) => { console.log(values); }} > <StepsForm.StepForm name="cep" title="端规则编排" onFinish={async () => { return true; }} > <ProFormList name="parttenList" creatorButtonProps={{ position: 'bottom', creatorButtonText: '添加规则', }} min={1} itemRender={({ listDom, action }) => ( <ProCard bordered style={{ marginBlockEnd: 8 }} extra={action} bodyStyle={{ paddingBlockEnd: 0 }} > {listDom} </ProCard> )} initialValue={[{}]} > <ModalForm title="添加规则" trigger={<div>点击添加</div>} width={1200} > <ProFormText name="ruleType" width="sm" label="规则类型" placeholder="用户信息的名字" rules={[{ required: true, message: '请选择规则类型' }]} /> <ProFormDependency name={['ruleType']}> {({ ruleType }) => { return <div>你好{ruleType}</div>; }} </ProFormDependency> </ModalForm> </ProFormList> </StepsForm.StepForm> </StepsForm>, ); const button = await html.findByText('点击添加'); act(() => { button.click(); }); await waitForWaitTime(200); const input = await html.findByPlaceholderText('用户信息的名字'); act(() => { fireEvent.change(input, { target: { value: 'normal', }, }); }); const text = await html.findByText('你好normal'); expect(!!text).toBeTruthy(); }); it('⛲ ProForm.List add button', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(Object.keys(values.users[1])); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); expect( !!container.querySelectorAll( '.ant-btn.ant-pro-form-list-creator-button-bottom', ).length, ).toBeTruthy(); expect( container.querySelectorAll( '.ant-btn.ant-pro-form-list-creator-button-top', ).length, ).toBeFalsy(); fireEvent.click( container.querySelector( '.ant-btn.ant-pro-form-list-creator-button-bottom', )!, ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith([]); }); }); it('⛲ ProForm.List render children', async () => { const fn = vi.fn(); render( <ProForm onFinish={async (values) => { fn(values.users[0]); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > {() => { return ( <div> <ProFormText name="name" /> <ProFormText name="nickName" /> </div> ); }} </ProFormList> </ProForm>, ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith({ name: '1111', nickName: '1111', }); }); }); it('⛲ ProForm.List getCurrentRowData and setCurrentRowData', async () => { const fn = vi.fn(); const html = render( <ProForm onFinish={async (values) => { fn(values.users[0]); }} > <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > {(_field, index, action) => { return ( <div key="nickName"> <ProFormText key="name" name="name" /> <ProFormText key="nickName" name="nickName" /> <Button type="dashed" key="SET" id="set" onClick={() => { action.setCurrentRowData({ name: 'New Name' + index, nickName: 'New Remark' + index, }); }} > 设置此项 </Button> <Button type="dashed" key="clear" id="clear" onClick={() => { action.setCurrentRowData({ name: undefined, nickName: undefined, }); }} > 清空此项 </Button> </div> ); }} </ProFormList> </ProForm>, ); await waitForWaitTime(2000); act(() => { html.baseElement .querySelector<HTMLDivElement>('.ant-btn.ant-btn-primary') ?.click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith({ name: '1111', nickName: '1111', }); act(() => { html.baseElement.querySelector<HTMLDivElement>('#set')?.click(); }); await waitForWaitTime(2000); act(() => { html.baseElement .querySelector<HTMLDivElement>('.ant-btn.ant-btn-primary') ?.click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith({ name: 'New Name0', nickName: 'New Remark0', }); act(() => { html.baseElement.querySelector<HTMLDivElement>('#clear')?.click(); }); act(() => { html.baseElement .querySelector<HTMLDivElement>('.ant-btn.ant-btn-primary') ?.click(); }); await waitForWaitTime(100); expect(fn).toBeCalledWith({ name: undefined, nickName: undefined, }); }); it('⛲ ProForm.List close button', async () => { const { container } = render( <ProForm> <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" creatorButtonProps={false}> <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); expect( !!container.querySelectorAll( '.ant-btn.ant-pro-form-list-creator-button-bottom', ).length, ).toBeFalsy(); }); it('⛲ ProForm.List add button when creatorRecord', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.users[1]); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" creatorRecord={{ name: '2222', nickName: '2222', }} initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); fireEvent.click( container.querySelector( '.ant-btn.ant-pro-form-list-creator-button-bottom', )!, ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith({ name: '2222', nickName: '2222', }); }); }); it('⛲ ProForm.List add button on top', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(Object.keys(values.users[0] || {})); }} > <ProFormText name="name" label="姓名" /> <ProFormList creatorButtonProps={{ position: 'top', creatorButtonText: '新建', }} name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); expect( !!container.querySelectorAll( '.ant-btn.ant-pro-form-list-creator-button-top', ).length, ).toBeTruthy(); expect( !!container.querySelectorAll( '.ant-btn.ant-pro-form-list-creator-button-bottom', ).length, ).toBeFalsy(); fireEvent.click( container.querySelector('.ant-btn.ant-pro-form-list-creator-button-top')!, ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith([]); }); }); it('⛲ ProForm.List copy to newline', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.users[1]); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); fireEvent.click( container.querySelectorAll( '.ant-pro-form-list-action .ant-pro-form-list-action-icon', )[0], ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith({ name: '1111', nickName: '1111', }); }); }); it('⛲ ProForm.List delete icon', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.users[0]); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, { name: '2222', nickName: '2222', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); fireEvent.click( container .querySelectorAll('.ant-pro-form-list-action')[0] .querySelectorAll('span.ant-pro-form-list-action-icon')[1], ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith({ name: '2222', nickName: '2222', }); }); }); it('⛲ ProForm.List itemRender', async () => { const fn = vi.fn(); render( <ProForm onFinish={async (values) => { fn(values.users[0]); }} > <ProFormText name="name" label="姓名" /> <ProFormList itemRender={({ listDom, action }) => { return ( <div data-testid="test"> {listDom} {action} </div> ); }} name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, { name: '2222', nickName: '2222', }, ]} > <ProFormText key="name" name="name" label="姓名" /> <ProFormText key="nickName" name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); expect(await screen.findAllByTestId('test')).toBeDefined(); }); it('⛲ ProForm.List in ProForm.List', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.users[0].tag); }} > <ProFormText name="name" label="姓名" /> <ProFormList itemRender={({ listDom, action }) => { return ( <div id="test"> {listDom} {action} </div> ); }} name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', tag: [ { name: '1212', }, ], }, { name: '2222', nickName: '2222', tag: [ { name: '1212', }, ], }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> <ProFormList name="tag" label="标签" creatorRecord={{ name: 'test', }} > <ProFormText name="name" label="姓名" /> </ProFormList> </ProFormList> </ProForm>, ); fireEvent.click( container.querySelectorAll( '.ant-pro-form-list .ant-pro-form-list .ant-btn-dashed', )[0], ); fireEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalledWith([ { name: '1212', }, { name: 'test', }, ]); }); }); it('⛲ ProForm.List support ProFormDependency', async () => { const fn = vi.fn(); const { container } = render( <ProForm> <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', }, ]} alwaysShowItemLabel > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> <ProFormDependency name={['nickName']}> {({ nickName }) => { if (!nickName) { return null; } fn(nickName); return <ProFormText name="names" label="昵称详情" />; }} </ProFormDependency> </ProFormList> </ProForm>, ); expect(container.querySelectorAll('input.ant-input')).toHaveLength(3); fireEvent.change(container.querySelectorAll('input.ant-input')[2], { target: { value: '222', }, }); expect(container.querySelectorAll('input.ant-input')).toHaveLength(4); expect(fn).toBeCalledWith('222'); }); it('⛲ ProForm.List support ProFormDependency2', async () => { const initialValues = { a: 1, b: 2, c: { a: 3, b: 4, c: { a: 5, }, d: [{ a: 6, b: 7 }], e: [{ a: 8, b: 9 }], }, }; const depName1: NamePath[] = [ 'a', 'b', ['c', 'a'], ['c', 'b'], ['c', 'c', 'a'], ['c', 'd'], ['c', 'e'], ]; const depName2: NamePath[] = ['a', 'b', ['c', 'a']]; const depName3: NamePath[] = ['a', 'b', ['c', 'a']]; const { container } = render( <ProForm initialValues={initialValues}> <ProFormGroup> <ProFormText name="a" label="a" /> <ProFormText name="b" label="b" /> <ProFormText name={['c', 'a']} label="c.a" /> <ProFormText name={['c', 'b']} label="c.b" /> <ProFormText name={['c', 'c', 'a']} label="c.c.a" /> <ProFormGroup title="c.d"> <ProFormList name={['c', 'd']}> <ProFormGroup> <ProFormText name="a" label="a" /> <ProFormText name="b" label="b" /> <ProFormDependency name={depName3}> {(depValues) => ( <Form.Item label={`搜集依赖值(情形3) <ProFormDependency name={${JSON.stringify( depName3, )}}>`} extra="a, b, c.a取自局部" > <pre> <code className="case3"> {JSON.stringify(depValues, null, 2)} </code> </pre> </Form.Item> )} </ProFormDependency> </ProFormGroup> </ProFormList> </ProFormGroup> <ProFormGroup title="c.e"> <ProFormList name={['c', 'e']}> <ProFormGroup> <ProFormText name="a" label="a" /> <ProFormText name="b" label="b" /> <ProFormDependency name={depName2} ignoreFormListField> {(depValues) => ( <Form.Item label={`搜集依赖值(情形2) <ProFormDependency name={${JSON.stringify( depName2, )}} ignoreFormListField>`} extra="a, b, c.a取自全局" > <pre> <code className="case2"> {JSON.stringify(depValues, null, 2)} </code> </pre> </Form.Item> )} </ProFormDependency> </ProFormGroup> </ProFormList> </ProFormGroup> </ProFormGroup> <ProFormGroup title={`收集依赖值(情形1) <ProFormDependency name={${JSON.stringify( depName1, )}}>`} > <ProFormDependency name={depName1}> {(depValues) => ( <pre> <code className="case1"> {JSON.stringify(depValues, null, 2)} </code> </pre> )} </ProFormDependency> </ProFormGroup> </ProForm>, ); const namePaths2PropertyPaths = (name: NamePath[]) => { return name.map((item) => (Array.isArray(item) ? item.join('.') : item)); }; expect(container.querySelector('code.case1')).toContainHTML( JSON.stringify( _.pick(initialValues, namePaths2PropertyPaths(depName1)), null, 2, ), ); expect(container.querySelector('code.case2')).toContainHTML( JSON.stringify( _.pick(initialValues, namePaths2PropertyPaths(depName2)), null, 2, ), ); expect(container.querySelector('code.case3')).toContainHTML( JSON.stringify( { c: { d: [ { c: {}, }, ], }, a: 6, b: 7, }, null, 2, ), ); }); it('⛲ ProForm.List support copyIconProps and deleteIconProps', async () => { const { container } = render( <ProForm> <ProFormList copyIconProps={false} deleteIconProps={false} name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); expect( !!container.querySelectorAll('.ant-pro-form-list-action').length, ).toBeFalsy(); }); it('⛲ ProForm.List support copyIconProps.icon and deleteIconProps.icon', async () => { const { container } = render( <ProForm> <ProFormList copyIconProps={{ Icon: SnippetsOutlined, }} deleteIconProps={{ Icon: CloseOutlined, }} name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormText name="nickName" label="昵称" /> </ProFormList> </ProForm>, ); expect( !!container.querySelectorAll('.anticon-snippets').length, ).toBeTruthy(); expect(!!container.querySelectorAll('.anticon-close').length).toBeTruthy(); }); it('⛲ ProForm.List use behavior guard when triggering behavior', async () => { const fnAdd = vi.fn(); const fnRemove = vi.fn(); const html = render( <ProForm> <ProFormList copyIconProps={{ Icon: SnippetsOutlined, }} deleteIconProps={{ Icon: CloseOutlined, }} actionGuard={{ beforeAddRow: async (defaultValue, insertIndex) => { return new Promise((resolve) => { fnAdd(defaultValue?.name, insertIndex); setTimeout(() => resolve(true), 1000); }); }, beforeRemoveRow: async (index) => { fnRemove(index); return new Promise((resolve) => { if (index === 0) { resolve(false); return; } setTimeout(() => resolve(true), 1000); }); }, }} name="users" label="用户信息" initialValue={[ { name: '1111', }, ]} > <ProFormText name="name" label="姓名" /> </ProFormList> </ProForm>, ); await waitForWaitTime(100); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(1); // 新增按钮 await act(async () => { (await html.findByText('添加一行数据')).parentElement?.click(); }); expect(fnAdd).toHaveBeenLastCalledWith(undefined, 1); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(1); await waitForWaitTime(1200); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(2); // 复制按钮 await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-copy')[0] ?.click?.(); }); expect(fnAdd).toHaveBeenLastCalledWith('1111', 2); await waitForWaitTime(1200); const input = html.baseElement.querySelectorAll<HTMLInputElement>('input.ant-input'); expect(input.length).toBe(3); expect(input[2].value).toBe('1111'); // 删除按钮 await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[2] ?.click?.(); }); expect(fnRemove).toBeCalledWith(2); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(3); await waitForWaitTime(1200); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(2); // 删除按钮不能删除的项目 await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[0] ?.click?.(); }); await waitForWaitTime(1200); expect(fnRemove).toBeCalledWith(0); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(2); }); it('⛲ ProForm.List use behavior guard when triggering no behavior', async () => { const fnAdd = vi.fn(); const html = render( <ProForm> <ProFormList copyIconProps={{ Icon: SnippetsOutlined, }} deleteIconProps={{ Icon: CloseOutlined, }} actionGuard={{ beforeAddRow: async (defaultValue, insertIndex) => { return new Promise((resolve) => { if (!defaultValue?.name) { resolve(false); return; } fnAdd(defaultValue?.name, insertIndex); setTimeout(() => resolve(true), 1000); }); }, }} name="users" label="用户信息" initialValue={[ { name: '1111', }, ]} > <ProFormText name="name" label="姓名" /> </ProFormList> </ProForm>, ); await waitForWaitTime(100); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(1); // 新增按钮 await act(async () => { (await html.findByText('添加一行数据')).parentElement?.click(); }); expect(fnAdd).not.toBeCalled(); }); it('⛲ ProForm.List warning after remove', async () => { const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => {}); const fnRemove = vi.fn(); const html = render( <ProForm> <ProFormList actionGuard={{ beforeRemoveRow: async (index) => { fnRemove(index); return true; }, }} name="users" label="用户信息" initialValue={[ { name: '1111', }, ]} > <ProFormText name="name" label="姓名" /> </ProFormList> </ProForm>, ); await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[0] ?.click?.(); }); await waitForWaitTime(100); expect(fnRemove).toBeCalledWith(0); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(0); await waitForWaitTime(100); expect(errorSpy).not.toHaveBeenCalled(); errorSpy.mockRestore(); }); it('⛲ ProForm.List hide action btn when over limit', async () => { const html = render( <ProForm> <ProFormList copyIconProps={{ Icon: SnippetsOutlined, }} deleteIconProps={{ Icon: CloseOutlined, }} min={1} max={4} name="users" label="用户信息" initialValue={[ { name: '1111', }, ]} > list <ProFormText name="name" label="姓名" /> </ProFormList> </ProForm>, ); await waitForWaitTime(100); expect(html.baseElement.querySelectorAll('input.ant-input').length).toBe(1); // 尝试增加到4条数据 await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-copy')[0] ?.click?.(); html.baseElement .querySelectorAll<HTMLDivElement>('.action-copy')[0] ?.click?.(); html.baseElement .querySelectorAll<HTMLDivElement>('.action-copy')[0] ?.click?.(); }); await waitForWaitTime(1000); await waitForWaitTime(100); const createBtn = html.baseElement.querySelectorAll<HTMLDivElement>( '.ant-btn.ant-pro-form-list-creator-button-bottom', ); const copyBtn = html.baseElement.querySelectorAll('.action-copy'); expect(createBtn.length).toBe(0); expect(copyBtn.length).toBe(0); // 尝试删除掉所有,但实际至少保留一个 await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[0] ?.click?.(); html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[0] ?.click?.(); html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[0] ?.click?.(); }); await waitForWaitTime(1200); expect( html.baseElement.querySelectorAll<HTMLDivElement>('.action-remove') .length, ).toBe(0); }); it('⛲ valid to set the format property in ProForm.List', async () => { const onFinish = vi.fn(); const html = render( <ProForm onFinish={onFinish} initialValues={{ list: [ { date: '2020', }, ], }} submitter={{ submitButtonProps: { id: 'submit', }, }} > <ProFormList name="list"> <ProFormDatePicker name="date" fieldProps={{ format: 'YYYY', }} /> </ProFormList> </ProForm>, ); act(() => { html.queryByText('提 交')?.click(); }); await waitForWaitTime(100); expect(onFinish).toBeCalledWith({ list: [ { date: '2020', }, ], }); }); it('⛲ ProForm.List fieldExtraRender', async () => { const fn = vi.fn(); render( <ProForm onFinish={async (values) => { fn(values.users[1]); }} > <ProFormText name="name" label="姓名" /> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} fieldExtraRender={(fieldAction) => { return ( <Button type="text" onClick={() => fieldAction.add({ name: '2222', nickName: '2222', }) } > Add Field </Button> ); }} > {() => { return ( <div> <ProFormText name="name" /> <ProFormText name="nickName" /> </div> ); }} </ProFormList> </ProForm>, ); fireEvent.click(await screen.findByText('Add Field')); fireEvent.click(await screen.findByText('提 交')!); await waitFor(() => { expect(fn).toBeCalledWith({ name: '2222', nickName: '2222', }); }); }); it('⛲ ProForm.List support actionRef', async () => { const actionRef = React.createRef< FormListActionType<{ name: string; }> >(); const html = render( <ProForm> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', nickName: '1111', }, ]} // @ts-ignore actionRef={actionRef} fieldExtraRender={() => { return ( <Button type="text" onClick={() => actionRef.current?.add({ name: '2222', nickName: '2222', }) } > Add Field </Button> ); }} > {() => { return ( <div> <ProFormText name="name" /> <ProFormText name="nickName" /> </div> ); }} </ProFormList> </ProForm>, ); await waitForWaitTime(100); await act(async () => { const dom = await html.findByText('Add Field'); dom.click(); }); const data = actionRef.current?.get(1); expect(data?.name).toBe('2222'); const list = actionRef.current?.getList(); expect(list?.at(1)?.name).toBe('2222'); }); it('⛲ ProForm.List getCurrentRowData support subList', async () => { const ref = React.createRef<{ getCurrentRowData: () => any; }>(); const html = render( <ProForm> <ProFormList name="users" label="用户信息" initialValue={[ { name: '1111', }, ]} > <ProFormText name="name" label="姓名" /> <ProFormList name="lv1" label="lv1信息" initialValue={[ { lv2Name: '1111', }, ]} > {(_f, _idxLv2, action) => { // @ts-ignore ref.current = action; return ( <ProFormText name="lv2Name" label="层级" fieldProps={{ id: 'lv2Name', }} /> ); }} </ProFormList> </ProFormList> </ProForm>, ); act(() => { const dom = html.baseElement.querySelector<HTMLInputElement>('#lv2Name'); fireEvent.change(dom!, { target: { value: 'test', }, }); }); await waitForWaitTime(100); expect(ref.current?.getCurrentRowData().lv2Name).toBe('test'); }); it('⛲ ProForm.List getCurrentRowData and setCurrentRowData support two-dimensional array', async () => { const ref = React.createRef<{ getCurrentRowData: () => any; setCurrentRowData: (data: any) => void; }>(); const html = render( <ProForm> <ProFormList name="twoDimensionalArray" label="一级数组" initialValue={[ [ { name: '1111', }, ], ]} > <ProFormList name={[]} label="二级数组"> {(_f, _idxLv2, action) => { // @ts-ignore ref.current = action; return ( <ProFormText name="name" label="用户姓名" fieldProps={{ id: 'lv2Name', }} /> ); }} </ProFormList> </ProFormList> </ProForm>, ); await waitForWaitTime(100); expect(ref.current?.getCurrentRowData().name).toBe('1111'); act(() => { const dom = html.baseElement.querySelector<HTMLInputElement>('#lv2Name'); fireEvent.change(dom!, { target: { value: 'test', }, }); }); await waitForWaitTime(100); expect(ref.current?.getCurrentRowData().name).toBe('test'); ref.current?.setCurrentRowData({ name: 'New Name' }); await waitForWaitTime(100); expect(ref.current?.getCurrentRowData().name).toBe('New Name'); }); it('⛲ ProForm.List action hooks should be emit', async () => { const handleAdd = vi.fn(); const handleRemove = vi.fn(); const html = render( <ProForm> <ProFormList name="list" label="表格" initialValue={[ [ { name: '1111', }, ], ]} onAfterAdd={(a, b, count) => { handleAdd(count); }} onAfterRemove={(a, count) => { handleRemove(count); }} > <ProFormText name="name" /> </ProFormList> </ProForm>, ); await waitForWaitTime(100); // 删除按钮 await act(async () => { html.baseElement .querySelectorAll<HTMLDivElement>('.action-remove')[0] ?.click?.(); }); expect(handleRemove).toBeCalledWith(0); // 新增按钮 await act(async () => { const createBtn = await html.baseElement.querySelector( '.ant-pro-form-list-creator-button-bottom', ); if (createBtn) { fireEvent.click(createBtn); } }); expect(handleAdd).toBeCalledWith(1); }); it(`⛲ ProForm.List display * when required`, () => { const html = render( <ProForm> <ProFormList name="list" label="表格" rules={[ { required: true, validator: async (_rule, value) => { if (value && value.length > 0) { return; } throw new Error('至少要有一项!'); }, }, ]} > <ProFormText name="name" /> </ProFormList> </ProForm>, ); expect( html.baseElement.querySelectorAll('.ant-form-item-required').length, ).toBe(1); html.rerender( <ProForm> <ProFormList name="list" label="表格"> <ProFormText name="name" /> </ProFormList> </ProForm>, ); expect( html.baseElement.querySelectorAll('.ant-form-item-required').length, ).toBe(0); html.unmount(); }); it(`⛲ ProForm.List support validate formList empty`, async () => { const onFinish = vi.fn(); const html = render( <ProForm> <ProFormList name="list" label="表格" isValidateList> <ProFormText name="name" rules={[{ required: true, message: '请填写1' }]} /> </ProFormList> </ProForm>, ); await waitForWaitTime(300); await act(async () => { fireEvent.click(await html.findByText('提 交')); }); await waitForWaitTime(300); expect(onFinish).toBeCalledTimes(0); expect((await html.findAllByText('列表不能为空')).length).toBe(1); await act(async () => { fireEvent.click(await html.findByText('添加一行数据')); }); await waitForWaitTime(300); await act(async () => { fireEvent.click(await html.findByText('提 交')); }); await waitForWaitTime(300); expect( (await html.baseElement.querySelector('.ant-form-item-explain-error')) ?.innerHTML, ).toBe('请填写1'); await act(async () => { fireEvent.click(await html.baseElement.querySelector('.action-remove')!); }); await waitForWaitTime(300); expect((await html.findAllByText('列表不能为空')).length).toBe(1); }); it('⛲ ProForm.List transform should be call', async () => { const handleFinish1 = vi.fn(); const handleFinish2 = vi.fn(); const handleFinish3 = vi.fn(); const handleFinish4 = vi.fn(); const handleFinish5 = vi.fn(); const html = render( <ProForm onFinish={async (values) => { handleFinish1(values.datas[0].date); handleFinish2(values.datas[0].datas[0].date); handleFinish3(values.datas[0].datas[0].datas[0].date); handleFinish4(values.datas[0].datas[0].datas[0].datas[0].date); handleFinish5(values); }} > <ProFormList name="datas" initialValue={[ { date: '2022-10-12 10:00:00', datas: [ { date: '2022-10-12 10:00:00', datas: [ { date: '2022-10-12 10:00:00', datas: [ { date: '2022-10-12 10:00:00', }, ], }, ], }, ], }, ]} > {() => { return ( <div> <ProFormDatePicker name="date" transform={(value) => { return { date: moment(value).unix(), }; }} /> <ProFormList name="datas"> {() => { return ( <div> <ProFormDatePicker name="date" transform={(value) => { return { date: moment(value).unix(), }; }} /> <ProFormList name="datas"> {() => { return ( <div> <ProFormDatePicker name="date" transform={(value) => { return { date: moment(value).unix(), }; }} /> <ProFormList name="datas"> {() => { return ( <div> <ProFormDatePicker name="date" transform={(value) => { return { date: moment(value).unix(), }; }} /> </div> ); }} </ProFormList> </div> ); }} </ProFormList> </div> ); }} </ProFormList> </div> ); }} </ProFormList> </ProForm>, ); await waitForWaitTime(2000); act(() => { html.baseElement .querySelector<HTMLDivElement>('.ant-btn.ant-btn-primary') ?.click(); }); await waitForWaitTime(2000); expect(handleFinish1).toBeCalledWith(1665568800); expect(handleFinish2).toBeCalledWith(1665568800); expect(handleFinish3).toBeCalledWith(1665568800); expect(handleFinish4).toBeCalledWith(1665568800); }); });
9,137
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/formitem.test.tsx
import ProForm, { ProFormText } from '@ant-design/pro-form'; import { cleanup, fireEvent, render } from '@testing-library/react'; import { Input } from 'antd'; afterEach(() => { cleanup(); }); describe('ProForm.Item', () => { it('📦 ProForm support fieldProps.onBlur', async () => { const onBlur = vi.fn(); const { container } = render( <ProForm initialValues={{ navTheme: 'dark', }} > <ProFormText fieldProps={{ id: 'navTheme', onBlur: (e) => onBlur(e.target.value), }} name="navTheme" /> </ProForm>, ); fireEvent.focus(container.querySelector('input#navTheme')!); fireEvent.blur(container.querySelector('input#navTheme')!); expect(onBlur).toBeCalledWith('dark'); expect(onBlur).toBeCalledTimes(1); }); it('📦 ProForm.Item supports onChange', async () => { const onChange = vi.fn(); const onValuesChange = vi.fn(); const { container } = render( <ProForm initialValues={{ navTheme: 'dark', }} onValuesChange={({ name }) => onValuesChange(name)} > <ProForm.Item name="name"> <Input onChange={(e) => onChange(e.target.value)} id="name" /> </ProForm.Item> </ProForm>, ); fireEvent.change(container.querySelector('input#name')!, { target: { value: '1212', }, }); expect(onChange).toBeCalledWith('1212'); expect(onChange).toBeCalledTimes(1); expect(onValuesChange).toBeCalledWith('1212'); expect(onValuesChange).toBeCalledTimes(1); }); });
9,138
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/lightFilter.test.tsx
import { LightFilter, ProFormDatePicker, ProFormDateRangePicker, ProFormDateTimePicker, ProFormRadio, ProFormSelect, ProFormSlider, ProFormText, ProFormTimePicker, } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, screen, waitFor, } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import dayjs from 'dayjs'; import KeyCode from 'rc-util/es/KeyCode'; afterEach(() => { cleanup(); }); describe('LightFilter', () => { it(' 🪕 basic use text', async () => { const onValuesChange = vi.fn(); const onFinish = vi.fn(); const { container } = render( <LightFilter initialValues={{ name1: 'yutingzhao1991', }} onFinish={onFinish} onValuesChange={(_, values) => onValuesChange(values)} > <ProFormText name="name1" label="名称" /> </LightFilter>, ); await waitFor(() => { expect( container.querySelectorAll('div.ant-col.ant-form-item-control'), ).toHaveLength(1); expect( container.querySelectorAll('.ant-pro-core-field-label')[0], ).toHaveTextContent('名称: yutingzhao1991'); }); await act(() => { return userEvent.click( container.querySelector('.ant-pro-core-field-label')!, ); }); await waitFor(() => { expect(screen.getByDisplayValue('yutingzhao1991')).toBeInTheDocument(); }); await act(() => { return fireEvent.change(screen.getByDisplayValue('yutingzhao1991'), { target: { value: 'name1 update', }, }); }); await act(async () => { return userEvent.click(await screen.findByText('确 认')); }); await waitFor( () => { expect(onFinish).toHaveBeenCalledWith({ name1: 'name1 update', }); }, { timeout: 1000, }, ); await waitFor(() => { expect(onValuesChange).toHaveBeenCalledWith({ name1: 'name1 update', }); }); act(() => { userEvent.click(container.querySelector('.anticon-close-circle')!); }); await waitFor(() => { expect(onValuesChange).toHaveBeenCalledWith({ name1: undefined, }); }); }); it(' 🪕 basic use secondary', async () => { const onValuesChange = vi.fn(); const onFinish = vi.fn(); render( <LightFilter onFinish={onFinish} onValuesChange={(_, values) => onValuesChange(values)} > <ProFormText name="name2" label="地址" secondary /> </LightFilter>, ); act(() => { userEvent.click(screen.getByText('更多筛选')); }); await waitFor( () => { expect(screen.getByText('地址')).toBeInTheDocument(); }, { timeout: 1000, }, ); act(() => { fireEvent.change(screen.getByPlaceholderText('请输入'), { target: { value: 'new value', }, }); }); await waitFor( () => { expect(onFinish).toHaveBeenCalledWith({ name2: 'new value', }); }, { timeout: 1000, }, ); await waitFor(() => { expect(onValuesChange).toHaveBeenCalledWith({ name2: 'new value', }); }); }); it(' 🪕 basic use DatePicker', async () => { const onValuesChange = vi.fn(); const onFinish = vi.fn(); const { container } = render( <LightFilter initialValues={{ name3: '2020-08-19', }} onFinish={onFinish} onValuesChange={(_, values) => onValuesChange(values)} > <ProFormDatePicker name="name3" label="日期" /> </LightFilter>, ); await waitFor( async () => { expect( await screen.findByDisplayValue('2020-08-19'), ).toBeInTheDocument(); }, { timeout: 1000, }, ); await act(async () => { userEvent.click(await screen.findByDisplayValue('2020-08-19')); }); await waitFor( async () => { return screen.findByTitle('2020-08-01'); }, { timeout: 1000, }, ); await act(async () => { userEvent.click(await screen.findByTitle('2020-08-01')); }); await waitFor( () => { expect(onFinish).toHaveBeenCalledWith({ name3: '2020-08-01', }); }, { timeout: 1000, }, ); await waitFor(async () => { expect(onValuesChange).toHaveBeenCalledWith({ name3: '2020-08-01', }); }); await act(async () => { fireEvent.mouseDown( container.querySelector('.ant-pro-core-field-label .ant-picker-clear')!, ); fireEvent.mouseUp( container.querySelector('.ant-pro-core-field-label .ant-picker-clear')!, ); }); await waitFor( async () => { expect(onValuesChange).toHaveBeenCalledWith({}); expect(onFinish).toHaveBeenCalledWith({}); }, { timeout: 1000, }, ); }); it(' 🪕 single select', async () => { const { container, unmount } = render( <LightFilter initialValues={{ name: 'Jack2', }} > <ProFormSelect label="名称" name="name" valueEnum={{ Jack: '杰克', Jack2: '杰克2', TechUI: 'TechUI', }} /> </LightFilter>, ); expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称: 杰克2'); expect( container.querySelectorAll( '.ant-pro-core-field-label-arrow.anticon-down', ), ).toHaveLength(1); act(() => { userEvent.click(container.querySelector('.ant-pro-core-field-label')!); }); expect( container.querySelectorAll( '.ant-pro-core-field-label-arrow.anticon-down', ), ).toHaveLength(1); await waitFor(() => screen.findByText('杰克')); await act(async () => { userEvent.click(await screen.findByText('杰克')); }); expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称: 杰克'); await act(async () => { userEvent.click( container.querySelector('.ant-pro-core-field-label .anticon-close')!, ); }); expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称'); unmount(); }); it(' 🪕 QueryFilter FormItem support footerRender', async () => { const { container, unmount } = render( <LightFilter initialValues={{ name: 'Jack2', }} collapse footerRender={false} > <ProFormText name="name" label="名称" /> </LightFilter>, ); expect( container.querySelectorAll('.ant-pro-form-light-filter-effective'), ).toHaveLength(1); await userEvent.click( container.querySelector('.ant-pro-form-light-filter-container')!, ); expect( container.querySelectorAll('.ant-pro-core-dropdown-footer'), ).toHaveLength(0); unmount(); }); it(' 🪕 QueryFilter FormItem support footer', async () => { const { container, unmount } = render( <LightFilter initialValues={{ name: 'Jack2', }} > <ProFormText footerRender={false} name="name1" label="名称" /> </LightFilter>, ); await userEvent.click( container.querySelectorAll('.ant-pro-core-field-label')[0], ); expect( container.querySelectorAll('.ant-pro-core-dropdown-footer'), ).toHaveLength(0); unmount(); }); it(' 🪕 select showSearch', async () => { const { container } = render( <LightFilter initialValues={{ name: 'Jack2', }} > <ProFormSelect showSearch label="名称" name="name" valueEnum={{ Jack: '杰克', Jack2: '杰克2', TechUI: 'TechUI', }} /> </LightFilter>, ); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称: 杰克2'); expect( container.querySelectorAll( '.ant-pro-core-field-label-arrow.anticon-down', ), ).toHaveLength(1); }); act(() => { userEvent.click(container.querySelector('.ant-pro-core-field-label')!); }); await waitFor(() => { expect( container.querySelectorAll( '.ant-pro-core-field-label-arrow.anticon-down', ), ).toHaveLength(1); }); await waitFor( () => { return screen.findByRole('textbox'); }, { timeout: 1000 }, ); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: 'tech', }, }); }); await act(async () => { userEvent.click(await screen.findByTitle('TechUI')); }); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称: TechUI'); }); act(() => { userEvent.click( container.querySelector('.ant-pro-core-field-label .anticon-close')!, ); }); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称'); }); }); it(' 🪕 multiple select showSearch', async () => { vi.useFakeTimers(); const { container } = render( <LightFilter initialValues={{ name: ['Jack2'], }} > <ProFormSelect showSearch label="名称" name="name" mode="multiple" valueEnum={{ Jack: '杰克', Jack2: '杰克2', TechUI: 'TechUI', long: 'YES这是一个很长很长的测试阿aa阿ABCDEFGHIJKLM', }} /> </LightFilter>, ); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('名称: 杰克2'); expect( container.querySelectorAll( '.ant-pro-core-field-label-arrow.anticon-down', ), ).toHaveLength(1); }); await act(async () => { userEvent.click(container.querySelector('.ant-pro-core-field-label')!); }); await act(async () => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect( container.querySelectorAll( '.ant-pro-core-field-label-arrow.anticon-down', ), ).toHaveLength(1); }); await act(async () => { vi.runOnlyPendingTimers(); }); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: 'tech', }, }); }); await act(async () => { userEvent.click(await screen.findByTitle('TechUI')); }); await act(async () => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label')?.textContent, ).toEqual('名称: 杰克2,TechUI'); }); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: 'YES', }, }); }); await act(async () => { vi.runOnlyPendingTimers(); }); await act(async () => { userEvent.click( await screen.findByTitle( 'YES这是一个很长很长的测试阿aa阿ABCDEFGHIJKLM', ), ); }); await act(async () => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label')?.textContent, ).toEqual( '名称: 杰克2,TechUI,YES这是一个很长很长的测试阿aa阿ABCDEFGHIJKL...3项', ); }); await act(async () => { fireEvent.keyDown(await screen.findByRole('textbox'), { target: { which: KeyCode.BACKSPACE, }, }); }); await act(async () => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label')?.textContent, ).toEqual( '名称: 杰克2,TechUI,YES这是一个很长很长的测试阿aa阿ABCDEFGHIJKL...3项', ); }); vi.useRealTimers(); }); it(' 🪕 Base DateRangePicker', async () => { const onFinish = vi.fn(); const onOpenChange = vi.fn(); const onLoadingChange = vi.fn(); const { baseElement, container } = render( <LightFilter onFinish={async (e) => { return new Promise((resolve) => { setTimeout(() => { onFinish(e); resolve(true); }, 100); }); }} onLoadingChange={(e) => { onLoadingChange(e); }} > <ProFormDateRangePicker name="date" fieldProps={{ onOpenChange(open) { onOpenChange(open); }, }} label="日期范围" /> </LightFilter>, ); await screen.findAllByText('日期范围'); expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('日期范围'); const dom = await screen.findByText('日期范围'); await act(async () => { userEvent.click(dom); }); await waitFor( () => { return screen.findAllByPlaceholderText('请选择'); }, { timeout: 2000, }, ); act(() => { userEvent.click( screen.getAllByPlaceholderText('请选择')[0]!.parentElement!, ); }); await waitFor( () => { expect(onOpenChange).toBeCalledWith(true); }, { timeout: 2000, }, ); // 随便找个日期,等日期存在了 await screen.findAllByText('12'); act(() => { userEvent.click( baseElement.querySelectorAll('.ant-picker-cell-inner')[2], ); }); act(() => { userEvent.click( baseElement.querySelectorAll('.ant-picker-cell-inner')[12], ); }); act(() => { userEvent.click( screen.getAllByPlaceholderText('请选择')[1]!.parentElement!, ); }); act(() => { userEvent.click( baseElement.querySelectorAll('.ant-picker-cell-inner')[2], ); }); act(() => { userEvent.click( baseElement.querySelectorAll('.ant-picker-cell-inner')[12], ); }); await act(async () => { userEvent.click( await baseElement.querySelector( '.ant-picker-ranges .ant-picker-ok .ant-btn-primary', )!, ); }); await waitFor( () => { expect(onLoadingChange).toBeCalledWith(true); }, { timeout: 1000, }, ); await waitFor( () => { expect(onFinish).toHaveBeenCalledWith({ date: ['2016-11-02', '2016-11-12'], }); }, { timeout: 2000, }, ); await waitFor( () => { expect(onLoadingChange).toBeCalledWith(false); }, { timeout: 2000 }, ); // 等待20s,等待loading消失 await waitFor(() => { expect( container .querySelector('.ant-pro-core-field-label') ?.textContent?.includes('日期范围: '), ).toBeTruthy(); }); await screen.findByDisplayValue('2016-11-02'); await screen.findByDisplayValue('2016-11-12'); await act(async () => { fireEvent.mouseDown( container.querySelector( '.ant-pro-core-field-label .anticon-close-circle', )!, ); fireEvent.mouseUp( container.querySelector( '.ant-pro-core-field-label .anticon-close-circle', )!, ); }); await waitFor( () => { expect(onLoadingChange).toBeCalledWith(true); }, { timeout: 1000, }, ); await waitFor( () => { expect(onLoadingChange).toBeCalledWith(false); }, { timeout: 2000, }, ); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label')?.textContent, ).toBe('日期范围'); }); }); it(' 🪕 DateTimePicker', async () => { const onFinish = vi.fn(); const { container } = render( <LightFilter onFinish={onFinish}> <ProFormDateTimePicker name="datetime" label="日期时间" /> </LightFilter>, ); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('日期时间'); }); act(() => { userEvent.click(container.querySelector('.ant-pro-core-field-label')!); }); await screen.findByText('此刻'); await act(async () => { (await screen.findByText('此刻'))?.click?.(); }); await waitFor( () => { expect(onFinish).toHaveBeenCalledWith({ datetime: '2016-11-22 15:22:44', }); }, { timeout: 1000, }, ); await waitFor(() => { expect( container.querySelector('.ant-pro-core-field-label'), ).toMatchSnapshot(); }); }); it(' 🪕 TimePicker', async () => { const onFinish = vi.fn(); const { container, unmount } = render( <LightFilter onFinish={onFinish}> <ProFormTimePicker name="time" label="时间" /> </LightFilter>, ); expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('时间'); act(() => { userEvent.click(container.querySelector('.ant-pro-core-field-label')!); }); await waitFor(() => screen.findByText('此刻')); await act(async () => { (await screen.findByText('此刻'))?.click(); }); await waitFor( () => { expect( container.querySelector('.ant-pro-core-field-label'), ).toHaveTextContent('时间'); }, { timeout: 1000, }, ); expect(onFinish).toHaveBeenCalledWith({ time: '15:22:44' }); unmount(); }); it(' 🪕 use ProFormRadio', async () => { const onFinish = vi.fn(); const { container } = render( <LightFilter onFinish={onFinish} initialValues={{ radio: 'quarterly', }} > <ProFormRadio.Group name="radio" radioType="button" options={[ { value: 'weekly', label: '每周', }, { value: 'quarterly', label: '每季度', }, { value: 'monthly', label: '每月', }, { value: 'yearly', label: '每年', }, ]} /> </LightFilter>, ); await waitFor(() => { expect( container.querySelector( '.ant-radio-button-wrapper.ant-radio-button-wrapper-checked', ), ).toHaveTextContent('每季度'); }); act(() => { userEvent.click(screen.getByText('每年')); }); await waitFor( () => { expect(onFinish).toHaveBeenCalledWith({ radio: 'yearly' }); }, { timeout: 1000, }, ); await waitFor(() => { expect( container.querySelector( '.ant-radio-button-wrapper.ant-radio-button-wrapper-checked', ), ).toHaveTextContent('每年'); }); }); it(' 🪕 collapse mode', async () => { const onChange = vi.fn(); const { container, unmount } = render( <LightFilter onValuesChange={(values) => { onChange(values.name); }} collapse collapseLabel={<div className="collapselabel">open</div>} initialValues={{ name: ['ant'], }} > <ProFormSelect label="名称" name="name" mode="multiple" valueEnum={{ Bigfish: '大鱼', ant: '蚂蚁', TechUI: 'TechUI', long: '这个是一个特别长特别长的选项,选择之后会截断', }} /> <ProFormDateRangePicker label="时间范围" name="range2" /> </LightFilter>, ); expect(container.querySelector('.collapselabel')).toHaveTextContent('open'); expect( container.querySelectorAll('.ant-pro-form-light-filter-effective'), ).toHaveLength(1); act(() => { userEvent.click(container.querySelector('.collapselabel')!); }); await waitFor(() => { expect(screen.getByText('蚂蚁')).toBeInTheDocument(); }); act(() => { userEvent.click(screen.getByText('清除')); }); act(() => { userEvent.click(screen.getByText('确 认')); }); await waitFor(() => { expect(onChange).toHaveBeenCalledWith(undefined); expect( container.querySelectorAll('.ant-pro-form-light-filter-effective'), ).toHaveLength(0); }); unmount(); }); it(' 🪕 allowClear false', async () => { const { container, unmount } = render( <LightFilter initialValues={{ name1: 'yutingzhao1991', name3: '2020-08-19', sex: 'woman', }} onFinish={async (values) => console.log(values)} > <ProFormSelect name="sex" label="性别" showSearch allowClear={false} valueEnum={{ man: '男', woman: '女', }} /> <ProFormText name="name1" label="名称" allowClear={false} /> <ProFormDatePicker name="name3" label="不能清空的日期" allowClear={false} /> <ProFormSelect name="sex" label="性别" showSearch fieldProps={{ allowClear: false, }} valueEnum={{ man: '男', woman: '女', }} /> <ProFormText name="name4" label="名称" fieldProps={{ allowClear: false, }} /> <ProFormDatePicker name="name5" label="不能清空的日期" fieldProps={{ allowClear: false, }} /> </LightFilter>, ); expect( container.querySelectorAll('.ant-pro-core-field-label .anticon-close'), ).toHaveLength(0); act(() => { userEvent.click( container.querySelectorAll('.ant-pro-core-field-label')[1], ); }); await waitFor(async () => { expect( await screen.findByDisplayValue('yutingzhao1991'), ).toBeInTheDocument(); expect( container.querySelectorAll('.ant-input-suffix .close-circle'), ).toHaveLength(0); }); unmount(); }); it('🪕 ProFormField support lightProps', async () => { const html = render( <LightFilter initialValues={{ range: [1000000000, 1500000000], }} > <ProFormSlider name="range" label="活跃时间" range fieldProps={{ min: 1000000000, max: 2000000000, tooltip: { formatter: (v?: number) => ( <div>{v ? dayjs.unix(v).format('YYYY-MM-DD HH:mm:ss') : 0}</div> ), }, }} lightProps={{ allowClear: false, labelFormatter: (values) => { return values ?.map((value: number) => { return dayjs.unix(value).format('YYYY-MM-DD HH:mm:ss'); }) .join('~'); }, }} /> </LightFilter>, ); await html.findByText('2001-09-09 01:46:40~2017-07-14 02:40:00'); }); it('🪕 lightFilter lightWrapper support placement', async () => { const wrapper = render( <LightFilter initialValues={{ name1: 'yutingzhao1991', name3: '2020-08-19', sex: 'man', }} placement="topRight" onFinish={async (values) => console.log(values)} > <ProFormSelect name="sex" label="性别" showSearch fieldProps={{ allowClear: false, }} valueEnum={{ man: '男', woman: '女', }} /> </LightFilter>, ); await wrapper.findAllByTitle('男'); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('.ant-pro-core-field-label') ?.click?.(); }); expect( !!wrapper.baseElement.querySelector( '.ant-pro-field-select-light-select-container-topRight', ), ).toBeTruthy(); }); it('🪕 lightFilter support placement', async () => { const wrapper = render( <LightFilter initialValues={{ name1: 'yutingzhao1991', name3: '2020-08-19', sex: 'man', }} placement="bottomLeft" onFinish={async (values) => console.log(values)} > <ProFormText name="name4" label="名称" fieldProps={{ allowClear: false, }} /> </LightFilter>, ); await act(async () => { await wrapper.findByText('名称'); }); act(() => { wrapper.baseElement .querySelectorAll<HTMLDivElement>( '.ant-pro-core-field-dropdown-label', )[0] .click?.(); }); await act(async () => { await wrapper.findByText('名称'); }); expect( !!wrapper.baseElement.querySelector( '.ant-pro-core-field-dropdown-overlay-bottomLeft', ), ).toBeTruthy(); }); it('🪕 component placement priority should higher then lightFilter', async () => { const wrapper = render( <LightFilter initialValues={{ name1: 'yutingzhao1991', name3: '2020-08-19', sex: 'man', }} > <ProFormSelect name="sex" label="性别" showSearch fieldProps={{ allowClear: false, placement: 'bottomRight', }} valueEnum={{ man: '男', woman: '女', }} /> </LightFilter>, ); act(() => { // 两种加载模式都需要判断(需要lightWrapper和不需要的) wrapper.baseElement .querySelectorAll<HTMLDivElement>('.ant-pro-core-field-label')[0] .click?.(); }); expect( !!wrapper.baseElement.querySelector( '.ant-pro-field-select-light-select-container-bottomRight', ), ).toBeTruthy(); }); it('🪕 optionFilterProp props work', async () => { const { rerender } = render( <LightFilter> <ProFormSelect name="sex" label="性别" showSearch fieldProps={{ popupMatchSelectWidth: true, optionFilterProp: 'label', }} options={[ { label: '男', value: 'aaa' }, { label: '女', value: 'bbb' }, ]} /> </LightFilter>, ); await act(async () => { userEvent.click(await screen.findByText('性别')); }); await screen.findByRole('textbox'); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: '男', }, }); }); await waitFor(() => { expect(screen.getByLabelText('男')).toBeInTheDocument(); }); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: 'aaa', }, }); }); await waitFor(() => { expect(screen.queryByLabelText('男')).not.toBeInTheDocument(); }); rerender( <LightFilter> <ProFormSelect name="sex" label="性别" showSearch fieldProps={{ optionFilterProp: 'value', popupMatchSelectWidth: true, }} options={[ { label: '男', value: 'aaa' }, { label: '女', value: 'bbb' }, ]} /> </LightFilter>, ); await screen.findByRole('textbox'); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: '女', }, }); }); await waitFor(() => { expect(screen.queryByLabelText('女')).not.toBeInTheDocument(); }); await act(async () => { fireEvent.change(await screen.findByRole('textbox'), { target: { value: 'bbb', }, }); }); await waitFor(() => { expect(screen.getByLabelText('女')).toBeInTheDocument(); }); }); });
9,139
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/loginForm.test.tsx
import { AlipayCircleOutlined, TaobaoCircleOutlined, UserAddOutlined, WeiboCircleOutlined, } from '@ant-design/icons'; import { LoginForm, LoginFormPage, ProFormText } from '@ant-design/pro-form'; import { act, cleanup, render } from '@testing-library/react'; import { Alert, Space } from 'antd'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('LoginForm', () => { it('📦 LoginForm should show login message correctly', async () => { const loginMessage = <Alert type="error" message="登录失败" />; const { container } = render( <LoginForm message={loginMessage}> <ProFormText name="name" /> </LoginForm>, ); expect( container.querySelectorAll('.ant-alert.ant-alert-error'), ).toHaveLength(1); expect( container.querySelector('.ant-alert.ant-alert-error .ant-alert-message'), ).toHaveTextContent('登录失败'); }); it('📦 LoginForm should render actions correctly', async () => { const { container } = render( <LoginForm actions={ <Space> 其他登录方式 <AlipayCircleOutlined /> <TaobaoCircleOutlined /> <WeiboCircleOutlined /> </Space> } > <ProFormText name="name" /> </LoginForm>, ); expect( container.querySelectorAll('.ant-pro-form-login-main-other .anticon'), ).toHaveLength(3); }); it('📦 LoginForm support string logo', async () => { const { container } = render( <LoginForm logo="https://avatars.githubusercontent.com/u/8186664?v=4"> <ProFormText name="name" /> </LoginForm>, ); expect( container.querySelectorAll('.ant-pro-form-login-logo img'), ).toHaveLength(1); expect( container.querySelector('.ant-pro-form-login-logo img'), ).toHaveAttribute( 'src', 'https://avatars.githubusercontent.com/u/8186664?v=4', ); }); it('📦 LoginForm support react node logo', async () => { const { findByTestId } = render( <LoginForm logo={ <img data-testid="test" src="https://avatars.githubusercontent.com/u/8186664?v=4" /> } > <ProFormText name="name" /> </LoginForm>, ); expect(!!(await findByTestId('test'))).toBeTruthy(); expect(await findByTestId('test')).toHaveAttribute( 'src', 'https://avatars.githubusercontent.com/u/8186664?v=4', ); }); it('📦 LoginForm support submitter=false', async () => { const wrapper = render( <LoginForm submitter={false}> <ProFormText name="name" /> </LoginForm>, ); await waitForWaitTime(100); const dom = await wrapper.queryByText('登 录'); expect(!!dom).toBeFalsy(); }); it('📦 LoginForm support submitter is function', async () => { const wrapper = render( <LoginForm submitter={{ render: () => <a>登录登录</a>, }} > <ProFormText name="name" /> </LoginForm>, ); await waitForWaitTime(100); const dom = await wrapper.queryByText('登录登录'); expect(!!dom).toBeTruthy(); }); it('📦 LoginForm support submitter=false', async () => { const fn = vi.fn(); const wrapper = render( <LoginForm submitter={{ onSubmit: () => { fn(); }, }} > <ProFormText name="name" /> </LoginForm>, ); await waitForWaitTime(100); const dom = await wrapper.findByText('登 录'); act(() => { dom.click(); }); expect(fn).toBeCalled(); }); it('📦 LoginFormPage support log', async () => { const wrapper = render( <LoginFormPage logo={ <div> <UserAddOutlined /> logo </div> } > <ProFormText name="name" /> </LoginFormPage>, ); await waitForWaitTime(100); const dom = await wrapper.findByText('logo'); expect(!!dom).toBeTruthy(); }); it('📦 LoginFormPage support log=false', async () => { const wrapper = render( <LoginFormPage logo={false}> <ProFormText name="name" /> </LoginFormPage>, ); await waitForWaitTime(100); const dom = await wrapper.baseElement.querySelector( '.ant-pro-form-login-page-header', ); expect(!!dom).toBeFalsy(); }); it('📦 LoginFormPage support submitButtonProps', async () => { const wrapper = render( <LoginForm logo={false} submitter={{ submitButtonProps: { loading: true, }, }} > <ProFormText name="name" /> </LoginForm>, ); await waitForWaitTime(100); let dom = await wrapper.baseElement.querySelector('.ant-btn-loading'); expect(!!dom).toBeTruthy(); dom = await wrapper.baseElement.querySelector('.ant-btn-lg'); expect(!!dom).toBeTruthy(); }); });
9,140
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/modalForm.test.tsx
import { ModalForm, ProFormText } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import type { FormInstance } from 'antd'; import { Button } from 'antd'; import React, { createRef } from 'react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('ModalForm', () => { it('📦 trigger will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm width={600} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(fn).toBeCalledWith(true); }); it('📦 ModelForm get formRef when use request', async () => { const formRef = createRef<FormInstance>(); const wrapper = render( <ModalForm open formRef={formRef} request={async (params) => { return params; }} params={{ name: 'test', }} > <ProFormText label="名称" name="name" /> </ModalForm>, ); await wrapper.findAllByText('名称'); expect(formRef.current?.getFieldValue('name')).toBe('test'); wrapper.unmount(); }); it('📦 submitter config no reset default config', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm width={600} submitter={{ searchConfig: { submitText: '确认', resetText: '取消', }, resetButtonProps: { style: { width: '80px', }, id: 'reset', }, }} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitForWaitTime(200); expect(fn).toBeCalledWith(true); await act(async () => { (await wrapper.findByText('取 消'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(fn).toBeCalledWith(false); }); it('📦 ModalForm first no render items', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm width={600} trigger={<Button id="new">新建</Button>} initialValues={{ name: '1234', }} onOpenChange={(open) => fn(open)} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.queryByDisplayValue('1234')).toBeFalsy(); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.findByDisplayValue('1234')).toBeTruthy(); }); it('📦 ModalForm first render items', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm width={600} modalProps={{ forceRender: true, }} initialValues={{ name: '1234', }} visible onOpenChange={(open) => fn(open)} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); await waitForWaitTime(120); expect(await wrapper.findByDisplayValue('1234')).toBeTruthy(); }); it('📦 ModalForm destroyOnClose', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm width={600} initialValues={{ name: '1234', }} modalProps={{ destroyOnClose: true }} onOpenChange={(open) => fn(open)} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.queryByDisplayValue('1234')).toBeFalsy(); act(() => { wrapper.rerender( <ModalForm width={600} initialValues={{ name: '1234', }} visible modalProps={{ destroyOnClose: true }} onOpenChange={(open) => fn(open)} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.findByDisplayValue('1234')).toBeTruthy(); act(() => { wrapper.rerender( <ModalForm key="reset" width={600} initialValues={{ name: '1234', }} open={false} modalProps={{ destroyOnClose: true }} onOpenChange={(open) => fn(open)} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); }); await waitForWaitTime(2000); expect(await wrapper.queryByDisplayValue('1234')).toBeFalsy(); }); it('📦 modal close button will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('button.ant-modal-close') ?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(fn).toBeCalledWith(false); expect(fn).toBeCalledTimes(2); }); it('📦 modal open=true simulate onOpenChange', async () => { const fn = vi.fn(); render( <ModalForm open trigger={<Button id="new">新建</Button>} onOpenChange={(visible) => fn(visible)} > <ProFormText name="name" /> </ModalForm>, ); await waitFor(() => { expect(fn).toBeCalledWith(true); }); }); it('📦 reset button will simulate onOpenChange', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('取 消'))?.click(); }); expect(fn).toBeCalledWith(false); }); it('📦 modal close button will simulate modalProps.onCancel', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm visible modalProps={{ onCancel: () => fn(false), }} trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('button.ant-modal-close') ?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(fn).toBeCalledWith(false); }); it('📦 form onFinish return true should close modal', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} onFinish={async () => true} > <ProFormText name="name" /> </ModalForm>, ); await waitForWaitTime(500); await act(async () => { (await wrapper.findByText('确 认'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(fn).toBeCalledWith(false); await waitFor(async () => { await waitForWaitTime(100); }); }); it('📦 form onFinish is null, no close modal', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm visible trigger={<Button id="new">新建</Button>} onOpenChange={(open) => fn(open)} > <ProFormText name="name" /> </ModalForm>, ); await waitForWaitTime(500); await act(async () => { (await wrapper.findByText('确 认'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(fn).toBeCalledTimes(1); }); it('📦 ModalForm support submitter is false', async () => { const wrapper = render( <ModalForm visible trigger={<Button id="new">新建</Button>} submitter={false} > <ProFormText name="name" /> </ModalForm>, ); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); expect( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-modal-footer'), ).toBeFalsy(); }); it('📦 ModalForm close no rerender from', async () => { const wrapper = render( <ModalForm initialValues={{ name: '1234', }} trigger={<Button id="new">新建</Button>} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitFor(async () => { await waitForWaitTime(300); }); act(() => { fireEvent.change(wrapper.baseElement.querySelector('.ant-input#test')!, { target: { value: 'test', }, }); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.findByDisplayValue('test')).toBeTruthy(); await waitFor(async () => { await waitForWaitTime(100); }); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('button.ant-modal-close') ?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.findByDisplayValue('test')).toBeTruthy(); }); it('📦 ModalForm destroyOnClose close will rerender from', async () => { const wrapper = render( <ModalForm modalProps={{ getContainer: false, destroyOnClose: true, }} initialValues={{ name: '1234', }} trigger={<Button id="new">新建</Button>} > <ProFormText name="name" fieldProps={{ id: 'test', }} /> </ModalForm>, ); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitFor(async () => { await waitForWaitTime(300); }); act(() => { fireEvent.change(wrapper.container.querySelector('.ant-input#test')!, { target: { value: '1111', }, }); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.findByDisplayValue('1111')).toBeTruthy(); await waitFor(async () => { await waitForWaitTime(100); }); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('button.ant-modal-close') ?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); await act(async () => { (await wrapper.findByText('新 建'))?.click(); }); await waitFor(async () => { await waitForWaitTime(100); }); expect(await wrapper.findByDisplayValue('1234')).toBeTruthy(); }); it('📦 DrawerForm submitTimeout is number will disabled close button when submit', async () => { const fn = vi.fn(); vi.useFakeTimers(); const html = render( <ModalForm visible modalProps={{ onCancel: () => fn(), }} onFinish={() => { return new Promise((resolve) => { setTimeout(() => { resolve(true); }, 3000); }); }} submitTimeout={3000} > <ProFormText name="text" /> </ModalForm>, ); await act(async () => { (await html.findByText('确 认'))?.click(); }); expect( (html.queryAllByText('取 消').at(0)?.parentElement as HTMLButtonElement) .disabled, ).toEqual(true); await act(async () => { (await html.queryByText('取 消'))?.click(); }); expect(fn).not.toBeCalled(); act(() => { vi.runOnlyPendingTimers(); }); expect( (html.queryAllByText('取 消').at(0)?.parentElement as HTMLButtonElement) ?.disabled, ).toEqual(false); await act(async () => { (await html.queryByText('取 消'))?.click(); }); act(() => { vi.runOnlyPendingTimers(); }); expect(fn).toBeCalled(); vi.useRealTimers(); }); it('📦 modal submitTimeout is null no disable close button when submit', async () => { const fn = vi.fn(); const wrapper = render( <ModalForm visible modalProps={{ onCancel: () => fn(), }} onFinish={async () => { await waitForWaitTime(2000); }} />, ); await waitFor(async () => { await waitForWaitTime(500); }); await act(async () => { (await wrapper.findByText('确 认'))?.click(); }); await waitFor(async () => { await waitForWaitTime(500); }); expect( wrapper.baseElement.querySelector<HTMLButtonElement>( 'button.ant-btn-default', )?.disabled, ).toEqual(false); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('button.ant-modal-close') ?.click(); }); await waitFor(async () => { await waitForWaitTime(500); }); expect(fn).toBeCalled(); act(() => { wrapper.unmount(); }); }); it('📦 model no render Form when destroyOnClose', () => { const { container } = render( <ModalForm modalProps={{ destroyOnClose: true, }} trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </ModalForm>, ); expect(container.querySelector('form')).toBeFalsy(); }); it('📦 ModelForm get formRef when destroyOnClose', async () => { const ref = React.createRef<any>(); const html = render( <ModalForm formRef={ref} modalProps={{ destroyOnClose: true, }} trigger={ <Button id="new" type="primary"> 新建 </Button> } > <ProFormText name="name" /> </ModalForm>, ); expect(ref.current).toBeFalsy(); await act(async () => { (await html.findByText('新 建'))?.click(); }); await waitFor( () => { expect(ref.current).toBeTruthy(); }, { timeout: 1000, }, ); html.unmount(); }); });
9,141
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/proFormCaptcha.test.tsx
import ProForm, { ProFormCaptcha } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render } from '@testing-library/react'; import { Button, message } from 'antd'; import React from 'react'; afterEach(() => { cleanup(); }); describe('ProFormCaptcha', () => { it('😊 ProFormCaptcha Manual open', async () => { const captchaRef = React.createRef<any>(); const fn = vi.fn(); vi.useFakeTimers(); const TimingText = '获取验证码'; const html = render( <ProForm title="新建表单" submitter={{ render: () => { return [ <Button htmlType="button" type="primary" onClick={() => { // @ts-ignore captchaRef.current?.startTiming(); }} key="edit" id="start" > 手动开始计数 </Button>, <Button htmlType="button" id="end" onClick={() => { // @ts-ignore captchaRef.current?.endTiming(); }} key="end" > 手动结束计数 </Button>, ]; }, }} onFinish={async () => { message.success('提交成功'); return true; }} > <ProFormCaptcha onGetCaptcha={() => { return new Promise((resolve, reject) => { fn(TimingText); reject(new Error('模拟报错')); }); }} captchaProps={{ id: 'captchaButton', }} fieldRef={captchaRef} name="code" /> </ProForm>, ); await act(async () => { const dom = await html.findByText('获取验证码'); fireEvent.click(dom); }); expect(fn).toHaveBeenCalledWith(TimingText); await act(async () => { const dom = await html.findByText('手动开始计数'); fireEvent.click(dom); }); expect( html.container.querySelectorAll('#captchaButton')[0], ).toHaveTextContent('60 秒后重新获取'); await act(async () => { const dom = await html.findByText('手动结束计数'); fireEvent.click(dom); }); expect( html.container.querySelectorAll('#captchaButton')[0], ).toHaveTextContent('获取验证码'); expect(captchaRef.current).toBeTruthy(); act(() => { vi.runOnlyPendingTimers(); }); expect( html.container.querySelectorAll('#captchaButton')[0], ).toHaveTextContent('获取验证码'); vi.useRealTimers(); }); });
9,142
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/proFormMoney.test.tsx
import ProForm, { ProFormMoney } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { ConfigProvider } from 'antd'; import enGBIntl from 'antd/lib/locale/en_GB'; afterEach(() => { cleanup(); }); describe('💵 ProFormMoney', () => { it('💵 ProFormMoney value expect number', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" initialValue={44.33} /> </ProForm>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '¥ 44.33', ); act(() => { fireEvent.click(container.querySelector('button.ant-btn-primary')!); }); await waitFor(() => { expect(fn).toHaveBeenCalledWith(44.33); }); expect(container).toMatchSnapshot(); }); it('💵 moneySymbol with global locale', async () => { const fn = vi.fn(); const { container } = render( <ConfigProvider locale={enGBIntl}> <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" initialValue={44.33} /> </ProForm> </ConfigProvider>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '£ 44.33', ); act(() => { fireEvent.click(container.querySelector('button.ant-btn-primary')!); }); await waitFor(() => { expect(fn).toHaveBeenCalledWith(44.33); }); expect(container).toMatchSnapshot(); }); it('💵 moneySymbol with custom locale', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" initialValue={44.33} locale="en-US" /> </ProForm>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '$ 44.33', ); fireEvent.click(container.querySelector('button.ant-btn-primary')!); await waitFor(() => { expect(fn).toHaveBeenCalledWith(44.33); }); expect(container).toMatchSnapshot(); }); it('💵 moneySymbol with custom symbol', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" initialValue={44.33} customSymbol="💰" /> </ProForm>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '💰 44.33', ); act(() => { fireEvent.click(container.querySelector('button.ant-btn-primary')!); }); await waitFor(() => { expect(fn).toHaveBeenCalledWith(44.33); }); expect(container).toMatchSnapshot(); }); it('💵 can not input negative', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" min={0} /> </ProForm>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '', ); await fireEvent.change(container.querySelector('input#amount')!, { target: { value: '-55.33', }, }); act(() => { fireEvent.click(container.querySelector('button.ant-btn-primary')!); }); await waitFor(() => { expect(fn).toHaveBeenCalledWith(undefined); }); expect(container).toMatchSnapshot(); }); it('💵 can input negative', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" /> </ProForm>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '', ); await fireEvent.change(container.querySelector('input#amount')!, { target: { value: '-55.33', }, }); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '¥ -55.33', ); fireEvent.click(container.querySelector('button.ant-btn-primary')!); await waitFor(() => { expect(fn).toHaveBeenCalledWith(-55.33); }); expect(container).toMatchSnapshot(); }); it('💵 update money precision when init', async () => { const fn = vi.fn(); const { container } = render( <ProForm onFinish={async (values) => { fn(values.amount); }} > <ProFormMoney name="amount" initialValue={444444444.333333333} fieldProps={{ precision: 2 }} customSymbol="💰" /> </ProForm>, ); expect(container.querySelectorAll('input#amount')[0]).toHaveAttribute( 'value', '💰 444,444,444.33', ); fireEvent.click(container.querySelector('button.ant-btn-primary')!); await waitFor(() => { expect(fn).toHaveBeenCalledWith(444444444.333333333); }); expect(container).toMatchSnapshot(); }); });
9,143
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/queryFilter.test.tsx
import { ProFormGroup, ProFormText, QueryFilter } from '@ant-design/pro-form'; import { cleanup, fireEvent, render, waitFor } from '@testing-library/react'; afterEach(() => { cleanup(); }); describe('QueryFilter', () => { it('🕵️‍♀️ basic use', async () => { const onFinish = vi.fn(); const { container } = render( <QueryFilter onFinish={onFinish} initialValues={{ a: 'testa', }} > <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> </QueryFilter>, ); fireEvent.submit(container.querySelector('.ant-btn-primary')!); expect(container.querySelectorAll('.ant-input').length).toEqual(2); await waitFor(() => { expect(onFinish).toHaveBeenCalledWith({ a: 'testa', }); }); }); it('🕵️‍♀️ keep all field value when collapsed', async () => { const onFinish = vi.fn(); const { container } = render( <QueryFilter defaultCollapsed onFinish={onFinish} initialValues={{ a: 'testa', b: 'testb', c: 'testc', }} > <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> </QueryFilter>, ); fireEvent.submit(container.querySelector('.ant-btn-primary')!); expect(container.querySelectorAll('.ant-input').length).toEqual(3); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden').length, ).toEqual(1); await waitFor(() => { expect(onFinish).toHaveBeenCalledWith({ a: 'testa', b: 'testb', c: 'testc', }); }); }); it('🕵️‍♀️ no keep collapsed field value', async () => { const onFinish = vi.fn(); const { container } = render( <QueryFilter defaultCollapsed onFinish={onFinish} preserve={false} initialValues={{ a: 'testa', b: 'testb', c: 'testc', }} > <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> </QueryFilter>, ); fireEvent.submit(container.querySelector('.ant-btn-primary')!); expect(container.querySelectorAll('.ant-input')).toHaveLength(2); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden'), ).toHaveLength(0); expect(container.querySelectorAll('.anticon-down')).toHaveLength(1); await waitFor(() => { expect(onFinish).toHaveBeenCalledWith({ a: 'testa', b: 'testb', }); }); }); it('🕵️‍♀️ labelWidth', async () => { const { container } = render( <QueryFilter labelWidth={70} initialValues={{ a: 'testa', }} > <ProFormText label="a" name="a" /> </QueryFilter>, ); expect( container.querySelectorAll('.ant-col.ant-form-item-label')[0], ).toHaveStyle('flex: 0 0 70px'); }); it('🕵️‍♀️ responsive 512', async () => { const { container } = render( <QueryFilter style={{ width: 512 }} defaultCollapsed> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> </QueryFilter>, ); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden'), ).toHaveLength(1); }); it('🕵️‍♀️ responsive 1064', async () => { const { container } = render( <QueryFilter defaultCollapsed style={{ width: 1064 }}> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> </QueryFilter>, ); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden'), ).toHaveLength(2); }); it('🕵️‍♀️ responsive 1064 with vertical', async () => { const { container } = render( <QueryFilter style={{ width: 1064 }} defaultCollapsed layout="vertical"> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> </QueryFilter>, ); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden'), ).toHaveLength(1); }); it('🕵️‍♀️ submitter support render', async () => { const fn = vi.fn(); const { container, findByText } = render( <QueryFilter style={{ width: 1064 }} defaultCollapsed onFinish={fn} submitter={{ render: (props) => { return [ <a key="submit" id="submit" onClick={() => { props.submit(); }} > 提交 </a>, <a key="reset" id="reset" onClick={() => { props.reset(); }} > 重置 </a>, ]; }, }} layout="vertical" > <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); fireEvent.click( container.querySelector('.ant-pro-query-filter-collapse-button')!, ); fireEvent.click(await findByText('提交')); fireEvent.click(await findByText('重置')); await waitFor(() => { expect(fn).toBeCalled(); }); }); it('🕵️‍♀️ collapseRender should work', async () => { const { container, rerender } = render( <QueryFilter style={{ width: 1064 }} defaultCollapsed layout="vertical" collapseRender={(collapsed) => (collapsed ? 'open' : 'close')} > <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); expect( container.querySelector('a.ant-pro-query-filter-collapse-button'), ).toHaveTextContent('open'); rerender( <QueryFilter style={{ width: 1064 }} defaultCollapsed collapsed={false} layout="vertical" collapseRender={(collapsed) => (collapsed ? 'open' : 'close')} > <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); expect( container.querySelector('a.ant-pro-query-filter-collapse-button'), ).toHaveTextContent('close'); }); it('🕵️‍♀️ defaultColsNumber should work', async () => { const { container } = render( <QueryFilter defaultColsNumber={5}> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden'), ).toHaveLength(3); }); it('🕵️‍♀️ colSize不全都是1,collapseRender应该存在', async () => { const { container } = render( <QueryFilter defaultColsNumber={4} defaultCollapsed={false}> <ProFormText name="name" label="应用名称" rules={[{ required: true }]} colSize={4} /> <ProFormText name="creater" label="创建人" colSize={3} /> </QueryFilter>, ); expect( container.querySelectorAll('a.ant-pro-query-filter-collapse-button'), ).toHaveLength(1); }); it('🕵️‍♀️ 表单首项独占一行,收起时应该只展示一项就行了', async () => { const { container } = render( <QueryFilter defaultCollapsed defaultColsNumber={4}> <ProFormText name="name" label="应用名称" rules={[{ required: true }]} colSize={4} /> <ProFormText name="creater" label="创建人" /> <ProFormText name="creater" label="创建人" /> <ProFormText name="creater" label="创建人" /> <ProFormText name="creater" label="创建人" /> <ProFormText name="creater" label="创建人" /> <ProFormText name="creater" label="创建人" /> <ProFormText name="creater" label="创建人" /> </QueryFilter>, ); expect( container.querySelectorAll('.ant-row .ant-form-item-hidden'), ).toHaveLength(7); }); it('🕵️‍♀️ QueryFilter support ProForm.Group', async () => { const { container } = render( <QueryFilter collapsed={true} layout="vertical"> <ProFormGroup> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> </ProFormGroup> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> </QueryFilter>, ); expect(container.querySelectorAll('.ant-pro-form-group')).toHaveLength(0); }); it('🕵️‍♀️ collapseRender', async () => { const wrapper0 = render( <QueryFilter defaultColsNumber={3}> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); expect( wrapper0.container.querySelectorAll( '.ant-pro-query-filter-collapse-button', ), ).toHaveLength(1); const wrapper1 = render( <QueryFilter defaultColsNumber={6}> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); expect( wrapper1.container.querySelectorAll( '.ant-pro-query-filter-collapse-button', ), ).toHaveLength(1); const wrapper2 = render( <QueryFilter defaultColsNumber={7}> <ProFormText label="a" name="a" /> <ProFormText label="b" name="b" /> <ProFormText label="c" name="c" /> <ProFormText label="d" name="d" /> <ProFormText label="e" name="e" /> <ProFormText label="f" name="f" /> </QueryFilter>, ); expect( wrapper2.container.querySelectorAll( '.ant-pro-query-filter-collapse-button', ), ).toHaveLength(0); }); });
9,144
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/schemaForm.test.tsx
import type { ProFormColumnsType, ProFormLayoutType, } from '@ant-design/pro-form'; import { BetaSchemaForm } from '@ant-design/pro-form'; import { ProProvider } from '@ant-design/pro-provider'; import { act, cleanup, fireEvent, render, screen, waitFor, } from '@testing-library/react'; import type { FormInstance } from 'antd'; import { Input } from 'antd'; import React, { createRef, useContext, useEffect } from 'react'; const columns: ProFormColumnsType<any>[] = [ { title: '序号', dataIndex: 'index', valueType: 'indexBorder', }, { title: '标题', dataIndex: 'title', width: 200, }, { title: (_, type) => (type === 'table' ? '状态' : '列表状态'), dataIndex: 'state', initialValue: 'all', valueType: 'select', valueEnum: { all: { text: '全部', status: 'Default' }, open: { text: '未解决', status: 'Error', }, closed: { text: '已解决', status: 'Success', }, }, }, { title: '排序方式', key: 'direction', dataIndex: 'direction', valueType: 'select', valueEnum: { asc: '正序', desc: '倒序', }, }, { title: '创建时间', key: 'since', dataIndex: 'created_at', valueType: 'dateTime', }, { title: 'option', valueType: 'option', dataIndex: 'id', }, ]; afterEach(() => { cleanup(); }); describe('SchemaForm', () => { it('😊 SchemaForm support columns', async () => { const { container } = render(<BetaSchemaForm columns={columns} />); expect(container).toMatchSnapshot(); }); it('😊 SchemaForm support dependencies', async () => { const requestFn = vi.fn(); const fieldPropsFn = vi.fn(); const formItemPropsFn = vi.fn(); const { container } = render( <BetaSchemaForm columns={[ { title: '标题', dataIndex: 'title', width: 200, initialValue: 'name', formItemProps: formItemPropsFn, fieldProps: { id: 'title', }, }, { title: '选择器', dataIndex: 'state', valueType: 'select', dependencies: ['title'], fieldProps: fieldPropsFn, request: async ({ title }) => { requestFn(title); return [ { label: title, value: 'title', }, ]; }, }, ]} />, ); await waitFor(() => { expect(requestFn).toBeCalledWith('name'); }); fireEvent.change(container.querySelector('input#title')!, { target: { value: 'qixian', }, }); await waitFor(() => { expect(requestFn).toBeCalledWith('qixian'); expect(formItemPropsFn).toBeCalledTimes(2); expect(fieldPropsFn).toBeCalledTimes(2); }); }); it('😊 SchemaForm support shouldUpdate as true', async () => { const fieldPropsFn = vi.fn(); const formItemPropsFn = vi.fn(); const renderFormItemFn = vi.fn(); const onValuesChangeFn = vi.fn(); const { container } = render( <BetaSchemaForm columns={[ { title: '标题', dataIndex: 'title', width: 200, initialValue: 'name', fieldProps: { id: 'title', }, renderFormItem: (schema, { defaultRender }) => { renderFormItemFn(); return defaultRender(schema); }, }, { title: '选择器', dataIndex: 'state', valueType: 'select', fieldProps: fieldPropsFn, formItemProps: formItemPropsFn, valueEnum: {}, }, ]} onValuesChange={onValuesChangeFn} />, ); await waitFor(() => { expect(fieldPropsFn).toBeCalledTimes(1); expect(formItemPropsFn).toBeCalledTimes(1); expect(renderFormItemFn).toBeCalledTimes(4); }); fireEvent.change(container.querySelector('input#title')!, { target: { value: 'qixian', }, }); await waitFor(() => { expect(renderFormItemFn).toBeCalledTimes(5); expect(fieldPropsFn).toBeCalledTimes(1); expect(formItemPropsFn).toBeCalledTimes(1); expect(onValuesChangeFn).toBeCalled(); }); }); it('😊 SchemaForm support shouldUpdate as function', async () => { const fieldPropsFn = vi.fn(); const formItemPropsFn = vi.fn(); const renderFormItemFn = vi.fn(); const shouldUpdateFn = vi.fn(); const { container } = render( <BetaSchemaForm shouldUpdate={(value: any, oldValue?: any) => { shouldUpdateFn( value.subtitle === 'rerender' && value.subtitle !== oldValue?.subtitle, ); if ( value.subtitle === 'rerender' && value.subtitle !== oldValue?.subtitle ) { return true; } else { return false; } }} columns={[ { title: '标题', dataIndex: 'title', width: 200, initialValue: 'name', fieldProps: { id: 'title', }, renderFormItem: (schema, { defaultRender }) => { renderFormItemFn(); return defaultRender(schema); }, }, { title: '副标题', dataIndex: 'subtitle', fieldProps: () => { fieldPropsFn(); return { id: 'subtitle', }; }, formItemProps: formItemPropsFn, dependencies: ['title'], }, ]} />, ); await waitFor(() => { expect(shouldUpdateFn).toBeCalledTimes(0); expect(fieldPropsFn).toBeCalledTimes(1); expect(formItemPropsFn).toBeCalledTimes(1); expect(renderFormItemFn).toBeCalledTimes(4); }); fireEvent.change(container.querySelector('input#title')!, { target: { value: 'not rerender', }, }); // Although shouldUpdate returns false, but using dependencies will still update await waitFor(() => { expect(renderFormItemFn).toBeCalledTimes(5); expect(formItemPropsFn).toBeCalledTimes(2); expect(fieldPropsFn).toBeCalledTimes(2); expect(shouldUpdateFn).toBeCalledTimes(1); }); fireEvent.change(container.querySelector('input#subtitle')!, { target: { value: 'rerender', }, }); await waitFor(() => { expect(renderFormItemFn).toBeCalledTimes(6); expect(formItemPropsFn).toBeCalledTimes(3); expect(fieldPropsFn).toBeCalledTimes(3); expect(shouldUpdateFn).toBeCalledTimes(2); expect(shouldUpdateFn).toBeCalledWith(true); }); }); it('😊 SchemaForm columns do not interfere with each other', async () => { const fieldPropsFn = vi.fn(); const formItemPropsFn = vi.fn(); const renderFormItemFn = vi.fn(); const { container } = render( <BetaSchemaForm shouldUpdate={false} columns={[ { title: '标题', dataIndex: 'title', width: 200, initialValue: 'name', fieldProps: { id: 'title', }, renderFormItem: (schema, { defaultRender }) => { renderFormItemFn(); return defaultRender(schema); }, }, { title: '选择器', dataIndex: 'state', valueType: 'select', fieldProps: fieldPropsFn, valueEnum: {}, formItemProps: formItemPropsFn, }, ]} />, ); await waitFor(() => { expect(fieldPropsFn).toBeCalledTimes(1); expect(formItemPropsFn).toBeCalledTimes(1); expect(renderFormItemFn).toBeCalledTimes(4); }); fireEvent.change(container.querySelector('input#title')!, { target: { value: 'qixian', }, }); await waitFor(() => { expect(renderFormItemFn).toBeCalledTimes(5); expect(formItemPropsFn).toBeCalledTimes(1); expect(fieldPropsFn).toBeCalledTimes(1); }); }); it('🐲 SchemaForm support StepsForm', async () => { const { container, unmount } = render( <BetaSchemaForm layoutType="StepsForm" steps={[ { title: '表单1', }, { title: '表单2', }, { title: '表单3', }, ]} columns={[ [ { title: '邮件', dataIndex: 'email', }, ], [ { title: '姓名', dataIndex: 'name', }, ], [ { title: '地址', dataIndex: 'addr', }, ], ]} />, ); expect(container.querySelectorAll('span.ant-steps-icon')).toHaveLength(3); expect( container.querySelectorAll('div.ant-steps-item-title')[0], ).toHaveTextContent('表单1'); expect( container.querySelectorAll('div.ant-steps-item-title')[1], ).toHaveTextContent('表单2'); expect( container.querySelectorAll('div.ant-steps-item-title')[2], ).toHaveTextContent('表单3'); unmount(); }); it('😊 SchemaForm support table columns', async () => { const { container } = render(<BetaSchemaForm columns={columns} />); expect(container.querySelectorAll('div.ant-form-item')).toHaveLength(4); }); it('😊 SchemaForm support render', async () => { render( <BetaSchemaForm columns={[ { title: '标题', dataIndex: 'title', readonly: true, width: 200, render: () => { return <Input data-testid="test" />; }, }, ]} />, ); expect(screen.findByTestId('test')).toBeTruthy(); }); it('😊 SchemaForm support render', async () => { render( <BetaSchemaForm columns={[ { title: '标题', dataIndex: 'title', width: 200, renderFormItem: () => { return <Input data-testid="test" />; }, }, ]} />, ); expect(screen.findByTestId('test')).toBeTruthy(); }); it('😊 support SchemaForm renderFormItem return false', async () => { const formRef = createRef<FormInstance>(); const { container } = render( <BetaSchemaForm formRef={formRef as any} columns={[ { title: '标题', dataIndex: 'title', width: 200, dependencies: ['title2'], renderFormItem: (_, __, form) => { if (form.getFieldValue('title2') === 'show') { return <Input />; } return false; }, }, { title: '标题', dataIndex: 'title2', width: 200, renderFormItem: () => { return <Input id="test-input" />; }, }, ]} />, ); expect(container.querySelectorAll('div.ant-form-item')).toHaveLength(1); fireEvent.change(container.querySelector('input#test-input')!, { target: { value: 'show', }, }); expect(container.querySelectorAll('div.ant-form-item')).toHaveLength(2); }); it('😊 SchemaForm support render', async () => { const { container } = render( <BetaSchemaForm columns={[ { title: '标题', dataIndex: 'title', width: 200, renderFormItem: (_, { defaultRender }) => { return defaultRender(_); }, }, ]} />, ); expect(container.querySelector('input')).toBeTruthy(); }); it('😊 SchemaForm support hidenInForm', async () => { const { container } = render( <BetaSchemaForm columns={[ { title: '标题', dataIndex: 'title', width: 200, renderFormItem: () => { return <Input data-testid="title" />; }, }, { title: '类型', dataIndex: 'category', width: 200, hideInForm: true, renderFormItem: () => { return <Input id="category" />; }, }, ]} />, ); expect(screen.findByTestId('title')).toBeTruthy(); expect(!!container.querySelector('#category')).toBeFalsy(); }); it('😊 SchemaForm support ProFormDependency', async () => { const onFinish = vi.fn(); const { container } = render( <BetaSchemaForm onFinish={onFinish} initialValues={{ name: '蚂蚁设计有限公司', name2: '蚂蚁设计集团', useMode: 'chapter', }} columns={[ { dataIndex: 'name', title: '签约客户名称', tooltip: '最长为 24 位', fieldProps: { placeholder: '请输入名称', }, width: 'md', }, { dataIndex: ['name2', 'text'], title: '签约客户名称', tooltip: '最长为 24 位', fieldProps: { placeholder: '请输入名称', }, width: 'md', }, { valueType: 'dependency', name: ['name', ['name2', 'text']], columns: (values) => [ { valueType: 'select', width: 'md', valueEnum: { chapter: { text: '盖章后生效', }, }, title: () => { return ( <span id="label_text">{`与《${values?.name || ''}》 与 《${ values?.name2?.text || '' }》合同约定生效方式`}</span> ); }, }, ], }, ]} />, ); fireEvent.change(container.querySelector('input#name')!, { target: { value: 'test', }, }); fireEvent.change(container.querySelector('input#name2_text')!, { target: { value: 'test2', }, }); expect(container.querySelector('span#label_text')).toHaveTextContent( '与《test》 与 《test2》合同约定生效方式', ); }); it('😊 SchemaForm support validate formList empty', async () => { type DataItem = { name: string; state: string; }; vi.useFakeTimers(); const curColumns: ProFormColumnsType<DataItem>[] = [ { title: '测试', dataIndex: 'list', valueType: 'formList', formItemProps: { rules: [{ required: true, message: '请填写列表' }], }, columns: [ { dataIndex: 'isSettlement', valueType: 'switch', formItemProps: { rules: [{ required: true, message: '请填写1' }], }, }, ], }, ]; const onFinish = vi.fn(); const wrapper = render( <BetaSchemaForm shouldUpdate={false} layoutType="Form" onFinish={onFinish} columns={curColumns} />, ); await wrapper.findAllByText('测试'); await act(async () => { fireEvent.click(await wrapper.findByText('提 交')); }); await waitFor(() => { expect(onFinish).toBeCalledTimes(0); }); await waitFor(async () => { expect((await wrapper.findAllByText('请填写列表')).length).toBe(1); }); await act(async () => { fireEvent.click(await wrapper.findByText('添加一行数据')); }); await act(() => { return vi.runOnlyPendingTimers(); }); await act(async () => { fireEvent.click(await wrapper.findByText('提 交')); }); await act(() => { return vi.runOnlyPendingTimers(); }); await waitFor(async () => { expect( ( await wrapper.baseElement.querySelector( '.ant-form-item-explain-error', ) )?.innerHTML, ).toBe('请填写1'); }); await act(async () => { fireEvent.click( await wrapper.baseElement.querySelector('.action-remove')!, ); }); act(() => { vi.runOnlyPendingTimers(); }); await waitFor(async () => { expect((await wrapper.findAllByText('请填写列表')).length).toBe(1); }); vi.useRealTimers(); }); ['ModalForm', 'DrawerForm'].forEach((layoutType) => { it(`😊 ${layoutType} support destroyOnClose rerender`, async () => { const formColumns = [ { dataIndex: 'name', title: '签约客户名称', tooltip: '最长为 24 位', fieldProps: { placeholder: '请输入名称', }, width: 'md', }, ]; const wrapper = render( <BetaSchemaForm trigger={<button>打开</button>} layoutType={layoutType as 'DrawerForm'} columns={formColumns} {...(layoutType === 'ModalForm' ? { modalProps: { destroyOnClose: true }, } : { drawerProps: { destroyOnClose: true }, })} />, ); // 刚开始的不存在 await waitFor(() => { expect(wrapper.queryByText('签约客户名称')).toBeNull(); }); await wrapper.findAllByText('打开'); await act(async () => { fireEvent.click(await wrapper.findByText('打开')); }); // 打开就存在了 await wrapper.findAllByText('签约客户名称'); await act(async () => { fireEvent.click(await wrapper.findByText('取 消')); }); // 关闭不存在了 await waitFor(() => { expect(wrapper.queryByText('签约客户名称')).toBeNull(); }); await act(async () => { fireEvent.click(await wrapper.findByText('打开')); }); // 打开就又存在了 await wrapper.findAllByText('签约客户名称'); }); }); [ 'Form', 'ModalForm', 'DrawerForm', 'StepsForm', 'StepForm', 'LightFilter', 'QueryFilter', ].forEach((layoutType) => { it(`😊 When SchemaForm's layoutType property is ${layoutType}, make sure it is valid to get the form instance through formRef`, async () => { vi.useFakeTimers(); const formColumns = [ [ { dataIndex: 'name', title: '签约客户名称', tooltip: '最长为 24 位', fieldProps: { placeholder: '请输入名称', }, width: 'md', }, ], [ { dataIndex: 'next', title: '第二步', tooltip: '最长为 24 位', fieldProps: { placeholder: '请输入名称', }, width: 'md', }, ], ]; const formRef = React.createRef<FormInstance>(); const wrapper = render( <BetaSchemaForm open={true} formRef={formRef as any} layoutType={layoutType as ProFormLayoutType} columns={formColumns.flat(layoutType !== 'StepsForm' ? 1 : 0) as any} steps={[ { title: '一步', }, { title: '两步', }, ]} />, ); await wrapper.findByText('签约客户名称'); expect(formRef.current).toBeTruthy(); const value = { name: 'Ant Design', }; act(() => { formRef.current!.setFieldsValue(value); }); waitFor(() => { expect(formRef.current!.getFieldsValue(true)).toMatchObject(value); }); if (layoutType === 'StepsForm') { const button = await wrapper.findByText('下一步'); act(() => { button?.click(); }); act(() => { vi.runOnlyPendingTimers(); }); const stepsValue = { next: 'Step 2', }; act(() => { formRef.current!.setFieldsValue(stepsValue); }); waitFor(() => { expect(formRef.current!.getFieldsValue(true)).toMatchObject( stepsValue, ); }); vi.useRealTimers(); } }); }); it('test custom component should not rerender when other field change', () => { const fibonacci = vi.fn(); const ExpensiveCustomComp = React.memo<{ value: any; onChange: (value: any) => void; }>((props) => { fibonacci(); useEffect(() => { console.log('CustomComp props.change changed'); }, [props.onChange]); useEffect(() => { console.log('CustomComp props.value changed'); }, [props.value]); return <div>我是自定义组件</div>; }); const formColumns: ProFormColumnsType<any, 'test'>[] = [ { title: '测试输入框', dataIndex: 'name', valueType: 'text', fieldProps: { maxLength: 100, showCount: true, }, }, /** * 构造20个耗时组件测试一下 不要在`columns`中使用 * 1、renderFormItem * 2、fieldProps(typeof fieldProps === 'function'时) * 3、formItemProps(typeof formItemProps === 'function'时) 以上三种用法会导致每个onValuesChange都去重复构建DomList。 目前只能先这样workaround了 */ ...Array(1) .fill('custom') .map<ProFormColumnsType<any, 'test'>>((k, i) => { return { title: `自定义组件${i}`, dataIndex: `${k}_${i}`, valueType: 'test', } as ProFormColumnsType<any, 'test'>; }), ]; const App = () => { const values = useContext(ProProvider); return ( <ProProvider.Provider value={{ ...values, valueTypeMap: { test: { renderFormItem: (text, props) => { return <ExpensiveCustomComp {...props?.fieldProps} />; }, }, }, }} > <BetaSchemaForm<any, 'test'> columns={formColumns} title="自定义 valueType" /> </ProProvider.Provider> ); }; const wrapper = render(<App />); expect(fibonacci).toBeCalledTimes(1); fireEvent.change(wrapper.baseElement.querySelector('input#name')!, { target: { value: 'test2', }, }); expect(fibonacci).toBeCalledTimes(1); }); });
9,145
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/stepFormTest.test.tsx
import { ProFormText, StepsForm } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, screen, waitFor, } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { Button } from 'antd'; import React from 'react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('StepsForm', () => { it('🐲 basic use', async () => { const { container, unmount } = render( <StepsForm> <StepsForm.StepForm title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> <StepsForm.StepForm title="表单3"> <ProFormText name="地址" /> </StepsForm.StepForm> </StepsForm>, ); expect(container.querySelectorAll('span.ant-steps-icon')).toHaveLength(3); expect( container.querySelectorAll('div.ant-steps-item-title')[0], ).toHaveTextContent('表单1'); expect( container.querySelectorAll('div.ant-steps-item-title')[1], ).toHaveTextContent('表单2'); expect( container.querySelectorAll('div.ant-steps-item-title')[2], ).toHaveTextContent('表单3'); unmount(); }); it('🐲 stepsRender', async () => { const { container, rerender, unmount } = render( <StepsForm stepsRender={() => null}> <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> <StepsForm.StepForm name="extraInfo" title="表单3"> <ProFormText name="地址" /> </StepsForm.StepForm> </StepsForm>, ); expect(!!container.querySelectorAll('.ant-steps').length).toBeFalsy(); rerender( <StepsForm stepsRender={(_, dom) => <div id="test">{dom}</div>}> <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> <StepsForm.StepForm name="extraInfo" title="表单3"> <ProFormText name="地址" /> </StepsForm.StepForm> </StepsForm>, ); expect(!!container.querySelectorAll('.ant-steps').length).toBeTruthy(); expect(!!container.querySelectorAll('div#test').length).toBeTruthy(); unmount(); }); it('🐲 pre button ', async () => { const onCurrentChange = vi.fn(); const { unmount } = render( <StepsForm current={1} onCurrentChange={(current) => { onCurrentChange(current); }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> <StepsForm.StepForm name="extraInfo" title="表单3"> <ProFormText name="地址" /> </StepsForm.StepForm> </StepsForm>, ); userEvent.click(await screen.findByText('下一步')); expect(onCurrentChange).toHaveBeenCalledTimes(0); unmount(); }); it('🐲 async onFinish', async () => { const fn = vi.fn(); const currentFn = vi.fn(); const onFinish = vi.fn(); const html = render( <StepsForm onCurrentChange={currentFn} onFinish={onFinish}> <StepsForm.StepForm name="base" title="表单1" onFinish={async (values) => { fn(values); return true; }} > <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); await waitForWaitTime(100); await act(async () => { (await html.findByText('下一步')).click(); }); await waitForWaitTime(100); expect(fn).toBeCalled(); expect(currentFn).toBeCalled(); await act(async () => { (await html.findByText('提 交')).click(); }); await waitForWaitTime(100); expect(onFinish).toBeCalled(); expect(fn).toBeCalled(); expect(currentFn).toBeCalled(); await waitForWaitTime(100); html.unmount(); }); it('🐲 submit when onFinish is null', async () => { const fn = vi.fn(); const currentFn = vi.fn(); const { unmount } = render( <StepsForm onCurrentChange={currentFn}> <StepsForm.StepForm name="base" title="表单1" onFinish={async (values) => { fn(values); return true; }} > <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText label="邮箱" name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); await act(async () => { userEvent.click(await screen.findByText('下一步')); }); await waitFor(() => { screen.findAllByText('邮箱'); }); await waitFor(() => { expect(fn).toBeCalled(); }); await waitFor(() => { expect(currentFn).toBeCalled(); }); unmount(); }); it('🐲 onFinish return true', async () => { const fn = vi.fn(); const currentFn = vi.fn(); const { unmount } = render( <StepsForm current={1} onCurrentChange={(c) => { currentFn(c); }} onFinish={async (values) => { fn(values); return true; }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); userEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(fn).toBeCalled(); expect(currentFn).toBeCalledWith(0); }); unmount(); }); it('🐲 onFinish throw error', async () => { const currentFn = vi.fn(); const { unmount } = render( <StepsForm current={1} onCurrentChange={(c) => { currentFn(c); }} onFinish={async () => { throw new Error('发生了错误'); }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); await userEvent.click(await screen.findByText('提 交')); await waitFor(() => { expect(currentFn).not.toBeCalledWith(0); }); unmount(); }); it('🐲 submitter render=false', () => { const { container } = render( <StepsForm submitter={{ render: false, }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); expect( !!container.querySelectorAll('button.ant-btn.ant-btn-primary').length, ).toBeFalsy(); }); it('🐲 submitter render props', async () => { const fn = vi.fn(); const { unmount } = render( <StepsForm current={1} onCurrentChange={(current) => fn(current)} submitter={{ render: (props) => { return ( <button type="button" id="rest" onClick={() => props?.onPre?.()}> rest </button> ); }, }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); expect(!!screen.findByText('rest')).toBeTruthy(); fireEvent.click(await screen.getByText('rest')); expect(fn).toBeCalledWith(0); unmount(); }); it('🐲 current min=0', async () => { const fn = vi.fn(); const { unmount } = render( <StepsForm current={0} onCurrentChange={(current) => { fn(current); }} submitter={{ render: (props) => { return ( <button type="button" data-testid="rest" onClick={() => props?.onReset?.()} > rest </button> ); }, }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); /** 因为上一步有限制,所以应该不触发 */ fireEvent.click(await screen.getByTestId('rest')); expect(fn).toBeCalledTimes(0); unmount(); }); it('🐲 current max=1', async () => { const fn = vi.fn(); const { unmount } = render( <StepsForm current={1} onCurrentChange={(current) => { fn(current); }} submitter={{ render: (props) => { return ( <button type="button" data-testid="rest" onClick={() => props?.onSubmit?.()} > rest </button> ); }, }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); /** 因为上一步有限制,所以应该不触发 */ fireEvent.click(await screen.getByTestId('rest')); expect(fn).toBeCalledTimes(0); unmount(); }); it('🐲 submitter=false', async () => { const { container, unmount } = render( <StepsForm submitter={false}> <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); expect( !!container.querySelector( '.ant-pro-steps-form-step-active button.ant-btn.ant-btn-primary', ), ).toBeFalsy(); unmount(); }); it('🐲 submitter render function', async () => { const { container, unmount } = render( <StepsForm submitter={{ render: () => { return ( <Button id="next" key="next"> 下一步 </Button> ); }, }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); expect(!!container.querySelector('button#next')).toBeTruthy(); unmount(); }); it('🐲 support stepsFormRender', async () => { const { container, unmount } = render( <StepsForm stepsFormRender={(dom, submitter) => { return ( <div> <div id="content">{dom}</div> <div id="footer">{submitter} </div> </div> ); }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); expect(container.querySelectorAll('#content form')).toHaveLength(2); expect(!!container.querySelector('#content form')).toBeTruthy(); expect(!!container.querySelector('#footer button')).toBeTruthy(); unmount(); }); it('🐲 support stepsFormRender', async () => { const { container, unmount } = render( <StepsForm stepFormRender={(dom) => { return <div id="content">{dom}</div>; }} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name="姓名" /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name="邮箱" /> </StepsForm.StepForm> </StepsForm>, ); expect(container.querySelectorAll('#content')).toHaveLength(1); expect(container.querySelectorAll('form #content')).toHaveLength(1); expect(container.querySelectorAll('form')).toHaveLength(2); expect(!!container.querySelectorAll('form #content').length).toBeTruthy(); unmount(); }); it('🐲 support deepmerge form value', async () => { const submit = vi.fn(() => Promise.resolve()); const html = render( <StepsForm stepFormRender={(dom) => { return <div id="content">{dom}</div>; }} onFinish={submit} > <StepsForm.StepForm name="base" title="表单1"> <ProFormText name={['info', 'name']} initialValue={'chenshuai'} /> </StepsForm.StepForm> <StepsForm.StepForm name="moreInfo" title="表单2"> <ProFormText name={['info', 'age']} initialValue={'22'} /> </StepsForm.StepForm> </StepsForm>, ); await waitForWaitTime(200); await act(async () => { (await html.findByText('下一步')).click(); }); await waitForWaitTime(200); await act(async () => { (await html.findByText('提 交')).click(); }); await waitForWaitTime(100); expect(submit).toBeCalledWith({ info: { name: 'chenshuai', age: '22', }, }); }); it('🐲 properly unregister form', async () => { const Forms = () => { const [show, setShow] = React.useState(true); return ( <StepsForm> <StepsForm.StepForm name="step1" title="表单1"> 表单 1 <button type="button" onClick={() => setShow(false)}> 隐藏表单3 </button> </StepsForm.StepForm> <StepsForm.StepForm name="step2" title="表单2"> 表单 2 </StepsForm.StepForm> {show ? ( <StepsForm.StepForm name="step3" title="表单3"> 表单 3 </StepsForm.StepForm> ) : null} </StepsForm> ); }; const html = render(<Forms />); await waitForWaitTime(100); expect(html.container.querySelectorAll('.ant-steps-item')).toHaveLength(3); await act(async () => { (await html.findByText('隐藏表单3')).click(); }); expect(html.container.querySelectorAll('.ant-steps-item')).toHaveLength(2); }); });
9,146
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/form/upload.test.tsx
import ProForm, { ProFormUploadButton, ProFormUploadDragger, } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render } from '@testing-library/react'; import { Form } from 'antd'; import type { UploadFile } from 'antd/lib/upload/interface'; import mock from 'xhr-mock'; import { waitForWaitTime } from '../util'; const mockFile = new File(['foo'], 'foo.png', { type: 'image/png', }) as unknown as UploadFile; const mockFile1 = new File(['foo1'], 'foo1.png', { type: 'image/png', }) as unknown as UploadFile; const mockFile2 = new File(['foo2'], 'foo2.png', { type: 'image/png', }) as unknown as UploadFile; export function setup() { mock.setup(); // @ts-ignore mock.post('http://upload.com/', (req, res) => { req.headers({ 'content-length': '100', }); req.body('thisisbody'); return res; }); } export const teardown = mock.teardown.bind(mock); afterEach(() => { cleanup(); }); describe('ProFormUpload', () => { const errorSpy = vi.spyOn(console, 'error').mockImplementation(() => {}); beforeEach(() => setup()); afterEach(() => { teardown(); errorSpy.mockReset(); }); it('🏐 ProFormUploadButton support onChange', async () => { const fn = vi.fn(); const onChangeFn = vi.fn(); const wrapper = render( <ProForm onValuesChange={(_, values) => { fn(values.files); }} > <ProFormUploadButton action="http://upload.com" listType="text" onChange={() => onChangeFn()} label="upload" name="files" /> </ProForm>, ); act(() => { fireEvent.change( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-upload input')!, { target: { files: [mockFile], }, }, ); }); await waitForWaitTime(1000); expect(fn).toBeCalled(); expect(onChangeFn).toBeCalledTimes(3); }); it('🏐 ProFormUploadButton support beforeUpload', async () => { const fn = vi.fn(); const wrapper = render( <ProForm onValuesChange={(_, values) => { fn(values.files); }} > <ProFormUploadButton action="http://upload.com" listType="text" label="upload" name="files" fieldProps={{ beforeUpload: () => { return false; }, }} /> </ProForm>, ); act(() => { fireEvent.change( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-upload input')!, { target: { files: [mockFile], }, }, ); }); await waitForWaitTime(200); act(() => { expect( wrapper.baseElement.querySelectorAll<HTMLDivElement>( 'div.ant-upload-list-picture-container', ).length, ).toBe(0); }); }); it('🏐 ProFormUploadButton support disable', async () => { const wrapper = render( <Form> <ProFormUploadButton disabled action="http://upload.com" listType="text" label="upload" name="files" /> </Form>, ); expect( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-upload') ?.innerHTML, ).toMatchSnapshot(); act(() => { wrapper.rerender( <Form> <ProFormUploadButton disabled action="http://upload.com" listType="text" label="upload" name="files" buttonProps={{ disabled: true, type: 'dashed', }} /> </Form>, ); }); await waitForWaitTime(100); expect( wrapper.baseElement .querySelector<HTMLDivElement>('.ant-upload') ?.querySelector('.ant-btn-dashed'), ).toBeTruthy(); act(() => { wrapper.rerender( <Form> <ProFormUploadButton disabled={false} action="http://upload.com" listType="text" label="upload" name="files" buttonProps={{}} fieldProps={{ disabled: true, }} /> </Form>, ); }); await waitForWaitTime(100); expect( wrapper.baseElement .querySelector<HTMLDivElement>('.ant-upload') ?.querySelector('.ant-btn-dashed'), ).toBeFalsy(); }); it('🏐 ProFormUploadDragger support onChange', async () => { const fn = vi.fn(); const onChangeFn = vi.fn(); const wrapper = render( <ProForm onValuesChange={(_, values) => { fn(values.files); }} > <ProFormUploadDragger onChange={() => onChangeFn()} action="http://upload.com" label="upload" name="files" /> </ProForm>, ); act(() => { fireEvent.change( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-upload input')!, { target: { files: [mockFile], }, }, ); }); await waitForWaitTime(200); expect(fn).toBeCalled(); expect(onChangeFn).toBeCalled(); }); it('🏐 ProFormUploadDragger hide when max', async () => { const wrapper = render( <Form> <ProFormUploadDragger max={2} value={[mockFile, mockFile1, mockFile2]} action="http://upload.com" label="upload" name="files" /> </Form>, ); await waitForWaitTime(200); expect( getComputedStyle( wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-upload.ant-upload-drag', )!, )?.display, ).toBe('none'); }); it('🏐 ProFormUploadDragger support children', async () => { const extra = 'extra'; const wrapper = render( <Form> <ProFormUploadDragger value={[mockFile, mockFile1, mockFile2]} action="http://upload.com" label="upload" name="files" > {extra} </ProFormUploadDragger> </Form>, ); await waitForWaitTime(200); expect( wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-upload-drag .ant-upload-extra', )?.textContent, ).toBe(extra); }); it('🏐 ProFormUploadButton hide when max', async () => { const wrapper = render( <Form> <ProFormUploadButton max={2} value={[mockFile, mockFile1, mockFile2]} action="http://upload.com" label="upload" name="files" /> </Form>, ); await waitForWaitTime(200); expect( wrapper.baseElement.querySelector<HTMLDivElement>( '.anticon.anticon-upload', ), ).toBeFalsy(); }); });
9,147
0
petrpan-code/ant-design/pro-components/tests/form
petrpan-code/ant-design/pro-components/tests/form/__snapshots__/base.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`ProForm > 📦 submit props actionsRender is one 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <a> test </a> </form> </DocumentFragment> `; exports[`ProForm > 📦 submit props actionsRender=()=>[] 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> </form> </DocumentFragment> `; exports[`ProForm > 📦 submit props actionsRender=()=>false 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> text </form> </DocumentFragment> `; exports[`ProForm > 📦 submit props actionsRender=false 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> </form> </DocumentFragment> `; exports[`ProForm > 📦 submit props actionsRender=false 2`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> </form> </DocumentFragment> `; exports[`ProForm > 📦 submit props render=()=>[] 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <button class="ant-btn ant-btn-primary" type="button" > <span> 提交并发布 </span> </button> </form> </DocumentFragment> `; exports[`ProForm > 📦 submitted value should be consistent with input when precision=0 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="count" title="人数" > 人数 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-status-success" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="22" autocomplete="off" class="ant-input-number-input" id="count" placeholder="请输入" role="spinbutton" step="1" value="22" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </DocumentFragment> `; exports[`ProForm > 📦 submitter props support resetButtonProps 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default test_button" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </form> </DocumentFragment> `; exports[`ProForm > 📦 submitter props support submitButtonProps 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary test_button" type="button" > <span> 提 交 </span> </button> </div> </form> </DocumentFragment> `; exports[`ProForm > 📦 validateFieldsReturnFormatValue 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-status-success ant-picker-focused" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" size="12" title="2021-07-28" value="2021-07-28" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </DocumentFragment> `; exports[`ProForm > 📦 valueType digit with precision value 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="count" title="人数" > 人数 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-status-success" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="22" autocomplete="off" class="ant-input-number-input" id="count" placeholder="请输入" role="spinbutton" step="1" value="22" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </DocumentFragment> `; exports[`ProForm > 📦 when dateFormatter is a Function 1`] = ` <DocumentFragment> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-focused" > <div class="ant-picker-input" > <input autocomplete="off" id="datetime" placeholder="请选择" size="21" title="2021-08-09 12:12:12" value="2021-08-09 12:12:12" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="time2" title="时间" > 时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="time2" placeholder="请选择时间" readonly="" size="10" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </DocumentFragment> `;
9,148
0
petrpan-code/ant-design/pro-components/tests/form
petrpan-code/ant-design/pro-components/tests/form/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`form demos > 📸 renders ./packages/form/src/components/Dependency/demos/dependency.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="globalUseMode" title="全局生效方式组件的类型" > 全局生效方式组件的类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" /> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="globalUseMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="globalUseMode_list" autocomplete="off" class="ant-select-selection-search-input" id="globalUseMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item false ant-pro-form-list-item-show-label" style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_useMode" title="生效方式组件的类型" > 生效方式组件的类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="default_users_0_useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="default_users_0_useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="default_users_0_useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_function" title="生效方式" > 生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="default_users_0_function" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_gfunction" title="外层联动生效方式" > 外层联动生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="default_users_0_gfunction" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Dependency/demos/dependency2.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="a" title="a" > a </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="a" placeholder="请输入" type="text" value="1" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="b" title="b" > b </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="b" placeholder="请输入" type="text" value="2" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_a" title="c.a" > c.a </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_a" placeholder="请输入" type="text" value="3" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_b" title="c.b" > c.b </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_b" placeholder="请输入" type="text" value="4" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_c_a" title="c.c.a" > c.c.a </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_c_a" placeholder="请输入" type="text" value="5" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > c.d </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_d_0_a" title="a" > a </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_d_0_a" placeholder="请输入" type="text" value="6" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_d_0_b" title="b" > b </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_d_0_b" placeholder="请输入" type="text" value="7" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="搜集依赖值(情形3) <ProFormDependency name={[\\"a\\",\\"b\\",[\\"c\\",\\"a\\"]]}>" > 搜集依赖值(情形3) &lt;ProFormDependency name={["a","b",["c","a"]]}&gt; </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <pre> <code> { "c": { "d": [ { "c": {} } ] }, "a": 6, "b": 7 } </code> </pre> </div> </div> <div class="ant-form-item-extra" > a, b, c.a取自局部 </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > c.e </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_e_0_a" title="a" > a </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_e_0_a" placeholder="请输入" type="text" value="8" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="c_e_0_b" title="b" > b </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="c_e_0_b" placeholder="请输入" type="text" value="9" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="搜集依赖值(情形2) <ProFormDependency name={[\\"a\\",\\"b\\",[\\"c\\",\\"a\\"]]} ignoreFormListField>" > 搜集依赖值(情形2) &lt;ProFormDependency name={["a","b",["c","a"]]} ignoreFormListField&gt; </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <pre> <code> {"a":1,"b":2,"c":{"a":3}} </code> </pre> </div> </div> <div class="ant-form-item-extra" > a, b, c.a取自全局 </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 收集依赖值(情形1) &lt;ProFormDependency name={["a","b",["c","a"],["c","b"],["c","c","a"],["c","d"],["c","e"]]}&gt; </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <pre> <code> {"a":1,"b":2,"c":{"a":3,"b":4,"c":{"a":5},"d":[{"a":6,"b":7}],"e":[{"a":8,"b":9}]}} </code> </pre> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/captCha.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" title="新建表单" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="display: flex; align-items: center;" > <input class="ant-input" id="code" style="flex: 1; transition: width .3s; margin-right: 8px;" type="text" value="" /> <button class="ant-btn ant-btn-default" style="display: block;" type="button" > <span> 获取验证码 </span> </button> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 手动开始计数 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 手动结束计数 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/components-other.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px;" > <button aria-checked="false" class="ant-switch" role="switch" style="margin-block-end: 16px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 编辑 </span> <span class="ant-switch-inner-unchecked" > 只读 </span> </span> </button> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="validate_other" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 文本类 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_name" title="name" > name </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="validate_other_name" placeholder="请输入" type="text" value="qixian" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_password" title="password" > password </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-password pro-field pro-field-md" > <input class="ant-input" id="validate_other_password" placeholder="请输入" type="password" /> <span class="ant-input-suffix" > <span aria-label="eye-invisible" class="anticon anticon-eye-invisible ant-input-password-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" style="gap: 0 32px;" > <div class="ant-pro-form-group-title" > <div> <span aria-label="right" class="anticon anticon-right" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" style="transform: rotate(90deg);" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 选择类 </div> </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="validate_other_select" title="Select" > Select </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="validate_other_select_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="validate_other_select_list" autocomplete="off" class="ant-select-selection-search-input" id="validate_other_select" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="China" > China </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="validate_other_select2" title="支持搜索查询的 Select" > 支持搜索查询的 Select </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="validate_other_select2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="validate_other_select2_list" autocomplete="off" class="ant-select-selection-search-input" id="validate_other_select2" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="Patricia Lopez" > Patricia Lopez </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="validate_other_useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="validate_other_useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="validate_other_useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="未解决" > 未解决 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="validate_other_select-multiple" title="Select[multiple]" > Select[multiple] </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Green" > <span class="ant-select-selection-item-content" > Green </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="Blue" > <span class="ant-select-selection-item-content" > Blue </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="validate_other_select-multiple_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="validate_other_select-multiple_list" autocomplete="off" class="ant-select-selection-search-input" id="validate_other_select-multiple" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_radio" title="Radio.Group" > Radio.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" id="validate_other_radio" > <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="a" /> <span class="ant-radio-inner" /> </span> <span> item 1 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="b" /> <span class="ant-radio-inner" /> </span> <span> item 2 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="c" /> <span class="ant-radio-inner" /> </span> <span> item 3 </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_radio-vertical" title="Radio.Group" > Radio.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-vertical" id="validate_other_radio-vertical" > <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="a" /> <span class="ant-radio-inner" /> </span> <span> item 1 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="b" /> <span class="ant-radio-inner" /> </span> <span> item 2 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="c" /> <span class="ant-radio-inner" /> </span> <span> item 3 </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_radio-button" title="Radio.Button" > Radio.Button </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" id="validate_other_radio-button" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="a" /> <span class="ant-radio-button-inner" /> </span> <span> item 1 </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="b" /> <span class="ant-radio-button-inner" /> </span> <span> item 2 </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="c" /> <span class="ant-radio-button-inner" /> </span> <span> item 3 </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_checkbox-group" title="Checkbox.Group" > Checkbox.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="validate_other_checkbox-group" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target ant-checkbox-checked" > <input checked="" class="ant-checkbox-input" type="checkbox" value="A" /> <span class="ant-checkbox-inner" /> </span> <span> A </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target ant-checkbox-checked" > <input checked="" class="ant-checkbox-input" type="checkbox" value="B" /> <span class="ant-checkbox-inner" /> </span> <span> B </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target ant-checkbox-checked" > <input checked="" class="ant-checkbox-input" type="checkbox" value="C" /> <span class="ant-checkbox-inner" /> </span> <span> C </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="D" /> <span class="ant-checkbox-inner" /> </span> <span> D </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="E" /> <span class="ant-checkbox-inner" /> </span> <span> E </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="F" /> <span class="ant-checkbox-inner" /> </span> <span> F </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_color" title="颜色选择" > 颜色选择 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-color-picker-trigger ant-pro-field-color-picker" id="validate_other_color" style="display: table-cell; width: 100%;" > <div class="ant-color-picker-color-block" > <div class="ant-color-picker-color-block-inner" style="background: rgb(22, 119, 255);" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 数字类 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_input-number-range" title="InputNumberRange" > InputNumberRange </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space-compact" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-compact-item ant-input-number-compact-first-item" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="2" autocomplete="off" class="ant-input-number-input" id="validate_other_input-number-range" placeholder="最小值" role="spinbutton" step="1" value="2" /> </div> </div> <input class="ant-input ant-input-disabled ant-input-compact-item" disabled="" placeholder="-" style="width: 60px; text-align: center; border-inline-start: 0; border-inline-end: 0; pointer-events: none; background-color: rgb(255, 255, 255);" type="text" value="" /> <div class="ant-input-number ant-input-number-in-form-item ant-input-number-compact-item ant-input-number-compact-last-item" style="border-inline-start: 0;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="4" autocomplete="off" class="ant-input-number-input" id="validate_other_input-number-range" placeholder="最大值" role="spinbutton" step="1" value="4" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_input-number" title="InputNumber" > InputNumber </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-sm" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemax="10" aria-valuemin="1" aria-valuenow="3" autocomplete="off" class="ant-input-number-input" id="validate_other_input-number" placeholder="请输入" role="spinbutton" step="1" value="3" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_switch" title="Switch" > Switch </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="true" class="ant-switch ant-switch-checked" id="validate_other_switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_slider" title="Slider" > Slider </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-slider pro-field ant-slider-horizontal ant-slider-with-marks" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 66%;" /> <div class="ant-slider-step" > <span class="ant-slider-dot ant-slider-dot-active" style="left: 0%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 20%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 40%; transform: translateX(-50%);" /> <span class="ant-slider-dot ant-slider-dot-active" style="left: 60%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 80%; transform: translateX(-50%);" /> <span class="ant-slider-dot" style="left: 100%; transform: translateX(-50%);" /> </div> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="66" class="ant-slider-handle" role="slider" style="left: 66%; transform: translateX(-50%);" tabindex="0" /> <div class="ant-slider-mark" > <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 0%; transform: translateX(-50%);" > A </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 20%; transform: translateX(-50%);" > B </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 40%; transform: translateX(-50%);" > C </span> <span class="ant-slider-mark-text ant-slider-mark-text-active" style="left: 60%; transform: translateX(-50%);" > D </span> <span class="ant-slider-mark-text" style="left: 80%; transform: translateX(-50%);" > E </span> <span class="ant-slider-mark-text" style="left: 100%; transform: translateX(-50%);" > F </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_rate" title="Rate" > Rate </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <ul class="ant-rate" id="validate_other_rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-half ant-rate-star-active" > <div aria-checked="true" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_pic" title="上传" > 上传 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" id="validate_other_pic" style="display: none;" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span aria-label="upload" class="anticon anticon-upload" role="img" > <svg aria-hidden="true" data-icon="upload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" /> </svg> </span> <span> 单击上传 </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-picture" /> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_drag-pic" title="拖拽上传" > 拖拽上传 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-drag" > <span class="ant-upload ant-upload-btn" role="button" tabindex="0" > <input accept="" id="validate_other_drag-pic" style="display: none;" type="file" /> <div class="ant-upload-drag-container" > <p class="ant-upload-drag-icon" > <span aria-label="inbox" class="anticon anticon-inbox" role="img" > <svg aria-hidden="true" data-icon="inbox" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" /> </svg> </span> </p> <p class="ant-upload-text" > 单击或拖动文件到此区域进行上传 </p> <p class="ant-upload-hint" > 支持单次或批量上传 </p> </div> </span> </div> <div class="ant-upload-list ant-upload-list-text" /> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_segmented" title="分段控制器" > 分段控制器 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-segmented" id="validate_other_segmented" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="未解决" > 未解决 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="已解决" > 已解决 </div> </label> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_segmented2" title="分段控制器-远程数据" > 分段控制器-远程数据 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-segmented" id="validate_other_segmented2" > <div class="ant-segmented-group" > <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="全部" > 全部 </div> </label> <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="未解决" > 未解决 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="已解决" > 已解决 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="解决中" > 解决中 </div> </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/components-other-readonly.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px;" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="validate_other" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 基础数据 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_name" title="name" > name </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > prefix蚂蚁金服有限公司suffix </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="validate_other_select" title="Select" > Select </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > China </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 全部 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="validate_other_select-multiple" title="Select[multiple]" > Select[multiple] </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 2px; row-gap: 2px;" > <div class="ant-space-item" > Red </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > Green </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="validate_other_select-multiple2" title="Select[multiple]" > Select[multiple] </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 2px; row-gap: 2px;" > <div class="ant-space-item" > 测试测试1 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试2 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试3 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试4 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试5 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试6 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试7 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试8 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试9 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试10 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试11 </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > 测试测试12 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_input-number" title="InputNumber" > InputNumber </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span> 3 </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_switch" title="Switch" > Switch </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 同意 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_slider" title="Slider" > Slider </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > - </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_radio" title="Radio.Group" > Radio.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > item 1 </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div style="display: none;" > <div class="ant-form-item ant-form-item-hidden" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="text1" > text1 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > - </div> </div> </div> </div> </div> </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="text2" > text2 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > - </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_radio-button" title="Radio.Button" > Radio.Button </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > item 1 </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_checkbox-group" title="Checkbox.Group" > Checkbox.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="display: flex; flex-wrap: wrap; align-items: center; gap: 12px;" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="flex-wrap: wrap; column-gap: 2px; row-gap: 2px;" > <div class="ant-space-item" > A </div> <span class="ant-space-item-split" > , </span> <div class="ant-space-item" > B </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_rate" title="Rate" > Rate </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <ul class="ant-rate ant-rate-disabled" id="validate_other_rate" role="radiogroup" tabindex="-1" > <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="1" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="2" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-full" > <div aria-checked="true" aria-posinset="3" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-half ant-rate-star-active" > <div aria-checked="true" aria-posinset="4" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="-1" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_upload" title="Upload" > Upload </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" style="display: none;" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" style="display: none;" type="file" /> </span> </div> <div class="ant-upload-list ant-upload-list-picture" > <div class="ant-upload-list-item-container" > <div class="ant-upload-list-item ant-upload-list-item-done" > <a class="ant-upload-list-item-thumbnail" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" > <img alt="xxx.png" class="ant-upload-list-item-image" src="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" /> </a> <a class="ant-upload-list-item-name" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" title="xxx.png" > xxx.png </a> <span class="ant-upload-list-item-actions picture" > <button class="ant-btn ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action" title="删除文件" type="button" > <span class="ant-btn-icon" > <span aria-label="delete" class="anticon anticon-delete" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </button> </span> </div> </div> <div class="ant-upload-list-item-container" > <div class="ant-upload-list-item ant-upload-list-item-done" > <a class="ant-upload-list-item-thumbnail" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" > <img alt="yyy.png" class="ant-upload-list-item-image" src="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" /> </a> <a class="ant-upload-list-item-name" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" title="yyy.png" > yyy.png </a> <span class="ant-upload-list-item-actions picture" > <button class="ant-btn ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action" title="删除文件" type="button" > <span class="ant-btn-icon" > <span aria-label="delete" class="anticon anticon-delete" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </button> </span> </div> </div> <div class="ant-upload-list-item-container" > <div class="ant-upload-list-item ant-upload-list-item-error" > <a class="ant-upload-list-item-thumbnail" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" > <img alt="zzz.png" class="ant-upload-list-item-image" src="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" /> </a> <a class="ant-upload-list-item-name" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" title="zzz.png" > zzz.png </a> <span class="ant-upload-list-item-actions picture" > <button class="ant-btn ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action" title="删除文件" type="button" > <span class="ant-btn-icon" > <span aria-label="delete" class="anticon anticon-delete" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </button> </span> </div> </div> </div> </span> </div> </div> <div class="ant-form-item-extra" id="validate_other_upload_extra" > longgggggggggggggggggggggggggggggggggg </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="地址列表" > 地址列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_textList_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 张三 </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_textList_0_addr" title="地址" > 地址 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 地址1 </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_textList_1_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 李四 </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_textList_1_addr" title="地址" > 地址 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 地址2 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_list" title="组件列表" > 组件列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > 1 </div> <div class="ant-space-item" > - </div> <div class="ant-space-item" > 2 </div> <div class="ant-space-item" > - </div> <div class="ant-space-item" > 3 </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dragger" title="Dragger" > Dragger </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-drag" style="display: none;" > <span class="ant-upload ant-upload-btn" role="button" tabindex="0" > <input accept="" id="validate_other_dragger" style="display: none;" type="file" /> <div class="ant-upload-drag-container" > <p class="ant-upload-drag-icon" > <span aria-label="inbox" class="anticon anticon-inbox" role="img" > <svg aria-hidden="true" data-icon="inbox" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" /> </svg> </span> </p> <p class="ant-upload-text" > 单击或拖动文件到此区域进行上传 </p> <p class="ant-upload-hint" > 支持单次或批量上传 </p> </div> </span> </div> <div class="ant-upload-list ant-upload-list-text" > <div class="ant-upload-list-item-container" > <div class="ant-upload-list-item ant-upload-list-item-done" > <div class="ant-upload-icon" > <span aria-label="paper-clip" class="anticon anticon-paper-clip" role="img" > <svg aria-hidden="true" data-icon="paper-clip" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" /> </svg> </span> </div> <a class="ant-upload-list-item-name" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" title="xxx.png" > xxx.png </a> <span class="ant-upload-list-item-actions" > <button class="ant-btn ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action" title="删除文件" type="button" > <span class="ant-btn-icon" > <span aria-label="delete" class="anticon anticon-delete" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </button> </span> </div> </div> <div class="ant-upload-list-item-container" > <div class="ant-upload-list-item ant-upload-list-item-done" > <div class="ant-upload-icon" > <span aria-label="paper-clip" class="anticon anticon-paper-clip" role="img" > <svg aria-hidden="true" data-icon="paper-clip" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" /> </svg> </span> </div> <a class="ant-upload-list-item-name" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" title="yyy.png" > yyy.png </a> <span class="ant-upload-list-item-actions" > <button class="ant-btn ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action" title="删除文件" type="button" > <span class="ant-btn-icon" > <span aria-label="delete" class="anticon anticon-delete" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </button> </span> </div> </div> <div class="ant-upload-list-item-container" > <div class="ant-upload-list-item ant-upload-list-item-error" > <div class="ant-upload-icon" > <span aria-label="paper-clip" class="anticon anticon-paper-clip" role="img" > <svg aria-hidden="true" data-icon="paper-clip" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z" /> </svg> </span> </div> <a class="ant-upload-list-item-name" href="https://gw.alipayobjects.com/zos/antfincdn/7%24YOiS6YIm/huaban.png" rel="noopener noreferrer" target="_blank" title="zzz.png" > zzz.png </a> <span class="ant-upload-list-item-actions" > <button class="ant-btn ant-btn-text ant-btn-sm ant-btn-icon-only ant-upload-list-item-action" title="删除文件" type="button" > <span class="ant-btn-icon" > <span aria-label="delete" class="anticon anticon-delete" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </button> </span> </div> </div> </div> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 日期相关分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_date" title="日期" > 日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 2016-11-22 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_date" title="年月" > 年月 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 16-11 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_time" title="时间" > 时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span> 00:01:05 </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_timeRange" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div> 05:00:00 </div> <div> 11:00:00 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateWeek" title="周" > 周 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 2016-47周 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateMonth" title="月" > 月 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 2016-11 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateQuarter" title="季度" > 季度 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 2016-Q4 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateYear" title="年" > 年 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 2016 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateTime" title="日期时间" > 日期时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 2016-11-22 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateRange" title="日期区间" > 日期区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div> 2016-11-22 </div> <div> 2016-11-21 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dateTimeRange" title="日期时间区间" > 日期时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div> 2016-11-22 15:22:44 </div> <div> 2016-11-21 15:22:44 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 其他相关分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="互相依赖的表单" > 互相依赖的表单 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> [ "1", "2", "3" ] </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_list" title="组件列表" > 组件列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > 1 </div> <div class="ant-space-item" > 2 </div> <div class="ant-space-item" > 3 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_list" title="组件列表- Input.Group" > 组件列表- Input.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-group ant-input-group-compact" > 123 </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_list" title="组件列表" > 组件列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > 1 </div> <div class="ant-space-item" > - </div> <div class="ant-space-item" > 2 </div> <div class="ant-space-item" > - </div> <div class="ant-space-item" > 3 </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/datatime.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px;" > <button aria-checked="false" class="ant-switch" role="switch" style="margin-block-end: 16px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 编辑 </span> <span class="ant-switch-inner-unchecked" > 只读 </span> </span> </button> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 日期相关分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="date" title="日期" > 日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-focused" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" size="12" title="2016-11-22" value="2016-11-22" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="date" title="年月" > 年月 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" readonly="" size="12" title="16-11" value="16-11" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="time" title="时间" > 时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="time" placeholder="请选择时间" readonly="" size="10" title="00:01:05" value="00:01:05" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="timeRange" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="timeRange" placeholder="开始时间" readonly="" size="10" value="05:00:00" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="结束时间" readonly="" size="10" value="11:00:00" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateWeek" title="周" > 周 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="dateWeek" placeholder="请选择" readonly="" size="12" title="2016-47周" value="2016-47周" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateWeekRange" title="周区间" > 周区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateWeekRange" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateMonth" title="月" > 月 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="dateMonth" placeholder="请选择" readonly="" size="12" title="2016-11" value="2016-11" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateMonthRange" title="月区间" > 月区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateMonthRange" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateQuarter" title="季度" > 季度 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="dateQuarter" placeholder="请选择" readonly="" size="12" title="2016-Q4" value="2016-Q4" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateQuarterRange" title="季度区间" > 季度区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateQuarterRange" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateYear" title="年" > 年 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="dateYear" placeholder="请选择" readonly="" size="12" title="2016" value="2016" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateYearRange" title="年区间" > 年区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateYearRange" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateTime" title="日期时间" > 日期时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="dateTime" placeholder="请选择" readonly="" size="12" title="2016-11-22" value="2016-11-22" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateRange" title="日期区间" > 日期区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateRange" placeholder="请选择" readonly="" size="12" value="2016-11-21" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="2016-11-22" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateTimeRange" title="日期时间区间" > 日期时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateTimeRange" placeholder="请选择" readonly="" size="21" value="2016-11-21 15:22:44" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="2016-11-22 15:22:44" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/fieldSet-light.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="App" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="包含 123" > <span class="ant-pro-core-field-label-text" > 筛选: </span> <span style="padding-inline-start: 4px; display: flex;" > 包含 123 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/form-fieldset.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px;" > <button aria-checked="false" class="ant-switch" role="switch" style="margin-block-end: 16px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 编辑 </span> <span class="ant-switch-inner-unchecked" > 只读 </span> </span> </button> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="互相依赖的表单" > 互相依赖的表单 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> [ "1", "2", "3" ] </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="list" title="组件列表" > 组件列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" placeholder="请输入" type="text" value="1" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> <div class="ant-space-item" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="2" > 2 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" placeholder="请输入" type="text" value="3" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="list" title="组件列表- Input.Group" > 组件列表- Input.Group </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-group ant-input-group-compact" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" placeholder="请输入" type="text" value="1" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" placeholder="请输入" type="text" value="2" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" placeholder="请输入" type="text" value="3" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="list" title="组件列表" > 组件列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > 1 </div> <div class="ant-space-item" > - </div> <div class="ant-space-item" > 2 </div> <div class="ant-space-item" > - </div> <div class="ant-space-item" > 3 </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/pro-form-captCha.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" title="新建表单" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="display: flex; align-items: center;" > <input class="ant-input" id="code" style="flex: 1; transition: width .3s; margin-right: 8px;" type="text" value="" /> <button class="ant-btn ant-btn-default" style="display: block;" type="button" > <span> 获取验证码 </span> </button> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 手动开始计数 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 手动结束计数 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/search-select.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px;" > <button aria-checked="false" class="ant-switch" role="switch" style="margin-block-end: 16px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" > 编辑 </span> <span class="ant-switch-inner-unchecked" > 只读 </span> </span> </button> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="userQuery" title="查询选择器 - request" > 查询选择器 - request </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-focused ant-select-multiple ant-select-allow-clear ant-select-show-search" style="min-width: 140px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" /> <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="userQuery_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="userQuery_list" autocomplete="off" class="ant-select-selection-search-input" id="userQuery" role="combobox" style="" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="userQuery2" title="查询选择器 - valueEnum" > 查询选择器 - valueEnum </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-multiple ant-select-allow-clear ant-select-show-search" style="min-width: 140px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="userQuery2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="userQuery2_list" autocomplete="off" class="ant-select-selection-search-input" id="userQuery2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="userQuery3" title="查询选择器 - options" > 查询选择器 - options </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-multiple ant-select-allow-clear ant-select-show-search" style="min-width: 140px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="userQuery3_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="userQuery3_list" autocomplete="off" class="ant-select-selection-search-input" id="userQuery3" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/FieldSet/demos/upload.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="upload" title="Upload" > Upload </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" id="upload" style="display: none;" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span aria-label="upload" class="anticon anticon-upload" role="img" > <svg aria-hidden="true" data-icon="upload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" /> </svg> </span> <span> 单击上传 </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-picture" /> </span> </div> </div> <div class="ant-form-item-extra" id="upload_extra" > longgggggggggggggggggggggggggggggggggg </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="upload" title="Upload" > Upload </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper ant-upload-picture-card-wrapper" > <div class="ant-upload-list ant-upload-list-picture-card" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" id="upload" style="display: none;" type="file" /> <span> <span aria-label="upload" class="anticon anticon-upload" role="img" > <svg aria-hidden="true" data-icon="upload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" /> </svg> </span> 单击上传 </span> </span> </div> </div> </span> </div> </div> <div class="ant-form-item-extra" id="upload_extra" > longgggggggggggggggggggggggggggggggggg </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dragger" title="Dragger" > Dragger </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-drag" > <span class="ant-upload ant-upload-btn" role="button" tabindex="0" > <input accept="" id="dragger" style="display: none;" type="file" /> <div class="ant-upload-drag-container" > <p class="ant-upload-drag-icon" > <span aria-label="inbox" class="anticon anticon-inbox" role="img" > <svg aria-hidden="true" data-icon="inbox" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" /> </svg> </span> </p> <p class="ant-upload-text" > 单击或拖动文件到此区域进行上传 </p> <p class="ant-upload-hint" > 支持单次或批量上传 </p> </div> </span> </div> <div class="ant-upload-list ant-upload-list-text" /> </span> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/base-use.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item false ant-pro-form-list-item-show-label" style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_rowKey" title="第 0 配置" > 第 0 配置 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="default_users_0_rowKey" placeholder="请输入" type="text" value="0" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="default_users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_remark" title="昵称详情" > 昵称详情 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="default_users_0_remark" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div style="display: flex; align-items: flex-end; gap: 8px; height: 60px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 设置此项 </span> </button> <button class="ant-btn ant-btn-dashed" type="button" > <span> 清空此项 </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/countLimit.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="snippets" class="anticon anticon-snippets ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="snippets" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/customize.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" style="width: calc(100% - 400px); flex-shrink: 0;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 8px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_nickName" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_nickName" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </div> <div class="ant-pro-card-col" style="width: 400px; flex-shrink: 0;" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 配置菜单 </div> </div> <div class="ant-pro-card-body" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > <div style="display: flex; width: 100%; align-items: center; justify-content: space-between;" > 新建按钮配置 <span> <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" id="creatorButtonProps_show" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </span> </div> </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 8px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="creatorButtonProps_creatorButtonText" title="按钮文字" > 按钮文字 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="creatorButtonProps_creatorButtonText" placeholder="请输入" type="text" value="新建一行" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="creatorButtonProps_icon" title="图标" > 图标 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="creatorButtonProps_icon_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="creatorButtonProps_icon_list" autocomplete="off" class="ant-select-selection-search-input" id="creatorButtonProps_icon" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="creatorButtonProps_position" title="按钮位置" > 按钮位置 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="creatorButtonProps_position_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="creatorButtonProps_position_list" autocomplete="off" class="ant-select-selection-search-input" id="creatorButtonProps_position" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="button" > button </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="creatorButtonProps_type" title="按钮类型" > 按钮类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="creatorButtonProps_type_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="creatorButtonProps_type_list" autocomplete="off" class="ant-select-selection-search-input" id="creatorButtonProps_type" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="dashed" > dashed </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > <div style="display: flex; width: 100%; align-items: center; justify-content: space-between;" > 复制按钮配置 <span> <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" id="copyIconProps_show" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </span> </div> </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 8px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="copyIconProps_tooltipText" title=" tooltip 提示文字" > tooltip 提示文字 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="copyIconProps_tooltipText" placeholder="请输入" type="text" value="复制此项" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="copyIconProps_Icon" title="图标" > 图标 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="copyIconProps_Icon_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="copyIconProps_Icon_list" autocomplete="off" class="ant-select-selection-search-input" id="copyIconProps_Icon" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > <div style="display: flex; width: 100%; align-items: center; justify-content: space-between;" > 删除按钮配置 <span> <button aria-checked="true" class="ant-switch ant-switch-small ant-switch-checked" id="deleteIconProps_show" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </span> </div> </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 8px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="deleteIconProps_tooltipText" title=" tooltip 提示文字" > tooltip 提示文字 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="deleteIconProps_tooltipText" placeholder="请输入" type="text" value="删除此项" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="deleteIconProps_Icon" title="图标" > 图标 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="deleteIconProps_Icon_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="deleteIconProps_Icon_list" autocomplete="off" class="ant-select-selection-search-input" id="deleteIconProps_Icon" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" > <span aria-label="delete" class="anticon anticon-delete" role="img" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> { "copyIconProps": { "show": true, "Icon": "CopyOutlined", "tooltipText": "复制此项" }, "deleteIconProps": { "show": true, "Icon": "DeleteOutlined", "tooltipText": "删除此项" }, "creatorButtonProps": { "show": true, "creatorButtonText": "新建一行", "position": "button", "type": "dashed", "icon": "PlusOutlined" } } </code> </pre> </form> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/dependency.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_rowKey" title="第 0 配置" > 第 0 配置 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="default_users_0_rowKey" placeholder="请输入" type="text" value="0" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="default_users_0_name" placeholder="请输入" type="text" value="我是姓名" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_remark" title="昵称详情" > 昵称详情 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="default_users_0_remark" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="default_users_0_addr" title="与 name 联动的选择器" > 与 name 联动的选择器 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="default_users_0_addr_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="default_users_0_addr_list" autocomplete="off" class="ant-select-selection-search-input" id="default_users_0_addr" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/horizontal-layout.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="规格" > 规格 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 规格1 </div> </div> <div class="ant-pro-card-body" style="padding-block-end: 0;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="attributes_0_name" title="规格名" > 规格名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="attributes_0_name" placeholder="请输入" type="text" value="颜色" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" style="margin-block-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="规格值" > 规格值 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div style="display: inline-flex; margin-inline-end: 25px;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input pro-field pro-field-xs" id="attributes_0_items_0_name" placeholder="请输入" type="text" value="红" /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <div style="display: inline-flex; margin-inline-end: 25px;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input pro-field pro-field-xs" id="attributes_0_items_1_name" placeholder="请输入" type="text" value="黄" /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-link ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span> 新建 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加规格项 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/list.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="top" /> <span class="ant-radio-inner" /> </span> <span> 顶部 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="bottom" /> <span class="ant-radio-inner" /> </span> <span> 底部 </span> </label> </div> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="id" title="主合同编号" > 主合同编号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-sm" > <input class="ant-input" id="id" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="project" title="项目名称" > 项目名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="project" placeholder="请输入" type="text" value="xxxx项目" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="mangerName" title="商务经理" > 商务经理 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-xs" > <input class="ant-input" id="mangerName" placeholder="请输入" type="text" value="启途" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_age" title="年龄" > 年龄 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-sm" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="111" autocomplete="off" class="ant-input-number-input" id="users_0_age" placeholder="请输入" role="spinbutton" step="1" value="111" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="users_0_sex_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="users_0_sex_list" autocomplete="off" class="ant-select-selection-search-input" id="users_0_sex" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="男性" > 男性 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_birth" title="出生日期" > 出生日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="users_0_birth" placeholder="请选择" readonly="" size="12" title="2021-02-18" value="2021-02-18" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_addr" title="地址" > 地址 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> <div class="ant-space-item" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/list-tooltip.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="display: flex; flex-direction: column; gap: 16px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="mode" title="模式" > 模式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-segmented ant-segmented-block" id="mode" > <div class="ant-segmented-group" > <label class="ant-segmented-item ant-segmented-item-selected" > <input checked="" class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="编辑" > 编辑 </div> </label> <label class="ant-segmented-item" > <input class="ant-segmented-item-input" type="radio" /> <div class="ant-segmented-item-label" title="只读" > 只读 </div> </label> </div> </div> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="labels_0_value" title="值" > 值 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="labels_0_value" placeholder="请输入" type="text" value="333" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="labels_0_label" title="显示名称" > 显示名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="labels_0_label" placeholder="请输入" type="text" value="333" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="smile" class="anticon anticon-smile ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/nested-list.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 1111 </div> <div class="ant-pro-card-extra" > <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_nickName" title="昵称" > 昵称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_nickName" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_labels_0_value" title="值" > 值 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_labels_0_value" placeholder="请输入" type="text" value="333" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_labels_0_label" title="显示名称" > 显示名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_labels_0_label" placeholder="请输入" type="text" value="333" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/Group/demos/pro-form-list.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="margin-block-end: 24px;" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 增加一行 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default ant-btn-dangerous" type="button" > <span> 删除一行 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 移动到第一行 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-dashed" type="button" > <span> 获取一行数据 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-dashed" type="button" > <span> 获取所有数据 </span> </button> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 1111 </div> <div class="ant-pro-card-extra" > <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_age" title="年龄" > 年龄 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_age" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/LoginForm/demos/login-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background-color: rgb(255, 255, 255);" > <div class="ant-pro-form-login-container " > <div class="ant-pro-form-login-top" > <div class="ant-pro-form-login-header " > <span class="ant-pro-form-login-logo " > <img src="https://github.githubassets.com/images/modules/logos_page/Octocat.png" /> </span> <span class="ant-pro-form-login-title " > Github </span> </div> <div class="ant-pro-form-login-desc " > 全球最大的代码托管平台 </div> </div> <div class="ant-pro-form-login-main " style="width: 328px;" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-tabs ant-tabs-top ant-tabs-centered" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab" data-node-key="account" > <div aria-controls="rc-tabs-test-panel-account" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-account" role="tab" tabindex="0" > 账号密码登录 </div> </div> <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="phone" > <div aria-controls="rc-tabs-test-panel-phone" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-phone" role="tab" tabindex="0" > 手机号登录 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-phone" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-phone" role="tabpanel" tabindex="0" /> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-lg" > <span class="ant-input-prefix" > <span aria-label="mobile" class="anticon anticon-mobile prefixIcon" role="img" > <svg aria-hidden="true" data-icon="mobile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </span> <input class="ant-input ant-input-lg" id="mobile" placeholder="手机号" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="display: flex; align-items: center;" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-lg" style="flex: 1; transition: width .3s; margin-right: 8px;" > <span class="ant-input-prefix" > <span aria-label="lock" class="anticon anticon-lock prefixIcon" role="img" > <svg aria-hidden="true" data-icon="lock" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z" /> </svg> </span> </span> <input class="ant-input ant-input-lg" id="captcha" placeholder="请输入验证码" type="text" value="" /> </span> <button class="ant-btn ant-btn-default ant-btn-lg" style="display: block;" type="button" > <span> 获取验证码 </span> </button> </div> </div> </div> </div> </div> </div> <div style="margin-block-end: 24px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" id="autoLogin" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> <span> 自动登录 </span> </label> <a style="float: right;" > 忘记密码 </a> </div> <button class="ant-btn ant-btn-primary ant-btn-lg" style="width: 100%;" type="button" > <span> 登 录 </span> </button> </form> <div class="ant-pro-form-login-main-other " > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > 其他登录方式 </div> <div class="ant-space-item" > <span aria-label="alipay-circle" class="anticon anticon-alipay-circle" role="img" style="margin-inline-start: 16px; color: rgba(0, 0, 0, 0.2); font-size: 24px; vertical-align: middle; cursor: pointer;" > <svg aria-hidden="true" data-icon="alipay-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 00960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z" /> </svg> </span> </div> <div class="ant-space-item" > <span aria-label="taobao-circle" class="anticon anticon-taobao-circle" role="img" style="margin-inline-start: 16px; color: rgba(0, 0, 0, 0.2); font-size: 24px; vertical-align: middle; cursor: pointer;" > <svg aria-hidden="true" data-icon="taobao-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z" /> </svg> </span> </div> <div class="ant-space-item" > <span aria-label="weibo-circle" class="anticon anticon-weibo-circle" role="img" style="margin-inline-start: 16px; color: rgba(0, 0, 0, 0.2); font-size: 24px; vertical-align: middle; cursor: pointer;" > <svg aria-hidden="true" data-icon="weibo-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z" /> </svg> </span> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/LoginForm/demos/login-form-page.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background-color: white; height: 100vh;" > <div class="ant-pro-form-login-page" style="position: relative; background-image: url(https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*y0ZTS6WLwvgAAAAAAAAAAAAADml6AQ/fmt.webp);" > <div style="position: absolute; top: 0px; left: 0px; width: 100%; overflow: hidden; height: 100%; z-index: 1; pointer-events: none;" > <video autoplay="" crossorigin="anonymous" loop="" src="https://gw.alipayobjects.com/v/huamei_gcee1x/afts/video/jXRBRK_VAwoAAAAAAAAAAAAAK4eUAQBr" style="width: 100%; height: 100%; object-fit: cover;" /> </div> <div class="ant-pro-form-login-page" > <div class="ant-pro-form-login-page-notice" > <div class="ant-pro-form-login-page-notice-activity" style="box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2); color: rgba(255, 255, 255, 0.85); border-radius: 8px; background-color: rgba(255, 255, 255, 0.25);" > <div class="ant-pro-form-login-page-notice-activity-title" > 活动标题,可配置图片 </div> <div class="ant-pro-form-login-page-notice-activity-subTitle" > 活动介绍说明文字 </div> <div class="ant-pro-form-login-page-notice-activity-action" > <button class="ant-btn ant-btn-default ant-btn-lg" style="border-radius: 20px; background: rgb(31, 31, 31); color: rgb(22, 104, 220); width: 120px;" type="button" > <span> 去看看 </span> </button> </div> </div> </div> <div class="ant-pro-form-login-page-left" > <div class="ant-pro-form-login-page-container" style="background-color: rgba(0, 0, 0, 0.65);" > <div class="ant-pro-form-login-page-top" > <div class="ant-pro-form-login-page-header" > <span class="ant-pro-form-login-page-logo" > <img src="https://github.githubassets.com/images/modules/logos_page/Octocat.png" /> </span> <span class="ant-pro-form-login-page-title" > Github </span> </div> <div class="ant-pro-form-login-page-desc" > 全球最大的代码托管平台 </div> </div> <div class="ant-pro-form-login-page-main" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-tabs ant-tabs-top ant-tabs-centered" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab" data-node-key="account" > <div aria-controls="rc-tabs-test-panel-account" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-account" role="tab" tabindex="0" > 账号密码登录 </div> </div> <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="phone" > <div aria-controls="rc-tabs-test-panel-phone" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-phone" role="tab" tabindex="0" > 手机号登录 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-phone" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-phone" role="tabpanel" tabindex="0" /> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-lg" > <span class="ant-input-prefix" > <span aria-label="mobile" class="anticon anticon-mobile prefixIcon" role="img" style="color: rgba(255, 255, 255, 0.85);" > <svg aria-hidden="true" data-icon="mobile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </span> <input class="ant-input ant-input-lg" id="mobile" placeholder="手机号" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="display: flex; align-items: center;" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-lg" style="flex: 1; transition: width .3s; margin-right: 8px;" > <span class="ant-input-prefix" > <span aria-label="lock" class="anticon anticon-lock prefixIcon" role="img" style="color: rgba(255, 255, 255, 0.85);" > <svg aria-hidden="true" data-icon="lock" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z" /> </svg> </span> </span> <input class="ant-input ant-input-lg" id="captcha" placeholder="请输入验证码" type="text" value="" /> </span> <button class="ant-btn ant-btn-default ant-btn-lg" style="display: block;" type="button" > <span> 获取验证码 </span> </button> </div> </div> </div> </div> </div> </div> <div style="margin-block-end: 24px;" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" id="autoLogin" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> <span> 自动登录 </span> </label> <a style="float: right;" > 忘记密码 </a> </div> <button class="ant-btn ant-btn-primary ant-btn-lg" style="width: 100%;" type="button" > <span> 登 录 </span> </button> </form> <div class="ant-pro-form-login-page-other" > <div style="display: flex; justify-content: center; align-items: center; flex-direction: column;" > <div class="ant-divider ant-divider-horizontal ant-divider-with-text ant-divider-with-text-center ant-divider-plain" role="separator" > <span class="ant-divider-inner-text" > <span style="color: rgba(255, 255, 255, 0.25); font-weight: normal; font-size: 14px;" > 其他登录方式 </span> </span> </div> <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 24px; row-gap: 24px;" > <div class="ant-space-item" > <div style="display: flex; justify-content: center; align-items: center; flex-direction: column; height: 40px; width: 40px; border: 1px solid #15325b; border-radius: 50%;" > <span aria-label="alipay" class="anticon anticon-alipay" role="img" style="color: rgb(22, 119, 255); font-size: 18px; vertical-align: middle; cursor: pointer;" > <svg aria-hidden="true" data-icon="alipay" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 01-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z" /> </svg> </span> </div> </div> <div class="ant-space-item" > <div style="display: flex; justify-content: center; align-items: center; flex-direction: column; height: 40px; width: 40px; border: 1px solid #15325b; border-radius: 50%;" > <span aria-label="taobao" class="anticon anticon-taobao" role="img" style="color: rgb(255, 106, 16); font-size: 18px; vertical-align: middle; cursor: pointer;" > <svg aria-hidden="true" data-icon="taobao" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z" /> </svg> </span> </div> </div> <div class="ant-space-item" > <div style="display: flex; justify-content: center; align-items: center; flex-direction: column; height: 40px; width: 40px; border: 1px solid #15325b; border-radius: 50%;" > <span aria-label="weibo" class="anticon anticon-weibo" role="img" style="color: rgb(24, 144, 255); font-size: 18px; vertical-align: middle; cursor: pointer;" > <svg aria-hidden="true" data-icon="weibo" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 00-106-34.3 28.45 28.45 0 00-21.9 33.8 28.39 28.39 0 0033.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0111.3 53.3 28.45 28.45 0 0018.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 00-25.4 39.3 33.12 33.12 0 0039.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z" /> </svg> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/ModalForm/demos/drawer-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建表单 </span> </button> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/ModalForm/demos/drawer-form-nested.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 325px;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建 Drawer 表单 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建 Model 表单 </span> </button> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/ModalForm/demos/modal-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建表单 </span> </button> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/ModalForm/demos/modal-form-reset.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 通过 formRef 重置 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 通过自定义 footer 按钮重置 </span> </button> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/ModalForm/demos/modal-form-submitter.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 自己定义 footer 的按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 自定义文字 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 隐藏或修改按钮样式 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 隐藏footer </span> </button> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/ModalForm/demos/visible-on-visible-change.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> Modal 展示 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> Drawer 展示 </span> </button> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/light-filter.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="middle" /> <span class="ant-radio-button-inner" /> </span> <span> Middle </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div> <br /> <br /> <form autocomplete="off" class="ant-form ant-form-horizontal ant-form-middle ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-searchable ant-pro-field-select-light-select-container-bottomLeft" > <div class="ant-select ant-select-in-form-item ant-select-focused ant-select-single ant-select-show-arrow ant-select-show-search" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" > 打开, 关闭 </span> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="sex_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="sex_list" autocomplete="off" class="ant-select-selection-search-input" id="sex" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="打开" > 打开 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" > <span style="display: inline-flex; align-items: center;" title="打开,关闭" > <span class="ant-pro-core-field-label-text" > 性别: </span> <span style="padding-inline-start: 4px; display: flex;" > 打开,关闭 </span> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-container-bottomLeft" > <div class="ant-select ant-select-in-form-item ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="zhejiang" > <span class="ant-select-selection-item-content" > zhejiang </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="杭州" > <span class="ant-select-selection-item-content" > 杭州 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="xihu" > <span class="ant-select-selection-item-content" > xihu </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="area_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="area_list" autocomplete="off" class="ant-select-selection-search-input" id="area" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="zhejiang,杭州,xihu" > <span class="ant-pro-core-field-label-text" > 地区: </span> <span style="padding-inline-start: 4px; display: flex;" > zhejiang,杭州,xihu </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > Checkbox.Group <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" style="padding-inline-end: 0;" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 树形下拉选择器: </span> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-select ant-tree-select ant-select-borderless ant-select-in-form-item ant-pro-field-tree-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 60px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span> Node1 , </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span> Node2 </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="treeSelect_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="treeSelect_list" autocomplete="off" class="ant-select-selection-search-input" id="treeSelect" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" style="padding-inline-end: 0;" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 区域: </span> <div class="ant-select ant-cascader ant-select-borderless ant-select-in-form-item pro-field pro-field-md ant-pro-field-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="area_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="area_list" autocomplete="off" class="ant-select-selection-search-input" id="area" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="浙江 / 杭州 / 西湖" > 浙江 / 杭州 / 西湖 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 开关: </span> <div style="padding-left: 8px;" > <button aria-checked="false" class="ant-switch ant-switch-small" id="open" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 数量 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 范围: </span> <span style="padding-inline-start: 4px; display: flex;" > <span style="display: flex;" > 20, </span> <span style="display: flex;" > 80 </span> </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 范围: </span> <span style="padding-inline-start: 4px; display: flex;" > 20 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="yutingzhao1991" > <span class="ant-pro-core-field-label-text" > 名称: </span> <span style="padding-inline-start: 4px; display: flex;" > yutingzhao1991 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" style="padding-inline-end: 0;" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 不能清空的日期: </span> <div class="ant-picker ant-picker-middle ant-picker-borderless" > <div class="ant-picker-input" > <input autocomplete="off" id="name3" placeholder="请选择日期" readonly="" size="12" title="2020-08-19" value="2020-08-19" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 日期范围 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 日期时间 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" style="padding-inline-end: 0;" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 日期时间范围: </span> <div class="ant-picker ant-picker-range ant-picker-middle ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="datetimeRanger" placeholder="请选择" readonly="" size="21" value="2019-11-15 12:50:26" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="21" value="2019-11-16 12:50:26" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 时间 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" style="padding-inline-end: 0;" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 时间范围: </span> <div class="ant-picker ant-picker-range ant-picker-middle ant-picker-borderless" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="timeRanger" placeholder="请选择" readonly="" size="10" value="12:50:26" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="10" value="12:50:26" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="clock-circle" class="anticon anticon-clock-circle" role="img" > <svg aria-hidden="true" data-icon="clock-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 姓名 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 更多筛选 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/light-filter-bordered.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-searchable ant-pro-field-select-light-select-container-bottomLeft" > <div class="ant-select ant-select-in-form-item ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow ant-select-show-search" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" > 男 </span> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="sex_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="sex_list" autocomplete="off" class="ant-select-selection-search-input" id="sex" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="男" > 男 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-bordered ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="男" > <span style="padding-inline-start: 4px; display: flex;" > 男 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" id="radio" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="weekly" /> <span class="ant-radio-button-inner" /> </span> <span> 每周 </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="quarterly" /> <span class="ant-radio-button-inner" /> </span> <span> 每季度 </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="monthly" /> <span class="ant-radio-button-inner" /> </span> <span> 每月 </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="yearly" /> <span class="ant-radio-button-inner" /> </span> <span> 每年 </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-bordered" > <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-bordered" > Please select </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-bordered ant-pro-core-field-label-allow-clear" > 迁移类型 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-bordered" > <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/light-filter-collapse.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <span class="ant-pro-core-field-dropdown-label" > <span aria-label="filter" class="anticon anticon-filter ant-pro-form-light-filter-collapse-icon" role="img" > <svg aria-hidden="true" data-icon="filter" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z" /> </svg> </span> </span> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/light-filter-footer.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="middle" /> <span class="ant-radio-button-inner" /> </span> <span> Middle </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div> <br /> <br /> <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-form-middle ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="Jack2" > <span class="ant-pro-core-field-label-text" > 名称: </span> <span style="padding-inline-start: 4px; display: flex;" > Jack2 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space-item" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-form-middle ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="Jack2" > <span class="ant-pro-core-field-label-text" > 名称: </span> <span style="padding-inline-start: 4px; display: flex;" > Jack2 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space-item" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-form-middle ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <span class="ant-pro-core-field-dropdown-label" > footer为false </span> </div> </div> </div> </form> </div> <div class="ant-space-item" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-form-middle ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <span class="ant-pro-core-field-dropdown-label" > 自定义footer </span> </div> </div> </div> </form> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/light-filter-placement.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="topLeft" /> <span class="ant-radio-button-inner" /> </span> <span> topLeft </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="topRight" /> <span class="ant-radio-button-inner" /> </span> <span> topRight </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomLeft" /> <span class="ant-radio-button-inner" /> </span> <span> bottomLeft </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="bottomRight" /> <span class="ant-radio-button-inner" /> </span> <span> bottomRight </span> </label> </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" style="margin-block-start: 40px;" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-searchable ant-pro-field-select-light-select-container-topLeft" > <div class="ant-select ant-select-in-form-item ant-select-focused ant-select-single ant-select-show-arrow ant-select-show-search" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" /> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="sex_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="sex_list" autocomplete="off" class="ant-select-selection-search-input" id="sex" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 性别 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-container-topLeft" > <div class="ant-select ant-select-in-form-item ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="area_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="area_list" autocomplete="off" class="ant-select-selection-search-input" id="area" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 地区 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 数量 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 范围 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 范围 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 名称 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 不能清空的日期 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 日期范围 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 日期时间 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 日期时间范围 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 时间 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 时间范围 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 姓名 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 更多筛选 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/light-filter-test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div class="ant-radio-group ant-radio-group-outline" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="middle" /> <span class="ant-radio-button-inner" /> </span> <span> Middle </span> </label> <label class="ant-radio-button-wrapper" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="small" /> <span class="ant-radio-button-inner" /> </span> <span> Small </span> </label> </div> <br /> <br /> <form autocomplete="off" class="ant-form ant-form-horizontal ant-form-middle ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle ant-pro-form-light-filter-effective" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-searchable ant-pro-field-select-light-select-container-bottomLeft" > <div class="ant-select ant-select-in-form-item ant-select-focused ant-select-single ant-select-show-arrow ant-select-show-search" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" > 打开, 关闭 </span> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="sex_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="sex_list" autocomplete="off" class="ant-select-selection-search-input" id="sex" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="打开" > 打开 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" > <span style="display: inline-flex; align-items: center;" title="打开,关闭" > <span class="ant-pro-core-field-label-text" > 性别: </span> <span style="padding-inline-start: 4px; display: flex;" > 打开,关闭 </span> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-container-bottomLeft" > <div class="ant-select ant-select-in-form-item ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="area_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="area_list" autocomplete="off" class="ant-select-selection-search-input" id="area" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 地区 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 数量 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 范围: </span> <span style="padding-inline-start: 4px; display: flex;" > <span style="display: flex;" > 20, </span> <span style="display: flex;" > 80 </span> </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 范围: </span> <span style="padding-inline-start: 4px; display: flex;" > 20 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active ant-pro-core-field-label-allow-clear" > <span style="display: inline-flex; align-items: center;" title="yutingzhao1991" > <span class="ant-pro-core-field-label-text" > 名称: </span> <span style="padding-inline-start: 4px; display: flex;" > yutingzhao1991 </span> </span> <span aria-label="close-circle" class="anticon anticon-close-circle ant-pro-core-field-label-icon ant-pro-core-field-label-close" role="button" tabindex="-1" title="清除" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/query-filter.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-form-group" > <div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-24 ant-col-xl-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="orderTime" title="下单时间" > 下单时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-focused" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="orderTime" placeholder="请选择" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-xl-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="pay" title="支付方式" > 支付方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled" > <input class="ant-input ant-input-disabled" disabled="" id="pay" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/query-filter-collapsed.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="createDate" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="createDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="status" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="replyDate" title="响应日期" > 响应日期 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="replyDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startDate" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="endDate" title="结束时间" > 结束时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="endDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 展开 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/query-filter-defaultColsNumber.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="createDate" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="createDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split-line ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="status" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="replyDate" title="响应日期" > 响应日期 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="replyDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startDate" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="endDate" title="结束时间" > 结束时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="endDate" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-col-offset-8" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 展开 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/query-filter-test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-24 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="test" title="test" > test </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="test" placeholder="请选择" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate1" title="Date1" > Date1 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate1" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate2" title="Date2" > Date2 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate2" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate3" title="Date3" > Date3 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate3" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate4" title="Date4" > Date4 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate4" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate5" title="Date5" > Date5 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate5" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate6" title="Date6" > Date6 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate6" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate7" title="Date7" > Date7 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate7" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate8" title="Date8" > Date8 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate8" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate9" title="Date9" > Date9 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate9" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate10" title="Date10" > Date10 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="startdate10" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-col-offset-16" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 展开 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <pre> { "defaultColsNumber": 6 } </pre> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-6 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="name" title="test" > test </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="name" type="text" value="" /> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-6 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="ant-form-item-required" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-6 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-6" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-6 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="ant-form-item-required" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-6 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="creater" title="创建人" > 创建人 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="creater" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-6 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-6" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="ant-form-item-required" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="creater" title="创建人" > 创建人 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="creater" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="status" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate" title="响应日期" > 响应日期 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="startdate" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="create" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="create" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-col-offset-16" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 收起 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0.5turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-12 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="ant-form-item-required" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="creater" title="创建人" > 创建人 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="creater" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="status" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate" title="响应日期" > 响应日期 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="startdate" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-24 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="create" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="create" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12 ant-col-offset-12" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 收起 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0.5turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="ant-form-item-required" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="creater" title="创建人" > 创建人 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="creater" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="status" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate" title="响应日期" > 响应日期 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="startdate" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-24 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="create" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="create" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-col-offset-16" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 收起 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0.5turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-4 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="ant-form-item-required" for="name" title="应用名称" > 应用名称 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-4 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="creater" title="创建人" > 创建人 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="creater" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-4 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="sex" title="性别" > 性别 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-4 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="status" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-4 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="startdate" title="响应日期" > 响应日期 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="startdate" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="create" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="create" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 收起 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0.5turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/query-filter-vertical.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="这是一个超级超级长的名称" > 这是一个超级超级长的名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="birth" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="birth" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="sex" title="应用状态" > 应用状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="sex" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="freq" title="查询频度" > 查询频度 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" id="freq" > <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="weekly" /> <span class="ant-radio-inner" /> </span> <span> 每周 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="quarterly" /> <span class="ant-radio-inner" /> </span> <span> 每季度 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="monthly" /> <span class="ant-radio-inner" /> </span> <span> 每月 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="yearly" /> <span class="ant-radio-inner" /> </span> <span> 每年 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-hidden" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox" title="行业分布" > 行业分布 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="checkbox" style="width: 100%;" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="农业" /> <span class="ant-checkbox-inner" /> </span> <span> 农业 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="制造业" /> <span class="ant-checkbox-inner" /> </span> <span> 制造业 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="互联网" /> <span class="ant-checkbox-inner" /> </span> <span> 互联网 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 查 询 </span> </button> </div> </div> <div class="ant-space-item" > <a class="ant-pro-query-filter-collapse-button" > 展开 <span aria-label="down" class="anticon anticon-down" role="img" style="margin-inline-start: 0.5em; transition: 0.3s all; transform: rotate(0turn);" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/QueryFilter/demos/search-filter.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="padding: 24px;" > <div style="display: flex; flex-direction: column; gap: 8px;" > <span class="ant-input-group-wrapper ant-input-search ant-input-search-with-button" style="max-width: 522px; width: 100%;" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" placeholder="请输入" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-primary ant-input-search-button" type="button" > <span> 搜 索 </span> </button> </span> </span> </span> <div style="display: flex; gap: 12px;" > <a> 小程序开发 </a> <a> 入驻 </a> <a> ISV 权限 </a> </div> </div> <div class="ant-tabs ant-tabs-top" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="articles" > <div aria-controls="rc-tabs-test-panel-articles" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-articles" role="tab" tabindex="0" > 文章 </div> </div> <div class="ant-tabs-tab" data-node-key="projects" > <div aria-controls="rc-tabs-test-panel-projects" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-projects" role="tab" tabindex="0" > 项目 </div> </div> <div class="ant-tabs-tab" data-node-key="applications" > <div aria-controls="rc-tabs-test-panel-applications" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-applications" role="tab" tabindex="0" > 应用 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> <div class="ant-tabs-extra-content" > <a style="display: flex; gap: 4px;" > 高级筛选 <span aria-label="up" class="anticon anticon-up" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </a> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-articles" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-articles" role="tabpanel" tabindex="0" /> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-24 ant-pro-query-filter-row-split-line ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" style="display: inline-block; margin-inline-end: 16px;" > 姓名 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" style="width: 100%;" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-24 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" style="display: inline-block; margin-inline-end: 16px;" > 详情 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="age" title="年龄" > 年龄 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="age" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="birth" title="生日" > 生日 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" style="width: 100%;" > <div class="ant-picker-input" > <input autocomplete="off" id="birth" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/ModalAndDrawerForm.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-alert ant-alert-warning ant-alert-no-icon" data-show="true" role="alert" style="margin-block-end: 24px;" > <div class="ant-alert-content" > <div class="ant-alert-message" > QueryFilter 和 lightFilter 暂不支持grid模式 </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="布局方式" > 布局方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="ModalForm" > ModalForm </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-default" type="button" > <span> 点击我 </span> </button> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/customization-value-type.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" title="自定义 valueType" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 标签 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="只读链接" > 只读链接 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <a> TradeCode 1 </a> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="链接" > 链接 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="name" placeholder="请输入链接" type="text" value="TradeCode 1" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 路径 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="status" title="标签" > 标签 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span class="ant-tag" > close </span> </div> <div class="ant-space-item" > <span class="ant-tag" > close </span> </div> <div class="ant-space-item" > <input class="ant-input ant-input-sm" style="width: 78px;" type="text" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="status" title="只读标签" > 只读标签 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-tag" > close </span> <span class="ant-tag" > close </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/dependencies.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-m" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="必填" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="state" title="状态" > 状态 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="state_list" autocomplete="off" class="ant-select-selection-search-input" id="state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > normal </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="labels" title="标签" > 标签 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="labels" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="hidden" title="title为hidden时隐藏" > title为hidden时隐藏 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="hidden" type="text" value="" /> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="showTime" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="showTime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/dependency.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <h1> 普通json表单 </h1> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="type" title="优惠方式" > 优惠方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" /> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="type_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="type_list" autocomplete="off" class="ant-select-selection-search-input" id="type" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> <h1> 嵌套json表单 </h1> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="type" title="优惠方式" > 优惠方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="type_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="type_list" autocomplete="off" class="ant-select-selection-search-input" id="type" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="按金额" > 按金额 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="money" title="优惠金额" > 优惠金额 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-m" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" id="money" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/dynamic-rerender.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-m" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="必填" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="state" title="状态" > 状态 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="state_list" autocomplete="off" class="ant-select-selection-search-input" id="state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > normal </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="labels" title="标签" > 标签 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="labels" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="hidden" title="title为hidden时隐藏" > title为hidden时隐藏 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="hidden" type="text" value="" /> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="showTime" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="showTime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/embed.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <h1> ProForm </h1> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="username" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="select-multiple" title="多选" > 多选 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="select-multiple_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="select-multiple_list" autocomplete="off" class="ant-select-selection-search-input" id="select-multiple" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Please select favorite colors </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <h1> 表单1 </h1> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="state" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="state_list" autocomplete="off" class="ant-select-selection-search-input" id="state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <h1> 表单2 </h1> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="showTime" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="showTime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="groupState" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="groupState_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="groupState_list" autocomplete="off" class="ant-select-selection-search-input" id="groupState" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="groupTitle" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="groupTitle" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/form-list-required.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-m" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="必填" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" title="必填但没显示*" > 必填但没显示* </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="state" title="状态" > 状态 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="state_list" autocomplete="off" class="ant-select-selection-search-input" id="state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > normal </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="labels" title="标签" > 标签 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="labels" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="hidden" title="title为hidden时隐藏" > title为hidden时隐藏 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="hidden" type="text" value="" /> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="showTime" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="showTime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/schema.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-space ant-space-vertical ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%;" > <div class="ant-space-item" > <div class="ant-alert ant-alert-warning ant-alert-no-icon" data-show="true" role="alert" style="margin-block-end: 24px;" > <div class="ant-alert-content" > <div class="ant-alert-message" > QueryFilter 和 lightFilter 暂不支持grid模式 </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="布局方式" > 布局方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Form" > Form </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" steps="[object Object]" trigger="[object Object]" > <input style="display: none;" type="text" /> <div class="ant-row" style="margin-left: -8px; margin-right: -8px; row-gap: 16px;" > <div class="ant-col ant-col-xs-24 ant-col-md-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="标题:默认值" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="state" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="state_list" autocomplete="off" class="ant-select-selection-search-input" id="state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-12 ant-col-md-4" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="labels" title="标签" > 标签 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="labels" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-12 ant-col-md-20" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="Switch" title="开关" > 开关 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch pro-field" id="Switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="showTime" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="showTime" placeholder="开始日期" readonly="" size="12" value="2016-11-22" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="结束日期" readonly="" size="12" value="2016-11-22" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="updateName" title="更新时间" > 更新时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="updateName" placeholder="开始日期" readonly="" size="12" value="2016-11-22" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="结束日期" readonly="" size="12" value="2016-11-22" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 分组 </div> <div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="groupState" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="groupState_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="groupState_list" autocomplete="off" class="ant-select-selection-search-input" id="groupState" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="groupTitle" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="groupTitle" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-sm-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="列表" > 列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" style="width: 100%;" > <div class="ant-col ant-col-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-form-group" > <div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-24 ant-col-sm-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="list_0_state" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="list_0_state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="list_0_state_list" autocomplete="off" class="ant-select-selection-search-input" id="list_0_state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="全部" > 全部 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-sm-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="list_0_title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="list_0_title" placeholder="请输入" type="text" value="标题" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-md" > <div class="ant-picker-input" > <input autocomplete="off" id="list_0_currentTime" placeholder="请选择" readonly="" size="21" title="2016-11-22 15:22:44" value="2016-11-22 15:22:44" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-sm-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="formSet" title="FormSet" > FormSet </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-row" style="margin-left: -8px; margin-right: -8px; row-gap: 0;" > <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="groupState" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="groupState_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="groupState_list" autocomplete="off" class="ant-select-selection-search-input" id="groupState" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-12" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="groupTitle" title="标题" > 标题 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-xs" > <input class="ant-input" id="groupTitle" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-24" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="created_at" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="created_at" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/steps-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 960px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第一步 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第二步 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第三步 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="0" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="0_title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="0_title" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="0_state" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="0_state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="0_state_list" autocomplete="off" class="ant-select-selection-search-input" id="0_state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="1" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="1_labels" title="标签" > 标签 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-m" > <input class="ant-input" id="1_labels" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="1_showTime" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="1_showTime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="1_groupState" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="1_groupState_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="1_groupState_list" autocomplete="off" class="ant-select-selection-search-input" id="1_groupState" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="1_groupTitle" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="1_groupTitle" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="2" > <input style="display: none;" type="text" /> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="列表" > 列表 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="2_list_0_state" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="2_list_0_state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="2_list_0_state_list" autocomplete="off" class="ant-select-selection-search-input" id="2_list_0_state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="全部" > 全部 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="2_list_0_title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="2_list_0_title" placeholder="请输入" type="text" value="标题" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="2_formSet" title="FormSet" > FormSet </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-start ant-space-gap-row-small ant-space-gap-col-small" style="flex-wrap: wrap;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="2_groupState" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="2_groupState_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="2_groupState_list" autocomplete="off" class="ant-select-selection-search-input" id="2_groupState" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="2_groupTitle" title="标题" > 标题 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-m" > <input class="ant-input" id="2_groupTitle" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="2_created_at" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="2_created_at" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/SchemaForm/demos/valueType.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="valueType 选择" > valueType 选择 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-search" style="width: 200px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="文本框" > 文本框 </span> </div> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 分组 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="text" title="编辑器" > 编辑器 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-m ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" > 123456 </span> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="text_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="text_list" autocomplete="off" class="ant-select-selection-search-input" id="text" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="123456" > 123456 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="text" title="只读" > 只读 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 123456 </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/StepsForm/demos/add-or-edit-step-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 640px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 工作信息 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 同步表单信息 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="step1" > <input style="display: none;" type="text" /> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step1_jobInfo_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused ant-input-affix-wrapper-status-success" > <input class="ant-input" id="step1_jobInfo_name" placeholder="请输入" type="text" value="normal job" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step1_jobInfo_type" title="工作类型" > 工作类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-select-status-success ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="step1_jobInfo_type_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="step1_jobInfo_type_list" autocomplete="off" class="ant-select-selection-search-input" id="step1_jobInfo_type" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="国企" > 国企 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="step2" > <input style="display: none;" type="text" /> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step2_syncTableInfo_timeRange" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range ant-picker-status-success" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="step2_syncTableInfo_timeRange" placeholder="请选择" size="12" value="2016-11-22" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="2016-11-22" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step2_syncTableInfo_title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-status-success" > <input class="ant-input" id="step2_syncTableInfo_title" placeholder="请输入" type="text" value="example table title" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/StepsForm/demos/customize-steps-from.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 960px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 创建实验 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 设置参数 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 发布实验 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="base" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="base_name" title="实验名称" > 实验名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="base_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_date" title="日期" > 日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="base_date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_dateTime" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="base_dateTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_remark" title="备注" > 备注 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input pro-field pro-field-lg" id="base_remark" placeholder="请输入备注" rows="3" /> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="checkbox" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group pro-field pro-field-lg ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="结构迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 结构迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 全量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 增量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 全量校验 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_dbname" title="业务 DB 用户名" > 业务 DB 用户名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="checkbox_dbname" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_datetime" title="记录保存时间" > 记录保存时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-sm" > <div class="ant-picker-input" > <input autocomplete="off" id="checkbox_datetime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="完整 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 完整 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="不同步 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 不同步 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="受限制 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 受限制 LOB </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="time" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_checkbox" title="部署单元" > 部署单元 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="time_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元1" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元1 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元2" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元2 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元3" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元3 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_remark" title="部署分组策略" > 部署分组策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略一" > 策略一 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="time_remark2" title="Pod 调度策略" > Pod 调度策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark2_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略二" > 策略二 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 去第二步 &gt; </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/StepsForm/demos/modal-step-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 分步表单新建 </span> </button> <div class="ant-pro-steps-form" /> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/StepsForm/demos/multi-card-step-form.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 960px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第一步骤 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第二步骤 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第三步骤 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="base" > <input style="display: none;" type="text" /> <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 16px; min-width: 800px; max-width: 100%;" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" style="transform: rotate(90deg);" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 源和目标 </div> </div> <div class="ant-pro-card-body" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="base_name" title="迁移任务名称" > 迁移任务名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="base_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div class="ant-pro-form-group-title" > 节点 </div> <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 8px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-sm ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="base_source_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="base_source_list" autocomplete="off" class="ant-select-selection-search-input" id="base_source" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 选择来源节点 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-sm ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="base_target_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="base_target_list" autocomplete="off" class="ant-select-selection-search-input" id="base_target" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 选择目标节点 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-card ant-pro-card-border" style="min-width: 800px; margin-block-end: 16px;" > <div class="ant-pro-card-header ant-pro-card-header-border ant-pro-card-header-collapsible" > <div class="ant-pro-card-title" > <span aria-label="right" class="anticon anticon-right ant-pro-card-collapsible-icon" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" style="transform: rotate(90deg);" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> 顶部对齐 </div> </div> <div class="ant-pro-card-body" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_xs" title="XS号表单" > XS号表单 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-xs" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="9999" autocomplete="off" class="ant-input-number-input" id="base_xs" placeholder="请输入名称" role="spinbutton" step="1" value="9999" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_s" title="S号表单" > S号表单 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="base_s" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_m" title="M 号表单" > M 号表单 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="base_m" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_l" title="L 号表单" > L 号表单 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-lg ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="吴家豪" > <span class="ant-select-selection-item-content" > 吴家豪 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item" style="opacity: 1;" > <span class="ant-select-selection-item" title="周星星" > <span class="ant-select-selection-item-content" > 周星星 </span> <span aria-hidden="true" class="ant-select-selection-item-remove" style="user-select: none;" unselectable="on" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </span> </span> </div> <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="base_l_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="base_l_list" autocomplete="off" class="ant-select-selection-search-input" id="base_l" role="combobox" type="search" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="checkbox" > <input style="display: none;" type="text" /> <div class="ant-pro-card" style="min-width: 800px; margin-block-end: 16px; max-width: 100%;" > <div class="ant-pro-card-body" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group pro-field pro-field-lg ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="结构迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 结构迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 全量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 增量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 全量校验 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_dbname" title="业务 DB 用户名" > 业务 DB 用户名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="checkbox_dbname" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_datetime" title="记录保存时间" > 记录保存时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-sm" > <div class="ant-picker-input" > <input autocomplete="off" id="checkbox_datetime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="完整 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 完整 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="不同步 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 不同步 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="受限制 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 受限制 LOB </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="time" > <input style="display: none;" type="text" /> <div class="ant-pro-card" style="margin-block-end: 16px; min-width: 800px; max-width: 100%;" > <div class="ant-pro-card-body" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_checkbox" title="部署单元" > 部署单元 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="time_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元1" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元1 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元2" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元2 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元3" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元3 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_remark" title="部署分组策略" > 部署分组策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略一" > 策略一 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="time_remark2" title="Pod 调度策略" > Pod 调度策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark2_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略二" > 策略二 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/StepsForm/demos/steps-form-vertical.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-pro-steps-form" > <div class="ant-row ant-row-stretch" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-12 ant-col-sm-10 ant-col-md-8 ant-col-lg-7 ant-col-xl-6 ant-col-xxl-4" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="height: 100%;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 创建实验 </div> <div class="ant-steps-item-description" > 这里填入的都是基本信息 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 设置参数 </div> <div class="ant-steps-item-description" > 这里填入运维参数 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 第三步 </div> <div class="ant-steps-item-description" > 这里填入运维参数 </div> </div> </div> </div> </div> </div> </div> <div class="ant-col" style="padding-left: 4px; padding-right: 4px;" > <div style="display: flex; align-items: center; width: 100%; height: 100%;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="base" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="base_name" title="实验名称" > 实验名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="base_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_date" title="日期" > 日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="base_date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_dateTime" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="base_dateTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_remark" title="备注" > 备注 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input pro-field pro-field-lg" id="base_remark" placeholder="请输入备注" rows="3" /> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="checkbox" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group pro-field pro-field-lg ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="结构迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 结构迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 全量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 增量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 全量校验 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 增量校验 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量替换" /> <span class="ant-checkbox-inner" /> </span> <span> 全量替换 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量替换" /> <span class="ant-checkbox-inner" /> </span> <span> 增量替换 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_dbname" title="业务 DB 用户名" > 业务 DB 用户名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="checkbox_dbname" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_datetime" title="记录保存时间" > 记录保存时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-sm" > <div class="ant-picker-input" > <input autocomplete="off" id="checkbox_datetime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="完整 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 完整 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="不同步 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 不同步 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="受限制 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 受限制 LOB </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="step3" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step3_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group pro-field pro-field-lg ant-pro-field-checkbox-horizontal" id="step3_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="结构迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 结构迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 全量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 全量校验 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量替换" /> <span class="ant-checkbox-inner" /> </span> <span> 增量替换 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step3_dbname" title="业务 DB 用户名" > 业务 DB 用户名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="step3_dbname" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step3_datetime" title="记录保存时间" > 记录保存时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-sm" > <div class="ant-picker-input" > <input autocomplete="off" id="step3_datetime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="step3_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="step3_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="完整 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 完整 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="不同步 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 不同步 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="受限制 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 受限制 LOB </span> </label> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/components/StepsForm/demos/steps-from.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 960px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 创建实验 </div> <div class="ant-steps-item-description" > 这里填入的都是基本信息 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 设置参数 </div> <div class="ant-steps-item-description" > 这里填入运维参数 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 发布实验 </div> <div class="ant-steps-item-description" > 这里填入发布判断 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="base" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="base_name" title="实验名称" > 实验名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="base_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_date" title="日期" > 日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="base_date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_dateTime" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="base_dateTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_remark" title="备注" > 备注 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input pro-field pro-field-lg" id="base_remark" placeholder="请输入备注" rows="3" /> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="checkbox" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group pro-field pro-field-lg ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="结构迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 结构迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 全量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 增量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 全量校验 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_dbname" title="业务 DB 用户名" > 业务 DB 用户名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="checkbox_dbname" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_datetime" title="记录保存时间" > 记录保存时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-sm" > <div class="ant-picker-input" > <input autocomplete="off" id="checkbox_datetime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="完整 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 完整 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="不同步 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 不同步 LOB </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="受限制 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 受限制 LOB </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="time" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_checkbox" title="部署单元" > 部署单元 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="time_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元1" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元1 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元2" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元2 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元3" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元3 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_remark" title="部署分组策略" > 部署分组策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略一" > 策略一 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="time_remark2" title="Pod 调度策略" > Pod 调度策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark2_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略二" > 策略二 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/base.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div style="display: flex; align-items: center; flex-wrap: wrap;" > <div style="margin-inline-end: 8px;" > <a> 客户名称应该怎么获得? </a> </div> <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="蚂蚁设计有限公司" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> <div style="margin-inline-start: 8px;" > <a> 点击查看更多 </a> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="count" title="人数" > 人数 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-lg" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" autocomplete="off" class="ant-input-number-input" id="count" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_name" title="合同名称" > 合同名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="contract_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_createTime" title="合同生效时间" > 合同生效时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="contract_createTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 盖章后生效 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="unusedMode" title="合同约定失效方式" > 合同约定失效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-multiple ant-select-allow-clear ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="unusedMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="unusedMode_list" autocomplete="off" class="ant-select-selection-search-input" id="unusedMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="money" title="合同约定金额" > 合同约定金额 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-md" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" id="money" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="id" title="主合同编号" > 主合同编号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="id" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="project" title="项目名称" > 项目名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-md" > <input class="ant-input ant-input-disabled" disabled="" id="project" placeholder="请输入" type="text" value="xxxx项目" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="address" title="详细的工作地址或家庭住址" > 详细的工作地址或家庭住址 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input" id="address" placeholder="请输入" rows="3" /> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="mangerName" title="商务经理" > 商务经理 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-xs" > <input class="ant-input ant-input-disabled" disabled="" id="mangerName" placeholder="请输入" type="text" value="启途" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="areaList" title="区域" > 区域 </label> </div> <div class="ant-col ant-form-item-control" > <div style="display: flex; align-items: center; flex-wrap: wrap;" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-cascader ant-select-in-form-item pro-field pro-field-md ant-pro-field-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="areaList_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="areaList_list" autocomplete="off" class="ant-select-selection-search-input" id="areaList" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="浙江 / 杭州 / 西湖" > 浙江 / 杭州 / 西湖 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> <div style="margin-inline-start: 8px;" > qixian </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="树形下拉选择器" > 树形下拉选择器 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-select ant-tree-select ant-select-in-form-item ant-pro-field-tree-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 60px; width: 600px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Please select </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/base-test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div style="display: flex; align-items: center; flex-wrap: wrap;" > <div style="margin-inline-end: 8px;" > <a> 客户名称应该怎么获得? </a> </div> <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> <div style="margin-inline-start: 8px;" > <a> 点击查看更多 </a> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="count" title="人数" > 人数 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-lg" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" autocomplete="off" class="ant-input-number-input" id="count" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_name" title="合同名称" > 合同名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="contract_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_createTime" title="合同生效时间" > 合同生效时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="contract_createTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > - </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="unusedMode" title="合同约定失效方式" > 合同约定失效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-multiple ant-select-allow-clear ant-select-show-search" style="min-width: 100px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="unusedMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="unusedMode_list" autocomplete="off" class="ant-select-selection-search-input" id="unusedMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="money" title="合同约定金额" > 合同约定金额 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-md" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" id="money" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="id" title="主合同编号" > 主合同编号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="id" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="project" title="项目名称" > 项目名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-md" > <input class="ant-input ant-input-disabled" disabled="" id="project" placeholder="请输入" type="text" value="xxxx项目" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="mangerName" title="商务经理" > 商务经理 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-xs" > <input class="ant-input ant-input-disabled" disabled="" id="mangerName" placeholder="请输入" type="text" value="启途" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="areaList" title="区域" > 区域 </label> </div> <div class="ant-col ant-form-item-control" > <div style="display: flex; align-items: center; flex-wrap: wrap;" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-cascader ant-select-in-form-item pro-field pro-field-md ant-pro-field-cascader ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="areaList_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="areaList_list" autocomplete="off" class="ant-select-selection-search-input" id="areaList" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="浙江 / 杭州 / 西湖" > 浙江 / 杭州 / 西湖 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> <div style="margin-inline-start: 8px;" > qixian </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="树形下拉选择器" > 树形下拉选择器 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-select ant-tree-select ant-select-in-form-item ant-pro-field-tree-select ant-select-multiple ant-select-allow-clear ant-select-show-arrow ant-select-show-search" style="min-width: 60px; width: 600px;" > <div class="ant-select-selector" > <div class="ant-select-selection-overflow" > <div class="ant-select-selection-overflow-item ant-select-selection-overflow-item-suffix" style="opacity: 1;" > <div class="ant-select-selection-search" style="width: 0px;" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> <span aria-hidden="true" class="ant-select-selection-search-mirror" >   </span> </div> </div> </div> <span class="ant-select-selection-placeholder" > Please select </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="datas_0_date" placeholder="请选择" readonly="" size="12" title="2022-10-12" value="2022-10-12" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/components-test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="validate_other" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_upload" title="Upload" > Upload </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" id="validate_other_upload" style="display: none;" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> <span> 点击上传 </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-picture" /> </span> </div> </div> <div class="ant-form-item-extra" id="validate_other_upload_extra" > longgggggggggggggggggggggggggggggggggg </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" id="validate_other_test" type="radio" /> <span class="ant-radio-inner" /> </span> </label> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" id="validate_other_test2" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="是否打开" > 是否打开 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch pro-field" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dragger" title="Dragger" > Dragger </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-drag" > <span class="ant-upload ant-upload-btn" role="button" tabindex="0" > <input accept="" id="validate_other_dragger" style="display: none;" type="file" /> <div class="ant-upload-drag-container" > <p class="ant-upload-drag-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </p> <p class="ant-upload-text" > 拖动上传 </p> <p class="ant-upload-hint" > 支持 text </p> </div> </span> </div> <div class="ant-upload-list ant-upload-list-text" /> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_range" title="范围" > 范围 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-slider ant-slider-horizontal" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 5%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="5" class="ant-slider-handle" role="slider" style="left: 5%; transform: translateX(-50%);" tabindex="0" /> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > test </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" type="text" value="" /> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button class="ant-btn ant-btn-default" type="button" > <span> 查看记录数 </span> </button> <span> 共有200条 </span> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/config-provider.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 320px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 新建 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="0" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="0_name" placeholder="Please enter" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> Finish </span> </button> </div> </div> </div> </div> </div> </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="validate_other" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_upload" title="Upload" > Upload </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" id="validate_other_upload" style="display: none;" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> <span> 点击上传 </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-picture" /> </span> </div> </div> <div class="ant-form-item-extra" id="validate_other_upload_extra" > longgggggggggggggggggggggggggggggggggg </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" id="validate_other_test" type="radio" /> <span class="ant-radio-inner" /> </span> </label> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" id="validate_other_test2" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="是否打开" > 是否打开 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch pro-field" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_dragger" title="Dragger" > Dragger </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-drag" > <span class="ant-upload ant-upload-btn" role="button" tabindex="0" > <input accept="" id="validate_other_dragger" style="display: none;" type="file" /> <div class="ant-upload-drag-container" > <p class="ant-upload-drag-icon" > <span aria-label="smile" class="anticon anticon-smile" role="img" > <svg aria-hidden="true" data-icon="smile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z" /> </svg> </span> </p> <p class="ant-upload-text" > 拖动上传 </p> <p class="ant-upload-hint" > 支持 text </p> </div> </span> </div> <div class="ant-upload-list ant-upload-list-text" /> </span> </div> </div> </div> </div> </div> <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="validate_other_range" title="范围" > 范围 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-slider ant-slider-horizontal" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 5%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="5" class="ant-slider-handle" role="slider" style="left: 5%; transform: translateX(-50%);" tabindex="0" /> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > test </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" type="text" value="" /> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> Submit </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Reset </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/dependency.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="蚂蚁设计有限公司" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name2_text" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="name2_text" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="与《蚂蚁设计有限公司》 与 《》合同约定生效方式" > 与《蚂蚁设计有限公司》 与 《》合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="盖章后生效" > 盖章后生效 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="与《蚂蚁设计有限公司》合同约定生效方式" > 与《蚂蚁设计有限公司》合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="盖章后生效" > 盖章后生效 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/form-layout.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-4 ant-form-item-label" > <label class="" title="标签布局" > 标签布局 </label> </div> <div class="ant-col ant-col-14 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="horizontal" /> <span class="ant-radio-button-inner" /> </span> <span> horizontal </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="vertical" /> <span class="ant-radio-button-inner" /> </span> <span> vertical </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="inline" /> <span class="ant-radio-button-inner" /> </span> <span> inline </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-4 ant-form-item-label" > <label class="" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-col-14 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="蚂蚁设计有限公司" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-4 ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-col-14 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-4 ant-form-item-label" > <label class="" for="contract_name" title="合同名称" > 合同名称 </label> </div> <div class="ant-col ant-col-14 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="contract_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-row" > <div class="ant-col ant-col-14 ant-col-offset-4" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/form-layout-grid.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row" style="margin-left: -8px; margin-right: -8px; row-gap: 0;" > <div class="ant-col ant-col-20" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="标签布局" > 标签布局 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="horizontal" /> <span class="ant-radio-button-inner" /> </span> <span> horizontal </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="vertical" /> <span class="ant-radio-button-inner" /> </span> <span> vertical </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="inline" /> <span class="ant-radio-button-inner" /> </span> <span> inline </span> </label> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-4" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="grid" title="grid开关" > grid开关 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="true" class="ant-switch ant-switch-checked" id="grid" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="标题" > 标题 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="蚂蚁设计有限公司" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12 ant-col-xl-8" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="company" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12 ant-col-xl-8" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="phone" title="电话" > 电话 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" autocomplete="off" class="ant-input-number-input" id="phone" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12 ant-col-xl-8" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="email" title="邮箱" > 邮箱 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="email" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-24" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="address" title="详细的工作地址或家庭住址" > 详细的工作地址或家庭住址 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input" id="address" placeholder="请输入" rows="3" /> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12 ant-col-xl-8" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="date" title="入职日期" > 入职日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12 ant-col-xl-8" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dateRange" title="工作周期" > 工作周期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="dateRange" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24 ant-col-md-12 ant-col-xl-8" style="padding-left: 8px; padding-right: 8px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="level" title="职位" > 职位 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="level_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="level_list" autocomplete="off" class="ant-select-selection-search-input" id="level" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" > <div class="ant-col ant-col-14 ant-col-offset-4" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/formRef.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" title="新建表单" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="date" placeholder="请选择" readonly="" size="12" title="2021-08-09" value="2021-08-09" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 一键填写 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 读取公司 </span> </button> <div class="ant-btn-group" style="display: block;" > <button class="ant-btn ant-btn-default" type="button" > <span> 获取格式化后的所有数据 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 校验表单并返回格式化后的所有数据 </span> </button> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/label-col.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" id="basic" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-8 ant-form-item-label" > <label class="" for="basic_name" title="Name" > Name </label> </div> <div class="ant-col ant-col-16 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="basic_name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-8 ant-form-item-label" > <label class="ant-form-item-required" for="basic_password" title="Password" > Password </label> </div> <div class="ant-col ant-col-16 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-password" > <input class="ant-input" id="basic_password" placeholder="请输入" type="password" /> <span class="ant-input-suffix" > <span aria-label="eye-invisible" class="anticon anticon-eye-invisible ant-input-password-icon" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="eye-invisible" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" /> <path d="M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-16 ant-col-offset-8 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-checked ant-checkbox-wrapper-in-form-item" > <span class="ant-checkbox ant-wave-target ant-checkbox-checked" > <input checked="" class="ant-checkbox-input" id="basic_remember" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> <span> Remember me </span> </label> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-16 ant-col-offset-8 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" id="basic_remember" type="radio" /> <span class="ant-radio-inner" /> </span> <span> Remember me </span> </label> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-col-16 ant-col-offset-8 ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button class="ant-btn ant-btn-primary" type="submit" > <span> Submit </span> </button> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/labelInValue.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-sm ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" /> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/layout-change.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="LightFilter" /> <span class="ant-radio-button-inner" /> </span> <span> LightFilter </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button ant-radio-button-checked" > <input checked="" class="ant-radio-button-input" type="radio" value="ProForm" /> <span class="ant-radio-button-inner" /> </span> <span> ProForm </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="ModalForm" /> <span class="ant-radio-button-inner" /> </span> <span> ModalForm </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="DrawerForm" /> <span class="ant-radio-button-inner" /> </span> <span> DrawerForm </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="QueryFilter" /> <span class="ant-radio-button-inner" /> </span> <span> QueryFilter </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="StepsForm" /> <span class="ant-radio-button-inner" /> </span> <span> StepsForm </span> </label> <label class="ant-radio-button-wrapper ant-radio-button-wrapper-in-form-item" > <span class="ant-radio-button" > <input class="ant-radio-button-input" type="radio" value="LoginForm" /> <span class="ant-radio-button-inner" /> </span> <span> LoginForm </span> </label> </div> </div> </div> </div> </div> </div> <div style="margin: 24px;" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" trigger="[object Object]" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="蚂蚁设计有限公司" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_name" title="合同名称" > 合同名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="contract_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_createTime" title="合同生效时间" > 合同生效时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="contract_createTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > 盖章后生效 </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="unusedMode" title="合同约定失效效方式" > 合同约定失效效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="unusedMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="unusedMode_list" autocomplete="off" class="ant-select-selection-search-input" id="unusedMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="id" title="主合同编号" > 主合同编号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="id" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="project" title="项目名称" > 项目名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-md" > <input class="ant-input ant-input-disabled" disabled="" id="project" placeholder="请输入" type="text" value="xxxx项目" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="mangerName" title="商务经理" > 商务经理 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-xs" > <input class="ant-input ant-input-disabled" disabled="" id="mangerName" placeholder="请输入" type="text" value="启途" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/layout-footer.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 一级名称 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 二级名称 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="输入表单" > 输入表单 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_name" title="合同名称" > 合同名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="contract_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="contract_createTime" title="合同生效时间" > 合同生效时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="contract_createTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="chapter" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="chapter_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="chapter_list" autocomplete="off" class="ant-select-selection-search-input" id="chapter" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="unusedMode" title="合同约定失效效方式" > 合同约定失效效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="unusedMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="unusedMode_list" autocomplete="off" class="ant-select-selection-search-input" id="unusedMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="id" title="主合同编号" > 主合同编号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="id" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="project" title="项目名称" > 项目名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled" > <input class="ant-input ant-input-disabled" disabled="" id="project" placeholder="请输入" type="text" value="xxxx项目" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="mangerName" title="商务经理" > 商务经理 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-disabled pro-field pro-field-xs" > <input class="ant-input ant-input-disabled" disabled="" id="mangerName" placeholder="请输入" type="text" value="启途" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="金额类型" > 金额类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="确认金额" > 确认金额 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="taxRate" title="税率" > 税率 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-xs ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="taxRate_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="taxRate_list" autocomplete="off" class="ant-select-selection-search-input" id="taxRate" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="6%" > 6% </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="invoiceType" title="发票类型" > 发票类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" id="invoiceType" > <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="发票" /> <span class="ant-radio-inner" /> </span> <span> 发票 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="普票" /> <span class="ant-radio-inner" /> </span> <span> 普票 </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="无票" /> <span class="ant-radio-inner" /> </span> <span> 无票 </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="file" title="倒签报备附件" > 倒签报备附件 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-upload-wrapper" > <div class="ant-upload ant-upload-select" > <span class="ant-upload" role="button" tabindex="0" > <input accept="" id="file" style="display: none;" type="file" /> <button class="ant-btn ant-btn-default" type="button" > <span aria-label="upload" class="anticon anticon-upload" role="img" > <svg aria-hidden="true" data-icon="upload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" /> </svg> </span> <span> 上传文件 </span> </button> </span> </div> <div class="ant-upload-list ant-upload-list-picture" /> </span> </div> </div> <div class="ant-form-item-extra" id="file_extra" > 支持扩展名:.jpg .zip .doc .wps </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="num" title="合同份数" > 合同份数 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-xs" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="5" autocomplete="off" class="ant-input-number-input" id="num" placeholder="请输入" role="spinbutton" step="1" value="5" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="remark" title="合同备注说明" > 合同备注说明 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input pro-field pro-field-xl" id="remark" placeholder="请输入" rows="3" /> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </form> </div> </div> </div> </div> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/linkage-customization.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-pro-steps-form" > <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-steps-container" style="max-width: 960px;" > <div class="ant-steps ant-steps-vertical" > <div class="ant-steps-item ant-steps-item-process ant-steps-item-active" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 1 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 创建实验 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 2 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 设置参数 </div> </div> </div> </div> <div class="ant-steps-item ant-steps-item-wait" > <div class="ant-steps-item-container" > <div class="ant-steps-item-tail" /> <div class="ant-steps-item-icon" > <span class="ant-steps-icon" > 3 </span> </div> <div class="ant-steps-item-content" > <div class="ant-steps-item-title" > 发布实验 </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-steps-form-container" > <div class="ant-pro-steps-form-step ant-pro-steps-form-step-active" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="base" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="base_name" title="实验名称" > 实验名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="base_name" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_date" title="日期" > 日期 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="base_date" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_dateTime" title="时间区间" > 时间区间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="base_dateTime" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="base_remark" title="备注" > 备注 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <textarea class="ant-input pro-field pro-field-lg" id="base_remark" placeholder="请输入备注" rows="3" /> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="checkbox" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group pro-field pro-field-lg ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="结构迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 结构迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 全量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="增量迁移" /> <span class="ant-checkbox-inner" /> </span> <span> 增量迁移 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="全量校验" /> <span class="ant-checkbox-inner" /> </span> <span> 全量校验 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_dbName" title="业务 DB 用户名" > 业务 DB 用户名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="checkbox_dbName" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_datetime" title="记录保存时间" > 记录保存时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-sm" > <div class="ant-picker-input" > <input autocomplete="off" id="checkbox_datetime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="checkbox_checkbox" title="迁移类型" > 迁移类型 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="checkbox_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="完整 LOB" /> <span class="ant-checkbox-inner" /> </span> <span> 完整 LOB </span> </label> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-steps-form-step" > <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" id="time" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_checkbox" title="部署单元" > 部署单元 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-checkbox-group ant-pro-field-checkbox-horizontal" id="time_checkbox" > <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元1" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元1 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元2" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元2 </span> </label> <label class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item ant-checkbox-group-item" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" value="部署单元3" /> <span class="ant-checkbox-inner" /> </span> <span> 部署单元3 </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-required" for="time_remark" title="部署分组策略" > 部署分组策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略一" > 策略一 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="time_remark2" title="Pod 调度策略" > Pod 调度策略 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-md ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="time_remark2_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="time_remark2_list" autocomplete="off" class="ant-select-selection-search-input" id="time_remark2" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="策略二" > 策略二 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 下一步 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/modalform-test.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div> <div> 在form外边可以 <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建表单 </span> </button> </div> <div> 在form里面可以 <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建表单 </span> </button> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="规格" > 规格 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 规格1 </div> </div> <div class="ant-pro-card-body" style="padding-block-end: 0;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="attributes_0_name" title="规格名" > 规格名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="attributes_0_name" placeholder="请输入" type="text" value="颜色" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" style="margin-block-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="规格值" > 规格值 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div style="display: inline-flex; margin-inline-end: 25px;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input pro-field pro-field-xs" id="attributes_0_items_0_name" placeholder="请输入" type="text" value="红" /> </div> </div> </div> </div> </div> <div> 在内层formlist拿不到 <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建表单 </span> </button> </div> </div> </div> <button class="ant-btn ant-btn-link ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span> 新建 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div> 在外层formlist拿不到 <button class="ant-btn ant-btn-primary" type="button" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> <span> 新建表单 </span> </button> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加规格项 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </div> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/money.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount0" title="不显示符号" > 不显示符号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-lg ant-input-number-focused" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="22.22" autocomplete="off" class="ant-input-number-input" id="amount0" placeholder="Please enter" role="spinbutton" step="1" value="22.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount1" title="宽度" > 宽度 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item pro-field pro-field-lg" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="22.22" autocomplete="off" class="ant-input-number-input" id="amount1" placeholder="Please enter" role="spinbutton" step="1" value="$ 22.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount2" title="限制金额最小为0" > 限制金额最小为0 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" aria-valuenow="22.22" autocomplete="off" class="ant-input-number-input" id="amount2" placeholder="Please enter" role="spinbutton" step="1" value="$ 22.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount3" title="不限制金额大小" > 不限制金额大小 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="22.22" autocomplete="off" class="ant-input-number-input" id="amount3" placeholder="Please enter" role="spinbutton" step="1" value="£ 22.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount4" title="货币符号跟随全局国际化" > 货币符号跟随全局国际化 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="22.22" autocomplete="off" class="ant-input-number-input" id="amount4" placeholder="请输入" role="spinbutton" step="1" value="¥ 22.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount5" title="自定义货币符号" > 自定义货币符号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="22.22" autocomplete="off" class="ant-input-number-input" id="amount5" placeholder="请输入" role="spinbutton" step="1" value="💰 22.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount6" title="小数点精度" > 小数点精度 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="2222222222.222222" autocomplete="off" class="ant-input-number-input" id="amount6" placeholder="请输入" role="spinbutton" step="1" value="💰 2,222,222,222.22" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="amount6" title="小数点精度-0" > 小数点精度-0 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="2222222222.222222" autocomplete="off" class="ant-input-number-input" id="amount6" placeholder="请输入" role="spinbutton" step="1" value="💰 2,222,222,222" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/params-formref.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="money" title="money" > money </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input autocomplete="off" class="ant-input-number-input" id="money" placeholder="请输入" role="spinbutton" step="1" value="" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/pro-form-dependency.debug.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 1111 </div> <div class="ant-pro-card-extra" > <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_name" title="姓名" > 姓名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="users_0_name" placeholder="请输入" type="text" value="1111" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="用户信息" > 用户信息 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-form-list-item ant-pro-form-list-item-default " style="display: flex; align-items: flex-end;" > <div class="ant-pro-form-list-container" > <div class="ant-pro-form-group" > <div> <div class="ant-space ant-space-horizontal ant-space-align-start ant-pro-form-group-container " style="column-gap: 32px; row-gap: 0;" > <div class="ant-space-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="users_0_labels_0_is_show" title="显示名称" > 显示名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch" id="users_0_labels_0_is_show" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="copy" class="anticon anticon-copy ant-pro-form-list-action-icon action-copy" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </div> <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/pro-form-editableTable.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-pro-form-group" > <div> <div class="ant-row" style="margin-left: -4px; margin-right: -4px;" > <div class="ant-col ant-col-xs-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="签约客户名称" > 签约客户名称 <span aria-label="question-circle" class="anticon anticon-question-circle ant-form-item-tooltip" role="img" title="" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入名称" type="text" value="蚂蚁设计有限公司" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="company" title="我方公司名称" > 我方公司名称 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="company" placeholder="请输入名称" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-xs-24" style="padding-left: 4px; padding-right: 4px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="id" title="主合同编号" > 主合同编号 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-sm" > <input class="ant-input" id="id" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="dataSource" title="数组数据" > 数组数据 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-table" > <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-middle ant-table-layout-fixed" id="dataSource" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: fixed;" > <colgroup> <col style="width: 30%;" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > 活动名称 </th> <th class="ant-table-cell" scope="col" > 状态 </th> <th class="ant-table-cell" scope="col" > 描述 </th> <th class="ant-table-cell" scope="col" > 操作 </th> </tr> <tr style="position: relative;" > <td colspan="0" style="visibility: hidden;" > <button class="ant-btn ant-btn-dashed" style="display: block; margin: 10px 0px; width: 100%;" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </td> <td colspan="4" style="position: absolute; left: 0px; width: 100%;" > <button class="ant-btn ant-btn-dashed" style="display: block; margin: 10px 0px; width: 100%;" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加一行数据 </span> </button> </td> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="624748504" > <td class="ant-table-cell" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="活动名称一" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </td> <td class="ant-table-cell" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="624748504_state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="624748504_state_list" autocomplete="off" class="ant-select-selection-search-input" id="624748504_state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="未解决" > 未解决 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </td> <td class="ant-table-cell" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="624748504_decs" type="text" value="这个活动真好玩" /> </div> </div> </div> </div> </div> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; gap: 12px; justify-content: flex-start;" > <a> 删除 </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="624691229" > <td class="ant-table-cell" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" placeholder="请输入" type="text" value="活动名称二" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </td> <td class="ant-table-cell" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="624691229_state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="624691229_state_list" autocomplete="off" class="ant-select-selection-search-input" id="624691229_state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="已解决" > 已解决 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </td> <td class="ant-table-cell" > <div class="ant-form-item" style="margin-block-start: -5px; margin-block-end: -5px; margin-inline-start: 0; margin-inline-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input" id="624691229_decs" type="text" value="这个活动真好玩" /> </div> </div> </div> </div> </div> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; gap: 12px; justify-content: flex-start;" > <a> 删除 </a> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`form demos > 📸 renders ./packages/form/src/demos/sync-to-url.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="useMode" title="合同约定生效方式" > 合同约定生效方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select pro-field pro-field-sm ant-select-focused ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <span aria-live="polite" style="width: 0px; height: 0px; position: absolute; overflow: hidden; opacity: 0;" > 盖章后生效 </span> <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="useMode_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="useMode_list" autocomplete="off" class="ant-select-selection-search-input" id="useMode" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="盖章后生效" > 盖章后生效 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="createTimeRanger" title="合同生效时间" > 合同生效时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker ant-picker-range pro-field pro-field-md" > <div class="ant-picker-input ant-picker-input-active" > <input autocomplete="off" id="createTimeRanger" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-range-separator" > <span aria-label="to" class="ant-picker-separator" > <span aria-label="swap-right" class="anticon anticon-swap-right" role="img" > <svg aria-hidden="true" data-icon="swap-right" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z" /> </svg> </span> </span> </div> <div class="ant-picker-input" > <input autocomplete="off" placeholder="请选择" readonly="" size="12" value="" /> </div> <div class="ant-picker-active-bar" style="left: 0px; width: 0px; position: absolute;" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="expirationTime" title="合同失效时间" > 合同失效时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker pro-field pro-field-md" > <div class="ant-picker-input" > <input autocomplete="off" id="expirationTime" placeholder="请选择" readonly="" size="12" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `;
9,149
0
petrpan-code/ant-design/pro-components/tests/form
petrpan-code/ant-design/pro-components/tests/form/__snapshots__/lightFilter.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`LightFilter > 🪕 DateTimePicker 1`] = ` <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-active" style="padding-inline-end: 0;" > <span style="display: inline-flex; align-items: center;" > <span class="ant-pro-core-field-label-text" > 日期时间 : </span> <div class="ant-picker ant-picker-borderless ant-picker-status-success ant-picker-focused" > <div class="ant-picker-input" > <input autocomplete="off" id="datetime" placeholder="请选择日期" size="21" title="2016-11-22 15:22:44" value="2016-11-22 15:22:44" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> <span class="ant-picker-clear" role="button" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </span> </span> `;
9,150
0
petrpan-code/ant-design/pro-components/tests/form
petrpan-code/ant-design/pro-components/tests/form/__snapshots__/proFormMoney.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`💵 ProFormMoney > 💵 ProFormMoney value expect number 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="44.33" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="请输入" role="spinbutton" step="1" value="¥ 44.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `; exports[`💵 ProFormMoney > 💵 can input negative 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item ant-form-item-has-success" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-status-success ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="-55.33" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="请输入" role="spinbutton" step="1" value="¥ -55.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `; exports[`💵 ProFormMoney > 💵 can not input negative 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuemin="0" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="请输入" role="spinbutton" step="1" value="-55.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `; exports[`💵 ProFormMoney > 💵 moneySymbol with custom locale 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="44.33" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="Please enter" role="spinbutton" step="1" value="$ 44.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `; exports[`💵 ProFormMoney > 💵 moneySymbol with custom symbol 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="44.33" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="请输入" role="spinbutton" step="1" value="💰 44.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `; exports[`💵 ProFormMoney > 💵 moneySymbol with global locale 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="44.33" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="Please enter" role="spinbutton" step="1" value="£ 44.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> Submit </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> Reset </span> </button> </div> </form> </div> `; exports[`💵 ProFormMoney > 💵 update money precision when init 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-input-number ant-input-number-in-form-item ant-input-number-focused" style="width: 100%;" > <div class="ant-input-number-handler-wrap" > <span aria-disabled="false" aria-label="Increase Value" class="ant-input-number-handler ant-input-number-handler-up" role="button" unselectable="on" > <span aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner" role="img" > <svg aria-hidden="true" data-icon="up" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" /> </svg> </span> </span> <span aria-disabled="false" aria-label="Decrease Value" class="ant-input-number-handler ant-input-number-handler-down" role="button" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <div class="ant-input-number-input-wrap" > <input aria-valuenow="444444444.3333333" autocomplete="off" class="ant-input-number-input" id="amount" placeholder="请输入" role="spinbutton" step="1" value="💰 444,444,444.33" /> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `;
9,151
0
petrpan-code/ant-design/pro-components/tests/form
petrpan-code/ant-design/pro-components/tests/form/__snapshots__/schemaForm.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`SchemaForm > 😊 SchemaForm support columns 1`] = ` <div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="title" title="标题" > 标题 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused" style="width: 200px;" > <input class="ant-input" id="title" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="state" title="列表状态" > 列表状态 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="state_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="state_list" autocomplete="off" class="ant-select-selection-search-input" id="state" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="全部" > 全部 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> <span aria-hidden="true" class="ant-select-clear" style="user-select: none;" unselectable="on" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="direction" title="排序方式" > 排序方式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="min-width: 100px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="direction_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="direction_list" autocomplete="off" class="ant-select-selection-search-input" id="direction" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="since" title="创建时间" > 创建时间 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-picker" > <div class="ant-picker-input" > <input autocomplete="off" id="since" placeholder="请选择" readonly="" size="21" title="" value="" /> <span class="ant-picker-suffix" > <span aria-label="calendar" class="anticon anticon-calendar" role="img" > <svg aria-hidden="true" data-icon="calendar" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> `;
9,152
0
petrpan-code/ant-design/pro-components/tests/form
petrpan-code/ant-design/pro-components/tests/form/__snapshots__/upload.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`ProFormUpload > 🏐 ProFormUploadButton support disable 1`] = `"<span class=\\"ant-upload ant-upload-disabled\\" role=\\"button\\"><input disabled=\\"\\" type=\\"file\\" style=\\"display: none;\\" accept=\\"\\"><button type=\\"button\\" class=\\"ant-btn ant-btn-default\\" disabled=\\"\\"><span role=\\"img\\" aria-label=\\"upload\\" class=\\"anticon anticon-upload\\"><svg viewBox=\\"64 64 896 896\\" focusable=\\"false\\" data-icon=\\"upload\\" width=\\"1em\\" height=\\"1em\\" fill=\\"currentColor\\" aria-hidden=\\"true\\"><path d=\\"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z\\"></path></svg></span><span>单击上传</span></button></span>"`;
9,153
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/PageHeader.test.tsx
import { PageHeader } from '@ant-design/pro-components'; import { act, cleanup, fireEvent, render } from '@testing-library/react'; import { Breadcrumb, ConfigProvider } from 'antd'; import { _rs as onEsResize } from 'rc-resize-observer/es/utils/observerUtil'; import { _rs as onLibResize } from 'rc-resize-observer/lib/utils/observerUtil'; export const triggerResize = (target: Element) => { const originGetBoundingClientRect = target.getBoundingClientRect; target.getBoundingClientRect = () => ({ width: 510, height: 903 } as DOMRect); act(() => { onLibResize([{ target } as ResizeObserverEntry]); onEsResize([{ target } as ResizeObserverEntry]); }); target.getBoundingClientRect = originGetBoundingClientRect; }; afterEach(() => { cleanup(); }); describe('PageContainer', () => { it('💄 base use', async () => { const wrapper = render(<PageHeader title="期贤" />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('pageHeader should not contain back it back', () => { const routes = [ { path: 'index', breadcrumbName: 'First-level Menu' }, { path: 'first', breadcrumbName: 'Second-level Menu' }, { path: 'second', breadcrumbName: 'Third-level Menu' }, ]; const { container } = render( <PageHeader title="Page Title" breadcrumb={{ routes }} />, ); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(0); }); it('pageHeader should have breadcrumb', () => { const items = [{ path: 'index', title: 'First-level Menu' }]; const { container } = render( <PageHeader title="Page Title" breadcrumb={{ items }} />, ); expect(container.querySelectorAll('.ant-breadcrumb')).toHaveLength(1); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(0); }); it('pageHeader should have breadcrumb (component)', () => { const routes = [{ path: 'index', breadcrumbName: 'First-level Menu' }]; const { container } = render( <PageHeader title="Page Title" breadcrumb={<Breadcrumb items={routes} />} />, ); expect(container.querySelectorAll('.ant-breadcrumb')).toHaveLength(1); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(0); }); it('pageHeader support breadcrumbRender', () => { const { container } = render( <PageHeader title="Page Title" avatar={{ src: 'https://avatars1.githubusercontent.com/u/8186664?s=460&v=4', alt: 'avatar', }} breadcrumbRender={() => <div id="test">test</div>} />, ); expect(container.querySelectorAll('#test')).toHaveLength(1); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(0); }); it('pageHeader support breadcrumbRender return false', () => { const { container } = render( <PageHeader title="Page Title" breadcrumbRender={() => false} />, ); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(0); }); it('pageHeader do not has title', () => { const items = [{ path: 'index', title: 'First-level Menu' }]; const { container } = render( <PageHeader breadcrumb={{ items }}>test</PageHeader>, ); expect(container.querySelector('.ant-page-header-heading-lef')).toBeFalsy(); expect(container.querySelector('.ant-page-header-heading')).toBeFalsy(); }); it('pageHeader should no contain back', () => { const { container } = render( <PageHeader title="Page Title" backIcon={false} />, ); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(0); }); it('pageHeader should contain back it back', () => { const callback = vi.fn(() => true); const { container } = render( <ConfigProvider direction="rtl"> <PageHeader title="Page Title" onBack={callback} /> </ConfigProvider>, ); expect(container.querySelectorAll('.ant-page-header-back')).toHaveLength(1); }); it('pageHeader onBack transfer', () => { const callback = vi.fn(() => true); const { container } = render( <PageHeader title="Page Title" onBack={callback} />, ); fireEvent.click( container.querySelector('div.ant-page-header-back-button')!, ); expect(callback).toHaveBeenCalled(); }); it('pageHeader should support className', () => { const { container } = render( <PageHeader title="Page Title" className="not-works" backIcon={false} />, ); expect(container.firstChild).toMatchSnapshot(); }); it('pageHeader should not render blank dom', () => { const { container } = render(<PageHeader title={false} />); expect(container.firstChild).toMatchSnapshot(); }); it('breadcrumbs and back icon can coexist', () => { const items = [ { path: 'index', title: 'First-level Menu' }, { path: 'first', title: 'Second-level Menu' }, { path: 'second', title: 'Third-level Menu' }, ]; const { container, rerender } = render( <PageHeader title="Title" breadcrumb={{ items }} />, ); expect(container.querySelectorAll('.ant-breadcrumb')).toHaveLength(1); rerender( <PageHeader title="Title" breadcrumb={{ items }} onBack={() => {}} />, ); expect(container.querySelectorAll('.ant-breadcrumb')).toHaveLength(1); }); it('pageHeader should render correctly int RTL direction', () => { const { container } = render(<PageHeader title="Page Title" />); expect(container.firstChild).toMatchSnapshot(); }); // it('change container width', async () => { // const { container } = render(<PageHeader title="Page Title" extra="extra" />); // triggerResize(container.firstChild as HTMLDivElement); // await waitForWaitTime(1000); // expect( // container.querySelector('div.ant-page-header')?.className.includes('ant-page-header-compact'), // ).toBeTruthy(); // }); });
9,156
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/demo.test.ts
import demoTest from '../demo'; demoTest('layout');
9,157
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/footer.test.tsx
import { DefaultFooter } from '@ant-design/pro-components'; import { cleanup, render } from '@testing-library/react'; afterEach(() => { cleanup(); }); describe('DefaultFooter test', () => { it('🦶 set title', () => { const wrapper = render(<DefaultFooter links={false} />); expect( !!wrapper.baseElement.querySelector('.ant-pro-global-footer-links'), ).toBeFalsy(); }); it('🦶 copyright support false', () => { const wrapper = render(<DefaultFooter copyright={false} />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🦶 links support false', () => { const wrapper = render(<DefaultFooter links={false} />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🦶 if copyright and links falsy both, should not to render nothing', () => { const wrapper = render(<DefaultFooter copyright={false} links={false} />); expect( !!wrapper.baseElement.querySelector('.ant-pro-global-footer'), ).toBeFalsy(); }); });
9,158
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/getPageTitle.test.tsx
import { getPageTitle } from '@ant-design/pro-components'; import { cleanup } from '@testing-library/react'; const pageProps = { pathname: '/welcome', location: { pathname: '/welcome' }, logo: 'https://gw.alipayobjects.com/zos/antfincdn/PmY%24TNNDBI/logo.svg', layout: 'side', contentWidth: 'Fixed', fixedHeader: false, fixSiderbar: false, menu: { locale: true }, title: 'Ant Design Pro', iconfontUrl: '', colorPrimary: '#1677FF', prefixCls: 'ant-pro', siderWidth: 208, breadcrumb: { '/welcome/welcome': { path: '/welcome/welcome', name: 'two', locale: 'menu.welcome.one.two', key: '/welcome/welcome', exact: true, pro_layout_parentKeys: [ '/564f79ec010d02670f2cd38274f84017d6ddf17759857629a1399aed6bb20925', '/welcome', ], }, '/welcome': { path: '/welcome', name: 'one', locale: 'menu.welcome.one', key: '/welcome', routes: [ { path: '/welcome/welcome', name: 'two', locale: 'menu.welcome.one.two', key: '/welcome/welcome', exact: true, pro_layout_parentKeys: [ '/564f79ec010d02670f2cd38274f84017d6ddf17759857629a1399aed6bb20925', '/welcome', ], }, ], pro_layout_parentKeys: [ '/564f79ec010d02670f2cd38274f84017d6ddf17759857629a1399aed6bb20925', ], }, '/': { path: '/', name: 'welcome', routes: [ { path: '/welcome', name: 'one', locale: 'menu.welcome.one', key: '/welcome', routes: [ { path: '/welcome/welcome', name: 'two', locale: 'menu.welcome.one.two', key: '/welcome/welcome', exact: true, pro_layout_parentKeys: [ '/564f79ec010d02670f2cd38274f84017d6ddf17759857629a1399aed6bb20925', '/welcome', ], }, ], pro_layout_parentKeys: [ '/564f79ec010d02670f2cd38274f84017d6ddf17759857629a1399aed6bb20925', ], }, ], locale: 'menu.welcome', key: '/564f79ec010d02670f2cd38274f84017d6ddf17759857629a1399aed6bb20925', pro_layout_parentKeys: [], }, '/demo': { path: '/demo', name: 'demo', locale: 'menu.demo', key: '/demo', pro_layout_parentKeys: [], }, }, breadcrumbMap: new Map(), }; afterEach(() => { cleanup(); }); describe('getPageTitle', () => { it('🗒️ base', () => { const title = getPageTitle(pageProps); expect(title).toBe('one - Ant Design Pro'); }); it('🗒️ base ignoreTitle', () => { const title = getPageTitle(pageProps, true); expect(title).toBe('one'); }); it('🗒️ title=false', () => { const title = getPageTitle({ ...pageProps, title: false, }); expect(title).toBe('one'); }); it('🗒️ base ignoreTitle', () => { const title = getPageTitle({ ...pageProps, pathname: undefined }, true); expect(title).toBe('welcome'); }); it('🗒️ base title=Ant', () => { const title = getPageTitle({ ...pageProps, title: 'Ant' }); expect(title).toBe('one - Ant'); }); it('🗒️ base menu=undefined', () => { const title = getPageTitle({ ...pageProps, menu: undefined, title: 'Ant' }); expect(title).toBe('one - Ant'); }); it('🗒️ title is null ', () => { const title = getPageTitle({ ...pageProps, title: undefined, }); expect(title).toBe('one'); }); it('🗒️ breadcrumb is null ', () => { const title = getPageTitle({ ...pageProps, breadcrumb: {}, }); expect(title).toBe('Ant Design Pro'); }); });
9,159
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/help.test.tsx
import type { ProHelpDataSourceChildren } from '@ant-design/pro-components'; import { ProHelp, ProHelpDrawer, ProHelpModal, ProHelpPanel, ProHelpSelect, } from '@ant-design/pro-components'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { Typography } from 'antd'; export const DefaultProHelp: React.FC<{ children: React.ReactNode }> = ( props, ) => { const map = new Map< string, ( item: ProHelpDataSourceChildren<{ video: React.VideoHTMLAttributes<HTMLVideoElement>; list: { title: string; children: { title: string; href: string; }[]; }; }>, index: number, ) => React.ReactNode >(); map.set('video', (item, index) => { return ( <video key={index} style={{ width: '100%', }} controls {...(item.children as React.VideoHTMLAttributes<HTMLVideoElement>)} /> ); }); map.set('list', (item, index) => { const listConfig = item.children as { title: string; children: { title: string; href: string; }[]; }; return ( <div key={index}> <h3 style={{ margin: '8px 0', }} > {listConfig.title} </h3> <div style={{ display: 'flex', flexDirection: 'column', gap: 8, }} > {listConfig.children.map((child, subIndex) => { return ( <div key={subIndex}> <Typography.Text> {child.href ? ( <a href={child.href}>{child.title}</a> ) : ( child.title )} </Typography.Text> </div> ); })} </div> </div> ); }); return ( <ProHelp<{ video: React.VideoHTMLAttributes<HTMLVideoElement>; list: { title: string; children: { title: string; href: string; }[]; }; }> dataSource={[ { title: '常见问题', key: 'default', children: [ { title: '如何开始操作数据授权?', key: '1', children: [ { valueType: 'h1', children: '如何开始操作数据授权?', }, { valueType: 'text', children: `需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署`, }, { valueType: 'inlineLink', children: { href: 'https://www.alipay.com', children: '摩斯产品', }, }, { valueType: 'text', children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, { valueType: 'image', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original', style: { maxWidth: 600, }, }, }, { valueType: 'text', children: `需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署`, }, { valueType: 'inlineLink', children: { href: 'https://www.alipay.com', children: '摩斯产品', }, }, { valueType: 'text', children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, { valueType: 'image', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original', style: { maxWidth: 600, }, }, }, { valueType: 'text', children: `需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署`, }, { valueType: 'inlineLink', children: { href: 'https://www.alipay.com', children: '摩斯产品', }, }, { valueType: 'text', children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, { valueType: 'image', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original', style: { maxWidth: 600, }, }, }, { valueType: 'h2', children: '相关问题', }, { valueType: 'link', children: { href: 'www.alipay.com', children: '鹊凿平台DCI申领操作手册?', }, }, { valueType: 'link', children: { href: 'www.alipay.com', children: 'openAPI 注册工具?', }, }, { valueType: 'h2', children: '帮助视频', }, { valueType: 'video', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/file/A*oJOJRZwe00kAAAAAAAAAAAAADml6AQ', }, }, ], }, { title: '证据包内包含哪些内容,如何下载证据包?', key: '2', children: [ { valueType: 'h1', children: '证据包内包含哪些内容,如何下载证据包?', }, { valueType: 'text', children: `需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署`, }, { valueType: 'inlineLink', children: { href: 'https://www.alipay.com', children: '摩斯产品', }, }, { valueType: 'text', children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, { valueType: 'image', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original', style: { maxWidth: 600, }, }, }, { valueType: 'text', children: `需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署`, }, { valueType: 'inlineLink', children: { href: 'https://www.alipay.com', children: '摩斯产品', }, }, { valueType: 'text', children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, { valueType: 'image', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original', style: { maxWidth: 600, }, }, }, { valueType: 'text', children: `需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署`, }, { valueType: 'inlineLink', children: { href: 'https://www.alipay.com', children: '摩斯产品', }, }, { valueType: 'text', children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, // @ts-expect-error { children: '节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。', }, { valueType: 'image', children: { src: 'https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original', style: { maxWidth: 600, }, }, }, { valueType: 'list', children: { title: '相关问题', children: [ { href: 'www.alipay.com', title: '鹊凿平台DCI申领操作手册?', }, { href: 'www.alipay.com', title: 'openAPI 注册工具?', }, ], }, }, ], }, ], }, ]} valueTypeMap={map} > {props.children} </ProHelp> ); }; afterEach(() => { cleanup(); }); describe('👍🏻 ProHelpPanel', () => { beforeAll(() => { Object.defineProperties(window.HTMLElement.prototype, { offsetTop: { get: function () { if ((this as HTMLDivElement).innerHTML.includes('离线批量数据')) { return 4 * 120; } if ((this as HTMLDivElement).innerHTML.includes('项目数据资源')) { return 8 * 120; } if ((this as HTMLDivElement).innerHTML.includes('匿名查询')) { return 900; } return 0; }, }, }); }); it('🎏 base use', async () => { const html = render( <DefaultProHelp> <div style={{ width: 600, }} > <ProHelpPanel height={648} /> </div> </DefaultProHelp>, ); await html.findAllByText('常见问题'); await act(async () => { (await html.findByText('常见问题'))?.click(); }); await act(async () => { (await html.findByTitle('collapse panel'))?.click(); }); expect( !!html.baseElement.querySelector('ant-pro-help-left-panel'), ).toBeFalsy(); }); it('🎏 infiniteScrollFull panel', async () => { vi.useFakeTimers(); const onSelectedKeyChangeFn = vi.fn(); const html = render( <ProHelp dataSource={[ { title: '名词解释', key: 'value', infiniteScrollFull: true, children: [ { title: '数据管理(模块)', key: 'name0', children: [ { valueType: 'h1', children: '数据管理(模块)', }, { valueType: 'text', children: '这是一个用于管理和处理数据的模块,它提供了一套工具来帮助用户进一步管理域内的数据。用户可以使用数据管理模块来管理数据、处理数据以及保护数据。', }, ], }, { title: '网页上传方式', key: 'name1', children: [ { valueType: 'h1', children: '网页上传方式', }, { valueType: 'text', children: '一种网页提供给用户的上传文件方法,用户可以通过网页上传自己的文件进行处理。', }, ], }, { title: '其他获取方式', key: 'name2', children: [ { valueType: 'h1', children: '其他获取方式', }, { valueType: 'text', children: '即不通过网页上传的方式获取数据,例如从数据库、文件夹或其他数据源中获取数据。', }, ], }, { title: '数据字典', key: 'name3', children: [ { valueType: 'h1', children: '数据字典', }, { valueType: 'text', children: '一个固定格式的数据说明书,它包含了所有数据元素的定义和说明,以及它们的定义和格式。', }, ], }, { title: '项目空间(模块)', key: 'name4', children: [ { valueType: 'h1', children: '项目空间(模块)', }, { valueType: 'text', children: '这是一个用于存储和管理一组相关数据和文档的模块。在项目空间中,用户可以创建文件夹、上传文件、管理文件等操作。', }, ], }, { title: '项目合作方', key: 'name5', children: [ { valueType: 'h1', children: '项目合作方', }, { valueType: 'text', children: '与用户进行数据合作的外部组织或个人。', }, ], }, { title: '项目数据资源', key: 'name6', children: [ { valueType: 'h1', children: '项目数据资源', }, { valueType: 'text', children: '在一个项目中产生或收集的所有数据资源,包括原始数据、处理数据、文档和元数据等。', }, ], }, { title: '离线批量数据', key: 'name7', children: [ { valueType: 'h1', children: '离线批量数据', }, { valueType: 'text', children: '一种离线处理数据的方式,用户将需要处理的数据批量上传到系统中,再通过系统进行处理。', }, { valueType: 'text', children: '相关数据请查看:', }, { valueType: 'navigationSwitch', children: { selectKey: 'name9', children: '节点场景', }, }, ], }, { title: '线上服务数据', key: 'name8', children: [ { valueType: 'h1', children: '线上服务数据', }, { valueType: 'text', children: '一种在线处理数据的方式,用户通过在线提交数据并调用相应的处理程序进行数据处理。', }, ], }, { title: '节点场景', key: 'name9', children: [ { valueType: 'h1', children: '节点场景', }, { valueType: 'text', children: '一个由多个节点组成的场景,每个节点都有不同的特征和功能,相互之间可以通信和互动。', }, ], }, { title: '模型配置', key: 'name10', children: [ { valueType: 'h1', children: '模型配置', }, { valueType: 'text', children: '根据用户的要求对模型参数进行设置和调整,以达到最佳的处理效果。', }, ], }, { title: '模型文件', key: 'name11', children: [ { valueType: 'h1', children: '模型文件', }, { valueType: 'text', children: '系统生成的模型文件,包含了所有的模型参数和处理算法。', }, ], }, { title: '预处理文件', key: 'name12', children: [ { valueType: 'h1', children: '预处理文件', }, { valueType: 'text', children: '用于预处理数据的文件,系统可根据用户的设置进行数据预处理。', }, ], }, { title: '后处理文件', key: 'name13', children: [ { valueType: 'text', children: '用于后处理数据的文件,系统将处理完成的数据输出到后处理文件中。', }, ], }, { title: '安全模型', key: 'name14', children: [ { valueType: 'h1', children: '安全模型', }, { valueType: 'text', children: '一种用于保护用户数据的安全控制模型,可以对数据进行加密、访问控制和防止数据泄漏等处理。', }, ], }, { title: '安全匹配', key: 'name15', children: [ { valueType: 'h1', children: '安全匹配', }, { valueType: 'text', children: '一种用于数据匹配的安全控制方法,可以对数据进行匿名化处理,以保护用户的隐私。', }, ], }, { title: '安全统计', key: 'name16', children: [ { valueType: 'h1', children: '安全统计', }, { valueType: 'text', children: '一种用于保护数据隐私的统计方法,可以在保证数据隐私的情况下进行数据分析和统计。', }, ], }, { title: '安全联盟', key: 'name17', children: [ { valueType: 'h1', children: '安全联盟', }, { valueType: 'text', children: '一种由多方共同协作的数据处理和安全保护机制,可以保障数据的机密性和完整性。', }, ], }, { title: '安全脚本', key: 'name18', children: [ { valueType: 'h1', children: '安全脚本', }, { valueType: 'text', children: '一种用于数据处理和安全保护的脚本程序,可以自动化完成数据安全控制任务。', }, ], }, { title: '匿名查询', key: 'name19', children: [ { valueType: 'h1', children: '匿名查询', }, { valueType: 'text', children: '一种保护用户隐私的查询方法,可以匿名化处理查询请求和返回结果,以保护用户的隐私。', }, ], }, { title: '导出表', key: 'name20', children: [ { valueType: 'h1', children: '导出表', }, { valueType: 'text', children: '一种用于导出数据的文件表格,用户可以将处理完的数据导出到该表格中进行进一步的处理和使用。', }, ], }, ], }, ]} > <div style={{ width: 600, }} > <ProHelpPanel onSelectedKeyChange={(key) => { onSelectedKeyChangeFn(key); }} defaultSelectedKey="name0" height={648} /> </div> </ProHelp>, ); await html.findAllByText('导出表'); await waitFor(() => { return html.findByText( '一种用于数据处理和安全保护的脚本程序,可以自动化完成数据安全控制任务。', ); }); await waitFor(() => { expect( html.container.querySelectorAll( '.ant-pro-help-content-render-infinite-scroll .ant-pro-help-content-render', ).length, ).toBe(21); }); await html.findAllByText('离线批量数据'); await act(async () => { (await (await html.findAllByText('离线批量数据')).at(0))?.click(); }); await waitFor(() => { expect( html.container.querySelector( '.ant-pro-help-content-render-infinite-scroll', )?.scrollTop, ).toBe(440); }); await act(() => { fireEvent.scroll( html.container.querySelector( '.ant-pro-help-content-render-infinite-scroll', )!, { target: { scrollY: 1000 } }, ); }); await act(() => { vi.runOnlyPendingTimers(); }); const dom = await html.findByTestId('navigation-switch'); act(() => { dom.click(); }); expect(onSelectedKeyChangeFn).toBeCalledWith('name9'); html.unmount(); vi.useRealTimers(); }); it('🎏 click menuItem show demo', async () => { const html = render( <DefaultProHelp> <div style={{ width: 600, }} > <ProHelpPanel height={648} /> </div> </DefaultProHelp>, ); await html.findAllByText('常见问题'); await act(async () => { (await html.findByText('常见问题'))?.click(); }); await act(async () => { ( await html.findByText('证据包内包含哪些内容,如何下载证据包?') )?.click(); }); await html.findAllByText( '需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署', ); }); it('🎏 ProHelp is empty', async () => { const html = render( <ProHelp<{ video: React.VideoHTMLAttributes<HTMLVideoElement>; list: { title: string; children: { title: string; href: string; }[]; }; }> dataSource={[]} > <ProHelpPanel /> </ProHelp>, ); expect(html.baseElement).toMatchSnapshot(); }); it('🎏 ProHelpModal', async () => { const fn = vi.fn(); const html = render( <DefaultProHelp> <div style={{ width: 600, }} > <ProHelpModal modalProps={{ open: true, afterClose: () => { fn(); }, }} /> </div> </DefaultProHelp>, ); await html.findAllByText('常见问题'); await act(async () => { (await html.findByTitle('close panel'))?.click(); }); await waitFor(() => { expect(fn).toBeCalledTimes(1); }); await act(async () => { html.baseElement .querySelector<HTMLDivElement>('.ant-modal-wrap') ?.click(); }); await waitFor(() => { expect(fn).toBeCalledTimes(2); }); }); it('🎏 ProHelpDrawer', async () => { const fn = vi.fn(); const html = render( <DefaultProHelp> <div style={{ width: 600, }} > <ProHelpDrawer drawerProps={{ open: true, afterOpenChange: () => { fn(); }, }} /> </div> </DefaultProHelp>, ); await html.findAllByText('常见问题'); await act(async () => { (await html.findByTitle('close panel'))?.click(); }); await waitFor(() => { expect(fn).toBeCalled(); }); await act(async () => { html.baseElement .querySelector<HTMLDivElement>('.ant-drawer-mask') ?.click(); }); await waitFor(() => { expect(fn).toBeCalledTimes(2); }); }); it('🎏 ProHelpSelect', async () => { vi.useFakeTimers(); const html = render( <DefaultProHelp> <div style={{ width: 600, }} > <ProHelpSelect /> </div> </DefaultProHelp>, ); await act(async () => { (await html.findByTitle('search panel'))?.click(); }); const input = await html.findByText('please input search text'); await act(async () => { fireEvent.mouseDown( html.container.querySelector('.ant-select-selector')!, ); vi.runOnlyPendingTimers(); }); await html.findByText('常见问题'); act(() => { fireEvent.change(input.parentElement!.querySelector('input')!, { target: { value: '如何', }, }); vi.runOnlyPendingTimers(); }); expect( html.baseElement.querySelector( '.ant-pro-help-search-list-item-content-light', )?.textContent, ).toBe('如何'); await act(async () => { fireEvent.blur(html.container.querySelector('.ant-select-selector')!); vi.runOnlyPendingTimers(); }); expect(!!html.container.querySelector('.ant-select-selector')!).toBeFalsy(); }); it('🎏 ProHelpSelect in panel', async () => { vi.useFakeTimers(); const html = render( <DefaultProHelp> <div style={{ width: 600, }} > <ProHelpPanel height={648} /> </div> </DefaultProHelp>, ); await html.findAllByText('常见问题'); await act(async () => { (await html.findByTitle('search panel'))?.click(); }); const input = await html.findByText('please input search text'); await act(async () => { fireEvent.mouseDown( html.container.querySelector('.ant-select-selector')!, ); vi.runOnlyPendingTimers(); }); await html.findAllByText('常见问题'); act(() => { fireEvent.change(input.parentElement!.querySelector('input')!, { target: { value: '证据包内包含哪些内容,如何下载证据包', }, }); vi.runOnlyPendingTimers(); }); expect( html.baseElement.querySelector( '.ant-pro-help-search-list-item-content-light', )?.textContent, ).toBe('证据包内包含哪些内容,如何下载证据包'); act(() => { html.baseElement .querySelector<HTMLDivElement>( '.ant-pro-help-search-list-item-content-light', ) ?.parentElement?.click(); }); act(() => { vi.runOnlyPendingTimers(); }); await waitFor(() => { expect( html.baseElement.querySelector('.ant-menu-item-selected')?.textContent, ).toBe('证据包内包含哪些内容,如何下载证据包?'); }); await act(async () => { fireEvent.blur(html.container.querySelector('.ant-select-selector')!); vi.runOnlyPendingTimers(); }); expect(!!html.container.querySelector('.ant-select-selector')!).toBeFalsy(); }); });
9,160
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/index.test.tsx
import { GithubFilled, InfoCircleFilled, QuestionCircleFilled, } from '@ant-design/icons'; import { ProLayout } from '@ant-design/pro-components'; import { LoginForm, ProFormText } from '@ant-design/pro-form'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { Button, ConfigProvider } from 'antd'; import en_US from 'antd/lib/locale/en_US'; import React, { useState } from 'react'; import { waitForWaitTime } from '../util'; import { bigDefaultProps } from './defaultProps'; afterEach(() => { cleanup(); }); describe('BasicLayout', () => { beforeEach(() => { delete process.env.ANTD_VERSION; }); afterEach(() => { delete process.env.ANTD_VERSION; }); beforeAll(() => { process.env.NODE_ENV = 'TEST'; const matchMediaSpy = vi.spyOn(window, 'matchMedia'); matchMediaSpy.mockImplementation( (query) => ({ addListener: (cb: (e: { matches: boolean }) => void) => { cb({ matches: query === '(min-width: 768px)' }); }, removeListener: vi.fn(), matches: query === '(min-width: 768px)', } as any), ); }); it('🥩 base use', async () => { const html = render(<ProLayout />); expect(html.asFragment()).toMatchSnapshot(); html.unmount(); }); it('🥩 compatibleStyle', async () => { process.env.ANTD_VERSION = '4.0.0'; const html = render(<ProLayout>{process.env.ANTD_VERSION}</ProLayout>); expect(html.asFragment()).toMatchSnapshot(); delete process.env.ANTD_VERSION; html.unmount(); }); it('🥩 support loading', async () => { const wrapper = render( <ProLayout loading menu={{ loading: true, }} />, ); await waitForWaitTime(1000); expect( wrapper.baseElement.querySelector('.ant-skeleton'), ).toMatchSnapshot(); wrapper.unmount(); }); it('🥩 support headerRender', async () => { const wrapper = render( <ProLayout layout="mix" headerRender={() => <div id="testid">testid</div>} > XXX </ProLayout>, ); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>('#testid'), ).toBeTruthy(); wrapper.unmount(); }); it('🥩 do not render menu', async () => { const wrapper = render(<ProLayout menuRender={false} />); await waitForWaitTime(100); const menu = wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-sider'); expect(menu).toBeFalsy(); const menuContent = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-menu', ); expect(menuContent).toBeFalsy(); expect( getComputedStyle( wrapper.baseElement.querySelector<HTMLDivElement>( 'div.ant-layout div.ant-pro-layout-container', )!, )?.padding, ).toBe(''); wrapper.unmount(); }); it('🥩 do not render menu content', async () => { const wrapper = render(<ProLayout menuContentRender={false} />); await waitForWaitTime(100); const menu = wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-sider'); expect(menu).toBeTruthy(); const menuContent = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-menu', ); expect(menuContent).toBeFalsy(); wrapper.unmount(); }); it('🥩 support appList', async () => { const itemClicking = vi.fn(); const wrapper = render( <ProLayout appList={[ { icon: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', title: 'Ant Design', desc: '杭州市较知名的 UI 设计语言', url: 'https://ant.design', }, { title: 'UI 设计语言', icon: () => <span>a</span>, desc: '杭州市较知名的 UI 设计语言2', children: [ { icon: () => <span>a</span>, title: 'Ant Design', desc: '杭州市较知名的 UI 设计语言', url: 'https://ant.design', }, { icon: 'w', title: null, desc: '专业级 UI 组件库', url: 'https://procomponents.ant.design/', }, ], }, ]} itemClick={() => itemClicking()} route={{ children: [ [ { path: '/home', name: '首页', locale: 'menu.home', children: [ { path: '/home/overview', name: '概述', hideInMenu: true, exact: true, locale: 'menu.home.overview', }, ], }, { path: '/home2', name: '首页', locale: 'menu.home2', routes: [ { path: '/home/overview2', name: '概述', hideInMenu: true, exact: true, locale: 'menu.home.overview', }, ], }, ], ], }} />, ); await waitForWaitTime(100); act(() => { ( wrapper.baseElement.querySelector( '.ant-pro-layout-apps-icon', ) as HTMLDivElement )?.click(); }); expect( wrapper.baseElement.querySelectorAll('.ant-pro-layout-apps-icon').length, ).toBe(1); await wrapper.findAllByText('UI 设计语言'); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>( '.ant-pro-layout-apps-default-content-list-item a', ) ?.click(); }); await waitFor(() => { expect(itemClicking).toBeCalled(); }); wrapper.unmount(); }); it('🥩 appList icon is simple', async () => { const itemClicking = vi.fn(); const wrapper = render( <ProLayout appList={[ { title: 'UI 设计语言', children: [ { icon: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', title: 'Ant Design', url: 'https://ant.design', }, { icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg', title: 'Pro Components', url: 'https://procomponents.ant.design/', }, ], }, { title: 'UI 设计语言 2组111', icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg', url: 'https://procomponents.ant.design/', children: [ { icon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png', title: 'AntV', url: 'https://antv.vision/', target: '_blank', }, { icon: 'https://gw.alipayobjects.com/zos/antfincdn/FLrTNDvlna/antv.png', title: 'AntV', url: 'https://antv.vision/', target: '_blank', }, ], }, { title: '待分组', children: [ { title: '工具', icon: 'w', url: 'https://www.yuque.com/', }, { title: '前端应用框架', icon: () => ( <img src="https://img.alicdn.com/tfs/TB1zomHwxv1gK0jSZFFXXb0sXXa-200-200.png" /> ), url: 'https://umijs.org/zh-CN/docs', }, { title: 'qiankun', url: 'https://qiankun.umijs.org/', }, { title: <div>Kitchen</div>, url: 'https://kitchen.alipay.com/', }, { icon: 'https://gw.alipayobjects.com/zos/bmw-prod/d3e3eb39-1cd7-4aa5-827c-877deced6b7e/lalxt4g3_w256_h256.png', title: 'dumi', url: 'https://d.umijs.org/zh-CN', }, ], }, ]} itemClick={() => itemClicking()} route={{ children: [ [ { path: '/home', name: '首页', locale: 'menu.home', children: [ { path: '/home/overview', name: '概述', hideInMenu: true, exact: true, locale: 'menu.home.overview', }, ], }, ], ], }} />, ); await waitForWaitTime(100); act(() => { ( wrapper.baseElement.querySelector( '.ant-pro-layout-apps-icon', ) as HTMLDivElement )?.click(); }); await wrapper.findAllByText('UI 设计语言'); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>( '.ant-pro-layout-apps-simple-content-list-item a', ) ?.click(); }); await waitFor(() => { expect(itemClicking).toBeCalled(); }); wrapper.unmount(); }); it('🥩 group title when collapsed, title is hidden', async () => { const token = { bgLayout: null, colorTextAppListIcon: null, colorTextAppListIconHover: null, sider: { colorBgMenuItemHover: null, colorMenuBackground: null, colorMenuItemDivider: null, colorTextMenu: null, colorTextMenuSelected: null, colorTextMenuItemHover: null, colorBgMenuItemSelected: null, colorBgCollapsedButton: null, colorTextCollapsedButton: null, colorTextCollapsedButtonHover: null, colorTextMenuActive: null, }, header: { colorBgMenuItemSelected: null, colorTextMenuSelected: null, colorBgHeader: null, colorHeaderTitle: null, colorBgScrollHeader: null, colorTextMenuActive: null, colorTextMenu: null, colorBgMenuItemHover: null, colorMenuBackground: null, colorTextMenuItemHover: null, colorBgCollapsedButton: null, colorTextCollapsedButton: null, colorTextCollapsedButtonHover: null, }, pageContainer: { paddingBlockPageContainerContent: null, paddingInlinePageContainerContent: null, }, }; const wrapper = render( <ProLayout // @ts-ignore token={token} bgLayoutImgList={[ { src: 'https://gw.alipayobjects.com/zos/antfincdn/tQVPs1q2X%26/yonghushenfen.png', }, ]} isChildrenLayout navTheme="realDark" colorPrimary="#1890ff" {...bigDefaultProps} appList={undefined} location={{ pathname: '/list', }} menu={{ type: 'group', }} > <div /> </ProLayout>, ); await waitForWaitTime(100); expect( wrapper.baseElement.querySelectorAll('.ant-menu-item-group-title').length, ).toBe(2); expect( wrapper.baseElement.querySelectorAll('.ant-pro-sider-actions-collapsed') .length, ).toBe(0); wrapper.rerender( <ProLayout bgLayoutImgList={[ { src: 'https://gw.alipayobjects.com/zos/antfincdn/tQVPs1q2X%26/yonghushenfen.png', }, ]} {...bigDefaultProps} appList={undefined} location={{ pathname: '/list', }} collapsed menu={{ type: 'group', }} avatarProps={{ src: 'https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg', size: 'small', title: '七妮妮', }} actionsRender={() => [ <InfoCircleFilled key="InfoCircleFilled" />, <QuestionCircleFilled key="QuestionCircleFilled" />, <GithubFilled key="GithubFilled" />, ]} menuFooterRender={() => { return ( <p style={{ textAlign: 'center', color: 'rgba(0,0,0,0.6)', paddingBlockStart: 12, }} > Power by Ant Design </p> ); }} > <div /> </ProLayout>, ); expect( wrapper.baseElement.querySelectorAll('.ant-menu-item-group-title').length, ).toBe(0); // collapsed 的时候action 将会消失 expect( wrapper.baseElement.querySelectorAll('.ant-pro-sider-actions-collapsed') .length, ).toBe(1); wrapper.unmount(); }); it('🥩 do not render footer', async () => { const wrapper = render(<ProLayout title="title" footerRender={false} />); await wrapper.findByText('title'); await waitFor(() => { const footer = wrapper.baseElement.querySelector<HTMLDivElement>('footer'); expect(footer).toBeFalsy(); }); wrapper.unmount(); }); it('🥩 header support fixed-header-scroll', async () => { const ref = React.createRef<HTMLDivElement>(); const wrapper = render( <ConfigProvider getTargetContainer={() => { return ref.current!; }} > <div ref={ref}> <ProLayout layout="mix" fixedHeader title="fixed-header-scroll" stylish={{ header: () => { return { opacity: 0.9, }; }, }} /> </div> </ConfigProvider>, ); await wrapper.findByText('fixed-header-scroll'); act(() => { ref.current!.scrollTop = 400; fireEvent.scroll(ref.current!, {}); }); await waitFor(() => { expect( !!wrapper.baseElement.querySelector( '.ant-pro-layout-header-fixed-header-scroll', ), ).toBeTruthy(); }); act(() => { ref.current!.scrollTop = 0; fireEvent.scroll(ref.current!, {}); }); await waitFor(() => { expect( !!wrapper.baseElement.querySelector( '.ant-pro-layout-header-fixed-header-scroll', ), ).toBeFalsy(); }); wrapper.unmount(); }); it('🥩 menuDataRender change date', async () => { const wrapper = render(<ProLayout menuDataRender={() => []} />); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>( 'ul.ant-pro-sider-menu', ), ).toBeFalsy(); act(() => { wrapper.rerender( <ProLayout menuDataRender={() => [ { path: '/home', name: '首页', children: [ { path: '/home/overview', name: '概述', exact: true, }, { path: '/home/search', name: '搜索', exact: true, }, ], }, ]} />, ); }); await waitForWaitTime(1000); expect( wrapper.baseElement.querySelector<HTMLDivElement>( 'ul.ant-pro-sider-menu', ), ).toBeTruthy(); wrapper.unmount(); }); it('🥩 use onLogoClick', async () => { const onLogoClick = vi.fn(); const wrapper = render( <ProLayout siderWidth={undefined} logo={ <div onClick={onLogoClick} id="test_log"> Logo </div> } />, ); await waitForWaitTime(100); const logo = wrapper.baseElement.querySelector<HTMLDivElement>('#test_log'); act(() => { logo?.click(); }); expect(onLogoClick).toHaveBeenCalled(); wrapper.unmount(); }); it('🥩 render logo', async () => { const wrapper = render(<ProLayout logo={<div id="test_log">Logo</div>} />); await waitForWaitTime(100); const logo = wrapper.baseElement.querySelector<HTMLDivElement>('#test_log'); expect(logo?.textContent).toEqual('Logo'); wrapper.unmount(); }); it('🥩 render logo by function', async () => { const wrapper = render( //@ts-expect-error <ProLayout logo={() => <div id="test_log">Logo</div>} />, ); await waitForWaitTime(100); const logo = wrapper.baseElement.querySelector<HTMLDivElement>('#test_log'); expect(logo?.textContent).toEqual('Logo'); await waitForWaitTime(100); wrapper.unmount(); }); it('🥩 onCollapse', async () => { const onCollapse = vi.fn(); const wrapper = render(<ProLayout onCollapse={onCollapse} />); await waitForWaitTime(100); act(() => { Array.from( wrapper.baseElement.querySelectorAll<HTMLDivElement>( 'div.ant-pro-sider-collapsed-button', ), ).map((item) => item && item?.click()); }); expect(onCollapse).toHaveBeenCalled(); await waitForWaitTime(100); wrapper.unmount(); }); it('🥩 siderWidth default', async () => { const wrapper = render( <ProLayout route={{ children: [ [ { path: '/home', name: '首页', locale: 'menu.home', children: [ { path: '/home/overview', name: '概述', hideInMenu: true, exact: true, locale: 'menu.home.overview', }, ], }, ], ], }} />, ); await waitForWaitTime(100); expect( getComputedStyle( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-sider')!, )?.width, ).toBe('256px'); await waitForWaitTime(100); wrapper.unmount(); }); it('🥩 siderWidth=160', async () => { const wrapper = render(<ProLayout siderWidth={160} />); await waitForWaitTime(100); expect( getComputedStyle( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-sider')!, )?.width, ).toBe('160px'); await waitForWaitTime(100); wrapper.unmount(); }); it('🥩 do not render collapsed button', async () => { const wrapper = render(<ProLayout collapsedButtonRender={false} />); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>( 'div.ant-pro-sider-collapsed-button', ), ).toBeFalsy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 when renderMenu=false, do not render collapsed button', async () => { const wrapper = render(<ProLayout menuRender={false} />); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>( 'div.ant-pro-sider-collapsed-button', ), ).toBeFalsy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 render customize collapsed button', async () => { const wrapper = render( <ProLayout collapsedButtonRender={(collapsed) => ( <span id="customize_collapsed_button">{`${collapsed}`}</span> )} />, ); await waitForWaitTime(100); const dom = wrapper.baseElement.querySelector<HTMLDivElement>( '#customize_collapsed_button', ); expect(dom?.textContent).toEqual('false'); act(() => { wrapper.rerender( <ProLayout collapsedButtonRender={(collapsed) => ( <span id="customize_collapsed_button">{`${collapsed}`}</span> )} collapsed />, ); }); await waitForWaitTime(100); expect(dom?.textContent).toEqual('true'); }); it('🥩 support hideMenuWhenCollapsed', async () => { const wrapper = render( <ProLayout menu={{ hideMenuWhenCollapsed: true, }} collapsed={true} > layout_right </ProLayout>, ); await wrapper.findByText('layout_right'); let dom = wrapper.baseElement.querySelector( '.ant-pro-sider-hide-when-collapsed', ); expect(!!dom).toBeTruthy(); act(() => { wrapper.rerender( <ProLayout menu={{ hideMenuWhenCollapsed: true, }} collapsed={false} > layout_list </ProLayout>, ); }); await wrapper.findByText('layout_list'); waitFor(() => { dom = wrapper.baseElement.querySelector( '.ant-pro-sider-hide-when-collapsed', ); expect(!!dom).toBeFalsy(); }); act(() => { wrapper.unmount(); }); }); it('🥩 do not render menu header', async () => { const wrapper = render( <ProLayout menuExtraRender={() => <div>menuExtraRender</div>} menuHeaderRender={false} />, ); await waitForWaitTime(100); const dom = wrapper.baseElement.querySelector<HTMLDivElement>('#logo'); expect(dom).toBeFalsy(); const menuExtraRender = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-extra-no-logo', ); expect(menuExtraRender).toBeTruthy(); act(() => { wrapper.unmount(); }); }); it('🥩 customize render menu header', async () => { const wrapper = render( <ProLayout menuHeaderRender={(logo, title) => ( <div id="customize_menu_header"> {logo} {title} <div id="customize_menu_header_text">customize_menu_header</div> </div> )} />, ); await waitForWaitTime(100); const dom = wrapper.baseElement.querySelector<HTMLDivElement>( '#customize_menu_header', ); expect(dom).toBeTruthy(); expect( dom?.querySelector('#customize_menu_header_text')?.textContent, ).toEqual('customize_menu_header'); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 contentStyle should change dom', async () => { const wrapper = render( <ProLayout contentStyle={{ padding: 56, }} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 support className', async () => { const wrapper = render( <ProLayout className="chenshuai2144" contentStyle={{ padding: 56, }} />, ); expect( wrapper.baseElement.querySelector<HTMLDivElement>('div.chenshuai2144'), ).toBeTruthy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 support links', async () => { const wrapper = render(<ProLayout links={['name']} />); await waitForWaitTime(100); const dom = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-link', ); expect(dom).toBeTruthy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 do no render links', async () => { const wrapper = render(<ProLayout />); await waitForWaitTime(100); const dom = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-link', ); expect(dom).toBeFalsy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 pure style', async () => { const wrapper = render(<ProLayout pure />); await waitForWaitTime(100); const menu = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-menu', ); expect(menu).toBeFalsy(); const dom = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-link', ); expect(dom).toBeFalsy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 set page title render', async () => { const wrapper = render( <ProLayout pageTitleRender={(props, pageName, info) => { if (info) { return info.pageName; } return pageName || 'ant'; }} />, ); await waitForWaitTime(100); const dom = wrapper.baseElement.querySelector<HTMLDivElement>( '.ant-pro-sider-link', ); expect(dom).toBeFalsy(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 onPageChange', async () => { const onPageChange = vi.fn(); const wrapper = render( <ProLayout onPageChange={onPageChange} location={{ pathname: '/', }} />, ); await waitForWaitTime(100); act(() => { wrapper.rerender( <ProLayout onPageChange={onPageChange} location={{ pathname: '/name', }} />, ); }); expect(onPageChange).toBeCalled(); await waitForWaitTime(100); act(() => { wrapper.unmount(); }); }); it('🥩 headerTitleRender ', async () => { const wrapper = render( <ProLayout headerTitleRender={() => <h2 id="mix-test">mix title</h2>} layout="mix" location={{ pathname: '/', }} />, ); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>('h2#mix-test') ?.textContent, ).toBe('mix title'); }); it('🥩 onMenuHeaderClick', async () => { const onMenuHeaderClick = vi.fn(); const wrapper = render( <ProLayout pageTitleRender={false} onMenuHeaderClick={onMenuHeaderClick} layout="mix" location={{ pathname: '/', }} />, ); await waitForWaitTime(100); act(() => { wrapper.baseElement .querySelector<HTMLDivElement>('div.ant-pro-global-header-logo') ?.click(); }); expect(onMenuHeaderClick).toBeCalled(); }); it('🥩 renderPageTitle return value should is string', async () => { const renderPageTitle = vi.fn(); render( <ProLayout // @ts-expect-error pageTitleRender={() => { renderPageTitle(); return 1221; }} location={{ pathname: '/', }} />, ); await waitFor(() => { expect(renderPageTitle).toBeCalled(); }); }); it('🥩 rightContentRender should work in top', async () => { const wrapper = render( <ProLayout rightContentRender={() => <div id="layout_right">right</div>} layout="top" location={{ pathname: '/', }} />, ); await waitForWaitTime(100); act(() => { wrapper.rerender( <ProLayout rightContentRender={() => ( <div id="layout_right" style={{ width: 120, }} > right </div> )} layout="top" location={{ pathname: '/', }} />, ); }); expect( wrapper.baseElement.querySelector<HTMLDivElement>('#layout_right'), ).toBeTruthy(); }); it('🥩 rightContentRender should work in side', async () => { const wrapper = render( <ProLayout rightContentRender={() => <div id="layout_right">right</div>} layout="side" location={{ pathname: '/', }} />, ); await waitForWaitTime(100); act(() => { wrapper.rerender( <ProLayout rightContentRender={() => ( <div id="layout_right" style={{ width: 120, }} > right </div> )} layout="side" location={{ pathname: '/', }} />, ); }); expect( wrapper.baseElement.querySelector<HTMLDivElement>('#layout_right'), ).toBeTruthy(); }); it('🥩 support get config form menuItem', async () => { const wrapper = render( <ProLayout location={{ pathname: '/home/overview', }} menuDataRender={() => [ { path: '/home/overview', name: '概述', exact: true, layout: 'side', }, { path: '/home/search', name: '搜索', exact: true, layout: 'mix', navTheme: 'light', }, { path: '/home', name: '首页', layout: 'top', }, ]} />, ); await waitForWaitTime(100); expect( wrapper.baseElement .querySelector('.ant-design-pro') ?.className.includes('ant-pro-layout-side'), ).toBeTruthy(); act(() => { wrapper.rerender( <ProLayout location={{ pathname: '/home/search', }} menuDataRender={() => [ { path: '/home/overview', name: '概述', exact: true, layout: 'side', }, { path: '/home/search', name: '搜索', exact: true, layout: 'mix', navTheme: 'light', }, { path: '/home', name: '首页', layout: 'top', }, ]} />, ); }); await waitForWaitTime(100); expect( wrapper.baseElement .querySelector('.ant-design-pro') ?.className.includes('ant-pro-layout-mix'), ).toBeTruthy(); act(() => { wrapper.rerender( <ProLayout location={{ pathname: '/home', }} menuDataRender={() => [ { path: '/home/overview', name: '概述', exact: true, layout: 'side', }, { path: '/home/search', name: '搜索', exact: true, layout: 'mix', navTheme: 'light', }, { path: '/home', name: '首页', layout: 'top', }, ]} />, ); }); await waitForWaitTime(100); expect( wrapper.baseElement .querySelector('.ant-design-pro') ?.className.includes('ant-pro-layout-top'), ).toBeTruthy(); }); it('🥩 mix layout hideInMenu render right', async () => { const wrapper = render( <ProLayout menuDataRender={() => [ { path: '/welcome', name: '欢迎', hideInMenu: true, }, { path: '/admin', name: '管理页', children: [ { path: '/admin/sub-page1', name: '一级页面', }, { path: '/admin/sub-page2', name: '二级页面', }, { path: '/admin/sub-page3', name: '三级页面', }, ], }, { name: '列表页', path: '/list', }, ]} />, ); await wrapper.findAllByText('列表页'); expect(wrapper.baseElement).toMatchSnapshot(); }); it('🥩 BasicLayout menu support menu.true', async () => { const wrapper = render( <> <ProLayout menu={{ loading: true, }} menuDataRender={() => [ { path: '/welcome', name: '欢迎', }, { name: '列表页', path: '/list', }, ]} /> <ProLayout menu={{ loading: true, }} layout="top" menuDataRender={() => [ { path: '/welcome', name: '欢迎', }, { name: '列表页', path: '/list', }, ]} /> <ProLayout menu={{ loading: true, }} layout="mix" menuDataRender={() => [ { path: '/welcome', name: '欢迎', }, { name: '列表页', path: '/list', }, ]} /> </>, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 ProLayout support current menu', async () => { const wrapper = render( <ProLayout location={{ pathname: '/welcome', }} menuDataRender={() => [ { path: '/welcome', name: '欢迎', layout: {}, }, ]} />, ); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-layout-side'), ).toBeTruthy(); act(() => { wrapper.rerender( <ProLayout location={{ pathname: '/welcome', }} menu={{ loading: true, }} menuDataRender={() => [ { path: '/welcome', name: '欢迎', layout: 'top', }, ]} />, ); }); await waitForWaitTime(100); act(() => { wrapper.rerender( <ProLayout location={{ pathname: '/welcome', }} menu={{ loading: false, }} menuDataRender={() => [ { path: '/welcome', name: '欢迎', layout: 'top', }, ]} />, ); }); await waitForWaitTime(100); expect( wrapper.baseElement.querySelector<HTMLDivElement>('.ant-pro-layout-top'), ).toBeTruthy(); }); it('🥩 BasicLayout menu support autoClose', async () => { const Demo = () => { const [pathname, setPathname] = useState('/admin/sub-page1'); return ( <ProLayout menu={{ autoClose: false, }} location={{ pathname }} menuItemRender={(item, dom) => ( <a onClick={() => { item.onClick(); setPathname(item.path || '/welcome'); }} > {dom} </a> )} menuDataRender={() => [ { path: '/admin', name: '管理页', children: [ { path: '/admin/sub-page1', name: '一级页面', }, { path: '/admin/sub-page2', name: '二级页面', }, { path: '/admin/sub-page3', name: '三级页面', }, ], }, { name: '列表页', icon: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', path: '/list', children: [ { path: '/list/sub-page', name: '一级列表页面', }, { path: '/list/sub-page2', name: '二级列表页面', }, { path: 'https://ant.design', name: 'AntDesign外链', }, ], }, ]} /> ); }; const html = render(<Demo />); await waitForWaitTime(100); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu').length, ).toBe(2); const domParentMenu = await (await html.findAllByText('列表页')).at(0); act(() => { domParentMenu?.click(); }); await waitForWaitTime(2000); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(2); const domChildMenu = await (await html.findAllByText('二级列表页面')).at(0); const domLink = await (await html.findAllByText('AntDesign外链')).at(0); act(() => { domChildMenu?.click(); domLink?.click(); }); await waitForWaitTime(2000); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu').length, ).toBe(2); }); it('🥩 BasicLayout menu support onSelect', async () => { const fn = vi.fn(); const Demo = () => { const [pathname, setPathname] = useState('/admin/sub-page1'); return ( <ProLayout menu={{ locale: false, }} onSelect={fn} location={{ pathname }} menuItemRender={(item, dom) => ( <a onClick={() => { item.onClick(); setPathname(item.path || '/welcome'); }} > {dom} </a> )} menuDataRender={() => [ { path: '/admin', name: '管理页', children: [ { path: '/admin/sub-page1', name: '一级页面', }, { path: '/admin/sub-page2', name: '二级页面', }, { path: '/admin/sub-page3', name: '三级页面', }, ], }, { name: '列表页', path: '/list', children: [ { path: '/list/sub-page', name: '一级列表页面', }, { path: '/list/sub-page2', name: '二级列表页面', }, { path: '/list/sub-page3', name: 'AntDesign外链', }, ], }, ]} /> ); }; const html = render(<Demo />); await waitForWaitTime(100); const domParentMenu = await (await html.findAllByText('列表页')).at(0); act(() => { domParentMenu?.click(); }); await waitForWaitTime(100); const domLink = await (await html.findAllByText('AntDesign外链')).at(0); act(() => { domLink?.click(); }); await waitForWaitTime(100); expect(fn).toBeCalled(); }); it('🥩 ProLayout support menu.request', async () => { const fn = vi.fn(); const actionRef = React.createRef< | { reload: () => void; } | undefined >(); const Demo = () => { return ( <ProLayout // @ts-ignore actionRef={actionRef} menu={{ locale: false, request: async () => { fn(); return [ { path: '/admin', name: '管理页', children: [ { path: '/admin/sub-page1', name: '一级页面', }, { path: '/admin/sub-page2', name: '二级页面', }, { path: '/admin/sub-page3', name: '三级页面', }, ], }, { name: '列表页', path: '/list', children: [ { path: '/list/sub-page', name: '一级列表页面', }, { path: '/list/sub-page2', name: '二级列表页面', }, { path: '/list/sub-page3', name: 'antd', }, ], }, ]; }, }} /> ); }; render(<Demo />); await waitFor(() => { expect(fn).toBeCalledTimes(1); }); act(() => { actionRef.current?.reload(); }); await waitFor(() => { expect(fn).toBeCalledTimes(2); }); }); it('🥩 ProLayout support menu.params', async () => { const fn = vi.fn(); const defaultMenu = { locale: false, params: {}, request: async (params: Record<string, string>) => { fn(params); return [ { path: '/admin', name: '管理页', }, { name: '列表页', path: '/list', }, ]; }, }; const html = render(<ProLayout menu={defaultMenu} />); await waitForWaitTime(1000); expect(fn).toBeCalledTimes(1); act(() => { html.rerender( <ProLayout menu={{ ...defaultMenu, params: { id: '1212', }, }} />, ); }); await waitForWaitTime(100); expect(fn).toBeCalledTimes(2); expect(fn).toBeCalledWith({ id: '1212', }); act(() => { html.rerender( <ProLayout menu={{ ...defaultMenu, params: { id: '123', }, }} />, ); }); await waitForWaitTime(100); expect(fn).toBeCalledTimes(3); expect(fn).toBeCalledWith({ id: '123', }); act(() => { html.rerender( <ProLayout menu={{ ...defaultMenu, params: { id: '123', }, }} />, ); }); await waitForWaitTime(100); expect(fn).toBeCalledTimes(3); }); it('🥩 ProLayout support menu.defaultOpenAll', async () => { const Demo = () => { const [pathname, setPathname] = useState('/admin/sub-page1'); return ( <ProLayout menu={{ defaultOpenAll: true, }} location={{ pathname }} menuItemRender={(item, dom) => ( <a onClick={() => { item.onClick(); setPathname(item.path || '/welcome'); }} > {dom} </a> )} menuDataRender={() => [ { path: '/home', name: '首页', locale: 'menu.home', children: [ { path: '/home/overview', name: '概述', hideInMenu: true, locale: 'menu.home.overview', }, { path: '/home/search', name: '搜索', hideInMenu: true, locale: 'menu.home.search', }, ], }, { path: '/data_hui', name: '汇总数据', locale: 'menu.data_hui', children: [ { collapsed: true, menuName: '域买家维度交易', name: '域买家维度交易', path: '/xx', children: [ { id: 2, name: '月表', path: '/data_hui2', }, { name: '日表', path: '/data_hui3?tableName=adm_rk_cr_tb_trv_byr_ds&tableSchema=box-shadow', }, ], }, { name: '维度交易', path: '/', children: [ { name: '月表', path: '/data_hui4', }, { name: '日表', key: 'tableName=adm_rk_cr_tb_trv_byr_ds&tableSchema=box-shadow', path: '/data_hui5', }, ], }, ], }, ]} /> ); }; const html = render(<Demo />); await waitForWaitTime(100); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu').length, ).toBe(3); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(3); }); it('🥩 ProLayout support menu.ignoreFlatMenu', async () => { const Demo = () => { const [pathname, setPathname] = useState('/admin/sub-page1'); return ( <ProLayout menu={{ defaultOpenAll: true, ignoreFlatMenu: true, }} location={{ pathname }} menuItemRender={(item, dom) => ( <a onClick={() => { item?.onClick?.(); setPathname(item.path || '/welcome'); }} > {dom} </a> )} menuDataRender={() => [ { path: '/home', name: '首页', locale: 'menu.home', children: [ { path: '/home/overview', name: '概述', hideInMenu: true, locale: 'menu.home.overview', }, { path: '/home/search', name: '搜索', hideInMenu: true, locale: 'menu.home.search', }, ], }, { path: '/data_hui', name: '汇总数据', locale: 'menu.data_hui', children: [ { collapsed: true, menuName: '域买家维度交易', name: '域买家维度交易', children: [ { id: 2, name: '月表', path: '/data_hui2', }, { name: '日表', path: '/data_hui3?tableName=adm_rk_cr_tb_trv_byr_ds&tableSchema=box-shadow', }, ], }, { name: '维度交易', path: '/', children: [ { name: '月表2', path: '/data_hui4', }, { name: '日表2', key: 'tableName=adm_rk_cr_tb_trv_byr_ds&tableSchema=box-shadow', path: '/data_hui5', }, ], }, ], }, ]} /> ); }; const html = render(<Demo />); await waitForWaitTime(1200); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu').length, ).toBe(3); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(3); await act(async () => { (await html.findByText('月表'))?.parentElement?.click(); }); await waitForWaitTime(100); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(0); }); it('🥩 formatMessage support', async () => { const html = render( <ProLayout menu={{ locale: true, }} route={{ children: [ { name: 'home', locale: 'menu.home', path: '/home', }, ], }} formatMessage={({ id, defaultMessage, }: { id: string; defaultMessage?: string; }): string => { const locales = { 'menu.home': '主页', }; return locales[id as 'menu.home'] ? locales[id as 'menu.home'] : (defaultMessage as string); }} />, ); await waitForWaitTime(200); expect(html.findByText('主页')).toBeTruthy(); }); it('🥩 pure should has provide', () => { let html = render( <ConfigProvider locale={en_US}> <ProLayout> <LoginForm> <ProFormText /> </LoginForm> </ProLayout> </ConfigProvider>, ); expect( html.container.querySelector('.ant-btn.ant-btn-primary.ant-btn-lg') ?.textContent, ).toBe('Login'); expect(html.getByText('Login')).toBeTruthy(); html.rerender( <ConfigProvider locale={en_US}> <ProLayout pure> <LoginForm> <ProFormText /> </LoginForm> </ProLayout> </ConfigProvider>, ); expect( html.container.querySelector('.ant-btn.ant-btn-primary.ant-btn-lg') ?.textContent, ).toBe('Login'); html = render( <ConfigProvider locale={en_US}> <LoginForm> <ProFormText /> </LoginForm> </ConfigProvider>, ); expect( html.container.querySelector('.ant-btn.ant-btn-primary.ant-btn-lg') ?.textContent, ).toBe('Login'); }); it('🥩 siderMenu should restore openKeys when collapsed is false', async () => { const onCollapse = vi.fn(); const html = render( <ProLayout {...bigDefaultProps} location={{ pathname: '/list/sub-page/sub-sub-page1' }} onCollapse={onCollapse} defaultCollapsed={false} > <div>Hello World</div> </ProLayout>, ); await waitForWaitTime(1000); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(2); act(() => { Array.from( html.baseElement.querySelectorAll<HTMLDivElement>( 'div.ant-pro-sider-collapsed-button', ), ).map((item) => item?.click()); }); await waitForWaitTime(1000); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(0); act(() => { Array.from( html.baseElement.querySelectorAll<HTMLDivElement>( 'div.ant-pro-sider-collapsed-button', ), ).map((item) => item?.click()); }); await waitForWaitTime(1000); expect(onCollapse).toBeCalledTimes(2); expect( html.baseElement.querySelectorAll('li.ant-menu-submenu-open').length, ).toBe(2); }); it('🥩 ProLayout support suppressSiderWhenMenuEmpty', async () => { const handleClick = vi.fn(); let serviceData = [ { path: '/', name: '欢迎', routes: [ { path: '/welcome', name: 'one', routes: [ { path: '/welcome/welcome', name: 'two', exact: true, }, ], }, ], }, { path: '/demo', name: '例子', }, ]; const actionRef = React.createRef<{ reload: () => void; }>(); const html = render( <ProLayout // @ts-ignore actionRef={actionRef} suppressSiderWhenMenuEmpty location={{ pathname: '/' }} menu={{ request: async () => { return serviceData; }, }} > <Button id="test_btn" onClick={() => { handleClick(); serviceData = []; actionRef.current?.reload(); }} > 刷新菜单 </Button> </ProLayout>, ); await waitForWaitTime(1000); expect(html.baseElement.querySelectorAll('.ant-layout-sider').length).toBe( 1, ); act(() => { html.baseElement.querySelector<HTMLDivElement>('#test_btn')?.click(); }); await waitForWaitTime(1000); expect(handleClick).toHaveBeenCalled(); expect(html.baseElement.querySelectorAll('.ant-layout-sider').length).toBe( 0, ); }); });
9,161
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/mobile.test.tsx
import { ProLayout } from '@ant-design/pro-components'; import { act, cleanup, render, waitFor } from '@testing-library/react'; import defaultProps from './defaultProps'; afterEach(() => { cleanup(); }); describe('mobile BasicLayout', () => { beforeAll(() => { process.env.NODE_ENV = 'TEST'; process.env.USE_MEDIA = 'xs'; Object.defineProperty(global.window, 'matchMedia', { value: vi.fn((query) => { // (max-width: 575px) return { media: query, matches: query.includes('max-width: 575px'), addListener: vi.fn(), removeListener: vi.fn(), }; }), }); }); afterAll(() => { process.env.USE_MEDIA = 'md'; process.env.NODE_ENV = 'dev'; }); it('📱 base use', async () => { const html = render( <ProLayout {...defaultProps} getContainer={false} onCollapse={() => {}}> welcome </ProLayout>, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 collapsed=false', async () => { const html = render( <ProLayout {...defaultProps} getContainer={false} collapsed={false} />, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 layout=mix', async () => { const html = render( <ProLayout {...defaultProps} getContainer={false} layout="mix" collapsed={false} />, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 layout=mix and splitMenus', async () => { const html = render( <ProLayout {...defaultProps} splitMenus getContainer={false} layout="mix" collapsed={false} />, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 layout menuHeaderRender=false', async () => { const html = render( <ProLayout {...defaultProps} collapsed getContainer={false} layout="mix" menuHeaderRender={false} > welcome </ProLayout>, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 layout menuHeaderRender', async () => { const html = render( <ProLayout {...defaultProps} collapsed getContainer={false} layout="mix" menuHeaderRender={() => 'title'} > welcome </ProLayout>, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 layout menuHeaderRender', async () => { const html = render( <ProLayout {...defaultProps} collapsed getContainer={false} layout="mix" menuHeaderRender={() => 'title'} > welcome </ProLayout>, ); await waitFor(async () => { await html.findAllByText('welcome'); }); expect(html.asFragment()).toMatchSnapshot(); }); it('📱 layout collapsedButtonRender', async () => { const onCollapse = vi.fn(); const html = render( <ProLayout {...defaultProps} onCollapse={onCollapse} collapsed={false} collapsedButtonRender={() => { return 'div'; }} getContainer={false} layout="mix" />, ); await waitFor(async () => { await html.findAllByText('div'); }); act(() => { html.baseElement ?.querySelector<HTMLSpanElement>( 'span.ant-pro-global-header-collapsed-button', ) ?.click(); }); await waitFor(async () => { await html.findAllByText('welcome'); }); act(() => { html.baseElement ?.querySelector<HTMLDivElement>('div.ant-drawer-mask') ?.click(); }); await waitFor(async () => { await html.findAllByText('welcome'); }); waitFor(() => { expect(onCollapse).toHaveBeenCalled(); }); }); });
9,162
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/pageContainer.test.tsx
import { FooterToolbar, PageContainer, ProLayout, } from '@ant-design/pro-components'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { Button } from 'antd'; import React, { useEffect, useMemo, useState } from 'react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('PageContainer', () => { it('💄 base use', async () => { const wrapper = render(<PageContainer title="期贤" />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('💄 config is null', async () => { const wrapper = render(<PageContainer />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('💄 title,ghost,header,breadcrumbRender = false', async () => { const { container } = render( <PageContainer title={false} ghost={false} header={undefined} breadcrumbRender={false} > qixian </PageContainer>, ); expect(!!container.querySelectorAll('.ant-page-header').length).toBeFalsy(); }); it('💄 has PageContainer className', async () => { const Demo = () => { const [state, setState] = useState(0); return ( <ProLayout> <Button onClick={() => { setState((num) => num + 1); }} > 切换 </Button> {state > 0 && state < 3 ? ( <PageContainer title={false} ghost={false} header={undefined} breadcrumbRender={false} > qixian </PageContainer> ) : null} {state > 1 && state < 4 ? ( <PageContainer title={false} ghost={false} header={undefined} breadcrumbRender={false} > qixian2 </PageContainer> ) : null} </ProLayout> ); }; const html = render(<Demo />); expect( !!html.baseElement.querySelector( '.ant-pro-layout-content-has-page-container', ), ).toBeFalsy(); await act(async () => { (await html.findByText('切 换'))?.click?.(); }); expect( !!html.baseElement.querySelector( '.ant-pro-layout-content-has-page-container', ), ).toBeTruthy(); await act(async () => { (await html.findByText('切 换'))?.click?.(); }); expect( !!html.baseElement.querySelector( '.ant-pro-layout-content-has-page-container', ), ).toBeTruthy(); await act(async () => { (await html.findByText('切 换'))?.click?.(); }); expect( !!html.baseElement.querySelector( '.ant-pro-layout-content-has-page-container', ), ).toBeTruthy(); await act(async () => { (await html.findByText('切 换'))?.click?.(); }); expect( !!html.baseElement.querySelector( 'ant-pro-layout-content-has-page-container', ), ).toBeFalsy(); }); it('💄 pageContainer support breadcrumbRender', async () => { const { container } = render( <PageContainer breadcrumbRender={() => <div>这里是面包屑</div>}> content </PageContainer>, ); expect( container .querySelectorAll('.ant-page-header-has-breadcrumb')[0] .querySelector('div'), ).toHaveTextContent('这里是面包屑'); }); it('💄 pageContainer support tabBarExtraContent', async () => { const { container } = render( <PageContainer tabBarExtraContent="测试">content</PageContainer>, ); expect( container.querySelectorAll('.ant-tabs-extra-content')[0], ).toHaveTextContent('测试'); }); it('⚡️ support footer', async () => { const { container } = render( <PageContainer title="期贤" footer={[ <button type="button" key="button"> right </button>, ]} />, ); expect( container.querySelectorAll('.ant-pro-page-container-with-footer'), ).toHaveLength(1); expect(container).toMatchSnapshot(); }); it('⚡️ support fixedHeader', async () => { const html = render(<PageContainer title="期贤" fixedHeader />); expect( html.baseElement.querySelector('.ant-pro-sider-fixed'), ).toMatchSnapshot(); }); it('⚡️ support fixHeader', async () => { const wrapper = render(<PageContainer title="期贤" fixHeader />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('⚡️ support loading', async () => { const html = render(<PageContainer title="期贤" loading />); expect(html.baseElement.querySelector('.ant-skeleton')).toMatchSnapshot(); }); it('⚡️ support more loading props', async () => { const wrapper = render( <PageContainer title="期贤" loading={{ spinning: true, tip: '加载中' }} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🔥 support footer and breadcrumb', async () => { const wrapper = render( <PageContainer title="期贤" breadcrumb={{ items: [ { path: '/', title: 'home', }, ], }} footer={[ <button key="right" type="button"> right </button>, ]} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🔥 footer bar support extra', async () => { const wrapper = render( <FooterToolbar className="qixian_footer" extra={ <img src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" alt="logo" /> } > <button key="button" type="button"> right </button> </FooterToolbar>, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🔥 footer bar support renderContent', async () => { const wrapper = render( <FooterToolbar className="qixian_footer" extra={ <img src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" alt="logo" /> } renderContent={() => { return 'home_toolbar'; }} > <button key="button" type="button"> right </button> </FooterToolbar>, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🐲 footer should know width', async () => { const { container, rerender } = render( <ProLayout> <PageContainer title="期贤" footer={[ <button type="button" key="button"> qixian </button>, ]} /> </ProLayout>, ); expect(container.querySelector('.ant-pro-footer-bar')).toHaveStyle( 'width: calc(100% - 256px)', ); rerender( <ProLayout collapsed> <PageContainer title="期贤" footer={[ <button type="button" key="button"> qixian </button>, ]} /> </ProLayout>, ); expect(container.querySelector('.ant-pro-footer-bar')).toHaveStyle( 'width: calc(100% - 64px)', ); rerender( <ProLayout layout="top"> <PageContainer title="期贤" footer={[ <button type="button" key="button"> qixian </button>, ]} /> </ProLayout>, ); expect(container.querySelector('.ant-pro-footer-bar')).toHaveStyle( 'width: 100%', ); expect(container).toMatchSnapshot(); }); it('🐲 FooterToolbar should know width', async () => { const { container, rerender, unmount } = render( <ProLayout> <PageContainer> <FooterToolbar stylish={() => { return { height: '100%', }; }} > <button type="button" key="button"> qixian </button> </FooterToolbar> </PageContainer> </ProLayout>, ); expect(container.querySelector('.ant-pro-footer-bar')).toHaveStyle( 'width: calc(100% - 256px)', ); rerender( <ProLayout collapsed> <PageContainer> <FooterToolbar> <button type="button" key="button"> qixian </button> </FooterToolbar> </PageContainer> </ProLayout>, ); expect(container.querySelector('.ant-pro-footer-bar')).toHaveStyle( 'width: calc(100% - 64px)', ); rerender( <ProLayout layout="top"> <PageContainer> <FooterToolbar> <button type="button" key="button"> qixian </button> </FooterToolbar> </PageContainer> </ProLayout>, ); expect(container.querySelector('.ant-pro-footer-bar')).toHaveStyle( 'width: 100%', ); expect(container).toMatchSnapshot(); // test useUseEffect render function unmount(); }); it('🐲 footer is null, do not render footerToolbar ', async () => { const wrapper = render( <PageContainer footer={[ <button type="button" key="button"> qixian </button>, ]} />, ); await waitForWaitTime(100); act(() => { expect(wrapper.asFragment()).toMatchSnapshot(); }); act(() => { wrapper.rerender(<PageContainer />); }); await waitForWaitTime(100); act(() => { expect(wrapper.asFragment()).toMatchSnapshot(); }); }); it('🐲 pro-layout support breadcrumbProps', async () => { const wrapper = render( <ProLayout breadcrumbProps={{ separator: '>', items: [ { path: 'index', title: 'home', }, { path: 'first', title: 'first', children: [ { path: '/general', title: 'General', }, { path: '/layout', title: 'Layout', }, { path: '/navigation', title: 'Navigation', }, ], }, { path: 'second', title: 'second', }, ], }} > <PageContainer /> </ProLayout>, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🐲 header.footer is null, do not render footerToolbar ', async () => { const { container, rerender } = render( <PageContainer footer={[ <button type="button" key="button"> qixian </button>, ]} />, ); expect(container.querySelector('.ant-pro-footer-bar')).toBeTruthy(); rerender(<PageContainer footer={undefined} />); expect(container.querySelector('.ant-pro-footer-bar')).toBeFalsy(); }); it('🐲 tabList and onTabChange is run', async () => { const fn = vi.fn(); const { container } = render( <PageContainer title="标题" onTabChange={fn} tabList={[ { tab: '基本信息', key: 'base', }, { tab: '详细信息', key: 'info', }, ]} />, ); fireEvent.click( container.querySelectorAll('.ant-tabs-nav-list .ant-tabs-tab')[1], ); await waitFor(() => { expect(fn).toBeCalledWith('info'); }); }); it('🐲 content is text and title is null', () => { const wrapper = render(<PageContainer content="just so so" />); expect(wrapper.asFragment()).toMatchSnapshot(); const html2 = render( <PageContainer extraContent={<div>extraContent</div>} />, ); expect(html2.asFragment()).toMatchSnapshot(); }); it('🐛 className prop should not be passed to its page header, fix #3493', async () => { const { container } = render( <PageContainer className="custom-className" header={{ title: '页面标题', }} />, ); expect(container.querySelectorAll('.custom-className')).toHaveLength(1); expect(container).toMatchSnapshot(); }); it('🌛 PageContainer with custom loading', async () => { const App = () => { const loadingDom = useMemo( () => ( <div id="customLoading" style={{ color: 'red', padding: '30px', textAlign: 'center' }} > 自定义加载... </div> ), [], ); const [loading, setLoading] = useState<React.ReactNode | false>( loadingDom, ); useEffect(() => { setTimeout(() => { setLoading(false); }, 600); }, []); return ( <PageContainer loading={loading} className="custom-className" header={{ title: '页面标题', }} /> ); }; const wrapper = render(<App />); await waitForWaitTime(100); expect(wrapper.baseElement.querySelectorAll('#customLoading').length).toBe( 1, ); expect(wrapper.asFragment()).toMatchSnapshot(); await waitForWaitTime(1000); expect(wrapper.baseElement.querySelectorAll('#customLoading').length).toBe( 0, ); }); it('🐛 breadcrumbRender and restProps?.header?.breadcrumbRender', async () => { const html = render( <PageContainer className="custom-className" breadcrumbRender={false} header={{ breadcrumbRender: () => 'diss', }} />, ); expect(html.container.innerText).toBe(undefined); html.rerender( <PageContainer className="custom-className" header={{ breadcrumbRender: () => 'diss', }} />, ); expect( html.container.getElementsByClassName('ant-page-header-has-breadcrumb')[0] .innerHTML, ).toBe('diss'); }); });
9,163
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/pageHeaderWarp.test.tsx
import { PageContainer, ProLayout } from '@ant-design/pro-components'; import { cleanup, render } from '@testing-library/react'; import { ActionsContent } from '../../packages/layout/src/components/GlobalHeader/ActionsContent'; import defaultProps from './defaultProps'; afterEach(() => { cleanup(); }); describe('BasicLayout', () => { it('base use', () => { const { container } = render( <ProLayout {...defaultProps}> <PageContainer /> </ProLayout>, ); expect(container).toMatchSnapshot(); }); it('content is text', () => { const { container } = render( <ProLayout {...defaultProps}> <PageContainer content="just so so" /> </ProLayout>, ); expect(container).toMatchSnapshot(); }); it('title=false, don not render title view', async () => { const { container } = render( <ProLayout {...defaultProps}> <PageContainer title={false} /> </ProLayout>, ); expect( container.querySelectorAll('.ant-page-header-heading-title'), ).toHaveLength(0); }); it('have default title', async () => { const { container } = render( <ProLayout {...defaultProps}> <PageContainer /> </ProLayout>, ); expect( container.querySelector('.ant-page-header-heading-title')!.innerHTML, ).toEqual('welcome'); }); it('title overrides the default title', async () => { const { container } = render( <ProLayout {...defaultProps}> <PageContainer title="name" /> </ProLayout>, ); expect( container.querySelector('.ant-page-header-heading-title')!.innerHTML, ).toEqual('name'); }); it('with default prefixCls props TopNavHeader', async () => { const { rerender, container } = render( <ProLayout {...defaultProps} layout="mix" splitMenus isMobile={false} headerContentRender={() => <span />} rightContentRender={() => <span />} > <PageContainer title="name" /> </ProLayout>, ); rerender( <ProLayout {...defaultProps} layout="mix" splitMenus isMobile={false} headerContentRender={() => <span />} rightContentRender={() => ( <div style={{ width: 200, }} > xx </div> )} > <PageContainer title="name" /> </ProLayout>, ); const domHeader = container.querySelector('.ant-pro-top-nav-header-logo'); expect(!!domHeader).toBe(true); }); it('without custom prefixCls props TopNavHeader', async () => { const prefixCls = 'ant-oh-pro'; const { container } = render( <ProLayout {...defaultProps} layout="top" prefixCls={prefixCls}> <PageContainer title="name" /> </ProLayout>, ); const domHeader = container.querySelector( `.${prefixCls}-top-nav-header-logo`, )!; expect(!!domHeader).toBe(true); }); it('pageHeaderRender return false', async () => { const { container, unmount } = render( <ProLayout {...defaultProps} layout="top"> <PageContainer title="name" pageHeaderRender={() => null} /> </ProLayout>, ); const domHeader = container.querySelector('ant-page-header'); expect(!!domHeader).toBeFalsy(); unmount(); }); it('pageHeaderRender is false', async () => { const { container, unmount } = render( <ProLayout {...defaultProps} layout="top"> <PageContainer title="name" pageHeaderRender={false} /> </ProLayout>, ); const domHeader = container.querySelector('ant-page-header'); expect(!!domHeader).toBeFalsy(); unmount(); }); it('ActionsContent support contentRender', async () => { const { container, unmount } = render( <ActionsContent rightContentRender={false} />, ); expect(container).toMatchSnapshot(); unmount(); }); });
9,164
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/settingDrawer.test.tsx
import { SettingDrawer } from '@ant-design/pro-components'; import { act, cleanup, fireEvent, render, waitFor, } from '@testing-library/react'; import { defaultSettings } from './defaultSettings'; afterEach(() => { cleanup(); }); describe('settingDrawer.test', () => { beforeAll(() => { process.env.NODE_ENV = 'TEST'; process.env.USE_MEDIA = 'md'; Object.defineProperty(window, 'navigator', { value: { userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4437.0 Safari/537.36 Edg/91.0.831.1', clipboard: { writeText: async () => { return true; }, }, }, }); }); it('🌺 base user', () => { const html = render( <SettingDrawer disableUrlParams settings={defaultSettings} getContainer={false} collapse />, ); expect(html.asFragment()).toMatchSnapshot(); }); it('🌺 settings = undefined', () => { const html = render( <SettingDrawer disableUrlParams settings={undefined as any} getContainer={false} collapse />, ); expect(html.asFragment()).toMatchSnapshot(); }); it('🌺 hideColors = true', () => { const html = render( <SettingDrawer disableUrlParams settings={defaultSettings} colorList={false} getContainer={false} collapse />, ); expect(html.asFragment()).toMatchSnapshot(); }); it('🌺 colorList key is undefined', () => { render( <SettingDrawer disableUrlParams settings={defaultSettings} colorList={[ { key: '', color: 'red', }, ]} getContainer={false} collapse />, ); }); it('🌺 theme color Change', async () => { const onSettingChange = vi.fn(); const colorList = [ { key: 'dust', color: '#F5222D' }, { key: 'volcano', color: '#FA541C' }, { key: 'sunset', color: '#FAAD14' }, { key: 'cyan', color: '#13C2C2' }, { key: 'green', color: '#52C41A' }, { key: 'geekblue', color: '#2F54EB' }, { key: 'purple', color: '#722ED1' }, { key: 'qixian', color: '#F52225' }, { key: 'test', color: '#722ED2' }, ]; const { container, unmount } = render( <SettingDrawer disableUrlParams colorList={colorList} settings={defaultSettings} collapse getContainer={false} onSettingChange={(setting) => onSettingChange(setting.colorPrimary)} />, ); fireEvent.click( container.querySelectorAll( 'div.ant-pro-setting-drawer-theme-color-block', )[0], ); expect(onSettingChange).toBeCalledWith('#1677FF'); fireEvent.click( container.querySelectorAll( 'div.ant-pro-setting-drawer-theme-color-block', )[1], ); expect(onSettingChange).toBeCalledWith('#F5222D'); expect( container.querySelectorAll( 'div.ant-pro-setting-drawer-theme-color-block', ), ).toHaveLength(9); unmount(); }); it('🌺 hideHintAlert = true', () => { const html = render( <SettingDrawer disableUrlParams settings={defaultSettings} hideHintAlert getContainer={false} collapse />, ); expect(html.asFragment()).toMatchSnapshot(); }); it('🌺 initState form query', async () => { const fn = vi.fn(); const { container, unmount } = render( <div> <SettingDrawer disableUrlParams={false} getContainer={false} collapse onSettingChange={(setting) => { fn(setting); }} /> </div>, ); fireEvent.click(container.querySelector('.ant-btn.ant-btn-block')!); fireEvent.click(container.querySelector('div.ant-drawer-mask')!); expect(fn).toBeCalled(); expect(fn).toBeCalledWith({ navTheme: 'realDark', layout: 'mix', contentWidth: 'Fluid', fixedHeader: true, fixSiderbar: true, colorPrimary: '#1677FF', splitMenus: false, }); unmount(); }); it('🌺 hideCopyButton = true', () => { const html = render( <SettingDrawer disableUrlParams settings={defaultSettings} hideCopyButton getContainer={false} collapse />, ); expect(html.asFragment()).toMatchSnapshot(); }); it('🌺 clipboard throw error', async () => { Object.defineProperty(window, 'navigator', { value: { userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4437.0 Safari/537.36 Edg/91.0.831.1', clipboard: { writeText: async () => { throw new Error('error'); }, }, }, }); const fn = vi.fn(); const { container, unmount } = render( <SettingDrawer disableUrlParams getContainer={false} collapse onSettingChange={() => { fn(); }} />, ); fireEvent.click(container.querySelector('.ant-btn.ant-btn-block')!); expect(fn).toBeCalled(); unmount(); }); it('🌺 onCollapseChange', async () => { const onCollapseChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams settings={{ ...defaultSettings, // @ts-ignore menuRender: true, footerRender: false, }} collapse getContainer={false} onCollapseChange={onCollapseChange} />, ); fireEvent.click(container.querySelector('.ant-pro-setting-drawer-handle')!); expect(onCollapseChange).toHaveBeenCalled(); }); it('🌺 onLayout Change', async () => { const onSettingChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams settings={defaultSettings} collapse getContainer={false} onSettingChange={(setting) => onSettingChange(setting.layout)} />, ); fireEvent.click( container.querySelectorAll( 'div.ant-pro-setting-drawer-block-checkbox-layout-item', )[2], ); expect(onSettingChange).toBeCalledWith('mix'); fireEvent.click( container.querySelectorAll( 'div.ant-pro-setting-drawer-block-checkbox-layout-item', )[1], ); expect(onSettingChange).toBeCalledWith('top'); }); it('🌺 fix-siderbar Change', async () => { const onSettingChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams collapse getContainer={false} onSettingChange={(setting) => { onSettingChange(setting.fixSiderbar); }} />, ); fireEvent.click(container.querySelector('button.fix-siderbar')!); expect(onSettingChange).toBeCalledWith(true); fireEvent.click(container.querySelector('button.fix-siderbar')!); expect(onSettingChange).toBeCalledWith(false); }); it('🌺 content-width change', async () => { const onSettingChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams collapse settings={{ layout: 'top', }} getContainer={false} onSettingChange={(setting) => { onSettingChange(setting.contentWidth); }} />, ); fireEvent.mouseDown( container .querySelector('div.ant-select.content-width')! .querySelector('.ant-select-selector')!, ); expect(onSettingChange).toBeCalledWith('Fluid'); }); it('🌺 splitMenu change', async () => { const onSettingChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams collapse settings={{ layout: 'mix', }} getContainer={false} onSettingChange={(setting) => { onSettingChange(setting.splitMenus); }} />, ); fireEvent.click(container.querySelector('button.split-menus')!); expect(onSettingChange).toBeCalledWith(true); }); it('🌺 fixed-header Change', async () => { const onSettingChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams collapse getContainer={false} onSettingChange={(setting) => { onSettingChange(setting.fixedHeader); }} />, ); fireEvent.click(container.querySelector('button.fixed-header')!); expect(onSettingChange).toBeCalledWith(true); fireEvent.click(container.querySelector('button.fixed-header')!); expect(onSettingChange).toBeCalledWith(false); }); it('🌺 theme Change', async () => { const onSettingChange = vi.fn(); const { container } = render( <SettingDrawer disableUrlParams settings={defaultSettings} collapse enableDarkTheme getContainer={false} onSettingChange={(setting) => onSettingChange(setting.navTheme)} />, ); fireEvent.click( container.querySelectorAll( 'div.ant-pro-setting-drawer-block-checkbox-theme-item', )[0], ); expect(onSettingChange).toBeCalledWith('light'); fireEvent.click( container.querySelectorAll( 'div.ant-pro-setting-drawer-block-checkbox-theme-item', )[1], ); expect(onSettingChange).toBeCalledWith('realDark'); }); it('🌺 colorWeak Change', async () => { const onSettingChange = vi.fn(); document.body.appendChild(document.createElement('div')); const { container, rerender } = render( <SettingDrawer disableUrlParams colorList={[]} settings={{ ...defaultSettings, navTheme: 'realDark', menuRender: false, }} collapse getContainer={false} onSettingChange={(setting) => { onSettingChange(setting.colorWeak); }} />, ); fireEvent.click(container.querySelector('button.color-weak')!); expect(onSettingChange).toBeCalledWith(true); rerender( <SettingDrawer disableUrlParams colorList={[]} settings={{ ...defaultSettings, colorWeak: true }} collapse getContainer={false} onSettingChange={(setting) => { onSettingChange(setting.colorWeak); }} />, ); fireEvent.click(container.querySelector('button.color-weak')!); expect(onSettingChange).toBeCalledWith(false); }); ['header', 'footer', 'menu', 'menuHeader'].map((key) => { it(`🌺 ${key} regional config change`, async () => { const fn = vi.fn(); const { container, unmount } = render( <SettingDrawer disableUrlParams onSettingChange={(s) => { if (s[`${key}Render` as 'headerRender'] === false) { fn(key); } }} getContainer={false} collapse />, ); fireEvent.click(container.querySelector(`button.regional-${key}`)!); expect(fn).toBeCalledWith(key); unmount(); }); }); it('🌺 onLanguageChange support', async () => { let fn: Function | null = null; const addEventListenerSpy = vi .spyOn(document, 'addEventListener') .mockImplementation((eventName, eventFn) => { if (eventName === 'languagechange') { //@ts-expect-error fn = eventFn; } }); const html = render( <SettingDrawer disableUrlParams settings={defaultSettings} getContainer={false} collapse />, ); await html.findAllByText('整体风格设置'); act(() => { window.localStorage.setItem('umi_locale', 'en-US'); }); act(() => { fn?.(); html.rerender( <SettingDrawer disableUrlParams settings={defaultSettings} getContainer={false} collapse />, ); }); addEventListenerSpy.mockRestore(); await waitFor(() => { expect( ( html.baseElement.querySelectorAll( '.ant-pro-setting-drawer-body-title', )[0] as HTMLHeadingElement ).textContent, ).toEqual('Page style setting'); }); html.unmount(); window.localStorage.setItem('umi_locale', 'zh-CN'); }); });
9,165
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/settings.test.tsx
import { ProLayout } from '@ant-design/pro-components'; import { cleanup, render } from '@testing-library/react'; import { waitForWaitTime } from '../util'; afterEach(() => { cleanup(); }); describe('settings.test', () => { it('set title', async () => { const wrapper = render(<ProLayout title="test-title" />); await waitForWaitTime(160); expect(wrapper.getAllByText('test-title')).toBeTruthy(); wrapper.rerender(<ProLayout title="test-title-2" />); expect(wrapper.getAllByText('test-title-2')).toBeTruthy(); wrapper.unmount(); }); // it('RightContent resize', async () => { // //@ts-ignore // const html = render( // <ProLayout // actionsRender={(renProps) => { // return [ // <div // key="resize" // id="resize" // style={{ // width: 160, // }} // > // { // //@ts-ignore // renProps.rightContentSize // } // </div>, // ]; // }} // layout="top" // />, // ); // await waitForWaitTime(1000); // const dom = html.container.querySelector('#resize'); // // @ts-ignore // dom.getBoundingClientRect = () => { // return { // x: 0, // y: 0, // bottom: 0, // height: 0, // left: 0, // right: 0, // top: 0, // width: 200, // }; // }; // /** 复制一下方法,方便使用 */ // // 为了mock 好辛苦 // _el.forEach((value) => { // _el.set(dom!, value); // }); // act(() => { // _rs([ // // @ts-ignore // { // target: dom!, // }, // ]); // }); // await waitForWaitTime(1000); // expect(html.container.querySelector('#resize')?.textContent).toBe('200'); // // @ts-ignore // dom.getBoundingClientRect = () => { // return { // x: 0, // y: 0, // bottom: 0, // height: 0, // left: 0, // right: 0, // top: 0, // width: 100, // }; // }; // /** 复制一下方法,方便使用 */ // // 为了mock 好辛苦 // _el.forEach((value) => { // _el.set(dom!, value); // }); // act(() => { // _rs([ // // @ts-ignore // { // target: dom!, // }, // ]); // }); // await waitForWaitTime(1000); // expect(html.container.querySelector('#resize')?.textContent).toBe('100'); // }); });
9,166
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/layout/waterMark.test.tsx
/* eslint-disable @typescript-eslint/ban-types */ import { WaterMark } from '@ant-design/pro-components'; import { act, cleanup, render } from '@testing-library/react'; afterEach(() => { cleanup(); }); describe('WaterMark', () => { it('test image watermark', async () => { let onloadRef: Function | undefined; Object.defineProperty(Image.prototype, 'onload', { get() { // eslint-disable-next-line no-underscore-dangle return this._onload; }, set(onload: Function) { // eslint-disable-next-line @typescript-eslint/no-unused-vars onloadRef = onload; // eslint-disable-next-line no-underscore-dangle this._onload = onload; }, }); const { container, unmount } = render( <WaterMark rotate={0} image="https://img.alicdn.com/tfs/TB1YM3LpipE_u4jSZKbXXbCUVXa-280-128.png" > <div style={{ height: 500 }}>123</div> </WaterMark>, ); act(() => { onloadRef?.(); }); expect(container).toMatchSnapshot(); unmount(); }); it('test text watermark', () => { const wrapper = render( <WaterMark content="Trusple"> <div style={{ height: 500 }} /> </WaterMark>, ); expect(wrapper.asFragment()).toMatchSnapshot(); wrapper.unmount(); }); it('test image watermark', async () => { const spy = vi.spyOn(global.console, 'error'); const createElement = document.createElement.bind(document); // @ts-ignore document.createElement = (tagName: string) => { if (tagName === 'canvas') { return { setAttribute: () => null, getContext: () => null, measureText: () => ({}), }; } return createElement(tagName); }; const { unmount } = render( <WaterMark rotate={0} image="https://img.alicdn.com/tfs/TB1YM3LpipE_u4jSZKbXXbCUVXa-280-128.png" > <div style={{ height: 500 }}>123</div> </WaterMark>, ); expect(spy.mock.calls).toEqual([['当前环境不支持Canvas']]); unmount(); spy.mockRestore(); }); });
9,167
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/PageHeader.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`PageContainer > pageHeader should not render blank dom 1`] = ` <div class="ant-page-header-no-children" /> `; exports[`PageContainer > pageHeader should render correctly int RTL direction 1`] = ` <div class="ant-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="Page Title" > Page Title </span> </div> </div> </div> `; exports[`PageContainer > pageHeader should support className 1`] = ` <div class="ant-page-header not-works ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="Page Title" > Page Title </span> </div> </div> </div> `; exports[`PageContainer > 💄 base use 1`] = ` <DocumentFragment> <div class="ant-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> </DocumentFragment> `;
9,168
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`layout demos > 📸 renders ./packages/layout/src/components/PageContainer/demos/basic.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(245, 247, 250);" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-has-footer ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > 一级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#//" > 二级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#///" > 当前页面 </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="页面标题" > 页面标题 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 次要按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 次要按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主要按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default ant-dropdown-trigger" style="padding: 0px 8px;" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> </span> </div> <div class="ant-page-header-footer" > <div class="ant-tabs ant-tabs-top ant-tabs-editable ant-tabs-card ant-tabs-editable-card ant-pro-page-container-tabs" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="base" > <div aria-controls="rc-tabs-test-panel-base" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-base" role="tab" tabindex="0" > 基本信息 </div> </div> <div class="ant-tabs-tab ant-tabs-tab-with-remove" data-node-key="info" > <div aria-controls="rc-tabs-test-panel-info" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-info" role="tab" tabindex="0" > 详细信息 </div> <button aria-label="remove" class="ant-tabs-tab-remove" tabindex="0" type="button" > <span aria-label="close" class="anticon anticon-close" role="img" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </button> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> <div class="ant-tabs-extra-content" > 测试tabBarExtraContent </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-base" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-base" role="tabpanel" tabindex="0" /> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" style="height: 200px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-16" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-8" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/PageContainer/demos/fixHeader.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(245, 247, 250);" > <div class="ant-pro-page-container ant-pro-page-container-with-affix" > <div class="ant-pro-page-container-affix" > <div class="" > <div class="ant-pro-page-container-warp" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-has-footer ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > 一级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#//" > 二级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#///" > 当前页面 </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="页面标题" > 页面标题 </span> </div> </div> <div class="ant-page-header-footer" > <div class="ant-tabs ant-tabs-top ant-pro-page-container-tabs" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="1" > <div aria-controls="rc-tabs-test-panel-1" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-1" role="tab" tabindex="0" > 已选择 </div> </div> <div class="ant-tabs-tab" data-node-key="2" > <div aria-controls="rc-tabs-test-panel-2" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-2" role="tab" tabindex="0" > 可点击 </div> </div> <div class="ant-tabs-tab ant-tabs-tab-disabled" data-node-key="3" > <div aria-controls="rc-tabs-test-panel-3" aria-disabled="true" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-3" role="tab" > 禁用 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-1" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-1" role="tabpanel" tabindex="0" /> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-16" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-8" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> </div> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-8" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-16" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/PageContainer/demos/hideBreadMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(245, 247, 250);" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="页面标题" > 页面标题 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > <div class="ant-descriptions" style="margin-block-end: -16px;" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 创建人 </span> <span class="ant-descriptions-item-content" > 曲丽丽 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 关联表单 </span> <span class="ant-descriptions-item-content" > <a> 421421 </a> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 创建时间 </span> <span class="ant-descriptions-item-content" > 2017-01-10 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 单据备注 </span> <span class="ant-descriptions-item-content" > 浙江省杭州市西湖区工专路 </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" style="height: 200px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-16" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-8" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/PageContainer/demos/loading.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); min-height: 100vh; background: rgb(245, 247, 250); display: flex; flex-direction: column; gap: 24px; padding: 24px;" > <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > 一级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#//" > 二级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#///" > 当前页面 </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="默认loading" > 默认loading </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div style="padding-block-start: 100px; text-align: center;" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > 一级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#//" > 二级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#///" > 当前页面 </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="自定义loading属性" > 自定义loading属性 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div style="padding-block-start: 100px; text-align: center;" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning ant-spin-show-text customClassName" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > 一级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#//" > 二级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#///" > 当前页面 </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="自定义loading,3s后显示内容" > 自定义loading,3s后显示内容 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div style="color: red; padding: 30px; text-align: center;" > 自定义加载... </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/PageContainer/demos/token.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(245, 247, 250);" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > 一级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#//" > 二级页面 </a> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <a class="ant-breadcrumb-link" href="#///" > 当前页面 </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="页面标题" > 页面标题 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 次要按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 次要按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主要按钮 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default ant-dropdown-trigger" style="padding: 0px 8px;" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-table" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" /> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div class="ant-pro-table-list-toolbar-setting-items" > <div class="ant-pro-table-list-toolbar-setting-item" > <span> <span aria-label="reload" class="anticon anticon-reload" role="img" > <svg aria-hidden="true" data-icon="reload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" /> </svg> </span> </span> </div> <div class="ant-pro-table-list-toolbar-setting-item" > <span> <span aria-label="column-height" class="anticon anticon-column-height ant-dropdown-trigger" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="column-height" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" /> </svg> </span> </span> </div> <div class="ant-pro-table-list-toolbar-setting-item" > <span aria-label="setting" class="anticon anticon-setting" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-middle ant-table-empty" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: auto;" > <colgroup /> <thead class="ant-table-thead" > <tr> <td class="ant-table-cell" /> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-placeholder" > <td class="ant-table-cell" > <div class="ant-empty ant-empty-normal" > <div class="ant-empty-image" > <svg height="41" viewBox="0 0 64 41" width="64" xmlns="http://www.w3.org/2000/svg" > <g fill="none" fill-rule="evenodd" transform="translate(0 1)" > <ellipse cx="32" cy="33" fill="#f5f5f5" rx="32" ry="7" /> <g fill-rule="nonzero" stroke="#d9d9d9" > <path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" /> <path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa" /> </g> </g> </svg> </div> <div class="ant-empty-description" > 暂无数据 </div> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/WaterMark/demos/custom.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-vertical ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-card ant-pro-card-border ant-pro-card-contain-card ant-pro-card-split" > <div class="ant-pro-card-header ant-pro-card-header-border" > <div class="ant-pro-card-title" > 水印自定义配置器 </div> </div> <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-split-vertical" style="width: 70%; flex-shrink: 0;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" > <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div> <p> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quisquam aliquid perferendis, adipisci dolorum officia odio natus facere cumque iusto libero repellendus praesentium ipsa cupiditate iure autem eos repudiandae delectus totam? </p> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo praesentium, aperiam numquam voluptatibus asperiores odio? Doloribus saepe, eligendi facere inventore culpa, exercitationem explicabo earum laborum deleniti reiciendis deserunt accusantium ullam. </p> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia voluptas numquam impedit architecto facilis aliquam at assumenda, nostrum explicabo accusantium ipsam error provident voluptate molestias magnam quisquam excepturi illum sit! </p> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Aperiam, accusantium quo corporis fugit possimus quaerat ad consequatur veniam voluptatum ut cumque illo beatae. Magni assumenda eligendi itaque eum voluptate non! </p> </div> <h4> 下面是一张zIndex 为 10 的 position 为 relative 图片, <br /> 如果要在图片中展示水印尝试调大右侧的 zIndex 滑块试试。 </h4> <img alt="示例图片" src="https://gw.alipayobjects.com/zos/bmw-prod/d283f09a-64d6-4d59-bfc7-37b49ea0da2b.svg" style="z-index: 10; max-width: 100%; position: relative;" width="600" /> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> </div> </div> <div class="ant-pro-card-col" > <div class="ant-pro-card" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 配置面板 </div> </div> <div class="ant-pro-card-body" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="content" title="水印文字" > 水印文字 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" > <input class="ant-input" id="content" placeholder="请输入" type="text" value="示例水印" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="fontColor" title="字体颜色" > 字体颜色 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-color-picker-trigger ant-pro-field-color-picker" id="fontColor" style="display: table-cell; width: 100%;" > <div class="ant-color-picker-color-block" > <div class="ant-color-picker-color-block-inner" style="background: rgba(0, 0, 0, 0.15);" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="fontSize" title="字体大小" > 字体大小 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-slider ant-slider-horizontal" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 16%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="16" class="ant-slider-handle" role="slider" style="left: 16%; transform: translateX(-50%);" tabindex="0" /> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="zIndex" title="zIndex" > zIndex </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-slider ant-slider-horizontal" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 9%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="100" aria-valuemin="0" aria-valuenow="9" class="ant-slider-handle" role="slider" style="left: 9%; transform: translateX(-50%);" tabindex="0" /> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="rotate" title="旋转角度" > 旋转角度 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-slider ant-slider-horizontal" style="min-width: 120px;" > <div class="ant-slider-rail" /> <div class="ant-slider-track" style="left: 0%; width: 37.77777777777778%;" /> <div class="ant-slider-step" /> <div aria-disabled="false" aria-orientation="horizontal" aria-valuemax="90" aria-valuemin="-90" aria-valuenow="-22" class="ant-slider-handle" role="slider" style="left: 37.77777777777778%; transform: translateX(-50%);" tabindex="0" /> </div> </div> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <pre style="padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; color: rgba(0, 0, 0, 0.65); font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; background-color: rgba(150, 150, 150, 0.1); border-radius: 3px;" > <code> &lt;WaterMark rotate={-22} content='示例水印' fontColor='rgba(0,0,0,.15)' fontSize={16} zIndex={9} &gt; &lt;div&gt;xxx&lt;/div&gt; &lt;/WaterMark&gt; </code> </pre> </div> </div> </div> </div> </div> </form> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/WaterMark/demos/frontend.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div class="ant-pro-table" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 标签 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div class="ant-pro-table-list-toolbar-setting-items" > <div class="ant-pro-table-list-toolbar-setting-item" > <span> <span aria-label="reload" class="anticon anticon-reload" role="img" > <svg aria-hidden="true" data-icon="reload" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z" /> </svg> </span> </span> </div> <div class="ant-pro-table-list-toolbar-setting-item" > <span> <span aria-label="column-height" class="anticon anticon-column-height ant-dropdown-trigger" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="column-height" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" /> </svg> </span> </span> </div> <div class="ant-pro-table-list-toolbar-setting-item" > <span aria-label="setting" class="anticon anticon-setting" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </div> <div class="ant-pro-table-list-toolbar-extra-line" > <div class="ant-pro-table-list-toolbar-filter" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle" > 响应日期 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> </div> <div class="ant-table-wrapper" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-table ant-table-middle" > <div class="ant-table-container" > <div class="ant-table-content" > <table style="table-layout: fixed;" > <colgroup> <col style="width: 80px;" /> <col /> <col style="width: 80px;" /> <col style="width: 80px;" /> <col /> <col style="width: 180px;" /> </colgroup> <thead class="ant-table-thead" > <tr> <th class="ant-table-cell" scope="col" > 应用名称 </th> <th aria-label="" class="ant-table-cell ant-table-column-has-sorters" scope="col" style="text-align: right;" tabindex="0" > <div class="ant-table-column-sorters" > <span class="ant-table-column-title" > 容器数量 </span> <span class="ant-table-column-sorter ant-table-column-sorter-full" > <span aria-hidden="true" class="ant-table-column-sorter-inner" > <span aria-label="caret-up" class="anticon anticon-caret-up ant-table-column-sorter-up" role="img" > <svg aria-hidden="true" data-icon="caret-up" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z" /> </svg> </span> <span aria-label="caret-down" class="anticon anticon-caret-down ant-table-column-sorter-down" role="img" > <svg aria-hidden="true" data-icon="caret-down" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" /> </svg> </span> </span> </span> </div> </th> <th class="ant-table-cell" scope="col" > 状态 </th> <th class="ant-table-cell" scope="col" > 创建者 </th> <th class="ant-table-cell ant-table-cell-ellipsis" scope="col" > 备注 </th> <th class="ant-table-cell" scope="col" > 操作 </th> </tr> </thead> <tbody class="ant-table-tbody" > <tr class="ant-table-row ant-table-row-level-0" data-row-key="0" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="简短备注文案" > <span aria-label="简短备注文案" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 简短备注文案 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="1" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" > <span aria-label="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 很长很长很长很长很长很长很长的文字要展示但是要留下尾巴 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="2" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="简短备注文案" > <span aria-label="简短备注文案" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 简短备注文案 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="3" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" > <span aria-label="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 很长很长很长很长很长很长很长的文字要展示但是要留下尾巴 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="4" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="简短备注文案" > <span aria-label="简短备注文案" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 简短备注文案 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="5" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" > <span aria-label="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 很长很长很长很长很长很长很长的文字要展示但是要留下尾巴 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="6" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="简短备注文案" > <span aria-label="简短备注文案" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 简短备注文案 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="7" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" > <span aria-label="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 很长很长很长很长很长很长很长的文字要展示但是要留下尾巴 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="8" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="简短备注文案" > <span aria-label="简短备注文案" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 简短备注文案 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> <tr class="ant-table-row ant-table-row-level-0" data-row-key="9" > <td class="ant-table-cell" > <a> AppName </a> </td> <td class="ant-table-cell" style="text-align: right;" > 16 </td> <td class="ant-table-cell" > <span class="ant-badge ant-badge-status ant-badge-not-a-wrapper" > <span class="ant-badge-status-dot ant-badge-status-default" /> <span class="ant-badge-status-text" > 关闭 </span> </span> </td> <td class="ant-table-cell" > 兼某某 </td> <td class="ant-table-cell ant-table-cell-ellipsis" title="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" > <span aria-label="很长很长很长很长很长很长很长的文字要展示但是要留下尾巴" class="ant-typography ant-typography-ellipsis ant-typography-single-line" style="width: 100%; margin: 0px; padding: 0px;" title="" > 很长很长很长很长很长很长很长的文字要展示但是要留下尾巴 <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; word-break: keep-all; white-space: nowrap;" > lg </span> <span aria-hidden="true" style="position: fixed; display: block; left: 0px; top: 0px; z-index: -9999; visibility: hidden; pointer-events: none; font-size: 0px; width: 0px; white-space: normal; margin: 0px; padding: 0px;" > <span aria-hidden="true" > ... </span> <div aria-label="复制" class="ant-typography-copy" role="button" style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" tabindex="0" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </div> </span> </span> </td> <td class="ant-table-cell" > <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 链路 </a> <a> 报警 </a> <a> 监控 </a> <a class="ant-dropdown-trigger ant-pro-table-dropdown" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </td> </tr> </tbody> </table> </div> </div> </div> <ul class="ant-pagination ant-pagination-mini ant-table-pagination ant-table-pagination-right" > <li class="ant-pagination-total-text" > 第 1-10 条/总共 10 条 </li> <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="上一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="下一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/WaterMark/demos/image.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div style="height: 500px;" > <p> Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quisquam aliquid perferendis, adipisci dolorum officia odio natus facere cumque iusto libero repellendus praesentium ipsa cupiditate iure autem eos repudiandae delectus totam? </p> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo praesentium, aperiam numquam voluptatibus asperiores odio? Doloribus saepe, eligendi facere inventore culpa, exercitationem explicabo earum laborum deleniti reiciendis deserunt accusantium ullam. </p> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia voluptas numquam impedit architecto facilis aliquam at assumenda, nostrum explicabo accusantium ipsam error provident voluptate molestias magnam quisquam excepturi illum sit! </p> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Aperiam, accusantium quo corporis fugit possimus quaerat ad consequatur veniam voluptatum ut cumque illo beatae. Magni assumenda eligendi itaque eum voluptate non! </p> </div> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 327px; pointer-events: none; background-repeat: repeat;" /> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/WaterMark/demos/text.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div style="height: 500px;" /> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/components/WaterMark/demos/textRows.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div style="height: 500px;" /> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/AlwaysDefaultOpenAllMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/BreadcrumbsRepeat.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 主页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 管理 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 申请单列表 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 编辑申请单 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="编辑申请单" > 编辑申请单 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/DefaultOpenAllMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/IconFont.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/MenuGroup.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/MultipleMenuOnePath.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 配置中心 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 产品模板管理 </span> </li> </ol> </nav> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/Nested.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-is-children ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 400px;" > <div class="ant-pro-layout-container" style="position: relative; min-height: 0;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-icon" style="width: 28px; height: 28px; line-height: 28px; font-size: 14px;" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 首页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 概述 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="概述" > 概述 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/TopmenuNested.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh; overflow: auto;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-is-children ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative; min-height: 0;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 首页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 概述 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="概述" > 概述 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/[email protected] correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 500px; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> one </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> two </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="two" > two </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div style="height: 120vh; min-height: 600px;" > Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/api.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <button aria-checked="false" class="ant-switch" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> loading 状态 <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 折叠layout <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 显示菜单 <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 显示折叠按钮 <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 显示顶栏 <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 显示菜单头 <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 显示页脚 <button aria-checked="true" class="ant-switch ant-switch-checked" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 显示顶栏右侧 <button aria-checked="false" class="ant-switch" role="switch" style="margin: 8px;" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> 清爽模式 <br /> <br /> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://avatars1.githubusercontent.com/u/8186664?s=460&v=4" /> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > Hello World </div> </div> </div> </div> </main> <footer class="ant-layout-footer" style="padding: 0px;" > <div class="ant-pro-global-footer" > <div class="ant-pro-global-footer-list" > <a class="ant-pro-global-footer-list-link" href="https://pro.ant.design" rel="noreferrer" target="_blank" title="Ant Design Pro" > Ant Design Pro </a> <a class="ant-pro-global-footer-list-link" href="https://github.com/ant-design/ant-design-pro" rel="noreferrer" target="_blank" title="github" > <span aria-label="github" class="anticon anticon-github" role="img" > <svg aria-hidden="true" data-icon="github" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z" /> </svg> </span> </a> <a class="ant-pro-global-footer-list-link" href="https://ant.design" rel="noreferrer" target="_blank" title="Ant Design" > Ant Design </a> </div> <div class="ant-pro-global-footer-copyright" > <span aria-label="copyright" class="anticon anticon-copyright" role="img" > <svg aria-hidden="true" data-icon="copyright" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z" /> </svg> </span> 2022 蚂蚁金服体验技术部出品 </div> </div> </footer> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/appList-group.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/appList-group-simple.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/async-load-help.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-app" > <div style="margin: 24px; padding-block-end: 128px; display: flex; gap: 24px; flex-direction: column;" > <div style="width: 400px;" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > 帮助中心 </div> <div class="ant-card-extra" > <div class="ant-pro-help-actions" > <div class="ant-pro-help-actions-item" > <span aria-label="profile" class="anticon anticon-profile" role="img" tabindex="-1" title="collapse panel" > <svg aria-hidden="true" data-icon="profile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-pro-help-actions-item" > <span aria-label="search" class="anticon anticon-search" role="img" tabindex="-1" title="search panel" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-card-body" style="display: flex; padding: 0px; margin: 0px; height: 100%; width: 100%;" > <div class=" ant-pro-help-left-panel " style="height: 448px;" > <ul class="ant-menu ant-menu-root ant-menu-inline ant-menu-light ant-pro-help-left-panel-menu" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected" role="none" > <div aria-controls="rc-menu-uuid-test-default-popup" aria-expanded="true" aria-haspopup="true" class="ant-menu-submenu-title" data-menu-id="rc-menu-uuid-test-default" role="menuitem" style="padding-left: 24px;" tabindex="-1" > <span class="ant-menu-title-content" > 常见问题 </span> <i class="ant-menu-submenu-arrow" /> </div> <ul class="ant-menu ant-menu-sub ant-menu-inline" data-menu-list="true" id="rc-menu-uuid-test-default-popup" role="menu" > <li class="ant-menu-item ant-menu-item-selected ant-menu-item-only-child" data-menu-id="rc-menu-uuid-test-1" role="menuitem" style="padding-left: 48px;" tabindex="-1" > <span class="ant-menu-title-content" > html 语法 </span> </li> <li class="ant-menu-item ant-menu-item-only-child" data-menu-id="rc-menu-uuid-test-2" role="menuitem" style="padding-left: 48px;" tabindex="-1" > <span class="ant-menu-title-content" > markdown 语法 </span> </li> </ul> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> <div class=" ant-pro-help-content-panel" style="height: 448px;" > <div class="ant-pro-help-content-render" id="html 语法" > <div> <h3 class="ant-typography" style="margin-top: 0px;" > 如何开始操作数据授权? </h3> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <div class="inner-html" > <b> 加粗文本 </b> <br /> <br /> <i> 斜体文本 </i> <br /> <br /> <code> 电脑自动输出 </code> <br /> <br /> 这是 <sub> 下标 </sub> 和 <sup> 上标 </sup> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/background-context.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > <div> 七妮妮 </div> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/base.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh; overflow: auto;" > <div class="ant-design-pro my-prefix-layout screen-xs my-prefix-layout-fix-siderbar my-prefix-layout-mix" > <div class="my-prefix-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="my-prefix-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header my-prefix-layout-header my-prefix-layout-header-fixed-header my-prefix-layout-header-mix my-prefix-layout-header-header" > <div class="my-prefix-global-header" > <span class="my-prefix-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="my-prefix-global-header-logo my-prefix-global-header-logo-mix my-prefix-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div class="ant-dropdown-trigger" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content my-prefix-layout-content my-prefix-layout-has-header my-prefix-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> <span class="ant-page-header-heading-sub-title" title="简单的描述" > 简单的描述 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </main> <div class="my-prefix-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/classicMode.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > <div style="color: rgb(223, 223, 223);" > 七妮妮 </div> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <div class="ant-page-header-back" > <div aria-label="back" class="ant-page-header-back-button" role="button" > <span aria-label="arrow-left" class="anticon anticon-arrow-left" role="img" > <svg aria-hidden="true" data-icon="arrow-left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> </div> <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/collapsedShowTitle.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" /> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/config-provider.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro qixian-pro-layout screen-xs qixian-pro-layout-fix-siderbar qixian-pro-layout-side" > <div class="qixian-pro-layout-bg-list" /> <div class="qixian-layout" style="min-height: 100%; flex-direction: row; max-height: 100vh;" > <div class="qixian-pro-layout-container" style="position: relative;" > <header class="qixian-layout-header qixian-pro-layout-header qixian-pro-layout-header-header" > <div class="qixian-pro-global-header" > <span class="qixian-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="qixian-pro-global-header-logo qixian-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="qixian-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="qixian-pro-global-header-header-actions" > <span class="qixian-pro-global-header-header-actions-avatar" > <div> <span class="qixian-avatar qixian-avatar-circle qixian-avatar-icon" style="width: 28px; height: 28px; line-height: 28px; font-size: 14px;" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="qixian-layout-content qixian-pro-layout-content qixian-pro-layout-has-header qixian-pro-layout-content-has-page-container" > <div class="qixian-pro-page-container qixian-pro-page-container-with-footer" > <div class="qixian-page-header qixian-pro-page-container-warp-page-header qixian-page-header-has-footer qixian-page-header-ghost" > <div class="qixian-page-header-heading " > <div class="qixian-page-header-heading-left" > <span class="qixian-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> <span class="qixian-page-header-heading-extra" > <div class="qixian-space qixian-space-horizontal qixian-space-align-center qixian-space-gap-row-small qixian-space-gap-col-small" > <div class="qixian-space-item" > <button class="qixian-btn qixian-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="qixian-space-item" > <button class="qixian-btn qixian-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="qixian-space-item" > <button class="qixian-btn qixian-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> <div class="qixian-page-header-content" > <div class="qixian-pro-page-container-detail" > <div class="qixian-pro-page-container-main" > <div class="qixian-pro-page-container-row" > <div class="qixian-pro-page-container-content" > <div class="qixian-descriptions qixian-descriptions-small" > <div class="qixian-descriptions-view" > <table> <tbody> <tr class="qixian-descriptions-row" > <td class="qixian-descriptions-item" colspan="1" > <div class="qixian-descriptions-item-container" > <span class="qixian-descriptions-item-label" > 创建人 </span> <span class="qixian-descriptions-item-content" > 张三 </span> </div> </td> <td class="qixian-descriptions-item" colspan="1" > <div class="qixian-descriptions-item-container" > <span class="qixian-descriptions-item-label" > 联系方式 </span> <span class="qixian-descriptions-item-content" > <a> 421421 </a> </span> </div> </td> </tr> <tr class="qixian-descriptions-row" > <td class="qixian-descriptions-item" colspan="1" > <div class="qixian-descriptions-item-container" > <span class="qixian-descriptions-item-label" > 创建时间 </span> <span class="qixian-descriptions-item-content" > 2017-01-10 </span> </div> </td> <td class="qixian-descriptions-item" colspan="1" > <div class="qixian-descriptions-item-container" > <span class="qixian-descriptions-item-label" > 更新时间 </span> <span class="qixian-descriptions-item-content" > 2017-10-10 </span> </div> </td> </tr> <tr class="qixian-descriptions-row" > <td class="qixian-descriptions-item" colspan="2" > <div class="qixian-descriptions-item-container" > <span class="qixian-descriptions-item-label" > 备注 </span> <span class="qixian-descriptions-item-content" > 中国浙江省杭州市西湖区古翠路 </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div class="qixian-pro-page-container-extraContent" > <div class="qixian-space qixian-space-horizontal qixian-space-align-center" style="column-gap: 24px; row-gap: 24px;" > <div class="qixian-space-item" > <div class="qixian-statistic" > <div class="qixian-statistic-title" > Feedback </div> <div class="qixian-statistic-content" > <span class="qixian-statistic-content-prefix" > <span aria-label="like" class="anticon anticon-like" role="img" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> </span> <span class="qixian-statistic-content-value" > <span class="qixian-statistic-content-value-int" > 1,128 </span> </span> </div> </div> </div> <div class="qixian-space-item" > <div class="qixian-statistic" > <div class="qixian-statistic-title" > Unmerged </div> <div class="qixian-statistic-content" > <span class="qixian-statistic-content-value" > <span class="qixian-statistic-content-value-int" > 93 </span> </span> <span class="qixian-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="qixian-page-header-footer" > <div class="qixian-tabs qixian-tabs-top qixian-pro-page-container-tabs" > <div class="qixian-tabs-nav" role="tablist" > <div class="qixian-tabs-nav-wrap" > <div class="qixian-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="qixian-tabs-tab qixian-tabs-tab-active" data-node-key="base" > <div aria-controls="rc-tabs-test-panel-base" aria-selected="true" class="qixian-tabs-tab-btn" id="rc-tabs-test-tab-base" role="tab" tabindex="0" > 基本信息 </div> </div> <div class="qixian-tabs-tab" data-node-key="info" > <div aria-controls="rc-tabs-test-panel-info" aria-selected="false" class="qixian-tabs-tab-btn" id="rc-tabs-test-tab-info" role="tab" tabindex="0" > 详细信息 </div> </div> <div class="qixian-tabs-ink-bar qixian-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="qixian-tabs-nav-operations qixian-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="qixian-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="qixian-tabs-content-holder" > <div class="qixian-tabs-content qixian-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-base" class="qixian-tabs-tabpane qixian-tabs-tabpane-active" id="rc-tabs-test-panel-base" role="tabpanel" tabindex="0" /> </div> </div> </div> </div> </div> <div class="qixian-pro-grid-content" > <div class="qixian-pro-grid-content-children" > <div class="qixian-pro-page-container-children-container" > <div style="height: 120vh; min-height: 600px;" > <div class="qixian-result qixian-result-404" style="height: 100%; background: rgb(255, 255, 255);" > <div class="qixian-result-icon qixian-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="qixian-result-title" > Hello World </div> <div class="qixian-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="qixian-result-extra" > <button class="qixian-btn qixian-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> </div> </div> </div> </div> </div> <div class="qixian-pro-footer-bar" style="width: 100%;" > <div class="qixian-pro-footer-bar-left" /> <div class="qixian-pro-footer-bar-right" > <button class="qixian-btn qixian-btn-default" type="button" > <span> 重 置 </span> </button> <button class="qixian-btn qixian-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="qixian-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/customSider.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" /> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 100vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/customize-collapsed.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" > <div style="cursor: pointer; font-size: 16px;" > <span aria-label="menu-unfold" class="anticon anticon-menu-unfold" role="img" > <svg aria-hidden="true" data-icon="menu-unfold" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z" /> </svg> </span> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div style="height: 120vh; min-height: 600px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="按钮的位置" > 按钮的位置 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="header" /> <span class="ant-radio-inner" /> </span> <span> header </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="menu" /> <span class="ant-radio-inner" /> </span> <span> menu </span> </label> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/customizeMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div id="customize_menu_header" style="height: 32px; display: flex; align-items: center; gap: 8px;" > <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <img alt="logo" height="22" src="https://gw.alipayobjects.com/mdn/rms_b5fcc5/afts/img/A*1NHAQYduQiQAAAAAAAAAAABkARQnAQ" width="auto" /> </a> </span> </div> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > Hello World </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/dark.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/debug-demo.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/designMenuCss.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > <div style="color: rgb(223, 223, 223);" > 七妮妮 </div> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/designSiderMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 100vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/draggableHelp.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-app" > <div style="margin: 24px; padding-block-end: 128px; display: flex; gap: 24px; flex-direction: column;" > <div class="" > <span aria-label="search" class="anticon anticon-search" role="img" tabindex="-1" title="search panel" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </div> <div class="react-draggable" style="width: 900px; transform: translate(0px,0px);" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > 帮助中心 </div> <div class="ant-card-extra" > <div class="ant-pro-help-actions" > <div class="ant-pro-help-actions-item" > <span aria-label="profile" class="anticon anticon-profile" role="img" tabindex="-1" title="collapse panel" > <svg aria-hidden="true" data-icon="profile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-pro-help-actions-item" > <span aria-label="search" class="anticon anticon-search" role="img" tabindex="-1" title="search panel" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-card-body" style="display: flex; padding: 0px; margin: 0px; height: 100%; width: 100%;" > <div class=" ant-pro-help-left-panel " style="height: 448px;" > <ul class="ant-menu ant-menu-root ant-menu-inline ant-menu-light ant-pro-help-left-panel-menu" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected" role="none" > <div aria-controls="rc-menu-uuid-test-default-popup" aria-expanded="true" aria-haspopup="true" class="ant-menu-submenu-title" data-menu-id="rc-menu-uuid-test-default" role="menuitem" style="padding-left: 24px;" tabindex="-1" > <span class="ant-menu-title-content" > 常见问题 </span> <i class="ant-menu-submenu-arrow" /> </div> <ul class="ant-menu ant-menu-sub ant-menu-inline" data-menu-list="true" id="rc-menu-uuid-test-default-popup" role="menu" > <li class="ant-menu-item ant-menu-item-selected ant-menu-item-only-child" data-menu-id="rc-menu-uuid-test-1" role="menuitem" style="padding-left: 48px;" tabindex="-1" > <span class="ant-menu-title-content" > 如何开始操作数据授权? </span> </li> <li class="ant-menu-item ant-menu-item-only-child" data-menu-id="rc-menu-uuid-test-2" role="menuitem" style="padding-left: 48px;" tabindex="-1" > <span class="ant-menu-title-content" > 证据包内包含哪些内容,如何下载证据包? </span> </li> </ul> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> <div class=" ant-pro-help-content-panel" style="height: 448px;" > <div class="ant-pro-help-content-render" id="如何开始操作数据授权?" > <div> <h3 class="ant-typography" style="margin-top: 0px;" > 如何开始操作数据授权? </h3> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <span class="ant-typography" > <a href="https://www.alipay.com" > 摩斯产品 </a> </span> <span class="ant-typography" > 节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。 </span> <div style="margin-block: 12px;" > <div class="ant-image" > <img class="ant-image-img" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original" style="max-width: 600px;" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </div> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <span class="ant-typography" > <a href="https://www.alipay.com" > 摩斯产品 </a> </span> <span class="ant-typography" > 节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。 </span> <div style="margin-block: 12px;" > <div class="ant-image" > <img class="ant-image-img" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original" style="max-width: 600px;" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </div> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <span class="ant-typography" > <a href="https://www.alipay.com" > 摩斯产品 </a> </span> <span class="ant-typography" > 节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。 </span> <div style="margin-block: 12px;" > <div class="ant-image" > <img class="ant-image-img" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original" style="max-width: 600px;" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </div> <h5 class="ant-typography" style="margin-top: 20px;" > 相关问题 </h5> <div> <span class="ant-typography" > <a href="www.alipay.com" > 鹊凿平台DCI申领操作手册? </a> </span> </div> <div> <span class="ant-typography" > <a href="www.alipay.com" > openAPI 注册工具? </a> </span> </div> <h5 class="ant-typography" style="margin-top: 20px;" > 帮助视频 </h5> <video controls="" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/file/A*oJOJRZwe00kAAAAAAAAAAAAADml6AQ" style="width: 100%;" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/dynamic-settings.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-icon" style="width: 28px; height: 28px; line-height: 28px; font-size: 14px;" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-footer ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > <div class="ant-descriptions ant-descriptions-small" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 创建人 </span> <span class="ant-descriptions-item-content" > 张三 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 联系方式 </span> <span class="ant-descriptions-item-content" > <a> 421421 </a> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 创建时间 </span> <span class="ant-descriptions-item-content" > 2017-01-10 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 更新时间 </span> <span class="ant-descriptions-item-content" > 2017-10-10 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 备注 </span> <span class="ant-descriptions-item-content" > 中国浙江省杭州市西湖区古翠路 </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div class="ant-pro-page-container-extraContent" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 24px; row-gap: 24px;" > <div class="ant-space-item" > <div class="ant-statistic" > <div class="ant-statistic-title" > Feedback </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-prefix" > <span aria-label="like" class="anticon anticon-like" role="img" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> </span> <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 1,128 </span> </span> </div> </div> </div> <div class="ant-space-item" > <div class="ant-statistic" > <div class="ant-statistic-title" > Unmerged </div> <div class="ant-statistic-content" > <span class="ant-statistic-content-value" > <span class="ant-statistic-content-value-int" > 93 </span> </span> <span class="ant-statistic-content-suffix" > / 100 </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-page-header-footer" > <div class="ant-tabs ant-tabs-top ant-pro-page-container-tabs" > <div class="ant-tabs-nav" role="tablist" > <div class="ant-tabs-nav-wrap" > <div class="ant-tabs-nav-list" style="transform: translate(0px, 0px);" > <div class="ant-tabs-tab ant-tabs-tab-active" data-node-key="base" > <div aria-controls="rc-tabs-test-panel-base" aria-selected="true" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-base" role="tab" tabindex="0" > 基本信息 </div> </div> <div class="ant-tabs-tab" data-node-key="info" > <div aria-controls="rc-tabs-test-panel-info" aria-selected="false" class="ant-tabs-tab-btn" id="rc-tabs-test-tab-info" role="tab" tabindex="0" > 详细信息 </div> </div> <div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated" style="left: 0px; transform: translateX(-50%); width: 0px;" /> </div> </div> <div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > <button aria-controls="rc-tabs-test-more-popup" aria-expanded="false" aria-haspopup="listbox" aria-hidden="true" class="ant-tabs-nav-more" id="rc-tabs-test-more" style="visibility: hidden; order: 1;" tabindex="-1" type="button" > <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </button> </div> </div> <div class="ant-tabs-content-holder" > <div class="ant-tabs-content ant-tabs-content-top" > <div aria-hidden="false" aria-labelledby="rc-tabs-test-tab-base" class="ant-tabs-tabpane ant-tabs-tabpane-active" id="rc-tabs-test-panel-base" role="tabpanel" tabindex="0" /> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div class="ant-pro-page-container-children-container" > <div style="height: 120vh; min-height: 600px;" > <div class="ant-result ant-result-404" style="height: 100%; background: rgb(255, 255, 255);" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="ant-result-title" > Hello World </div> <div class="ant-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> </div> </div> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="setting" class="anticon anticon-setting" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="setting" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z" /> </svg> </span> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/dynamicMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> one </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> two </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="two" > two </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> 当从服务器获取的菜单为空时隐藏Sider: <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> Hello World <button class="ant-btn ant-btn-default" style="margin: 8px;" type="button" > <span> 刷新菜单 </span> </button> <button class="ant-btn ant-btn-default" style="margin: 8px;" type="button" > <span> 刷新菜单(空数据) </span> </button> </div> </div> </div> </div> </main> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/error-boundaries.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <div class="ant-result ant-result-error" > <div class="ant-result-icon" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </div> <div class="ant-result-title" > Something went wrong. </div> <div class="ant-result-extra" > 渲染发生了错误 </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/footer.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > Hello World </div> </div> </div> </div> </main> <footer class="ant-layout-footer" style="padding: 0px;" > <div class="ant-pro-global-footer" > <div class="ant-pro-global-footer-list" > <a class="ant-pro-global-footer-list-link" href="www.alipay.com" rel="noreferrer" target="_self" title="test" > layout </a> <a class="ant-pro-global-footer-list-link" href="www.alipay.com" rel="noreferrer" target="_self" title="test2" > layout2 </a> </div> <div class="ant-pro-global-footer-copyright" > <span aria-label="copyright" class="anticon anticon-copyright" role="img" > <svg aria-hidden="true" data-icon="copyright" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z" /> </svg> </span> 这是一条测试文案 </div> </div> </footer> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/footer-global-tools.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 108px; line-height: 108px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-alert ant-alert-warning ant-alert-banner" data-show="true" role="alert" style="background-color: black;" > <span aria-label="info-circle" class="anticon anticon-info-circle ant-alert-icon" role="img" style="color: white;" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" /> </svg> </span> <div class="ant-alert-content" > <div class="ant-alert-message" > <div style="color: white;" > 本网站提供的部分服务在你当前浏览器中无法使用,建议你更换为 Chrome 浏览器查看本网站。 </div> </div> </div> <div class="ant-alert-action" > <button class="ant-btn ant-btn-text" style="color: white;" type="button" > <span> 查看详情 </span> </button> </div> </div> <div class="ant-pro-global-header" style="height: 56px; line-height: 56px;" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="height: 64px; display: flex; justify-content: end; align-items: center; margin-inline-end: 24px;" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 上一步 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 保 存 </span> </button> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/ghost.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-affix" > <div class="ant-pro-page-container-affix" > <div class="" > <div class="ant-pro-page-container-warp" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > <div class="ant-descriptions ant-descriptions-small" > <div class="ant-descriptions-view" > <table> <tbody> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 创建人 </span> <span class="ant-descriptions-item-content" > 张三 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 联系方式 </span> <span class="ant-descriptions-item-content" > <a> 421421 </a> </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 创建时间 </span> <span class="ant-descriptions-item-content" > 2017-01-10 </span> </div> </td> <td class="ant-descriptions-item" colspan="1" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 更新时间 </span> <span class="ant-descriptions-item-content" > 2017-10-10 </span> </div> </td> </tr> <tr class="ant-descriptions-row" > <td class="ant-descriptions-item" colspan="2" > <div class="ant-descriptions-item-container" > <span class="ant-descriptions-item-label" > 备注 </span> <span class="ant-descriptions-item-content" > 中国浙江省杭州市西湖区古翠路 </span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" style="height: 200vh;" > <div class="ant-pro-card-body ant-pro-card-body-direction-column" > <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card" style="height: 200px;" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col" style="padding-block-start: 8px; padding-block-end: 8px;" > <div class="ant-pro-card ant-pro-card-contain-card ant-pro-card-ghost" style="height: 200px;" > <div class="ant-pro-card-body" > <div class="ant-pro-card-col ant-pro-card-col-16" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" /> </div> </div> <div class="ant-pro-card-col ant-pro-card-col-8" style="padding-inline-end: 8px; padding-inline-start: 8px;" > <div class="ant-pro-card" > <div class="ant-pro-card-body" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/help.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-app" > <div style="margin: 24px; padding-block-end: 128px; display: flex; gap: 24px; flex-direction: column;" > <div style="width: 800px;" > <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > 帮助中心 </div> <div class="ant-card-extra" > <div class="ant-pro-help-actions" > <div class="ant-pro-help-actions-item" > <span aria-label="profile" class="anticon anticon-profile" role="img" tabindex="-1" title="collapse panel" > <svg aria-hidden="true" data-icon="profile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-pro-help-actions-item" > <span aria-label="search" class="anticon anticon-search" role="img" tabindex="-1" title="search panel" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-card-body" style="display: flex; padding: 0px; margin: 0px; height: 100%; width: 100%;" > <div class=" ant-pro-help-left-panel " style="height: 648px;" > <ul class="ant-menu ant-menu-root ant-menu-inline ant-menu-light ant-pro-help-left-panel-menu" data-menu-list="true" role="menu" tabindex="0" > <li class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected" role="none" > <div aria-controls="rc-menu-uuid-test-default-popup" aria-expanded="true" aria-haspopup="true" class="ant-menu-submenu-title" data-menu-id="rc-menu-uuid-test-default" role="menuitem" style="padding-left: 24px;" tabindex="-1" > <span class="ant-menu-title-content" > 常见问题 </span> <i class="ant-menu-submenu-arrow" /> </div> <ul class="ant-menu ant-menu-sub ant-menu-inline" data-menu-list="true" id="rc-menu-uuid-test-default-popup" role="menu" > <li class="ant-menu-item ant-menu-item-selected ant-menu-item-only-child" data-menu-id="rc-menu-uuid-test-1" role="menuitem" style="padding-left: 48px;" tabindex="-1" > <span class="ant-menu-title-content" > 如何开始操作数据授权? </span> </li> <li class="ant-menu-item ant-menu-item-only-child" data-menu-id="rc-menu-uuid-test-2" role="menuitem" style="padding-left: 48px;" tabindex="-1" > <span class="ant-menu-title-content" > 证据包内包含哪些内容,如何下载证据包? </span> </li> </ul> </li> <li class="ant-menu-submenu ant-menu-submenu-inline" role="none" > <div aria-controls="rc-menu-uuid-test-value-popup" aria-expanded="false" aria-haspopup="true" class="ant-menu-submenu-title" data-menu-id="rc-menu-uuid-test-value" role="menuitem" style="padding-left: 24px;" tabindex="-1" > <span class="ant-menu-title-content" > 名词解释 </span> <i class="ant-menu-submenu-arrow" /> </div> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> <div class=" ant-pro-help-content-panel" style="height: 648px;" > <div class="ant-pro-help-content-render" id="如何开始操作数据授权?" > <div> <h3 class="ant-typography" style="margin-top: 0px;" > 如何开始操作数据授权? </h3> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <span class="ant-typography" > <a href="https://www.alipay.com" > 摩斯产品 </a> </span> <span class="ant-typography" > 节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。 </span> <div style="margin-block: 12px;" > <div class="ant-image" > <img class="ant-image-img" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original" style="max-width: 600px;" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </div> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <span class="ant-typography" > <a href="https://www.alipay.com" > 摩斯产品 </a> </span> <span class="ant-typography" > 节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。 </span> <div style="margin-block: 12px;" > <div class="ant-image" > <img class="ant-image-img" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original" style="max-width: 600px;" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </div> <span class="ant-typography" > 需要进行数据合作的数据提供方(数据源)和数据需求方双方都需要先安装部署 </span> <span class="ant-typography" > <a href="https://www.alipay.com" > 摩斯产品 </a> </span> <span class="ant-typography" > 节点。并将各自的摩斯计算节点、子账号等的版本信息、业务需求、数据量级(几行几列)等信息同步给到摩斯产运负责人。 </span> <div style="margin-block: 12px;" > <div class="ant-image" > <img class="ant-image-img" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/img/A*Jj_qRqbIRqkAAAAAAAAAAAAADml6AQ/original" style="max-width: 600px;" /> <div class="ant-image-mask" > <div class="ant-image-mask-info" > <span aria-label="eye" class="anticon anticon-eye" role="img" > <svg aria-hidden="true" data-icon="eye" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" /> </svg> </span> Preview </div> </div> </div> </div> <h5 class="ant-typography" style="margin-top: 20px;" > 相关问题 </h5> <div> <span class="ant-typography" > <a href="www.alipay.com" > 鹊凿平台DCI申领操作手册? </a> </span> </div> <div> <span class="ant-typography" > <a href="www.alipay.com" > openAPI 注册工具? </a> </span> </div> <h5 class="ant-typography" style="margin-top: 20px;" > 帮助视频 </h5> <video controls="" src="https://mdn.alipayobjects.com/huamei_gcee1x/afts/file/A*oJOJRZwe00kAAAAAAAAAAAAADml6AQ" style="width: 100%;" /> </div> </div> <div class=" ant-pro-help-footer" > <div style="text-align: center; border-top: 1px solid #EEE; padding: 12px; margin-top: 24px;" > 这篇文章的质量如何? <ul class="ant-rate" role="radiogroup" tabindex="0" > <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="1" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="2" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="3" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="4" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> <li class="ant-rate-star ant-rate-star-zero" > <div aria-checked="false" aria-posinset="5" aria-setsize="5" role="radio" tabindex="0" > <div class="ant-rate-star-first" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> <div class="ant-rate-star-second" > <span aria-label="star" class="anticon anticon-star" role="img" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z" /> </svg> </span> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/hideMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div style="background: rgb(255, 255, 255); box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35); overflow: hidden; height: 100%; width: 0px;" /> <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > Hello World </div> </div> </div> </div> </main> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/immersive-navigation.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" /> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > <div style="height: 120vh; min-height: 600px;" > <div class="ant-result ant-result-404" style="height: 100%; background: rgb(255, 255, 255);" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="ant-result-title" > Hello World </div> <div class="ant-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> </div> </main> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/immersive-navigation-top.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" style="padding-block-start: 48px;" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" style="padding: 8px 16px; background-color: rgb(255, 255, 255); position: fixed; top: 0px; width: 100%; left: 0px; z-index: 999; box-shadow: 0 2px 8px #f0f1f2;" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <div class="ant-page-header-back" > <div aria-label="back" class="ant-page-header-back-button" role="button" > <span aria-label="arrow-left" class="anticon anticon-arrow-left" role="img" > <svg aria-hidden="true" data-icon="arrow-left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> </div> <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> <span class="ant-page-header-heading-tags" > <span class="ant-tag ant-tag-blue" > 状态一 </span> </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <span class="ant-input-group-wrapper ant-input-search" style="width: 240px;" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </span> </button> </span> </span> </span> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操作一 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 操作一 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div style="height: 120vh; min-height: 600px;" > <div class="ant-result ant-result-404" style="height: 100%; background: rgb(255, 255, 255);" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="ant-result-title" > Hello World </div> <div class="ant-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/menu-group.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <div class="ant-pro-global-header-header-actions-item ant-pro-global-header-header-actions-hover" > <span aria-label="info-circle" class="anticon anticon-info-circle" role="img" > <svg aria-hidden="true" data-icon="info-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" /> </svg> </span> </div> <div class="ant-pro-global-header-header-actions-item ant-pro-global-header-header-actions-hover" > <span aria-label="question-circle" class="anticon anticon-question-circle" role="img" > <svg aria-hidden="true" data-icon="question-circle" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" /> <path d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-pro-global-header-header-actions-item ant-pro-global-header-header-actions-hover" > <span aria-label="merge-cells" class="anticon anticon-merge-cells" role="img" > <svg aria-hidden="true" data-icon="merge-cells" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <defs> <style /> </defs> <path d="M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z" /> </svg> </span> </div> <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-icon" style="width: 28px; height: 28px; line-height: 28px; font-size: 14px;" > <span aria-label="user" class="anticon anticon-user" role="img" > <svg aria-hidden="true" data-icon="user" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" /> </svg> </span> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header-no-children" /> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 120vh; min-height: 600px;" > <div class="ant-pro-card-body" > <div class="ant-result ant-result-404" style="height: 100%;" > <div class="ant-result-icon ant-result-image" > <svg height="294" width="252" > <defs> <path d="M0 .387h251.772v251.772H0z" /> </defs> <g fill="none" fill-rule="evenodd" > <g transform="translate(0 .012)" > <mask fill="#fff" /> <path d="M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321" fill="#E4EBF7" mask="url(#b)" /> </g> <path d="M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66" fill="#FFF" /> <path d="M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788" stroke="#FFF" stroke-width="2" /> <path d="M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175" fill="#FFF" /> <path d="M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932" fill="#FFF" /> <path d="M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011" stroke="#FFF" stroke-width="2" /> <path d="M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382" fill="#FFF" /> <path d="M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z" stroke="#FFF" stroke-width="2" /> <path d="M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39" stroke="#FFF" stroke-width="2" /> <path d="M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742" fill="#FFF" /> <path d="M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48" fill="#1677ff" /> <path d="M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894" fill="#FFF" /> <path d="M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88" fill="#FFB594" /> <path d="M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624" fill="#FFC6A0" /> <path d="M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682" fill="#FFF" /> <path d="M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573" fill="#CBD1D1" /> <path d="M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z" fill="#2B0849" /> <path d="M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558" fill="#A4AABA" /> <path d="M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z" fill="#CBD1D1" /> <path d="M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062" fill="#2B0849" /> <path d="M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15" fill="#A4AABA" /> <path d="M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165" fill="#7BB2F9" /> <path d="M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M107.275 222.1s2.773-1.11 6.102-3.884" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" /> <path d="M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038" fill="#192064" /> <path d="M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81" fill="#FFF" /> <path d="M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642" fill="#192064" /> <path d="M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146" stroke="#648BD8" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268" fill="#FFC6A0" /> <path d="M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456" fill="#FFC6A0" /> <path d="M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z" fill="#520038" /> <path d="M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254" fill="#552950" /> <path d="M110.13 74.84l-.896 1.61-.298 4.357h-2.228" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M110.846 74.481s1.79-.716 2.506.537" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.287 72.93s1.83 1.113 4.137.954" stroke="#5C2552" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.118" /> <path d="M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M129.405 122.865s-5.272 7.403-9.422 10.768" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M119.306 107.329s.452 4.366-2.127 32.062" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> <path d="M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01" fill="#F2D7AD" /> <path d="M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92" fill="#F4D19D" /> <path d="M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z" fill="#F2D7AD" /> <path d="M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" fill="#CC9B6E" /> <path d="M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83" fill="#F4D19D" /> <path d="M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z" fill="#CC9B6E" /> <path d="M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z" fill="#CC9B6E" /> <path d="M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238" fill="#FFC6A0" /> <path d="M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754" stroke="#DB836E" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.051" /> <path d="M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647" fill="#5BA02E" /> <path d="M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647" fill="#92C110" /> <path d="M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187" fill="#F2D7AD" /> <path d="M88.979 89.48s7.776 5.384 16.6 2.842" stroke="#E4EBF7" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.101" /> </g> </svg> </div> <div class="ant-result-title" > Hello World </div> <div class="ant-result-subtitle" > Sorry, you are not authorized to access this page. </div> <div class="ant-result-extra" > <button class="ant-btn ant-btn-primary" type="button" > <span> Back Home </span> </button> </div> </div> </div> </div> </div> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/mixMode.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 100vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/morse_debug.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" /> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/pageSimplify.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > <div> 七妮妮 </div> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/proHelpModal.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-app" > <div style="margin: 24px; padding-block-end: 128px; display: flex; gap: 24px; flex-direction: column;" > <div style="display: flex; gap: 16px; width: 600px; justify-content: space-between;" > <button> 打开 </button> <button> 打开 </button> <span class="ant-pro-help-popover-text" > Morse </span> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/searchMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 首页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 概述 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="概述" > 概述 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/siderMode.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 100vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/siteMenu.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 100vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/splitMenus.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> children <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > children </main> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content" /> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div /> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > xxxx </main> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <div class="ant-pro-global-header-header-actions-item ant-pro-global-header-header-actions-hover" > <a> key </a> </div> <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > xxxx </main> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row; height: 100vh;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="欢迎" > 欢迎 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > xxxx </div> </div> </div> </div> </main> </div> </div> </div> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="close" class="anticon anticon-close" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/theme.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> <span class="ant-page-header-heading-extra" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-default" type="button" > <span> 操 作 </span> </button> </div> <div class="ant-space-item" > <button class="ant-btn ant-btn-primary" type="button" > <span> 主操作 </span> </button> </div> </div> </span> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 200vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/top-breadcrumb.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" > <div style="height: 100%; display: flex; align-items: center;" > <nav class="ant-breadcrumb" > <ol> <li> <span> 主页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 测试页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 管理 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 申请单列表 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 编辑申请单 </span> </li> </ol> </nav> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="编辑申请单" > 编辑申请单 </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > 欢迎使用 </div> </div> </div> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div> Hello World </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`layout demos > 📸 renders ./packages/layout/src/demos/topMode.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div id="test-pro-layout" style="height: 100vh;" > <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" > <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; left: 85px; bottom: 100px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png; bottom: -68px; right: -45px; height: 303px;" /> <img src="https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png" style="position: absolute; src: https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png; bottom: 0px; left: 0px; width: 331px;" /> </div> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" > <div style="display: flex; align-items: center; height: 100%; justify-content: flex-end;" > <div class="ant-pro-global-header-header-actions" > <span class="ant-pro-global-header-header-actions-avatar" > <div> <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 28px; height: 28px; line-height: 28px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> <span style="margin-inline-start: 8px;" > 七妮妮 </span> </div> </span> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> 列表页 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 列表页面 </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > / </li> <li> <span> 一一级列表页面 </span> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="一一级列表页面" > 一一级列表页面 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-card" style="height: 100vh; min-height: 800px;" > <div class="ant-pro-card-body" > <div /> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> </div> </DocumentFragment> `;
9,169
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/footer.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`DefaultFooter test > 🦶 copyright support false 1`] = ` <DocumentFragment> <footer class="ant-layout-footer" style="padding: 0px;" /> </DocumentFragment> `; exports[`DefaultFooter test > 🦶 links support false 1`] = ` <DocumentFragment> <footer class="ant-layout-footer" style="padding: 0px;" > <div class="ant-pro-global-footer" > <div class="ant-pro-global-footer-copyright" > <span aria-label="copyright" class="anticon anticon-copyright" role="img" > <svg aria-hidden="true" data-icon="copyright" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z" /> </svg> </span> </div> </div> </footer> </DocumentFragment> `;
9,170
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/help.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`👍🏻 ProHelpPanel > 🎏 ProHelp is empty 1`] = ` <body> <div> <div class="ant-card ant-card-bordered ant-card-small" > <div class="ant-card-head" > <div class="ant-card-head-wrapper" > <div class="ant-card-head-title" > 帮助中心 </div> <div class="ant-card-extra" > <div class="ant-pro-help-actions" > <div class="ant-pro-help-actions-item" > <span aria-label="profile" class="anticon anticon-profile" role="img" tabindex="-1" title="collapse panel" > <svg aria-hidden="true" data-icon="profile" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z" /> </svg> </span> </div> <div class="ant-pro-help-actions-item" > <span aria-label="search" class="anticon anticon-search" role="img" tabindex="-1" title="search panel" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </div> </div> </div> </div> </div> <div class="ant-card-body" style="display: flex; padding: 0px; margin: 0px; height: 100%; width: 100%;" > <div class=" ant-pro-help-left-panel " > <ul class="ant-menu ant-menu-root ant-menu-inline ant-menu-light ant-pro-help-left-panel-menu" data-menu-list="true" role="menu" tabindex="0" /> <div aria-hidden="true" style="display: none;" /> </div> <div class=" ant-pro-help-content-panel" /> </div> </div> </div> </body> `;
9,171
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/index.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`BasicLayout > 🥩 BasicLayout menu support menu.true 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-top-nav-header ant-pro-top-nav-header-light" > <div class="ant-pro-top-nav-header-main" > <div class="ant-pro-top-nav-header-main-left " > <div class="ant-pro-top-nav-header-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> </div> <div class="ant-pro-top-nav-header-menu" style="flex: 1;" > <div style="margin-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li style="width: 61%;" /> </ul> </div> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 215px; overflow: hidden; flex: 0 0 215px; max-width: 215px; min-width: 215px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-fixed-mix ant-pro-sider-layout-mix ant-pro-sider-light ant-pro-sider-mix" style="flex: 0 0 215px; max-width: 215px; min-width: 215px; width: 215px;" > <div class="ant-layout-sider-children" > <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <div class="ant-pro-global-header-logo ant-pro-global-header-logo-mix" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </DocumentFragment> `; exports[`BasicLayout > 🥩 base use 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </DocumentFragment> `; exports[`BasicLayout > 🥩 compatibleStyle 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > 4.0.0 </main> </div> </div> </div> </DocumentFragment> `; exports[`BasicLayout > 🥩 contentStyle should change dom 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" style="padding: 56px;" /> </div> </div> </div> </DocumentFragment> `; exports[`BasicLayout > 🥩 mix layout hideInMenu render right 1`] = ` <body> <div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <ul class="ant-menu ant-menu-root ant-menu-inline ant-menu-light ant-pro-sider-menu ant-pro-base-menu-inline" data-menu-list="true" role="menu" style="background-color: transparent; width: 100%;" tabindex="0" > <li class="ant-menu-submenu ant-menu-submenu-inline ant-pro-base-menu-inline-submenu" role="none" > <div aria-expanded="false" aria-haspopup="true" class="ant-menu-submenu-title" role="menuitem" style="padding-left: 16px;" tabindex="-1" > <span class="ant-menu-title-content" > <div class="ant-pro-base-menu-inline-item-title" > <span class="ant-pro-base-menu-inline-item-text" > 管理页 </span> </div> </span> <i class="ant-menu-submenu-arrow" /> </div> </li> <li class="ant-menu-item ant-menu-item-only-child ant-pro-base-menu-inline-menu-item" role="menuitem" style="padding-left: 16px;" tabindex="-1" > <span class="ant-menu-title-content" > <div class="ant-pro-base-menu-inline-item-title" > <span class="ant-pro-base-menu-inline-item-icon" style="display: none;" > <span class="anticon" /> </span> <span class="ant-pro-base-menu-inline-item-text" > 列表页 </span> </div> </span> </li> </ul> <div aria-hidden="true" style="display: none;" /> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </div> </body> `; exports[`BasicLayout > 🥩 support loading 1`] = ` <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> `;
9,172
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/mobile.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`mobile BasicLayout > 📱 base use 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > welcome </main> </div> </div> </div> </DocumentFragment> `; exports[`mobile BasicLayout > 📱 collapsed=false 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </DocumentFragment> `; exports[`mobile BasicLayout > 📱 layout menuHeaderRender 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> title <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > welcome </main> </div> </div> </div> </DocumentFragment> `; exports[`mobile BasicLayout > 📱 layout menuHeaderRender 2`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> title <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > welcome </main> </div> </div> </div> </DocumentFragment> `; exports[`mobile BasicLayout > 📱 layout menuHeaderRender=false 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" > welcome </main> </div> </div> </div> </DocumentFragment> `; exports[`mobile BasicLayout > 📱 layout=mix 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </DocumentFragment> `; exports[`mobile BasicLayout > 📱 layout=mix and splitMenus 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-xs ant-pro-layout-fix-siderbar ant-pro-layout-mix" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header" style="height: 56px; line-height: 56px; background-color: transparent; z-index: 19;" /> <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header ant-pro-layout-header-mix ant-pro-layout-header-fixed-header-action ant-pro-layout-header-header" > <div class="ant-pro-global-header" > <span class="ant-pro-global-header-collapsed-button" > <span aria-label="menu" class="anticon anticon-menu" role="img" > <svg aria-hidden="true" data-icon="menu" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" /> </svg> </span> </span> <span class="ant-pro-global-header-logo ant-pro-global-header-logo-mix ant-pro-global-header-logo-mobile" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> </a> </span> <div style="flex: 1;" /> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header" /> </div> </div> </div> </DocumentFragment> `;
9,173
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/pageContainer.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`PageContainer > ⚡️ support fixHeader 1`] = ` <DocumentFragment> <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > ⚡️ support fixedHeader 1`] = `null`; exports[`PageContainer > ⚡️ support footer 1`] = ` <div> <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> </div> <div class="ant-pro-footer-bar" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button type="button" > right </button> </div> </div> </div> `; exports[`PageContainer > ⚡️ support loading 1`] = `null`; exports[`PageContainer > ⚡️ support more loading props 1`] = ` <DocumentFragment> <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div style="padding-block-start: 100px; text-align: center;" > <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-lg ant-spin-spinning ant-spin-show-text" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > 🌛 PageContainer with custom loading 1`] = ` <DocumentFragment> <div class="ant-pro-page-container custom-className" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="页面标题" > 页面标题 </span> </div> </div> </div> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div id="customLoading" style="color: red; padding: 30px; text-align: center;" > 自定义加载... </div> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > 🐛 className prop should not be passed to its page header, fix #3493 1`] = ` <div> <div class="ant-pro-page-container custom-className" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="页面标题" > 页面标题 </span> </div> </div> </div> </div> </div> `; exports[`PageContainer > 🐲 FooterToolbar should know width 1`] = ` <div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-top-nav-header ant-pro-top-nav-header-light" > <div class="ant-pro-top-nav-header-main" > <div class="ant-pro-top-nav-header-main-left " > <div class="ant-pro-top-nav-header-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> </div> <div class="ant-pro-top-nav-header-menu" style="flex: 1;" > <div style="margin-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li style="width: 61%;" /> </ul> </div> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header-no-children" /> <div class="ant-pro-grid-content" > <div class="ant-pro-grid-content-children" > <div class="ant-pro-page-container-children-container" > <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button type="button" > qixian </button> </div> </div> </div> </div> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> `; exports[`PageContainer > 🐲 content is text and title is null 1`] = ` <DocumentFragment> <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > just so so </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > 🐲 content is text and title is null 2`] = ` <DocumentFragment> <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-extraContent" > <div> extraContent </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > 🐲 footer is null, do not render footerToolbar 1`] = ` <DocumentFragment> <div class="ant-pro-page-container ant-pro-page-container-with-footer" /> <div class="ant-pro-footer-bar" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button type="button" > qixian </button> </div> </div> </DocumentFragment> `; exports[`PageContainer > 🐲 footer is null, do not render footerToolbar 2`] = ` <DocumentFragment> <div class="ant-pro-page-container" /> </DocumentFragment> `; exports[`PageContainer > 🐲 footer should know width 1`] = ` <div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-top-menu ant-pro-layout-fix-siderbar ant-pro-layout-top" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout" style="min-height: 100%; flex-direction: row;" > <div class="ant-pro-layout-container" style="position: relative;" > <header class="ant-layout-header ant-pro-layout-header ant-pro-layout-header-fixed-header-action ant-pro-layout-header-top-menu ant-pro-layout-header-header" > <div class="ant-pro-top-nav-header ant-pro-top-nav-header-light" > <div class="ant-pro-top-nav-header-main" > <div class="ant-pro-top-nav-header-main-left " > <div class="ant-pro-top-nav-header-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> </div> <div class="ant-pro-top-nav-header-menu" style="flex: 1;" > <div style="margin-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li style="width: 61%;" /> </ul> </div> </div> </div> </div> </div> </div> </header> <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> </div> <div class="ant-pro-footer-bar" style="width: 100%;" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button type="button" > qixian </button> </div> </div> </main> <div class="ant-pro-layout-has-footer" style="height: 64px; margin-block-start: 32px;" /> </div> </div> </div> </div> `; exports[`PageContainer > 🐲 pro-layout support breadcrumbProps 1`] = ` <DocumentFragment> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <span> home </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > &gt; </li> <li> <span> first </span> </li> <li aria-hidden="true" class="ant-breadcrumb-separator" > &gt; </li> <li> <span> second </span> </li> </ol> </nav> </div> </div> </main> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > 💄 base use 1`] = ` <DocumentFragment> <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> </div> </DocumentFragment> `; exports[`PageContainer > 💄 config is null 1`] = ` <DocumentFragment> <div class="ant-pro-page-container" /> </DocumentFragment> `; exports[`PageContainer > 🔥 footer bar support extra 1`] = ` <DocumentFragment> <div class="qixian_footer ant-pro-footer-bar" > <div class="ant-pro-footer-bar-left" > <img alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" /> </div> <div class="ant-pro-footer-bar-right" > <button type="button" > right </button> </div> </div> </DocumentFragment> `; exports[`PageContainer > 🔥 footer bar support renderContent 1`] = ` <DocumentFragment> <div class="qixian_footer ant-pro-footer-bar" > home_toolbar </div> </DocumentFragment> `; exports[`PageContainer > 🔥 support footer and breadcrumb 1`] = ` <DocumentFragment> <div class="ant-pro-page-container ant-pro-page-container-with-footer" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-has-breadcrumb ant-page-header-ghost" > <nav class="ant-breadcrumb ant-page-header-breadcrumb" > <ol> <li> <a class="ant-breadcrumb-link" href="#/" > home </a> </li> </ol> </nav> <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="期贤" > 期贤 </span> </div> </div> </div> </div> <div class="ant-pro-footer-bar" > <div class="ant-pro-footer-bar-left" /> <div class="ant-pro-footer-bar-right" > <button type="button" > right </button> </div> </div> </DocumentFragment> `;
9,174
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/pageHeaderWarp.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`BasicLayout > ActionsContent support contentRender 1`] = ` <div> <div class="ant-pro-global-header-right-content" style="min-width: auto; height: 100%;" > <div style="height: 100%;" /> </div> </div> `; exports[`BasicLayout > base use 1`] = ` <div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="welcome" > welcome </span> </div> </div> </div> </div> </main> </div> </div> </div> </div> `; exports[`BasicLayout > content is text 1`] = ` <div> <div class="ant-design-pro ant-pro-layout screen-md ant-pro-layout-fix-siderbar ant-pro-layout-side" > <div class="ant-pro-layout-bg-list" /> <div class="ant-layout ant-layout-has-sider" style="min-height: 100%; flex-direction: row;" > <div style="width: 256px; overflow: hidden; flex: 0 0 256px; max-width: 256px; min-width: 256px; transition: all 0.2s ease 0s;" /> <aside class="ant-layout-sider ant-layout-sider-dark ant-pro-sider ant-pro-sider-fixed ant-pro-sider-layout-side ant-pro-sider-light" style="flex: 0 0 256px; max-width: 256px; min-width: 256px; width: 256px;" > <div class="ant-layout-sider-children" > <div class="ant-pro-sider-logo" id="logo" > <a> <svg height="1em" viewBox="0 0 200 200" width="1em" > <defs> <lineargradient id="linearGradient-1" x1="62.1023273%" x2="108.19718%" y1="0%" y2="37.8635764%" > <stop offset="0%" stop-color="#4285EB" /> <stop offset="100%" stop-color="#2EC7FF" /> </lineargradient> <lineargradient id="linearGradient-2" x1="69.644116%" x2="54.0428975%" y1="0%" y2="108.456714%" > <stop offset="0%" stop-color="#29CDFF" /> <stop offset="37.8600687%" stop-color="#148EFF" /> <stop offset="100%" stop-color="#0A60FF" /> </lineargradient> <lineargradient id="linearGradient-3" x1="69.6908165%" x2="16.7228981%" y1="-12.9743587%" y2="117.391248%" > <stop offset="0%" stop-color="#FA816E" /> <stop offset="41.472606%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> <lineargradient id="linearGradient-4" x1="68.1279872%" x2="30.4400914%" y1="-35.6905737%" y2="114.942679%" > <stop offset="0%" stop-color="#FA8E7D" /> <stop offset="51.2635191%" stop-color="#F74A5C" /> <stop offset="100%" stop-color="#F51D2C" /> </lineargradient> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g transform="translate(-20.000000, -20.000000)" > <g transform="translate(20.000000, 20.000000)" > <g> <g fill-rule="nonzero" > <g> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-1)" /> <path d="M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z" fill="url(#linearGradient-2)" /> </g> <path d="M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z" fill="url(#linearGradient-3)" /> </g> <ellipse cx="100.519339" cy="100.436681" fill="url(#linearGradient-4)" rx="23.6001926" ry="23.580786" /> </g> </g> </g> </g> </svg> <h1> Ant Design Pro </h1> </a> </div> <div style="flex: 1; overflow-y: auto; overflow-x: hidden;" > <div style="padding: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <ul class="ant-skeleton-paragraph" > <li /> <li /> <li /> <li /> <li /> <li style="width: 61%;" /> </ul> </div> </div> </div> </div> <div class="ant-pro-sider-collapsed-button" > <svg aria-hidden="true" fill="currentColor" height="1em" viewBox="0 0 12 12" width="1em" > <path d="M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z" /> </svg> </div> </div> </aside> <div class="ant-pro-layout-container" style="position: relative;" > <main class="ant-layout-content ant-pro-layout-content ant-pro-layout-has-header ant-pro-layout-content-has-page-container" > <div class="ant-pro-page-container" > <div class="ant-page-header ant-pro-page-container-warp-page-header ant-page-header-ghost" > <div class="ant-page-header-heading " > <div class="ant-page-header-heading-left" > <span class="ant-page-header-heading-title" title="welcome" > welcome </span> </div> </div> <div class="ant-page-header-content" > <div class="ant-pro-page-container-detail" > <div class="ant-pro-page-container-main" > <div class="ant-pro-page-container-row" > <div class="ant-pro-page-container-content" > just so so </div> </div> </div> </div> </div> </div> </div> </main> </div> </div> </div> </div> `;
9,175
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/settingDrawer.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`settingDrawer.test > 🌺 base user 1`] = ` <DocumentFragment> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="close" class="anticon anticon-close" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </div> <div class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline" tabindex="-1" > <div class="ant-drawer-mask" /> <div aria-hidden="true" data-sentinel="start" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> <div class="ant-drawer-content-wrapper" style="width: 300px;" > <div aria-modal="true" class="ant-drawer-content" role="dialog" style="z-index: 999;" > <div class="ant-drawer-wrapper-body" > <div class="ant-drawer-body" > <div class="ant-pro-setting-drawer-drawer-content" > <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 整体风格设置 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-light ant-pro-setting-drawer-block-checkbox-theme-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 主题色 </h3> <div class="ant-pro-setting-drawer-theme-color" > <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(22, 119, 255);" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(24, 144, 255);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(245, 34, 45);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 84, 28);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 173, 20);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(19, 194, 194);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(82, 196, 26);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(47, 84, 235);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(114, 46, 209);" /> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 导航模式 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-side ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: block;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-top ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-mix ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 侧边菜单类型 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-sub ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M26 0h55c5.523 0 10 4.477 10 10v8H26V0z" fill="#FFF" /> <path d="M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z" fill="#001529" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="18" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="42" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="24" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="48" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="36" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="30" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="54" /> </g> </svg> </div> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-group ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M25 15h65v47c0 5.523-4.477 10-10 10H25V15z" fill="#FFF" /> <path d="M0.5 15.5L90.5 15.5" stroke="#E6EAF0" stroke-linecap="square" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="26" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="32" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="42" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="21" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="53" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="47" /> <path d="M25.5 15.5L25.5 72.5" stroke="#E6EAF0" stroke-linecap="square" /> </g> </svg> </div> </div> </div> </div> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 内容区域宽度 </span> <ul class="ant-list-item-action" > <li> <div class="ant-select ant-select-sm content-width ant-select-single ant-select-show-arrow" style="width: 80px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Fixed" > Fixed </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定 Header </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fixed-header" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定侧边菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fix-siderbar" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 0.5;" > 自动分割菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small split-menus ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 内容区域 </h3> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 顶栏 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-header ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 页脚 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-footer ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menu ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单头 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menuHeader ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 其他设置 </h3> <div class="ant-list ant-list-sm ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 色弱模式 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small color-weak" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-alert ant-alert-warning" data-show="true" role="alert" style="margin-block-end: 16px;" > <span aria-label="notification" class="anticon anticon-notification ant-alert-icon" role="img" > <svg aria-hidden="true" data-icon="notification" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z" /> </svg> </span> <div class="ant-alert-content" > <div class="ant-alert-message" > 配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件 </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-block" style="margin-block-end: 24px;" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> <span> 拷贝设置 </span> </button> </div> </div> </div> </div> </div> <div aria-hidden="true" data-sentinel="end" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> </div> </DocumentFragment> `; exports[`settingDrawer.test > 🌺 hideColors = true 1`] = ` <DocumentFragment> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="close" class="anticon anticon-close" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </div> <div class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline" tabindex="-1" > <div class="ant-drawer-mask" /> <div aria-hidden="true" data-sentinel="start" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> <div class="ant-drawer-content-wrapper" style="width: 300px;" > <div aria-modal="true" class="ant-drawer-content" role="dialog" style="z-index: 999;" > <div class="ant-drawer-wrapper-body" > <div class="ant-drawer-body" > <div class="ant-pro-setting-drawer-drawer-content" > <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 整体风格设置 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-light ant-pro-setting-drawer-block-checkbox-theme-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 导航模式 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-side ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: block;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-top ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-mix ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 侧边菜单类型 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-sub ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M26 0h55c5.523 0 10 4.477 10 10v8H26V0z" fill="#FFF" /> <path d="M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z" fill="#001529" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="18" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="42" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="24" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="48" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="36" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="30" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="54" /> </g> </svg> </div> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-group ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M25 15h65v47c0 5.523-4.477 10-10 10H25V15z" fill="#FFF" /> <path d="M0.5 15.5L90.5 15.5" stroke="#E6EAF0" stroke-linecap="square" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="26" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="32" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="42" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="21" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="53" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="47" /> <path d="M25.5 15.5L25.5 72.5" stroke="#E6EAF0" stroke-linecap="square" /> </g> </svg> </div> </div> </div> </div> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 内容区域宽度 </span> <ul class="ant-list-item-action" > <li> <div class="ant-select ant-select-sm content-width ant-select-single ant-select-show-arrow" style="width: 80px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Fixed" > Fixed </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定 Header </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fixed-header" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定侧边菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fix-siderbar" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 0.5;" > 自动分割菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small split-menus ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 内容区域 </h3> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 顶栏 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-header ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 页脚 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-footer ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menu ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单头 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menuHeader ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 其他设置 </h3> <div class="ant-list ant-list-sm ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 色弱模式 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small color-weak" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-alert ant-alert-warning" data-show="true" role="alert" style="margin-block-end: 16px;" > <span aria-label="notification" class="anticon anticon-notification ant-alert-icon" role="img" > <svg aria-hidden="true" data-icon="notification" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z" /> </svg> </span> <div class="ant-alert-content" > <div class="ant-alert-message" > 配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件 </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-block" style="margin-block-end: 24px;" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> <span> 拷贝设置 </span> </button> </div> </div> </div> </div> </div> <div aria-hidden="true" data-sentinel="end" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> </div> </DocumentFragment> `; exports[`settingDrawer.test > 🌺 hideCopyButton = true 1`] = ` <DocumentFragment> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="close" class="anticon anticon-close" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </div> <div class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline" tabindex="-1" > <div class="ant-drawer-mask" /> <div aria-hidden="true" data-sentinel="start" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> <div class="ant-drawer-content-wrapper" style="width: 300px;" > <div aria-modal="true" class="ant-drawer-content" role="dialog" style="z-index: 999;" > <div class="ant-drawer-wrapper-body" > <div class="ant-drawer-body" > <div class="ant-pro-setting-drawer-drawer-content" > <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 整体风格设置 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-light ant-pro-setting-drawer-block-checkbox-theme-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 主题色 </h3> <div class="ant-pro-setting-drawer-theme-color" > <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(22, 119, 255);" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(24, 144, 255);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(245, 34, 45);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 84, 28);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 173, 20);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(19, 194, 194);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(82, 196, 26);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(47, 84, 235);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(114, 46, 209);" /> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 导航模式 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-side ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: block;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-top ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-mix ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 侧边菜单类型 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-sub ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M26 0h55c5.523 0 10 4.477 10 10v8H26V0z" fill="#FFF" /> <path d="M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z" fill="#001529" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="18" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="42" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="24" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="48" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="36" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="30" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="54" /> </g> </svg> </div> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-group ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M25 15h65v47c0 5.523-4.477 10-10 10H25V15z" fill="#FFF" /> <path d="M0.5 15.5L90.5 15.5" stroke="#E6EAF0" stroke-linecap="square" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="26" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="32" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="42" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="21" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="53" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="47" /> <path d="M25.5 15.5L25.5 72.5" stroke="#E6EAF0" stroke-linecap="square" /> </g> </svg> </div> </div> </div> </div> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 内容区域宽度 </span> <ul class="ant-list-item-action" > <li> <div class="ant-select ant-select-sm content-width ant-select-single ant-select-show-arrow" style="width: 80px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Fixed" > Fixed </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定 Header </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fixed-header" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定侧边菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fix-siderbar" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 0.5;" > 自动分割菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small split-menus ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 内容区域 </h3> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 顶栏 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-header ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 页脚 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-footer ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menu ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单头 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menuHeader ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 其他设置 </h3> <div class="ant-list ant-list-sm ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 色弱模式 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small color-weak" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-alert ant-alert-warning" data-show="true" role="alert" style="margin-block-end: 16px;" > <span aria-label="notification" class="anticon anticon-notification ant-alert-icon" role="img" > <svg aria-hidden="true" data-icon="notification" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z" /> </svg> </span> <div class="ant-alert-content" > <div class="ant-alert-message" > 配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件 </div> </div> </div> </div> </div> </div> </div> </div> <div aria-hidden="true" data-sentinel="end" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> </div> </DocumentFragment> `; exports[`settingDrawer.test > 🌺 hideHintAlert = true 1`] = ` <DocumentFragment> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="close" class="anticon anticon-close" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </div> <div class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline" tabindex="-1" > <div class="ant-drawer-mask" /> <div aria-hidden="true" data-sentinel="start" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> <div class="ant-drawer-content-wrapper" style="width: 300px;" > <div aria-modal="true" class="ant-drawer-content" role="dialog" style="z-index: 999;" > <div class="ant-drawer-wrapper-body" > <div class="ant-drawer-body" > <div class="ant-pro-setting-drawer-drawer-content" > <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 整体风格设置 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-light ant-pro-setting-drawer-block-checkbox-theme-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 主题色 </h3> <div class="ant-pro-setting-drawer-theme-color" > <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(22, 119, 255);" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(24, 144, 255);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(245, 34, 45);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 84, 28);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 173, 20);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(19, 194, 194);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(82, 196, 26);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(47, 84, 235);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(114, 46, 209);" /> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 导航模式 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-side ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: block;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-top ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-mix ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 侧边菜单类型 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-sub ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M26 0h55c5.523 0 10 4.477 10 10v8H26V0z" fill="#FFF" /> <path d="M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z" fill="#001529" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="18" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="42" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="24" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="48" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="36" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="30" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="54" /> </g> </svg> </div> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-group ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M25 15h65v47c0 5.523-4.477 10-10 10H25V15z" fill="#FFF" /> <path d="M0.5 15.5L90.5 15.5" stroke="#E6EAF0" stroke-linecap="square" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="26" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="32" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="42" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="21" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="53" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="47" /> <path d="M25.5 15.5L25.5 72.5" stroke="#E6EAF0" stroke-linecap="square" /> </g> </svg> </div> </div> </div> </div> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 内容区域宽度 </span> <ul class="ant-list-item-action" > <li> <div class="ant-select ant-select-sm content-width ant-select-single ant-select-show-arrow" style="width: 80px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="Fixed" > Fixed </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定 Header </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fixed-header" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定侧边菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fix-siderbar" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 0.5;" > 自动分割菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small split-menus ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 内容区域 </h3> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 顶栏 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-header ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 页脚 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-footer ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menu ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单头 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menuHeader ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 其他设置 </h3> <div class="ant-list ant-list-sm ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 色弱模式 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small color-weak" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <button class="ant-btn ant-btn-default ant-btn-block" style="margin-block-end: 24px;" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> <span> 拷贝设置 </span> </button> </div> </div> </div> </div> </div> <div aria-hidden="true" data-sentinel="end" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> </div> </DocumentFragment> `; exports[`settingDrawer.test > 🌺 settings = undefined 1`] = ` <DocumentFragment> <div class="ant-pro-setting-drawer-handle" style="width: 48px; height: 48px;" > <span aria-label="close" class="anticon anticon-close" role="img" style="color: rgb(255, 255, 255); font-size: 20px;" > <svg aria-hidden="true" data-icon="close" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path 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" /> </svg> </span> </div> <div class="ant-drawer ant-drawer-right ant-drawer-open ant-drawer-inline" tabindex="-1" > <div class="ant-drawer-mask" /> <div aria-hidden="true" data-sentinel="start" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> <div class="ant-drawer-content-wrapper" style="width: 300px;" > <div aria-modal="true" class="ant-drawer-content" role="dialog" style="z-index: 999;" > <div class="ant-drawer-wrapper-body" > <div class="ant-drawer-body" > <div class="ant-pro-setting-drawer-drawer-content" > <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 整体风格设置 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-light ant-pro-setting-drawer-block-checkbox-theme-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: block;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 主题色 </h3> <div class="ant-pro-setting-drawer-theme-color" > <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(22, 119, 255);" > <span aria-label="check" class="anticon anticon-check" role="img" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(24, 144, 255);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(245, 34, 45);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 84, 28);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(250, 173, 20);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(19, 194, 194);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(82, 196, 26);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(47, 84, 235);" /> <div class="ant-pro-setting-drawer-theme-color-block" style="background-color: rgb(114, 46, 209);" /> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 导航模式 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-side ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: block;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-top ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-mix ant-pro-setting-drawer-block-checkbox-layout-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> </div> </div> </div> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 侧边菜单类型 </h3> <div class="ant-pro-setting-drawer-block-checkbox" > <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-sub ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M26 0h55c5.523 0 10 4.477 10 10v8H26V0z" fill="#FFF" /> <path d="M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z" fill="#001529" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="18" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="5" y="42" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="24" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="48" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="9" x="9" y="36" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="30" /> <rect fill="#D7DDE6" height="3" opacity="0.2" rx="1.5" width="14" x="9" y="54" /> </g> </svg> </div> </div> <div class="ant-pro-setting-drawer-block-checkbox-item ant-pro-setting-drawer-block-checkbox-item-group ant-pro-setting-drawer-block-checkbox-siderMenuType-item" > <span aria-label="check" class="anticon anticon-check ant-pro-setting-drawer-block-checkbox-selectIcon" role="img" style="display: none;" > <svg aria-hidden="true" data-icon="check" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" /> </svg> </span> <div class="ant-pro-setting-drawer-block-checkbox-icon" > <svg height="1em" viewBox="0 0 104 104" width="1em" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" > <defs> <rect height="72" id="path-1" rx="10" width="90" x="0" y="0" /> <filter filterUnits="objectBoundingBox" height="165.3%" id="filter-2" width="152.2%" x="-26.1%" y="-27.1%" > <femorphology in="SourceAlpha" radius="0.25" result="shadowSpreadOuter1" /> <feoffset dy="1" in="shadowSpreadOuter1" result="shadowOffsetOuter1" /> <fegaussianblur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1" /> <fecolormatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0" /> <femorphology in="SourceAlpha" radius="1" result="shadowSpreadOuter2" /> <feoffset dy="2" in="shadowSpreadOuter2" result="shadowOffsetOuter2" /> <fegaussianblur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="4" /> <fecolormatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0" /> <femorphology in="SourceAlpha" radius="2" result="shadowSpreadOuter3" /> <feoffset dy="4" in="shadowSpreadOuter3" result="shadowOffsetOuter3" /> <fegaussianblur in="shadowOffsetOuter3" result="shadowBlurOuter3" stdDeviation="8" /> <fecolormatrix in="shadowBlurOuter3" result="shadowMatrixOuter3" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" /> <femerge> <femergenode in="shadowMatrixOuter1" /> <femergenode in="shadowMatrixOuter2" /> <femergenode in="shadowMatrixOuter3" /> </femerge> </filter> </defs> <g fill="none" fill-rule="evenodd" stroke="none" stroke-width="1" > <g> <use fill="#000" filter="url(#filter-2)" xlink:href="#path-1" /> <use fill="#F0F2F5" xlink:href="#path-1" /> </g> <path d="M25 15h65v47c0 5.523-4.477 10-10 10H25V15z" fill="#FFF" /> <path d="M0.5 15.5L90.5 15.5" stroke="#E6EAF0" stroke-linecap="square" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="26" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="32" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="42" /> <rect fill="#E6EAF0" height="3" rx="1.5" width="9" x="4" y="21" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="9" x="4" y="53" /> <rect fill="#D7DDE6" height="3" rx="1.5" width="14" x="4" y="47" /> <path d="M25.5 15.5L25.5 72.5" stroke="#E6EAF0" stroke-linecap="square" /> </g> </svg> </div> </div> </div> </div> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 内容区域宽度 </span> <ul class="ant-list-item-action" > <li> <div class="ant-select ant-select-sm content-width ant-select-single ant-select-show-arrow" style="width: 80px;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="流式" > 流式 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定 Header </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small fixed-header" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 固定侧边菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small fix-siderbar ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 0.5;" > 自动分割菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small split-menus ant-switch-disabled" disabled="" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 内容区域 </h3> <div class="ant-list ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 顶栏 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-header ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 页脚 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-footer ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menu ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> <li class="ant-list-item" > <span style="opacity: 1;" > 菜单头 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="true" class="ant-switch ant-switch-small regional-menuHeader ant-switch-checked" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div style="margin-block-end: 12px;" > <h3 class="ant-pro-setting-drawer-body-title" > 其他设置 </h3> <div class="ant-list ant-list-sm ant-pro-setting-drawer-list" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item" > <span style="opacity: 1;" > 色弱模式 </span> <ul class="ant-list-item-action" > <li> <button aria-checked="false" class="ant-switch ant-switch-small color-weak" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </li> </ul> </li> </ul> </div> </div> </div> </div> <div class="ant-divider ant-divider-horizontal" role="separator" /> <div class="ant-alert ant-alert-warning" data-show="true" role="alert" style="margin-block-end: 16px;" > <span aria-label="notification" class="anticon anticon-notification ant-alert-icon" role="img" > <svg aria-hidden="true" data-icon="notification" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z" /> </svg> </span> <div class="ant-alert-content" > <div class="ant-alert-message" > 配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件 </div> </div> </div> <button class="ant-btn ant-btn-default ant-btn-block" style="margin-block-end: 24px;" type="button" > <span class="ant-btn-icon" > <span aria-label="copy" class="anticon anticon-copy" role="img" > <svg aria-hidden="true" data-icon="copy" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" /> </svg> </span> </span> <span> 拷贝设置 </span> </button> </div> </div> </div> </div> </div> <div aria-hidden="true" data-sentinel="end" style="width: 0px; height: 0px; overflow: hidden; outline: none; position: absolute;" tabindex="0" /> </div> </DocumentFragment> `;
9,176
0
petrpan-code/ant-design/pro-components/tests/layout
petrpan-code/ant-design/pro-components/tests/layout/__snapshots__/waterMark.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`WaterMark > test image watermark 1`] = ` <div> <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div style="height: 500px;" > 123 </div> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </div> `; exports[`WaterMark > test text watermark 1`] = ` <DocumentFragment> <div class="ant-pro-layout-watermark-wrapper" style="position: relative;" > <div style="height: 500px;" /> <div class="ant-pro-layout-watermark" style="z-index: 9; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-size: 332px; pointer-events: none; background-repeat: repeat; background-image: url(data:image/png;base64,00);" /> </div> </DocumentFragment> `;
9,177
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/list/demo.test.ts
import demoTest from '../demo'; demoTest('list');
9,178
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/list/index.test.tsx
import ProList, { BaseProList } from '@ant-design/pro-list'; import { act, cleanup, fireEvent, render as reactRender, screen, waitFor, } from '@testing-library/react'; import { Tag } from 'antd'; import type { Key } from 'react'; import { useState } from 'react'; import PaginationDemo from '../../packages/list/src/demos/pagination'; import { waitForWaitTime } from '../util'; type DataSourceType = { name: string; desc: { text: string; }; }; afterEach(() => { cleanup(); }); describe('List', () => { it('🚏 base use', async () => { const { container } = reactRender( <ProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} />, ); expect( container.querySelector('.ant-pro-list-row-title')!.innerHTML, ).toEqual('我是名称'); expect( container.querySelector('.ant-pro-list-row-description')!.innerHTML, ).toEqual('desc text'); }); it('🚏 BaseList', async () => { const { container } = reactRender( <BaseProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, xxx: { dataIndex: ['desc', 'text'], }, subTitle: { title: 'desc text', }, }} />, ); expect( container.querySelector('.ant-pro-list-row-title')!.innerHTML, ).toEqual('我是名称'); expect( container.querySelector('.ant-pro-list-row-description')!.innerHTML, ).toEqual('desc text'); expect(container.querySelectorAll('.ant-pro-card')!.length).toBe(0); }); it('🚏 show loading state', async () => { const { container } = reactRender( <ProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} loading={true} />, ); expect(container).toMatchSnapshot(); }); it('🚏 only has content', async () => { const { container } = reactRender( <ProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ content: { render: () => { return ( <div> 段落示意:蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态提供跨越设计与开发的体验解决方案。 </div> ); }, }, }} />, ); expect(container).toMatchSnapshot(); }); it('🚏 only has description', async () => { const { container } = reactRender( <ProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ description: { render: () => ( <> <Tag>语雀专栏</Tag> <Tag>设计语言</Tag> <Tag>蚂蚁金服</Tag> </> ), }, }} />, ); expect(container).toMatchSnapshot(); }); it('🚏 empty', async () => { const { container } = reactRender( <ProList metas={{ title: { dataIndex: 'name', }, }} />, ); expect( container.querySelector('.ant-empty-description')!.innerHTML, ).toEqual('暂无数据'); }); it('🚏 expandable', async () => { const onExpand = vi.fn(); const Wrapper = () => { const [expandedRowKeys, onExpandedRowsChange] = useState<readonly Key[]>( [], ); return ( <ProList dataSource={[ { name: '我是名称', content: <div>我是内容</div>, }, ]} metas={{ title: { dataIndex: 'name', }, content: {}, }} expandable={{ expandedRowKeys, onExpandedRowsChange, onExpand }} /> ); }; const { container } = reactRender(<Wrapper />); expect( container.querySelectorAll('.ant-pro-list-row-description').length, ).toEqual(0); await fireEvent.click( container.querySelector('.ant-pro-list-row-expand-icon')!, ); expect( container.querySelector('.ant-pro-list-row-content')!.innerHTML, ).toEqual('<div>我是内容</div>'); expect(onExpand).toHaveBeenCalledWith( true, expect.objectContaining({ name: '我是名称' }), ); }); it('🚏 expandable support expandRowByClick', async () => { const onExpand = vi.fn(); const Wrapper = () => { const [expandedRowKeys, onExpandedRowsChange] = useState<readonly Key[]>( [], ); return ( <ProList dataSource={[ { name: '我是名称', content: <div>我是内容</div>, }, ]} metas={{ title: { dataIndex: 'name', }, content: {}, }} expandable={{ expandedRowKeys, onExpandedRowsChange, onExpand, expandRowByClick: true, }} /> ); }; const { container } = reactRender(<Wrapper />); expect( container.querySelectorAll('.ant-pro-list-row-description').length, ).toEqual(0); await fireEvent.click(container.querySelector('.ant-list-item')!); expect( container.querySelector('.ant-pro-list-row-content')!.innerHTML, ).toEqual('<div>我是内容</div>'); expect(onExpand).toHaveBeenCalledWith( true, expect.objectContaining({ name: '我是名称' }), ); }); it('🚏 expandable with defaultExpandedRowKeys', async () => { const Wrapper = () => { return ( <ProList dataSource={[ { name: '我是名称', content: <div>我是内容</div>, itemKey: 'a', }, { name: '我是名称', content: <div>我是内容b</div>, itemKey: 'b', }, ]} rowKey="itemKey" metas={{ title: { dataIndex: 'name', }, content: {}, }} expandable={{ defaultExpandedRowKeys: ['b'], }} /> ); }; const { container } = reactRender(<Wrapper />); expect( container.querySelector('.ant-pro-list-row-content')!.innerHTML, ).toEqual('<div>我是内容b</div>'); }); it('🚏 expandable with expandedRowRender', async () => { const Wrapper = () => { const [expandedRowKeys, onExpandedRowsChange] = useState<readonly Key[]>( [], ); return ( <ProList dataSource={[ { name: '我是名称', content: <div>我是内容</div>, }, ]} metas={{ title: { dataIndex: 'name', }, content: {}, }} expandable={{ expandedRowKeys, onExpandedRowsChange, expandedRowClassName: () => { return 'test-custom-class-name'; }, expandedRowRender: (record, index) => { return <div>expand:{index}</div>; }, }} rowKey={(item) => { return item.name; }} /> ); }; const { container } = reactRender(<Wrapper />); expect( container.querySelectorAll('.ant-pro-list-row-description').length, ).toEqual(0); // html.find('.ant-pro-list-row-expand-icon').simulate('click'); await fireEvent.click( container.querySelector('.ant-pro-list-row-expand-icon')!, ); expect( container.querySelector( '.ant-pro-list-row-content .test-custom-class-name', )!.innerHTML, ).toEqual('<div>expand:0</div>'); }); it('🚏 expandable with expandIcon', async () => { const fn = vi.fn(); const Wrapper = () => { return ( <ProList dataSource={[ { name: '我是名称', content: <div>我是内容</div>, }, ]} metas={{ title: { dataIndex: 'name', }, content: {}, }} expandable={{ expandIcon: ({ record }) => ( <div id="test_click" onClick={() => fn(record.name)} className="expand-icon" /> ), }} rowKey={(item) => { return item.name; }} /> ); }; const { container } = reactRender(<Wrapper />); expect(container.querySelectorAll('.expand-icon')).toHaveLength(1); await fireEvent.click(container.querySelector('#test_click')!); expect(fn).toBeCalledWith('我是名称'); }); it('🚏 ProList support renderItem', async () => { const Wrapper = () => { return ( <ProList dataSource={[ { name: '我是名称', content: <div>我是内容</div>, }, ]} renderItem={(_, index) => { return <div data-testid="test_index">{index}</div>; }} rowKey={(item) => { return item.name; }} /> ); }; reactRender(<Wrapper />); expect(screen.getByTestId('test_index')).toHaveTextContent('0'); }); it('🚏 rowSelection', async () => { const Wrapper = () => { return ( <ProList dataSource={[ { name: '我是名称', description: '我是描述', }, { name: '我是名称', description: '我是描述', }, ]} rowSelection={{}} metas={{ title: { dataIndex: 'name', }, description: {}, }} /> ); }; const { container } = reactRender(<Wrapper />); expect(container.querySelectorAll('.ant-checkbox-input')!.length).toEqual( 2, ); fireEvent.change(container.querySelectorAll('.ant-checkbox-input')[0], { target: { checked: true, }, }); expect(container.querySelectorAll('.ant-checkbox-input')[0]).toBeChecked(); expect( container.querySelectorAll('.ant-checkbox-input')[1], ).not.toBeChecked(); }); it('🚏 support pagination', async () => { const { container } = reactRender(<PaginationDemo />); expect(container.querySelectorAll('.ant-list-item').length).toEqual(5); fireEvent.click(container.querySelectorAll('.ant-pagination-item')[1]); expect(container.querySelectorAll('.ant-list-item').length).toEqual(2); fireEvent.mouseDown(container.querySelector('.ant-select-selector')!); fireEvent.click(container.querySelectorAll('.ant-select-item-option')[3]); expect(container.querySelectorAll('.ant-list-item').length).toEqual(7); }); it('🚏 filter and request', async () => { const onRequest = vi.fn(); const { container, findByText, baseElement } = reactRender( <ProList<any, { title: string }> metas={{ title: { title: '标题', }, }} request={(params, sort, filter) => { if (params.title) { onRequest(params, sort, filter); } return Promise.resolve({ success: true, data: [ { title: '测试标题1', }, { title: '测试标题2', }, ], }); }} pagination={{ pageSize: 5, onShowSizeChange: () => {}, }} search={{ filterType: 'light', }} />, ); await waitFor(async () => { expect( container.querySelectorAll('.ant-pro-list-row-title').length, ).toEqual(2); }); fireEvent.click(container.querySelector('.ant-pro-core-field-label')!); act(() => { fireEvent.change(baseElement.querySelector('.ant-input')!, { target: { value: 'test', }, }); }); await act(async () => { (await findByText('确 认')).click(); }); await waitFor(() => { expect(onRequest).toHaveBeenCalledWith( { current: 1, pageSize: 5, title: 'test', }, {}, {}, ); }); }); it('🚏 ProList support onRow', async () => { const onClick = vi.fn(); const onMouseEnter = vi.fn(); const { container } = reactRender( <ProList<DataSourceType> dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} onRow={(record: DataSourceType) => { return { onMouseEnter: () => { onMouseEnter(record.name); }, onClick: () => { onClick(); }, }; }} />, ); fireEvent.click(container.querySelector('.ant-list-item')!); expect(onClick).toBeCalled(); fireEvent.mouseEnter(container.querySelector('.ant-list-item')!); expect(onMouseEnter).toBeCalledWith('我是名称'); }); it('🚏 ProList support rowClassName as a string', async () => { const customizedRowClassName = 'rowClassName'; const { container } = reactRender( <ProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} rowClassName={customizedRowClassName} />, ); expect(container.querySelector('li.ant-pro-list-row')!).toHaveClass( customizedRowClassName, ); expect(container).toMatchSnapshot(); }); it('🚏 ProList support rowClassName as a function', async () => { const customizedRowClassName = (_: any, index: number): string => index % 2 === 0 ? 'even' : 'odd'; const { container } = reactRender( <ProList dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, { name: '我是名称', desc: { text: 'desc text', }, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} rowClassName={customizedRowClassName} />, ); expect(container.querySelectorAll('li.ant-pro-list-row')[0]).toHaveClass( 'even', ); expect(container.querySelectorAll('li.ant-pro-list-row')[1]).toHaveClass( 'odd', ); expect(container).toMatchSnapshot(); }); it('🚏 ProList support itemHeaderRender', async () => { const html = reactRender( <ProList<DataSourceType> dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} itemHeaderRender={(item) => <>qixian:{item.name}</>} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} />, ); await waitForWaitTime(1200); expect( html.baseElement.textContent?.includes('qixian:我是名称'), ).toBeTruthy(); }); it('🚏 ProList support itemTitleRender', async () => { const html = reactRender( <ProList<DataSourceType> dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, }, ]} itemTitleRender={(item) => <>qixian:{item.name}</>} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, }} />, ); await waitForWaitTime(1200); expect( html.baseElement.textContent?.includes('qixian:我是名称'), ).toBeTruthy(); }); it('🚏 list support actions render to extra props', async () => { const html = reactRender( <ProList grid={{ gutter: 16, column: 2 }} dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, actions: [ <a key="edit" id="html_url"> 修复 </a>, ], }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, actions: {}, }} />, ); await waitForWaitTime(1200); // 触发click,执行一下 stopPropagation 的代码 await act(async () => { (await html.findByText('修复'))?.click(); }); expect(html.baseElement.textContent?.includes('修复')).toBeTruthy(); expect( !!html.baseElement.querySelector('.ant-pro-card-actions'), ).toBeFalsy(); }); it('🚏 list support actions render to actions props', async () => { const html = reactRender( <ProList grid={{ gutter: 16, column: 2 }} dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, actions: {}, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, actions: { cardActionProps: 'actions', render: () => [ <a key="edit" id="edit"> 修复 </a>, ], }, }} />, ); await waitForWaitTime(1000); expect(!!html.baseElement.querySelector('.ant-pro-card-extra')).toBeFalsy(); act(() => { html.queryByText('修复')?.click(); }); }); it('🚏 trigger list item event when has grid prop', async () => { const fn1 = vi.fn(); const fn2 = vi.fn(); const html = reactRender( <ProList grid={{ gutter: 16, column: 2 }} onItem={(record: any) => { return { onMouseEnter: () => { fn1(record.name); }, onClick: () => { fn2(record.name); }, }; }} dataSource={[ { name: '我是名称', desc: { text: 'desc text', }, actions: {}, }, ]} metas={{ title: { dataIndex: 'name', }, description: { dataIndex: ['desc', 'text'], }, actions: { cardActionProps: 'actions', render: () => [ <a key="edit" id="edit"> 修复 </a>, ], }, }} />, ); await waitForWaitTime(1000); act(() => { fireEvent.mouseEnter( html.baseElement.querySelector( '.ant-pro-list-row-card .ant-pro-checkcard', )!, {}, ); fireEvent.click( html.baseElement.querySelector( '.ant-pro-list-row-card .ant-pro-checkcard', )!, {}, ); }); await waitFor(() => { expect(fn1).toBeCalledWith('我是名称'); expect(fn2).toBeCalledWith('我是名称'); }); }); });
9,179
0
petrpan-code/ant-design/pro-components/tests/list
petrpan-code/ant-design/pro-components/tests/list/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`list demos > 📸 renders ./packages/list/src/demos/ToolBar.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-menu ant-pro-table-list-toolbar-inline-menu" > <div class="ant-pro-table-list-toolbar-inline-menu-item ant-pro-table-list-toolbar-inline-menu-item-active" > <span> 全部实验室 <span class="ant-badge ant-badge-not-a-wrapper" > <sup class="ant-scroll-number ant-badge-count ant-badge-multiple-words" data-show="true" style="margin-block-start: -2px; margin-inline-start: 4px; color: rgb(24, 144, 255); background-color: rgb(230, 247, 255);" title="99" > <bdi> <span class="ant-scroll-number-only" style="transition: none;" > <span class="ant-scroll-number-only-unit current" > 9 </span> </span> <span class="ant-scroll-number-only" style="transition: none;" > <span class="ant-scroll-number-only-unit current" > 9 </span> </span> </bdi> </sup> </span> </span> </div> <div class="ant-pro-table-list-toolbar-inline-menu-item" > <span> 我创建的实验室 <span class="ant-badge ant-badge-not-a-wrapper" > <sup class="ant-scroll-number ant-badge-count ant-badge-multiple-words" data-show="true" style="margin-block-start: -2px; margin-inline-start: 4px; color: rgb(153, 153, 153); background-color: rgb(238, 238, 238);" title="32" > <bdi> <span class="ant-scroll-number-only" style="transition: none;" > <span class="ant-scroll-number-only-unit current" > 3 </span> </span> <span class="ant-scroll-number-only" style="transition: none;" > <span class="ant-scroll-number-only-unit current" > 2 </span> </span> </bdi> </sup> </span> </span> </div> </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div class="ant-pro-table-list-toolbar-search" > <span class="ant-input-group-wrapper ant-input-search" style="width: 200px;" > <span class="ant-input-wrapper ant-input-group" > <input class="ant-input" placeholder="请输入" type="text" value="" /> <span class="ant-input-group-addon" > <button class="ant-btn ant-btn-default ant-btn-icon-only ant-input-search-button" type="button" > <span class="ant-btn-icon" > <span aria-label="search" class="anticon anticon-search" role="img" > <svg aria-hidden="true" data-icon="search" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" /> </svg> </span> </span> </button> </span> </span> </span> </div> <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新建实验 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 实验名称1 </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="display: flex; justify-content: space-around;" > <div> <div> 模型数 </div> <div> 2903 </div> </div> <div> <div> 指标数 </div> <div> 3720 </div> </div> <div> <div> 实验状态 </div> <div> <span style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: rgb(82, 196, 26); margin-inline-end: 8px;" /> 成功 </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a rel="noopener noreferrer" target="_blank" > 编辑 </a> <a rel="noopener noreferrer" target="_blank" > 复制 </a> <a rel="noopener noreferrer" target="_blank" > 删除 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 实验名称2 </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="display: flex; justify-content: space-around;" > <div> <div> 模型数 </div> <div> 2904 </div> </div> <div> <div> 指标数 </div> <div> 3721 </div> </div> <div> <div> 实验状态 </div> <div> <span style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: rgb(82, 196, 26); margin-inline-end: 8px;" /> 成功 </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a rel="noopener noreferrer" target="_blank" > 编辑 </a> <a rel="noopener noreferrer" target="_blank" > 复制 </a> <a rel="noopener noreferrer" target="_blank" > 删除 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 实验名称3 </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="display: flex; justify-content: space-around;" > <div> <div> 模型数 </div> <div> 2905 </div> </div> <div> <div> 指标数 </div> <div> 3722 </div> </div> <div> <div> 实验状态 </div> <div> <span style="display: inline-block; width: 8px; height: 8px; border-radius: 50%; background-color: rgb(82, 196, 26); margin-inline-end: 8px;" /> 成功 </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a rel="noopener noreferrer" target="_blank" > 编辑 </a> <a rel="noopener noreferrer" target="_blank" > 复制 </a> <a rel="noopener noreferrer" target="_blank" > 删除 </a> </div> </div> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/base.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="name" title="规格名" > 规格名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper ant-input-affix-wrapper-focused pro-field pro-field-md" > <input class="ant-input" id="name" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="规格" > 规格 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div class="ant-pro-card ant-pro-card-border" style="margin-block-end: 8px;" > <div class="ant-pro-card-header" > <div class="ant-pro-card-title" > 规格1 </div> </div> <div class="ant-pro-card-body" style="padding-block-end: 0;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" for="attributes_0_name" title="规格名" > 规格名 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper pro-field pro-field-md" > <input class="ant-input" id="attributes_0_name" placeholder="请输入" type="text" value="颜色" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> <div class="ant-form-item" style="margin-block-end: 0;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="规格值" > 规格值 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-pro-form-list" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div style="max-width: 100%; min-width: 100%;" > <div style="display: inline-flex; margin-inline-end: 25px;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input pro-field pro-field-xs" id="attributes_0_items_0_name" placeholder="请输入" type="text" value="红" /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <div style="display: inline-flex; margin-inline-end: 25px;" > <div class="ant-pro-form-list-container" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <input class="ant-input pro-field pro-field-xs" id="attributes_0_items_1_name" placeholder="请输入" type="text" value="黄" /> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-list-action" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <span aria-label="delete" class="anticon anticon-delete ant-pro-form-list-action-icon action-remove" role="img" tabindex="-1" > <svg aria-hidden="true" data-icon="delete" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" /> </svg> </span> </div> </div> </div> </div> <button class="ant-btn ant-btn-link ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span> 新建 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <button class="ant-btn ant-btn-dashed ant-btn-block ant-pro-form-list-creator-button-bottom" type="button" > <span class="ant-btn-icon" > <span aria-label="plus" class="anticon anticon-plus" role="img" > <svg aria-hidden="true" data-icon="plus" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" /> <path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" /> </svg> </span> </span> <span> 添加规格项 </span> </button> </div> </div> </div> </div> </div> </div> </div> <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 提 交 </span> </button> <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> </div> </form> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/card-list.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background-color: rgb(238, 238, 238); margin: -24px; padding: 24px;" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="actions 放置的地方" > actions 放置的地方 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-radio-group ant-radio-group-outline ant-pro-field-radio-horizontal" > <label class="ant-radio-wrapper ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target" > <input class="ant-radio-input" type="radio" value="actions" /> <span class="ant-radio-inner" /> </span> <span> 设置为 action </span> </label> <label class="ant-radio-wrapper ant-radio-wrapper-checked ant-radio-wrapper-in-form-item" > <span class="ant-radio ant-wave-target ant-radio-checked" > <input checked="" class="ant-radio-input" type="radio" value="extra" /> <span class="ant-radio-inner" /> </span> <span> 设置为 extra </span> </label> </div> </div> </div> </div> </div> </div> <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="" title="幽灵模式" > 幽灵模式 </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <button aria-checked="false" class="ant-switch" role="switch" type="button" > <div class="ant-switch-handle" /> <span class="ant-switch-inner" > <span class="ant-switch-inner-checked" /> <span class="ant-switch-inner-unchecked" /> </span> </button> </div> </div> </div> </div> </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 卡片列表展示 </div> </div> </div> </div> <div class="ant-list ant-list-split ant-list-grid ant-list-something-after-last-item ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <div class="ant-row" style="margin-left: -8px; margin-right: -8px;" > <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > 语雀的天空 </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > Ant Design </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > 蚂蚁金服体验科技 </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > TechUI </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > TechUI 2.0 </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > Bigfish </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > Umi </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> <div style="width: 50%; max-width: 50%;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-card" > <div class="ant-pro-checkcard ant-pro-checkcard-bordered" style="width: 100%;" > <div class="ant-pro-checkcard-content" > <div class="ant-pro-checkcard-detail" > <div class="ant-pro-checkcard-header" > <div class="ant-pro-checkcard-header-left" > <div class="ant-pro-checkcard-title" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> <span class="ant-list-item-meta-title" > Ant Design Pro </span> </div> <div class="ant-pro-checkcard-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> <div class="ant-pro-checkcard-extra" > <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 删除 </a> </div> </div> </div> </div> </div> </div> <div class="ant-pro-checkcard-body" style="padding: 24px;" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div style="flex: 1;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="ant-list-pagination ant-list-pagination-align-end" > <ul class="ant-pagination" > <li class="ant-pagination-total-text" > 第 1-8 条/总共 8 条 </li> <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="上一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="下一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/editable.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 基础列表 </div> </div> </div> </div> <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row-show-action-hover ant-pro-list-row" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空 </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-description" > 我是一条测试的描述 </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 编辑 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row-show-action-hover ant-pro-list-row" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-description" > 我是一条测试的描述 </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 编辑 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row-show-action-hover ant-pro-list-row" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技 </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-description" > 我是一条测试的描述 </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 编辑 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row-show-action-hover ant-pro-list-row" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-show-action-hover ant-pro-list-row-description" > 我是一条测试的描述 </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 编辑 </a> </div> </div> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/expand.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 支持展开的列表 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新 建 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空 </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <a> 邀请 </a> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <a> 邀请 </a> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技 </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <a> 邀请 </a> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> <div class="ant-pro-list-row-subTitle" > <div class="ant-space ant-space-horizontal ant-space-align-center" > <div class="ant-space-item" > <span class="ant-tag ant-tag-blue" > Ant Design </span> </div> <div class="ant-space-item" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > TechUI </span> </div> </div> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <a> 邀请 </a> </div> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/filter.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 基础列表 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div class="ant-pro-table-list-toolbar-filter" > <div class="ant-pro-card ant-pro-table-search ant-pro-table-search-light-filter" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-pro-form-light-filter ant-pro-form-light-filter-middle" > <div class="ant-pro-form-light-filter-container" > <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-pro-core-field-dropdown-label" > <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 用户 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-pro-form-light-filter-item" > <div class="ant-form-item" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div> <div class="ant-pro-field-select-light-select ant-pro-field-select-light-select-container-bottomLeft" > <div class="ant-select ant-select-in-form-item ant-select-single ant-select-allow-clear ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="status_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="status_list" autocomplete="off" class="ant-select-selection-search-input" id="status" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <span class="ant-pro-core-field-label ant-pro-core-field-label-middle ant-pro-core-field-label-allow-clear" > 状态 <span aria-label="down" class="anticon anticon-down ant-pro-core-field-label-icon ant-pro-core-field-label-arrow" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> </div> <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新 建 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-list-loading ant-list-something-after-last-item ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div style="min-height: 53px;" /> </div> </div> <div class="ant-list-pagination ant-list-pagination-align-end" > <ul class="ant-pagination" > <li class="ant-pagination-total-text" > 第 0-0 条/总共 0 条 </li> <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="上一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-disabled" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="下一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/layout.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 竖排样式 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新 建 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-vertical ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row" > <div class="ant-list-item-main" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > <span class="ant-tag" > 语雀专栏 </span> <span class="ant-tag" > 设计语言 </span> <span class="ant-tag" > 蚂蚁金服 </span> </div> </div> </div> </div> </div> <div class="ant-pro-list-row-content" > <div> 段落示意:蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态提供跨越设计与开发的体验解决方案。 </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <span> <span aria-label="star" class="anticon anticon-star" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" /> </svg> </span> 156 </span> <span> <span aria-label="like" class="anticon anticon-like" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> 156 </span> <span> <span aria-label="message" class="anticon anticon-message" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="message" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" /> </svg> </span> 2 </span> </div> </div> </li> </ul> </div> <div class="ant-list-item-extra" > <div class="" > <img alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png" width="272" /> </div> </div> </li> <li class="ant-list-item ant-pro-list-row" > <div class="ant-list-item-main" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > <span class="ant-tag" > 语雀专栏 </span> <span class="ant-tag" > 设计语言 </span> <span class="ant-tag" > 蚂蚁金服 </span> </div> </div> </div> </div> </div> <div class="ant-pro-list-row-content" > <div> 段落示意:蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态提供跨越设计与开发的体验解决方案。 </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <span> <span aria-label="star" class="anticon anticon-star" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" /> </svg> </span> 156 </span> <span> <span aria-label="like" class="anticon anticon-like" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> 156 </span> <span> <span aria-label="message" class="anticon anticon-message" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="message" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" /> </svg> </span> 2 </span> </div> </div> </li> </ul> </div> <div class="ant-list-item-extra" > <div class="" > <img alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png" width="272" /> </div> </div> </li> <li class="ant-list-item ant-pro-list-row" > <div class="ant-list-item-main" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > <span class="ant-tag" > 语雀专栏 </span> <span class="ant-tag" > 设计语言 </span> <span class="ant-tag" > 蚂蚁金服 </span> </div> </div> </div> </div> </div> <div class="ant-pro-list-row-content" > <div> 段落示意:蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态提供跨越设计与开发的体验解决方案。 </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <span> <span aria-label="star" class="anticon anticon-star" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" /> </svg> </span> 156 </span> <span> <span aria-label="like" class="anticon anticon-like" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> 156 </span> <span> <span aria-label="message" class="anticon anticon-message" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="message" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" /> </svg> </span> 2 </span> </div> </div> </li> </ul> </div> <div class="ant-list-item-extra" > <div class="" > <img alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png" width="272" /> </div> </div> </li> <li class="ant-list-item ant-pro-list-row" > <div class="ant-list-item-main" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > <span class="ant-tag" > 语雀专栏 </span> <span class="ant-tag" > 设计语言 </span> <span class="ant-tag" > 蚂蚁金服 </span> </div> </div> </div> </div> </div> <div class="ant-pro-list-row-content" > <div> 段落示意:蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态提供跨越设计与开发的体验解决方案。 </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <span> <span aria-label="star" class="anticon anticon-star" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="star" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z" /> </svg> </span> 156 </span> <span> <span aria-label="like" class="anticon anticon-like" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="like" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z" /> </svg> </span> 156 </span> <span> <span aria-label="message" class="anticon anticon-message" role="img" style="margin-inline-end: 8px;" > <svg aria-hidden="true" data-icon="message" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" /> </svg> </span> 2 </span> </div> </div> </li> </ul> </div> <div class="ant-list-item-extra" > <div class="" > <img alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png" width="272" /> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/pagination.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 翻页 </div> </div> </div> </div> <div class="ant-list ant-list-split ant-list-something-after-last-item ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空 </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技 </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI 2.0 </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <div class="ant-pro-list-row-content" > <div style="flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> </ul> </div> </div> <div class="ant-list-pagination ant-list-pagination-align-end" > <ul class="ant-pagination" > <li class="ant-pagination-total-text" > 第 1-5 条/总共 7 条 </li> <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="上一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-active" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li class="ant-pagination-item ant-pagination-item-2" tabindex="0" title="2" > <a rel="nofollow" > 2 </a> </li> <li aria-disabled="false" class="ant-pagination-next" tabindex="0" title="下一页" > <button class="ant-pagination-item-link" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </button> </li> <li class="ant-pagination-options" > <div aria-label="页码" class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow ant-select-show-search" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-label="页码" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" role="combobox" type="search" value="" /> </span> <span class="ant-select-selection-item" title="5 条/页" > 5 条/页 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/search.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card ant-pro-table-search ant-pro-table-search-query-filter" > <form autocomplete="off" class="ant-form ant-form-horizontal ant-pro-query-filter ant-pro-form" > <input style="display: none;" type="text" /> <div class="ant-row ant-row-start ant-pro-query-filter-row" style="margin-left: -12px; margin-right: -12px;" > <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="user" title="用户" > 用户 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <span class="ant-input-affix-wrapper" style="width: 100%;" > <input class="ant-input" id="user" placeholder="请输入" type="text" value="" /> <span class="ant-input-suffix" > <span class="ant-input-clear-icon ant-input-clear-icon-hidden" role="button" tabindex="-1" > <span aria-label="close-circle" class="anticon anticon-close-circle" role="img" > <svg aria-hidden="true" data-icon="close-circle" fill="currentColor" fill-rule="evenodd" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" /> </svg> </span> </span> </span> </span> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8 ant-pro-query-filter-row-split" style="padding-left: 12px; padding-right: 12px;" > <div class="ant-form-item" style="flex-wrap: nowrap;" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" style="flex: 0 0 80px;" > <label class="" for="status" title="状态" > 状态 </label> </div> <div class="ant-col ant-form-item-control" style="max-width: calc(100% - 80px);" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-select ant-select-in-form-item ant-pro-filed-search-select ant-select-single ant-select-allow-clear ant-select-show-arrow" style="width: 100%;" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="status_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="status_list" autocomplete="off" class="ant-select-selection-search-input" id="status" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-placeholder" > 请选择 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> </div> </div> </div> </div> </div> </div> <div class="ant-col ant-col-8" style="padding-left: 12px; padding-right: 12px; text-align: end;" > <div class="ant-form-item ant-pro-query-filter-actions" > <div class="ant-row ant-form-item-row" > <div class="ant-col ant-form-item-label" > <label class="ant-form-item-no-colon" title=" " > </label> </div> <div class="ant-col ant-form-item-control" > <div class="ant-form-item-control-input" > <div class="ant-form-item-control-input-content" > <div class="ant-space ant-space-horizontal ant-space-align-center" style="column-gap: 16px; row-gap: 16px;" > <div class="ant-space-item" > <div style="display: flex; gap: 8px; align-items: center;" > <button class="ant-btn ant-btn-default" type="button" > <span> 重 置 </span> </button> <button class="ant-btn ant-btn-primary ant-btn-loading" type="button" > <span class="ant-btn-icon ant-btn-loading-icon" > <span aria-label="loading" class="anticon anticon-loading anticon-spin" role="img" > <svg aria-hidden="true" data-icon="loading" fill="currentColor" focusable="false" height="1em" viewBox="0 0 1024 1024" width="1em" > <path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" /> </svg> </span> </span> <span> 查 询 </span> </button> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </form> </div> <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 基础列表 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新 建 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-list-loading ant-list-something-after-last-item ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> <div class="ant-spin-container ant-spin-blur" > <div style="min-height: 53px;" /> </div> </div> <div class="ant-list-pagination ant-list-pagination-align-end" > <ul class="ant-pagination" > <li class="ant-pagination-total-text" > 第 0-0 条/总共 0 条 </li> <li aria-disabled="true" class="ant-pagination-prev ant-pagination-disabled" title="上一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="left" class="anticon anticon-left" role="img" > <svg aria-hidden="true" data-icon="left" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" /> </svg> </span> </button> </li> <li class="ant-pagination-item ant-pagination-item-1 ant-pagination-item-disabled" tabindex="0" title="1" > <a rel="nofollow" > 1 </a> </li> <li aria-disabled="true" class="ant-pagination-next ant-pagination-disabled" title="下一页" > <button class="ant-pagination-item-link" disabled="" tabindex="-1" type="button" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </button> </li> </ul> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/selectedRow.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 支持选中的列表 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新 建 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> 发布 </div> </div> </li> </ul> <div class="" > <div style="min-width: 200px; flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> 发布 </div> </div> </li> </ul> <div class="" > <div style="min-width: 200px; flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> 发布 </div> </div> </li> </ul> <div class="" > <div style="min-width: 200px; flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> 发布 </div> </div> </li> </ul> <div class="" > <div style="min-width: 200px; flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="ant-progress ant-progress-status-normal ant-progress-line ant-progress-show-info ant-progress-default" role="progressbar" > <div class="ant-progress-outer" style="width: 100%; height: 8px;" > <div class="ant-progress-inner" > <div class="ant-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="ant-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/size.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> 大小: <div class="ant-select ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="default" > default </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> 分割线: <div class="ant-select ant-select-single ant-select-show-arrow" > <div class="ant-select-selector" > <span class="ant-select-selection-search" > <input aria-autocomplete="list" aria-controls="rc_select_TEST_OR_SSR_list" aria-expanded="false" aria-haspopup="listbox" aria-owns="rc_select_TEST_OR_SSR_list" autocomplete="off" class="ant-select-selection-search-input" id="rc_select_TEST_OR_SSR" readonly="" role="combobox" style="opacity: 0;" type="search" unselectable="on" value="" /> </span> <span class="ant-select-selection-item" title="有" > 有 </span> </div> <span aria-hidden="true" class="ant-select-arrow" style="user-select: none;" unselectable="on" > <span aria-label="down" class="anticon anticon-down ant-select-suffix" role="img" > <svg aria-hidden="true" data-icon="down" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" /> </svg> </span> </span> </div> <br /> <br /> <div class="ant-pro-table ant-pro-list ant-pro-list" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 大小和分割线 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 新 建 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空 </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技 </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> </div> </div> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/special.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-pro-table-list-toolbar" > <div class="ant-pro-table-list-toolbar-container" > <div class="ant-pro-table-list-toolbar-left" > <div class="ant-pro-table-list-toolbar-title" > 预设的列状态 </div> </div> <div class="ant-pro-table-list-toolbar-right" style="align-items: center;" > <div style="display: flex; align-items: center; gap: 8px;" > <button class="ant-btn ant-btn-primary" type="button" > <span> 刷 新 </span> </button> </div> </div> </div> </div> <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row-type-top ant-pro-list-row" > <div class="ant-pro-list-row-type-top ant-pro-list-row-header" > <div class="ant-pro-list-row-type-top ant-pro-list-row-header-option" > <div class="ant-pro-list-row-type-top ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 语雀的天空(top) </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row-type-inline ant-pro-list-row" > <div class="ant-pro-list-row-type-inline ant-pro-list-row-header" > <div class="ant-pro-list-row-type-inline ant-pro-list-row-header-option" > <div class="ant-pro-list-row-type-inline ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > Ant Design(inline) </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row-type-new ant-pro-list-row" > <div class="ant-pro-list-row-type-new ant-pro-list-row-header" > <div class="ant-pro-list-row-type-new ant-pro-list-row-header-option" > <div class="ant-pro-list-row-type-new ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 蚂蚁金服体验科技(new) </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> <li class="ant-list-item ant-pro-list-row-item-has-checkbox ant-pro-list-row-item-has-avatar ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" > <div class="ant-pro-list-row-checkbox" > <label class="ant-checkbox-wrapper" > <span class="ant-checkbox ant-wave-target" > <input class="ant-checkbox-input" type="checkbox" /> <span class="ant-checkbox-inner" /> </span> </label> </div> <span class="ant-pro-list-row-expand-icon ant-pro-list-row-collapsed" > <span aria-label="right" class="anticon anticon-right" role="img" > <svg aria-hidden="true" data-icon="right" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" /> </svg> </span> </span> </div> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-avatar" > <span class="ant-avatar ant-avatar-circle ant-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/UCSiy1j6jx/xingzhuang.svg" /> </span> </div> <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > TechUI </div> <div class="ant-pro-list-row-subTitle" > <span class="ant-tag ant-tag-has-color" style="background-color: rgb(91, 216, 166);" > 语雀专栏 </span> </div> </div> </h4> </div> </div> </div> <ul class="ant-list-item-action" > <li> <div> <div class="ant-pro-field-option" style="display: flex; gap: 16px; align-items: center;" > <a> 邀请 </a> <a> 操作 </a> <a> <span aria-label="ellipsis" class="anticon anticon-ellipsis" role="img" > <svg aria-hidden="true" data-icon="ellipsis" fill="currentColor" focusable="false" height="1em" viewBox="64 64 896 896" width="1em" > <path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" /> </svg> </span> </a> </div> </div> </li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`list demos > 📸 renders ./packages/list/src/demos/testConfigProvider.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div class="qixian-pro-table qixian-pro-list qixian-pro-list qixian-pro-list-no-split" > <div class="qixian-pro-card" > <div class="qixian-pro-card-body" style="padding-block-start: 0;" > <div class="qixian-pro-table-list-toolbar" > <div class="qixian-pro-table-list-toolbar-container" > <div class="qixian-pro-table-list-toolbar-left" > <div class="qixian-pro-table-list-toolbar-title" > 支持选中的列表 </div> </div> </div> </div> <div class="qixian-list qixian-list-split qixian-pro-list-container" > <div class="qixian-spin-nested-loading" > <div class="qixian-spin-container" > <ul class="qixian-list-items" > <li class="qixian-list-item qixian-pro-list-row-item-has-checkbox qixian-pro-list-row-item-has-avatar qixian-pro-list-row" > <div class="qixian-pro-list-row-header" > <div class="qixian-pro-list-row-header-option" > <div class="qixian-pro-list-row-checkbox" > <label class="qixian-checkbox-wrapper" > <span class="qixian-checkbox ant-wave-target" > <input class="qixian-checkbox-input" type="checkbox" /> <span class="qixian-checkbox-inner" /> </span> </label> </div> </div> <div class="qixian-list-item-meta" > <div class="qixian-list-item-meta-avatar" > <span class="qixian-avatar qixian-avatar-circle qixian-avatar-image" style="width: 22px; height: 22px; line-height: 22px; font-size: 18px;" > <img src="https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg" /> </span> </div> <div class="qixian-list-item-meta-content" > <h4 class="qixian-list-item-meta-title" > <div class="qixian-pro-list-row-header-container" > <div class="qixian-pro-list-row-title" > 语雀的天空 </div> </div> </h4> <div class="qixian-list-item-meta-description" > <div class="qixian-pro-list-row-description" > Ant Design, a design language for background applications, is refined by Ant UED Team </div> </div> </div> </div> </div> <ul class="qixian-list-item-action" > <li> <div> <div style="display: flex; align-items: center; justify-content: flex-start; gap: 8px;" > <a> 邀请 </a> 发布 </div> </div> </li> </ul> <div class="" > <div style="min-width: 200px; flex: 1; display: flex; justify-content: flex-end;" > <div style="width: 200px;" > <div> 发布中 </div> <div aria-valuenow="80" class="qixian-progress qixian-progress-status-normal qixian-progress-line qixian-progress-show-info qixian-progress-default" role="progressbar" > <div class="qixian-progress-outer" style="width: 100%; height: 8px;" > <div class="qixian-progress-inner" > <div class="qixian-progress-bg" style="width: 80%; height: 8px;" /> </div> </div> <span class="qixian-progress-text" title="80%" > 80% </span> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `;
9,180
0
petrpan-code/ant-design/pro-components/tests/list
petrpan-code/ant-design/pro-components/tests/list/__snapshots__/index.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`List > 🚏 ProList support rowClassName as a function 1`] = ` <div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row even" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 我是名称 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > desc text </div> </div> </div> </div> </div> </li> <li class="ant-list-item ant-pro-list-row odd" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 我是名称 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > desc text </div> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> `; exports[`List > 🚏 ProList support rowClassName as a string 1`] = ` <div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row rowClassName" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 我是名称 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > desc text </div> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> `; exports[`List > 🚏 only has content 1`] = ` <div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> </div> <div class="ant-pro-list-row-content" > <div> 段落示意:蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态,提供跨越设计与开发的体验解决方案。蚂蚁金服设计平台 design.alipay.com,用最小的工作量,无缝接入蚂蚁金服生态提供跨越设计与开发的体验解决方案。 </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> `; exports[`List > 🚏 only has description 1`] = ` <div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-list ant-list-split ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div class="ant-spin-container" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > <span class="ant-tag" > 语雀专栏 </span> <span class="ant-tag" > 设计语言 </span> <span class="ant-tag" > 蚂蚁金服 </span> </div> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> `; exports[`List > 🚏 show loading state 1`] = ` <div> <div class="ant-pro-table ant-pro-list ant-pro-list ant-pro-list-no-split" > <div class="ant-pro-card" > <div class="ant-pro-card-body" style="padding-block-start: 0;" > <div class="ant-list ant-list-split ant-list-loading ant-pro-list-container" > <div class="ant-spin-nested-loading" > <div> <div aria-busy="true" aria-live="polite" class="ant-spin ant-spin-spinning" > <span class="ant-spin-dot ant-spin-dot-spin" > <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> <i class="ant-spin-dot-item" /> </span> </div> </div> <div class="ant-spin-container ant-spin-blur" > <ul class="ant-list-items" > <li class="ant-list-item ant-pro-list-row" > <div class="ant-pro-list-row-header" > <div class="ant-pro-list-row-header-option" /> <div class="ant-list-item-meta" > <div class="ant-list-item-meta-content" > <h4 class="ant-list-item-meta-title" > <div class="ant-pro-list-row-header-container" > <div class="ant-pro-list-row-title" > 我是名称 </div> </div> </h4> <div class="ant-list-item-meta-description" > <div class="ant-pro-list-row-description" > desc text </div> </div> </div> </div> </div> </li> </ul> </div> </div> </div> </div> </div> </div> </div> `;
9,181
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/provider/index.test.tsx
import { ProConfigProvider, useStyle } from '@ant-design/pro-components'; import { cleanup, render } from '@testing-library/react'; import { ConfigProvider } from 'antd'; afterEach(() => { cleanup(); }); describe('ProConfigProvider', () => { it('token should be correct in useStyle', () => { const useDemoStyle = () => { return useStyle('ProCardActions', (token) => { expect(token.colorPrimary).toBe('#ff0000'); expect(token.colorPrimaryBg).toBe('#00ff00'); expect(token.colorPrimaryBgHover).toBe('#0000ff'); return [{}]; }); }; const Demo = () => { const { wrapSSR } = useDemoStyle(); return wrapSSR(<div />); }; render( <ConfigProvider theme={{ token: { colorPrimary: '#ff0000', colorPrimaryBg: '#00ff00', colorPrimaryBgHover: '#0000ff', }, }} > <ProConfigProvider> <Demo /> </ProConfigProvider> </ConfigProvider>, ); }); });
9,182
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/skeleton/demo.test.ts
import demoTest from '../demo'; demoTest('skeleton');
9,183
0
petrpan-code/ant-design/pro-components/tests
petrpan-code/ant-design/pro-components/tests/skeleton/skeleton.test.tsx
import { act, cleanup, render } from '@testing-library/react'; import ProSkeleton from '../../packages/skeleton/src/index'; afterEach(() => { cleanup(); }); describe('skeleton', () => { it('🥩 list base use', async () => { const wrapper = render(<ProSkeleton type="list" />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 descriptions base use', async () => { const wrapper = render(<ProSkeleton type="descriptions" />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 result base use', async () => { const wrapper = render(<ProSkeleton type="result" />); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 descriptions api use', async () => { const wrapper = render( <ProSkeleton type="descriptions" pageHeader={false} list={10} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); act(() => { wrapper.rerender( <ProSkeleton type="descriptions" pageHeader={false} list={5} />, ); }); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 list api use', async () => { const wrapper = render( <ProSkeleton type="list" pageHeader={false} statistic={3} actionButton={false} toolbar={false} list={10} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); act(() => { wrapper.rerender( <ProSkeleton type="list" pageHeader={false} statistic={false} actionButton={false} toolbar={false} list={false} />, ); }); expect(wrapper.asFragment()).toMatchSnapshot(); }); it('🥩 statistic=1,span=16', async () => { const wrapper = render( <ProSkeleton type="list" pageHeader={false} statistic={1} actionButton={false} toolbar={false} list={10} />, ); expect(wrapper.asFragment()).toMatchSnapshot(); }); });
9,184
0
petrpan-code/ant-design/pro-components/tests/skeleton
petrpan-code/ant-design/pro-components/tests/skeleton/__snapshots__/demo.test.ts.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`skeleton demos > 📸 renders ./packages/skeleton/src/demos/descriptions.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(250, 250, 250); padding: 24px;" > <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> <div style="margin-block-start: 32px;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; margin-inline-end: 24px; max-width: 300px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; align-items: center; justify-content: center;" > <div style="max-width: 300px; margin: auto;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="display: flex; background: rgba(0, 0, 0, 0.02); padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; justify-content: flex-end; padding-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin: 0px; height: 32px; float: right; max-width: 630px;" /> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton demos > 📸 renders ./packages/skeleton/src/demos/list.static.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(250, 250, 250); padding: 24px;" > <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card" style="margin-block-end: 16px;" > <div class="ant-card-body" > <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="padding-inline-start: 0; flex: 1; margin-inline-end: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="padding-inline-start: 16px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;" > <div class="ant-card-body" style="padding-block-end: 8px;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%; justify-content: space-between;" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 200px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 120px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 80px;" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" style="display: flex; align-items: center; justify-content: center;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 102px;" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton demos > 📸 renders ./packages/skeleton/src/demos/list.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(250, 250, 250); padding: 24px;" > <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card" style="margin-block-end: 16px;" > <div class="ant-card-body" > <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="padding-inline-start: 0; flex: 1; margin-inline-end: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="padding-inline-start: 16px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;" > <div class="ant-card-body" style="padding-block-end: 8px;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%; justify-content: space-between;" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 200px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 120px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 80px;" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" style="display: flex; align-items: center; justify-content: center;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 102px;" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton demos > 📸 renders ./packages/skeleton/src/demos/result.tsx correctly 1`] = ` <DocumentFragment> <div class="ant-app" > <div> test </div> <div style="background: rgb(250, 250, 250); padding: 24px;" > <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div style="display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 128px;" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" style="width: 64px; height: 64px; line-height: 64px; margin-block-end: 32px;" /> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="width: 214px; margin-block-end: 8px;" /> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 328px;" /> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="margin-block-start: 24px;" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="width: 116px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="width: 116px;" /> </div> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `;
9,185
0
petrpan-code/ant-design/pro-components/tests/skeleton
petrpan-code/ant-design/pro-components/tests/skeleton/__snapshots__/skeleton.test.tsx.snap
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`skeleton > 🥩 descriptions api use 1`] = ` <DocumentFragment> <div style="width: 100%;" > <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 24px; padding-inline-end: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 24px; padding-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> <div style="margin-block-start: 32px;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; margin-inline-end: 24px; max-width: 300px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; align-items: center; justify-content: center;" > <div style="max-width: 300px; margin: auto;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="display: flex; background: rgba(0, 0, 0, 0.02); padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; justify-content: flex-end; padding-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin: 0px; height: 32px; float: right; max-width: 630px;" /> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton > 🥩 descriptions api use 2`] = ` <DocumentFragment> <div style="width: 100%;" > <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 24px; padding-inline-end: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 24px; padding-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> <div style="margin-block-start: 32px;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; margin-inline-end: 24px; max-width: 300px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; align-items: center; justify-content: center;" > <div style="max-width: 300px; margin: auto;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="display: flex; background: rgba(0, 0, 0, 0.02); padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; justify-content: flex-end; padding-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin: 0px; height: 32px; float: right; max-width: 630px;" /> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton > 🥩 descriptions base use 1`] = ` <DocumentFragment> <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 24px; padding-inline-end: 24px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 24px; padding-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> <div style="margin-block-start: 32px;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="flex: 1; margin-inline-end: 24px; max-width: 300px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> <div style="flex: 1; align-items: center; justify-content: center;" > <div style="max-width: 300px; margin: auto;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin-block-start: 8px;" /> </div> </div> </div> </div> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" > <div class="ant-card-body" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 100px; margin-block-end: 16px;" /> </div> <div style="display: flex; background: rgba(0, 0, 0, 0.02); padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 0; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 75px; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; background: none; padding: 24px 8px;" > <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 1; padding-inline-start: 20px; padding-inline-end: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> <div style="flex: 3; padding-inline-start: 32px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100%; margin: 0px; height: 24px;" /> </div> </div> </div> </div> <div style="padding: 0px 0px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div style="display: flex; justify-content: flex-end; padding-block-start: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="margin: 0px; height: 32px; float: right; max-width: 630px;" /> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton > 🥩 list api use 1`] = ` <DocumentFragment> <div style="width: 100%;" > <div class="ant-card" style="margin-block-end: 16px;" > <div class="ant-card-body" > <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="padding-inline-start: 0; flex: 1; margin-inline-end: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="border-inline-start: 1px solid rgba(0,0,0,0.06); padding-inline-start: 42px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="padding-inline-start: 42px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton > 🥩 list api use 2`] = ` <DocumentFragment> <div style="width: 100%;" /> </DocumentFragment> `; exports[`skeleton > 🥩 list base use 1`] = ` <DocumentFragment> <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card" style="margin-block-end: 16px;" > <div class="ant-card-body" > <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="padding-inline-start: 0; flex: 1; margin-inline-end: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="border-inline-start: 1px solid rgba(0,0,0,0.06); padding-inline-start: 42px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="padding-inline-start: 42px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> <div style="padding-inline-start: 42px; flex: 1; margin-inline-end: 0;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;" > <div class="ant-card-body" style="padding-block-end: 8px;" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="width: 100%; justify-content: space-between;" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 200px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 120px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 80px;" /> </div> </div> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-start-end-radius: 0; border-top-left-radius: 0;" > <div class="ant-card-body" style="display: flex; align-items: center; justify-content: center;" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 102px;" /> </div> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton > 🥩 result base use 1`] = ` <DocumentFragment> <div style="width: 100%;" > <div style="margin-block-end: 16px;" > <div class="ant-skeleton" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 185px;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" /> </div> </div> <div class="ant-card ant-card-bordered" > <div class="ant-card-body" > <div style="display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 128px;" > <div class="ant-skeleton ant-skeleton-element" > <span class="ant-skeleton-avatar ant-skeleton-avatar-circle" style="width: 64px; height: 64px; line-height: 64px; margin-block-end: 32px;" /> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="width: 214px; margin-block-end: 8px;" /> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 328px;" /> </div> <div class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small" style="margin-block-start: 24px;" > <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="width: 116px;" /> </div> </div> <div class="ant-space-item" > <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="width: 116px;" /> </div> </div> </div> </div> </div> </div> </div> </DocumentFragment> `; exports[`skeleton > 🥩 statistic=1,span=16 1`] = ` <DocumentFragment> <div style="width: 100%;" > <div class="ant-card" style="margin-block-end: 16px;" > <div class="ant-card-body" > <div style="width: 100%; justify-content: space-between; display: flex;" > <div style="padding-inline-start: 0; flex: 1; margin-inline-end: 16px;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button" style="height: 48px;" /> </div> </div> </div> </div> </div> <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" > <div class="ant-card-body" style="padding: 0px;" > <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> <div class="ant-card" style="border-radius: 0;" > <div class="ant-card-body" style="padding: 24px;" > <div style="width: 100%; display: flex; align-items: center; justify-content: space-between;" > <div style="max-width: 100%; flex: 1;" > <div class="ant-skeleton ant-skeleton-active" > <div class="ant-skeleton-content" > <h3 class="ant-skeleton-title" style="width: 100px; margin-block-start: 0;" /> <ul class="ant-skeleton-paragraph" style="margin: 0px;" > <li style="width: 61%;" /> </ul> </div> </div> </div> <div class="ant-skeleton ant-skeleton-element ant-skeleton-active" > <span class="ant-skeleton-button ant-skeleton-button-sm" style="width: 165px; margin-block-start: 12px;" /> </div> </div> </div> </div> <div style="padding: 0px 24px;" > <div class="ant-divider ant-divider-horizontal" role="separator" style="margin: 0px;" /> </div> </div> </div> </div> </div> </div> </DocumentFragment> `;