From 640908182d18565e60e273db7c94bbad0a302165 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 4 Oct 2023 09:58:37 +0400 Subject: [PATCH] Fix 'sv-file-preview' component is not available when showPreview: false (#7066) --- .../file/file-preview.component.html | 59 ++++++++++--------- .../src/components/file/FilePreview.vue | 5 +- .../components/file/file-preview.html | 5 +- src/question_file.ts | 5 +- src/react/components/file/file-preview.tsx | 3 + src/vue/components/file/file-preview.vue | 2 +- 6 files changed, 47 insertions(+), 32 deletions(-) diff --git a/packages/survey-angular-ui/src/components/file/file-preview.component.html b/packages/survey-angular-ui/src/components/file/file-preview.component.html index e4c4e15017..5b00c0675e 100644 --- a/packages/survey-angular-ui/src/components/file/file-preview.component.html +++ b/packages/survey-angular-ui/src/components/file/file-preview.component.html @@ -1,30 +1,35 @@ -
- -
- {{ val.name - }} -
-
- File preview - -
- {{ question.removeFileCaption }} - + + - - -
+
+ File preview + +
+ {{ question.removeFileCaption }} + +
+
+ + +
+ \ No newline at end of file diff --git a/packages/survey-vue3-ui/src/components/file/FilePreview.vue b/packages/survey-vue3-ui/src/components/file/FilePreview.vue index ef03f54345..666d503aa3 100644 --- a/packages/survey-vue3-ui/src/components/file/FilePreview.vue +++ b/packages/survey-vue3-ui/src/components/file/FilePreview.vue @@ -1,5 +1,8 @@