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

浙公网安备 33010602011771号