随笔分类 -  vue

摘要:<template> <div> <el-form :model="formData" ref="refFormData" label-width="180px"> <el-form-item label="景点" prop="location_id"> <el-select v-model="fo 阅读全文
posted @ 2024-07-03 15:38 夏小夏吖 阅读(1096) 评论(0) 推荐(0) 编辑
摘要:第一步 引入vue-pdf npm install --save vue-pdf 第二步 页面中使用 <template> <div> <button @click="open">打开PDF</button> <el-dialog title="PDf预览" :visible.sync="dialo 阅读全文
posted @ 2024-06-12 10:07 夏小夏吖 阅读(1538) 评论(1) 推荐(1) 编辑
摘要:一、效果如下: 二、直接上代码 上一篇已经说过左侧分类,右侧数据对齐的方法,如果需要移步上篇, 此篇主要是纵向滚动条功能,代码如下: dataZoom: [ { type: "slider", realtime: true, // 拖动时,是否实时更新系列的视图 startValue: 0, end 阅读全文
posted @ 2023-07-23 16:54 夏小夏吖 阅读(6018) 评论(0) 推荐(1) 编辑
摘要:一、效果图如下: 二、直接上代码 yAxis: [ {//左侧name分类 inverse: true, //如果数据数组倒置排序,加上此代码 data:categories1, axisLabel: { fontSize: 16, color: '#fff' }, axisLine:{ show: 阅读全文
posted @ 2023-07-23 16:46 夏小夏吖 阅读(2178) 评论(0) 推荐(0) 编辑
摘要:一、效果如图: 二、直接上代码 yAxis: { inverse: true, //如果数据数组倒置排序,加上此代码 data: categories1, offset: 0, axisLabel: { fontSize: 18, color: "#5DB3DC", margin: 130, // 阅读全文
posted @ 2023-07-23 16:41 夏小夏吖 阅读(2774) 评论(0) 推荐(0) 编辑
摘要:cdn形式html页面实现 在进行开发这个功能的时候,进行了百度,最后参考此博主的文章中的自定义版本,进行修改:https://blog.csdn.net/qq_25252769/article/details/127791918 开发过程中,由于后台数据返回的格式需要进行处理,根据自身需求,代码进 阅读全文
posted @ 2023-04-13 10:58 夏小夏吖 阅读(2028) 评论(0) 推荐(1) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue axios 渲染数据</title> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></scr 阅读全文
posted @ 2023-03-28 15:51 夏小夏吖 阅读(397) 评论(0) 推荐(0) 编辑
摘要:用watch监听某个一个数组数据,获取其length时,提示Object is possibly ‘null‘ .具体如下: 解决方法如下:就是加null的判断 typescript 提示 Object is possibly ‘null‘ 的N种解决方法 解决方案一 最正确的解决方案,就是加nul 阅读全文
posted @ 2023-03-23 15:24 夏小夏吖 阅读(423) 评论(0) 推荐(0) 编辑
摘要:首先项目集成以下两个依赖: vue-quill-editor:https://www.jianshu.com/p/8eb2bb78b641 vue-better-table:https://blog.csdn.net/sinat_27746197/article/details/105952089 阅读全文
posted @ 2021-10-22 17:25 夏小夏吖 阅读(6204) 评论(8) 推荐(1) 编辑
摘要://解决返回不刷新问题 window.onpageshow = null; window.onpageshow = function(event){ location.reload() } //跳转后的页面 window.location.href=response.data.url 阅读全文
posted @ 2021-05-10 09:30 夏小夏吖 阅读(1490) 评论(0) 推荐(0) 编辑
摘要:<template v-if="newPatient"> <div class='index'> 内容 </div> </template> <style> html,body { height: 100vh; overflow-x: hidden; overflow-y: hidden; } .i 阅读全文
posted @ 2021-04-28 18:26 夏小夏吖 阅读(752) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="content"> <div class="demo"> <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign"> <div class="f 阅读全文
posted @ 2021-04-26 15:01 夏小夏吖 阅读(337) 评论(0) 推荐(0) 编辑
摘要:1、第一步:npm i vant -S2、第二步: 安装 babel-plugin-import 插件,babel-plugin-import 是一款 babel 插件,它会在编译过程中将 import 的写法自动转换为按需引入的方式npm i babel-plugin-import -D3、第三步 阅读全文
posted @ 2021-04-25 16:22 夏小夏吖 阅读(586) 评论(0) 推荐(0) 编辑
摘要:如何动态修改伪元素样式? 1.css中如何用变量 声明css变量的时候,变量名前面要加两根连词线(–)。变量名大小写敏感,–header-color和–Header-Color是两个不同变量。var()函数用于读取变量。var()函数还可以使用第二个参数,表示变量的默认值。如果该变量不存在,就会使用 阅读全文
posted @ 2021-04-20 14:45 夏小夏吖 阅读(3663) 评论(0) 推荐(0) 编辑
摘要:下载链接:进度条——https://i.cnblogs.com/files 阅读全文
posted @ 2021-04-09 14:20 夏小夏吖 阅读(288) 评论(0) 推荐(0) 编辑
摘要:一、axios跨域请求解决 参考地址:https://blog.csdn.net/srttina/article/details/83309 自己最终配置成功代码如下: 1、下载axios依赖,在main.js中引入,添加公共引用接口地址Host npm i axios --save import 阅读全文
posted @ 2021-04-09 10:49 夏小夏吖 阅读(3686) 评论(0) 推荐(1) 编辑
摘要:https://www.cnblogs.com/sdcs/p/9104474.html 阅读全文
posted @ 2020-12-10 15:56 夏小夏吖 阅读(798) 评论(1) 推荐(1) 编辑
摘要:1、vconsole.min.js 下载(可百度下载依赖:https://jingyan.baidu.com/article/aa6a2c14ba16c60d4d19c45e.html) 2、在main.js中引入 阅读全文
posted @ 2020-11-16 17:48 夏小夏吖 阅读(1762) 评论(0) 推荐(0) 编辑
摘要:在mounted中加入以下代码即可。 mounted () { this.$nextTick(()=>{ //首页跳转至门诊或者商城返回 IOS不兼容页面自动刷新问题 var u = navigator.userAgent, app = navigator.appVersion; var isAnd 阅读全文
posted @ 2020-11-16 15:28 夏小夏吖 阅读(633) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示