会员
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
青云码上
博客园
首页
新随笔
联系
订阅
管理
2025年7月4日
js复制文本
摘要: copyText(text){ try { navigator.clipboard.writeText(text) console.log('navigator: ', navigator); } catch (error) { let oInput = document.createElement
阅读全文
posted @ 2025-07-04 15:41 青云码上
阅读(44)
评论(0)
推荐(0)
2025年7月3日
a-form-item的单行文本和label对齐,但是多行文本不对齐处理方法
摘要: 给文本的盒子增加css样式 min-height: 32px; position: relative; top: 7px;
阅读全文
posted @ 2025-07-03 10:19 青云码上
阅读(27)
评论(0)
推荐(0)
2025年4月14日
M4电脑安装软件提示文件已损坏解决方案
摘要: 此时在应用程序中已经有这个软件了,只是打开会提示已损坏,解决方案: 打开终端,输入 xattr -c -r 然后把应用程序中损坏的应用拖到终端中,最后回车,即可正常打开应用了。
阅读全文
posted @ 2025-04-14 10:42 青云码上
阅读(43)
评论(0)
推荐(0)
2024年12月18日
antd-vue的less默认变量
摘要: // The prefix to use on all css classes from ant. @ant-prefix: ant; // An override for the html selector for theme prefixes @html-selector: html; // C
阅读全文
posted @ 2024-12-18 15:24 青云码上
阅读(32)
评论(0)
推荐(0)
2024年10月31日
Ant Design Vue 的 a-table 行选择分页时bug处理
摘要: 有bug的伪代码如下(示例以 id 来作为 rowKey): <a-table :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :columns="columns" rowKey="id"
阅读全文
posted @ 2024-10-31 15:54 青云码上
阅读(320)
评论(0)
推荐(0)
2024年3月20日
antd-vue的 $confirm 增加 确定按钮loading
摘要: this.$confirm({ title: '警告', content: '确定要xxxxxx吗?', okText: '确定', okType: 'danger', cancelText: '取消', onOk() { return new Promise((resolve, reject) =
阅读全文
posted @ 2024-03-20 14:59 青云码上
阅读(987)
评论(0)
推荐(0)
2023年12月25日
a-date-picker设置禁用以前的时间(含时分秒)
摘要: <a-date-picker v-model="selectTime" show-time format="YYYY/MM/DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss" :disabled-date="disabledDate" :disabled-t
阅读全文
posted @ 2023-12-25 16:29 青云码上
阅读(523)
评论(0)
推荐(0)
2023年11月16日
window获取项目目录结构
摘要: window自带的tree命令有点问题,试了很多次都不能忽略node_modeules文件夹 所以使用 tree-cli 来获取项目目录结构 第一步: npm i tree-cli -g 第二步: 在cmd命令窗口进入到项目根目录,执行命令: treee -l 5, -o out.txt --ign
阅读全文
posted @ 2023-11-16 18:09 青云码上
阅读(54)
评论(0)
推荐(0)
vue2组件二次封装
摘要: 有时候公共UI组件满足不了一些特定的需求样式,并且有较多地方使用同一个UI组件,这时候就需要考虑二次封装现有UI组件 组件二次封装关键的几点: 使用 $attrs 接收 props 使用 $listeners 接收事件 使用 $slots 和 $scopedSlots 接收插槽 使用model定义p
阅读全文
posted @ 2023-11-16 14:36 青云码上
阅读(542)
评论(0)
推荐(0)
2023年11月9日
JS检测Caps Lock是否打开,实现提示【大写锁定已打开】
摘要: 实现类似这种功能 可以给输入框(一般是密码框)绑定 mousedown 事件,然后在事件中直接使用 e.getModifierState('CapsLock') 可获取 CapsLock(大小写切换) 是否打开。 getModifierState详细文档
阅读全文
posted @ 2023-11-09 18:33 青云码上
阅读(138)
评论(0)
推荐(0)
下一页
公告