From d32a2e9faede126672bbfa3fca4c35a04a0adecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 28 Apr 2023 19:03:29 +0300 Subject: [PATCH 1/4] Refactor #3911 - For FileUpload --- api-generator/components/fileupload.js | 6 + components/lib/fileupload/FileContent.vue | 20 +-- components/lib/fileupload/FileUpload.d.ts | 150 ++++++++++++++++++++++ components/lib/fileupload/FileUpload.vue | 50 ++++---- 4 files changed, 193 insertions(+), 33 deletions(-) diff --git a/api-generator/components/fileupload.js b/api-generator/components/fileupload.js index 18776df0c..cef25b014 100644 --- a/api-generator/components/fileupload.js +++ b/api-generator/components/fileupload.js @@ -142,6 +142,12 @@ const FileUploadProps = [ type: 'string', default: 'null', description: 'Style class of the component.' + }, + { + name: 'pt', + type: 'any', + default: 'null', + description: 'Uses to pass attributes to DOM elements inside the component.' } ]; diff --git a/components/lib/fileupload/FileContent.vue b/components/lib/fileupload/FileContent.vue index 70d1b56ca..e15af9ea7 100644 --- a/components/lib/fileupload/FileContent.vue +++ b/components/lib/fileupload/FileContent.vue @@ -1,16 +1,16 @@