1.先来看下table内empty-text的含义 2.
<el-table :data="tableData" ...
你误解了empty-text的作用,empty-text是表格源数据为空时显示的内容是这种效果。至于想实现你的需求也有很多种方式,比如这样 <el-table-column> <template slot-scope="{row}"> {{ row.name || '暂无' }} </template> </el-table-column>有用3 回复 面对疾风吧: 谢谢,是我理解错了 回复2018-07-17 ...
是data为空时,显示empty-text。ElementUI table源码 <div v-if="!data || data.length === 0" class="el-table__empty-block" ref="emptyBlock" :style="{ width: bodyWidth }"> <span class="el-table__empty-text"> <slot name="empty">{{ emptyText || t('el.table.emptyText') }}</s...
element table为空 提示字体修改 elementui table默认选中行,这个需求,先是其他同事在做。在他的基础上我来改。思路比较混乱。浪费了一天半才解决。需求:点击,左边勾选之后。右边的输入框内的值变成30(只针对当前行生效)默认不填的话。值是null然后我还加了个功能,在
<el-table-column prop="address" label="地址" :formatter="formatter"> </el-table-column> <el-table-column prop="tag" label="标签" width="100" :filters="[{ text: '家', value: '家' }, { text: '公司', value: '公司' }]" ...
<!--样式--><stylelang='scss'scoped>.my-table{:deep() .el-table__empty-text { margin-top: 1rem;line-height:25px;text-align:left;width:calc(100% - 20px);}:deep() .el-empty{padding-top:0;}}</style> 水平有限,对vnode这玩意一知半解 (学不动了)...
Element UI version 2.4.6 OS/Browsers version windows7 ie11.0.49 Vue version 2.5.17 Reproduction Link https://s.codepen.io/cnjs/debug/VGYVPY/WPkLYNZeVXOM Steps to reproduce Open your ie browser. The reason is the commit: #11965, and align...
目前需求是这样的,正在获取数据时,会更改为emptyText=‘正在加载...’,最好支持icon,类似input里的icon属性 QingWei-Li added the type: feature request label Dec 14, 2016 QingWei-Li added a commit to QingWei-Li/element that referenced this issue Dec 14, 2016 Table: add slot, closed ElemeFE...
empty-text="config.emptyText":default-expand-all="config.defaultExpandAll":expand-row-keys="config.expandRowKeys":default-sort="config.defaultSort":tooltip-effect="config.tooltipEffect":show-summary="config.showSummary":sum-text="config.sumText":summary-method="config.summaryMethod":span-method=...