上一页 1 2 3 4 5 6 ··· 34 下一页
摘要: document.addEventListener("visibilitychange", function() { if (document.visibilityState 'visible') { // 当前页签处于活跃状态 console.log('当前页签处于活跃状态'); } else { 阅读全文
posted @ 2024-04-22 18:58 Felix_Openmind 阅读(3) 评论(0) 推荐(0) 编辑
摘要: <span class="role-name role-count-info"> {{ roleCountInfo }} <div class="all-roleName-box"> <li v-for="(roleName, index) in roleListNames" :key="index 阅读全文
posted @ 2024-04-19 10:43 Felix_Openmind 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 放大图片组件 img-preview.vue <template> <div class="preview" @click="onClick" @keydown="onKeydown"> <div class="preview-img" > <img :src="src" alt /> </div> 阅读全文
posted @ 2024-04-18 19:37 Felix_Openmind 阅读(42) 评论(0) 推荐(0) 编辑
摘要: const imgRegEx = /<img.*?>/gi; const handleChange = (editor) => { console.log('change:', editor.getHtml()) const richText = valueHtml.value valueHtml. 阅读全文
posted @ 2024-04-18 19:18 Felix_Openmind 阅读(146) 评论(0) 推荐(0) 编辑
摘要: body{ filter: grayscale(1); } //或者 html.gray-mode { filter: grayscale(.95); -webkit-filter: grayscale(.95); } 其他 blur 模糊-webkit-filter:blur(2px); brig 阅读全文
posted @ 2024-04-16 15:44 Felix_Openmind 阅读(8) 评论(0) 推荐(0) 编辑
摘要: border有个border-image的属性,类似background也有个background-image一样,通过为其设置渐变颜色后,实现的渐变,后面的数字4为x方向偏移量 .border-grident{ margin-top: 20px; width: 200px; height: 200 阅读全文
posted @ 2024-04-16 15:41 Felix_Openmind 阅读(3) 评论(0) 推荐(0) 编辑
摘要: useModal.js import { nextTick, ref } from 'vue' import {isFunction} from "lodash-es"; export function useModal() { const visible = ref(false) const lo 阅读全文
posted @ 2024-04-14 12:57 Felix_Openmind 阅读(36) 评论(0) 推荐(0) 编辑
摘要: watch(() => props.record, () => { if (props?.record) { let recordData = props?.record console.log('output-> recordData', recordData) // 2 - 待反馈 if (re 阅读全文
posted @ 2024-04-10 14:44 Felix_Openmind 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 效果图 核心代码 <a-cascader @change="handleModule" :fieldNames="{label: 'moduleName', value: 'moduleId' , children: 'moduleVoList'}" :options="moduleTypeArrs 阅读全文
posted @ 2024-04-07 14:46 Felix_Openmind 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 参考连接 https://www.wangeditor.com/v5/for-frame.html#使用-1 效果图 相关依赖 <template> <div> <div style="border: 1px solid #ccc; margin-top: 10px"> <Toolbar :edit 阅读全文
posted @ 2024-04-02 17:12 Felix_Openmind 阅读(24) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 34 下一页