|
|
@@ -32,10 +32,12 @@
|
|
|
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
|
|
|
<el-table :data="state.menuData" v-loading="state.loading" row-key="id"
|
|
|
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }" border>
|
|
|
- <el-table-column label="菜单名称" header-align="center" show-overflow-tooltip>
|
|
|
+ <el-table-column label="菜单名称" header-align="center">
|
|
|
<template #default="scope">
|
|
|
- <SvgIcon :name="scope.row.icon" />
|
|
|
- <span class="ml10">{{ $t(scope.row.title) }}</span>
|
|
|
+ <div style="display: inline-block;">
|
|
|
+ <SvgIcon :name="scope.row.icon" size="12" />
|
|
|
+ <span class="ml10">{{ $t(scope.row.title) }}</span>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="类型" width="70" align="center" show-overflow-tooltip>
|
|
|
@@ -184,3 +186,10 @@ const changeStatus = async (row: any) => {
|
|
|
});
|
|
|
};
|
|
|
</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.el-table .cell.el-tooltip {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+</style>
|