[component] debug of checkbox
This commit is contained in:
parent
9b0341cf0b
commit
bc10737018
|
@ -40,8 +40,8 @@
|
|||
position: absolute;
|
||||
border: 1px solid @gray-deep;
|
||||
background: @gray-soft;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
left: 3px;
|
||||
top: 2px;
|
||||
}
|
||||
|
|
|
@ -759,12 +759,13 @@ define([
|
|||
'<div>',
|
||||
'<label class="checkbox-indeterminate" style="position:absolute;">',
|
||||
'<% if (check=="indeterminate") { %>',
|
||||
'<input type="button" class="indeterminate img-commonctrl"/>',
|
||||
'<input type="button" class="indeterminate button__checkbox">',
|
||||
'<% } else if (check) { %>',
|
||||
'<input type="button" class="checked img-commonctrl"/>',
|
||||
'<input type="button" class="checked button__checkbox">',
|
||||
'<% } else { %>',
|
||||
'<input type="button" class="img-commonctrl"/>',
|
||||
'<input type="button" class="button__checkbox">',
|
||||
'<% } %>',
|
||||
'<span class="checkmark"/>',
|
||||
'</label>',
|
||||
'<div id="<%= id %>" class="list-item" style="pointer-events:none; margin-left: 20px;display: flex;">',
|
||||
'<div style="flex-grow: 1;"><%= Common.Utils.String.htmlEncode(value) %></div>',
|
||||
|
@ -1015,7 +1016,7 @@ define([
|
|||
}
|
||||
}
|
||||
|
||||
if (type === 'button' || isLabel) {
|
||||
if (type === 'button' || isLabel || event.target.className.match('checkmark')) {
|
||||
this.updateCellCheck(listView, record);
|
||||
|
||||
_.delay(function () {
|
||||
|
|
Loading…
Reference in a new issue