Browse Source

UI布局

hella_online_20240829
wangyufei 4 months ago
parent
commit
ea82f707f3
  1. 2
      src/directives/permission/clientTable.ts
  2. 2
      src/layout/components/useRenderLayout.tsx

2
src/directives/permission/clientTable.ts

@ -13,7 +13,7 @@ export function clientTable(app: App<Element>) {
if(el.children&&el.children.length>1){ if(el.children&&el.children.length>1){
paginationHeight = 70 paginationHeight = 70
} }
const height = window.innerHeight - top - paginationHeight - qustionHeight const height = window.innerHeight - top - paginationHeight - qustionHeight +5
el.style.height = height + 'px' el.style.height = height + 'px'
el.firstChild.style.height = '100%' el.firstChild.style.height = '100%'
}) })

2
src/layout/components/useRenderLayout.tsx

@ -39,7 +39,7 @@ const fixedMenu = computed(() => appStore.getFixedMenu)
// 搜索图片 // 搜索图片
const search = computed(() => appStore.search) const search = computed(() => appStore.search)
const scrollBarHeight = computed(() => { const scrollBarHeight = computed(() => {
return (window.innerHeight - appStore.getCategoryMenuHeight - 85)+'px' return (window.innerHeight - appStore.getCategoryMenuHeight - 35)+'px'
}) })
export const useRenderLayout = () => { export const useRenderLayout = () => {

Loading…
Cancel
Save