{({ locale }) => {
return (
{!!maxLength && (
{`${locale.alreadyInput} ${(value || '').length}/${maxLength}`}
)}
);
}}
);
}
// 表格部分
const table = document.getElementById(`apolloTable_${tableId}`);
const cell = document.getElementById(`cellUnit_${tableId}_${rowId}_${columnName}`);
const tableRect = table && table.getBoundingClientRect();
const cellRect = cell && cell.getBoundingClientRect();
const style: any = {};
if (maxPopHeight) {
style.maxHeight = maxPopHeight;
}
if (tableRect && cellRect && maxPopHeight && maxPopHeight + cellRect.top > tableRect.bottom) {
style.bottom = 0;
style.top = 'auto';
}
return (