This commit is contained in:
dengqichen 2025-10-22 20:41:09 +08:00
parent 9c8065dd53
commit 9aa409ed73

View File

@ -149,15 +149,6 @@ const VariableInput: React.FC<VariableInputProps> = ({
highlightElement.style.textAlign = inputStyles.textAlign; highlightElement.style.textAlign = inputStyles.textAlign;
highlightElement.style.direction = inputStyles.direction; highlightElement.style.direction = inputStyles.direction;
highlightElement.style.textIndent = inputStyles.textIndent; highlightElement.style.textIndent = inputStyles.textIndent;
// 调试信息(仅开发环境)
if (process.env.NODE_ENV === 'development' && variant === 'textarea') {
console.log('[VariableInput] 样式同步:', {
fontSize: inputStyles.fontSize,
lineHeight: inputStyles.lineHeight,
padding: `${inputStyles.paddingTop} ${inputStyles.paddingRight} ${inputStyles.paddingBottom} ${inputStyles.paddingLeft}`,
});
}
}; };
// 同步滚动位置(仅 textarea // 同步滚动位置(仅 textarea