随笔分类 -  Vue

Vue
摘要:正常页面都是在框架内构建页面,如果不想希望有导航等元素,如何操作,思路,login 不就是这样的页面吗 添加页面 在 src\views 创建 datav/index.vue <template> <div id="app"> <el-link type="primary" :underline=" 阅读全文
posted @ 2025-08-21 14:18 VipSoft 阅读(23) 评论(0) 推荐(0)
摘要:多个菜单点击的时候,中间主体部分,不能增加 tab,原因是因为子菜单没有增加 name , <script setup lang="ts"> defineOptions({ name: "CustodyOrder", //要和菜单中的 name 一致,这样才可以进行菜单缓存 inheritAttrs 阅读全文
posted @ 2025-08-21 10:33 VipSoft 阅读(13) 评论(0) 推荐(0)
摘要:props.detailData 是父控件传的值,如何将 detailData 中的 custodyNo 赋值给 formData 中的 reason 父控件 <Detail v-model="detailVisible" :detailData="currentDetailData" /> 子控件 阅读全文
posted @ 2025-08-19 13:31 VipSoft 阅读(51) 评论(0) 推荐(0)
摘要:查询重置按钮,不生效 必须有 prop="keywords" 属性,否则不生效 <el-form-item label="关键字" prop="keywords"> <div class="search-bar"> <el-form ref="queryFormRef" :model="queryP 阅读全文
posted @ 2025-08-18 17:40 VipSoft 阅读(43) 评论(0) 推荐(0)
摘要:PDFJS.getDocument TypeError: Cannot read from private field @2.11.338 pnpm install pdfjs-dist@2.14.305 --save 阅读全文
posted @ 2025-08-15 14:38 VipSoft 阅读(1157) 评论(0) 推荐(0)
摘要:index.vue <template> <div class="app-container"> <el-card shadow="never"> <el-table v-loading="loading" :data="pageData" highlight-current-row border> 阅读全文
posted @ 2025-08-15 10:17 VipSoft 阅读(113) 评论(0) 推荐(0)
摘要:Vue 命名规范指南 良好的命名规范可以提高代码的可读性和可维护性。以下是 Vue 项目中推荐的命名规范: 1. 组件命名 单文件组件 (SFC) 除index外,使用PascalBase风格 PascalCase (大驼峰式):MyComponent.vue 多单词命名:避免与 HTML 元素冲突 阅读全文
posted @ 2025-08-13 17:45 VipSoft 阅读(186) 评论(0) 推荐(0)
摘要:app.ts:106 Uncaught ReferenceError: Cannot access 'store' before initialization at useAppStoreHook (app.ts:106:22) at index.ts:8:18 如你的代码中已经做的 () => i 阅读全文
posted @ 2025-08-11 14:58 VipSoft 阅读(68) 评论(0) 推荐(0)
摘要:Error: Cannot find module 'D:\Projects\01.SourceCode\Web\trunk\Admin-v3\node_modules\vite\bin\vite.js' at Function._resolveFilename (node:internal/mod 阅读全文
posted @ 2025-08-07 11:33 VipSoft 阅读(32) 评论(0) 推荐(0)
摘要:下载的源码,需要 git init 删除node_modules和package-lock.json 执行了一下pnpm store prune ①删除node_modules和package-lock.json这俩文件(package-lock.json是我用npm install时产生的,之后使 阅读全文
posted @ 2025-08-07 09:20 VipSoft 阅读(59) 评论(0) 推荐(0)
摘要:<el-form-item label="状态"> <el-select v-model="searchFormState.Status" style="width: 100px" class="filter-item" placeholder="请选择" > <el-option v-for="( 阅读全文
posted @ 2025-08-05 10:48 VipSoft 阅读(33) 评论(0) 推荐(0)
摘要:CSS 遮罩层,背景渐变 html <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="basic.css"> </head> <body> <div class="masked-element"> <div class="conte 阅读全文
posted @ 2024-06-12 13:44 VipSoft 阅读(83) 评论(0) 推荐(0)
摘要:目录错误原因解决方案 app.config.globalProperties 用法坑Vue, 多环境配置 https://www.cnblogs.com/vipsoft/p/16696640.html main.js import config from '@/utils/config' //这是对 阅读全文
posted @ 2024-06-11 12:45 VipSoft 阅读(407) 评论(0) 推荐(0)
摘要:这个错误通常与Node.js的加密模块和OpenSSL版本有关 出现这个错误是因为 node.js V17版本中最近发布的OpenSSL3.0, 而OpenSSL3.0对允许算法和密钥大小增加了严格的限制,可能会对生态系统造成一些影响. js/app.8d066b51.js from Terser 阅读全文
posted @ 2024-06-11 10:42 VipSoft 阅读(251) 评论(0) 推荐(0)
摘要:根据提示,赋权限,删除文件等 jimmy@MacBook-Pro ~ % brew link node Linking /usr/local/Cellar/node/20.0.0... Error: Could not symlink include/node/common.gypi Target 阅读全文
posted @ 2024-06-09 16:20 VipSoft 阅读(131) 评论(0) 推荐(0)
摘要:==> Installing dependencies for node: mpdecimal, ca-certificates, openssl@1.1, readline, sqlite, xz, python@3.11, brotli, cmake, c-ares, icu4c, libngh 阅读全文
posted @ 2024-06-03 21:38 VipSoft 阅读(56) 评论(0) 推荐(0)
摘要:# 替换brew.git: jimmy@MacBook-Pro Library % cd "$(brew --repo)" jimmy@MacBook-Pro Homebrew % git remote set-url origin https://mirrors.aliyun.com/homebr 阅读全文
posted @ 2024-05-31 22:38 VipSoft 阅读(405) 评论(0) 推荐(0)
摘要:Vue devDependencies 与 dependencies 区别,如何往 项目的node_modules安装组件 概述 devDependencies 用于本地环境开发 只会在开发环境下依赖的模块,生产环境不会被打入包内(通过NODE_ENV=developement或NODE_ENV=p 阅读全文
posted @ 2024-05-31 15:01 VipSoft 阅读(787) 评论(0) 推荐(0)
摘要:想复制网页上的文字,弹出需要登录等,很烦人。 打开开发者工具 按F12打开 浏览器操作打开 禁用JS 运行命令 按 Ctrl+Shift+P 或者如下图,鼠标点击,调出命令运行窗口 在运行窗口中输入 JavaScript 点击停用,同理,再次点击,开启 鼠标操作 阅读全文
posted @ 2024-05-31 13:55 VipSoft 阅读(214) 评论(0) 推荐(0)
摘要:前提条件 安装 Nodejs 下载:https://nodejs.org/en/download/prebuilt-installer 切换 npm 源 npm config set registry https://registry.npmmirror.com/ 创建Vue npm create 阅读全文
posted @ 2024-05-31 09:11 VipSoft 阅读(114) 评论(0) 推荐(0)