cashier-mer/src/App.vue

30 lines
650 B
Vue
Raw Normal View History

2024-03-30 18:04:30 +08:00
<script setup>
2024-05-13 18:10:13 +08:00
import { onMounted } from "vue";
2024-03-30 18:04:30 +08:00
onMounted(() => {
2024-05-13 18:10:13 +08:00
document.body.style.setProperty("--el-color-primary", "#1890ff");
document.body.style.setProperty("--el-upload-picture-card-size", "60px");
document.body.style.setProperty("--el-upload-list-picture-card-size", "60px");
});
2024-04-18 17:58:06 +08:00
const screenWidth = window.innerWidth;
2024-05-13 18:10:13 +08:00
console.log("当前屏幕宽度:", screenWidth);
2024-03-30 09:23:34 +08:00
</script>
<template>
2024-03-30 18:04:30 +08:00
<router-view />
2024-03-30 09:23:34 +08:00
</template>
2024-03-30 18:04:30 +08:00
<style lang="scss">
2024-05-13 18:10:13 +08:00
.el-button:focus {
2024-03-30 18:04:30 +08:00
outline: none;
2024-03-30 09:23:34 +08:00
}
2024-05-13 18:10:13 +08:00
2024-04-10 10:22:20 +08:00
// 取消input的上下箭头
2024-05-13 18:10:13 +08:00
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
2024-04-10 10:22:20 +08:00
-webkit-appearance: none;
2024-05-13 18:10:13 +08:00
margin: 0;
2024-04-10 10:22:20 +08:00
}
2024-03-30 09:23:34 +08:00
</style>