element ui 穿梭框宽度调整

<!-- 首先穿梭框设置ref用于引用 -->
<el-transfer  ref="grant_transfer" v-model="grant.value" :data="grant.data"></el-transfer>
<script>
//... ...
/* 穿梭框 赋值后*/
this.$nextTick(function () {
    this.$refs.grant_transfer.$el.querySelectorAll('div.el-transfer-panel').forEach(p=>p.style.width='280px');
});
//... ...
<script>

 

posted on 2023-01-31 15:26  hi-gdl  阅读(314)  评论(0编辑  收藏  举报

导航