摘要: 1.template 代码 <a-range-picker v-model:value="conversationTime" style="margin-right: 20px" :disabledDate="disabledDate" @calendarChange="onCalendarChan 阅读全文
posted @ 2024-05-17 10:28 SKa-M 阅读(51) 评论(0) 推荐(0) 编辑
摘要: // 元转万元 const setIsNumer = (num, isToFix = true) => { let result; if (num !== null && !isNaN(parseFloat(num))) { const newNum = parseFloat(parseFloat( 阅读全文
posted @ 2024-05-08 10:36 SKa-M 阅读(1) 评论(0) 推荐(0) 编辑
摘要: const isFullScreen = ref(false) //全屏 const fullScrenn = () => { let element = document.documentElement if (element.requestFullscreen) { element.reques 阅读全文
posted @ 2024-03-20 14:53 SKa-M 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2024-03-01 16:25 SKa-M 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 1.使用 npm 或者 yarn安装 @types/node 包就可以了 npm i @types/node -D yarn add @types/node -D 阅读全文
posted @ 2024-03-01 16:17 SKa-M 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2024-02-26 10:43 SKa-M 阅读(1759) 评论(0) 推荐(0) 编辑
摘要: 1.项目名称: ××低代码BI 大屏平台 2.技术栈: vue3+antd-vue+pinia+echarts+antv+vuedraggable 3.项目描述:项目核心是用户通过拖拽平台所有配置的图表、组件以及流媒体等来快速生成一个展示信息的大屏。每一个拖拽组件都有数据、样式以及位置的配置,配置保 阅读全文
posted @ 2024-02-18 11:43 SKa-M 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 方式一 1.封装方法 export const download =(res,type, filename)//创建blob对象,解析流数据 const blob =new Blob([res.data],{ // type:'application/pdf;charset=UTF-8’表示下载文档 阅读全文
posted @ 2024-02-04 10:58 SKa-M 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1.组件 <template> <img :src="srcImg ? srcImg : defaultImage ? getDefaultImage : ''" v-bind="{ ...otheAttribute }" alt="" /> </template> <script> import 阅读全文
posted @ 2024-01-18 17:19 SKa-M 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.组件 <script lang="tsx"> import type { PropType } from 'vue'; import { type InputProps, Input } from 'ant-design-vue'; import { EyeInvisibleOutlined, 阅读全文
posted @ 2024-01-18 17:07 SKa-M 阅读(207) 评论(0) 推荐(0) 编辑