mirror of https://github.com/layui/layui
修复 table 表头属性 `templet` 使用模板字符串时,一些特殊的自定义 laytpl 界定符被转义的问题
例如使用 `<% %>` 作为界定符时,`<` 和 `>` 会被转义 close https://gitee.com/layui/layui/issues/I8L3OCpull/1438/head
parent
bf774bbd4e
commit
1fe8b21447
|
@ -97,7 +97,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
|||
if(templet){
|
||||
content = typeof templet === 'function'
|
||||
? templet.call(item3, obj.tplData, obj.obj)
|
||||
: laytpl($(templet).html() || String(content)).render($.extend({
|
||||
: laytpl((templet[0] === '#' ? $(templet).html() : templet) || String(content)).render($.extend({
|
||||
LAY_COL: item3
|
||||
}, obj.tplData));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue