fix(laytpl): 兼容性调整 (#2647)

避免部分组件受全局 laytpl tagStyle 影响
pull/2650/head
morning-star 2025-04-18 21:35:30 +08:00 committed by GitHub
parent a7267a4b5d
commit 23a62619d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -415,7 +415,8 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports) {
return obj;
}()).html(laytpl(TPL_MAIN, {
open: '{{', // 标签符前缀
close: '}}' // 标签符后缀
close: '}}', // 标签符后缀
tagStyle: 'legacy'
}).render({
data: options,
index: that.index //索引

View File

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