当我尝试在离子核中使用modalController时,我得到了Uncaught (in promise) Error: framework delegate is missing。
modalController
.create({
keyboardClose: true,
component: ImagePreview,
backdropDismiss: true,
swipeToClose: true,
// What does this Property does and how do i use it, i think the modalCtrl require this in Ionic-React
delegate:
})
.then((tost) => tost.present());发布于 2021-04-02 08:26:35
这不是在react - https://ionicframework.com/docs/api/modal中创建模态的方式
<IonModal
isOpen={showModal}
keyboardClose ={true}
backdropDismiss ={true}
swipeToClose={true}
onDidDismiss={() => setShowModal(false)}>
<ImagePreview />
</IonModal>https://stackoverflow.com/questions/66905679
复制相似问题