fix echarts 缩放显示异常
This commit is contained in:
parent
12eabbf7d5
commit
af8872f546
4
dist/layui.js
vendored
4
dist/layui.js
vendored
@ -15708,6 +15708,10 @@ layui.define('jquery', function(exports){
|
||||
if(!(elemA.attr('href') !== 'javascript:;' && elemA.attr('target') === '_blank')){
|
||||
othis.addClass(THIS).siblings().removeClass(THIS);
|
||||
item.eq(index).addClass(SHOW).siblings().removeClass(SHOW);
|
||||
// 修复切换tab缩放页面echarts出现显示异常
|
||||
var event =new Event("resize");
|
||||
item.eq(index).find("iframe")[0].contentWindow.dispatchEvent(event);
|
||||
// item.eq(index).window.dispatchEvent(event);
|
||||
}
|
||||
|
||||
layui.event.call(this, MOD_NAME, 'tab('+ filter +')', {
|
||||
|
@ -107,6 +107,10 @@ layui.define('jquery', function(exports){
|
||||
if(!(elemA.attr('href') !== 'javascript:;' && elemA.attr('target') === '_blank')){
|
||||
othis.addClass(THIS).siblings().removeClass(THIS);
|
||||
item.eq(index).addClass(SHOW).siblings().removeClass(SHOW);
|
||||
// 修复切换tab缩放页面echarts出现显示异常
|
||||
var event =new Event("resize");
|
||||
item.eq(index).find("iframe")[0].contentWindow.dispatchEvent(event);
|
||||
// item.eq(index).window.dispatchEvent(event);
|
||||
}
|
||||
|
||||
layui.event.call(this, MOD_NAME, 'tab('+ filter +')', {
|
||||
|
Loading…
Reference in New Issue
Block a user