Skip to content

Commit

Permalink
feat: 角色权限demo高度自动初始化时计算
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 22, 2022
1 parent eb0aaab commit ebedfb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/locales/lang/en/menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"编辑器": "Editor",
"表格": "Table",
"自定义表单": "Custom Form",
"数字动画": "Digital Animation"
"数字动画": "Digital Animation",
"角色权限": "Role Permission"
}
3 changes: 2 additions & 1 deletion src/views/rolePermissions/components/group/group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:print="false"
:export-menu="[]"
show-overflow
height="800px"
:height="height"
me-class="group"
@current-change="groupChange"
@add="showAddOrEditor()"
Expand Down Expand Up @@ -47,6 +47,7 @@ import { omit } from 'lodash-es';
const emit = defineEmits({
currentChange: (row: string[]) => true,
});
const height = Math.max(window.innerHeight - 180, 600);
const showAdd = ref(false);
const groupRef = ref<MeVxeTableInstance>();
const group = groupListApi();
Expand Down
3 changes: 2 additions & 1 deletion src/views/rolePermissions/components/menu/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:row-config="{ keyField: 'rule', useKey: true }"
align="center"
border="full"
height="800px"
:height="height"
show-overflow
@refresh="getMenu"
@quick-search="search"
Expand Down Expand Up @@ -68,6 +68,7 @@ const props = defineProps({
},
});
const emit = defineEmits(['subRules']);
const height = Math.max(window.innerHeight - 180, 600);
const showAdd = ref(false);
const menuRef = ref<MeVxeTableInstance>();
const menu = menuListApi();
Expand Down

0 comments on commit ebedfb3

Please sign in to comment.