Skip to content

Callout

vue
<fv-callout :visible.sync="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:

{ "value": 9 } px

space:

{ "value": 0 } px

position:

topLeft

vue
<fv-callout :lockScroll="true" :position="position.key" :beak="beak" :space="space" :popperStyle="{ backgroundColor: color }" 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>

Propoties


属性(attr)类型(type)必填(required)默认值(default)说明(statement)
visible.syncBooleanNofalse是否显示
theme['system','light','dark','custom']No'system'主题色
disabledBooleanNofalse是否禁用
spaceNumberNo0间距(px)
beakNumberNo10角标大小(px)
position['topLeft','topCenter',...]No'bottomCenter'位置
lockScrollBooleanNofalse是否锁定滚动
focusTrapBooleanNofalse是否聚焦
delayCloseNumberNo0显示时是否延时关闭(ms)
effect[’click','hover','always']No'click'显示触发方式
popperStyleObjectNo{}悬浮窗的样式
popperClassArrayNo[]悬浮窗的 css

Appendix


  1. position

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

MIT Licensed