随笔分类 -  react

摘要:/** * 1.子组件 child.js */ import React, { Component } from 'react' export default class Child extends Component { constructor(props) { super(props) this 阅读全文
posted @ 2021-03-16 09:54 日升月恒 阅读(181) 评论(0) 推荐(0)
摘要:import React from 'react'; import {createPortal} from 'react-dom'; export default class BodyPopupMask extends React.Component { constructor(props) { s 阅读全文
posted @ 2020-12-25 16:59 日升月恒 阅读(1142) 评论(0) 推荐(0)
摘要:import React, { Component, Fragment } from 'react' import { Button, Modal, Form, message, Upload } from 'antd' const FormItem = Form.Item export defau 阅读全文
posted @ 2020-12-24 16:58 日升月恒 阅读(1419) 评论(0) 推荐(0)
摘要:TextArea与Input.jsx import React, { Component, useState, useEffect } from 'react' import { Modal, Input } from 'antd' const { TextArea } = Input; expor 阅读全文
posted @ 2020-12-22 16:41 日升月恒 阅读(501) 评论(0) 推荐(0)
摘要:import React, { Component, useState } from 'react' import { Checkbox, Radio, Select, Modal } from 'antd' // https://ant.design/components/overview-cn/ 阅读全文
posted @ 2020-12-22 16:39 日升月恒 阅读(187) 评论(0) 推荐(0)