Skip to content

Commit

Permalink
fix: code error (#174)
Browse files Browse the repository at this point in the history
* fix: code error

* docs: changelog of 1.0.0-alpha.8

* test: update snap
  • Loading branch information
YumoImer authored Oct 31, 2024
1 parent f58270b commit 6bddb3d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,7 @@ exports[`renders components/attachments/demo/placeholder.tsx extend context corr
>
<div
class="ant-attachment-list"
style="display: none;"
>
<span
class="ant-upload-wrapper"
Expand Down Expand Up @@ -1511,6 +1512,7 @@ exports[`renders components/attachments/demo/placeholder.tsx extend context corr
>
<div
class="ant-attachment-list"
style="display: none;"
>
<span
class="ant-upload-wrapper"
Expand Down Expand Up @@ -1731,6 +1733,7 @@ exports[`renders components/attachments/demo/with-sender.tsx extend context corr
>
<div
class="ant-attachment-list"
style="display: none;"
>
<span
class="ant-upload-wrapper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ exports[`renders components/attachments/demo/placeholder.tsx correctly 1`] = `
>
<div
class="ant-attachment-list"
style="style:[object Object]"
style="display:none"
>
<span
class="ant-upload-wrapper"
Expand Down Expand Up @@ -1508,7 +1508,7 @@ exports[`renders components/attachments/demo/placeholder.tsx correctly 1`] = `
>
<div
class="ant-attachment-list"
style="style:[object Object]"
style="display:none"
>
<span
class="ant-upload-wrapper"
Expand Down Expand Up @@ -1727,7 +1727,7 @@ exports[`renders components/attachments/demo/with-sender.tsx correctly 1`] = `
>
<div
class="ant-attachment-list"
style="style:[object Object]"
style="display:none"
>
<span
class="ant-upload-wrapper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`attachments rtl render component should be rendered correctly in RTL di
>
<div
class="ant-attachment-list"
style="display: none;"
>
<span
class="ant-upload-wrapper ant-upload-rtl"
Expand Down
2 changes: 1 addition & 1 deletion components/attachments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const Attachments: React.FC<AttachmentsProps> = (props) => {
listStyle={{
...contextStyles.list,
...styles.list,
...(!hasFileList && { style: { display: 'none' } }),
...(!hasFileList && { display: 'none' }),
}}
itemClassName={classnames(contextClassNames.item, classNames.item)}
itemStyle={{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ant-design/x",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "Crafting AI-driven interfaces with React, seamlessly integrating smart chat components and API services at your fingertips.",
"keywords": [
"AI",
Expand Down

0 comments on commit 6bddb3d

Please sign in to comment.