Skip to content

Commit

Permalink
fix(projects): fix scrollbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 15, 2023
1 parent 0867f4b commit cadf2e8
Show file tree
Hide file tree
Showing 21 changed files with 120 additions and 226 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"cross-env": "7.0.3",
"eslint-config-sa": "workspace:*",
"npm-run-all": "4.1.5",
"sass": "^1.69.5",
"simple-git-hooks": "2.9.0",
"typescript": "5.2.2",
"unocss-preset-scrollbar": "0.3.0",
"unplugin-icons": "0.17.3",
"unplugin-vue-components": "0.25.2",
"vite": "4.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/materials/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AdminLayout from './libs/admin-layout';
import AdminLayout, { LAYOUT_SCROLL_EL_ID, LAYOUT_MAX_Z_INDEX } from './libs/admin-layout';
import PageTab from './libs/page-tab';
import SimpleScrollbar from './libs/simple-scrollbar';
import ColorPicker from './libs/color-picker';

export { AdminLayout, PageTab, SimpleScrollbar, ColorPicker };
export { AdminLayout, LAYOUT_SCROLL_EL_ID, LAYOUT_MAX_Z_INDEX, PageTab, SimpleScrollbar, ColorPicker };
export * from './types';
2 changes: 2 additions & 0 deletions packages/materials/src/libs/admin-layout/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import AdminLayout from './index.vue';
import { LAYOUT_SCROLL_EL_ID, LAYOUT_MAX_Z_INDEX } from './shared';

export default AdminLayout;
export { LAYOUT_SCROLL_EL_ID, LAYOUT_MAX_Z_INDEX };
8 changes: 5 additions & 3 deletions packages/materials/src/libs/simple-scrollbar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ defineOptions({
</script>

<template>
<Simplebar class="h-full">
<slot />
</Simplebar>
<div class="flex-1-hidden h-full">
<Simplebar class="h-full">
<slot />
</Simplebar>
</div>
</template>

<style scoped></style>
Loading

0 comments on commit cadf2e8

Please sign in to comment.