Prechádzať zdrojové kódy

修复表格图片预览移动端宽高无效问题

RuoYi 3 rokov pred
rodič
commit
da8f3b4cf8

+ 0 - 5
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@@ -248,11 +248,6 @@ var table = {
                     if($.common.equals("self", target)) {
                         var height = $(this).data('height');
                         var width = $(this).data('width');
-                        // 如果是移动端,就使用自适应大小弹窗
-                        if ($.common.isMobile()) {
-                            width = 'auto';
-                            height = 'auto';
-                        }
                         layer.open({
                             title: false,
                             type: 1,

+ 1 - 1
ruoyi-admin/src/main/resources/templates/demo/table/image.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
 <head>
-	<th:block th:include="include :: header('跳转至指定页')" />
+	<th:block th:include="include :: header('表格图片预览')" />
 </head>
 <body class="gray-bg">
      <div class="container-div">