Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F7+Vue: нет слота "list" и невозможно вынести f7-list-item в отдельный компонент #4195

Closed
shastox opened this issue Jun 21, 2023 · 0 comments

Comments

@shastox
Copy link
Contributor

shastox commented Jun 21, 2023

Баг:

Тут нет слота list: https://github.com/framework7io/framework7/blob/master/src/vue/components/list.vue как сказано в документации https://framework7.io/vue/list-view#list-slots

Проблема:

<f7-list>
     <my-list-item/>
</f7-list>

Где <my-list-item> это:
<f7-list-item title="..." />

Работать не будет, споткнется здесь https://github.com/framework7io/framework7/blob/master/src/vue/components/list.vue#L245 потому, что indexOf не определен

Вынести <f7-list-item title="..." /> в свой компонент сейчас можно примерно так:

<f7-list>
    <ul> - обязательно добавить вручную
        <my-list-item v-if="isLoaded"/>
    </ul>
</f7-list>

onMounted: isLoaded = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant