vue实现毛玻璃背景墙组件

Vue封装的毛玻璃背景墙效果组件效果代码<!--背景墙--> <template> <div class="user-info"> <img :src="head_img" class="blur"> <!--用户头像--> <div cl...

Vue,CSS 2020-07-11 PM 801次 0条

vue配合django实现导出excel功能

前端代码// 导出excel analysisExportExcel() { this.exportExcelLoading = true; designOpera({ opera_type: "analysis_export_excel", wjId: this.wjId }).then(dat...

Python,Vue 2020-06-24 PM 830次 0条

vue用递归嵌套表格实现复杂报表

有时候需要实现一些复杂的报表,用合并单元格的方式实现比较复杂,可以使用嵌套表格的方式实现。效果代码<template> <div class="comp-dfs-table"> <table cellspacing="0" cellpadding="0"> <tr v...

Vue,CSS 2020-06-15 AM 794次 0条

问卷喵问卷调查系统部署教程

项目简介问卷喵是使用vue和django开发的问卷调查网站。Github项目地址:https://github.com/shanghaobo/wjcat-release示例环境服务器:ubuntu16.01.4Python:3.5Django:2.0uwsgi:2.0.17.1nginx:1.10.3部署教程部署架构采用uwsgi+nginx,部署步骤如下:安装uwsgisudo apt-g...

Python,Linux,部署 2020-06-09 PM 881次 0条

vue子组件给父组件传参,父组件添加自定义参数问题

很多时候用$emit携带参数传出事件,并且又需要在父组件中使用自定义参数时,这时我们就无法接受到子组件传出的参数了。找到了两种方法可以同时添加自定义参数的方法。单个参数// 子组件 this.$emit('test',this.param) // 父组件 @test='test($event,userDefined)'多个参数// 子组件 this.$emit('test',this.par...

Vue 2020-06-03 PM 888次 1条

Vue笔记

Vue自定义配置项config.jsexport default{ a:1, b:2 }component.vue<template> <div> {{config.a}} {{config.b}} </div> </template> <script> import conf...

Vue 2020-06-03 PM 725次 0条

Vue根据组件名动态加载组件

Vue根据组件名动态加载组件Demo<component :is="comp"></component>data() { return { comp: () => import("./Test.vue") }; }封装的槽组件<template> <div> ...

Vue 2020-06-03 AM 658次 0条

Vue封装Vant选择器组件

由于Vant原生的选择器组件只支持值列表的数据,而不支持键值对列表的数据,并且使用较为麻烦,于是对Vant的选择器组件进行了封装。封装组件代码<template> <!-- 封装vant的选择器 --> <div> <van-field readonly clickable name="p...

Vue 2020-05-26 AM 1232次 1条