layui + vue + element-ui
(layui 彈層中)雙向綁定layui select 失敗問(wèn)題解決方法
layui 彈層后,延時(shí)一秒,執(zhí)行form.reader('select')
showAdd:function () {
this.getCurrentVillageId(function () {
layui.common.layerOpen({
type:1,
title: '用戶(hù)登記',
content: $("#addPanel"),
area: ['1000px', '680px'],
cancel:function() {
$("#addPanel").hide();
}
})
setTimeout(function () {
form.render('select')
},1000)
})
}