报错是这样的: Unknown custom element: <el-empty> - did you register the component correctly? For recursive compone 如下图: 报错原因: “el-empty”未注册 解决:element版本太低了,当前版本里面查找不到el-enpty这个组件,需要重新安装一下element的版本。 npm i element-ui@2.15.6 -S npm i element-u...
}/* 背景色重置 */.table-box.el-table,.table-box.el-tableth,.table-box.el-tabletr{background-color: transparent; }/* 字体颜色重置 */.table-box.el-table,.table-box.el-tablethead,.table-box.el-table__empty-text{color:rgba(255,255,255,0.75); }/* 斑马样式重置 */.table-box.el-ta...
空状态 <!-- 空状态 --><el-empty v-else style="text-align: center; width: 100%" :image-size="200" description="暂无数据" ></el-empty> 加载 v-loading="loading"loading:true,this.loading=false;showLoad() { this.load = this.$loading({ text: "加载中…" }); },hideLoad() { thi...
--展示无数据信息--><el-emptyv-show="stateCode === 4":image-size="200"></el-empty></template>exportdefault{ name:'MyList', components: { }, data() {return{ stateCode:0, users: [], errorMsg:'', } }, methods: { handleUpdateUsers(stateOfRequest) {this.stateCode=stateOfRequest....
86 import { ElEmpty } from './empty' 87 import { ElSpinner } from './spinner' 88 import { ElDescriptions } from './descriptions' 89 import { ElDescriptionsItem } from './descriptions-item' 90 import { ElResult } from './result' 91 import { ElStatistic } from './statistic...
.el-table .el-table__body td .cell:empty::after, .el-table .el-table__body td .cell > span:empty::after, .el-table .el-table__body td .cell .approval:empty::after, .el-table .el-table__body td .cell div:empty::after, ...
<el-row class="desc-row" ref='elRow'> <slot/> </el-row> </template> export default { name: 'EDesc', // 通过provide提供给子组件 provide () { return { labelWidth: this.labelWidth, column: this.column, size: this.size
empty-text="人家没有数据哦~~" class="table" > //... </el-table> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 效果 2.添加图片修改文字等 <el-table :data="dataList" size="medium" border @selection-change="selectionChangeHandle" ...
<el-table v-if="rerenderTable"> ... </el-table> ... this.rerenderTable = false this.$...
<el-table v-if="rerenderTable"> ... </el-table> ... this.rerenderTable = false this.$...