会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
世界我快乐
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2024年12月17日
antdVue a-table 设置滚动之后会多出来一行空白
摘要: :deep(.ant-table-tbody){ .ant-table-measure-row{ visibility:collapse !important } }
阅读全文
posted @ 2024-12-17 14:58 世界我快乐
阅读(206)
评论(0)
推荐(0)
2024年11月29日
antd Vue值a-tree数据处理
摘要: 1.数据格式不一致需要转成{label:,label,children}属性格式treeData = changeTreeData(data); const treeData =changeTreeData(源数据); changeTreeData=(data)=>{ const temp=[];
阅读全文
posted @ 2024-11-29 16:22 世界我快乐
阅读(80)
评论(0)
推荐(0)
2024年11月26日
js 遍历所有的数据,查出来匹配的元素,被遍历的数据包含多层children
摘要: function findNodeById(data, id) { for (const item of data) { if (item.id id) { return item; // 找到匹配的节点,直接返回 } if (item.children && item.children.lengt
阅读全文
posted @ 2024-11-26 14:51 世界我快乐
阅读(145)
评论(0)
推荐(0)
2024年10月30日
antd-Vue 3.X版本 a-select使用 实现下拉展示数据处理、搜索、自定义参数、分页的需求
摘要: 一。获取的数据可能不是 value、label 这种出参,所以使用 :field-names="{ label: 'name', value: 'id', options: 'children' }" 自定义参数,在使用过程中显示的label 并不单纯的是name可能是name拼接别的参数名,这时候
阅读全文
posted @ 2024-10-30 17:08 世界我快乐
阅读(1350)
评论(0)
推荐(0)
2024年9月27日
vue 项目打包之后的文件运行之 http-serve
摘要: 1.全局下载http-serve npm install -g http-serve 2.还是在当前项目目录下执行 npx http-serve './dev' 如果打包文件名为其他的也可以直接替换 然后直接访问 默认的8080端口 在本地运行需要修改publicPath的配置为 './' 或者配置
阅读全文
posted @ 2024-09-27 10:45 世界我快乐
阅读(154)
评论(0)
推荐(0)
2024年9月18日
antd-Vue 3.X版本 a-back-top使用
摘要: api中例子本地项目中没显示出来 原因是 没有图标 采用引用图标的方式展示 使用的时候需注意: 1.target是找到滚动的目标元素,不然也显示不出 2.visibilityHeight 默认是400 滚动不到这个数值可能也显示不出 <div> <a-back-top :target="target
阅读全文
posted @ 2024-09-18 15:12 世界我快乐
阅读(237)
评论(0)
推荐(0)
2024年9月2日
antd-Vue 3.X版本 a-Checkbox 未回显的问题
摘要: 1.3.X版本要求得value值的而类型为[string],如果是number则不会显示、 <a-form-item label='人员' name="person"> <a-checkbox-group v-model:value="person" :option="personList" />
阅读全文
posted @ 2024-09-02 17:03 世界我快乐
阅读(176)
评论(0)
推荐(0)
2023年12月22日
使用原生H5 input元素实现图片上传和图片文件大小限制以及宽高限制
摘要: 用h5 input type="file"上传图片文件 html 设置 拼接到需要的地方 var checkboxHtml = '<form enctype="multipart/form-data">n'+<div class="modal-body"> n'+<div class="my-img
阅读全文
posted @ 2023-12-22 11:14 世界我快乐
阅读(426)
评论(0)
推荐(0)
2023年3月10日
校验一些常用号码
摘要: // const reg = /^1[3|4|5|7|8|9][0-9]\d{8}$/; //手机号正则表达式 //const reg = /^([0-9]{3,4}-)?[0-9]{7,8}$/; //座机号正则表达式 const reg =/^([1-9]{1})(\d{14}|\d{18})$
阅读全文
posted @ 2023-03-10 15:30 世界我快乐
阅读(19)
评论(0)
推荐(0)
2023年2月9日
element+Vue el-form组件进行查询时,当输入框仅有一项时,回车自动提交表单,浏览器会刷新页面
摘要: vue的写法就是el-form上添加阻止默认事件 @submit.native.prevent <el-form ref="queryForm" label-width="120px" :model="form" :rules="rules" :show-message="false" size="
阅读全文
posted @ 2023-02-09 17:27 世界我快乐
阅读(120)
评论(0)
推荐(0)
1
2
3
4
5
···
7
下一页
公告