mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 06:12:44 +08:00
perf- 添加全局样式
This commit is contained in:
parent
d8a71e8fba
commit
b6c2773e5c
17
src/App.vue
17
src/App.vue
@ -11,19 +11,4 @@
|
||||
console.log('App Hide');
|
||||
});
|
||||
</script>
|
||||
<style lang="scss">
|
||||
:not(not),
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 隐藏scroll-view的滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
-webkit-appearance: none;
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
||||
<style lang="scss"></style>
|
||||
|
14
src/assets/style/main.scss
Normal file
14
src/assets/style/main.scss
Normal file
@ -0,0 +1,14 @@
|
||||
:not(not),
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 隐藏scroll-view的滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
-webkit-appearance: none;
|
||||
background: transparent;
|
||||
}
|
@ -23,6 +23,13 @@ export default defineConfig({
|
||||
cache: false,
|
||||
}),
|
||||
],
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: '@import "@/assets/style/main.scss";',
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': resolve('./src'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user