摘要:
1.方法一(pinia-plugin-persistedstate) 1.安装插件-pinia-plugin-persistedstate yarn add pinia-plugin-persistedstate npm i pinia-plugin-persistedstate 2.在 pinia 阅读全文
摘要:
1.template 代码 <a-range-picker v-model:value="conversationTime" style="margin-right: 20px" :disabledDate="disabledDate" @calendarChange="onCalendarChan 阅读全文
摘要:
// 元转万元 const setIsNumer = (num, isToFix = true) => { let result; if (num !== null && !isNaN(parseFloat(num))) { const newNum = parseFloat(parseFloat( 阅读全文
摘要:
const isFullScreen = ref(false) //全屏 const fullScrenn = () => { let element = document.documentElement if (element.requestFullscreen) { element.reques 阅读全文
摘要:
1.封装 echarts 组件 1.安装 echarts 所需 npm 包,如下。 npm i echarts@5.4.3 npm i echarts-liquidfill@3.1.0 //社区图等 npm i @vueuse/core@10.7.1 //一些好用的hook 2.封装 echarts 阅读全文
摘要:
1.使用 npm 或者 yarn安装 @types/node 包就可以了 npm i @types/node -D yarn add @types/node -D 阅读全文
摘要:
1.使用vue-pdf-embed 1.npm 安装所需插件 npm i vue-pdf-embed@1.2.1 npm i vue3-pdfjs@0.1.6 2.封装组件(创建pdfPriview.index 文件) <template> <div class="pdf-preview"> <vu 阅读全文
摘要:
1.项目名称: ××低代码BI 大屏平台 2.技术栈: vue3+antd-vue+pinia+echarts+antv+vuedraggable 3.项目描述:项目核心是用户通过拖拽平台所有配置的图表、组件以及流媒体等来快速生成一个展示信息的大屏。每一个拖拽组件都有数据、样式以及位置的配置,配置保 阅读全文
摘要:
方式一 1.封装方法 export const download =(res,type, filename)//创建blob对象,解析流数据 const blob =new Blob([res.data],{ // type:'application/pdf;charset=UTF-8’表示下载文档 阅读全文
摘要:
1.组件 <template> <img :src="srcImg ? srcImg : defaultImage ? getDefaultImage : ''" v-bind="{ ...otheAttribute }" alt="" /> </template> <script> import 阅读全文