摘要: <template> <div id="container"></div> </template> <script> import * as THREE from 'three' import { OrbitControls } from 'three/examples/jsm/controls/O 阅读全文
posted @ 2024-01-04 16:52 QinHaoRan 阅读(313) 评论(0) 推荐(0)
摘要: 直接贴进去就可以用。 <template> <div id="container"></div> </template> <script> //引入three import * as THREE from 'three' //引入控制器 import { OrbitControls } from ' 阅读全文
posted @ 2024-01-04 11:47 QinHaoRan 阅读(137) 评论(0) 推荐(0)
摘要: 环境:vue3+ts 解决办法:在src目录里面添加env.d.ts文件,在文件里贴上 declare module '*.vue' { import type { DefineComponent } from 'vue' const component: ComponentOptions | Co 阅读全文
posted @ 2023-08-24 14:30 QinHaoRan 阅读(422) 评论(1) 推荐(0)
摘要: page-break-inside: avoid page-break-inside可以使用的属性 auto 默认。如果必要则在元素内部插入分页符。 avoid 避免在元素内部插入分页符。 inherit 规定应该从父元素继承 page-break-inside 属性的设置。 阅读全文
posted @ 2023-08-18 09:18 QinHaoRan 阅读(104) 评论(0) 推荐(0)
摘要: main.js 引入样式 import 'dhtmlx-gantt/codebase/dhtmlxgantt.css' 父组件: gangtData,数据 <ganttChart v-if="value8" :gangtData="gangtData" /> 子组件: <template> <div 阅读全文
posted @ 2023-07-13 16:04 QinHaoRan 阅读(236) 评论(0) 推荐(0)
摘要: { title: '误差下限', key: 'yLowerLimitError', align: 'center', minWidth: 100, render: (h, params) => { return h('Input', { props: { value: this.sonTheData 阅读全文
posted @ 2023-06-29 11:50 QinHaoRan 阅读(118) 评论(0) 推荐(0)
摘要: npm install vue-quill-editor main中 // 富文本 import VueQuillEditor from "vue-quill-editor"; import "quill/dist/quill.core.css"; import "quill/dist/quill. 阅读全文
posted @ 2023-04-27 10:55 QinHaoRan 阅读(55) 评论(0) 推荐(0)
摘要: cnpm install html2canvas;cnpm install jspdf --save; <el-button @click="getPdf('print', 'aa')" icon="el-icon-refresh" size="mini"> 打印PNG </el-button> < 阅读全文
posted @ 2023-02-13 17:05 QinHaoRan 阅读(344) 评论(0) 推荐(0)
摘要: 先下载一个库 , npm i uuid或者 npm i nanoid 在使用页面引入 import { nanoid } from 'nanoid' 然后直接nanoid()调用 阅读全文
posted @ 2023-02-13 16:53 QinHaoRan 阅读(369) 评论(0) 推荐(0)
摘要: 先下载依赖 npm install html2canvas <el-button @click="getPdf('print', 'aa')" icon="el-icon-refresh" size="mini"> 打印JPG </el-button> <div id="print"> <内容> < 阅读全文
posted @ 2023-02-13 16:53 QinHaoRan 阅读(195) 评论(0) 推荐(0)