10 2021 档案
摘要:把封装组件的id换成ref就可以在同一个页面多次使用 组件在页面中使用 引用 import marquee from "@/components/marquee/index"; 注册 components:{ marquee }, 使用 <marquee :val="TI_info"></marqu
阅读全文
摘要:效果 代码编写 <template> <div> <div class="itemTableBox"> <div class="TItemUL" :class="{'animate-up': animateUp}" @mouseenter="Stop()" @mouseleave="Up()"> <
阅读全文
摘要:第一步下载 npm install v-viewer --save 第二步,在页面中引入(我这里是直接将下载下来的文件从node_modules提取出来了,在assets) import Viewer from "@/assets/js/viewer.min.js"; import '@/asset
阅读全文
摘要:/** * @param {Array} tableData2 要处理的数组 [{id:1,name:'小二',age:18},{id:1,name:'小二',age:16},{id:1,name:'小二',age:18}] * @param {string} key 要匹配的键 age * @re
阅读全文
摘要:效果 代码 <template> <div> <el-table :data="tableData" style="width: 100%"> <el-table-column v-for="col in cols" :key="col.label" :prop="col.prop" :label=
阅读全文
摘要:ref版本,可以在页面中多次使用 <template> <div ref="marqueeWrap" class="marquee-wrap"> <!-- 文本超出滚动显示 --> <div ref="scroll" class="scroll"> <p class="marquee">{{text
阅读全文
摘要:// 模型引入obj模型引入 import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js'; // 模型引入obj模型的纹理引入 import { MTLLoader } from 'three/examples/jsm/lo
阅读全文
摘要:一、首先第一步就是下载 npm install three 二、引入(引入在页面中引入就行),在哪里用就在那里引入,不用全局引入 import * as THREE from 'three' // 引入fbx模型加载库FBXLoader import {FBXLoader} from 'three/
阅读全文
摘要:同一文件夹下.vue文件与,.js文件不要重名,否则页面内容会丢失 ps:使用vue-admin-template中遇到的问题,(也不确定不是同一文件夹下能不能同名)
阅读全文