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

pull/1226/head
贤心 2023-04-10 19:04:13 +08:00
parent 1b425491fc
commit cf796a3ea3
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ layui.define(['laytpl', 'form'], function(exports){
var options = that.config;
//解析模板
var thisElem = that.elem = $(laytpl(TPL_MAIN).render({
var thisElem = that.elem = $(laytpl(TPL_MAIN, {
open: '{{', // 标签符前缀
close: '}}' // 标签符后缀
}).render({
data: options
,index: that.index //索引
}));