类: TouchBarSpacer
类: TouchBarSpacer
在mac os应用中,为touch bar中的相邻项之间留白
Process: Main
This class is not exported from the 'electron' module. 它只能作为 Electron API 中其他方法的返回值。
new TouchBarSpacer(options)
选项对象sizestring (可选) - 间隔的尺寸,可能的值为:small-项之间的留较小间距。 映射到NSTouchBarItemIdentifierFixedSpaceSmall。 默认为该值。large-项之间的留较大间距。 映射到NSTouchBarItemIdentifierFixedSpaceLarge。flexible-补齐所有可用空间。 映射到NSTouchBarItemIdentifierFlexibleSpace。
实例属性
以下属性可用于 TouchBarSpacer:
touchBarSpacer.size
一个 string 值,表示间隔的尺寸。 可以是 small, large 或 flexible.