摘要: 举例:更改连接方式后需要将远程分支与本地分支同步: 验证远程 URL: 首先,确保你已经正确更改了远程仓库的 URL: git remote -v 获取所有远程分支: 使用 git fetch 命令获取所有远程分支的最新信息: git fetch --all 查看所有本地和远程分支: 列出所有本地和 阅读全文
posted @ 2024-05-20 11:54 SimoonJia 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 要将git仓库的ssh链接切换为https链接,可以按照以下步骤操作: 1. 打开终端,并进入到本地的git仓库目录中。 2. 使用以下命令查看当前git仓库的远程链接: git remote -v 3. 使用以下命令移除当前的ssh远程链接: git remote remove origin 4. 阅读全文
posted @ 2024-05-20 11:40 SimoonJia 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 官网 createPortal(children, domNode, key?) import { createPortal } from 'react-dom'; // ... <div> <p>这个子节点被放置在父节点 div 中。</p> {createPortal( <p>这个子节点被放置在 阅读全文
posted @ 2024-05-16 18:29 SimoonJia 阅读(3) 评论(0) 推荐(0) 编辑
摘要: const maxDistance = 10; const distance = axesCamera.position.length(); if (distance > maxDistance) { axesCamera.position.multiplyScalar(maxDistance / 阅读全文
posted @ 2024-05-15 18:46 SimoonJia 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 格式化树数据: function replaceNameWithTitle(data) { // 遍历数据数组 return data.map(item => { // 复制当前对象,以免修改原始数据 const newItem = { ...item }; // 将 name 属性替换为 titl 阅读全文
posted @ 2024-05-14 16:50 SimoonJia 阅读(3) 评论(0) 推荐(0) 编辑
摘要: transform: translate(-50%); translate(50%) 相当于 translateX(50%),表示沿X轴方向平移元素自身宽度的50%。 绝对定位是最常见的问题是难以居中,所以可以改变元素的中心,来达到居中的效果 position: absolute; left: 50 阅读全文
posted @ 2024-05-14 15:20 SimoonJia 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 核心为onChang事件,赋值需要关注value <Form.Item name='position' label="位置" style={itemStyle} > <InputXYZ /> </Form.Item > const InputXYZ = (props) => { const { id 阅读全文
posted @ 2024-05-13 19:02 SimoonJia 阅读(1) 评论(0) 推荐(0) 编辑
摘要: <Select allowClear mode="multiple" showArrow={true} showSearch={true} filterOption={(inputValue, option) => option?.props?.label.includes(inputValue)} 阅读全文
posted @ 2024-05-07 18:15 SimoonJia 阅读(9) 评论(0) 推荐(0) 编辑
摘要: { dataIndex: 'contractSignDate', key: 'contractSignDate', title: '合同签订日期', width: 120, ellipsis: true, sorter: (a, b) => moment(a?.contractSignDate).v 阅读全文
posted @ 2024-05-03 16:53 SimoonJia 阅读(6) 评论(0) 推荐(0) 编辑
摘要: const disabledDateStart = useCallback((current) => { if (!contractEndDateValue) { return false } else { return current && current > contractEndDateVal 阅读全文
posted @ 2024-05-03 10:13 SimoonJia 阅读(5) 评论(0) 推荐(0) 编辑