1
This commit is contained in:
parent
9c8065dd53
commit
9aa409ed73
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user