上一页 1 2 3 4 5 6 7 8 9 10 ··· 54 下一页
摘要: Flex布局实现上下固定中间部分滚动: <div class="parent"> <div class="header">header -- 固定</div> <div class="content"> <p>content -- 滚动</p> <p>内容部分</p> <p>内容部分</p> <p> 阅读全文
posted @ 2024-02-02 10:47 风意不止 阅读(336) 评论(0) 推荐(0)
摘要: 先看目标效果(gif由迅捷gif工具制作试用,使用vscode可以打开gif,进行预览) 效果分析 1.左右区域,支持拖拽。左侧选项,拖入右边。可以新建大模块,也可以给模块新增一项。 2.模块内部,支持拖拽排序,并按照排序,生成一个简单的层级。 3.模块名字支持编辑。同时增加表单校验,名字不存在,则 阅读全文
posted @ 2024-02-01 13:55 风意不止 阅读(1917) 评论(0) 推荐(0)
摘要: 1.首先点击你的vscode左下角的齿轮设置按钮,然后点击配置用户代码片段 2.输入vue搜索vue.json这个文件,然后点击这个文件 3.接下来只需在原有的注释之下输入粘贴如下代码即可 4.代码如下 "vue3": { "prefix": "vue3", "body": [ "<template 阅读全文
posted @ 2024-02-01 11:25 风意不止 阅读(4932) 评论(0) 推荐(1)
摘要: vue3+element-plus: el-table表格动态添加或删除行,无校验,支持下拉选择 https://blog.csdn.net/m0_58953167/article/details/134895241 点击空白处保存的能力 https://www.yii666.com/blog/21 阅读全文
posted @ 2024-01-30 14:30 风意不止 阅读(5311) 评论(0) 推荐(0)
摘要: 全家桶参考地址 https://blog.csdn.net/weixin_44231544/article/details/132079709 vue3 element-plus(这里简称elp)和vue-router中的layout 1.在vue路由中,layout是一种思想。是一个自定义的组件。 阅读全文
posted @ 2024-01-29 11:49 风意不止 阅读(153) 评论(0) 推荐(0)
摘要: import { CommonFormTypes } from 'globalConstants'; import { createContext, useCallback, useState } from 'react'; import { BoardType } from '../../../D 阅读全文
posted @ 2024-01-25 15:54 风意不止 阅读(45) 评论(0) 推荐(0)
摘要: https://juejin.cn/post/7118937685653192735 局部上下文,局部共享、createContext,useContext,先创建,再使用。 https://blog.csdn.net/qq_41131745/article/details/128811921 阅读全文
posted @ 2024-01-25 14:55 风意不止 阅读(21) 评论(0) 推荐(0)
摘要: 略过封装看使用 import { request2 } from 'utils/request'; // 获取树数据 export const getTreeList = async params => { return await request2<any>({ url: '/tree/indus 阅读全文
posted @ 2024-01-25 10:44 风意不止 阅读(48) 评论(0) 推荐(0)
摘要: 简单延迟几秒 function delay(seconds) { return new Promise(resolve => setTimeout(resolve, seconds * 1000)); } // 使用这个函数来延迟1秒 delay(1).then(() => { console.lo 阅读全文
posted @ 2024-01-22 19:55 风意不止 阅读(336) 评论(0) 推荐(0)
摘要: 一定要执行一次 具名函数+函数执行 useEffect(() => { async function fetchData() { try { const response = await fetch('https://api.example.com/data'); const data = awai 阅读全文
posted @ 2024-01-22 17:01 风意不止 阅读(286) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 54 下一页