Akryum / Akryum/vue-virtual-scroller

Nested vue-virtual-scroller components CSS conflict

オープン
#290 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted
主要言語
TypeScript
スター
10.8k
フォーク
973
PR マージ指標
30日以内にマージされた PR はありません

説明

Thanks for this awesome component, first of all.

I'm integrating it currently in my project, where I do have the need to leverage it nested in with two different configurations:

- First instance running a horizontal instance.
- Per each element of the horizontal list, I'm also needing a vertical instance.

As you could imagine, that's due the fact I need to render a massive amount of nodes, in a structure like follows:

```js
const data = [{
title: 'Example',
flags: [true, false, true, false],
data: [{
title: 'Sub example',
flags: [true, false, true, false]
}]
}];
```

The first level could be thousands of elements, and per each individual, thousands of them.

The issue I'm facing, though, is the following:

The library styles is applying styles with nested selectors, therefore the vertical list (level 1 data) is getting the styles from the level 0 list (regardless it's set in vertical mode, and the styles from the parent is horizontal).

Any hints on ☝️?

Thanks in advance.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。