Skip to content

Commit

Permalink
feat(upload) fix upload-file-list method (tusen-ai#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1nzh_ark committed Sep 19, 2021
1 parent dd65b12 commit ae0761a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/upload/src/UploadFileList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export default defineComponent({
/>
))

const createUploadFileList = (
isImageCardTypeRef: ComputedRef<boolean>
): VNode =>
const createUploadFileList = (): VNode =>
isImageCardTypeRef.value ? (
<NImageGroup>{{ default: createFileList }}</NImageGroup>
) : (
Expand All @@ -68,7 +66,7 @@ export default defineComponent({
]}
style={[cssVarsRef.value, fileListStyle as CSSProperties]}
>
{createUploadFileList(isImageCardTypeRef)}
{createUploadFileList()}
{isImageCardTypeRef.value && <NUploadTrigger>{slots}</NUploadTrigger>}
</div>
)
Expand Down

0 comments on commit ae0761a

Please sign in to comment.