Skip to content

Expander-DEMO


vue

<fv-Expander>
    <div style="position: relative; height: 500px; background: black; transition: all 0.3s;"></div>
</fv-Expander>

Disabled Expander

vue
<fv-Expander :disabled="true">
    <div style="position: relative; height: 500px; background: black; transition: all 0.3s;"></div>
</fv-Expander>

Extension

vue
<fv-Expander :disabled="true">
    <template v-slot:extension>
        <fv-button>Operation</fv-button>
    </template>
</fv-Expander>

Expander-Customize Background


vue
<fv-Expander background="rgba(0, 98, 158, 1)">
    <div style="position: relative; height: 500px; background: black; transition: all 0.3s;"></div>
</fv-Expander>

Expander-Dark Theme


vue
<fv-Expander theme="dark">
    <div style="position: relative; height: 500px; background: whitesmoke; transition: all 0.3s;"></div>
</fv-Expander>

Properties


PropertyTypeRequiredDefaultDescription
modelValuebooleanNofalseSee the Expander modelValue option.
iconstringNo'Mail'Icon with Fabric-Icon
titlestringNo'Title of Expander.'Title.
contentstringNo'Content information of Expander.'Subtitle content.
titleBackgroundstringNo''See the Expander titleBackground option.
expandBackgroundstringNo''See the Expander expandBackground option.
defaultHeightnumberNo50See the Expander defaultHeight option.
maxHeightnumberNo300See the Expander maxHeight option.
disabledbooleanNofalseSee the Expander disabled option.
visibleOverflowbooleanNotrueSee the Expander visibleOverflow option.
themestringNo'global'Theme style. Supports global, light, dark, system, and custom.
disabledExpanderbooleanNofalseSee the Expander disabledExpander option.
langstringNo"global"See the Expander lang option.

Events


EventArgumentsDescription
item-clickbooleanSee the component item-click option.
descrption-clickN/ASee the component descrption-click option.
icon-clickN/ASee the component icon-click option.

Slots


  1. Default
vue
<fv-Expander background="rgba(0, 98, 158, 1)">
    <div style="position: relative; height: 500px; background: black; transition: all 0.3s;"></div>
</fv-Expander>
  1. content
  • title: Expander
vue
<template v-slot:content="x">
    <div class="expander-title">{{ x.title }}</div>
    <div class="expander-info">{{ x.content }}</div>
</template>
  1. Extension
vue
<template v-slot:extension>
    <fv-button>Operation</fv-button>
</template>
  1. expand-icon
vue
<template v-slot:expand-icon="x">
    <i
        v-show="x.value"
        class="ms-Icon ms-Icon--ChevronUpMed"
    ></i>
    <i
        v-show="!x.value && !x.disabled"
        class="ms-Icon ms-Icon--ChevronDownMed"
    ></i>
    <i
        v-show="!x.value && x.disabled"
        class="ms-Icon ms-Icon--ChevronRightMed"
    ></i>
</template>

MIT Licensed