随笔分类 -  前端学习-项目work-

前端学习-项目work-
摘要:<Form form={form}> <Form.Item name="machineTypeId" label="设备类型" > <Select onChange={onChangeSelect} showSearch style={{ width: 200 }} placeholder="请输入 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(4) 评论(0) 推荐(0) 编辑
摘要:import { Select } from "antd"; type SelectProps = React.ComponentProps<typeof Select>; interface IdSelectProp extends Omit<SelectProps, "value" | "onC 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(1) 评论(0) 推荐(0) 编辑
摘要:<Card style={{ marginTop: "24px" }}> <Row> <Col span={8}>所属品类:{styleDeatil?.categoryName}</Col> <Col span={8}>款式名称:{styleDeatil?.name}</Col> <Col span 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<Dropdown overlay={menu} onOpenChange={handleOpenChange} open={open}> <a onClick={e => e.preventDefault()}> <Space> Hover me <DownOutlined /> </Space> 阅读全文
posted @ 2022-10-14 08:20 前端导师歌谣 阅读(10) 评论(0) 推荐(0) 编辑
摘要:if (result[splitKey[0]] undefined) { // first operator for the key, we add it to the dict result[splitKey[0]] = op; console.log(result[splitKey[0]],"r 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(25) 评论(0) 推荐(0) 编辑
摘要://如果包含like这个属性 拉取到当前的值 拿取到对应的属性值 if (operation.includes('like')) { values = filter[key].trim().split(' '); } else { values = [filter[key]]; } console. 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(6) 评论(0) 推荐(0) 编辑
摘要:如果在 str 中省略或不出现分隔符,则返回的数组包含一个由整个字符串组成的元素。如果分隔符为空字符串,则将 str 原字符串中每个字符的数组形式返回。 console.log(filter,"filter 1") //{is_delete: 0, name@like: '我是测试'} 'filte 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(50) 评论(0) 推荐(0) 编辑
摘要:http://192.168.1.49:3000/search_size?is_delete=eq.0&name=like.*%E6%88%91%E6%98%AF%E6%AD%8C%E8%B0%A3*&limit=10&offset=0&order=id.desc 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(4) 评论(0) 推荐(0) 编辑
摘要://属性按照@分割 const splitKey = key.split('@'); console.log(splitKey,"splitKey") //如果长度为2 取出数组的属性值 const operation = splitKey.length == 2 ? splitKey[1] : d 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(12) 评论(0) 推荐(0) 编辑
摘要:利用方法找到map中属性的值 const getPrimaryKey = (resource: string, primaryKeys: Map<string, PrimaryKey>) => { return primaryKeys.get(resource) || ['id']; } const 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(12) 评论(0) 推荐(0) 编辑
摘要:表示插入的Map 的key与value的类型 // compound keys capability type PrimaryKey = Array<string>; primaryKeys: Map<string, PrimaryKey> primaryKeys: Map<string, Prim 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(11) 评论(0) 推荐(0) 编辑
摘要:disabled={menu&&menu.id ? true : false} 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(2) 评论(0) 推荐(0) 编辑
摘要:else { instDetail({ id: record.id }) .unwrap() .then((response: any) => { if (response.code == 200) { setEditVisible(true); setCurrentMenu(response.da 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(2) 评论(0) 推荐(0) 编辑
摘要:else { setEditVisible(true); setCurrentMenu(menuData.list[index]) instDetail({ id: record.id }) .unwrap() .then((response: any) => { setCurrentMenu(re 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(3) 评论(0) 推荐(0) 编辑
摘要:找到tsconfig.json的配置文件: isolatedModules字段改为false 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(9) 评论(0) 推荐(0) 编辑
摘要:useEffect(()=>{ if(!idRemark){ procedureDetail({ id: idRemark }) .unwrap() .then((response: any) => { if (response.code 200) { const { remark } = resp 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(2) 评论(0) 推荐(0) 编辑
摘要:Modal.confirm({ title: '系统提示', content: '是否删除?', onOk() { }, onCancel() { }, }); 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(2) 评论(0) 推荐(0) 编辑
摘要:const closeEditModal = useCallback(() => { setEditVisible(false); }, [setEditVisible]); const onOkEditModal = useCallback(() => { setEditVisible(false 阅读全文
posted @ 2022-10-14 08:19 前端导师歌谣 阅读(12) 评论(0) 推荐(0) 编辑

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