+ [task#126993] add renderRowData function of thinkmulticolumn widget.

This commit is contained in:
wangzemei
2024-08-28 13:12:08 +08:00
committed by 刘刚
parent 000b896725
commit 18191b02a8
+10
View File
@@ -11,3 +11,13 @@ window.changeRows = function()
const intValue = value < 1 ? 1 : parseInt(value, 10);
$(this).val(intValue);
}
window.renderRowData = function()
{
$('.think-form-batch .form-batch-row-actions .btn[data-type="add"]').prop({
disabled: $('.think-form-batch .form-batch-row-actions').length >= canAddRowsOfMulticol,
title: $('.think-form-batch .form-batch-row-actions').length >= canAddRowsOfMulticol ? addRowsTips.replace('%d', canAddRowsOfMulticol) : '',
});
}
$(document).on('click', '.think-form-batch .form-batch-row-actions .btn', renderRowData);