随笔分类 -  前端-工作篇-react工作

前端-react工作
摘要:render() { const { anchors = [], //锚点数组,link-节点id,title-显示文字 content, //左侧内容 } = this.props; return ( <div style={{ display: 'flex' }}> <div style={{ 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(60) 评论(0) 推荐(0) 编辑
摘要:import { Anchor } from 'antd'; const { Link } = Anchor; const onChange = link => { console.log('Anchor:OnChange', link); }; ReactDOM.render( <Anchor a 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(20) 评论(0) 推荐(0) 编辑
摘要:import { Anchor } from 'antd'; const { Link } = Anchor; ReactDOM.render( <Anchor> <Link href="#components-anchor-demo-basic" title="Basic demo" /> <Li 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(133) 评论(0) 推荐(0) 编辑
摘要:当在子组件中调用onRef函数时,正在调用从父组件传递的函数。this.props.onRef(this)这里的参数指向子组件本身,父组件接收该引用作为第一个参数:onRef = {ref =>(this.child = ref)}然后它使用this.child保存引用。之后,可以在父组件内访问整个 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(112) 评论(0) 推荐(0) 编辑
摘要:componentDidMount() { console.log(this.props, 'props'); console.log(this, 'this'); this.props.onRef && this.props.onRef(this); } 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(23) 评论(0) 推荐(0) 编辑
摘要:<Row> <Col> <Button style={{ marginTop: '24px', marginBottom: '24px', float: 'right', marginRight: '24px', }} type="primary" onClick={this.addApply} > 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(56) 评论(0) 推荐(0) 编辑
摘要:title: '品牌资质有效期', dataIndex: 'certificationStartDate', render: (text, row) => { return ( <span> {moment(row.certificationStartDate).format('YYYY-MM-DD 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(40) 评论(0) 推荐(0) 编辑
摘要:const tabs = [{ key: '', value: '全部' }, ...MERCHANTLISTSTARTUS]; 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(49) 评论(0) 推荐(0) 编辑
摘要://重置按钮 handleReset = () => { this.props.form.setFieldsValue({ merchantCode: '', goodsCode: '', }); }; 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<InputNumber min={0} style={{ width: 100 }} onPressEnter={this.handleSearch} /> 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(63) 评论(0) 推荐(0) 编辑
摘要:```bash # 屏蔽文件不被 git 追踪 git update-index --assume-unchanged [FILE] # 如果要还原的话,使用命令: git update-index --no-assume-unchanged [FILE] ``` 阅读全文
posted @ 2022-07-23 22:30 前端导师歌谣 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示