From 1d0192813c74771cdaf3f665a460671311c1802c Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 20 Jan 2021 12:53:31 +0300 Subject: [PATCH 1/3] Fixed #821 - File Upload cant disable and hide Upload & Cancel --- src/components/fileupload/FileUpload.d.ts | 2 ++ src/components/fileupload/FileUpload.vue | 12 ++++++++++-- src/views/fileupload/FileUploadDoc.vue | 12 ++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/components/fileupload/FileUpload.d.ts b/src/components/fileupload/FileUpload.d.ts index ac9d26c4d..413634f66 100755 --- a/src/components/fileupload/FileUpload.d.ts +++ b/src/components/fileupload/FileUpload.d.ts @@ -18,6 +18,8 @@ declare class FileUpload extends Vue { uploadLabel?: string; cancelLabel?: string; customUpload?: boolean; + showUploadButton?: boolean; + showCancelButton?: boolean; $emit(eventName: 'select', e: { originalEvent: Event, files: any }): this; $emit(eventName: 'before-upload', e: { xhr: XMLHttpRequest, formData: any }): this; $emit(eventName: 'progress', e: { originalEvent: Event, progress: any }): this; diff --git a/src/components/fileupload/FileUpload.vue b/src/components/fileupload/FileUpload.vue index d45f04fe3..cc7c815ad 100755 --- a/src/components/fileupload/FileUpload.vue +++ b/src/components/fileupload/FileUpload.vue @@ -6,8 +6,8 @@ {{chooseButtonLabel}} - - + +
@@ -116,6 +116,14 @@ export default { customUpload: { type: Boolean, default: false + }, + showUploadButton: { + type: Boolean, + default: true + }, + showCancelButton: { + type: Boolean, + default: true } }, duplicateIEEvent: false, diff --git a/src/views/fileupload/FileUploadDoc.vue b/src/views/fileupload/FileUploadDoc.vue index a1028cc46..405dc45c0 100755 --- a/src/views/fileupload/FileUploadDoc.vue +++ b/src/views/fileupload/FileUploadDoc.vue @@ -215,6 +215,18 @@ myUploader(event) { false Whether to use the default upload or a manual implementation defined in uploadHandler callback. Defaults to PrimeVue Locale configuration. + + showUploadButton + boolean + true + Whether to show the upload button. + + + showCancelButton + boolean + true + Whether to show the cancel button. +
From a9a79a59801bb4094a7be83853f08efe3cc7ece9 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 20 Jan 2021 12:58:38 +0300 Subject: [PATCH 2/3] Fixed #814 - MenuItem: class does not apply to separator item --- src/components/contextmenu/ContextMenuSub.vue | 2 +- src/components/megamenu/MegaMenu.vue | 2 +- src/components/menu/Menu.vue | 4 ++-- src/components/menubar/MenubarSub.vue | 2 +- src/components/panelmenu/PanelMenuSub.vue | 2 +- src/components/tieredmenu/TieredMenuSub.vue | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/contextmenu/ContextMenuSub.vue b/src/components/contextmenu/ContextMenuSub.vue index b9129b6b6..fd45eba3e 100755 --- a/src/components/contextmenu/ContextMenuSub.vue +++ b/src/components/contextmenu/ContextMenuSub.vue @@ -19,7 +19,7 @@ - +
  • diff --git a/src/components/megamenu/MegaMenu.vue b/src/components/megamenu/MegaMenu.vue index 528888611..87466b795 100755 --- a/src/components/megamenu/MegaMenu.vue +++ b/src/components/megamenu/MegaMenu.vue @@ -35,7 +35,7 @@ - +
  • diff --git a/src/components/menu/Menu.vue b/src/components/menu/Menu.vue index 799fa4c1b..f2ee7aead 100755 --- a/src/components/menu/Menu.vue +++ b/src/components/menu/Menu.vue @@ -7,10 +7,10 @@
  • {{item.label}}
  • - +
  • diff --git a/src/components/menubar/MenubarSub.vue b/src/components/menubar/MenubarSub.vue index a246bb9ec..e0788e6ed 100755 --- a/src/components/menubar/MenubarSub.vue +++ b/src/components/menubar/MenubarSub.vue @@ -18,7 +18,7 @@ - +
  • diff --git a/src/components/panelmenu/PanelMenuSub.vue b/src/components/panelmenu/PanelMenuSub.vue index bcaee77f0..57b34c26c 100755 --- a/src/components/panelmenu/PanelMenuSub.vue +++ b/src/components/panelmenu/PanelMenuSub.vue @@ -20,7 +20,7 @@ -
  • +
  • diff --git a/src/components/tieredmenu/TieredMenuSub.vue b/src/components/tieredmenu/TieredMenuSub.vue index 45ff20677..b7073c878 100755 --- a/src/components/tieredmenu/TieredMenuSub.vue +++ b/src/components/tieredmenu/TieredMenuSub.vue @@ -18,7 +18,7 @@ - +
  • From 1c4d8f42debaf0d1b645f97bf276ef25a39dec01 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Wed, 20 Jan 2021 13:04:04 +0300 Subject: [PATCH 3/3] Fixed variable --- src/components/menu/Menu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/menu/Menu.vue b/src/components/menu/Menu.vue index f2ee7aead..43aa89067 100755 --- a/src/components/menu/Menu.vue +++ b/src/components/menu/Menu.vue @@ -7,7 +7,7 @@
  • {{item.label}}