2020年6月15日

17定义局部过滤器

摘要: <el-tag :type="scope.row.hxTag | formatType">{{ scope.row.hxTag }}</el-tag> filters: { formatType(value) { const tags = [ { text: "单质", type: "" }, { 阅读全文

posted @ 2020-06-15 21:53 章画 阅读(157) 评论(0) 推荐(0) 编辑

16定义全局过滤器

摘要: 1.定义全局过滤器 // 定义全局过滤器 import moment from "moment"; const vFilter = { // 2019-09-18T13:48:56.133Z String类型和date时间Object类型都可以 转为2018-11-16 10:55:58 //使用: 阅读全文

posted @ 2020-06-15 21:52 章画 阅读(184) 评论(0) 推荐(0) 编辑

15 自定义分页pagination全局组件

摘要: 1.Pagination.vue <template> <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" background :current-page="paginationD 阅读全文

posted @ 2020-06-15 21:05 章画 阅读(529) 评论(0) 推荐(0) 编辑

14 el-dialog 基本结构

摘要: 1 dialogVisible父组件提供,:visible.sync直接修改父组件的dialogVisible,会报错,需要加上before-close属性 <template> <el-dialog title="提示" :visible.sync="dialogVisible" width="3 阅读全文

posted @ 2020-06-15 10:56 章画 阅读(372) 评论(0) 推荐(0) 编辑

导航