mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
test: update snapshot
This commit is contained in:
parent
911365d084
commit
61ab72bfbc
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user