Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

el-transfer右边数据一时渲染一时不渲染,怎么一回事?

image
<el-form-item label="关联视频" prop="relatedSite" class="waterdetail trans">{{relatedSite}}

                    <el-transfer
                        target-order="unshift"
                        filter-placeholder="关键字搜索"                
                        :button-texts="['删除', '添加']"
                        :titles="['全选','全选']"        
                        :filter-method="filterMethod"
                        v-model="relatedSite"
                        :data="traData"  
                        :props="{key: 'id', label: 'addr'}"
                        filterable 
                        @mouseover.native="addTitle"
                    >
                    </el-transfer>
                </el-form-item>

一点进去v-model的数据就能打印出来,为什么右边的数据一时渲染一时不渲染?哪怕不渲染的时候v-model的数据也能打印出来,怎么一回事?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

找到问题了,原来是要异步请求才能获取数据的问题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...