F7+Vue: Virtual List - нет возможности отключить создание <ul> согласно документации

Open Beginner friendly
#4,175 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript
Domain
frontend

Research direction

Start in src/vue/components/list.vue around line 273 and compare the Vue component's handling of virtual-list-params with the Core createUl option. Verify the rendered markup for a virtual list configured with createUl: false, and confirm that the ul element is no longer created.

Written by the indexing model from the issue text.

Description

Задача: сделать Virtual List без <ul>

Так в Core:

<div class="class="list virtual-list">
...
</div>
this.$app.virtualList.create({
     el: this.$el.find('.virtual-list'),
     createUl: false,
     ...
});

В F7+Vue ожидается так:

<f7-list
        virtual-list
        :virtual-list-params="{
            createUl: false,
        }"
    >

Но тег <ul> все равно создается судя по данному коду: https://github.com/framework7io/framework7/blob/24702749751f9115b9fcf12ed1f5cf2abeafd038/src/vue/components/list.vue#L273

Dominant language
JavaScript
Stars
18.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from framework7io/framework7

All issues in framework7io/framework7

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.