随笔分类 -  vue

摘要:ts interface 定义接口 reactive 使用 或 注意 这样的没法直接实现响应式,注意!!!!!!!!!!!!1 阅读全文
posted @ 2022-04-27 20:18 王希有 阅读(462) 评论(0) 推荐(0)
摘要:1、安装 npm install pinia-plugin-persist 2、src/mais.ts 3、src/stores/index.ts 4、效果 5、使用 或 或 mapState ( 此方法好像在 <script setup lang="ts"> </script> 标签里不好用,谁有 阅读全文
posted @ 2022-04-25 18:56 王希有 阅读(791) 评论(0) 推荐(0)
摘要:vue2 变量名 以 VUE_APP_ 开头 vue3 vite 1、根目录创建 2、package.json 配置 3、使用 4、注意 VITE_APP_BASEURL 变量 有三种类型,所以使用前进行 断言判断 阅读全文
posted @ 2022-04-25 16:02 王希有 阅读(225) 评论(0) 推荐(0)
摘要:一、先说操作步骤:(根据官方文档) 1、 安装 npm init vue@latest 2、base.css 文件(目录...\src\assets\base.css) /* color palette from <https://github.com/vuejs/theme> */ :root { 阅读全文
posted @ 2022-04-15 09:18 王希有 阅读(4506) 评论(0) 推荐(0)
摘要:1、问题 2、解决 在src 目录下创建 .d.ts结尾的文件,如vue.d.ts 或 shime.d.ts 等均可。 并写入 declare module "*.vue" { import Vue from "@/vue"; export default Vue; } 此时,你会发现已经不爆红了。 阅读全文
posted @ 2022-04-11 14:58 王希有 阅读(1714) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/han1140521792/article/details/103263049 阅读全文
posted @ 2021-12-06 15:40 王希有 阅读(802) 评论(0) 推荐(0)
摘要:影响了两天的问题,终于解决了,各种js计算高度,平移,结合c3,最后发现js计算后,是c3层级问题,希望能帮到园友,说明如下: 问题: 当一个或多个元素同时使用 如 transform: translateY(-100px);时, transform会默认 修改 元素的层级关系, 即,会出图一这种, 阅读全文
posted @ 2021-09-01 10:19 王希有 阅读(2311) 评论(0) 推荐(0)
摘要:1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="utf-8"> 6 <title></title> 7 </head> 8 9 <body> 10 <h1></h1> 11 </body> 12 13 </html> 14 <script 阅读全文
posted @ 2021-07-07 09:50 王希有 阅读(1670) 评论(0) 推荐(0)
摘要:原创 <!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta charset="utf-8"> <meta content="width=devic 阅读全文
posted @ 2021-07-07 09:38 王希有 阅读(741) 评论(1) 推荐(0)
摘要:vue-cli 2.0 在webpack.prod.conf.js代码配置 最顶层 增加 const version = new Date().getTime() cosnt webpackConfig = merge(baseWebpackConfig, { ..., // 此处省略 // 增加o 阅读全文
posted @ 2021-06-22 11:26 王希有 阅读(1802) 评论(0) 推荐(0)
摘要:// 高德 获取经纬度信息 getLocation () { const _this = this const AMap = window.AMap AMap.plugin('AMap.Geolocation', function () { var geolocation = new AMap.Ge 阅读全文
posted @ 2021-06-08 09:58 王希有 阅读(2565) 评论(0) 推荐(0)
摘要:在切换分支前(即 git checkout 分支名时), 先进行保存操作,(即 git add . git commit -m '注释注释。。。。' git pull git push ) 或者 参考 https://blog.csdn.net/weixin_42436131/article/det 阅读全文
posted @ 2021-05-12 15:16 王希有 阅读(510) 评论(0) 推荐(0)
摘要:参考 https://python.ctolib.com/328921371-ruler.html 法一 cs-ruler 插件 npm install cs-ruler <template> <div> <cs-ruler @post-NumValue="rulerNum" :NowNum='10 阅读全文
posted @ 2021-05-11 10:13 王希有 阅读(3388) 评论(0) 推荐(0)
摘要:js将PDF转为base64格式 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="view 阅读全文
posted @ 2021-05-10 13:29 王希有 阅读(8282) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2021-04-12 13:50 王希有 阅读(272) 评论(0) 推荐(0)
摘要:具体安装,参考 https://www.w3cschool.cn/vueeasyui/vueeasyui-p8h937nn.html 坑: 这样无效 v-Resizable 直接套在 LayoutPanel 标签里面 <template> <div> <Layout style="width: 70 阅读全文
posted @ 2021-04-12 10:18 王希有 阅读(474) 评论(0) 推荐(0)
摘要:<style> #app{ height:1000px; min-height:500px; max-height:300px; } </style> <body> <div id="app"> </div> </body> 问div的高度为多少经过实践得到高度为min-height即500px。 阅读全文
posted @ 2021-04-06 13:59 王希有 阅读(493) 评论(0) 推荐(0)
摘要:参考 https://www.h5w3.com/14549.html 但是在连续调用 wx.downloadImage 时,发现问题,解决方法详见本博客,忘记在哪写的了,都挨着呢 阅读全文
posted @ 2021-03-26 17:14 王希有 阅读(727) 评论(0) 推荐(0)
摘要:参考 https://www.xiejiahe.com/blog/detail/5be97f71df53a14006035e2a 把需要注释的注释掉 同时后端做跨域设置 这个问题困扰比较久 然后,你会发现,在苹果可以显示,在安卓不能正常显示 解决 将下载的pdf 文件,直接放到服务器上 即文章中的方 阅读全文
posted @ 2021-03-26 17:13 王希有 阅读(3037) 评论(0) 推荐(0)
摘要:wx.chooseImage({ count: 1, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都 阅读全文
posted @ 2021-03-26 17:09 王希有 阅读(571) 评论(0) 推荐(0)