摘要: //生命周期 componentWillMount //在微信小程序中对应onLaunch componentDidMount //在微信小程序中,这一生命周期方法对应页面的onReady或者入口文件app中的onLaunch,在componentWillMount后执行 componentDidS 阅读全文
posted @ 2020-07-30 18:31 文学少女 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 最近因为用抽屉组件会比较多,抽屉中有表单。每次关闭抽屉需要清除表单数据。所以自定义了一个方法 //reset form fields when Draw is form, closed function useResetFormOnCloseModal({ form, isShowDraw }: { 阅读全文
posted @ 2020-07-30 16:47 文学少女 阅读(1141) 评论(0) 推荐(0) 编辑