Fork me on GitHub
摘要: antd的DatePicker组件fuzhishi 需要使用moment,否则会报错,moment依赖自行安装 初始化赋值: const getDetails = () => { form.resetFields() let initialValues = {} result.data.inputO 阅读全文
posted @ 2022-07-31 23:18 让梓航飞 阅读(2381) 评论(0) 推荐(0)
摘要: window.location.reload("#id") window.location.reload(".page_box--RXbn9") 阅读全文
posted @ 2022-07-31 23:09 让梓航飞 阅读(43) 评论(0) 推荐(0)
摘要: rowClassName 可以允许我们为 table 的某一行添加样式,它的 record 返回的是一个对象 <div className={`${styles.editable} myTableClass`}> <Table components={components} rowClassName 阅读全文
posted @ 2022-07-19 22:02 让梓航飞 阅读(4430) 评论(0) 推荐(0)
摘要: .test_table td:first-child { font-weight: bold; } .test_table th { font-weight: bold; } <div className={styles.test_table} > <Table columns={[...partI 阅读全文
posted @ 2022-07-19 21:58 让梓航飞 阅读(479) 评论(0) 推荐(0)
摘要: 1 import "./styles.css"; 2 import { useRef } from "react"; 3 4 export default function App() { 5 const firstDivRef = useRef(); 6 const secondDivRef = 阅读全文
posted @ 2022-07-18 22:08 让梓航飞 阅读(471) 评论(0) 推荐(0)
摘要: 1 <div className={styles.test_table} onScrollCapture={this.handleScrollTable} ref={this.table}> 2 <Table 4 columns={[...partInfoHeader]} 5 dataSource= 阅读全文
posted @ 2022-07-18 22:03 让梓航飞 阅读(1057) 评论(0) 推荐(0)
摘要: Object.defineProperty的基本配置项 enumerable(是否可枚举也就是参与遍历),writable,configurable。 1 <script type="text/javascript" > 3 let person = { 4 name:'张三', 5 sex:'男' 阅读全文
posted @ 2022-05-16 11:21 让梓航飞 阅读(168) 评论(0) 推荐(0)