我正在使用物化 0.100.2 并使用了多个卡片面板。每个卡片面板都有一个打开下拉菜单的按钮。每个触发器的下拉列表都是相同的。我搜索了解决方案,我什至发现了一个与我的问题相似的问题。但我不明白提出的解决方案。我发现的问题和解决方案可以在 github 上的以下链接中看到 -
https://github.com/Dogfalo/materialize/issues/2051
我的问题就像我从后端导入数据并将卡片面板迭代到我收到的数据长度。我将下拉列表放在此迭代下方,以便所有卡片面板都可以使用它。
考虑带有数据的“actionLists”。
<div class="card-panel" data-ng-repeat="actionItem in actionLists">
.....
<button class="dropdown-button btn btn-floating" data-activates="dropdown-example"><i class="material-icons">edit</i></button>
</div>
<div id="dropdown-example" class="dropdown-content">
....
</div>
你能帮帮我吗?我对具体化还很陌生。提前致谢。