BlockStack

BlockStack 用于垂直堆叠元素。

预览​

BlockStack.jpg

示例代码​

render('Checkout::Dynamic::Render', (props) => {
return (
<BlockStack>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
<Text>BlockStackDemo1</Text>
</BlockStack>
);
});

BlockStackProps​

提示

标注 ? 的属性为可选,未标注 ? 的属性为必选。

inlineAlignment?​

InlineAlignment

主轴对齐方式,主轴为 行内轴。


spacing?​

Spacing 默认值:base

项目之间的间距。


padding?​

MaybeShorthandProperty<Spacing>

内边距。


类型说明​

InlineAlignment​

start center end

Spacing​

none base extraTight tight loose extraLoose

MaybeShorthandProperty​

T | ShorthandProperty<T>

ShorthandProperty​

[T, T] [T, T, T, T]

这篇文章对你有帮助吗?