mirror of https://github.com/layui/layui
优化 transfer 模板中字段标签符
parent
cf796a3ea3
commit
a7844f7155
|
@ -75,7 +75,7 @@ layui.define(['laytpl', 'form'], function(exports){
|
||||||
obj = obj || {};
|
obj = obj || {};
|
||||||
return ['<div class="layui-transfer-box" data-index="'+ obj.index +'">'
|
return ['<div class="layui-transfer-box" data-index="'+ obj.index +'">'
|
||||||
,'<div class="layui-transfer-header">'
|
,'<div class="layui-transfer-header">'
|
||||||
,'<input type="checkbox" name="'+ obj.checkAllName +'" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{ d.data.title['+ obj.index +'] || \'list'+ (obj.index + 1) +'\' }}">'
|
,'<input type="checkbox" name="'+ obj.checkAllName +'" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{= d.data.title['+ obj.index +'] || \'list'+ (obj.index + 1) +'\' }}">'
|
||||||
,'</div>'
|
,'</div>'
|
||||||
,'{{# if(d.data.showSearch){ }}'
|
,'{{# if(d.data.showSearch){ }}'
|
||||||
,'<div class="layui-transfer-search">'
|
,'<div class="layui-transfer-search">'
|
||||||
|
@ -88,7 +88,7 @@ layui.define(['laytpl', 'form'], function(exports){
|
||||||
};
|
};
|
||||||
|
|
||||||
// 主模板
|
// 主模板
|
||||||
var TPL_MAIN = ['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{ d.index }}">'
|
var TPL_MAIN = ['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{= d.index }}">'
|
||||||
,TPL_BOX({
|
,TPL_BOX({
|
||||||
index: 0
|
index: 0
|
||||||
,checkAllName: 'layTransferLeftCheckAll'
|
,checkAllName: 'layTransferLeftCheckAll'
|
||||||
|
|
Loading…
Reference in New Issue