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