随笔分类 -  React

摘要:export default function UseMemoPage(props){const [count , setCount] = useState(0)const [value,setValue] = useState(0)//如果点击setCount的时候 会触发 sompute 但是相 阅读全文
posted @ 2021-12-24 17:19 贺可英 阅读(546) 评论(0) 推荐(0) 编辑
摘要:import React, { useEffect, useState } from 'react'; import { SetData } from './../../data.d'; import type { ProColumns } from '@ant-design/pro-table'; 阅读全文
posted @ 2021-09-28 11:21 贺可英 阅读(1543) 评论(0) 推荐(0) 编辑
摘要:在 columns 中定义表头样式 因为设置 样式 display 为 none 会导致页面元素塌陷 所以想了下面的方法 把 title 去掉 width 宽度置为 0 达到所要的效果 { title: policyNoTypeToTable == '0'? '支付方式' : '', // 根据特定 阅读全文
posted @ 2021-09-26 17:14 贺可英 阅读(3776) 评论(0) 推荐(0) 编辑
摘要:{/* <ProFormDependency name={[['applicant','persIdentType'], ['applicant','policyholdernameType']]}> {({applicant})=> { console.log(applicant) const s 阅读全文
posted @ 2021-09-06 14:05 贺可英 阅读(891) 评论(0) 推荐(0) 编辑
摘要:// 首先配置路由并隐藏菜单栏 const routes = [ { name: '投保综合查询保单详情页', icon: 'smile', path: '/insureOfQuery/components/details', component: './InsureOfQuery/componen 阅读全文
posted @ 2021-06-23 11:35 贺可英 阅读(881) 评论(0) 推荐(0) 编辑
摘要:生命周期 组件初始化 创建时componentDidMount 组件更新 更新中componentDidUpdate 组件卸载 卸载时componentWillUnmount // 自制 钟表 import React from 'react' class Clock extends React.C 阅读全文
posted @ 2021-05-11 18:00 贺可英 阅读(37) 评论(0) 推荐(0) 编辑
摘要:npm install create-react-app -g create-react-app my-project // 自己定义的文件名称 cd my-project // 进入项目 npm start // 启动服务器 启动编辑器打开文件 README.md // create-react  阅读全文
posted @ 2021-03-30 14:56 贺可英 阅读(61) 评论(0) 推荐(0) 编辑

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