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'标题。
titleSizenumber否20标题字体大小。
titleWeightnumber否600标题字体粗细。
titleColorstring否''标题字体颜色。
widthstring否'340'宽度。
heightstring否'100%'宽度。
backgroundstring否''Panel背景色。
isNearSideboolean否false是否从左侧显示。
isCentralSideboolean否false是否从中央显示。
isLightDismissboolean否false是否单击空白处关闭。
showTitleBarboolean否true是否显示标题栏。
isFooterboolean否false是否显示底部控制。
isAcrylicboolean否false是否开启Acrylic效果。
controlPaddingstring否'15px'标题和控制栏内边距。
contentPaddingstring否'0px'内容内边距。
isBottomSideboolean否false从底部显式。
isTopSideboolean否false从顶部显示。
teleportboolean否false穿越当前父容器全局放置。
themestring否'global'主题样式。支持 global、light、dark、system 和 custom。
disabledboolean否false参见组件的 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