vue
42772400
这个作者很懒,什么都没留下…
展开
-
vue实现网页截图并下载图片
vue截屏转载 2022-08-18 14:21:23 · 897 阅读 · 0 评论 -
Vue+iview 给table 单个格子添加底色
<style>.ivu-table .demo-table-info-cell-name { background-color: #15630e; color: #fff;}.ivu-table .demo-table-info-cell-age { background-color: #15630e; color: #fff;}.ivu-table .demo-table-info-cell-address { background-color原创 2022-04-14 10:11:50 · 1096 阅读 · 0 评论 -
vue页面添加水印
新建js:watermark.jslet watermark = {}let setWatermark = (text, sourceBody) => { let id = Math.random() * 10000 + '-' + Math.random() * 10000 + '/' + Math.random() * 10000 if (document.getElementById(id) !== null) { document.body.removeChild(do原创 2022-04-01 18:07:17 · 630 阅读 · 0 评论 -
Vue 给按键配置权限角色
import directive from './directives'import permisson from './permisson'const importDirective = Vue => { /** * 拖拽指令 v-draggable="options" * options = { * trigger: /这里传入作为拖拽触发器的CSS选择器/, * body: /这里传入需要移动容器的CSS选择器/, * recover: /拖动原创 2021-12-13 10:35:21 · 526 阅读 · 0 评论 -
vue中的按键修饰符
常用的按键码的别名:1、 .enter (回车键)2、 .tab3、.delete (捕获”删除“和”退格“键)4、 .esc (退出键)5、 .space (空格键)6、 . up7、 .dowm8、 .left9、 .right (右箭头)可以通过 Vue.config.keyCodes.f2=113 自定义按键修饰符 f2 是自定义的名称 ,113是键盘对应的码值有一些按键 (.esc 以及所有的方向键) 在 IE9 中有不同的 key 值, 如原创 2020-08-13 11:32:07 · 1571 阅读 · 0 评论 -
vue添加空格,及view2中写form表单时,在label里添加空格
1、 在vue中添加空格<template><Row> <Col span="6"> <FormItem :label="label_test" :label-width="110"> {{lentity.people}} </FormItem> </Col></Row></template> <原创 2020-06-05 10:58:56 · 7972 阅读 · 0 评论 -
浏览器下载从数据库中取出数据导出的Excel文件
Java后端:**import io.micrometer.core.lang.NonNull;import org.apache.poi.hssf.usermodel.HSSFWorkbook;import org.apache.poi.ss.usermodel.Cell;import org.apache.poi.ss.usermodel.Row;import org.apache.poi.ss.usermodel.Sheet;import org.apache.poi.ss.usermod原创 2020-05-22 20:37:24 · 210 阅读 · 0 评论 -
vue项目中实现下载后端返回的excel数据表格
后端java代码:** * 导出失败数据excel */@Overridepublic void exportFailExcel(BlackListUpload blackListUpload) { log.info("下载失败导入失败的数据{}", blackListUpload); String blackListUploadId = blackListUpload.getId(); HashMap<String, Object> queryMap = ne转载 2020-05-22 19:50:09 · 971 阅读 · 0 评论 -
js中的getDate() getMonth() getFullYear()方法;js如何获取当前日期/年月日
js中的getDate() getMonth() getFullYear()方法getDate() 方法可返回月份的某一天,返回值是 1 ~ 31 之间的一个整数。例子1:var d = new Date() document.write(d.getDate())输出:17例子2:我们定义一个带有具体日期的变量,并输出变量中月份的天:var birthday = new Date(“S...转载 2020-05-07 14:23:11 · 1964 阅读 · 0 评论 -
子组件使用this.$emit()向父组件传值
子组件使用this.$emit()向父组件传值首先必须在父组件中引用子组件,然后实现传值第一步 在父组件中引入子组件使用import引入组件import indexImportOrder from ‘./components/indexImportOrder’声明//定义组件components:{indexImportOrder,},使用第二步 子组件向父组件传值1.&...转载 2020-03-25 11:02:54 · 574 阅读 · 0 评论