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