mirror of
https://github.com/layui/layui.git
synced 2026-02-09 02:09:18 +08:00
perf(code): 优化对预览区域中的 tabs 组件的定向渲染
This commit is contained in:
@@ -404,7 +404,9 @@ layui.define(['lay', 'util', 'element', 'tabs', 'form'], function(exports){
|
||||
render: function(){
|
||||
form.render(thisItemBody.find('.layui-form'));
|
||||
element.render();
|
||||
tabs.render();
|
||||
tabs.render({
|
||||
elem: ['.'+ CONST.ELEM_PREVIEW, '.layui-tabs'].join(' ')
|
||||
});
|
||||
}
|
||||
});
|
||||
},3);
|
||||
|
||||
Reference in New Issue
Block a user