Skip to content

Panel-DEMO


vue
<fv-Panel v-model="basic">
</fv-Panel>

Panel Near Side


vue
<fv-Panel v-model="nearSide" :isNearSide="true">
</fv-Panel>

Panel Central Side


Global Append

vue
<fv-Panel v-model="centralSide" :isCentralSide="true" :teleport="true" width="calc(90% - 50px)" height="calc(90% - 50px)">
</fv-Panel>

Panel Top Side


vue
<fv-Panel v-model="topSide" :isTopSide="true" :isLightDismiss="true" width="100%" height="500px">
</fv-Panel>

Panel Bottom Side


vue
<fv-Panel v-model="bottomSide" :isBottomSide="true" :isLightDismiss="true" width="100%" height="500px">
</fv-Panel>

Panel Light Dismiss


vue
<fv-Panel v-model="lightDismiss" :isLightDismiss="true">
</fv-Panel>

Panel Acrylic


vue
<fv-Panel v-model="acrylic" :isLightDismiss="true" :isAcrylic="true">
</fv-Panel>

vue
<fv-Panel v-model="footer" :isFooter="true" :isAcrylic="true">
    <template v-slot:footer>
        <fv-button theme="dark" background="rgba(0, 90, 158, 1)">OK</fv-button>
        <fv-button>Cancel</fv-button>
    </template>
</fv-Panel>

Panel Dark Theme


Standard

vue
<fv-Panel v-model="dark" :isLightDismiss="true" theme="dark">
</fv-Panel>

Acrylic

vue
<fv-Panel v-model="acrylicDark" :isLightDismiss="true" :isAcrylic="true" theme="dark">
</fv-Panel>

属性


属性类型必填默认值说明
modelValueany!false显示/隐藏Panel
titlestring'Sample Panel'标题。
titleSizenumber20标题字体大小。
titleWeightnumber600标题字体粗细。
titleColorstring''标题字体颜色。
widthstring'340'宽度。
heightstring'100%'宽度。
backgroundstring''Panel背景色。
isNearSidebooleanfalse是否从左侧显示。
isCentralSidebooleanfalse是否从中央显示。
isLightDismissbooleanfalse是否单击空白处关闭。
showTitleBarbooleantrue是否显示标题栏。
isFooterbooleanfalse是否显示底部控制。
isAcrylicbooleanfalse是否开启Acrylic效果。
controlPaddingstring'15px'标题和控制栏内边距。
contentPaddingstring'0px'内容内边距。
isBottomSidebooleanfalse从底部显式。
isTopSidebooleanfalse从顶部显示。
teleportbooleanfalse穿越当前父容器全局放置。
themestring'global'主题样式。支持 globallightdarksystemcustom
disabledbooleanfalse参见组件的 disabled 选项。
langstring"global"参见组件的 lang 选项。

插槽


  1. Container

自定义容器内容

javascript
<template v-slot:container>
</template>
  1. Header

自定义标题栏内容

javascript
<template v-slot:header>
</template>
  1. Footer

自定义Footer内容

javascript
<template v-slot:footer>
</template>

MIT Licensed