Creating slots dynamically from an array is my current task.
After some tinkering, I've managed to make it work using the following code snippet:
<template v-for="(department,id) in departments" v-slot:[id]="record">
<template v-if="record.departments.includes(id)">
<i class="fas fa-check text-success"></i>
</template>
</template>
However, when working in PhpStorm, I encounter an error that says:
http://www.w3.org/19999/XSL/Transform? Alt+Enter
Namespace 'v-slot' is not bound
This inspection checks for unbound namespace prefixes in XML.
https://i.sstatic.net/JIfuF.png
https://i.sstatic.net/g1Jto.png
I am using Vue version 2.6.10 and PhpStorm 2017.3.6.
Although the functionality works as expected, the warning still persists. Any suggestions on how to disable it?