随笔分类 - 前端-工作篇-react工作
前端-react工作
摘要:Encountered two children with the same key, `116245139602468120654593`. Keys should be unique so that components maintain their identity across update
阅读全文
摘要:import React, { Component } from 'react'; class Edit extends Component { render() { return <div>1111</div>; } } export default Edit; 利用export导出
阅读全文
摘要:this.props.dispatch({ type: 'activity/addActivityPopup', payload: params, callback: (res) => { if (res.returnCode 0) { message.success('新增成功'); } else
阅读全文
摘要:const { dispatch, activity: { cmsPopupList = [] }, } = this.props;
阅读全文
摘要:<Row gutter={12}> <Col span={12}> <Form.Item label="活动结束时间"> {getFieldDecorator('endTimeLong', { rules: [{ required: true, message: '活动结束时间不能为空' }], }
阅读全文
摘要:const rowSelection = { selectedRowKeys, onChange: this.onSelectChange, };
阅读全文
摘要:{ name: data?.name, startTimeLong: new Date(data?.code[0]).getTime(), endTimeLong: new Date(data?.code[1]).getTime(), }, () => { this.getFrameList();
阅读全文
摘要:<Radio.Group> {linksList?.map((item) => ( <Radio key={item.key} value={item.key}> {item.value} </Radio> ))} </Radio.Group>
阅读全文
摘要:200: '服务器成功返回请求的数据。', 201: '新建或修改数据成功。', 202: '一个请求已经进入后台排队(异步任务)。', 204: '删除数据成功。', 400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。', 401: '用户没有权限(令牌、用户名、密码错误)', 4
阅读全文
摘要:import { Spin, Switch, Alert } from 'antd'; class Card extends React.Component { state = { loading: false }; toggle = value => { this.setState({ loadi
阅读全文
摘要:this.props.dispatch({ type: 'startpage/getStartPageByCode', payload: { code: this.props.location.query.code }, callback: (res) => { this.setState({ po
阅读全文
摘要:### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(64) ### The error may exist in
阅读全文
摘要:()=>{this.handleSubmit(true)
阅读全文
摘要:this.props.dispatch({ type: 'activity/addActivityPopup', payload: params, callback: (res) => { if (res.returnCode 0) { message.success('新增成功'); if (fl
阅读全文
摘要:<div style={{ textAlign: 'center' }}> <Button type="primary" onClick={this.handleSubmit(false)} style={{ marginRight: '10px' }}> 保存 </Button> <Button
阅读全文
摘要:<Row gutter={12}> <Col span={12}> <Form.Item label="活动结束时间"> {getFieldDecorator('endTimeLong', { initialValue: [moment(popupByIdDetail.endTimeLong)],
阅读全文