mirror of https://github.com/layui/layui
pull/486/head
parent
2257341313
commit
08be7b681c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -77,9 +77,8 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util'], function(exports){
|
||||||
var str = item3.templet ? function(){
|
var str = item3.templet ? function(){
|
||||||
return typeof item3.templet === 'function'
|
return typeof item3.templet === 'function'
|
||||||
? item3.templet(tplData)
|
? item3.templet(tplData)
|
||||||
: laytpl($(item3.templet).html() || String(content) || '').render(tplData)
|
: laytpl($(item3.templet).html() || String(content)).render(tplData)
|
||||||
}() : content;
|
}() : content;
|
||||||
str = str || '';
|
|
||||||
return text ? $('<div>'+ str +'</div>').text() : str;
|
return text ? $('<div>'+ str +'</div>').text() : str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue