Skip to content

Callout ​

vue
<fv-callout v-model="show" effect="hover" position="bottomLeft">
  <fv-button icon="ActionCenter" borderRadius="3" style="width: 120px; height: 45px;">Callout</fv-button>
  <template v-slot:main>
    <fv-color-picker v-model="color" style="width:500px"></fv-color-picker>
  </template>
</fv-callout>

Callout Custom ​

beak:

space:

position:

topLeft

vue
<fv-callout :lockScroll="true" :position="position.key" :beak="beak" :space="space" :calloutBg="color" :borderRadius="12" theme="dark">
  <fv-button :background="color" theme="dark" icon="ActionCenter" borderRadius="3" style="width: 120px; height: 45px;">Callout</fv-button>
  <template v-slot:header>
    Fluent UI
  </template>
  <template v-slot:main>
    Hello Vue! Nice to meet you!
  </template>
  <template v-slot:footer>
    @Copyright Creator SN
  </template>
</fv-callout>

属性 ​


属性类型必填默认值说明
v-modelBooleanNofalse是否显示。
themestring否'global'主题色。
disabledboolean否false是否禁用。
spacenumber否0间距(px)
beaknumber否0角标大小(px)
positionstring否'bottomCenter'位置。
lockScrollboolean否true是否锁定滚动。
focusTrapboolean否false是否聚焦。
delayClosenumber否0显示时是否延时关闭(ms)
effectstring否'click'显示触发方式。
popperStyleobject否{}悬浮窗的样式。
popperClassarray否[]悬浮窗的 css
calloutBgstring否''.fv-callout-bg 的背景色。
borderRadiusnumber/string否5Callout 圆角大小。
keepaliveboolean否false参见组件的 keepalive 选项。
langstring否"global"参见组件的 lang 选项。

Appendix ​


  1. position

position属性包括: topLeft, topRight, topCenter, bottomLeft, bottomRight, bottomCenter, leftTop, leftCenter, leftBottom, rightTop, rightBottom, rightCenter

MIT Licensed