bug: Vue IonTabBar and IonButtons missing slot prop type
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- Meio dia
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- typescript
- Domínio
- frontend
Direção de pesquisa
Comece pelas tipagens dos componentes Vue para IonTabBar e IonButtons e reproduza o erro de strictTemplates usando o projeto do StackBlitz vinculado. Verifique como o atributo slot é representado nas definições dos componentes e, em seguida, confirme que o uso de slots nomeados passa pela verificação de tipos com vue-tsc e strictTemplates para ambos os componentes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
In a Vue application with a strict templates vue-tsc preset (that disallows undefined properties to be set), using the IonTabBar or IonButtons with a named slot (for example slot="bottom") leads to a TypeScript error.
This is due to the fact that vue-tsc doesn't recognise a slot prop.
There may be more components with the same issue.
Expected Behavior
I expect the component definition to include the slot property.
Steps to Reproduce
In a vue project with vue-tsc's configuration set like so (part of tsconfig.json)
"vueCompilerOptions": {
"strictTemplates": true
}
Add this to any vue component's template:
<IonTabBar slot="bottom">
<IonTabButton
tab="tab-home"
href="/tabs/tab-home"
>
<p>Home</p>
</IonTabButton>
</IonTabBar>
Code Reproduction URL
Ionic Info
Ionic:
Ionic CLI : 7.2.0
Ionic Framework : @ionic/vue 8.6.2
Capacitor:
Capacitor CLI : not installed
@capacitor/android : 7.4.0
@capacitor/core : 7.4.0
@capacitor/ios : 7.4.0
Utility:
cordova-res : not installed globally
native-run : 2.0.1
System:
NodeJS : v20.17.0
npm : 11.0.0
OS : macOS Unknown
Additional Information
No response
- Linguagem predominante
- TypeScript
- Estrelas
- 52.8k
- Forks
- 13.3k
- Merge médio
- 3d 1h
- PRs com merge (30d)
- 86
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ionic-team/ionic-framework
-
bug: input-otp, backspace in an empty box only moves focus instead of clearing the previous boxTalvez já em andamento @sarankumar1325 assumiu há 23 dias. Abertapackage: core type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 90/100
ionic-team/ionic-framework#31639 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: vue swipe cancellation throws when the previous page is missingTalvez já em andamento @dandoingdev assumiu há 46 dias. Abertapackage: vue type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ionic-team/ionic-framework#31514 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: ion-searchbar input is always labelled "search text"; aria-label on the host is not forwardedTalvez já em andamento @HappyKnuckles assumiu há 41 dias. Abertaa11y package: core type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
ionic-team/ionic-framework#31492 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug: IonTabs throws when a Fragment contains one IonRouterOutletTalvez já em andamento @Benziza assumiu há 82 dias. Abertapackage: react type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ionic-team/ionic-framework#31410 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
bug: angular swipe-back gesture crashes in StackController.startBackTransition when the stack is popped before the gesture is capturedTalvez já em andamento @officialasishkumar assumiu há 9 dias. Abertapackage: angular type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
ionic-team/ionic-framework#31291 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ionic-team/ionic-framework
Issues semelhantes
-
area-templates triage:bot-seen triage:needs-human
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
microsoft/aspire#22356 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Archiving an agent that is not loaded keeps its old updatedAtTalvez já em andamento @luoph assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
content triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
contributor: external needs review severity: low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
expo/expo#53642 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
JSPrismarine/JSPrismarine#3214 ·
Mantenedores costumam responder em até 1 dia