摘要: 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)
摘要: 给文本的盒子增加css样式 min-height: 32px; position: relative; top: 7px; 阅读全文
posted @ 2025-07-03 10:19 青云码上 阅读(27) 评论(0) 推荐(0)
摘要: 此时在应用程序中已经有这个软件了,只是打开会提示已损坏,解决方案: 打开终端,输入 xattr -c -r 然后把应用程序中损坏的应用拖到终端中,最后回车,即可正常打开应用了。 阅读全文
posted @ 2025-04-14 10:42 青云码上 阅读(43) 评论(0) 推荐(0)
摘要: // 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)
摘要: 有bug的伪代码如下(示例以 id 来作为 rowKey): <a-table :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :columns="columns" rowKey="id" 阅读全文
posted @ 2024-10-31 15:54 青云码上 阅读(320) 评论(0) 推荐(0)
摘要: this.$confirm({ title: '警告', content: '确定要xxxxxx吗?', okText: '确定', okType: 'danger', cancelText: '取消', onOk() { return new Promise((resolve, reject) = 阅读全文
posted @ 2024-03-20 14:59 青云码上 阅读(987) 评论(0) 推荐(0)
摘要: <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)
摘要: 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)
摘要: 有时候公共UI组件满足不了一些特定的需求样式,并且有较多地方使用同一个UI组件,这时候就需要考虑二次封装现有UI组件 组件二次封装关键的几点: 使用 $attrs 接收 props 使用 $listeners 接收事件 使用 $slots 和 $scopedSlots 接收插槽 使用model定义p 阅读全文
posted @ 2023-11-16 14:36 青云码上 阅读(542) 评论(0) 推荐(0)
摘要: 实现类似这种功能 可以给输入框(一般是密码框)绑定 mousedown 事件,然后在事件中直接使用 e.getModifierState('CapsLock') 可获取 CapsLock(大小写切换) 是否打开。 getModifierState详细文档 阅读全文
posted @ 2023-11-09 18:33 青云码上 阅读(138) 评论(0) 推荐(0)