Просмотр исходного кода

修改表单只读文本样式,支持CSV格式文件预览

cfort 2 лет назад
Родитель
Сommit
a0a333b2e6

+ 2 - 2
src/business/platform/form/formrender/dynamic-form/dynamic-form-field.vue

@@ -1256,10 +1256,10 @@ export default {
         padding-left: 0px;
     }
     .ibps-overflow {
-        white-space: pre-line;
+        white-space: pre-wrap;
     }
     .ibps-field-text {
-        white-space: pre-line;
+        white-space: pre-wrap;
         color: #000000;
         box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(0, 0, 0, 0.1), 0 1px 0px 0 rgba(0, 0, 0, 0.1);
         padding-left: 5px;

+ 1 - 1
src/components/ibps-file-viewer/constants/index.js

@@ -1,5 +1,5 @@
 
-export const officeType = ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx']
+export const officeType = ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'csv']
 export const pdfType = ['pdf']
 export const txtType = ['txt']
 export const imageType = ['jpg', 'jpeg', 'bmp', 'png', 'gif']