From 2d947dc9682f28134ff10d5795a158f4b138bd31 Mon Sep 17 00:00:00 2001 From: XiNGRZ Date: Sat, 6 Apr 2024 18:27:33 +0800 Subject: [PATCH] Gather all styles of BSMap components into one SCSS module It's much clear than split into individual SFCs --- src/components/BSMap.vue | 9 +--- src/components/BSMap/BSCell.vue | 12 +---- src/components/BSMap/BSIcon.vue | 29 ++---------- src/components/BSMap/BSRow.vue | 25 ++--------- src/components/BSMap/BSText.vue | 20 +-------- src/components/BSMap/style.module.scss | 62 ++++++++++++++++++++++++++ 6 files changed, 76 insertions(+), 81 deletions(-) create mode 100644 src/components/BSMap/style.module.scss diff --git a/src/components/BSMap.vue b/src/components/BSMap.vue index 62bea1b..8f1dc64 100644 --- a/src/components/BSMap.vue +++ b/src/components/BSMap.vue @@ -1,5 +1,5 @@ @@ -13,6 +13,7 @@ import { import { max } from 'radash'; +import $bsMap from './BSMap/style.module.scss'; import BSRow from './BSMap/BSRow.vue'; const props = defineProps<{ @@ -28,9 +29,3 @@ const style = computed(() => ({ '--bs-map-cols': cols.value, }) as CSSProperties); - - diff --git a/src/components/BSMap/BSCell.vue b/src/components/BSMap/BSCell.vue index 2eb42fb..2ac9746 100644 --- a/src/components/BSMap/BSCell.vue +++ b/src/components/BSMap/BSCell.vue @@ -1,6 +1,6 @@