我正在使用 Angularstrap 的 Bs-tabs 指令向页面添加选项卡。我在一个选项卡内显示树视图。我想向其中添加 SlimScroll 栏。我面临的问题是我无法将 Slim Scroll 添加到两个选项卡。仅铁路来了,滚动不起作用
<div bs-tabs>
<div class="parent-tab" style="width:310px;height: 670px;">
<div data-title="Tab 1" >
<div treeview="true"
tree-model="treeDataInJsonFormat"
node-id="id"
tree-id="treeSchema"
node-label="displayName"
node-children="childColumn"
dbl-click-event="addToQuery(node)" class="treeView"> </div>
</div>
</div>
</div>
<script type="text/javascript">
angular.element('.parent-tab').slimScroll({
size : '7px',
position : 'right',
color : '#afb1b2',
alwaysVisible : true,
distance : '2px',
railVisible : true,
railColor : 'white',
railOpacity : 1,
opacity:1,
wheelStep : 10,
allowPageScroll : true,
disableFadeOut : true,
height:'670px',
width:'310px'
});</script>