优化多个组件的样式,添加 scoped 样式以避免样式冲突

This commit is contained in:
jxxghp
2025-03-31 18:44:56 +08:00
parent 3e36cb6e31
commit 5a8eb5b10e
16 changed files with 16 additions and 17 deletions

View File

@@ -70,7 +70,7 @@ onActivated(() => {
</VHover>
</template>
<style lang="scss">
<style lang="scss" scoped>
@use '@layouts/styles/mixins' as layoutsMixins;
.v-card .triangle-bg {

View File

@@ -976,7 +976,7 @@ onBeforeMount(() => {
/>
</template>
<style lang="scss">
<style lang="scss" scoped>
.vue-media-back {
background-image: linear-gradient(
180deg,

View File

@@ -723,7 +723,7 @@ onMounted(fetchData)
<TransferQueueDialog v-if="transferQueueDialog" v-model="transferQueueDialog" @close="transferQueueDialog = false" />
</template>
<style lang="scss">
<style lang="scss" scoped>
.v-table th {
white-space: nowrap;
}

View File

@@ -266,7 +266,7 @@ onMounted(() => {
</VDialog>
</template>
<style type="scss">
<style type="scss" scoped>
.heading {
font-size: 1.5rem;
font-weight: 700;

View File

@@ -201,7 +201,7 @@ onActivated(() => {
<ProgressDialog v-if="progressDialog" v-model="progressDialog" text="正在加载 ..." />
</template>
<style lang="scss">
<style lang="scss" scoped>
.v-application .fc {
--fc-today-bg-color: rgba(var(--v-theme-on-surface), 0.04);
--fc-border-color: rgba(var(--v-border-color), var(--v-border-opacity));

View File

@@ -386,7 +386,7 @@ function toggleFilterMenu(key: string) {
<VMenu activator="parent" :close-on-content-click="false">
<VCard max-width="20rem">
<VCardText class="filter-menu-content">
<div class="text-end">
<div class="flex justify-between">
<VBtn variant="text" size="small" color="primary" @click="selectAll(key)"> 全选 </VBtn>
<VBtn
v-if="filterForm[key].length > 0"