antdv1.7.8踩坑記錄
1、a-select 下拉框不隨頁面滾動

解決方案:
:getPopupContainer="(triggerNode)=>{return triggerNode.parentNode}"
getPopupContainer:菜單渲染父節點,默認渲染到 body 上。
2、a-select下拉框未頂部/底部對其:

解決方案:
增加a-select父級容器高度,默認會頂部對其或底部對其,當高度不夠時,就會出現上面的處于輸入框中間的情況。
3、a-button按鈕的shape屬性

shape="circle"
當設置為circle和 round時,未按照預期顯示,審查元素發現button標簽上有element.style { margin: 0px; border-radius: 0px; }}。
待解決。
4、a-form-model 多重嵌套時,驗證未自動觸發
將表單結構拆成多個文件,包括a-form-model、a-row、a-form-model-item、component、a-input。component實現了表單內容的動態渲染,
但是也攔截了表單組件的事件,需要將a-input的失去焦點等事件,經過component傳遞給父級組件a-form-model-item
浙公網安備 33010602011771號