更新 checkbox 示例

pull/1260/head
贤心 2 years ago
parent 677d940f08
commit 6172e1d8cb

@ -293,6 +293,7 @@
<input type="checkbox" name="like[write]" title="写作">
<input type="checkbox" name="like[read]" title="阅读">
<input type="checkbox" name="like[game]" title="游戏" disabled>
<input type="checkbox" name="like[indeterminate]" id="ID-indeterminate" lay-filter="filter-indeterminate" title="半选">
</div>
</div>
<div class="layui-form-item" pane>
@ -458,6 +459,10 @@
return false;
});
// 设置半选
$('#ID-indeterminate').prop('indeterminate', true);
form.render('checkbox');
// 普通事件
util.on('lay-on', {
"get-vercode": function(othis){

Loading…
Cancel
Save