File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,7 @@ export default defineComponent({
347
347
onError,
348
348
onProgress,
349
349
onSuccess,
350
+ ...attrs ,
350
351
...( props as RcUploadProps ) ,
351
352
id : props . id ?? formItemContext . id . value ,
352
353
prefixCls : prefixCls . value ,
Original file line number Diff line number Diff line change 1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` renders ./components/upload/demo/avatar.vue correctly 1` ] = `
4
- <span class = " ant-upload-picture-card-wrapper avatar-uploader" ><div class = " ant-upload ant-upload-select ant-upload-select-picture-card" ><span tabindex = " 0" class = " ant-upload" role = " button" ><input type = " file" style = " display: none;" accept = " " capture = " false" ><div ><span role = " img" aria-label = " plus" class = " anticon anticon-plus" ><svg focusable = " false" class = " " data-icon = " plus" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><defs ><style ></style ></defs ><path d = " M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" ></path ><path d = " M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" ></path ></svg ></span >
4
+ <span class = " ant-upload-picture-card-wrapper avatar-uploader" ><div class = " ant-upload ant-upload-select ant-upload-select-picture-card" ><span tabindex = " 0" class = " ant-upload avatar-uploader " role = " button" ><input type = " file" style = " display: none;" accept = " " capture = " false" ><div ><span role = " img" aria-label = " plus" class = " anticon anticon-plus" ><svg focusable = " false" class = " " data-icon = " plus" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><defs ><style ></style ></defs ><path d = " M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" ></path ><path d = " M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z" ></path ></svg ></span >
5
5
<div class = " ant-upload-text" >Upload</div >
6
6
</div ></span ></div ></span >
7
7
`;
@@ -206,7 +206,7 @@ exports[`renders ./components/upload/demo/picture-style.vue correctly 1`] = `
206
206
</div >
207
207
</div >
208
208
<!---->
209
- </div ></span ><br ><br ><span class = " upload-list-inline" ><div class = " ant-upload ant-upload-select ant-upload-select-picture" ><span tabindex = " 0" class = " ant-upload" role = " button" ><input type = " file" style = " display: none;" accept = " " capture = " false" ><button class = " ant-btn" type = " button" ><!----><span role = " img" aria-label = " upload" class = " anticon anticon-upload" ><svg focusable = " false" class = " " data-icon = " upload" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><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 >upload</span ></button ></span ></div >
209
+ </div ></span ><br ><br ><span class = " upload-list-inline" ><div class = " ant-upload ant-upload-select ant-upload-select-picture" ><span tabindex = " 0" class = " ant-upload upload-list-inline " role = " button" ><input type = " file" style = " display: none;" accept = " " capture = " false" ><button class = " ant-btn" type = " button" ><!----><span role = " img" aria-label = " upload" class = " anticon anticon-upload" ><svg focusable = " false" class = " " data-icon = " upload" width = " 1em" height = " 1em" fill = " currentColor" aria-hidden = " true" viewBox = " 64 64 896 896" ><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 >upload</span ></button ></span ></div >
210
210
<div class = " ant-upload-list ant-upload-list-picture" >
211
211
<div class = " ant-upload-list-picture-container" >
212
212
<div class = " ant-upload-list-item ant-upload-list-item-done ant-upload-list-item-list-type-picture" >
You can’t perform that action at this time.
0 commit comments