所以这是没有打字错误的:
<Box hAlign={"RIGHT"} vAlign={"CENTER"} />;
但这给了我一个错误:
const commonBoxProps = {
hAlign: "RIGHT",
vAlign: "CENTER",
};
..。
<Box {...commonBoxProps} />;
错误:
Type '{ hAlign: string; vAlign: string; margin: string[]; }' is not assignable to type 'Pick<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLD...
https://stackoverflow.com/questions/56435958
复制相似问题