mirror of https://gitee.com/y_project/RuoYi.git
修复表格图片预览移动端宽高无效问题
parent
b7c8258399
commit
da8f3b4cf8
|
@ -248,11 +248,6 @@ var table = {
|
||||||
if($.common.equals("self", target)) {
|
if($.common.equals("self", target)) {
|
||||||
var height = $(this).data('height');
|
var height = $(this).data('height');
|
||||||
var width = $(this).data('width');
|
var width = $(this).data('width');
|
||||||
// 如果是移动端,就使用自适应大小弹窗
|
|
||||||
if ($.common.isMobile()) {
|
|
||||||
width = 'auto';
|
|
||||||
height = 'auto';
|
|
||||||
}
|
|
||||||
layer.open({
|
layer.open({
|
||||||
title: false,
|
title: false,
|
||||||
type: 1,
|
type: 1,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
<head>
|
<head>
|
||||||
<th:block th:include="include :: header('跳转至指定页')" />
|
<th:block th:include="include :: header('表格图片预览')" />
|
||||||
</head>
|
</head>
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
<div class="container-div">
|
<div class="container-div">
|
||||||
|
|
Loading…
Reference in New Issue