vSlotStyle
Control Vue v-slot
directive style.
Possible options:
null
: Style ofv-slot
directive won't be changed."short"
: Use short-hand form like#default
or#named
."long"
: Use long-hand form likev-slot:default
orv-slot:named
."vSlot"
: For default slot, usev-slot
(shorter than#default
); otherwise, use short-hand form.
Default option is null
.
This global option can be overridden by the following options:
component.vSlotStyle
: Controlv-slot
style at components.default.vSlotStyle
: Controlv-slot
style of default slot at<template>
tag.named.vSlotStyle
: Controlv-slot
style of named slot at<template>
tag.
Example for null
Input:
<template v-slot:default></template>
<template v-slot:header></template>
<template #default></template>
<template #header></template>
Output:
<template v-slot:default></template>
<template v-slot:header></template>
<template #default></template>
<template #header></template>
Example for "short"
Input:
<template v-slot:default></template>
<template v-slot:header></template>
<template #default></template>
<template #header></template>
Output:
<template #default></template>
<template #header></template>
<template #default></template>
<template #header></template>
Example for "long"
Input:
<template v-slot:default></template>
<template v-slot:header></template>
<template #default></template>
<template #header></template>
Output:
<template v-slot:default></template>
<template v-slot:header></template>
<template v-slot:default></template>
<template v-slot:header></template>
Example for "vSlot"
Input:
<template v-slot:default></template>
<template v-slot:header></template>
<template #default></template>
<template #header></template>
Output:
<template v-slot></template>
<template #header></template>
<template v-slot></template>
<template #header></template>