element
付月半子
月亮很亮,亮也没用,没用也亮。
展开
-
element-tree 封装懒加载树【默认展开前几层节点】
<template> <div id="commonTree"> <el-input class="inputFilterClass float_l" @input="changeInput" maxlength="15" placeholder="输入关键字进行过滤" size="mini" v-model="filterText" > </el-i.原创 2021-11-01 10:31:20 · 1068 阅读 · 0 评论 -
vue+element+sortablejs实现表格列的拖拽
1. css: dragTable.css@charset "UTF-8";.w-table{ height: 100%; width: 100%; float: left;}/* 拖动过程中,鼠标显示样式 */.w-table_moving .el-table th .thead-cell{ cursor: move !important;}.w-table_moving .el-table__fixed{ cursor: not-allowed;}.w-..原创 2021-09-13 11:09:48 · 1250 阅读 · 0 评论 -
element-ui的el-table动态修改表格展示列,table高度变小问题
转载:https://blog.csdn.net/weixin_43915587/article/details/115522396解决办法:在更新表格数据后对el-table进行重载this.$nextTick(() => { this.$refs.tableName.doLayout(); // el-table添加ref="tableName" });转载 2021-09-06 14:34:21 · 1423 阅读 · 1 评论 -
vue element 下拉框内容过长显示...鼠标悬浮显示全部
1.1. css 多选下拉框内容过长-用...代替/*下拉选择框-多选-内容过长-用...代替 begin */.el-tag.el-tag--info { background-color: #f4f4f5; border-color: #e9e9eb; color: #909399; max-width: calc(100% - 50px); /* white-space: nowrap; tex...原创 2021-09-06 14:00:24 · 6724 阅读 · 1 评论 -
vue element tree自定义树。内容过长显示...鼠标悬浮显示全部
css/*树悬浮框: 名字过长则显示...*/.span-ellipsis { width: calc(100% - 4px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: auto; padding: 4px 2px; border-radius: 4px;}应用<el-tree :data="Datas" :props="defaultProps原创 2021-09-01 15:05:29 · 4753 阅读 · 0 评论 -
element-vue
el-table:1.列格式化formatTime: function (row, column) { let date = row[column.property]; if (date == undefined) { return ""; } return date?moment(new Date(date)).format('YYYY-MM-DD HH:MM:SS'):'';},2.改变某列颜色(包括文字过长显示...的颜色)<原创 2021-08-31 11:24:43 · 115 阅读 · 0 评论