mirror of https://github.com/layui/layui
fix(tab): 修复 lay-id 属性值中含有某些特殊字符时,可能导致 html 标签解析异常 (#1992)
parent
124e3be816
commit
8ff041b36a
|
@ -48,7 +48,7 @@ layui.define('jquery', function(exports){
|
|||
}() +'>'+ (options.title || 'unnaming') +'</li>';
|
||||
|
||||
barElem[0] ? barElem.before(li) : titElem.append(li);
|
||||
contElem.append('<div class="layui-tab-item" ' + (options.id ? 'lay-id=' + options.id : '') + '>'+ (options.content || '') +'</div>');
|
||||
contElem.append('<div class="layui-tab-item" ' + (options.id ? 'lay-id="' + options.id + '"' : '') + '>'+ (options.content || '') +'</div>');
|
||||
// call.hideTabMore(true);
|
||||
// 是否添加即切换
|
||||
options.change && this.tabChange(filter, options.id);
|
||||
|
|
Loading…
Reference in New Issue