Explorar el Código

解决图片按钮缩小消失问题,独立模式下图片最小高度为30

zq hace 1 mes
padre
commit
bfb8d590de

+ 1 - 0
src/views/book/courseware/create/components/base/common/UploadFile.vue

@@ -687,6 +687,7 @@ export default {
       }
 
       .svg-icon {
+        flex-shrink: 0;
         cursor: pointer;
       }
     }

+ 1 - 1
src/views/book/courseware/create/components/base/picture/Picture.vue

@@ -52,7 +52,7 @@ export default {
     'data.property.view_method': {
       handler(view_method) {
         if (view_method === 'independent') {
-          this.data.min_height = '144';
+          this.data.min_height = '30';
         } else {
           this.data.min_height = '336';
         }

+ 2 - 2
src/views/book/courseware/data/picture.js

@@ -26,8 +26,8 @@ export function getPictureData() {
     title: '图片',
     single_size: 2, // 单位MB
     total_size: 40, // 单位MB
-    min_width: '144', // 大于等于最小缩略图宽度
-    min_height: '336', // 大于等于2倍缩略图宽度加间隙高度
+    min_width: '15', // 大于等于最小缩略图宽度
+    min_height: '30', // 大于等于2倍缩略图宽度加间隙高度
     property: getPictureProperty(),
     file_info_list: [],
     file_id_list: [], // 文件 id['20032-121212', '20032-121216']