![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
element ui
vileman
这个作者很懒,什么都没留下…
展开
-
结合Element UI设置全局右键table导出excel等功能(欢迎指教)
第一步:设置Element UI的tableimport { tableMethod} from '@/libs/mixins'ELEMENT.TableColumn.props.align.default = 'center'// table右键事件// 表头数据Vue.set(ELEMENT.Table.props, 'tableHeadForExport', { type: Array, default: []})// 获取表格全部数据的方法Vue.s原创 2021-07-19 11:51:44 · 343 阅读 · 0 评论 -
Element UI 修改this.$message.warning和this.$message.error的全局默认配置
1.创建util.js,内容为(在element ui源码上面进行修改)import Vue from 'vue'import ElementUI from 'element-ui';['success', 'warning', 'info', 'error'].forEach(type => { ElementUI.Message[type] = options => { if (typeof options === 'string') {原创 2021-03-04 10:08:10 · 6885 阅读 · 3 评论