mirror of https://github.com/layui/layui
优化 table 内部模板标签符,避免 laytpl 全局设置的影响
parent
0d6dfd41b4
commit
aad6bca9df
|
@ -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 //索引
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue