Skip to content

bug: ionic vue vscode incorrectly warning about deprecated slots #22236

@Sacrekin

Description

@Sacrekin

Bug Report

Ionic version:
[x] 5.x
Ionic Vue version:
0.4.0

Current behavior:
Ionic components rely upon Slot attributes which is deprecated in V3 in favor of the v-slot template directive.

Expected behavior:
Compliance with V3

Steps to reproduce:
Using for example the Ionic-Range, there is no way to position the label using the new v-slot directive

Related code:

In the example below, the "start" label will not show using the V3 v-slot directive; Using the slot attribute for the "end" label does show as expected, albeit using a deprecated approach

        <ion-range min="-200" max="200" color="secondary" v-model="range">
          <template v-slot:start>
            <ion-label>{{range}}</ion-label>
          </template>
          <ion-label slot="end">{{range}}</ion-label>
        </ion-range>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions