文章分类 -  elementui

摘要://上传图片前的图片验证回调 beforeAvatarUpload(file) { //图片格式 const isJPG = file.type 'image/jpg' || file.type 'image/png'; //图片大小 const isLt2M = file.size / 1024 阅读全文
posted @ 2020-08-19 11:30 小蓉儿 阅读(971) 评论(0) 推荐(1) 编辑
摘要:html部分: css部分: 阅读全文
posted @ 2019-10-22 09:24 小蓉儿 阅读(1121) 评论(0) 推荐(0) 编辑
摘要:css代码如下: 阅读全文
posted @ 2019-10-21 08:45 小蓉儿 阅读(895) 评论(0) 推荐(0) 编辑
摘要:结束日期只能选择开始日期之后的时间,开始日期只能选择结束日期之前的 pickerBeginDateBefore: { disabledDate: (time) => { const beginDateVal = new Date(this.ruleForm.endDate).getTime() if 阅读全文
posted @ 2019-10-15 10:29 小蓉儿 阅读(2047) 评论(0) 推荐(0) 编辑
摘要:第一种:https://www.cnblogs.com/xiaoxiaossrs/p/9155800.html 第二种:省份 城市 分为两个下拉 https://blog.csdn.net/qq_32113629/article/details/79536177 https://github.com 阅读全文
posted @ 2018-10-18 09:35 小蓉儿 阅读(182) 评论(0) 推荐(0) 编辑
摘要:直接写style注意不要加scoped,然后用一个组件最外层的class包裹住,就不会改到所有的组件的样式了 阅读全文
posted @ 2018-08-06 10:12 小蓉儿 阅读(648) 评论(0) 推荐(0) 编辑
摘要://elementui 2.x 版本的写法html部分 方法 //设置表格第一行的颜色 getRowClass({ row, column, rowIndex, columnIndex }) { if (rowIndex == 0) { return 'background:yellow' } else { return '' } ... 阅读全文
posted @ 2018-08-03 13:09 小蓉儿 阅读(669) 评论(0) 推荐(0) 编辑
摘要:<script>import * as index from "@/api/index";export default { data() { return { list: [], milkEntryTradeData5value:[], //交易数据-供方类型 milkEntryTradeData6 阅读全文
posted @ 2018-07-30 10:41 小蓉儿 阅读(506) 评论(0) 推荐(0) 编辑
摘要:1.安装echarts依赖 2.或者使用国内的淘宝镜像: 3.创建图表 .全局引入main.js .eharts.vue 注意: 这里echarts初始化应在钩子函数mounted()中,这个钩子函数是在el 被新创建的 vm.$el 替换,并挂载到实例上去之后调用 4.多条图表渲染的问题 阅读全文
posted @ 2018-07-24 14:03 小蓉儿 阅读(238) 评论(0) 推荐(0) 编辑
摘要:checkbox 通过每个label 可以默认勾选 示例如下: 阅读全文
posted @ 2018-07-16 15:42 小蓉儿 阅读(3118) 评论(0) 推荐(0) 编辑

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