Skip to content

Gap

This component is generally used in scenes where the content blocks are separated by a gray block, which is convenient for the user to unify the style and reduce the workload

platform compatibility

App(vue)App(nvue)H5小程序VUE2VUE3

basic use

Direct import can be used

  • Configure the height through height, the unit is px
  • Configure background color via bgColor
vue
<wu-gap height="80" bgColor="#bbb"></wu-gap>
<wu-gap height="80" bgColor="#bbb"></wu-gap>

API

Gap Props

property namedescriptiontypedefault valueoptional values ​​
bgColorbackground colorStringtransparent (background transparent)-
heightHeight of interval slot, unit pxString / Number20-
marginTopThe distance from the previous element, in pxString / Number0-
marginBottomThe distance from the next element, in pxString / Number0-