This commit is contained in:
Andy Leong 2024-01-04 13:44:33 +08:00
parent fab1b96137
commit 7905cb5fb7
3 changed files with 6 additions and 2 deletions

View File

@ -32,11 +32,13 @@ const show = (event) => {
@include pos(100%, 100%, 0px, 0px);
background-color: rgb(223, 15, 60);
overflow: hidden;
max-width: 100%;
.load-bg {
@include pos(750px, 100%, 0px, 50%);
transform: translateY(-50%);
}
.load-container {
@include pos(750px, 100%, 0px, 50%);
transform: translateY(-50%);
@ -46,6 +48,7 @@ const show = (event) => {
@include box(300px, 300px);
@include flexCen();
}
.btn {
@include box(200px, 40px);
line-height: 40px;

View File

@ -32,6 +32,7 @@ onMounted(() => {});
overflow: hidden;
background-color: rgb(255, 255, 255);
}
.home {
@include box(750px, 100vh);
// position: relative;

View File

@ -93,7 +93,7 @@ export default defineConfig(({ command, mode }) => {
propList: ['*'], // 能转化为vw的属性列表
viewportUnit: 'vw', // 希望使用的视口单位
fontViewportUnit: 'vw', // 字体使用的视口单位
selectorBlackList: ['home'], // 需要忽略的CSS选择器不会转为视口单位使用原有的px等单位。
selectorBlackList: ['home', 'pc-content'], // 需要忽略的CSS选择器不会转为视口单位使用原有的px等单位。
minPixelValue: 1, // 设置最小的转换数值如果为1的话只有大于1的值会被转换
mediaQuery: true, // 媒体查询里的单位是否需要转换单位
replace: true, // 是否直接更换属性值,而不添加备用属性