优化 table 内部模板标签符,避免 laytpl 全局设置的影响

pull/1220/head
贤心 2023-03-28 17:20:55 +08:00
parent 0d6dfd41b4
commit aad6bca9df
1 changed files with 5 additions and 2 deletions

View File

@ -409,7 +409,10 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
if(options.height) arr.push('height:'+ options.height + 'px;');
return arr.join('')
}()
}).html(laytpl(TPL_MAIN).render({
}).html(laytpl(TPL_MAIN, {
open: '{{', // 标签符前缀
close: '}}' // 标签符后缀
}).render({
data: options
,index: that.index //索引
}));