摘要:
React 配置 antd 样式按需加载 react脚手架 + antd的craco.config.js配置 拉取脚手架执行以下命令 标题安装antd 修改 src/App.js,引入 antd 的按钮组件 修改 src/App.css,在文件顶部引入 antd/dist/antd.css 高级配置 阅读全文
posted @ 2023-02-02 11:22
过好每一天2022
阅读(179)
评论(0)
推荐(0)
摘要:
vue 首次赋值不触发 :{ // 评论提到的首次加载 数组触发 'date':{ immediate: true, // immediate选项可以开启首次赋值监听 handler(newVal, oldVal) { console.log(newVal, oldVal) console.log( 阅读全文
posted @ 2023-02-02 11:17
过好每一天2022
阅读(13)
评论(0)
推荐(0)
摘要:
vue打包后反编译到源代码(reverse-sourcemap) 1、npm install --global reverse-sourcemap 2、reverse-sourcemap --output-dir XXX(导出路径) app.XXX.js.map(打包文件中的.js.map文件) 3 阅读全文
posted @ 2023-02-02 11:15
过好每一天2022
阅读(297)
评论(0)
推荐(0)
摘要:
https://www.cnblogs.com/yuanchao-blog/p/10847417.html https://developer.mozilla.org/zh-CN/docs/Web/API/DocumentFragment #DocumentFragment vue 鼠标事件 @cl 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(44)
评论(0)
推荐(0)
摘要:
vue怎样修改标题 <%= htmlWebpackPlugin.options.title %> pages: { index: { // page 的入口 entry: 'src/index/main.js', // 模板来源 template: 'public/index.html', // 在 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(53)
评论(0)
推荐(0)
摘要:
安装 npm install --save qrcode 引入 import QRCode from 'qrcode' ##使用 let opts = { errorCorrectionLevel: "H",//容错级别 type: "image/png",//生成的二维码类型 quality: 0 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(162)
评论(0)
推荐(0)
摘要:
vue3.0 ts 初始模板 <template> <!--Vue2中的html模板中必须要有一对根标签,Vue3组件的html模板中可以没有根标签--> <img alt="Vue logo" src="./assets/logo.png"> <hello-world msg="Welcome t 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(24)
评论(0)
推荐(0)
摘要:
beforeEnter: (to, from, next) => { const name = to.params.name if (name && name !== 'undefined') { next() } else { next({ path: '/Login/userLogin' }) 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(15)
评论(0)
推荐(0)
摘要:
#2、作用域插槽 作用域插槽可以理解为带数据的插槽,因为作用域的限制,子组件在使用的过程中没法访问父组件的值, 修改一下组件,将 user 作为元素的一个 attribute 绑定上去: <span> <slot v-bind:user="user"> {{ user.lastName }} </s 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(41)
评论(0)
推荐(0)
摘要:
#设置打包路径 publicPath: '/' 自定义组件 v-model v-bind只能实现单向绑定 v-model(v-bind+触发的input事件)实现双向绑定 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(11)
评论(0)
推荐(0)
摘要:
Vue axios 请求 vue项目中对axios的封装和API接口管理详解 axios中文文档 vue axios 封装请求 Vue项目中axios请求及API接口的封装 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(12)
评论(0)
推荐(0)
摘要:
文档介绍 https://24kcs.github.io/vue3_study/ 阅读全文
posted @ 2023-02-02 11:02
过好每一天2022
阅读(18)
评论(0)
推荐(0)
摘要:
<template> <div></div> </template> <script> import * as THREE from 'three' import Dexie from 'dexie' import Worker from './model.worker.js' export def 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(15)
评论(0)
推荐(0)
摘要:
// // Boilerplate var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); var 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(591)
评论(0)
推荐(0)
摘要:
#引入模块 import * as Oimo from "oimo"; #创建世界 let world = new Oimo.World({ timestep: 1 / 60, iterations: 8, broadphase: 2, // 1 brute force, 2 sweep and p 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(155)
评论(0)
推荐(0)
摘要:
object.updateWorldMatrix不是函数 ##我的目标是将加载的GLTF对象放在屏幕中央。这是我正在使用的代码: this.gltfLoader.load("/corolla.gltf", (object) => { const box = new THREE.Box3().setF 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(23)
评论(0)
推荐(0)
摘要:
###问题: 我们使用的是 在一个场景内使用两个 视像头,一个正交摄像头,一个透视摄像头 透视相机:渲染人眼正常看到场景面 正交相机:从模型上边渲染的视角:当作小地图 缺点:场景内模型过多,渲染两遍,帧率过低 ###解决方法 a. 一个渲染器:负责渲染 b. 主 scene :有两个相机,透视&&正 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(222)
评论(0)
推荐(0)
摘要:
#问题: 使用线程保存动画JSON数据 1.使用worker进行保存时,变量必须可复制。可以使用 AnimationClip toJSON 转换字符串 方法。 注意: 1.将一个AnimationClip 对象直接通过JSON.stringify( )转换成json对象 后再用 json对象重建An 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(112)
评论(0)
推荐(0)
摘要:
模型居中 const box = new THREE.Box3().setFromObject(object) const size = box.getSize(new THREE.Vector3()).length() const center = box.getCenter(new THREE. 阅读全文
posted @ 2023-02-02 11:01
过好每一天2022
阅读(16)
评论(0)
推荐(0)
摘要:
// fit camera to object var bBox = new THREE.Box3().setFromObject(this.obj); this.obj.updateWorldMatrix(true,true) var height = bBox.size().y; var dis 阅读全文
posted @ 2023-02-02 11:00
过好每一天2022
阅读(17)
评论(0)
推荐(0)