test: update snapshot

This commit is contained in:
vagusx 2023-11-09 11:26:54 +08:00 committed by vagusX
parent 911365d084
commit 61ab72bfbc
7 changed files with 28 additions and 48 deletions

View File

@ -42256,10 +42256,10 @@ exports[`ConfigProvider components Upload configProvider 1`] = `
exports[`ConfigProvider components Upload configProvider componentDisabled 1`] = `
<span
class="config-upload-wrapper"
class="config-upload-wrapper config-upload-disabled"
>
<div
class="config-upload-select config-upload-disabled"
class="config-upload-select"
>
<span
class="config-upload config-upload-disabled"

View File

@ -5440,13 +5440,13 @@ Array [
class="ant-form-item-control-input-content"
>
<span
class="ant-upload-wrapper ant-upload-picture-card-wrapper"
class="ant-upload-wrapper ant-upload-disabled ant-upload-picture-card-wrapper"
>
<div
class="ant-upload-list ant-upload-list-picture-card"
>
<div
class="ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"

View File

@ -2875,13 +2875,13 @@ Array [
class="ant-form-item-control-input-content"
>
<span
class="ant-upload-wrapper ant-upload-picture-card-wrapper"
class="ant-upload-wrapper ant-upload-disabled ant-upload-picture-card-wrapper"
>
<div
class="ant-upload-list ant-upload-list-picture-card"
>
<div
class="ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"

View File

@ -925,10 +925,10 @@ exports[`Form form should support disabled 1`] = `
class="ant-form-item-control-input-content"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload-select ant-upload-disabled"
class="ant-upload-select"
style="display: none;"
>
<span

View File

@ -527,10 +527,10 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
class="ant-space-item"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -554,10 +554,10 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
class="ant-space-item"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -611,7 +611,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
class="ant-space-item"
>
<span
class="ant-upload-wrapper ant-upload-picture-card-wrapper"
class="ant-upload-wrapper ant-upload-disabled ant-upload-picture-card-wrapper"
>
<div
class="ant-upload-list ant-upload-list-picture-card"
@ -860,7 +860,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
</div>
</div>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -910,7 +910,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
class="ant-space-item"
>
<span
class="ant-upload-wrapper ant-upload-picture-circle-wrapper"
class="ant-upload-wrapper ant-upload-disabled ant-upload-picture-circle-wrapper"
>
<div
class="ant-upload-list ant-upload-list-picture-circle"
@ -1159,7 +1159,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
</div>
</div>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -1209,10 +1209,10 @@ exports[`renders components/upload/demo/debug-disabled.tsx extend context correc
class="ant-space-item"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload ant-upload-drag ant-upload-disabled"
class="ant-upload ant-upload-drag"
>
<span
class="ant-upload ant-upload-disabled ant-upload-btn"

View File

@ -500,10 +500,10 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
class="ant-space-item"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -527,10 +527,10 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
class="ant-space-item"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -584,7 +584,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
class="ant-space-item"
>
<span
class="ant-upload-wrapper ant-upload-picture-card-wrapper"
class="ant-upload-wrapper ant-upload-disabled ant-upload-picture-card-wrapper"
>
<div
class="ant-upload-list ant-upload-list-picture-card"
@ -814,7 +814,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
</div>
</div>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -864,7 +864,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
class="ant-space-item"
>
<span
class="ant-upload-wrapper ant-upload-picture-circle-wrapper"
class="ant-upload-wrapper ant-upload-disabled ant-upload-picture-circle-wrapper"
>
<div
class="ant-upload-list ant-upload-list-picture-circle"
@ -1094,7 +1094,7 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
</div>
</div>
<div
class="ant-upload ant-upload-select ant-upload-disabled"
class="ant-upload-select"
>
<span
class="ant-upload ant-upload-disabled"
@ -1144,10 +1144,10 @@ exports[`renders components/upload/demo/debug-disabled.tsx correctly 1`] = `
class="ant-space-item"
>
<span
class="ant-upload-wrapper"
class="ant-upload-wrapper ant-upload-disabled"
>
<div
class="ant-upload ant-upload-drag ant-upload-disabled"
class="ant-upload ant-upload-drag"
>
<span
class="ant-upload ant-upload-disabled ant-upload-btn"

View File

@ -1,12 +1,6 @@
<<<<<<< HEAD
import React from 'react';
import { InboxOutlined, PlusOutlined, UploadOutlined } from '@ant-design/icons';
import { Button, Space, Upload } from 'antd';
=======
import React, { useState } from 'react';
import { InboxOutlined, PlusOutlined } from '@ant-design/icons';
import { Upload } from 'antd';
>>>>>>> 1ef3d7e218 (doc: add debug disabled demo)
import type { UploadFile } from 'antd/es/upload/interface';
const { Dragger } = Upload;
@ -39,11 +33,6 @@ const fileList: UploadFile[] = [
];
const App: React.FC = () => {
<<<<<<< HEAD
=======
const [imageUrl, setImageUrl] = useState<string>();
>>>>>>> 1ef3d7e218 (doc: add debug disabled demo)
const uploadButton = (
<div>
<PlusOutlined />
@ -52,16 +41,11 @@ const App: React.FC = () => {
);
return (
<<<<<<< HEAD
<Space direction="vertical">
<Upload disabled>Click Text to Upload</Upload>
<Upload disabled>
<Button icon={<UploadOutlined />}>Click to Upload</Button>
</Upload>
=======
<>
<Upload disabled>Click to Upload</Upload>
>>>>>>> 1ef3d7e218 (doc: add debug disabled demo)
<Upload name="avatar" listType="picture-card" fileList={fileList} disabled>
{uploadButton}
</Upload>
@ -78,11 +62,7 @@ const App: React.FC = () => {
other banned files.
</p>
</Dragger>
<<<<<<< HEAD
</Space>
=======
</>
>>>>>>> 1ef3d7e218 (doc: add debug disabled demo)
);
};